/* ==========================================================================
   GitMind Pro Design System — Light Zen Theme
   ========================================================================== */

/* --- Design Tokens --- */
:root {
  /* Surface colors — Warm Porcelain Light Palette */
  --zen-bg-primary: #fcfcfd;
  --zen-bg-secondary: #ffffff;
  --zen-bg-tertiary: #f1f5f9;
  --zen-bg-elevated: rgba(255, 255, 255, 0.92);
  --zen-glass-bg: rgba(255, 255, 255, 0.85);
  --zen-glass-border: rgba(15, 23, 42, 0.08);

  /* Text colors */
  --zen-text-primary: #0f172a;
  --zen-text-secondary: #475569;
  --zen-text-tertiary: #64748b;
  --zen-text-inverse: #ffffff;

  /* Accent — Botanical Emerald & Slate Cyan */
  --zen-accent: #059669;
  --zen-accent-cyan: #0284c7;
  --zen-accent-subtle: rgba(5, 150, 105, 0.08);
  --zen-accent-hover: #047857;
  --zen-accent-dark: #065f46;
  --zen-accent-darker: #064e3b;
  --zen-color-danger: #e11d48;

  /* Status — desaturated, clear */
  --zen-status-ok: #10b981;
  --zen-status-warning: #f59e0b;
  --zen-status-error: #ef4444;
  --zen-status-syncing: #0284c7;

  /* Borders, shadows & glows */
  --zen-border: #e2e8f0;
  --zen-border-subtle: #f1f5f9;
  --zen-border-glow: rgba(5, 150, 105, 0.25);
  --zen-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --zen-shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
  --zen-shadow-lg: 0 16px 36px -4px rgba(15, 23, 42, 0.12);
  --zen-glow-emerald: 0 0 25px rgba(5, 150, 105, 0.18);
  --zen-glow-cyan: 0 0 25px rgba(2, 132, 199, 0.18);

  /* Typography */
  --zen-font-family:
    "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
    sans-serif;
  --zen-font-mono: "JetBrains Mono", monospace;
  --zen-text-xs: 0.75rem;
  --zen-text-sm: 0.8125rem;
  --zen-text-base: 0.875rem;
  --zen-text-md: 1rem;
  --zen-text-lg: 1.125rem;
  --zen-text-xl: 1.375rem;
  --zen-text-2xl: 1.75rem;
  --zen-text-3xl: 2.25rem;
  --zen-weight-normal: 400;
  --zen-weight-medium: 500;
  --zen-weight-semibold: 600;
  --zen-leading-tight: 1.2;
  --zen-leading-normal: 1.5;
  --zen-leading-relaxed: 1.7;

  /* Spacing — 8px grid */
  --zen-space-xs: 4px;
  --zen-space-sm: 8px;
  --zen-space-md: 20px;
  --zen-space-lg: 28px;
  --zen-space-xl: 36px;
  --zen-space-2xl: 52px;
  --zen-space-3xl: 72px;

  /* Radius */
  --zen-radius-sm: 6px;
  --zen-radius-md: 10px;
  --zen-radius-lg: 18px;
  --zen-radius-full: 9999px;

  /* Motion */
  --zen-transition-fast: 150ms ease;
  --zen-transition-normal: 200ms cubic-bezier(0.16, 1, 0.3, 1);
  --zen-transition-slow: 350ms cubic-bezier(0.16, 1, 0.3, 1);
}
/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  max-width: 100vw;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--zen-font-family);
  font-size: var(--zen-text-base);
  font-weight: var(--zen-weight-normal);
  line-height: var(--zen-leading-normal);
  color: var(--zen-text-primary);
  background: var(--zen-bg-primary);
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  max-width: 100%;
}

.gitmind-bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0.24;
}

.site-nav,
#main-content,
.site-footer {
  position: relative;
  z-index: 1;
}

#main-content {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--zen-accent) 62%, white);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--zen-accent);
  text-decoration: none;
  transition: color var(--zen-transition-fast);
}
a:hover {
  color: var(--zen-accent-hover);
  text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--zen-weight-semibold);
  line-height: var(--zen-leading-tight);
  color: var(--zen-text-primary);
}

h1 {
  font-size: var(--zen-text-3xl);
}
h2 {
  font-size: var(--zen-text-2xl);
}
h3 {
  font-size: var(--zen-text-xl);
}
h4 {
  font-size: var(--zen-text-lg);
}

/* --- Scrollbars --- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--zen-border);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--zen-text-tertiary);
}
* {
  scrollbar-width: thin;
  scrollbar-color: var(--zen-border) transparent;
}
/* --- Layout --- */
.container {
  width: min(1280px, calc(100vw - 64px));
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  width: min(1060px, calc(100vw - 64px));
  margin: 0 auto;
  padding: 0 24px;
}

.container--wide {
  width: min(1440px, calc(100vw - 64px));
  margin: 0 auto;
  padding: 0 24px;
}

.container--readable {
  width: min(880px, calc(100vw - 64px));
  margin: 0 auto;
  padding: 0 24px;
}

.section__header {
  text-align: center;
}

.section__title--tight {
  margin-bottom: var(--zen-space-sm);
}

.section__title--spacious {
  margin-bottom: var(--zen-space-3xl);
}

.section__subtitle--compact {
  margin-bottom: 0;
}

.section__subtitle--wide-gap {
  margin-bottom: var(--zen-space-3xl);
}

.promo-banner {
  background: var(--zen-accent-subtle);
  border-bottom: 1px solid
    color-mix(in srgb, var(--zen-accent) 30%, transparent);
  padding: var(--zen-space-md) 0;
  text-align: center;
}

.promo-banner__emphasis {
  color: var(--zen-accent-hover);
}

.code-chip {
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 8px;
  border-radius: 4px;
}

.section {
  padding: clamp(3.75rem, 6vw, 5.75rem) 0;
}

.section--alt {
  background: var(--zen-bg-secondary);
}

.section--accent {
  background: var(--zen-accent-subtle);
}

.section__title {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  text-align: center;
  margin-bottom: var(--zen-space-sm);
}

.section__subtitle {
  font-size: var(--zen-text-md);
  color: var(--zen-text-secondary);
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--zen-space-xl);
  line-height: var(--zen-leading-relaxed);
}

.section__header {
  max-width: 680px;
  margin: 0 auto var(--zen-space-2xl);
}
/* --- Admin panel: users/user/licenses/license/events/dashboard --- */

/* --- Page & Section Headers --- */
.admin-section-head {
  margin-bottom: var(--zen-space-lg);
}

.admin-section-head__content h2 {
  margin: 0 0 4px;
  font-size: var(--zen-text-xl);
  font-weight: var(--zen-weight-semibold);
  letter-spacing: -0.02em;
  color: var(--zen-text-primary);
}

.admin-section-head__content p {
  margin: 0;
  font-size: var(--zen-text-sm);
  color: var(--zen-text-secondary);
}

/* --- Toolbar (search + secondary actions row above a list) --- */
.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--zen-space-md);
  margin-top: var(--zen-space-sm);
}

.admin-toolbar__group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.admin-toolbar__meta {
  font-size: var(--zen-text-xs);
  font-weight: var(--zen-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--zen-text-tertiary);
}

.admin-search-form {
  display: flex;
  align-items: center;
  gap: var(--zen-space-xs);
}

.admin-search-form__field {
  min-width: 240px;
  flex: 1;
}

.admin-toggle-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--zen-text-sm);
  color: var(--zen-text-secondary);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  padding: 6px 12px;
  background: var(--zen-bg-tertiary);
  border: 1px solid var(--zen-border-subtle);
  border-radius: var(--zen-radius-md);
  transition: all 0.2s ease;
}

.admin-toggle-control:hover {
  border-color: var(--zen-border);
  color: var(--zen-text-primary);
}

.admin-toggle-control input[type="checkbox"] {
  accent-color: var(--zen-accent);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.admin-checkbox-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--zen-text-sm);
  color: var(--zen-text-primary);
  cursor: pointer;
  user-select: none;
}

.admin-checkbox-control input[type="checkbox"] {
  accent-color: var(--zen-accent);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.admin-pagination {
  display: flex;
  align-items: center;
  gap: var(--zen-space-sm);
}

/* --- Admin Dashboard Insights Grid & Cards --- */
.admin-insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--zen-space-md);
  margin-bottom: var(--zen-space-xl);
}

.admin-insight-card {
  display: flex;
  flex-direction: column;
  background: var(--zen-bg-elevated);
  border: 1px solid var(--zen-border);
  border-radius: var(--zen-radius-lg);
  padding: var(--zen-space-lg);
  box-shadow: var(--zen-shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.admin-insight-card:hover {
  border-color: var(--zen-border-glow);
}

.admin-insight-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--zen-space-sm);
  margin-bottom: var(--zen-space-md);
}

.admin-insight-card__title {
  font-size: var(--zen-text-xs);
  font-weight: var(--zen-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--zen-text-tertiary);
}

.admin-insight-card__badge {
  font-size: var(--zen-text-xs);
  font-weight: var(--zen-weight-semibold);
  padding: 3px 10px;
  border-radius: 99px;
  white-space: nowrap;
}

.admin-insight-card__badge--good {
  background: color-mix(in srgb, var(--zen-status-success) 12%, transparent);
  color: color-mix(in srgb, var(--zen-status-success) 90%, var(--zen-text-primary));
}

.admin-insight-card__badge--warn {
  background: color-mix(in srgb, var(--zen-status-warning) 14%, transparent);
  color: color-mix(in srgb, var(--zen-status-warning) 90%, var(--zen-text-primary));
}

.admin-insight-card__metric {
  display: flex;
  align-items: baseline;
  gap: var(--zen-space-xs);
  margin-bottom: var(--zen-space-sm);
}

.admin-insight-card__value {
  font-size: var(--zen-text-2xl);
  font-weight: var(--zen-weight-bold);
  color: var(--zen-text-primary);
  line-height: 1;
}

.admin-insight-card__total {
  font-size: var(--zen-text-sm);
  color: var(--zen-text-tertiary);
}

.admin-insight-card__footer {
  margin-top: auto;
  padding-top: var(--zen-space-sm);
  font-size: var(--zen-text-xs);
  color: var(--zen-text-secondary);
  border-top: 1px dashed var(--zen-border-subtle);
}

.admin-insight-card__body-text {
  font-size: var(--zen-text-sm);
  color: var(--zen-text-secondary);
  line-height: 1.5;
}

.admin-insight-card__body-text p {
  margin: 0;
}

.admin-source-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.admin-source-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--zen-bg-tertiary);
  border: 1px solid var(--zen-border-subtle);
  border-radius: var(--zen-radius-md);
  font-size: var(--zen-text-xs);
}

.admin-source-pill__name {
  color: var(--zen-text-secondary);
  font-weight: var(--zen-weight-medium);
}

.admin-source-pill__count {
  font-weight: var(--zen-weight-bold);
  color: var(--zen-accent-dark);
  background: var(--zen-accent-subtle);
  padding: 2px 6px;
  border-radius: 99px;
}

/* --- Progress Bars & Status Accents --- */
.admin-progress-bar {
  display: inline-block;
  vertical-align: middle;
  width: 140px;
  height: 7px;
  background: var(--zen-bg-tertiary);
  border-radius: var(--zen-radius-full);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.15);
  margin-right: var(--zen-space-xs);
}

.admin-progress-bar--lg {
  width: 100%;
  height: 9px;
  margin: var(--zen-space-sm) 0;
}

.admin-progress-bar-inline {
  display: flex;
  align-items: center;
  gap: var(--zen-space-sm);
}

.admin-progress-bar__fill {
  height: 100%;
  border-radius: var(--zen-radius-full);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-progress-bar__fill--active {
  background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.admin-progress-bar__fill--warn {
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.admin-progress-bar__fill--inactive {
  background: linear-gradient(90deg, #ef4444 0%, #f87171 100%);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}

/* --- Tables & Table Extensions --- */
.admin-empty-cell {
  text-align: center;
  color: var(--zen-text-tertiary);
}

.admin-empty-cell--padded {
  padding: var(--zen-space-xl) 0;
}

.admin-dashboard-table {
  width: 100%;
}

.admin-detail-table {
  width: 100%;
  border-collapse: collapse;
}

.pp-th--xs { width: 48px; }
.pp-th--sm { width: 90px; }
.pp-th--narrow { width: 140px; }
.pp-th--compact { width: 100px; }
.pp-th--last-login { width: 130px; }
.pp-th--license-key { width: 220px; }
.pp-th--user-min { width: 160px; }

/* --- User Detail Page Redesign & 2-Column System --- */
.admin-user-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--zen-space-md);
  margin-bottom: var(--zen-space-lg);
  padding-bottom: var(--zen-space-md);
  border-bottom: 1px solid var(--zen-border-subtle);
}

.admin-user-header__left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-user-title-wrap {
  display: flex;
  align-items: center;
  gap: var(--zen-space-sm);
  flex-wrap: wrap;
}

.admin-user-title {
  margin: 0;
  font-size: var(--zen-text-2xl);
  font-weight: var(--zen-weight-bold);
  color: var(--zen-text-primary);
  letter-spacing: -0.02em;
}

.admin-user-subtitle {
  font-size: var(--zen-text-sm);
}

.admin-user-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--zen-space-lg);
  align-items: start;
}

.admin-user-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--zen-space-md);
}

.admin-user-main {
  display: flex;
  flex-direction: column;
  gap: var(--zen-space-md);
}

.admin-compact-actions {
  display: flex;
  flex-direction: column;
  gap: var(--zen-space-sm);
}

.admin-drawer-body {
  padding: var(--zen-space-md) var(--zen-space-lg);
  background: var(--zen-bg-tertiary);
  border-bottom: 1px solid var(--zen-border-subtle);
}

/* --- Account action blocks & Danger Zones --- */
.admin-action-block {
  display: flex;
  flex-direction: column;
  gap: var(--zen-space-sm);
}

.admin-danger-zone {
  margin-top: var(--zen-space-md);
  padding: var(--zen-space-md);
  border: 1px solid color-mix(in srgb, var(--zen-color-danger) 30%, transparent);
  border-radius: var(--zen-radius-md);
  background: color-mix(in srgb, var(--zen-color-danger) 5%, transparent);
}

.admin-danger-zone--compact {
  margin-top: var(--zen-space-xs);
  padding: var(--zen-space-xs) 0 0;
  border: none;
  background: transparent;
}

.admin-danger-zone__label {
  font-size: var(--zen-text-xs);
  font-weight: var(--zen-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--zen-color-danger);
  margin-bottom: var(--zen-space-xs);
}

/* --- Form field grids --- */
.admin-grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--zen-space-md);
}

.grid-auto-200 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--zen-space-md);
}

.grid-2-lg {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--zen-space-lg);
}

/* --- Inline forms (status/max-devices) --- */
.admin-inline-form {
  display: flex;
  flex-direction: column;
  gap: var(--zen-space-xs);
}

.admin-inline-form__label {
  font-size: var(--zen-text-xs);
  color: var(--zen-text-tertiary);
}

.admin-inline-form__controls {
  display: flex;
  align-items: center;
  gap: var(--zen-space-sm);
}

.admin-input--number {
  width: 90px;
}

/* --- License key cell with copy button --- */
.admin-license-key__inner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--zen-font-mono);
  font-size: var(--zen-text-sm);
  color: var(--zen-text-secondary);
}

.admin-user-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: center;
}

.admin-user-link {
  color: var(--zen-text-primary);
  text-decoration: none;
}

.admin-user-link:hover {
  text-decoration: underline;
  color: var(--zen-accent-dark);
}

.admin-user-sub {
  font-size: var(--zen-text-xs);
  color: var(--zen-text-tertiary);
  font-weight: var(--zen-weight-medium);
}

.admin-plan-cell {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.admin-device-usage-cell {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.admin-progress-bar--mini {
  width: 50px;
  height: 4px;
  margin: 0;
  border-radius: var(--zen-radius-full);
}

/* --- Admin License Page & Copy Button Enhancements --- */
.admin-license-header-title {
  display: flex;
  align-items: center;
  gap: var(--zen-space-sm);
}

.admin-license-key-hero {
  background: var(--zen-bg-secondary);
  border: 1px solid var(--zen-border-subtle);
  border-radius: var(--zen-radius-lg);
  padding: var(--zen-space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--zen-space-xs);
  box-shadow: var(--zen-shadow-sm);
}

.admin-license-key-hero__label {
  font-size: var(--zen-text-xs);
  font-weight: var(--zen-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--zen-text-tertiary);
}

.admin-license-key-hero__value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--zen-space-md);
  font-family: var(--zen-font-mono);
  background: var(--zen-bg-primary);
  border: 1px solid var(--zen-border);
  padding: 12px 16px;
  border-radius: var(--zen-radius-md);
}

.admin-license-key-hero__value .mono-text {
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  font-weight: var(--zen-weight-semibold);
  color: var(--zen-text-primary);
  word-break: break-all;
}

.admin-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.admin-status-dot--active {
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.admin-status-dot--warn {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
}

.admin-status-dot--inactive {
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
}

.admin-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--zen-radius-sm);
  color: var(--zen-text-tertiary);
  cursor: pointer;
  transition: all 0.2s ease;
  vertical-align: middle;
  margin-left: 4px;
}

.admin-copy-btn:hover {
  color: var(--zen-accent-dark);
  background: var(--zen-accent-subtle);
  border-color: var(--zen-border-subtle);
}

.admin-copy-btn.is-copied {
  color: var(--zen-status-success);
  background: color-mix(in srgb, var(--zen-status-success) 12%, transparent);
}

.admin-config-form {
  display: flex;
  flex-direction: column;
  gap: var(--zen-space-xs);
}

.admin-notes-section {
  margin-top: var(--zen-space-lg);
  padding-top: var(--zen-space-md);
  border-top: 1px solid var(--zen-border-subtle);
}

.textarea-control {
  width: 100%;
  padding: 10px 14px;
  background: var(--zen-bg-secondary);
  border: 1px solid var(--zen-border);
  border-radius: var(--zen-radius-md);
  font-family: inherit;
  font-size: var(--zen-text-sm);
  color: var(--zen-text-primary);
  resize: vertical;
  margin-bottom: var(--zen-space-sm);
  transition: border-color 0.2s ease;
}

.textarea-control:focus {
  outline: none;
  border-color: var(--zen-accent);
}

.textarea-control--sm {
  min-height: 70px;
}

.empty-note {
  padding: var(--zen-space-lg);
  text-align: center;
  color: var(--zen-text-tertiary);
  font-size: var(--zen-text-sm);
}

.danger-ghost {
  color: var(--zen-color-danger);
}
.danger-ghost:hover {
  background: color-mix(in srgb, var(--zen-color-danger) 10%, transparent);
  color: var(--zen-color-danger);
}

/* --- Audit log (events.phtml) --- */
.audit-row {
  transition: background 0.15s ease;
}

.audit-row:hover {
  background: var(--zen-bg-tertiary);
}

.audit-details-row,
.polar-details-row {
  background: var(--zen-bg-tertiary);
}

.detail-chip {
  display: inline-block;
  font-family: var(--zen-font-mono);
  font-size: var(--zen-text-xs);
  padding: 3px 8px;
  border-radius: var(--zen-radius-sm);
  background: var(--zen-bg-tertiary);
}

.detail-chip--danger {
  background: color-mix(in srgb, var(--zen-color-danger) 10%, transparent);
  color: var(--zen-color-danger);
}

.detail-divider-top {
  margin-top: var(--zen-space-sm);
  padding-top: var(--zen-space-sm);
  border-top: 1px solid var(--zen-border-subtle);
}

.detail-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--zen-space-sm);
  font-size: var(--zen-text-sm);
}

.detail-grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--zen-space-sm);
  font-size: var(--zen-text-sm);
}

.detail-tag {
  font-size: var(--zen-text-xs);
  background: var(--zen-bg-tertiary);
  border-radius: var(--zen-radius-sm);
  padding: 3px 8px;
}

.pre-box {
  background: var(--zen-bg-primary);
  border: 1px solid var(--zen-border-subtle);
  color: var(--zen-text-primary);
  padding: var(--zen-space-md);
  border-radius: var(--zen-radius-md);
  font-family: var(--zen-font-mono);
  font-size: var(--zen-text-xs);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.summary-link {
  cursor: pointer;
  color: var(--zen-accent-dark);
  font-size: var(--zen-text-sm);
  font-weight: var(--zen-weight-medium);
  user-select: none;
}

.summary-link:hover {
  text-decoration: underline;
}

.user-agent-bar {
  margin-top: var(--zen-space-sm);
  padding: var(--zen-space-sm) var(--zen-space-md);
  background: var(--zen-bg-secondary);
  border-radius: var(--zen-radius-sm);
  font-size: var(--zen-text-xs);
  color: var(--zen-text-tertiary);
  word-break: break-all;
}

/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
  .admin-user-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .admin-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-toolbar__group--primary,
  .admin-toolbar__group--secondary {
    width: 100%;
  }

  .admin-search-form {
    width: 100%;
  }

  .admin-search-form__field {
    min-width: 0;
    width: 100%;
  }

  .admin-user-header {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-user-header__actions {
    width: 100%;
  }

  .admin-user-header__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  /* --- Admin Events & Webhooks Mobile Card Layout --- */
  .pp-table-wrap table.pp-table > thead {
    display: none;
  }

  .audit-row,
  .polar-row {
    display: flex;
    flex-direction: column;
    background: var(--zen-bg-elevated);
    border: 1px solid var(--zen-border);
    border-radius: var(--zen-radius-lg);
    padding: 14px 16px;
    margin-bottom: 12px;
    box-shadow: var(--zen-shadow-sm);
    gap: 8px;
  }

  .audit-row > td,
  .polar-row > td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border: none;
    font-size: var(--zen-text-sm);
    width: 100%;
    word-break: break-word;
  }

  .audit-row > td[data-label]::before,
  .polar-row > td[data-label]::before {
    content: attr(data-label);
    font-size: var(--zen-text-xs);
    font-weight: var(--zen-weight-semibold);
    color: var(--zen-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-right: 12px;
    flex-shrink: 0;
  }

  .audit-row > td[data-label="Time"],
  .polar-row > td[data-label="Received"] {
    font-weight: var(--zen-weight-semibold);
    color: var(--zen-text-primary);
    border-bottom: 1px dashed var(--zen-border-subtle);
    padding-bottom: 8px;
    margin-bottom: 2px;
  }

  .audit-row > td[data-label="Actions"],
  .polar-row > td[data-label="Actions"] {
    border-top: 1px dashed var(--zen-border-subtle);
    padding-top: 10px;
    margin-top: 4px;
    justify-content: flex-end;
  }

  .audit-row > td[data-label="Actions"]::before,
  .polar-row > td[data-label="Actions"]::before {
    display: none;
  }

  .audit-row .row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
  }

  .audit-row .row-actions .btn,
  .polar-row .btn {
    min-height: 40px;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Expandable detail rows on mobile */
  tr.audit-details-row,
  tr.polar-details-row {
    display: block;
    background: var(--zen-bg-tertiary);
    border: 1px solid var(--zen-border-subtle);
    border-radius: var(--zen-radius-md);
    margin-bottom: 14px;
    padding: 12px;
  }

  tr.audit-details-row:not([hidden]),
  tr.polar-details-row:not([hidden]) {
    display: block;
  }

  tr.audit-details-row > td,
  tr.polar-details-row > td {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
  }

  tr.audit-details-row > td::before,
  tr.polar-details-row > td::before {
    display: none !important;
  }

  .panel-padded {
    padding: 8px 4px;
  }

  .detail-grid-2,
  .detail-grid-auto {
    grid-template-columns: 1fr;
    gap: var(--zen-space-xs);
  }

  .pre-box {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    font-size: 0.75rem;
    padding: 10px;
  }

  /* Admin Toolbar Mobile Adjustments */
  .admin-toolbar__stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
  }

  .admin-toolbar__stack select {
    width: 100%;
    min-height: 40px;
  }

  .admin-pagination {
    width: 100%;
    justify-content: center;
    margin-top: 6px;
  }

  .admin-pagination .btn {
    min-height: 40px;
    padding: 8px 16px;
  }

  .admin-toolbar__group--secondary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .admin-toolbar__group--secondary .btn {
    width: 100%;
    min-height: 42px;
    justify-content: center;
  }
}
/* --- Auth shell: login, register, forgot/reset-password, verify-email, app-activate --- */

.auth-shell {
  flex: 1 0 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--zen-space-xl) var(--zen-space-md);
  background: var(--zen-bg-primary);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--zen-bg-elevated);
  border: 1px solid var(--zen-glass-border);
  border-radius: var(--zen-radius-lg);
  box-shadow: var(--zen-shadow-md);
  padding: var(--zen-space-2xl);
}

.auth-card--md {
  max-width: 440px;
}
.auth-card--lg {
  max-width: 560px;
}
.auth-card--xl {
  max-width: 880px;
}

.auth-card--center {
  text-align: center;
}

/* --- Brand block --- */
.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--zen-space-xs);
  margin-bottom: var(--zen-space-xl);
}

.auth-logo {
  margin-bottom: var(--zen-space-sm);
}

.auth-title {
  font-size: var(--zen-text-2xl);
  font-weight: var(--zen-weight-semibold);
  color: var(--zen-text-primary);
  margin: 0;
}

.auth-title--success {
  color: var(--zen-accent-dark);
}

.auth-subtitle {
  font-size: var(--zen-text-base);
  color: var(--zen-text-secondary);
  margin: 0;
  line-height: var(--zen-leading-normal);
}

.auth-subtitle--md {
  font-size: var(--zen-text-md);
}

/* --- Callouts inside auth cards (headings/body for success/error blocks, and the
   OAuth/Email column headers reused from the same title style in login.phtml) --- */
.auth-callout__title {
  font-size: var(--zen-text-lg);
  font-weight: var(--zen-weight-semibold);
  color: var(--zen-text-primary);
  margin: 0 0 var(--zen-space-xs);
}

.auth-callout__title--danger {
  color: var(--zen-color-danger);
}

.auth-callout__title--success {
  color: var(--zen-accent-dark);
}

.auth-callout__body {
  font-size: var(--zen-text-base);
  color: var(--zen-text-secondary);
  line-height: var(--zen-leading-normal);
  margin: 0;
}

.auth-callout--center {
  text-align: center;
}

.auth-callout--left {
  text-align: left;
}

/* --- Divider ("Or with Email") --- */
.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--zen-space-sm);
  margin: var(--zen-space-lg) 0;
}

.auth-divider__line {
  flex: 1;
  height: 1px;
  background: var(--zen-border);
}

.auth-divider__text {
  font-size: var(--zen-text-xs);
  color: var(--zen-text-tertiary);
  white-space: nowrap;
}

.auth-divider--compact {
  margin: var(--zen-space-md) 0;
}

/* --- Footer --- */
.auth-footer {
  margin-top: var(--zen-space-xl);
  padding-top: var(--zen-space-lg);
  border-top: 1px solid var(--zen-border-subtle);
  text-align: center;
}

.auth-footer__text {
  font-size: var(--zen-text-sm);
  color: var(--zen-text-secondary);
  margin: 0;
}

.auth-footer__note {
  margin-top: var(--zen-space-sm);
  font-size: var(--zen-text-xs);
  color: var(--zen-text-tertiary);
  text-align: center;
}

/* --- Info box (register-success "Didn't receive the email?") --- */
.auth-info {
  margin-top: var(--zen-space-lg);
  padding: var(--zen-space-md);
  background: var(--zen-bg-tertiary);
  border-radius: var(--zen-radius-md);
}

.auth-info__lead {
  margin: 0 0 var(--zen-space-xs);
  color: var(--zen-text-primary);
}

.auth-info__list {
  margin: 0;
  padding-left: var(--zen-space-lg);
  color: var(--zen-text-secondary);
  font-size: var(--zen-text-sm);
  line-height: var(--zen-leading-relaxed);
}

/* --- Two-column responsive grid (register's name/company fields) --- */
.auth-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--zen-space-md);
}

/* --- OAuth panel (register's "Create account with OAuth" box) --- */
.oauth-panel {
  background: var(--zen-bg-tertiary);
  border: 1px solid var(--zen-border-subtle);
  border-radius: var(--zen-radius-md);
  padding: var(--zen-space-lg);
}

.oauth-panel__header {
  margin-bottom: var(--zen-space-md);
}

.oauth-panel__title {
  font-size: var(--zen-text-md);
  font-weight: var(--zen-weight-semibold);
  color: var(--zen-text-primary);
  margin: 0 0 var(--zen-space-xs);
}

.oauth-panel__copy {
  font-size: var(--zen-text-sm);
  color: var(--zen-text-secondary);
  margin: 0;
  line-height: var(--zen-leading-normal);
}

.oauth-panel__actions {
  display: flex;
  flex-direction: column;
  gap: var(--zen-space-sm);
}

/* --- Login page's OAuth | Email two-column split --- */
.portal-login-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--zen-space-2xl);
}

.portal-login-option {
  min-width: 0;
}

.portal-login-option + .portal-login-option {
  padding-left: var(--zen-space-2xl);
  border-left: 1px solid var(--zen-border-subtle);
}

/* --- Register: account-type choice cards --- */
.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--zen-space-sm);
}

.choice-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--zen-space-sm);
  padding: var(--zen-space-md);
  border: 1px solid var(--zen-border);
  border-radius: var(--zen-radius-md);
  cursor: pointer;
  transition: border-color var(--zen-transition-fast), background var(--zen-transition-fast);
}

.choice-card:hover {
  border-color: var(--zen-accent);
}

.choice-card--selected {
  border-color: var(--zen-accent);
  background: var(--zen-accent-subtle);
}

.choice-card__input {
  margin-top: 3px;
}

.choice-card__title {
  display: block;
  font-size: var(--zen-text-base);
  font-weight: var(--zen-weight-medium);
  color: var(--zen-text-primary);
}

.choice-card__copy {
  display: block;
  font-size: var(--zen-text-xs);
  color: var(--zen-text-tertiary);
}

/* --- Register: conditional company/role fields --- */
.company-fields {
  margin-top: var(--zen-space-md);
}

.terms-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--zen-bg-secondary);
  border: 1px solid var(--zen-border-subtle);
  border-radius: var(--zen-radius-md);
  padding: 10px 14px;
  margin-bottom: var(--zen-space-md);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--zen-transition-fast), background var(--zen-transition-fast);
}

.terms-row:hover {
  border-color: var(--zen-border);
}

.terms-row--invalid {
  border-color: color-mix(in srgb, var(--zen-color-danger) 40%, transparent);
  background: color-mix(in srgb, var(--zen-color-danger) 5%, transparent);
}

.terms-row--invalid .terms-row__copy {
  color: var(--zen-color-danger);
}

.terms-row__input {
  margin-top: 1px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--zen-accent);
  cursor: pointer;
}

.terms-row__copy {
  font-size: 0.8125rem;
  color: var(--zen-text-secondary);
  line-height: 1.45;
  text-align: left;
}

.terms-row__copy a {
  color: var(--zen-text-primary);
  font-weight: var(--zen-weight-medium);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--zen-transition-fast);
}

.terms-row__copy a:hover {
  color: var(--zen-accent);
}

/* --- Password field with show/hide toggle --- */
.relative-field {
  position: relative;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 4px;
  color: var(--zen-text-tertiary);
  cursor: pointer;
}

.password-toggle:hover {
  color: var(--zen-text-secondary);
}

/* --- Password strength meter --- */
.strength-meter {
  margin-top: var(--zen-space-sm);
}

.strength-meter__bars {
  display: flex;
  gap: 4px;
  margin-bottom: var(--zen-space-xs);
}

.strength-bar {
  flex: 1;
  height: 4px;
  border-radius: var(--zen-radius-full);
  background: var(--zen-border);
  transition: background var(--zen-transition-fast);
}

.strength-meter[data-strength="1"] .strength-bar:nth-child(-n+1) { background: var(--zen-status-error); }
.strength-meter[data-strength="2"] .strength-bar:nth-child(-n+2) { background: var(--zen-status-warning); }
.strength-meter[data-strength="3"] .strength-bar:nth-child(-n+3) { background: var(--zen-status-syncing); }
.strength-meter[data-strength="4"] .strength-bar:nth-child(-n+4) { background: var(--zen-status-ok); }

.strength-text {
  font-size: var(--zen-text-xs);
  color: var(--zen-text-tertiary);
}

/* --- Error list inside a danger callout (register form) --- */
.callout-errors p {
  margin: 0 0 var(--zen-space-xs);
}
.callout-errors p:last-child {
  margin-bottom: 0;
}

/* --- App-activate: read-only license key input --- */
.activate-code {
  width: 100%;
  text-align: center;
  font-family: var(--zen-font-mono);
  font-size: var(--zen-text-md);
  letter-spacing: 0.05em;
  padding: 14px;
  background: var(--zen-bg-tertiary);
  border: 1px solid var(--zen-border);
  border-radius: var(--zen-radius-md);
  color: var(--zen-text-primary);
}

/* --- App-activate footer links ("Go to Dashboard · Log Out") --- */
.portal-footer-links {
  margin-top: var(--zen-space-lg);
  text-align: center;
  font-size: var(--zen-text-sm);
  color: var(--zen-text-tertiary);
}
/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--zen-space-xs);
  border: none;
  border-radius: var(--zen-radius-md);
  font-family: inherit;
  font-weight: var(--zen-weight-medium);
  line-height: 1.4;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition:
    background var(--zen-transition-fast),
    color var(--zen-transition-fast);
}

.btn--sm {
  padding: 4px 12px;
  font-size: var(--zen-text-base);
}
.btn--md {
  padding: 8px 16px;
  font-size: var(--zen-text-md);
}
.btn--lg {
  padding: 12px 24px;
  font-size: 1.0625rem;
}

.btn--primary {
  background: var(--zen-accent-dark);
  color: #ffffff;
}
.btn--primary:hover {
  background: var(--zen-accent-darker);
  color: #ffffff;
  text-decoration: none;
}

.btn--secondary {
  background: var(--zen-bg-tertiary);
  color: var(--zen-text-primary);
}
.btn--secondary:hover {
  background: var(--zen-border);
  text-decoration: none;
}

.btn--ghost {
  background: transparent;
  color: var(--zen-text-secondary);
}
.btn--ghost:hover {
  background: var(--zen-bg-secondary);
  color: var(--zen-text-primary);
  text-decoration: none;
}

.btn--danger {
  background: var(--zen-color-danger);
  color: #ffffff;
}
.btn--danger:hover {
  background: color-mix(in srgb, var(--zen-color-danger) 85%, black);
  color: #ffffff;
  text-decoration: none;
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn--with-icon {
  gap: var(--zen-space-sm);
}

.btn--icon-only {
  padding: 6px;
  width: 30px;
  height: 30px;
}
/* --- Cards --- */
.card {
  background: var(--zen-bg-elevated);
  border: 1px solid var(--zen-border);
  border-radius: var(--zen-radius-lg);
  box-shadow: var(--zen-shadow-md);
  padding: var(--zen-space-xl);
}

.card--subtle {
  background: var(--zen-bg-secondary);
  border: 1px solid var(--zen-border-subtle);
  box-shadow: none;
  border-radius: var(--zen-radius-md);
  padding: var(--zen-space-md);
}

/* Strip clunky nested card borders & shadow stacking */
.pp-card .pp-card {
  border: 1px solid var(--zen-border-subtle);
  box-shadow: none;
  background: var(--zen-bg-secondary);
}

.card-body--flush > table,
.card-body--flush > .pp-table-wrap,
.card-body--flush > .pp-table {
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
}
/* --- Community & Ticket Issuance Hub --- */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--zen-space-lg);
  margin-top: var(--zen-space-xl);
}

.community-card {
  background: var(--zen-bg-secondary);
  border: 1px solid var(--zen-border);
  border-radius: var(--zen-radius-lg);
  padding: var(--zen-space-xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--zen-transition-normal);
  position: relative;
  overflow: hidden;
}

.community-card:hover {
  border-color: var(--zen-border-glow);
  transform: translateY(-4px);
  box-shadow: var(--zen-shadow-md);
}

.community-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--zen-radius-md);
  background: var(--zen-accent-subtle);
  color: var(--zen-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--zen-space-md);
}

.community-card__icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.community-card__title {
  font-size: var(--zen-text-lg);
  font-weight: var(--zen-weight-semibold);
  color: var(--zen-text-primary);
  margin-bottom: var(--zen-space-xs);
}

.community-card__desc {
  font-size: var(--zen-text-sm);
  color: var(--zen-text-secondary);
  line-height: var(--zen-leading-normal);
  margin-bottom: var(--zen-space-lg);
  flex-grow: 1;
}

.community-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--zen-text-sm);
  font-weight: var(--zen-weight-medium);
  color: var(--zen-accent);
  text-decoration: none;
  transition: color var(--zen-transition-fast);
}

.community-card__link:hover {
  color: var(--zen-accent-hover);
  text-decoration: underline;
}

.community-notice {
  margin-top: var(--zen-space-xl);
  padding: var(--zen-space-md) var(--zen-space-lg);
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: var(--zen-radius-md);
  color: var(--zen-text-secondary);
  font-size: var(--zen-text-sm);
  display: flex;
  align-items: flex-start;
  gap: var(--zen-space-sm);
}

.community-notice svg {
  width: 20px;
  height: 20px;
  fill: #fbbf24;
  flex-shrink: 0;
  margin-top: 2px;
}
/* --- CTA / Call to Action Banner --- */
.cta {
  padding: var(--zen-space-2xl) 0 var(--zen-space-3xl);
  text-align: center;
}

.cta__card {
  max-width: 840px;
  margin: 0 auto;
  padding: var(--zen-space-3xl) var(--zen-space-xl);
  background: #ffffff;
  border: 1px solid var(--zen-border);
  border-radius: var(--zen-radius-lg);
  box-shadow: var(--zen-shadow-md);
  position: relative;
  overflow: hidden;
}

.cta__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 200px;
  background: radial-gradient(circle at top, rgba(5, 150, 105, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta h2 {
  font-size: var(--zen-text-3xl);
  font-weight: 700;
  color: var(--zen-text-primary);
  margin-bottom: 12px;
  line-height: 1.2;
}

.cta p {
  font-size: var(--zen-text-lg);
  color: var(--zen-text-secondary);
  max-width: 560px;
  margin: 0 auto var(--zen-space-xl);
  line-height: var(--zen-leading-relaxed);
}

.cta__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

/* Legacy support */
.cta-section {
  text-align: center;
  padding: var(--zen-space-2xl) 0;
}

.cta-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.cta-card__title {
  font-size: var(--zen-text-2xl);
  margin-bottom: var(--zen-space-md);
}

.cta-card__desc {
  font-size: var(--zen-text-md);
  color: var(--zen-text-secondary);
  line-height: var(--zen-leading-relaxed);
  margin-bottom: var(--zen-space-lg);
}

.cta-card__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--zen-space-md);
  flex-wrap: wrap;
  margin-top: var(--zen-space-xl);
}

/* --- FAQ Section --- */

/* ── Container ────────────────────────────────────────────── */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--zen-space-xl);
}

/* ── Category card ────────────────────────────────────────── */
.faq-category {
  background: var(--zen-bg-secondary);
  border: 1px solid var(--zen-border);
  border-radius: var(--zen-radius-lg);
  box-shadow: none;
  overflow: hidden;
  transition: box-shadow var(--zen-transition-normal);
}

.faq-category:hover { box-shadow: var(--zen-shadow-sm); }

/* ── Category heading ─────────────────────────────────────── */
.faq-category-title {
  font-size: var(--zen-text-lg);
  font-weight: var(--zen-weight-semibold);
  color: var(--zen-text-primary);
  padding: var(--zen-space-lg) var(--zen-space-xl);
  margin: 0;
  background: var(--zen-bg-secondary);
  border-bottom: 1px solid var(--zen-border);
  letter-spacing: 0.01em;
  position: relative;
}

/* Accent bar on the left of category title */
.faq-category-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--zen-accent);
}

/* ── Individual FAQ item ──────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--zen-border);
}

.faq-item:last-child {
  border-bottom: none;
}

/* ── Question (summary) ──────────────────────────────────── */
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--zen-space-md) var(--zen-space-xl);
  font-size: var(--zen-text-md);
  font-weight: var(--zen-weight-medium);
  color: var(--zen-text-primary);
  cursor: pointer;
  list-style: none;
  transition: all var(--zen-transition-fast);
  gap: var(--zen-space-md);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

/* Chevron arrow */
.faq-item summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--zen-text-tertiary);
  border-bottom: 2px solid var(--zen-text-tertiary);
  transform: rotate(45deg);
  transition: all var(--zen-transition-normal);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
  border-color: var(--zen-accent);
}

.faq-item summary:hover {
  color: var(--zen-accent-dark);
  background: rgba(5, 150, 105, 0.04);
}

.faq-item[open] summary {
  color: var(--zen-accent-dark);
}

/* ── Answer ───────────────────────────────────────────────── */
.faq-answer {
  padding: 0 var(--zen-space-xl) var(--zen-space-lg);
  font-size: var(--zen-text-base);
  color: var(--zen-text-secondary);
  line-height: var(--zen-leading-relaxed);
}

.faq-answer p {
  margin: 0 0 var(--zen-space-sm);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ── Category Navigation Pills ───────────────────────────── */
.faq-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--zen-space-sm);
  max-width: 980px;
  margin: 0 auto var(--zen-space-xl);
}

.faq-nav__pill {
  display: flex;
  min-width: 0;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: var(--zen-text-sm);
  font-weight: var(--zen-weight-medium);
  color: var(--zen-text-secondary);
  background: var(--zen-bg-secondary);
  border: 1px solid var(--zen-border);
  text-decoration: none;
  transition: all var(--zen-transition-fast);
  scroll-margin-top: 80px;
}

@media (max-width: 860px) {
  .faq-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .faq-nav { grid-template-columns: 1fr; }
}

.faq-nav__pill:hover,
.faq-nav__pill--active {
  background: rgba(5, 150, 105, 0.08);
  color: var(--zen-accent-dark);
  border-color: rgba(5, 150, 105, 0.3);
}

.faq-category {
  scroll-margin-top: 80px;
}

/* ── Search bar ──────────────────────────────────────────── */
.faq-search {
  position: relative;
  max-width: 780px;
  margin: 0 auto var(--zen-space-lg);
}

.faq-search__input {
  width: 100%;
  padding: var(--zen-space-md) var(--zen-space-lg);
  padding-left: calc(var(--zen-space-lg) + 28px);
  font-size: var(--zen-text-base);
  font-family: inherit;
  color: var(--zen-text-primary);
  background: var(--zen-bg-secondary);
  border: 1px solid var(--zen-border);
  border-radius: var(--zen-radius-lg);
  outline: none;
  transition: border-color var(--zen-transition-fast),
              box-shadow var(--zen-transition-fast);
}

.faq-search__input::placeholder {
  color: var(--zen-text-tertiary);
}

.faq-search__input:focus {
  border-color: var(--zen-accent);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.faq-search__icon {
  position: absolute;
  left: var(--zen-space-lg);
  top: 50%;
  transform: translateY(-50%);
  color: var(--zen-text-tertiary);
  pointer-events: none;
  transition: color var(--zen-transition-fast);
}

.faq-search__input:focus ~ .faq-search__icon {
  color: var(--zen-accent);
}

/* ── Open-item highlight ─────────────────────────────────── */
.faq-item[open] {
  background: rgba(5, 150, 105, 0.03);
}

/* ── Search-filter visibility ────────────────────────────── */
.faq-item--hidden {
  display: none;
}

.faq-category--hidden {
  display: none;
}

/* ── "Still have questions?" CTA ─────────────────────────── */
.faq-cta {
  max-width: 780px;
  margin: var(--zen-space-2xl) auto 0;
  padding: var(--zen-space-xl) var(--zen-space-2xl);
  background: var(--zen-bg-secondary);
  border: 1px solid var(--zen-border);
  border-radius: var(--zen-radius-lg);
  box-shadow: var(--zen-shadow-sm);
  text-align: center;
}

.faq-cta__title {
  font-size: var(--zen-text-lg);
  font-weight: var(--zen-weight-semibold);
  color: var(--zen-text-primary);
  margin: 0 0 var(--zen-space-sm);
}

.faq-cta__text {
  font-size: var(--zen-text-base);
  color: var(--zen-text-secondary);
  margin: 0 0 var(--zen-space-lg);
  line-height: var(--zen-leading-relaxed);
}
/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--zen-space-lg);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--zen-space-md);
  margin-top: var(--zen-space-lg);
}

.features-grid--performance {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.feature-card {
  background: var(--zen-bg-secondary);
  border: 1px solid var(--zen-border);
  border-radius: var(--zen-radius-md);
  box-shadow: var(--zen-shadow-sm);
  padding: var(--zen-space-lg);
  transition: all var(--zen-transition-normal);
}

/* Marketing pages favour scanability over decorative hover demos. */
.feature-card--visual {
  min-height: 0;
}

.feature-card--visual .feature-visual {
  display: none;
}

.feature-card__title {
  margin-bottom: 0;
}

.feature-card:hover {
  border-color: rgba(5, 150, 105, 0.3);
  box-shadow: var(--zen-shadow-md);
  transform: translateY(-2px);
}

.feature-card__icon {
  width: 40px;
  height: 40px;
  color: var(--zen-accent);
  margin-bottom: var(--zen-space-md);
}

.feature-card__title {
  font-size: var(--zen-text-md);
  font-weight: var(--zen-weight-semibold);
  color: var(--zen-text-primary);
  margin-bottom: var(--zen-space-xs);
}

.feature-card__title--metric {
  font-size: 2rem;
  color: var(--zen-accent);
}

.feature-card__eyebrow {
  font-weight: var(--zen-weight-semibold);
  margin-bottom: 0.5rem;
}

.feature-card__desc {
  font-size: var(--zen-text-sm);
  color: var(--zen-text-secondary);
  line-height: var(--zen-leading-relaxed);
  margin: 0;
}

.feature-card--visual {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Base feature visual container */
.feature-visual {
  margin-top: var(--zen-space-md);
  padding: 12px;
  background: var(--zen-bg-tertiary);
  border: 1px solid var(--zen-border);
  border-radius: var(--zen-radius-sm);
  font-family: var(--zen-font-mono);
  font-size: var(--zen-text-xs);
  transition: all var(--zen-transition-normal);
  opacity: 0.85;
  transform: translateY(0);
}

.feature-card--visual:hover .feature-visual {
  opacity: 1;
  border-color: rgba(5, 150, 105, 0.4);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.12);
  transform: translateY(-2px);
}

/* 1. Terminal Visual (Ollama) */
.visual-terminal {
  position: relative;
  background: #0f172a;
  color: #f8fafc;
  border-radius: 6px;
  padding: 8px 10px;
}

.visual-terminal__bar {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid #1e293b;
}

.visual-terminal__bar .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.visual-terminal__title {
  margin-left: auto;
  font-size: 10px;
  color: #94a3b8;
}

.visual-terminal__code {
  line-height: 1.4;
}

.highlight-green { color: #34d399; font-weight: 600; }
.dim { color: #64748b; }

.visual-shield {
  display: flex;
  justify-content: center;
  margin-top: 6px;
  color: var(--zen-accent);
}
.visual-shield svg {
  width: 20px;
  height: 20px;
  transition: transform 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.feature-card--visual:hover .visual-shield svg {
  transform: scale(1.2) rotate(5deg);
  color: #10b981;
}

/* 2. Key Cipher Visual */
.visual-keychain-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.key-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px;
  background: var(--zen-bg-secondary);
  border-radius: 4px;
  border: 1px solid var(--zen-border-subtle);
}
.key-label {
  font-size: 10px;
  color: var(--zen-text-tertiary);
}
.key-arrow {
  text-align: center;
  font-size: 10px;
  color: var(--zen-accent);
  font-weight: 600;
  padding: 2px 0;
  transition: transform var(--zen-transition-fast);
}
.feature-card--visual:hover .key-arrow {
  transform: translateY(1px);
  color: var(--zen-accent-hover);
}

/* 3. Fallback Pipeline */
.visual-pipeline {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.node {
  display: flex;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 11px;
}
.node--failed {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.node--active {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}
.pipeline-pulse {
  text-align: center;
  font-size: 10px;
  color: var(--zen-accent);
  font-weight: 600;
}
.feature-card--visual:hover .node--active {
  animation: pulseGreen 1.5s infinite alternate;
}
@keyframes pulseGreen {
  from { box-shadow: 0 0 2px rgba(16, 185, 129, 0.4); }
  to { box-shadow: 0 0 8px rgba(16, 185, 129, 0.8); }
}

/* 4. Voice Learner */
.voice-box {
  position: relative;
  overflow: hidden;
  background: #0f172a;
  color: #e2e8f0;
  padding: 8px;
  border-radius: 4px;
}
.voice-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #0284c7, transparent);
  opacity: 0;
}
.feature-card--visual:hover .voice-scan-line {
  opacity: 1;
  animation: scanVertical 1.5s infinite ease-in-out;
}
@keyframes scanVertical {
  0% { top: 0; }
  100% { top: 100%; }
}
.voice-sample { font-size: 10px; color: #94a3b8; }
.voice-matched { margin-top: 4px; font-size: 11px; color: #38bdf8; }

/* 5. Changelog Preview */
.changelog-preview {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.3;
}
.cl-h { font-weight: 700; color: var(--zen-accent-dark); font-size: 11px; }
.cl-item { font-size: 10px; color: var(--zen-text-secondary); transition: transform 200ms ease; }
.feature-card--visual:hover .cl-item {
  transform: translateX(3px);
}

/* 6. Commit Style Tags Visual */
.style-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.tag-pill {
  padding: 3px 7px;
  border-radius: 12px;
  background: var(--zen-bg-secondary);
  border: 1px solid var(--zen-border);
  font-size: 10px;
  color: var(--zen-text-secondary);
  transition: all var(--zen-transition-fast);
}
.tag-pill.active {
  background: var(--zen-accent-subtle);
  border-color: var(--zen-accent);
  color: var(--zen-accent-dark);
  font-weight: 600;
}
.feature-card--visual:hover .tag-pill:nth-child(2) {
  background: rgba(2, 132, 199, 0.1);
  border-color: #0284c7;
  color: #0369a1;
}

.section__action {
  text-align: center;
}

.section__action--top {
  margin-top: var(--zen-space-lg);
}

/* Feature visuals responsive — smaller cards on mobile */
@media (max-width: 480px) {
  .feature-visual {
    padding: 8px;
    font-size: 9px;
  }
  .visual-terminal {
    padding: 6px 8px;
  }
  .node {
    padding: 4px 6px;
    font-size: 10px;
  }
}
/* --- Footer --- */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--zen-border);
  padding: var(--zen-space-2xl) 0 var(--zen-space-xl);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--zen-space-xl);
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--zen-space-sm);
  margin-bottom: var(--zen-space-sm);
}

.footer-brand img {
  height: 24px;
  width: auto;
}

.footer-brand span {
  font-size: var(--zen-text-sm);
  font-weight: var(--zen-weight-semibold);
  color: var(--zen-text-primary);
}

.footer-copy {
  font-size: var(--zen-text-xs);
  color: var(--zen-text-tertiary);
  margin: 0;
}

.footer-links {
  display: flex;
  gap: var(--zen-space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  font-size: var(--zen-text-xs);
  color: var(--zen-text-secondary);
  text-decoration: none;
  transition: color var(--zen-transition-fast);
}

.footer-links a:hover {
  color: var(--zen-accent-dark);
}

/* --- Admin Footer --- */
.admin-footer {
  text-align: center;
  padding: var(--zen-space-md) 0 var(--zen-space-xl);
  font-size: var(--zen-text-xs);
  color: var(--zen-text-tertiary);
  border-top: 1px solid var(--zen-border);
  margin-top: var(--zen-space-xl);
}

.admin-footer__version {
  font-weight: var(--zen-weight-medium);
}

/* --- Forms --- */
.form-group {
  margin-bottom: var(--zen-space-lg);
}

.form-group label {
  display: block;
  font-size: var(--zen-text-sm);
  font-weight: var(--zen-weight-medium);
  color: var(--zen-text-secondary);
  margin-bottom: var(--zen-space-xs);
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--zen-bg-tertiary);
  border: 1px solid var(--zen-border);
  border-radius: var(--zen-radius-sm);
  color: var(--zen-text-primary);
  font-size: var(--zen-text-base);
  font-family: inherit;
  outline: none;
  transition: border-color var(--zen-transition-fast);
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--zen-accent);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--zen-bg-secondary);
  border: 1px solid var(--zen-border);
  border-radius: var(--zen-radius-md);
  color: var(--zen-text-primary);
  font-size: var(--zen-text-base);
  font-family: inherit;
  outline: none;
  box-shadow: none;
  transition: border-color var(--zen-transition-fast), box-shadow var(--zen-transition-fast);
}

.form-textarea {
  min-height: 180px;
  resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--zen-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--zen-accent) 15%, transparent);
  outline: none;
}

.form-input--valid {
  border-color: var(--zen-status-ok);
}

.form-input--invalid {
  border-color: var(--zen-color-danger);
}

.form-label {
  display: block;
  font-size: var(--zen-text-sm);
  font-weight: var(--zen-weight-medium);
  color: var(--zen-text-secondary);
  margin-bottom: var(--zen-space-xs);
}

.form-help {
  margin-top: 6px;
  font-size: var(--zen-text-xs);
  color: var(--zen-text-tertiary);
}

.form-section {
  margin-bottom: var(--zen-space-lg);
}
.form-section:last-child {
  margin-bottom: 0;
}

.form-section--lg {
  margin-bottom: var(--zen-space-xl);
}

.form-section--xl {
  margin-bottom: var(--zen-space-2xl);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  background: var(--zen-bg-secondary);
  border: 1px solid var(--zen-border);
  border-radius: var(--zen-radius-md);
  color: var(--zen-text-primary);
  font-size: var(--zen-text-base);
  font-family: inherit;
  outline: none;
  transition: border-color var(--zen-transition-fast);
}

.form-control:focus {
  border-color: var(--zen-accent);
}

.form-control--inline {
  width: auto;
  display: inline-block;
}

.form-control--compact {
  padding: 6px 10px;
  font-size: var(--zen-text-sm);
}

.form-feedback {
  display: none;
  margin-top: 4px;
  font-size: var(--zen-text-xs);
}

.form-feedback--success {
  display: block;
  color: var(--zen-status-ok);
}

.form-feedback--error {
  display: block;
  color: var(--zen-color-danger);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: var(--zen-space-sm);
  margin-top: var(--zen-space-md);
}

.textarea {
  resize: vertical;
  min-height: 120px;
}

/* Honeypot field — hidden from humans */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* --- Contact Form --- */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
}

.form-message {
  padding: var(--zen-space-md);
  border-radius: var(--zen-radius-md);
  margin-bottom: var(--zen-space-lg);
  font-size: var(--zen-text-sm);
}

.form-message--success {
  background: color-mix(in srgb, var(--zen-status-ok) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--zen-status-ok) 35%, transparent);
  color: var(--zen-status-ok);
}

.form-message--error {
  background: color-mix(in srgb, var(--zen-status-error) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--zen-status-error) 35%, transparent);
  color: var(--zen-status-error);
}
/* --- Hero --- */
.hero {
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(1rem, 2vw, 1.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1000px, 100vw);
  height: 600px;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.06) 0%, rgba(2, 132, 199, 0.04) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero--not-found {
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.hero--not-found .container {
  text-align: center;
}

.hero__title {
  font-size: clamp(2.25rem, 4.5vw, 3.65rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--zen-text-primary);
  max-width: 820px;
  margin: 0 auto 16px;
  line-height: 1.15;
}

.hero__title--compact {
  font-size: 2.5rem;
}

.hero__subtitle {
  font-size: var(--zen-text-lg);
  color: var(--zen-text-secondary);
  line-height: var(--zen-leading-relaxed);
  max-width: 650px;
  margin: 0 auto var(--zen-space-xl);
}

.hero__actions {
  display: flex;
  gap: var(--zen-space-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--zen-space-xl);
}

.hero__install-group {
  display: flex;
  flex-direction: column;
  gap: var(--zen-space-md);
  align-items: center;
  margin-bottom: 0;
  width: 100%;
}

.hero__install-sources {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 820px;
  width: 100%;
}

.hero__install-sources .install-btn:not(.install-btn--primary) {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  padding: 9px 12px;
}

.hero__install-sources .install-btn:not(.install-btn--primary):hover {
  background: var(--zen-bg-secondary);
  border-color: var(--zen-border);
  transform: none;
}

.install-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--zen-bg-secondary);
  border: 1px solid var(--zen-border);
  border-radius: var(--zen-radius-md);
  color: var(--zen-text-primary);
  font-size: var(--zen-text-sm);
  font-weight: var(--zen-weight-semibold);
  text-decoration: none;
  transition: all var(--zen-transition-normal);
  box-shadow: var(--zen-shadow-sm);
  position: relative;
  overflow: hidden;
}

.install-btn:hover {
  border-color: var(--zen-accent);
  box-shadow: var(--zen-shadow-md);
  transform: translateY(-2px);
  color: var(--zen-accent-dark);
}

.install-btn--primary {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  border-color: #059669;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
}

.install-btn--primary:hover {
  background: linear-gradient(135deg, #047857 0%, #064e3b 100%);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.35);
  transform: translateY(-2px);
}

.install-btn--openvsx {
  background: #ffffff;
  border-color: #d8b4fe;
  color: #7e22ce;
}

.install-btn--openvsx:hover {
  border-color: #9333ea;
  background: #faf5ff;
  color: #6b21a8;
  box-shadow: 0 4px 16px rgba(147, 51, 234, 0.15);
}

.install-btn--vsix {
  background: #ffffff;
  border-color: #bae6fd;
  color: #0369a1;
}

.install-btn--vsix:hover {
  border-color: #0284c7;
  background: #f0f9ff;
  color: #075985;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.15);
}

.install-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: currentColor;
}

/* --- Terminal Command Snippet Box --- */
.hero__terminal-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 8px 18px;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: var(--zen-radius-md);
  color: #38bdf8;
  font-family: var(--zen-font-mono);
  font-size: 0.8125rem;
  box-shadow: var(--zen-shadow-md);
  max-width: 100%;
}

.hero__terminal-box code {
  color: #e2e8f0;
  user-select: all;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero__terminal-box .copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--zen-radius-sm);
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero__terminal-box .copy-btn:hover {
  background: #334155;
  color: #f8fafc;
  border-color: #475569;
  transform: translateY(-1px);
}

.hero__terminal-box .copy-btn.is-copied {
  background: rgba(16, 185, 129, 0.16);
  border-color: #10b981;
  color: #34d399;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.25);
  transform: scale(1.04);
}

.hero__terminal-box .copy-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transition: transform 0.25s ease;
}

.hero__terminal-box .copy-btn.is-copied svg {
  transform: scale(1.15) rotate(5deg);
}

/* --- Interactive Live Commit Simulator Demo Card --- */
.hero__demo-card {
  max-width: 780px;
  margin: var(--zen-space-2xl) auto 0;
  background: var(--zen-bg-secondary);
  border: 1px solid var(--zen-border);
  border-radius: var(--zen-radius-lg);
  box-shadow: var(--zen-shadow-lg);
  overflow: hidden;
  text-align: left;
  position: relative;
  z-index: 1;
}

.demo-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #f8fafc;
  border-bottom: 1px solid var(--zen-border);
}

.demo-card__dots {
  display: flex;
  gap: 6px;
}

.demo-card__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.demo-card__dots span:nth-child(1) { background: #f87171; }
.demo-card__dots span:nth-child(2) { background: #fbbf24; }
.demo-card__dots span:nth-child(3) { background: #34d399; }

.demo-card__style-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  background: #e2e8f0;
  padding: 3px;
  border-radius: var(--zen-radius-sm);
}

.style-tab {
  padding: 4px 10px;
  border: none;
  background: transparent;
  color: var(--zen-text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--zen-radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--zen-transition-fast);
}

.style-tab.active,
.style-tab:hover {
  background: var(--zen-bg-secondary);
  color: var(--zen-accent);
  box-shadow: var(--zen-shadow-sm);
}

.demo-card__body {
  padding: 20px;
  font-family: var(--zen-font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.demo-card__diff {
  background: #f8fafc;
  border: 1px solid var(--zen-border);
  border-radius: var(--zen-radius-md);
  padding: 14px;
  margin-bottom: 16px;
  color: #334155;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.diff-file {
  color: #64748b;
  font-weight: 600;
  margin-bottom: 4px;
}

.diff-add {
  color: #059669;
  background: rgba(5, 150, 105, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

.demo-card__output {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #0f172a;
  color: #f8fafc;
  padding: 14px 16px;
  border-radius: var(--zen-radius-md);
}

.output-label {
  font-size: 0.78rem;
  color: var(--zen-accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.demo-card__output code {
  color: #34d399;
  font-size: 0.875rem;
}

.hero__logo-wrapper {
  position: relative;
  display: inline-block;
  margin: var(--zen-space-lg) auto 0;
  padding: 20px;
}

.hero__logo-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.15) 0%, rgba(2, 132, 199, 0.08) 50%, transparent 75%);
  filter: blur(20px);
  z-index: 0;
  animation: logoPulse 4s ease-in-out infinite alternate;
}

@keyframes logoPulse {
  0% { transform: scale(0.95); opacity: 0.6; }
  100% { transform: scale(1.1); opacity: 0.9; }
}

.hero__logo {
  position: relative;
  z-index: 1;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 6px 12px rgba(15, 23, 42, 0.12));
  transition: transform var(--zen-transition-slow);
}

.hero__logo:hover {
  transform: scale(1.08) rotate(2deg);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--zen-space-xs);
  padding: 6px 16px;
  background: rgba(5, 150, 105, 0.06);
  border: 1px solid rgba(5, 150, 105, 0.2);
  color: var(--zen-accent-dark);
  border-radius: var(--zen-radius-full);
  font-size: var(--zen-text-sm);
  font-weight: var(--zen-weight-medium);
  box-shadow: var(--zen-shadow-sm);
}

#hero .hero__badge {
  margin-bottom: var(--zen-space-md);
}

/* --- Hero Title Gradient & Dynamic AI Typography --- */
.hero__title-gradient {
  background: linear-gradient(135deg, #059669 0%, #0284c7 50%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* --- Dynamic Eye-Catching Borderless IDE Words --- */
.ide-words-group {
  display: inline;
}

.ide-word {
  display: inline;
  font-size: inherit;
  font-weight: inherit;
  cursor: default;
  transition: opacity 0.3s ease, filter 0.3s ease;
  position: relative;
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: passColorWave 4s linear infinite paused;
}

.ide-word.is-active,
.ide-word:hover {
  animation-play-state: running;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
}

@keyframes passColorWave {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* --- VS Code Passing Color Stream --- */
.ide-word--vscode {
  background-image: linear-gradient(90deg, #0284c7 0%, #38bdf8 40%, #0078d4 70%, #0284c7 100%);
}

.ide-word--vscode.is-active,
.ide-word--vscode:hover {
  filter: drop-shadow(0 0 8px rgba(2, 132, 199, 0.5));
}

/* --- Cursor Passing Color Stream --- */
.ide-word--cursor {
  background-image: linear-gradient(90deg, #6366f1 0%, #c084fc 40%, #4f46e5 70%, #6366f1 100%);
}

.ide-word--cursor.is-active,
.ide-word--cursor:hover {
  filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.5));
}

/* --- Windsurf Passing Color Stream --- */
.ide-word--windsurf {
  background-image: linear-gradient(90deg, #0d9488 0%, #34d399 40%, #0f766e 70%, #0d9488 100%);
}

.ide-word--windsurf.is-active,
.ide-word--windsurf:hover {
  filter: drop-shadow(0 0 8px rgba(13, 148, 136, 0.5));
}

/* --- Antigravity Passing Color Stream --- */
.ide-word--antigravity {
  background-image: linear-gradient(90deg, #ec4899 0%, #a855f7 35%, #06b6d4 70%, #ec4899 100%);
}

.ide-word--antigravity.is-active,
.ide-word--antigravity:hover {
  filter: drop-shadow(0 0 10px rgba(236, 72, 153, 0.55));
}

/* --- Kiro Passing Color Stream --- */
.ide-word--kiro {
  background-image: linear-gradient(90deg, #f59e0b 0%, #fb923c 40%, #ef4444 70%, #f59e0b 100%);
}

.ide-word--kiro.is-active,
.ide-word--kiro:hover {
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.55));
}




/* ─────────────────────────────────────────────────────────────────────────────
   License delivery — /migrate, /portal/success, /portal/resend-key

   These three pages exist to put a license key in front of a human being who has
   paid for one. The previous storefront made people hunt for it, and two of them
   charged back saying the product was never delivered.

   So the key gets the loudest treatment on the page: monospace, oversized, in the
   accent colour, boxed, and selectable in one click. Everything else is quieter
   than it is. That hierarchy is the feature.
   ───────────────────────────────────────────────────────────────────────────── */

.container--narrow {
    max-width: 680px;
}

.migrate-card {
    background: var(--zen-bg-elevated);
    border: 1px solid var(--zen-border);
    border-radius: var(--zen-radius-lg);
    padding: var(--zen-space-2xl);
    margin-bottom: var(--zen-space-xl);
    box-shadow: var(--zen-shadow-sm);
}

.migrate-card h2 {
    margin: 0 0 var(--zen-space-md);
    font-size: var(--zen-text-xl);
    font-weight: var(--zen-weight-semibold);
    color: var(--zen-text-primary);
}

.migrate-card h3 {
    margin: 0 0 var(--zen-space-sm);
    font-size: var(--zen-text-base);
    font-weight: var(--zen-weight-semibold);
    color: var(--zen-text-primary);
}

.migrate-card p {
    margin: 0 0 var(--zen-space-md);
    color: var(--zen-text-secondary);
    line-height: 1.65;
}

.migrate-card--success {
    border-color: var(--zen-accent);
}

/* The key itself. `user-select: all` means one click selects the whole thing —
   a key that is fiddly to copy is a key that gets mistyped and then reported
   as broken. */
.migrate-key {
    font-family: var(--zen-font-mono);
    font-size: var(--zen-text-2xl);
    font-weight: var(--zen-weight-semibold);
    letter-spacing: 0.05em;
    text-align: center;
    color: var(--zen-accent-darker);
    background: var(--zen-accent-subtle);
    border: 1px solid var(--zen-accent);
    border-radius: var(--zen-radius-md);
    padding: var(--zen-space-lg);
    margin: 0 0 var(--zen-space-lg) !important;
    word-break: break-all;
    user-select: all;
    -webkit-user-select: all;
}

.migrate-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--zen-space-sm);
    align-items: center;
    margin-bottom: var(--zen-space-lg) !important;
}

/* ── Form ─────────────────────────────────────────────────────────────────── */

.migrate-form {
    display: flex;
    flex-direction: column;
    gap: var(--zen-space-xs);
    margin-top: var(--zen-space-lg);
}

.migrate-form label {
    font-size: var(--zen-text-sm);
    font-weight: var(--zen-weight-medium);
    color: var(--zen-text-primary);
    margin-top: var(--zen-space-md);
}

.migrate-form input[type="text"],
.migrate-form input[type="email"] {
    width: 100%;
    padding: var(--zen-space-sm) var(--zen-space-md);
    font-family: var(--zen-font-family);
    font-size: var(--zen-text-base);
    color: var(--zen-text-primary);
    background: var(--zen-bg-primary);
    border: 1px solid var(--zen-border);
    border-radius: var(--zen-radius-md);
    transition: border-color var(--zen-transition-fast);
}

/* The legacy key is a UUID — monospace makes a transcription error visible. */
.migrate-form input#legacy_key {
    font-family: var(--zen-font-mono);
    font-size: var(--zen-text-sm);
}

.migrate-form input:focus {
    outline: none;
    border-color: var(--zen-accent);
    box-shadow: 0 0 0 3px var(--zen-accent-subtle);
}

.migrate-form button {
    margin-top: var(--zen-space-lg);
    align-self: flex-start;
}

.field-hint {
    font-size: var(--zen-text-sm);
    margin: var(--zen-space-xs) 0 0 !important;
}

.migrate-fineprint {
    font-size: var(--zen-text-sm);
    margin-top: var(--zen-space-lg) !important;
    margin-bottom: 0 !important;
}

/* ── Flash ────────────────────────────────────────────────────────────────── */

.migrate-flash {
    padding: var(--zen-space-md);
    border-radius: var(--zen-radius-md);
    margin-bottom: var(--zen-space-lg);
    font-size: var(--zen-text-sm);
    line-height: 1.6;
    border: 1px solid transparent;
}

/* Desaturated on purpose. Nobody reading these pages is in trouble — they have
   already paid — so an alarming red would be lying to them. */
.migrate-flash--error {
    background: color-mix(in srgb, var(--zen-status-error) 12%, transparent);
    border-color: var(--zen-status-error);
    color: var(--zen-text-primary);
}

.migrate-flash--success {
    background: var(--zen-accent-subtle);
    border-color: var(--zen-accent);
    color: var(--zen-text-primary);
}

/* ── Misc ─────────────────────────────────────────────────────────────────── */

.steps {
    padding-left: var(--zen-space-lg);
    margin: 0 0 var(--zen-space-md);
    color: var(--zen-text-secondary);
    line-height: 1.7;
}

.steps li {
    margin-bottom: var(--zen-space-xs);
}

.divider {
    height: 1px;
    background: var(--zen-border-subtle);
    border: 0;
    margin: var(--zen-space-xl) 0;
}

.muted {
    color: var(--zen-text-tertiary);
}

.migrate-card code {
    font-family: var(--zen-font-mono);
    font-size: 0.9em;
    background: var(--zen-bg-secondary);
    padding: 2px 6px;
    border-radius: var(--zen-radius-sm);
    word-break: break-all;
}

@media (max-width: 640px) {
    .migrate-card {
        padding: var(--zen-space-lg);
    }

    /* The key must never overflow its box on a phone, or it cannot be copied. */
    .migrate-key {
        font-size: var(--zen-text-lg);
        letter-spacing: 0.02em;
        padding: var(--zen-space-md);
    }

    .migrate-actions .btn,
    .migrate-form button {
        width: 100%;
        justify-content: center;
    }
}
/* --- Navigation --- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 60px;
    background: var(--zen-glass-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--zen-glass-border);
    display: flex;
    align-items: center;
    transition: all var(--zen-transition-normal);
}

.site-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--zen-text-primary);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.nav-brand img {
    height: 30px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.08));
}

.nav-brand span {
    font-size: var(--zen-text-md);
    font-weight: var(--zen-weight-semibold);
    color: var(--zen-text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    padding: 6px 11px;
    font-size: var(--zen-text-sm);
    font-weight: var(--zen-weight-medium);
    color: var(--zen-text-secondary);
    border-radius: var(--zen-radius-sm);
    transition: all var(--zen-transition-fast);
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(5, 150, 105, 0.06);
    color: var(--zen-accent-dark);
}

.nav-login {
    margin-left: var(--zen-space-xs);
}

.nav-login .btn {
    color: var(--zen-text-primary);
    border-color: var(--zen-border);
}
.nav-login .btn:hover {
    background: var(--zen-bg-tertiary);
    color: var(--zen-text-primary);
    text-decoration: none;
}

.nav-cta {
    margin-left: var(--zen-space-xs);
}

.nav-cta .btn {
    background: var(--zen-accent);
    color: #ffffff;
    border-color: var(--zen-accent);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.2);
}

.nav-cta .btn:hover {
    background: var(--zen-accent-hover);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* Mobile hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--zen-space-sm);
    color: var(--zen-text-secondary);
}
/* --- Page Content (secondary pages) --- */
.page-header {
  padding: clamp(3.5rem, 8vw, 6rem) 0 var(--zen-space-2xl);
  text-align: center;
}

.page-header h1 {
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  margin-bottom: var(--zen-space-sm);
}

.page-header p {
  font-size: var(--zen-text-lg);
  color: var(--zen-text-secondary);
}

.page-header .container { max-width: 900px; }

.page-header--compact {
  padding: var(--zen-space-xl) 0 var(--zen-space-md);
  text-align: left;
}

.page-header--compact .container {
  max-width: 1280px;
  width: min(1280px, calc(100vw - 64px));
}

.page-header--compact h1 {
  font-size: var(--zen-text-2xl);
  margin-bottom: 0;
}

.page-content {
  padding: 0 0 var(--zen-space-3xl);
}

.page-content .container {
  width: min(900px, calc(100vw - 64px));
}

.page-content--platform .container {
  width: min(1280px, calc(100vw - 64px));
}

.page-content h2 {
  font-size: var(--zen-text-2xl);
  margin-top: var(--zen-space-2xl);
  margin-bottom: var(--zen-space-md);
}

.page-content > .container > h2:first-child { margin-top: 0; }

.page-content h3 {
  font-size: var(--zen-text-xl);
  margin-top: var(--zen-space-xl);
  margin-bottom: var(--zen-space-sm);
}

.page-content p,
.page-content li {
  font-size: var(--zen-text-md);
  color: var(--zen-text-secondary);
  line-height: var(--zen-leading-relaxed);
  margin-bottom: var(--zen-space-lg);
}

.page-content ul,
.page-content ol {
  padding-left: var(--zen-space-lg);
}

.page-content blockquote {
  margin: var(--zen-space-lg) 0;
  padding: var(--zen-space-lg) var(--zen-space-xl);
  background: var(--zen-bg-secondary);
  border-left: 4px solid var(--zen-accent);
  border-radius: 0 var(--zen-radius-md) var(--zen-radius-md) 0;
}

.page-content blockquote p {
  color: var(--zen-text-primary);
  margin-bottom: 0;
  font-size: var(--zen-text-base);
  line-height: var(--zen-leading-relaxed);
}
/* --- Portal: dashboard, license detail, invoice — the "pp-card" / "platform-*" system --- */

/* --- Stat tiles (dashboard, license detail, admin dashboard) --- */
.platform-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--zen-space-md);
  margin-bottom: var(--zen-space-xl);
}

.platform-stat {
  background: var(--zen-bg-elevated);
  border: 1px solid var(--zen-border);
  border-radius: var(--zen-radius-lg);
  padding: var(--zen-space-lg);
  text-align: center;
}

.platform-stat__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--zen-radius-full);
  background: var(--zen-bg-tertiary);
  color: var(--zen-text-secondary);
  margin-bottom: var(--zen-space-sm);
}

.platform-stat__icon--accent {
  background: var(--zen-accent-subtle);
  color: var(--zen-accent-dark);
}

.platform-stat__value {
  font-size: var(--zen-text-2xl);
  font-weight: var(--zen-weight-semibold);
  color: var(--zen-text-primary);
  line-height: var(--zen-leading-tight);
}

.platform-stat__value--accent {
  color: var(--zen-accent-dark);
}

.platform-stat__value--danger {
  color: var(--zen-color-danger);
}

.platform-stat__label {
  margin-top: var(--zen-space-xs);
  font-size: var(--zen-text-xs);
  color: var(--zen-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --- Section headers above a list/table --- */
.platform-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--zen-space-md);
}

.platform-section-head h2 {
  font-size: var(--zen-text-lg);
  margin: 0;
}

.section-top-lg {
  margin-top: var(--zen-space-2xl);
}

/* --- Rows (license rows, device rows) --- */
.platform-rows,
.stack-grid-sm {
  display: flex;
  flex-direction: column;
  gap: var(--zen-space-sm);
}

.platform-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--zen-space-md);
  background: var(--zen-bg-elevated);
  border: 1px solid var(--zen-border);
  border-radius: var(--zen-radius-md);
  padding: var(--zen-space-md) var(--zen-space-lg);
  flex-wrap: wrap;
}

.platform-row--faded {
  opacity: 0.6;
}

.platform-row__content {
  flex: 1;
  min-width: 0;
}

.platform-empty {
  padding: var(--zen-space-xl);
  text-align: center;
  background: var(--zen-bg-tertiary);
  border-radius: var(--zen-radius-md);
  color: var(--zen-text-secondary);
}

.platform-empty p {
  margin: 0 0 var(--zen-space-sm);
}
.platform-empty p:last-child {
  margin-bottom: 0;
}

/* --- Dashboard header bar --- */
.portal-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--zen-space-md);
  width: 100%;
  padding-bottom: var(--zen-space-xs);
}

.portal-actions {
  display: flex;
  align-items: center;
  gap: var(--zen-space-sm);
  flex-wrap: wrap;
}

.portal-actions .btn {
  padding: 8px 16px;
  font-weight: var(--zen-weight-medium);
}

/* --- Dashboard empty state ("No licenses yet") --- */
.portal-empty-cta {
  text-align: center;
  padding: var(--zen-space-3xl) var(--zen-space-lg);
  background: var(--zen-bg-elevated);
  border: 1px dashed var(--zen-border);
  border-radius: var(--zen-radius-lg);
}

.portal-empty-cta__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--zen-text-tertiary);
  margin-bottom: var(--zen-space-md);
}

.portal-empty-cta__title {
  font-size: var(--zen-text-lg);
  margin: 0 0 var(--zen-space-xs);
}

.portal-empty-cta__text {
  color: var(--zen-text-secondary);
  margin: 0 0 var(--zen-space-lg);
}

.portal-empty-cta__actions {
  display: flex;
  justify-content: center;
}

/* --- Dashboard license row --- */
.portal-license-row__main {
  min-width: 0;
}

.portal-license-row__title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--zen-space-xs);
  font-weight: var(--zen-weight-medium);
  color: var(--zen-text-primary);
  margin-bottom: 4px;
}

.portal-license-row__meta {
  font-size: var(--zen-text-sm);
  color: var(--zen-text-tertiary);
  white-space: nowrap;
}

.portal-below-list {
  margin-top: var(--zen-space-md);
  text-align: center;
}

.portal-below-list__link {
  font-size: var(--zen-text-sm);
  color: var(--zen-accent-dark);
}

.portal-profile-card {
  max-width: 680px;
  margin: 0 auto;
}

/* --- Back link at top of detail pages --- */
.portal-back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--zen-text-sm);
  color: var(--zen-text-secondary);
  margin-bottom: var(--zen-space-sm);
}

.portal-back-link:hover {
  color: var(--zen-text-primary);
}

.portal-back-link--sm {
  font-size: var(--zen-text-xs);
}

.portal-invoice-link {
  display: inline-block;
  margin-right: var(--zen-space-sm);
  color: var(--zen-accent-dark);
  font-size: var(--zen-text-sm);
}

/* --- Add-on device slots upsell card --- */
.portal-addon-card {
  margin-top: var(--zen-space-lg);
}

.portal-addon-card--urgent {
  border-color: var(--zen-color-danger);
}

.portal-addon-alert {
  display: flex;
  align-items: center;
  gap: var(--zen-space-sm);
  padding: var(--zen-space-sm) var(--zen-space-md);
  border-radius: var(--zen-radius-md);
  font-size: var(--zen-text-sm);
  margin-bottom: var(--zen-space-md);
}

.portal-addon-alert--warn {
  background: color-mix(in srgb, var(--zen-status-warning) 12%, transparent);
  color: color-mix(in srgb, var(--zen-status-warning) 85%, var(--zen-text-primary));
}

.portal-addon-alert--info {
  background: color-mix(in srgb, var(--zen-status-syncing) 10%, transparent);
  color: color-mix(in srgb, var(--zen-status-syncing) 85%, var(--zen-text-primary));
}

.portal-addon-form {
  margin-top: var(--zen-space-sm);
}

.portal-addon-form__row {
  display: flex;
  align-items: flex-end;
  gap: var(--zen-space-md);
  flex-wrap: wrap;
}

.portal-addon-form__field label,
.portal-addon-form__total label {
  display: block;
  font-size: var(--zen-text-xs);
  color: var(--zen-text-tertiary);
  margin-bottom: 4px;
}

.portal-addon-form__total {
  min-width: 80px;
}

.portal-addon-price {
  display: block;
  font-size: var(--zen-text-lg);
  font-weight: var(--zen-weight-semibold);
  color: var(--zen-text-primary);
}

.portal-addon-note {
  margin: var(--zen-space-sm) 0 0;
  font-size: var(--zen-text-xs);
  color: var(--zen-text-tertiary);
}

/* --- Device row content --- */
.device-header {
  display: flex;
  align-items: center;
  gap: var(--zen-space-sm);
  font-weight: var(--zen-weight-medium);
  color: var(--zen-text-primary);
  margin-bottom: var(--zen-space-xs);
}

.device-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 2px var(--zen-space-sm);
  font-size: var(--zen-text-xs);
  color: var(--zen-text-tertiary);
  margin: 0;
}

.device-meta dt {
  color: var(--zen-text-tertiary);
}

.device-meta dd {
  margin: 0;
  color: var(--zen-text-secondary);
}

.device-meta__value {
  display: flex;
  align-items: center;
  gap: 4px;
}

.device-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--zen-space-sm);
}

.device-actions__buttons {
  display: flex;
  gap: var(--zen-space-xs);
}

.device-actions__rename {
  display: flex;
  gap: var(--zen-space-xs);
  width: 100%;
  justify-content: flex-end;
}

.device-actions__rename form {
  display: flex;
  align-items: center;
  gap: var(--zen-space-xs);
  width: 100%;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.device-actions__rename input {
  width: 300px;
  min-width: 240px;
  max-width: 100%;
}

/* --- License key / monospace display --- */
.license-key {
  font-family: var(--zen-font-mono);
  color: var(--zen-text-secondary);
  word-break: break-all;
}

.mono-text {
  font-family: var(--zen-font-mono);
}

/* --- Card (pp-card): the portal/admin bordered card matching .card's token usage --- */
.pp-card {
  background: var(--zen-bg-elevated);
  border: 1px solid var(--zen-border);
  border-radius: var(--zen-radius-lg);
  box-shadow: var(--zen-shadow-sm);
  overflow: hidden;
}

.pp-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--zen-space-sm);
  padding: var(--zen-space-md) var(--zen-space-lg);
  border-bottom: 1px solid var(--zen-border-subtle);
}

.pp-card__body {
  padding: var(--zen-space-lg);
}

.card-body--flush {
  padding: 0;
}

.card-header-title {
  font-size: var(--zen-text-md);
  font-weight: var(--zen-weight-semibold);
  color: var(--zen-text-primary);
  margin: 0;
}

.card-header-title--sm {
  font-size: var(--zen-text-base);
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.pp-card__title-lg {
  font-size: var(--zen-text-lg);
  font-weight: var(--zen-weight-semibold);
  color: var(--zen-text-primary);
  margin: 0;
}

.pp-card__title-xl {
  font-size: var(--zen-text-xl);
  font-weight: var(--zen-weight-semibold);
  color: var(--zen-text-primary);
  margin: 0;
}

/* --- Label/value detail grid (portal and admin detail pages) --- */
.pp-grid-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--zen-space-md);
}

.pp-detail-item {
  display: flex;
  flex-direction: column;
  gap: var(--zen-space-xs);
  padding: var(--zen-space-md) var(--zen-space-lg);
  background: var(--zen-bg-secondary);
  border: 1px solid var(--zen-border-subtle);
  border-radius: var(--zen-radius-md);
  transition: border-color var(--zen-transition-fast), background-color var(--zen-transition-fast);
}

.pp-detail-item:hover {
  border-color: var(--zen-border);
}

.pp-detail-item__label {
  font-size: var(--zen-text-xs);
  font-weight: var(--zen-weight-semibold);
  color: var(--zen-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pp-detail-item__value {
  font-size: var(--zen-text-sm);
  color: var(--zen-text-primary);
  word-break: break-word;
}

/* --- Badge/table modifiers --- */
.pp-badge--spaced {
  margin-left: var(--zen-space-xs);
}

.pp-table--flush {
  border: none;
  border-radius: 0;
}

.pp-table--compact th,
.pp-table--compact td {
  padding: 8px 12px;
}

.pp-table-wrap--embedded {
  margin: 0;
}

.pp-th--wide {
  width: 40%;
}

.inline-meta-muted,
.portal-inline-meta {
  font-size: var(--zen-text-xs);
  color: var(--zen-text-tertiary);
}

.inline-meta-muted--11 {
  font-size: 11px;
}
/* ─────────────────────────────────────────────────────────────────────────────
   Provider Grid & 2D Animated Infinity Marquee Showcase
   ───────────────────────────────────────────────────────────────────────────── */

.provider-showcase {
    display: flex;
    flex-direction: column;
    gap: var(--zen-space-2xl);
    margin: var(--zen-space-xl) 0;
}

/* ── 2D Marquee Ticker Container ── */
.provider-marquee-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
    position: relative;
    padding: 12px 0;
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.provider-marquee-track {
    display: flex;
    gap: 16px;
    width: max-content;
}

.provider-marquee-track--left {
    animation: marqueeLeft 85s linear infinite;
}

.provider-marquee-track--right {
    animation: marqueeRight 85s linear infinite;
}

.provider-marquee-container:hover .provider-marquee-track {
    animation-play-state: paused;
}

@keyframes marqueeLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes marqueeRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* Marquee Pill Item */
.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: #ffffff;
    border: 1px solid var(--zen-border);
    border-radius: var(--zen-radius-full);
    box-shadow: var(--zen-shadow-sm);
    font-size: var(--zen-text-sm);
    font-weight: var(--zen-weight-medium);
    color: var(--zen-text-primary);
    white-space: nowrap;
    transition: all var(--zen-transition-fast);
    cursor: pointer;
}

.marquee-item:hover {
    border-color: var(--zen-accent);
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.15);
    transform: translateY(-2px) scale(1.03);
    color: var(--zen-accent-dark);
}

.marquee-item img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ── Grid Cards with LobeHub Logos ── */
.provider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--zen-space-md);
}

.provider-card {
    background: #ffffff;
    border: 1px solid var(--zen-border);
    border-radius: var(--zen-radius-md);
    padding: var(--zen-space-lg);
    box-shadow: var(--zen-shadow-sm);
    transition: all var(--zen-transition-fast);
}

.provider-card:hover {
    border-color: rgba(5, 150, 105, 0.3);
    box-shadow: var(--zen-shadow-md);
    transform: translateY(-2px);
}

.provider-card__header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--zen-space-xs);
    margin-bottom: 12px;
}

.provider-card__logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.provider-card__logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.provider-card h3 {
    margin: 0;
    font-size: var(--zen-text-base);
    font-weight: var(--zen-weight-semibold);
    color: var(--zen-text-primary);
}

.provider-card p {
    margin: 0;
    font-size: var(--zen-text-sm);
    line-height: 1.6;
    color: var(--zen-text-secondary);
}

.provider-card__badges {
    display: flex;
    gap: 4px;
}

.provider-badge {
    font-size: var(--zen-text-xs);
    font-weight: var(--zen-weight-medium);
    letter-spacing: 0.02em;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--zen-bg-tertiary);
    color: var(--zen-text-secondary);
    white-space: nowrap;
}

.provider-badge--local {
    background: rgba(5, 150, 105, 0.1);
    color: var(--zen-accent-dark);
    font-weight: 600;
}


/* --- Scroll Reveal --- */
.reveal {
  opacity: 1;
  transform: translateY(0);
}

.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity var(--zen-transition-normal),
    transform var(--zen-transition-normal);
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}
/* ─────────────────────────────────────────────────────────────────────────────
   Screenshot gallery.

   These are real screenshots of the extension, so they carry the weight of the page.
   The frame stays quiet — a hairline border and a soft shadow — because the moment the
   chrome competes with the screenshot, it is working against the only thing here that
   can actually convince anyone.
   ───────────────────────────────────────────────────────────────────────────── */

.shots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--zen-space-xl);
    margin-top: var(--zen-space-xl);
}

.shot {
    margin: 0;
    display: flex;
    flex-direction: column;
}

.shot img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--zen-border);
    border-radius: var(--zen-radius-lg);
    box-shadow: var(--zen-shadow-md);
    background: var(--zen-bg-elevated);
}

.shot figcaption {
    margin-top: var(--zen-space-md);
    font-size: var(--zen-text-sm);
    line-height: 1.6;
    color: var(--zen-text-secondary);
}

.shot figcaption strong {
    display: block;
    margin-bottom: 2px;
    font-size: var(--zen-text-base);
    font-weight: var(--zen-weight-semibold);
    color: var(--zen-text-primary);
}

.section--tight {
    padding-top: var(--zen-space-lg);
    padding-bottom: var(--zen-space-lg);
}

/* The first screenshot is the one people look at, so give it the full width and let
   the rest fall into two columns beneath it. */
@media (min-width: 900px) {
    .shots .shot:first-child {
        grid-column: 1 / -1;
    }

    .shots .shot:first-child img {
        max-width: 900px;
        margin: 0 auto;
    }

    .shots .shot:first-child figcaption {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .shot img {
        transition: transform var(--zen-transition-normal),
                    box-shadow var(--zen-transition-normal);
    }

    .shot img:hover {
        transform: translateY(-3px);
        box-shadow: var(--zen-shadow-lg);
    }
}
/* --- Tables & Badges --- */
.pp-table-wrap {
  overflow-x: auto;
  margin: var(--zen-space-lg) 0 var(--zen-space-xl);
  border-radius: var(--zen-radius-md);
  border: 1px solid var(--zen-border);
}

.pp-table-wrap--embedded {
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.pp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--zen-text-sm);
  min-width: 560px;
}

.pp-table th {
  text-align: left;
  color: var(--zen-text-tertiary);
  font-size: var(--zen-text-xs);
  font-weight: var(--zen-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: var(--zen-space-md) var(--zen-space-lg);
  background: var(--zen-bg-secondary);
  border-bottom: 1px solid var(--zen-border);
}

.pp-table td {
  padding: var(--zen-space-md) var(--zen-space-lg);
  border-bottom: 1px solid var(--zen-border-subtle);
  vertical-align: middle;
  color: var(--zen-text-secondary);
}

.pp-table tr:last-child td {
  border-bottom: none;
}

.pp-table--flush {
  border: none;
  border-radius: 0;
}

.pp-table--compact th,
.pp-table--compact td {
  padding: 8px 12px;
}

/* Column width utilities */
.pp-th--xs { width: 48px; }
.pp-th--sm { width: 90px; }
.pp-th--narrow { width: 140px; }
.pp-th--compact { width: 100px; }
.pp-th--wide { width: 40%; }
.pp-th--last-login { width: 140px; }
.pp-th--license-key { width: 220px; }
.pp-th--user-min { width: 180px; }

/* Detail tables & invoice link tags */
.admin-detail-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-detail-table td {
  padding: var(--zen-space-md) var(--zen-space-lg);
  border-bottom: 1px solid var(--zen-border-subtle);
  font-size: var(--zen-text-sm);
  color: var(--zen-text-primary);
  vertical-align: middle;
}

.admin-detail-table tr:last-child td {
  border-bottom: none;
}

.admin-detail-table__label {
  width: 180px;
  font-weight: var(--zen-weight-semibold);
  color: var(--zen-text-tertiary);
  font-size: var(--zen-text-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.portal-invoice-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--zen-bg-secondary);
  border: 1px solid var(--zen-border);
  border-radius: var(--zen-radius-md);
  font-size: var(--zen-text-xs);
  color: var(--zen-text-primary);
  text-decoration: none;
  font-weight: var(--zen-weight-medium);
  transition: all 0.2s ease;
  margin-right: 6px;
  margin-bottom: 4px;
}

.portal-invoice-link:hover {
  border-color: var(--zen-accent);
  background: var(--zen-accent-subtle);
  color: var(--zen-accent-dark);
}

/* Badges */
.pp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 10px;
  border-radius: 99px;
  font-size: var(--zen-text-xs);
  font-weight: var(--zen-weight-medium);
  line-height: 1.4;
  white-space: nowrap;
}

.pp-badge--yes {
  background: color-mix(in srgb, var(--zen-status-success) 12%, transparent);
  color: color-mix(in srgb, var(--zen-status-success) 90%, var(--zen-text-primary));
}

.pp-badge--no {
  background: color-mix(in srgb, var(--zen-color-danger) 10%, transparent);
  color: color-mix(in srgb, var(--zen-color-danger) 90%, var(--zen-text-primary));
}

.pp-badge--opt {
  background: var(--zen-accent-subtle);
  color: var(--zen-accent-darker);
}

.pp-badge--na {
  background: var(--zen-bg-tertiary);
  color: var(--zen-text-tertiary);
}

.pp-badge--spaced {
  margin-left: var(--zen-space-xs);
}

.badge-tiny {
  font-size: 10px;
  padding: 1px 6px;
}
/* --- Atomic utility classes reused across auth/portal/admin templates.
   Filename sorts last alphabetically among 04-components so these single-purpose
   rules aren't unintentionally overridden by other component files. --- */

.text-xs,
.font-xs {
  font-size: var(--zen-text-xs);
}

.text-sm,
.font-sm {
  font-size: var(--zen-text-sm);
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-nowrap { white-space: nowrap; }

.text-secondary { color: var(--zen-text-secondary); }
.text-tertiary { color: var(--zen-text-tertiary); }
.text-muted { color: var(--zen-text-tertiary); }

.text-strong { font-weight: var(--zen-weight-semibold); }

.text-danger { color: var(--zen-color-danger); }
.text-danger-strong {
  color: var(--zen-color-danger);
  font-weight: var(--zen-weight-semibold);
}

.text-success { color: var(--zen-status-ok); }

.tracking-wide { letter-spacing: 0.03em; }
.word-break-all { word-break: break-all; }

.is-hidden {
  display: none !important;
}

.form-feedback.is-visible {
  display: block;
}

.btn.is-copied {
  background: var(--zen-status-ok);
  color: #ffffff;
}

.mt-4 {
  margin-top: var(--zen-space-md);
}

.inline-controls {
  display: flex;
  align-items: center;
  gap: var(--zen-space-sm);
  flex-wrap: wrap;
}

.inline-controls--sm {
  gap: 6px;
}

.font-md { font-size: var(--zen-text-md); }
.font-lg { font-size: var(--zen-text-lg); }

.w-full { width: 100%; }
.inline-block { display: inline-block; }

.text-warning-strong {
  color: var(--zen-status-warning);
  font-weight: var(--zen-weight-semibold);
}

.text-success-strong {
  color: var(--zen-status-success);
  font-weight: var(--zen-weight-semibold);
}

/* ==========================================================================
   Demo Video Showcase Section — macOS Light Window Style (Narrow Live Showcase)
   ========================================================================== */

.hero-video-section {
  padding-top: var(--zen-space-lg);
  padding-bottom: var(--zen-space-2xl);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.video-showcase-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Ambient Backlight Aura */
.video-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 94%;
  height: 88%;
  background: radial-gradient(
    ellipse at center,
    rgba(5, 150, 105, 0.18) 0%,
    rgba(2, 132, 199, 0.14) 45%,
    rgba(124, 58, 237, 0.08) 80%,
    transparent 100%
  );
  filter: blur(44px);
  opacity: 0.85;
  border-radius: var(--zen-radius-lg);
  pointer-events: none;
  z-index: 0;
  animation: auraPulse 7s ease-in-out infinite alternate;
}

@keyframes auraPulse {
  0% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(0.97);
    filter: blur(38px);
  }
  100% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(1.03);
    filter: blur(50px);
  }
}

/* Authentic Light macOS Window Frame Casing */
.macos-window-frame {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 20px 45px -10px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(15, 23, 42, 0.06),
    0 8px 24px -4px rgba(5, 150, 105, 0.12);
  transition: transform var(--zen-transition-normal), box-shadow var(--zen-transition-normal);
}

.macos-window-frame:hover {
  transform: translateY(-2px);
  box-shadow:
    0 26px 54px -10px rgba(15, 23, 42, 0.16),
    0 0 0 1px rgba(15, 23, 42, 0.1),
    0 12px 30px -4px rgba(5, 150, 105, 0.18);
}

/* Light macOS Header Bar */
.macos-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  padding: 0 14px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e2e8f0;
  user-select: none;
}

/* Authentic macOS Window Traffic Lights */
.macos-window-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 70px;
}

.macos-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.25);
}

.macos-dot--close {
  background-color: #ff5f56;
  border: 1px solid #e0443e;
}

.macos-dot--minimize {
  background-color: #ffbd2e;
  border: 1px solid #dea123;
}

.macos-dot--expand {
  background-color: #27c93f;
  border: 1px solid #1aab29;
}

.macos-window-title {
  flex: 1;
  text-align: center;
  font-family: var(--zen-font-family);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.macos-window-spacer {
  width: 70px;
}

/* Video Container — Live Show (Clean Stream) */
.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Responsive Scaling for Mobile Screens */
@media (max-width: 640px) {
  .hero-video-section {
    padding-top: var(--zen-space-xs);
    padding-bottom: var(--zen-space-xl);
  }

  .macos-window-frame {
    border-radius: 8px;
  }

  .macos-window-bar {
    height: 32px;
    padding: 0 10px;
  }

  .macos-window-dots {
    gap: 6px;
    width: 50px;
  }

  .macos-dot {
    width: 10px;
    height: 10px;
  }

  .macos-window-title {
    font-size: 0.75rem;
  }

  .macos-window-spacer {
    width: 50px;
  }
}
/* --- About Page — Developer Profile (SynciZen Clean Style) --- */

/* ── Founder section ───────────────────────────────────────── */
.about-founder {
  display: flex;
  align-items: center;
  gap: var(--zen-space-xl);
  margin-top: var(--zen-space-2xl);
  padding: var(--zen-space-xl);
  background: var(--zen-bg-secondary);
  border: 1px solid var(--zen-border-subtle);
  border-radius: var(--zen-radius-lg);
}

/* ── Avatar ring ───────────────────────────────────────────── */
.about-founder__avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--zen-accent) 0%,
    var(--zen-accent-subtle) 100%
  );
  padding: 3px;
}

.about-founder__avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--zen-bg-secondary);
}

/* ── Text block ────────────────────────────────────────────── */
.about-founder__info {
  flex: 1;
  min-width: 0;
}

.about-founder__name {
  font-size: var(--zen-text-xl);
  font-weight: var(--zen-weight-semibold);
  color: var(--zen-text-primary);
  margin-bottom: var(--zen-space-xs);
}

.about-founder__role {
  font-size: var(--zen-text-base);
  color: var(--zen-accent);
  font-weight: var(--zen-weight-medium);
  margin-bottom: var(--zen-space-md);
}

.about-founder__bio {
  font-size: var(--zen-text-base);
  color: var(--zen-text-secondary);
  line-height: var(--zen-leading-relaxed);
  margin-bottom: var(--zen-space-md);
}

/* ── Social links ─────────────────────────────────────────── */
.about-founder__socials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--zen-space-sm);
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-founder__socials a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: var(--zen-text-sm);
  font-weight: var(--zen-weight-medium);
  color: var(--zen-text-secondary);
  background: var(--zen-bg-tertiary);
  border: 1px solid var(--zen-border-subtle);
  border-radius: var(--zen-radius-md);
  text-decoration: none;
  transition:
    color var(--zen-transition-fast),
    background var(--zen-transition-fast),
    border-color var(--zen-transition-fast);
}

.about-founder__socials a:hover {
  color: var(--zen-accent);
  background: var(--zen-accent-subtle);
  border-color: var(--zen-accent);
}

.about-founder__socials svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ── Responsive: stack on small screens ────────────────────── */
@media (max-width: 600px) {
  .about-founder {
    flex-direction: column;
    text-align: center;
  }

  .about-founder__avatar-wrap {
    width: 120px;
    height: 120px;
  }

  .about-founder__socials {
    justify-content: center;
  }
}
/* ==========================================================================
   Features Page Styles
   ========================================================================== */

/* ── Category tag (small label above section heading) ── */
.feature-section__tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--zen-accent-subtle);
  color: var(--zen-accent);
  border-radius: var(--zen-radius-sm);
  font-size: var(--zen-text-xs);
  font-weight: var(--zen-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--zen-space-sm);
}

/* ── Two-column feature section layout ── */
.feature-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--zen-space-xl);
  align-items: center;
}

.feature-section__inner--wrap {
  display: flex;
  gap: var(--zen-space-3xl);
  flex-wrap: wrap;
  align-items: center;
}

.feature-section__content--grow,
.feature-section__visual--grow {
  flex: 1;
  min-width: 320px;
}

.feature-copy__title {
  font-size: var(--zen-text-2xl);
  margin-bottom: var(--zen-space-md);
  font-weight: var(--zen-weight-semibold);
}

.feature-copy__body {
  font-size: var(--zen-text-md);
  color: var(--zen-text-secondary);
  margin-bottom: var(--zen-space-lg);
  line-height: var(--zen-leading-relaxed);
}

.feature-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: var(--zen-space-md);
  list-style: none;
}

.feature-list__item {
  display: flex;
  align-items: flex-start;
  gap: var(--zen-space-sm);
  font-size: var(--zen-text-sm);
  color: var(--zen-text-secondary);
}

.feature-list__icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--zen-accent);
}

.feature-list__strong {
  color: var(--zen-text-primary);
}

.workflow-card {
  background: var(--zen-bg-secondary);
  border: 1px solid var(--zen-border);
  border-radius: var(--zen-radius-lg);
  padding: var(--zen-space-2xl);
  box-shadow: var(--zen-shadow-md);
}

.workflow-card__title {
  color: var(--zen-text-primary);
  font-size: var(--zen-text-xl);
  margin-bottom: var(--zen-space-xl);
  text-align: center;
}

.workflow-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--zen-text-secondary);
  font-weight: var(--zen-weight-medium);
}

.workflow-card__column {
  display: flex;
  flex-direction: column;
  gap: var(--zen-space-sm);
}

.workflow-card__column--end {
  text-align: right;
}

.workflow-card__chip {
  background: var(--zen-bg-elevated);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: var(--zen-text-sm);
  border: 1px solid var(--zen-border-subtle);
  box-shadow: var(--zen-shadow-sm);
}

.workflow-card__footer {
  margin-top: var(--zen-space-xl);
  padding-top: var(--zen-space-xl);
  border-top: 1px solid var(--zen-border);
  text-align: center;
}

.workflow-card__footer-text {
  font-size: var(--zen-text-sm);
  font-weight: var(--zen-weight-medium);
  color: var(--zen-text-primary);
}

.feature-section__content h2 {
  text-align: left;
  margin-bottom: var(--zen-space-md);
}

.feature-section__content p {
  font-size: var(--zen-text-md);
  color: var(--zen-text-secondary);
  line-height: var(--zen-leading-relaxed);
  margin-bottom: var(--zen-space-sm);
}

.feature-section__content p:last-child {
  margin-bottom: 0;
}

/* ── Safety stack visual (right column of Section 1) ── */
.safety-stack {
  display: flex;
  flex-direction: column;
  gap: var(--zen-space-md);
}

.safety-stack__item {
  display: flex;
  gap: var(--zen-space-md);
  align-items: flex-start;
  background: var(--zen-bg-elevated);
  border-radius: var(--zen-radius-md);
  padding: var(--zen-space-lg);
  box-shadow: var(--zen-shadow-sm);
  border: 1px solid var(--zen-border-subtle);
  transition:
    border-color var(--zen-transition-normal),
    box-shadow var(--zen-transition-normal);
  contain: layout style;
}

.safety-stack__item:hover {
  border-color: var(--zen-accent);
  box-shadow: 0 4px 12px rgba(90, 138, 122, 0.08);
}

.safety-stack__num {
  width: 28px;
  height: 28px;
  border-radius: var(--zen-radius-sm);
  background: var(--zen-accent-subtle);
  color: var(--zen-accent);
  font-size: var(--zen-text-sm);
  font-weight: var(--zen-weight-semibold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.safety-stack__body h4 {
  font-size: var(--zen-text-base);
  font-weight: var(--zen-weight-semibold);
  margin-bottom: var(--zen-space-xs);
}

.safety-stack__body p {
  font-size: var(--zen-text-sm);
  color: var(--zen-text-secondary);
  line-height: var(--zen-leading-normal);
  margin-bottom: 0;
}

/* ── Multi-cloud accent callout pill ── */
.cloud-callout {
  display: inline-flex;
  align-items: center;
  gap: var(--zen-space-sm);
  padding: var(--zen-space-sm) var(--zen-space-lg);
  background: var(--zen-accent-subtle);
  border-radius: var(--zen-radius-md);
  font-size: var(--zen-text-md);
  font-weight: var(--zen-weight-semibold);
  color: var(--zen-accent);
  margin-bottom: var(--zen-space-lg);
}

.cloud-callout svg {
  width: 18px;
  height: 18px;
}

/* ── 4-step sync flow ── */
.sync-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
  margin: var(--zen-space-lg) 0;
}

.sync-flow__step {
  text-align: center;
}

.sync-flow__arrow {
  display: flex;
  align-items: flex-start;
  padding-top: 18px;
  color: var(--zen-text-tertiary);
}

.sync-flow__arrow svg {
  width: 20px;
  height: 20px;
}

.sync-flow__box {
  background: var(--zen-bg-elevated);
  border-radius: var(--zen-radius-md);
  padding: var(--zen-space-md);
  box-shadow: var(--zen-shadow-sm);
  border: 1px solid var(--zen-border-subtle);
  margin-bottom: var(--zen-space-sm);
}

.sync-flow__num {
  font-size: var(--zen-text-xs);
  color: var(--zen-accent);
  font-weight: var(--zen-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--zen-space-xs);
}

.sync-flow__label {
  font-size: var(--zen-text-sm);
  font-weight: var(--zen-weight-semibold);
  color: var(--zen-text-primary);
}

.sync-flow__desc {
  font-size: var(--zen-text-xs);
  color: var(--zen-text-tertiary);
  line-height: var(--zen-leading-normal);
  max-width: 120px;
  margin: 0 auto;
}

/* ── Feature catalog (comprehensive grid) ── */
.feature-catalog {
  max-width: 1120px;
  margin: 0 auto;
}

.feature-catalog__group {
  margin-bottom: var(--zen-space-xl);
}

.feature-catalog__group:last-child {
  margin-bottom: 0;
}

.feature-catalog__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--zen-space-md);
  margin-top: var(--zen-space-md);
}

.feature-catalog__card {
  display: flex;
  align-items: flex-start;
  gap: var(--zen-space-md);
  padding: var(--zen-space-md);
  background: var(--zen-bg-elevated);
  border-radius: var(--zen-radius-md);
  border: 1px solid var(--zen-border-subtle);
  transition:
    border-color var(--zen-transition-normal),
    box-shadow var(--zen-transition-normal),
    transform var(--zen-transition-normal);
  will-change: transform;
}

.feature-catalog__card:hover {
  border-color: var(--zen-accent);
  box-shadow: 0 4px 16px rgba(90, 138, 122, 0.08);
  transform: translateY(-2px);
}

.feature-catalog__card svg {
  width: 22px;
  height: 22px;
  color: var(--zen-accent);
  flex-shrink: 0;
  margin-top: 1px;
}

.feature-catalog__card h4 {
  font-size: var(--zen-text-base);
  font-weight: var(--zen-weight-semibold);
  margin-bottom: 2px;
  color: var(--zen-text-primary);
}

.feature-catalog__card p {
  font-size: var(--zen-text-sm);
  color: var(--zen-text-secondary);
  line-height: 1.4;
  margin: 0;
}

/* ── Performance stats band ── */
.perf-band {
  display: flex;
  justify-content: center;
  gap: var(--zen-space-xl);
  padding: var(--zen-space-lg) 0;
}

.perf-band__stat {
  text-align: center;
  padding: var(--zen-space-sm);
}

.perf-band__value {
  font-size: var(--zen-text-2xl);
  font-weight: var(--zen-weight-semibold);
  color: var(--zen-accent);
  margin-bottom: var(--zen-space-xs);
  letter-spacing: -0.01em;
}

.perf-band__label {
  font-size: var(--zen-text-sm);
  color: var(--zen-text-secondary);
}

/* ── Features page responsive ── */
@media (max-width: 1024px) {
  .feature-catalog__grid {
    grid-template-columns: 2fr 2fr;
  }
}

@media (max-width: 768px) {
  .feature-section__inner {
    grid-template-columns: 1fr;
  }

  .app-row {
    display: grid;
    grid-template-columns: 44px 1fr;
    grid-template-areas:
      "icon content"
      "badge badge";
    gap: var(--zen-space-md);
    padding: var(--zen-space-md);
    align-items: center;
  }

  .app-row__icon-wrap {
    grid-area: icon;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .app-row__logo {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    max-width: 24px;
    max-height: 24px;
  }

  .app-row__content {
    grid-area: content;
  }

  .app-row__badge {
    grid-area: badge;
    width: 100%;
    margin-top: 0;
  }

  .sync-flow {
    grid-template-columns: 1fr;
    gap: var(--zen-space-sm);
  }

  .sync-flow__arrow {
    justify-content: center;
    padding-top: 0;
    transform: rotate(90deg);
  }

  .sync-flow__desc {
    max-width: 100%;
  }

  .feature-catalog__grid {
    grid-template-columns: 1fr;
  }

  .feature-catalog__card {
    padding: var(--zen-space-md);
  }

  .perf-band {
    flex-direction: column;
    gap: var(--zen-space-lg);
    align-items: center;
  }
}

/* ── Evidence-led catalogue and comparison explorer ─────────────────────── */
.feature-catalog-section__header { max-width: 760px; margin: 0 auto; }
.feature-catalog__legend,
.feature-catalog__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 1120px; margin: 0 auto; }
.feature-catalog__legend { justify-content: center; margin-bottom: var(--zen-space-md); color: var(--zen-text-secondary); font-size: var(--zen-text-xs); }
.feature-catalog__nav { justify-content: center; margin-bottom: var(--zen-space-2xl); }
.feature-catalog__nav a { padding: 7px 10px; border: 1px solid var(--zen-border); border-radius: 999px; color: var(--zen-text-secondary); font-size: var(--zen-text-xs); line-height: 1.2; text-decoration: none; transition: border-color var(--zen-transition-normal), color var(--zen-transition-normal), background var(--zen-transition-normal); }
.feature-catalog__nav a:hover,
.feature-catalog__nav a:focus-visible { border-color: var(--zen-accent); background: var(--zen-accent-subtle); color: var(--zen-accent-dark); outline: none; }
.feature-catalog__group { scroll-margin-top: 100px; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--zen-border-subtle); border-radius: var(--zen-radius-lg); background: var(--zen-bg-secondary); }
.feature-catalog__group + .feature-catalog__group { margin-top: var(--zen-space-lg); }
.feature-catalog__group-heading { display: grid; grid-template-columns: minmax(200px, .7fr) minmax(0, 1.3fr); gap: var(--zen-space-lg); align-items: baseline; }
.feature-catalog__group-heading h3 { margin: 0; color: var(--zen-text-primary); font-size: var(--zen-text-lg); }
.feature-catalog__group-heading p { margin: 0; color: var(--zen-text-secondary); font-size: var(--zen-text-sm); line-height: 1.55; }
.feature-catalog__card { min-width: 0; padding: var(--zen-space-lg); }
.feature-catalog__card > div { min-width: 0; width: 100%; }
.feature-catalog__card-title { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--zen-space-sm); margin-bottom: 5px; }
.feature-catalog__card h4 { margin: 0; }
.feature-catalog__card small { display: block; margin-top: 8px; color: var(--zen-text-tertiary); font-size: .68rem; }
.feature-badge { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; padding: 3px 7px; border: 1px solid transparent; border-radius: 999px; font-size: .62rem; font-weight: var(--zen-weight-semibold); letter-spacing: .055em; line-height: 1.15; text-transform: uppercase; white-space: nowrap; }
.feature-badge--free { border-color: rgba(22, 163, 74, .24); background: rgba(22, 163, 74, .10); color: #15803d; }
.feature-badge--pro { border-color: rgba(14, 116, 144, .24); background: rgba(14, 116, 144, .10); color: #0f766e; }
.feature-badge--preview { border-color: rgba(217, 119, 6, .28); background: rgba(217, 119, 6, .10); color: #a16207; }
.feature-badge--pro-preview { border-color: rgba(126, 34, 206, .24); background: rgba(126, 34, 206, .10); color: #7e22ce; }
.feature-badge--free-preview { border-color: rgba(37, 99, 235, .24); background: rgba(37, 99, 235, .10); color: #1d4ed8; }
.feature-source-note { max-width: 860px; margin: var(--zen-space-xl) auto 0; color: var(--zen-text-tertiary); font-size: var(--zen-text-xs); line-height: 1.55; text-align: center; }
.feature-source-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.comparison-explorer { max-width: 1120px; margin: 0 auto; }
.comparison-explorer__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: var(--zen-space-lg); }
.comparison-explorer__tab { max-width: 100%; padding: 9px 12px; border: 1px solid var(--zen-border); border-radius: 999px; background: var(--zen-bg-secondary); color: var(--zen-text-secondary); cursor: pointer; font: inherit; font-size: var(--zen-text-xs); font-weight: var(--zen-weight-medium); line-height: 1.2; transition: border-color var(--zen-transition-normal), background var(--zen-transition-normal), color var(--zen-transition-normal); }
.comparison-explorer__tab:hover,
.comparison-explorer__tab:focus-visible { border-color: var(--zen-accent); color: var(--zen-accent-dark); outline: none; }
.comparison-explorer__tab.is-active { border-color: var(--zen-accent); background: var(--zen-accent); color: var(--zen-text-inverse); }
.comparison-explorer__panel { min-width: 0; }
.comparison-explorer__columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--zen-space-lg); align-items: start; }
.comparison-column { min-width: 0; overflow: hidden; border: 1px solid var(--zen-border); border-radius: var(--zen-radius-lg); background: var(--zen-bg-secondary); }
.comparison-column--gitmind { border-color: color-mix(in srgb, var(--zen-accent) 55%, var(--zen-border)); background: linear-gradient(145deg, var(--zen-accent-subtle), var(--zen-bg-secondary) 35%); }
.comparison-column header { padding: var(--zen-space-lg); border-bottom: 1px solid var(--zen-border-subtle); }
.comparison-column header p { margin: 0 0 5px; color: var(--zen-accent-dark); font-size: var(--zen-text-xs); font-weight: var(--zen-weight-semibold); letter-spacing: .07em; text-transform: uppercase; }
.comparison-column header h3 { margin: 0; font-size: var(--zen-text-lg); line-height: 1.2; }
.comparison-facet { padding: var(--zen-space-md) var(--zen-space-lg); border-bottom: 1px solid var(--zen-border-subtle); }
.comparison-facet:last-child { border-bottom: 0; }
.comparison-facet h4 { margin: 0 0 7px; color: var(--zen-text-primary); font-size: var(--zen-text-sm); }
.comparison-facet p { margin: 7px 0 0; color: var(--zen-text-secondary); font-size: var(--zen-text-xs); line-height: 1.5; overflow-wrap: anywhere; }
.comparison-facet small { display: block; margin-top: 6px; color: var(--zen-text-tertiary); font-size: .66rem; }
.comparison-status { display: inline-flex; align-items: center; padding: 3px 6px; border-radius: 4px; font-size: .61rem; font-weight: var(--zen-weight-semibold); line-height: 1.15; }
.comparison-status--documented { background: rgba(22, 163, 74, .10); color: #15803d; }
.comparison-status--different { background: rgba(217, 119, 6, .10); color: #a16207; }
.comparison-status--undocumented { background: rgba(100, 116, 139, .12); color: #475569; }
.comparison-explorer__strength,
.comparison-explorer__sources { max-width: 900px; margin-right: auto; margin-left: auto; color: var(--zen-text-secondary); font-size: var(--zen-text-xs); line-height: 1.55; }
.comparison-explorer__strength { margin-top: var(--zen-space-lg); padding: var(--zen-space-md) var(--zen-space-lg); border-left: 3px solid var(--zen-accent); background: var(--zen-accent-subtle); }
.comparison-explorer__sources { margin-top: var(--zen-space-md); color: var(--zen-text-tertiary); text-align: center; }
.comparison-explorer__sources a { margin-left: 5px; color: inherit; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 900px) {
  .feature-catalog__group-heading { grid-template-columns: 1fr; gap: var(--zen-space-xs); }
  .comparison-explorer__columns { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .features-page > .container { width: min(100% - 32px, 1280px); }
  .feature-catalog__group { padding: var(--zen-space-md); }
  .feature-catalog__nav { justify-content: flex-start; }
  .feature-catalog__nav a { flex: 1 1 145px; text-align: center; }
  .feature-catalog__card-title { align-items: flex-start; flex-direction: column; }
  .comparison-explorer__tabs { justify-content: flex-start; }
  .comparison-explorer__tab { flex: 1 1 135px; }
  .comparison-column header,
  .comparison-facet { padding-right: var(--zen-space-md); padding-left: var(--zen-space-md); }
}

/* ── Conversion-focused feature page ─────────────────────────────────────── */
.page-header--features { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.features-page > .container { width: min(1280px, calc(100vw - 64px)); }
.page-header__eyebrow { margin: 0 0 var(--zen-space-sm); color: var(--zen-accent-dark); font-size: var(--zen-text-xs); font-weight: var(--zen-weight-semibold); letter-spacing: .1em; text-transform: uppercase; }
.features-page .section { padding-top: clamp(3rem, 5vw, 4.75rem); padding-bottom: clamp(3rem, 5vw, 4.75rem); }
.features-page .section__title { margin-top: 0; }
.feature-spotlight { display: grid; grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr); gap: clamp(2rem, 5vw, 5.5rem); align-items: center; }
.feature-spotlight__copy h2 { max-width: 590px; margin: 0 0 var(--zen-space-md); font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.1; letter-spacing: -.025em; }
.feature-spotlight__copy > p { color: var(--zen-text-secondary); font-size: var(--zen-text-md); line-height: var(--zen-leading-relaxed); }
.feature-proof-list { display: grid; gap: var(--zen-space-sm); margin: var(--zen-space-xl) 0 0; padding: 0; list-style: none; }
.feature-proof-list li { position: relative; padding-left: 1.55rem; color: var(--zen-text-secondary); font-size: var(--zen-text-sm); line-height: 1.55; }
.feature-proof-list li::before { content: "✓"; position: absolute; left: 0; color: var(--zen-accent); font-weight: 700; }
.feature-proof-list strong { color: var(--zen-text-primary); }

.security-live { overflow: hidden; border: 1px solid #1e293b; border-radius: 16px; background: #0b1220; box-shadow: 0 24px 56px rgba(15, 23, 42, .2); color: #d9e5f0; font-family: var(--zen-font-mono); }
.security-live__bar { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 15px; background: #111c2f; border-bottom: 1px solid #26364d; font-size: .72rem; }
.security-live__bar span { width: 8px; height: 8px; border-radius: 50%; background: #475569; }.security-live__bar span:first-child{background:#fb7185}.security-live__bar span:nth-child(2){background:#fbbf24}.security-live__bar span:nth-child(3){background:#34d399}.security-live__bar b { margin-left: 7px; color: #93a4bc; font-weight: 600; }
.security-live__body { display: grid; gap: 12px; padding: 24px; font-size: clamp(.72rem, 1.25vw, .86rem); line-height: 1.45; }
.security-live__path { margin: 0; color: #7dd3fc; }.security-live__line { margin: 0; padding: 9px 10px; overflow: hidden; border-radius: 6px; background: rgba(15, 23, 42, .72); white-space: nowrap; }.security-live__line i { color: #34d399; font-style: normal; }.security-live__line code { color: #cbd5e1; }.security-live__line mark { color: #fecaca; background: rgba(248, 113, 113, .16); border-radius: 3px; transition: all .45s ease; }.security-live.is-screened .security-live__line mark { color: #fca5a5; filter: blur(1.4px); }
.security-live__finding, .security-live__safe { display: flex; align-items: center; gap: 8px; margin: -5px 0 3px; font-size: .75rem; }.security-live__finding { color: #fda4af; }.security-live__finding span { display:grid; width:17px; height:17px; place-items:center; border-radius:50%; background:#be123c; color:#fff; font-weight:700; }.security-live__finding b { margin-left:auto; padding:2px 6px; border:1px solid rgba(251,113,133,.45); border-radius:4px; color:#fecdd3; font-size:.64rem; }.security-live__safe { color:#86efac; }.security-live__footer { display:flex; justify-content:space-between; gap:12px; padding:13px 18px; border-top:1px solid #26364d; color:#94a3b8; font-size:.7rem; }.security-live__footer strong { color:#6ee7b7; font-weight:600; }

.feature-live-grid__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--zen-space-lg); }
.live-feature-card { display: flex; flex-direction: column; padding: var(--zen-space-md); border: 1px solid var(--zen-border); border-radius: var(--zen-radius-lg); background: var(--zen-bg-secondary); box-shadow: var(--zen-shadow-sm); }.live-feature-card h3 { margin: var(--zen-space-md) 0 var(--zen-space-xs); font-size: var(--zen-text-md); }.live-feature-card h3 em, .feature-compact em { padding: 2px 6px; border-radius: 4px; background: var(--zen-accent-subtle); color: var(--zen-accent-dark); font-size: .65em; font-style: normal; text-transform: uppercase; vertical-align: middle; }.live-feature-card p { margin: 0; color: var(--zen-text-secondary); font-size: var(--zen-text-sm); line-height: 1.55; }
.live-feature-card__visual { display: grid; min-height: 126px; padding: 15px; border-radius: 10px; background: #101827; color: #cbd5e1; font-family: var(--zen-font-mono); font-size: .72rem; }.live-feature-card__label, .live-feature-card__visual--history > span { color: #94a3b8; font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; }.live-feature-card__visual--type code { align-self: center; min-height: 2.8em; color: #6ee7b7; font-size: .86rem; line-height: 1.45; }.live-feature-card__visual--type code::after { content: "|"; margin-left: 2px; color: #6ee7b7; animation: featureCursor .8s step-end infinite; }.live-feature-card__visual--history { gap: 7px; }.live-feature-card__visual--history code { color: #e2e8f0; }.live-feature-card__visual--history strong { align-self: start; margin-top: 2px; color: #fbbf24; font-size: .67rem; font-weight: 500; }.live-feature-card__visual--recovery { place-content:center; gap: 8px; text-align:center; }.live-feature-card__visual--recovery span { color:#fda4af; }.live-feature-card__visual--recovery i { color:#94a3b8; font-style:normal; }.live-feature-card__visual--recovery strong { color:#6ee7b7; font-weight:600; }.live-feature-card__visual--recovery.is-recovering span { color:#94a3b8; text-decoration:line-through; }.live-feature-card__visual--recovery.is-recovering strong { animation: recoveryPulse 1.2s ease-in-out infinite; }
@keyframes featureCursor { 50% { opacity: 0; } } @keyframes recoveryPulse { 50% { opacity: .42; } }

.feature-compact { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.6fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; border-top: 1px solid var(--zen-border-subtle); border-bottom: 1px solid var(--zen-border-subtle); }.feature-compact__intro h2 { margin: 0; font-size: clamp(1.7rem, 2.6vw, 2.35rem); line-height:1.15; }.feature-compact__items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--zen-border-subtle); border-left: 1px solid var(--zen-border-subtle); }.feature-compact__items article { display:grid; gap:5px; padding: 18px; border-right:1px solid var(--zen-border-subtle); border-bottom:1px solid var(--zen-border-subtle); }.feature-compact__items b { color:var(--zen-text-primary); font-size:var(--zen-text-sm); }.feature-compact__items span { color:var(--zen-text-secondary); font-size:var(--zen-text-xs); line-height:1.5; }

.comparison-grid { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:var(--zen-space-md); }.comparison-card { display:flex; flex-direction:column; padding:clamp(1.25rem, 2.5vw, 1.8rem); border:1px solid var(--zen-border); border-radius:var(--zen-radius-lg); background:var(--zen-bg-secondary); }.comparison-card--gitmind { border-color:color-mix(in srgb, var(--zen-accent) 55%, var(--zen-border)); background:linear-gradient(145deg, var(--zen-accent-subtle), var(--zen-bg-secondary) 55%); box-shadow:var(--zen-shadow-md); }.comparison-card p { margin:0 0 var(--zen-space-sm); color:var(--zen-accent-dark); font-size:var(--zen-text-xs); font-weight:var(--zen-weight-semibold); letter-spacing:.07em; text-transform:uppercase; }.comparison-card h3 { margin:0; font-size:var(--zen-text-lg); line-height:1.2; }.comparison-card ul { display:grid; gap:10px; margin:var(--zen-space-lg) 0 0; padding:0; list-style:none; color:var(--zen-text-secondary); font-size:var(--zen-text-sm); line-height:1.45; }.comparison-card li { position:relative; padding-left:18px; }.comparison-card li::before { content:"•"; position:absolute; left:0; color:var(--zen-accent); font-size:1.1em; }.comparison-note { max-width:800px; margin:var(--zen-space-lg) auto 0; color:var(--zen-text-tertiary); text-align:center; font-size:var(--zen-text-xs); line-height:1.5; }.comparison-cta { margin:var(--zen-space-xl) 0 0; text-align:center; }

@media (max-width: 900px) { .feature-spotlight, .feature-compact { grid-template-columns:1fr; gap:var(--zen-space-xl); }.feature-live-grid__cards, .comparison-grid { grid-template-columns:1fr; }.live-feature-card__visual { min-height:112px; }.comparison-card { min-height:0; } }
@media (max-width: 560px) { .feature-compact__items { grid-template-columns:1fr; }.security-live__body { padding:16px; }.security-live__footer { align-items:flex-start; flex-direction:column; }.security-live__line { font-size:.65rem; }.features-page .section { padding-top:var(--zen-space-2xl); padding-bottom:var(--zen-space-2xl); } }

/* ==========================================================================
   Feature Pillars
   ========================================================================== */

.feature-pillar__header {
  text-align: center;
  margin-bottom: var(--zen-space-xl);
}

.feature-pillar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--zen-radius-lg);
  background: var(--zen-accent-subtle);
  color: var(--zen-accent);
  margin-bottom: var(--zen-space-md);
}

.feature-pillar__icon svg {
  width: 28px;
  height: 28px;
}

/* ── Pro badge on feature cards ── */
.feature-card--pro {
  position: relative;
}

.feature-card__badge {
  display: inline-block;
  padding: 2px 10px;
  background: var(--zen-accent);
  color: var(--zen-text-inverse);
  border-radius: var(--zen-radius-sm);
  font-size: var(--zen-text-xs);
  font-weight: var(--zen-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--zen-space-sm);
}

/* ==========================================================================
   Rival Comparison Table
   ========================================================================== */

.rival-comparison {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.rival-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--zen-radius-lg);
  border: 1px solid var(--zen-border);
  box-shadow: var(--zen-shadow-md);
  background: var(--zen-bg-secondary);
}

.rival-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: var(--zen-text-sm);
}

.rival-table th,
.rival-table td {
  padding: var(--zen-space-md) var(--zen-space-lg);
  text-align: center;
  border-bottom: 1px solid var(--zen-border-subtle);
}

.rival-table thead th {
  position: sticky;
  top: 0;
  background: var(--zen-bg-tertiary);
  font-weight: var(--zen-weight-semibold);
  font-size: var(--zen-text-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--zen-text-secondary);
  white-space: nowrap;
  z-index: 2;
}

.rival-table thead th.rival-highlight {
  background: var(--zen-accent);
  color: var(--zen-text-inverse);
}

.rival-table__feature-col {
  text-align: left !important;
  min-width: 180px;
}

.rival-table__price {
  display: block;
  font-weight: var(--zen-weight-normal);
  font-size: 0.65rem;
  opacity: 0.7;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 2px;
}

.rival-table tbody td:first-child {
  text-align: left;
  font-weight: var(--zen-weight-medium);
  color: var(--zen-text-primary);
}

.rival-table tbody tr:nth-child(even) {
  background: var(--zen-bg-tertiary);
}

.rival-table tbody tr:nth-child(even) td.rival-highlight {
  background: rgba(5, 150, 105, 0.06);
}

.rival-table tbody tr:nth-child(odd) td.rival-highlight {
  background: rgba(5, 150, 105, 0.03);
}

.rival-table tbody tr:hover {
  background: rgba(5, 150, 105, 0.04);
}

/* ── Status badges ── */
.rival-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: var(--zen-radius-sm);
  background: rgba(16, 185, 129, 0.1);
  color: var(--zen-status-ok);
  font-weight: var(--zen-weight-semibold);
  font-size: var(--zen-text-xs);
}

.rival-cross {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 10px;
  border-radius: var(--zen-radius-sm);
  background: rgba(239, 68, 68, 0.08);
  color: var(--zen-status-error);
  font-weight: var(--zen-weight-semibold);
  font-size: var(--zen-text-xs);
}

.rival-partial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 10px;
  border-radius: var(--zen-radius-sm);
  background: rgba(245, 158, 11, 0.1);
  color: var(--zen-status-warning);
  font-weight: var(--zen-weight-semibold);
  font-size: var(--zen-text-xs);
}

/* ── Pricing row emphasis ── */
.rival-table__row--pricing td {
  border-top: 2px solid var(--zen-border);
  font-weight: var(--zen-weight-semibold);
  padding-top: var(--zen-space-lg);
  padding-bottom: var(--zen-space-lg);
}

.rival-table__row--pricing td.rival-highlight {
  color: var(--zen-accent);
}

/* ── Responsive: comparison table ── */
@media (max-width: 768px) {
  .rival-table {
    font-size: var(--zen-text-xs);
  }

  .rival-table th,
  .rival-table td {
    padding: var(--zen-space-sm) var(--zen-space-md);
  }

  .rival-table__feature-col {
    min-width: 120px;
  }

  .feature-pillar__icon {
    width: 44px;
    height: 44px;
  }

  .feature-pillar__icon svg {
    width: 22px;
    height: 22px;
  }
}

/* Keep the catalogue comfortably inset after the page-level desktop width rule. */
@media (max-width: 560px) {
  .features-page > .container { width: min(100% - 32px, 1280px); }
}

/* ── Aligned GitMind versus Others comparison ───────────────────────────── */
.comparison-matrix { overflow: hidden; max-width: 1120px; margin: 0 auto; border: 1px solid var(--zen-border); border-radius: var(--zen-radius-lg); background: var(--zen-bg-secondary); }
.comparison-matrix__head,
.comparison-matrix__row { display: grid; grid-template-columns: minmax(150px, .7fr) minmax(0, 1.15fr) minmax(0, 1.15fr); }
.comparison-matrix__head { background: var(--zen-bg-tertiary); color: var(--zen-text-secondary); font-size: var(--zen-text-xs); font-weight: var(--zen-weight-semibold); letter-spacing: .05em; text-transform: uppercase; }
.comparison-matrix__head span { padding: var(--zen-space-md) var(--zen-space-lg); }
.comparison-matrix__head span:nth-child(2) { background: var(--zen-accent-subtle); color: var(--zen-accent-dark); }
.comparison-matrix__row { border-top: 1px solid var(--zen-border-subtle); align-items: stretch; }
.comparison-matrix__row > h3 { display: flex; align-items: center; margin: 0; padding: var(--zen-space-md) var(--zen-space-lg); color: var(--zen-text-primary); font-size: var(--zen-text-sm); line-height: 1.35; }
.comparison-matrix__cell { min-width: 0; padding: var(--zen-space-md) var(--zen-space-lg); border-left: 1px solid var(--zen-border-subtle); }
.comparison-matrix__cell--gitmind { background: color-mix(in srgb, var(--zen-accent-subtle) 65%, var(--zen-bg-secondary)); }
.comparison-matrix__cell p { margin: 7px 0 0; color: var(--zen-text-secondary); font-size: var(--zen-text-xs); line-height: 1.5; overflow-wrap: anywhere; }
.comparison-status--supported { background: rgba(22, 163, 74, .10); color: #15803d; }
.comparison-status--partially-supported { background: rgba(217, 119, 6, .10); color: #a16207; }
.comparison-status--not-supported { background: rgba(100, 116, 139, .12); color: #475569; }
.comparison-matrix__note { max-width: 880px; margin: var(--zen-space-md) auto 0; color: var(--zen-text-tertiary); font-size: var(--zen-text-xs); line-height: 1.55; text-align: center; }

@media (max-width: 720px) {
  .comparison-matrix__head,
  .comparison-matrix__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comparison-matrix__head span:first-child { display: none; }
  .comparison-matrix__head span:nth-child(2) { grid-column: 1; }
  .comparison-matrix__head span:nth-child(3) { grid-column: 2; }
  .comparison-matrix__row > h3 { grid-column: 1 / -1; padding-bottom: var(--zen-space-sm); background: var(--zen-bg-tertiary); }
  .comparison-matrix__cell { padding: var(--zen-space-md); }
  .comparison-matrix__cell--gitmind { border-left: 0; }
}

/* ── Expanded Full-Width Context Demo Component ── */
.context-demo-card {
  width: 100%;
  border: 1px solid var(--zen-border);
  border-radius: var(--zen-radius-lg);
  background: var(--zen-bg-secondary);
  box-shadow: var(--zen-shadow-md);
  overflow: hidden;
}

.context-demo-card .demo-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--zen-space-md);
  padding: var(--zen-space-lg);
  border-bottom: 1px solid var(--zen-border-subtle);
  background: var(--zen-bg-tertiary);
}

.demo-card__controls-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--zen-space-sm);
}

.demo-card__mode-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: color-mix(in srgb, var(--zen-accent) 15%, var(--zen-bg-secondary));
  border-radius: var(--zen-radius-sm);
  border: 1px solid color-mix(in srgb, var(--zen-accent) 25%, transparent);
}

.mode-btn {
  padding: 4px 10px;
  border: none;
  background: transparent;
  color: var(--zen-text-secondary);
  font-size: 0.72rem;
  font-weight: var(--zen-weight-semibold);
  border-radius: var(--zen-radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--zen-transition-fast);
}

.mode-btn.active {
  background: var(--zen-accent);
  color: var(--zen-text-inverse);
  box-shadow: var(--zen-shadow-sm);
}

.context-demo-card .demo-card__body {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 0;
}

.context-demo-card .demo-card__diff {
  padding: var(--zen-space-lg);
  background: #0f172a;
  color: #cbd5e1;
  font-family: var(--zen-font-mono);
  font-size: var(--zen-text-xs);
  line-height: 1.6;
  border-right: 1px solid var(--zen-border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.context-demo-card .demo-card__output {
  padding: var(--zen-space-lg);
  background: var(--zen-bg-secondary);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.context-demo-card .demo-card__output pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--zen-font-mono);
  font-size: var(--zen-text-sm);
  line-height: 1.6;
  color: var(--zen-text-primary);
  background: var(--zen-bg-tertiary);
  padding: var(--zen-space-md);
  border-radius: var(--zen-radius-md);
  border: 1px solid var(--zen-border-subtle);
}

@media (max-width: 900px) {
  .context-demo-card .demo-card__body {
    grid-template-columns: 1fr;
  }
  .context-demo-card .demo-card__diff {
    border-right: none;
    border-bottom: 1px solid var(--zen-border-subtle);
  }
}

/* ── Compact Interactive Capability Explorer ── */
.feature-explorer-section {
  max-width: 1180px;
  margin: 0 auto;
}

.feature-explorer__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: var(--zen-space-xl);
}

.explorer-filter-btn {
  padding: 8px 16px;
  border: 1px solid var(--zen-border);
  border-radius: 999px;
  background: var(--zen-bg-secondary);
  color: var(--zen-text-secondary);
  font-size: var(--zen-text-xs);
  font-weight: var(--zen-weight-semibold);
  cursor: pointer;
  transition: all var(--zen-transition-fast);
}

.explorer-filter-btn.active,
.explorer-filter-btn:hover,
.explorer-filter-btn:focus-visible {
  background: var(--zen-accent);
  color: var(--zen-text-inverse);
  border-color: var(--zen-accent);
  outline: none;
}

.feature-explorer__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.85fr);
  gap: var(--zen-space-xl);
  align-items: start;
}

.feature-explorer__chips-grid {
  display: grid;
  gap: 10px;
}

.explorer-category-group {
  padding: 10px 14px;
  border: 1px solid var(--zen-border-subtle);
  border-radius: var(--zen-radius-md);
  background: var(--zen-bg-secondary);
}

.explorer-category-group[hidden] {
  display: none !important;
}

.explorer-category-group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--zen-space-sm);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--zen-border-subtle);
}

.explorer-category-label {
  margin: 0;
  font-size: 0.7rem;
  font-weight: var(--zen-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--zen-accent-dark);
}

.explorer-category-count {
  color: var(--zen-text-tertiary);
  font-size: 0.65rem;
  white-space: nowrap;
}

.explorer-chips-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 8px;
}

.feature-chip {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 34px;
  padding: 5px 10px;
  background: var(--zen-bg-elevated);
  border: 1px solid var(--zen-border-subtle);
  border-radius: var(--zen-radius-sm);
  cursor: pointer;
  transition: background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.feature-chip:hover {
  border-color: color-mix(in srgb, var(--zen-accent) 45%, var(--zen-border-subtle));
  background: color-mix(in srgb, var(--zen-accent) 8%, var(--zen-bg-elevated));
  box-shadow: 0 3px 10px -2px color-mix(in srgb, var(--zen-accent) 12%, transparent);
  outline: none;
}

.feature-chip.is-selected {
  border-color: var(--zen-accent);
  background: color-mix(in srgb, var(--zen-accent) 14%, var(--zen-bg-elevated));
  box-shadow: inset 2.5px 0 0 var(--zen-accent), 0 2px 8px -2px color-mix(in srgb, var(--zen-accent) 18%, transparent);
}

.feature-chip:focus-visible {
  border-color: var(--zen-accent);
  outline: 2px solid color-mix(in srgb, var(--zen-accent) 35%, transparent);
  outline-offset: 1px;
}

.chip-title {
  font-size: 0.78rem;
  font-weight: var(--zen-weight-medium);
  color: var(--zen-text-primary);
  line-height: 1.25;
  flex: 1;
}

.chip-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.chip-badge {
  font-size: 0.58rem;
  font-weight: var(--zen-weight-bold);
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  line-height: 1;
  white-space: nowrap;
}

.feature-chip--free .chip-badge {
  background: rgba(22, 163, 74, 0.15);
  color: #15803d;
}

.feature-chip--pro .chip-badge,
.feature-chip--pro-preview .chip-badge {
  background: rgba(14, 116, 144, 0.15);
  color: #0f766e;
}

.feature-chip--preview .chip-badge {
  background: rgba(217, 119, 6, 0.15);
  color: #a16207;
}

.feature-chip--free-preview .chip-badge {
  background: rgba(37, 99, 235, 0.14);
  color: #1d4ed8;
}

/* Desktop: hide inline detail (shown in the detail box instead) */
.chip-inline-detail {
  display: none;
}

.chip-toggle-icon {
  display: none;
}

/* Detail Box */
.feature-explorer__detail-box {
  position: sticky;
  top: 80px;
  align-self: start;
  padding: var(--zen-space-xl);
  background: var(--zen-bg-secondary);
  border: 1px solid var(--zen-border);
  border-radius: var(--zen-radius-lg);
  box-shadow: var(--zen-shadow-md);
  display: flex;
  flex-direction: column;
  gap: var(--zen-space-md);
}

.detail-box__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--zen-space-sm);
}

.detail-box__category {
  font-size: var(--zen-text-xs);
  color: var(--zen-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-box__title {
  margin: 0;
  font-size: var(--zen-text-lg);
  color: var(--zen-text-primary);
  line-height: 1.3;
}

.detail-box__copy {
  margin: 0;
  font-size: var(--zen-text-sm);
  color: var(--zen-text-secondary);
  line-height: 1.6;
}

.detail-box__footer {
  margin-top: var(--zen-space-md);
  padding-top: var(--zen-space-md);
  border-top: 1px solid var(--zen-border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--zen-text-xs);
  color: var(--zen-text-tertiary);
}

.detail-box__hint {
  font-style: italic;
  color: var(--zen-accent);
}

/* Detail-box animated mini-mockup stages (one per category) */
.detail-box__stage {
  display: none;
  min-height: 132px;
  padding: 15px;
  border-radius: 10px;
  background: #101827;
  color: #cbd5e1;
  font-family: var(--zen-font-mono);
  font-size: .72rem;
  line-height: 1.5;
  overflow: hidden;
}

.detail-box__stage.is-active {
  display: grid;
  gap: 8px;
  align-content: start;
  animation: stageIn .35s ease;
}

/* Children reveal in sequence when a stage becomes active */
.detail-box__stage.is-active > * { animation: stageLineIn .45s ease both; }
.detail-box__stage.is-active > :nth-child(2) { animation-delay: .15s; }
.detail-box__stage.is-active > :nth-child(3) { animation-delay: .35s; }
.detail-box__stage.is-active > :nth-child(4) { animation-delay: .55s; }
.detail-box__stage.is-active > :nth-child(5) { animation-delay: .75s; }

.stage-label {
  color: #94a3b8;
  font-size: .66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.stage-diff { color: #6ee7b7; }
.stage-row { color: #cbd5e1; }
.stage-row--muted { color: #64748b; font-size: .64rem; }
.stage-row--accent { color: #6ee7b7; }

/* Scene 1: typing commit message */
.stage-typeline { display: flex; min-width: 0; }
.stage-type {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  color: #e2e8f0;
  font-size: .78rem;
  animation: stageTypewriter 2.2s steps(34) .5s both;
}
.detail-box__stage.is-active .stage-typeline::after {
  content: "|";
  color: #6ee7b7;
  animation: featureCursor .8s step-end infinite;
}
.stage-action { color: #94a3b8; font-size: .66rem; }
.stage-action i {
  display: inline-block;
  margin-right: 4px;
  color: #6ee7b7;
  font-style: normal;
  animation: recoveryPulse 1.4s ease-in-out infinite;
}

/* Scene 2: provider pill grid */
.stage-pill-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.stage-pill {
  padding: 4px 5px;
  border: 1px solid #334155;
  border-radius: 6px;
  background: #1e293b;
  color: #cbd5e1;
  font-size: .6rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.detail-box__stage.is-active .stage-pill { animation: pulseGreen 1.6s infinite alternate; }
.detail-box__stage.is-active .stage-pill:nth-child(2) { animation-delay: .2s; }
.detail-box__stage.is-active .stage-pill:nth-child(3) { animation-delay: .4s; }
.detail-box__stage.is-active .stage-pill:nth-child(4) { animation-delay: .6s; }
.detail-box__stage.is-active .stage-pill:nth-child(5) { animation-delay: .8s; }
.detail-box__stage.is-active .stage-pill:nth-child(6) { animation-delay: 1s; }
.detail-box__stage.is-active .stage-pill:nth-child(7) { animation-delay: 1.2s; }
.detail-box__stage.is-active .stage-pill:nth-child(8) { animation-delay: 1.4s; }
.stage-pill--local { border-color: rgba(110, 231, 183, .5); color: #6ee7b7; }
.stage-pill--local b {
  margin-left: 2px;
  color: #34d399;
  font-size: .5rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Scene 3: style/language cycling */
.stage-cycle { position: relative; display: block; height: 1.5em; }
.stage-cycle__variant {
  position: absolute;
  top: 0;
  left: 0;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #e2e8f0;
  font-size: .78rem;
  opacity: 0;
}
/* First variant is visible at rest so the scene stays legible with reduced motion */
.stage-cycle__variant:first-child { opacity: 1; }
.detail-box__stage.is-active .stage-cycle__variant { animation: stageCycle 6s infinite; }
.detail-box__stage.is-active .stage-cycle__variant:nth-child(2) { animation-delay: 2s; }
.detail-box__stage.is-active .stage-cycle__variant:nth-child(3) { animation-delay: 4s; }

/* Scene 4: candidates + health score */
.stage-row--pick {
  padding-left: 6px;
  border-left: 2px solid #34d399;
  background: rgba(110, 231, 183, .08);
  color: #e2e8f0;
}
.stage-score { display: flex; align-items: center; gap: 8px; }
.stage-score__track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: #1e293b;
  overflow: hidden;
}
.stage-score__fill {
  display: block;
  width: 82%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #34d399, #6ee7b7);
}
.detail-box__stage.is-active .stage-score__fill { animation: stageFill 1.4s 1s ease both; }
.stage-score b { color: #6ee7b7; font-size: .66rem; font-weight: 600; }

/* Scene 6: secret vault + scan line */
.stage-vault {
  position: relative;
  padding: 8px 10px;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #0b1220;
  color: #e2e8f0;
  overflow: hidden;
}
.stage-vault code { color: #fca5a5; }
.stage-vault::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #34d399, transparent);
}
.detail-box__stage.is-active .stage-vault::after { animation: scanVertical 1.8s infinite ease-in-out; }
.stage-row--pulse { color: #94a3b8; }
.detail-box__stage.is-active .stage-row--pulse { animation: stageLineIn .45s ease both, recoveryPulse 1.6s 1.2s ease-in-out infinite; }

@keyframes stageIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes stageTypewriter { from { width: 0; } to { width: 100%; } }
@keyframes stageLineIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
@keyframes stageCycle { 0%, 24% { opacity: 1; } 33%, 91% { opacity: 0; } 100% { opacity: 1; } }
@keyframes stageFill { from { width: 8%; } to { width: 82%; } }

@media (max-width: 900px) {
  .feature-explorer__layout {
    grid-template-columns: 1fr;
  }

  /* Hide the detail box entirely on mobile — chips expand in place */
  .feature-explorer__detail-box {
    display: none;
  }

  /* Show toggle icon on mobile as tap affordance */
  .chip-toggle-icon {
    display: inline-block;
    flex-shrink: 0;
    font-size: 0.75rem;
    color: var(--zen-text-tertiary);
    transition: transform 0.25s ease;
  }

  /* Inline detail: collapsed by default, expand on tap */
  .chip-inline-detail {
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease;
    padding: 0 12px;
  }

  .feature-chip-card.is-expanded .chip-inline-detail {
    max-height: 200px;
    opacity: 1;
    padding: 10px 12px 14px;
  }

  .feature-chip-card.is-expanded .chip-toggle-icon {
    transform: rotate(180deg);
  }

  .chip-inline-copy {
    margin: 0;
    font-size: var(--zen-text-xs);
    color: var(--zen-text-secondary);
    line-height: 1.5;
  }
}

@media (max-width: 560px) {
  .feature-explorer__filters { justify-content: flex-start; }
  .explorer-filter-btn { flex: 1 1 120px; }
  .explorer-category-group { padding: var(--zen-space-sm); }
  .explorer-chips-wrap { grid-template-columns: 1fr; }
  .feature-chip { min-height: 0; }
}
/* ==========================================================================
   Pricing Page — SynciZen Clean Style
   ========================================================================== */

.pricing-page-header {
  text-align: left;
}

.pricing-page-header__eyebrow {
  font-family: var(--zen-font-mono);
  font-size: var(--zen-text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--zen-accent-dark);
  font-weight: var(--zen-weight-semibold);
  margin-bottom: var(--zen-space-xs);
}

.pricing-page-content {
  padding-top: var(--zen-space-2xl);
}

.pricing-decision {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 375px;
  gap: var(--zen-space-xl);
  padding: var(--zen-space-xl);
  background: var(--zen-bg-secondary);
  border: 1px solid var(--zen-border);
  border-radius: var(--zen-radius-lg);
  box-shadow: var(--zen-shadow-sm);
}

.pricing-decision__summary h2 {
  margin: var(--zen-space-sm) 0;
}

.pricing-decision__summary > p {
  max-width: 60ch;
  margin: 0 0 var(--zen-space-md);
}

.pricing-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--zen-radius-full);
  font-size: var(--zen-text-xs);
  font-weight: var(--zen-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--zen-accent-dark);
  background: var(--zen-accent-subtle);
  border: 1px solid color-mix(in srgb, var(--zen-accent) 24%, transparent);
}

.pricing-feature-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing-feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--zen-text-sm);
  color: var(--zen-text-secondary);
}

.pricing-feature-list .check {
  color: var(--zen-accent);
  font-weight: bold;
}

.pricing-decision__purchase {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--zen-space-md);
  padding: var(--zen-space-lg);
  border-radius: var(--zen-radius-md);
  background: var(--zen-bg-tertiary);
  border: 1px solid var(--zen-border-subtle);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.pricing-price__currency {
  font-size: 1.5rem;
  font-weight: var(--zen-weight-semibold);
  color: var(--zen-text-primary);
}

.pricing-price__amount {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--zen-text-primary);
  letter-spacing: -0.03em;
}

.pricing-price__period {
  margin: 0;
  font-size: var(--zen-text-xs);
  color: var(--zen-text-tertiary);
}

.pricing-cta-form {
  display: flex;
  flex-direction: column;
  gap: var(--zen-space-md);
  margin: var(--zen-space-xs) 0;
}

.pricing-cta-form .terms-row {
  margin-bottom: 0;
  background: var(--zen-bg-elevated);
  border: 1px solid var(--zen-border);
  border-radius: var(--zen-radius-md);
  padding: 10px 12px;
}

.pricing-decision__purchase .btn,
.pricing-cta-form .btn {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 12px 16px;
  white-space: nowrap;
}

.pricing-note {
  margin: 0;
  color: var(--zen-text-tertiary);
  font-size: var(--zen-text-xs) !important;
  line-height: 1.55;
}

.pricing-section-heading {
  margin-top: var(--zen-space-3xl);
}

.pricing-section-heading h2 {
  margin: 0;
}

.pricing-comparison__scroll {
  margin-top: var(--zen-space-lg);
  overflow-x: auto;
  border: 1px solid var(--zen-border);
  border-radius: var(--zen-radius-md);
}

.pricing-comparison table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: var(--zen-bg-secondary);
}

.pricing-comparison th,
.pricing-comparison td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--zen-border-subtle);
  text-align: left;
  font-size: var(--zen-text-sm);
}

.pricing-comparison thead th {
  background: var(--zen-bg-tertiary);
  color: var(--zen-text-primary);
  font-weight: var(--zen-weight-semibold);
}

.pricing-comparison tbody th {
  color: var(--zen-text-primary);
  font-weight: var(--zen-weight-medium);
}

.pricing-comparison td {
  color: var(--zen-text-secondary);
}

.pricing-comparison td:last-child,
.pricing-comparison thead th:last-child {
  color: var(--zen-accent-dark);
  font-weight: var(--zen-weight-semibold);
}

.pricing-how-it-works ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--zen-space-md);
  margin: var(--zen-space-lg) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: purchase-step;
}

.pricing-how-it-works li {
  display: grid;
  gap: var(--zen-space-sm);
  padding: var(--zen-space-lg);
  border: 1px solid var(--zen-border);
  border-radius: var(--zen-radius-md);
  color: var(--zen-text-secondary);
  font-size: var(--zen-text-sm);
  line-height: 1.6;
}

.pricing-how-it-works li::before {
  counter-increment: purchase-step;
  content: counter(purchase-step);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--zen-accent-subtle);
  color: var(--zen-accent-dark);
  font-weight: var(--zen-weight-semibold);
}

.pricing-how-it-works strong {
  color: var(--zen-text-primary);
}

.pricing-trust-panel {
  display: flex;
  justify-content: space-between;
  gap: var(--zen-space-xl);
  margin-top: var(--zen-space-xl);
  padding: var(--zen-space-lg);
  border-left: 3px solid var(--zen-accent);
  background: var(--zen-bg-secondary);
}

.pricing-trust-panel h2 {
  margin: 0 0 var(--zen-space-sm);
  font-size: var(--zen-text-lg);
}

.pricing-trust-panel p {
  max-width: 62ch;
  margin: 0;
  font-size: var(--zen-text-sm);
}

.pricing-trust-panel__links {
  display: flex;
  align-items: start;
  flex-wrap: wrap;
  gap: var(--zen-space-md);
  min-width: 210px;
  font-size: var(--zen-text-sm);
}

.pricing-recovery-notice {
  margin-top: var(--zen-space-2xl);
  padding: var(--zen-space-lg);
  background: var(--zen-bg-secondary);
  border: 1px solid var(--zen-border);
  border-radius: var(--zen-radius-md);
}

.pricing-recovery-notice h2 {
  margin: 0 0 var(--zen-space-xs);
  font-size: var(--zen-text-lg);
}

.pricing-recovery-notice p {
  margin: 0 0 var(--zen-space-xs);
  font-size: var(--zen-text-sm);
  color: var(--zen-text-secondary);
}

.pricing-recovery-notice p.muted {
  margin: 0;
  color: var(--zen-text-tertiary);
  font-size: var(--zen-text-xs);
}

@media (max-width: 900px) {
  .pricing-trust-panel {
    align-items: start;
    flex-direction: column;
  }
  .pricing-decision {
    grid-template-columns: 1fr;
  }
  .pricing-decision__purchase {
    max-width: 440px;
    width: 100%;
  }
  .pricing-how-it-works ol {
    grid-template-columns: 1fr;
  }
}
/* ==========================================================================
   Privacy / Legal Page Styles
   ========================================================================== */

/* ── Table of Contents ── */
.pp-toc {
  background: var(--zen-bg-secondary);
  border: 1px solid var(--zen-border);
  border-radius: var(--zen-radius-lg);
  padding: var(--zen-space-xl) var(--zen-space-2xl);
  margin-bottom: var(--zen-space-2xl);
}

.pp-toc__label {
  font-size: var(--zen-text-xs);
  font-weight: var(--zen-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--zen-text-tertiary);
  margin-bottom: var(--zen-space-md);
}

.pp-toc ol {
  padding-left: var(--zen-space-lg);
  margin-bottom: 0;
}

.pp-toc li {
  margin: 5px 0;
}

.pp-toc a {
  color: var(--zen-accent);
  text-decoration: none;
  font-size: var(--zen-text-base);
}

.pp-toc a:hover {
  text-decoration: underline;
}

/* ── Callouts ── */
.pp-callout {
  border-radius: var(--zen-radius-md);
  padding: var(--zen-space-lg) var(--zen-space-xl);
  margin: var(--zen-space-lg) 0;
  font-size: var(--zen-text-base);
  line-height: var(--zen-leading-relaxed);
}

.pp-callout--info {
  background: var(--zen-accent-subtle);
  border: 1px solid color-mix(in srgb, var(--zen-accent) 30%, transparent);
  color: var(--zen-accent-hover);
}

.pp-callout--warn {
  background: color-mix(in srgb, var(--zen-status-warning) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--zen-status-warning) 50%, transparent);
  color: color-mix(in srgb, var(--zen-status-warning) 90%, var(--zen-text-primary));
}

.pp-callout--danger {
  background: color-mix(in srgb, var(--zen-color-danger) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--zen-color-danger) 40%, transparent);
  color: color-mix(in srgb, var(--zen-color-danger) 85%, var(--zen-text-primary));
}

.pp-callout--success {
  background: color-mix(in srgb, var(--zen-status-ok) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--zen-status-ok) 35%, transparent);
  color: color-mix(in srgb, var(--zen-status-ok) 80%, var(--zen-text-primary));
}

.pp-callout strong {
  font-weight: var(--zen-weight-semibold);
}

/* ── Disclaimer boxes ── */
.pp-disclaimer {
  background: color-mix(in srgb, var(--zen-color-danger) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--zen-color-danger) 30%, transparent);
  border-left: 4px solid var(--zen-color-danger);
  border-radius: var(--zen-radius-md);
  padding: var(--zen-space-xl) var(--zen-space-2xl);
  margin: var(--zen-space-lg) 0;
}

.pp-disclaimer__title {
  font-size: var(--zen-text-sm);
  font-weight: var(--zen-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--zen-color-danger);
  margin: 0 0 var(--zen-space-md);
}

.pp-disclaimer p {
  color: color-mix(in srgb, var(--zen-color-danger) 70%, var(--zen-text-primary)) !important;
  font-size: var(--zen-text-base) !important;
  line-height: var(--zen-leading-relaxed) !important;
  margin-bottom: var(--zen-space-sm) !important;
}

.pp-disclaimer p:last-child {
  margin-bottom: 0 !important;
}

.pp-disclaimer strong {
  color: color-mix(in srgb, var(--zen-color-danger) 90%, var(--zen-text-primary));
}

/* ── Table ── */
.pp-table-wrap {
  overflow-x: auto;
  margin: var(--zen-space-lg) 0 var(--zen-space-xl);
  border-radius: var(--zen-radius-md);
  border: 1px solid var(--zen-border);
}

.pp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--zen-text-sm);
  min-width: 560px;
}

.pp-table th {
  text-align: left;
  color: var(--zen-text-tertiary);
  font-size: var(--zen-text-xs);
  font-weight: var(--zen-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: var(--zen-space-md) var(--zen-space-lg);
  background: var(--zen-bg-secondary);
  border-bottom: 1px solid var(--zen-border);
}

.pp-table td {
  padding: var(--zen-space-md) var(--zen-space-lg);
  border-bottom: 1px solid var(--zen-border-subtle);
  vertical-align: middle;
  color: var(--zen-text-secondary);
}

.pp-table tr:last-child td {
  border-bottom: none;
}

/* ── Badges ── */
.pp-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 99px;
  font-size: var(--zen-text-xs);
  font-weight: var(--zen-weight-semibold);
  white-space: nowrap;
}

.pp-badge--yes  { background: color-mix(in srgb, var(--zen-status-ok) 15%, transparent); color: color-mix(in srgb, var(--zen-status-ok) 80%, var(--zen-text-primary)); }
.pp-badge--no   { background: color-mix(in srgb, var(--zen-color-danger) 10%, transparent); color: color-mix(in srgb, var(--zen-color-danger) 85%, var(--zen-text-primary)); }
.pp-badge--opt  { background: color-mix(in srgb, var(--zen-status-warning) 15%, transparent); color: color-mix(in srgb, var(--zen-status-warning) 90%, var(--zen-text-primary)); }
.pp-badge--na   { background: var(--zen-bg-tertiary); color: var(--zen-text-tertiary); }

/* ── Section headings ── */
.page-content .pp-section-h2 {
  font-size: var(--zen-text-xl);
  font-weight: var(--zen-weight-semibold);
  color: var(--zen-text-primary);
  margin-top: var(--zen-space-2xl);
  margin-bottom: var(--zen-space-md);
  padding-bottom: var(--zen-space-sm);
  border-bottom: 1px solid var(--zen-border);
}

.page-content .pp-section-h3 {
  font-size: var(--zen-text-lg);
  font-weight: var(--zen-weight-medium);
  color: var(--zen-text-primary);
  margin-top: var(--zen-space-xl);
  margin-bottom: var(--zen-space-sm);
}

/* ── "Please read carefully" danger notice ── */
.pp-read-carefully {
  background: color-mix(in srgb, var(--zen-color-danger) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--zen-color-danger) 30%, transparent);
  border-radius: var(--zen-radius-md);
  padding: var(--zen-space-lg) var(--zen-space-xl);
  margin-bottom: var(--zen-space-xl);
  color: color-mix(in srgb, var(--zen-color-danger) 85%, var(--zen-text-primary));
  font-size: var(--zen-text-base);
}
/* ── Focused homepage and pricing conversion layout ─────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.homepage-hero .hero__title { max-width: 820px; margin-left: auto; margin-right: auto; }
.editor-support-message { margin-bottom: var(--zen-space-md); }
.hero__terminal-box .copy-btn.is-copied { color: #d1fae5; border-color: #34d399; }
.demo-card__header { gap: var(--zen-space-md); }
.demo-card__header h2 { margin: 0; font-size: var(--zen-text-lg); }
.demo-card__eyebrow,
.feature-story__eyebrow,
.pricing-page-header__eyebrow { margin: 0 0 5px; color: var(--zen-accent-dark); font-size: var(--zen-text-xs); font-weight: var(--zen-weight-semibold); letter-spacing: 0.08em; text-transform: uppercase; }

.product-gallery { margin-top: var(--zen-space-xl); }
.product-gallery__window { border: 1px solid var(--zen-border); border-radius: var(--zen-radius-lg); background: var(--zen-bg-secondary); box-shadow: var(--zen-shadow-md); overflow: hidden; }
.product-gallery__window-bar { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--zen-bg-tertiary); border-bottom: 1px solid var(--zen-border-subtle); }
.product-gallery__window-dots { display: flex; align-items: center; gap: 6px; }
.window-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.window-dot--close { background: #ef4444; }
.window-dot--minimize { background: #f59e0b; }
.window-dot--expand { background: #10b981; }
.window-title { font-family: var(--zen-font-mono); font-size: var(--zen-text-xs); color: var(--zen-text-tertiary); margin-left: 6px; }
.product-gallery__frame { position: relative; margin: 0; overflow: hidden; aspect-ratio: 16 / 9; background: var(--zen-bg-tertiary); }
.product-gallery__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; background: var(--zen-bg-tertiary); opacity: 0; visibility: hidden; transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s; }
.product-gallery__image.is-active { position: relative; opacity: 1; visibility: visible; display: block !important; }
.product-gallery__image[hidden] { display: none !important; opacity: 0; visibility: hidden; }
.product-gallery__caption { display: grid; gap: 4px; padding: var(--zen-space-md) var(--zen-space-lg); color: var(--zen-text-secondary); font-size: var(--zen-text-sm); line-height: 1.6; border-top: 1px solid var(--zen-border-subtle); background: var(--zen-bg-secondary); }
.product-gallery__caption strong { color: var(--zen-text-primary); font-size: var(--zen-text-base); }
.product-gallery__controls { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--zen-space-sm); margin-top: var(--zen-space-md); }
.product-gallery__control { min-height: 36px; padding: 6px 14px; border: 1px solid var(--zen-border); border-radius: var(--zen-radius-full); background: var(--zen-bg-secondary); color: var(--zen-text-secondary); font: inherit; font-size: var(--zen-text-xs); font-weight: var(--zen-weight-medium); cursor: pointer; transition: all var(--zen-transition-fast); }
.product-gallery__control:hover,
.product-gallery__control.is-active { border-color: var(--zen-accent); background: var(--zen-accent-subtle); color: var(--zen-accent-dark); font-weight: var(--zen-weight-semibold); }
.product-gallery__arrow { display: inline-grid; width: 36px; height: 36px; place-items: center; padding: 0; border: 1px solid var(--zen-border); border-radius: 50%; background: var(--zen-bg-secondary); color: var(--zen-text-secondary); font: inherit; font-size: 1.1rem; cursor: pointer; transition: all var(--zen-transition-fast); }
.product-gallery__arrow:hover { border-color: var(--zen-accent); color: var(--zen-accent-dark); background: var(--zen-accent-subtle); }

.feature-story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--zen-space-lg); margin-top: var(--zen-space-xl); }
.feature-story { display: flex; flex-direction: column; gap: var(--zen-space-md); min-width: 0; padding: var(--zen-space-lg); border: 1px solid var(--zen-border); border-radius: var(--zen-radius-lg); background: var(--zen-bg-secondary); }
.feature-story h3 { margin: 0 0 var(--zen-space-sm); font-size: var(--zen-text-lg); }
.feature-story p:not(.feature-story__eyebrow) { margin: 0; color: var(--zen-text-secondary); font-size: var(--zen-text-sm); line-height: 1.65; }
.feature-story__visual { display: grid; gap: 7px; min-height: 132px; padding: 14px; border-radius: var(--zen-radius-md); font-family: var(--zen-font-mono); font-size: 0.72rem; }
.feature-story__visual--terminal,
.feature-story__visual--history { background: #0f172a; color: #cbd5e1; }
.feature-story__visual code { overflow: hidden; color: inherit; text-overflow: ellipsis; white-space: nowrap; }
.feature-story__visual--terminal strong,
.feature-story__visual--history strong { align-self: end; color: #6ee7b7; }
.feature-story__visual--fallback { grid-template-columns: 1fr auto; align-items: center; background: #f8fafc; color: var(--zen-text-secondary); }
.feature-story__visual--fallback strong { color: #b91c1c; }
.feature-story__visual--fallback i { grid-column: 1 / -1; text-align: center; color: var(--zen-accent); font-style: normal; }
.feature-story__visual--fallback b { color: var(--zen-accent-dark); }

.capability-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--zen-space-md); margin: var(--zen-space-lg) 0 0; padding: 0; list-style: none; }
.capability-list li { display: grid; gap: 5px; padding-left: var(--zen-space-md); border-left: 2px solid var(--zen-accent); color: var(--zen-text-secondary); font-size: var(--zen-text-sm); line-height: 1.55; }
.capability-list strong { color: var(--zen-text-primary); }

.provider-reassurance { display: flex; justify-content: space-between; gap: var(--zen-space-xl); align-items: end; margin-bottom: var(--zen-space-lg); }
.provider-reassurance h2 { margin: 0 0 var(--zen-space-sm); }
.provider-reassurance > div:first-child > p:last-child { max-width: 660px; margin: 0; color: var(--zen-text-secondary); line-height: 1.65; }
.provider-reassurance__facts { display: grid; gap: var(--zen-space-sm); min-width: 210px; color: var(--zen-text-secondary); font-size: var(--zen-text-sm); }
.provider-reassurance__facts span::before { content: "✓"; margin-right: 7px; color: var(--zen-accent); }
.homepage-providers { padding-bottom: var(--zen-space-sm); }
.homepage-providers + .homepage-gallery-section { padding-top: clamp(1.75rem, 3vw, 2.75rem); }

.homepage-license-module { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--zen-space-xl); align-items: center; padding: var(--zen-space-xl); border: 1px solid color-mix(in srgb, var(--zen-accent) 32%, var(--zen-border)); border-radius: var(--zen-radius-lg); background: linear-gradient(135deg, var(--zen-bg-secondary), var(--zen-accent-subtle)); }
.homepage-license-module h2 { margin: 0 0 var(--zen-space-sm); }
.homepage-license-module__copy > p:last-child { margin: 0; color: var(--zen-text-secondary); line-height: 1.65; }
.homepage-license-module__offer { display: grid; gap: var(--zen-space-sm); padding: var(--zen-space-lg); border-radius: var(--zen-radius-md); background: var(--zen-bg-secondary); border: 1px solid var(--zen-border); }
.homepage-license-module__price { color: var(--zen-text-primary); font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.homepage-license-module__offer > span:not(.homepage-license-module__price) { color: var(--zen-text-tertiary); font-size: var(--zen-text-sm); }
.homepage-license-module__offer ul { display: grid; gap: 5px; margin: var(--zen-space-sm) 0; padding: 0; list-style: none; color: var(--zen-text-secondary); font-size: var(--zen-text-sm); }
.homepage-license-module__offer li::before { content: "✓"; margin-right: 7px; color: var(--zen-accent); }

/* --- Clean Pricing Page Styles --- */
.pricing-hero-title { font-size: clamp(2.4rem, 4.5vw, 3.4rem); letter-spacing: -0.02em; margin: var(--zen-space-xs) 0 var(--zen-space-sm); }
.pricing-hero-subtitle { font-size: var(--zen-text-lg); color: var(--zen-text-secondary); max-width: 640px; margin: 0 auto var(--zen-space-xl); line-height: 1.6; }
.pricing-instant-buy { display: flex; flex-direction: column; align-items: center; gap: var(--zen-space-md); margin-bottom: var(--zen-space-2xl); }
.pricing-price-display { display: flex; align-items: baseline; gap: 4px; }
.pricing-price-currency { font-size: 1.8rem; font-weight: 700; color: var(--zen-text-primary); }
.pricing-price-val { font-size: 3.8rem; font-weight: 800; color: var(--zen-text-primary); line-height: 1; letter-spacing: -0.04em; }
.pricing-price-unit { font-size: var(--zen-text-sm); color: var(--zen-text-tertiary); margin-left: 6px; }
.pricing-action-wrap { display: flex; flex-direction: column; align-items: center; gap: var(--zen-space-xs); width: 100%; max-width: 360px; }
.btn--xl { font-size: var(--zen-text-md); padding: 14px 28px; border-radius: var(--zen-radius-full); width: 100%; justify-content: center; }
.pricing-guarantee-note { font-size: var(--zen-text-xs); color: var(--zen-text-tertiary); margin: 4px 0 0; }
.pricing-reassurance-row { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--zen-space-lg); margin: 0; padding: var(--zen-space-lg) 0 0; border-top: 1px solid var(--zen-border-subtle); list-style: none; font-size: var(--zen-text-sm); color: var(--zen-text-secondary); }
.pricing-reassurance-row .check-icon { color: var(--zen-accent); font-weight: bold; }
.pricing-clean-table { width: 100%; min-width: 520px; border-collapse: collapse; margin-top: var(--zen-space-lg); }
.pricing-clean-table th, .pricing-clean-table td { padding: 14px 16px; border-bottom: 1px solid var(--zen-border-subtle); text-align: left; font-size: var(--zen-text-sm); }
.pricing-clean-table thead th { color: var(--zen-text-primary); font-weight: var(--zen-weight-semibold); border-bottom: 2px solid var(--zen-border); }
.pricing-clean-table tbody th { color: var(--zen-text-primary); font-weight: var(--zen-weight-medium); }
.pricing-clean-table td { color: var(--zen-text-secondary); }
.pricing-clean-table .col-highlight { color: var(--zen-accent-dark); font-weight: var(--zen-weight-semibold); }
.pricing-steps-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--zen-space-lg); margin: var(--zen-space-lg) 0 0; padding: 0; list-style: none; }
.pricing-steps-list li { display: flex; flex-direction: column; gap: 4px; font-size: var(--zen-text-sm); color: var(--zen-text-secondary); line-height: 1.55; }
.pricing-steps-list strong { color: var(--zen-text-primary); font-size: var(--zen-text-base); }
.pricing-clean-footer { margin-top: var(--zen-space-3xl); text-align: center; font-size: var(--zen-text-sm); color: var(--zen-text-secondary); padding-top: var(--zen-space-xl); border-top: 1px solid var(--zen-border-subtle); }

@media (max-width: 900px) {
  .feature-story-grid,
  .capability-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .provider-reassurance,
  .pricing-trust-panel { align-items: start; flex-direction: column; }
  .homepage-license-module,
  .pricing-decision { grid-template-columns: 1fr; }
  .homepage-license-module__offer,
  .pricing-decision__purchase { max-width: 440px; width: 100%; }
}

@media (max-width: 640px) {
  .hero__terminal-box { width: 100%; padding-left: 12px; }
  .hero__terminal-box code { min-width: 0; }
  .hero__terminal-box .copy-btn { flex-shrink: 0; }
  .demo-card__header { align-items: flex-start; flex-direction: column; }
  .demo-card__style-selector { max-width: 100%; overflow-x: auto; }
  .feature-story-grid,
  .capability-list,
  .pricing-how-it-works ol { grid-template-columns: 1fr; }
  .homepage-license-module,
  .pricing-decision { padding: var(--zen-space-lg); }
  .product-gallery__controls { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .product-gallery__control { white-space: nowrap; }
  .pricing-trust-panel__links { min-width: 0; }
}
/* --- Responsive --- */
@media (max-width: 1280px) {
  .container,
  .container--narrow,
  .container--wide,
  .page-content .container {
    width: min(100%, calc(100vw - 64px));
  }
}

@media (max-width: 1100px) {
  .container {
    width: min(100%, calc(100vw - 52px));
  }

  .container--narrow,
  .page-content .container {
    width: min(100%, calc(100vw - 52px));
  }
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .gitmind-bg-canvas { opacity: 0.14; }
  h1 {
    font-size: clamp(var(--zen-text-xl), 5vw, var(--zen-text-2xl));
  }
  h2 {
    font-size: clamp(var(--zen-text-lg), 4.5vw, var(--zen-text-xl));
  }
  h3 {
    font-size: clamp(var(--zen-text-md), 4vw, var(--zen-text-lg));
  }

  .hero__title {
    font-size: clamp(var(--zen-text-xl), 6vw, var(--zen-text-2xl));
  }

  .section {
    padding: var(--zen-space-2xl) 0;
  }

  .container {
    width: auto;
    padding: 0 var(--zen-space-md);
  }

  .container--narrow,
  .container--wide,
  .page-content .container {
    width: auto;
  }

  .page-header--compact .container {
    width: auto;
  }

  .page-header--compact {
    padding: var(--zen-space-lg) 0 var(--zen-space-md);
  }

  .portal-header-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-actions {
    width: 100%;
  }

  .portal-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .platform-row,
  .device-actions,
  .device-actions__rename,
  .device-actions__rename form {
    align-items: stretch;
  }

  .device-actions,
  .device-actions__buttons {
    width: 100%;
  }

  .device-actions__buttons .btn,
  .device-actions__rename .btn {
    flex: 1 1 auto;
  }

  .device-actions__rename input {
    width: 100%;
    min-width: 0;
  }

  .admin-toolbar,
  .admin-toolbar__group,
  .admin-search-form,
  .admin-inline-form__controls {
    align-items: stretch;
    width: 100%;
  }

  .admin-toolbar__group,
  .admin-search-form,
  .admin-inline-form__controls {
    flex-wrap: wrap;
  }

  .admin-search-form__field,
  .admin-search-form .form-control,
  .admin-toolbar__group .btn,
  .admin-inline-form__controls .btn {
    min-width: 0;
    flex: 1 1 180px;
  }

  .admin-user-grid {
    grid-template-columns: 1fr;
  }

  .admin-user-header__actions {
    width: 100%;
  }

  .admin-user-header__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .grid-auto-200,
  .admin-grid-auto,
  .grid-2-lg,
  .pp-grid-details {
    grid-template-columns: 1fr;
  }

  .portal-login-grid {
    grid-template-columns: 1fr;
    gap: var(--zen-space-lg);
  }

  .portal-login-option + .portal-login-option {
    padding: var(--zen-space-lg) 0 0;
    border-top: 1px solid var(--zen-border-subtle);
    border-left: 0;
  }

  .auth-shell {
    align-items: flex-start;
    padding: var(--zen-space-lg) var(--zen-space-md);
  }

  .auth-card {
    padding: var(--zen-space-xl);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile nav — spring-r hamburger */
  .site-nav .container {
    width: 100%;
    position: relative;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 6px;
    right: var(--zen-space-md);
    z-index: 101;
  }

  .hamburger-box {
    width: 30px;
    height: 20px;
    display: inline-block;
    position: relative;
  }

  .hamburger-inner {
    display: block;
    top: auto;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: currentColor;
    border-radius: 4px;
    position: absolute;
    transition-property: transform;
    transition-duration: 0.15s;
    transition-delay: 0s;
    transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  }

  .hamburger-inner::before,
  .hamburger-inner::after {
    content: "";
    display: block;
    width: 30px;
    height: 2px;
    background-color: currentColor;
    border-radius: 4px;
    position: absolute;
  }

  .hamburger-inner::after {
    top: -20px;
    transition:
      top 0.3s 0.3s cubic-bezier(0.33333, 0.66667, 0.66667, 1),
      opacity 0s linear;
  }

  .hamburger-inner::before {
    top: -10px;
    transition:
      top 0.12s 0.3s cubic-bezier(0.33333, 0.66667, 0.66667, 1),
      transform 0.15s cubic-bezier(0.55, 0.055, 0.675, 0.19);
  }

  .nav-toggle.is-active .hamburger-inner {
    transform: translate3d(0, -10px, 0) rotate(-45deg);
    transition-delay: 0.32s;
    transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }

  .nav-toggle.is-active .hamburger-inner::after {
    top: 0;
    opacity: 0;
    transition:
      top 0.3s cubic-bezier(0.33333, 0, 0.66667, 0.33333),
      opacity 0s 0.32s linear;
  }

  .nav-toggle.is-active .hamburger-inner::before {
    top: 0;
    transform: rotate(90deg);
    transition:
      top 0.12s 0.18s cubic-bezier(0.33333, 0, 0.66667, 0.33333),
      transform 0.15s 0.32s cubic-bezier(0.215, 0.61, 0.355, 1);
  }

  /* Full-screen slide-down overlay */
  .nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 99;
    background: var(--zen-bg-primary);
    border-top: 1px solid var(--zen-border-subtle);
  }

  .nav-menu.active {
    animation: navSlideDown 400ms ease-in-out forwards;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-menu.closing {
    animation: navSlideUp 300ms ease-in-out forwards;
    visibility: visible;
    pointer-events: none;
  }

  @keyframes navSlideDown {
    0% {
      opacity: 0;
      height: 0;
    }
    100% {
      opacity: 1;
      height: calc(100vh - 60px);
    }
  }

  @keyframes navSlideUp {
    0% {
      opacity: 1;
      height: calc(100vh - 60px);
    }
    100% {
      opacity: 0;
      height: 0;
    }
  }

  /* Nav links centered in overlay */
  .nav-links {
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    padding: 0 var(--zen-space-xl);
    text-align: center;
    perspective: 600px;
  }

  .nav-links li {
    border-bottom: 1px solid var(--zen-border-subtle);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 10px var(--zen-space-md);
    font-size: 1.25rem;
    font-weight: var(--zen-weight-normal);
    border-radius: 0;
    text-align: center;
    line-height: 1.4;
    letter-spacing: 0.01em;
    color: var(--zen-text-secondary);
    transition: color var(--zen-transition-fast);
  }

  .nav-links a:hover {
    background: transparent;
    color: var(--zen-text-primary);
  }

  .nav-links a.active {
    background: transparent;
    color: var(--zen-accent);
    font-weight: var(--zen-weight-medium);
  }

  /* Staggered rotateY cascade on open — calm, no overshoot */
  .nav-menu.active .nav-links li {
    opacity: 0;
  }

  .nav-menu.active .nav-links li:nth-child(1) {
    animation: navItemIn 200ms ease-in-out 60ms forwards;
  }
  .nav-menu.active .nav-links li:nth-child(2) {
    animation: navItemIn 300ms ease-in-out 60ms forwards;
  }
  .nav-menu.active .nav-links li:nth-child(3) {
    animation: navItemIn 400ms ease-in-out 60ms forwards;
  }
  .nav-menu.active .nav-links li:nth-child(4) {
    animation: navItemIn 500ms ease-in-out 60ms forwards;
  }
  .nav-menu.active .nav-links li:nth-child(5) {
    animation: navItemIn 600ms ease-in-out 60ms forwards;
  }
  .nav-menu.active .nav-links li:nth-child(6) {
    animation: navItemIn 700ms ease-in-out 60ms forwards;
  }
  .nav-menu.active .nav-links li:nth-child(7) {
    animation: navItemIn 800ms ease-in-out 60ms forwards;
  }
  .nav-menu.active .nav-links li:nth-child(8) {
    animation: navItemIn 900ms ease-in-out 60ms forwards;
  }

  @keyframes navItemIn {
    0% {
      opacity: 0;
      transform: rotateY(-20deg);
    }
    60% {
      opacity: 0.6;
      transform: rotateY(-20deg);
    }
    100% {
      opacity: 1;
      transform: rotateY(0deg);
    }
  }

  /* Login and CTA buttons: full-width, no bottom border in mobile overlay */
  .nav-login,
  .nav-cta {
    margin-left: 0;
    margin-top: var(--zen-space-md);
    border-bottom: none !important;
  }

  .nav-login .btn {
    font-size: 1rem;
    font-weight: var(--zen-weight-medium);
    padding: 12px 24px;
    width: 100%;
    justify-content: center;
    background: var(--zen-bg-tertiary);
    color: var(--zen-text-primary);
    border-radius: var(--zen-radius-md);
  }

  .nav-login .btn:hover {
    background: var(--zen-border);
    color: var(--zen-text-primary);
  }

  .nav-cta .btn {
    font-size: 1rem;
    font-weight: var(--zen-weight-medium);
    padding: 12px 24px;
    width: 100%;
    justify-content: center;
    background: var(--zen-accent-dark);
    color: #ffffff;
    border-radius: var(--zen-radius-md);
  }

  .nav-cta .btn:hover {
    background: var(--zen-accent-darker);
    color: #ffffff;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: var(--zen-space-lg);
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .platforms {
    gap: var(--zen-space-lg);
  }

  .app-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--zen-space-md);
    padding: var(--zen-space-md);
  }

  .app-row__badge {
    max-width: 100%;
    width: 100%;
  }

  .comparison-table th,
  .comparison-table td {
    padding: var(--zen-space-sm);
    font-size: var(--zen-text-xs);
    white-space: normal;
    word-break: break-word;
    min-width: 0;
  }

  .hero__install-sources {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }

  .hero__terminal-box {
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px;
    box-sizing: border-box;
  }

  .hero__terminal-box code {
    white-space: pre-wrap;
    word-break: break-all;
    font-size: 0.75rem;
    line-height: 1.4;
    text-align: center;
  }

  .hero__terminal-box .copy-btn {
    width: 100%;
    justify-content: center;
  }

  .install-btn {
    justify-content: center;
    width: 100%;
    text-align: center;
  }

  .community-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .feature-card,
  .chart-card,
  .hbar-card,
  .circle-card,
  .proc-card,
  .cta-card,
  .community-card {
    padding: var(--zen-space-md);
    border-radius: var(--zen-radius-md);
  }
}

@media (max-width: 480px) {
  .portal-actions,
  .portal-actions .btn,
  .admin-toolbar__group .btn,
  .admin-search-form .btn,
  .admin-inline-form__controls .btn,
  .form-actions .btn {
    width: 100%;
  }

  .portal-actions,
  .admin-toolbar__group,
  .admin-search-form,
  .admin-inline-form__controls,
  .form-actions {
    flex-direction: column;
  }

  .admin-search-form__field,
  .admin-search-form .form-control,
  .form-control--inline {
    width: 100%;
  }

  .choice-grid,
  .auth-grid-2 {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: var(--zen-space-lg);
  }

  .pp-card__body {
    padding: var(--zen-space-md);
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
