/* =========================================================
   Superflow landing — prototype
   Tokens → base → components → sections → mockups → utilities
   ========================================================= */

/* ---------- Static tokens ---------- */
:root {
  --font-display: 'Manrope', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-ui: 'DM Sans', 'Inter', system-ui, sans-serif;

  /* Major-third type scale (1.25), fluid at the top end */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-h4: 1.25rem;
  --fs-h3: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --fs-h2: clamp(1.9rem, 1.3rem + 2.2vw, 3rem);
  --fs-display: clamp(2.4rem, 1.35rem + 3.8vw, 4.25rem);

  --space-section: clamp(4rem, 2.8rem + 4.5vw, 7.5rem);
  --container: 75rem;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2rem);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 180ms;

  --z-header: 50;
  --z-panel: 60;
  --z-drawer: 70;
  --z-modal: 80;

  --header-h: 4.25rem;
}

/* ---------- Neutrals: light (tinted with the palette hue) ---------- */
:root {
  --bg: hsl(var(--nh) 33% 98.5%);
  --bg-alt: hsl(var(--nh) 30% 96%);
  --surface: hsl(var(--nh) 40% 99.8%);
  --surface-2: hsl(var(--nh) 26% 97%);
  --ink: hsl(var(--nh) 30% 9%);
  --ink-2: hsl(var(--nh) 14% 26%);
  --muted: hsl(var(--nh) 9% 38%);
  --line: hsl(var(--nh) 18% 89%);
  --line-strong: hsl(var(--nh) 14% 80%);
  --shadow-rgb: var(--nh) 40% 15%;
  --sh-1: 0 1px 2px hsl(var(--shadow-rgb) / .06), 0 1px 1px hsl(var(--shadow-rgb) / .04);
  --sh-2: 0 4px 12px hsl(var(--shadow-rgb) / .07), 0 1px 3px hsl(var(--shadow-rgb) / .05);
  --sh-3: 0 24px 48px -12px hsl(var(--shadow-rgb) / .18), 0 8px 16px -8px hsl(var(--shadow-rgb) / .10);

  --ok: #15803d;
  --ok-soft: #dcfce7;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --danger: #b91c1c;
  --danger-soft: #fee2e2;
  --focus: var(--brand);

  --band-bg: hsl(var(--nh) 30% 8%);
  color-scheme: light;
}

/* ---------- Neutrals: dark (page in dark mode + dark bands in either mode) ---------- */
:root[data-theme="dark"],
.band {
  --bg: hsl(var(--nh) 22% 6%);
  --bg-alt: hsl(var(--nh) 20% 8%);
  --surface: hsl(var(--nh) 18% 10.5%);
  --surface-2: hsl(var(--nh) 16% 13%);
  --ink: hsl(var(--nh) 20% 95%);
  --ink-2: hsl(var(--nh) 10% 80%);
  --muted: hsl(var(--nh) 8% 66%);
  --line: hsl(var(--nh) 14% 18%);
  --line-strong: hsl(var(--nh) 12% 27%);
  --shadow-rgb: 0 0% 0%;
  --sh-1: 0 1px 2px hsl(0 0% 0% / .4);
  --sh-2: 0 4px 12px hsl(0 0% 0% / .35);
  --sh-3: 0 24px 48px -12px hsl(0 0% 0% / .6), 0 0 0 1px hsl(var(--nh) 20% 100% / .04);
  --ok: #4ade80;
  --ok-soft: hsl(142 60% 50% / .14);
  --warn: #fbbf24;
  --warn-soft: hsl(40 90% 55% / .14);
  --danger: #f87171;
  --danger-soft: hsl(0 80% 60% / .14);
}
:root[data-theme="dark"] { color-scheme: dark; --band-bg: hsl(var(--nh) 22% 9%); }

/* =========================================================
   Palettes — five colour-theory combinations
   Each sets: neutral hue, brand (AA with on-brand text), accent, highlight
   ========================================================= */

/* 1 · Teal × Ember — complementary (175° / 18°). Evolves the current brand. */
:root[data-palette="teal-ember"] {
  --nh: 180;
  --brand: #0f766e; --brand-hover: #115e59; --brand-active: #134e4a; --on-brand: #ffffff;
  --brand-soft: #d5f5ef; --brand-text: #0f766e;
  --accent: #ff6b35; --on-accent: #1f0a02; --accent-soft: #ffe6da; --accent-text: #a3380b;
  --mark: hsl(18 100% 60% / .30);
  --glow-a: hsl(174 70% 45% / .20); --glow-b: hsl(18 100% 60% / .14);
  --chip-bh: 174; --chip-ah: 18; --chip-th: 200;
}
:root[data-palette="teal-ember"][data-theme="dark"],
:root[data-palette="teal-ember"] .band {
  --brand: #2dd4bf; --brand-hover: #5eead4; --brand-active: #99f6e4; --on-brand: #042f2e;
  --brand-soft: hsl(173 66% 50% / .14); --brand-text: #5eead4;
  --accent: #ff8a5c; --on-accent: #1f0a02; --accent-soft: hsl(18 100% 68% / .15); --accent-text: #ffa580;
  --mark: hsl(18 100% 66% / .34);
  --glow-a: hsl(174 70% 45% / .22); --glow-b: hsl(18 100% 60% / .14);
}

/* 2 · Indigo × Amber — split-complementary (243° / 38° + 350°). Close to the admin blue. */
:root[data-palette="indigo-amber"] {
  --nh: 235;
  --brand: #4338ca; --brand-hover: #3730a3; --brand-active: #312e81; --on-brand: #ffffff;
  --brand-soft: #e3e7ff; --brand-text: #4338ca;
  --accent: #f59e0b; --on-accent: #1c1003; --accent-soft: #fef1c7; --accent-text: #a14a07;
  --mark: hsl(38 95% 55% / .38);
  --glow-a: hsl(243 75% 60% / .18); --glow-b: hsl(350 85% 60% / .10);
  --chip-bh: 243; --chip-ah: 38; --chip-th: 350;
}
:root[data-palette="indigo-amber"][data-theme="dark"],
:root[data-palette="indigo-amber"] .band {
  --brand: #818cf8; --brand-hover: #a5b4fc; --brand-active: #c7d2fe; --on-brand: #0b0a2e;
  --brand-soft: hsl(234 89% 74% / .15); --brand-text: #a5b4fc;
  --accent: #fbbf24; --on-accent: #1c1003; --accent-soft: hsl(43 96% 56% / .14); --accent-text: #fcd34d;
  --mark: hsl(43 96% 56% / .30);
  --glow-a: hsl(243 75% 60% / .25); --glow-b: hsl(350 85% 60% / .12);
}

/* 3 · Emerald × Lime — analogous (160° / 85°). Sporty, energetic. */
:root[data-palette="emerald-lime"] {
  --nh: 155;
  --brand: #047857; --brand-hover: #065f46; --brand-active: #064e3b; --on-brand: #ffffff;
  --brand-soft: #d3f8e6; --brand-text: #047857;
  --accent: #a3e635; --on-accent: #1a2e05; --accent-soft: #ecfccb; --accent-text: #3f6212;
  --mark: hsl(84 78% 55% / .55);
  --glow-a: hsl(160 84% 40% / .18); --glow-b: hsl(84 78% 55% / .20);
  --chip-bh: 160; --chip-ah: 85; --chip-th: 130;
}
:root[data-palette="emerald-lime"][data-theme="dark"],
:root[data-palette="emerald-lime"] .band {
  --brand: #34d399; --brand-hover: #6ee7b7; --brand-active: #a7f3d0; --on-brand: #022c22;
  --brand-soft: hsl(158 64% 52% / .14); --brand-text: #6ee7b7;
  --accent: #bef264; --on-accent: #1a2e05; --accent-soft: hsl(82 85% 67% / .14); --accent-text: #d9f99d;
  --mark: hsl(82 85% 67% / .30);
  --glow-a: hsl(160 84% 40% / .22); --glow-b: hsl(84 78% 55% / .14);
}

/* 4 · Violet Pulse — triadic (265° / 25° / 150°). Bold, youthful. */
:root[data-palette="violet-pulse"] {
  --nh: 265;
  --brand: #6d28d9; --brand-hover: #5b21b6; --brand-active: #4c1d95; --on-brand: #ffffff;
  --brand-soft: #ede7fe; --brand-text: #6d28d9;
  --accent: #f97316; --on-accent: #1f0a00; --accent-soft: #ffedd5; --accent-text: #b13c0a;
  --mark: hsl(25 95% 53% / .30);
  --glow-a: hsl(265 85% 60% / .18); --glow-b: hsl(150 70% 45% / .14);
  --chip-bh: 265; --chip-ah: 25; --chip-th: 150;
}
:root[data-palette="violet-pulse"][data-theme="dark"],
:root[data-palette="violet-pulse"] .band {
  --brand: #a78bfa; --brand-hover: #c4b5fd; --brand-active: #ddd6fe; --on-brand: #1e0b45;
  --brand-soft: hsl(255 92% 76% / .15); --brand-text: #c4b5fd;
  --accent: #fb923c; --on-accent: #1f0a00; --accent-soft: hsl(27 96% 61% / .15); --accent-text: #fdba74;
  --mark: hsl(27 96% 61% / .32);
  --glow-a: hsl(265 85% 60% / .25); --glow-b: hsl(150 70% 45% / .12);
}

/* 5 · Clay × Sage — earthy complementary (15° / 125°). Calm, boutique. */
:root[data-palette="clay-sage"] {
  --nh: 30;
  --brand: #b4441f; --brand-hover: #933516; --brand-active: #7a2c12; --on-brand: #ffffff;
  --brand-soft: #f8e1d5; --brand-text: #a63d1b;
  --accent: #7c9a7e; --on-accent: #0f1a10; --accent-soft: #e3ece2; --accent-text: #4a6a4d;
  --mark: hsl(124 15% 55% / .38);
  --glow-a: hsl(15 70% 50% / .14); --glow-b: hsl(124 18% 55% / .18);
  --chip-bh: 15; --chip-ah: 125; --chip-th: 42;
}
:root[data-palette="clay-sage"][data-theme="dark"],
:root[data-palette="clay-sage"] .band {
  --brand: #f08a5d; --brand-hover: #f5a882; --brand-active: #f9c6ab; --on-brand: #2a0f04;
  --brand-soft: hsl(19 83% 65% / .14); --brand-text: #f5a882;
  --accent: #a3c2a5; --on-accent: #0f1a10; --accent-soft: hsl(124 20% 70% / .14); --accent-text: #c3dbc4;
  --mark: hsl(124 20% 70% / .28);
  --glow-a: hsl(15 70% 50% / .18); --glow-b: hsl(124 18% 55% / .12);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--brand-text); text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--brand-soft); color: var(--ink); }

.icon {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
/* Single-column grids must not grow to their min-content width on small screens */
.hero-inner, .eco-grid, .feature, .app-grid, .switch-grid, .faq-grid, .footer-inner { grid-template-columns: minmax(0, 1fr); }
.center { text-align: center; }
.muted { color: var(--muted); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--brand); color: var(--on-brand); padding: .6rem 1rem; border-radius: var(--r-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--on-brand); }

/* ---------- Type ---------- */
.display, .h2, .h3, .h4 { font-family: var(--font-display); color: var(--ink); text-wrap: balance; }
.display { font-size: var(--fs-display); font-weight: 800; line-height: 1.04; letter-spacing: -0.035em; }
.h2 { font-size: var(--fs-h2); font-weight: 800; line-height: 1.1; letter-spacing: -0.028em; }

/* Rotating word in section titles (studio ↔ gym ↔ χώρου) */
.word-rotate {
  color: var(--brand-text);
  display: inline-block;
  white-space: nowrap;
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.word-rotate.is-swap {
  opacity: 0;
  transform: translateY(.28em);
}
#features-title { text-wrap: pretty; }
.h3 { font-size: var(--fs-h3); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.h4 { font-size: var(--fs-h4); font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.h-small { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 600; color: var(--muted); letter-spacing: .01em; }
.lead { font-size: var(--fs-lg); line-height: 1.55; color: var(--ink-2); max-width: 40rem; text-wrap: pretty; }
.center .lead, .lead.center { margin-inline: auto; }
.muted-line { color: var(--muted); display: block; }

mark {
  color: inherit;
  background: linear-gradient(to bottom, transparent 58%, var(--mark) 58%, var(--mark) 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding-inline: .06em;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-text);
  margin-bottom: 1rem;
}
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .4rem .9rem .4rem .7rem;
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill);
  box-shadow: var(--sh-1);
  margin-bottom: 1.5rem;
}
.eyebrow-pill .dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* ---------- Buttons ---------- */
.btn {
  --h: 2.75rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: var(--h); padding: 0 1.25rem;
  border-radius: var(--r-pill); border: 1px solid transparent;
  font-weight: 600; font-size: var(--fs-sm); line-height: 1.2; text-decoration: none; white-space: nowrap;
  cursor: pointer; position: relative;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform 80ms var(--ease), box-shadow var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm { --h: 2.5rem; padding: 0 1rem; }
.btn-lg { --h: 3.25rem; padding: 0 1.6rem; font-size: var(--fs-base); }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 6px 16px -6px var(--brand); }
.btn-primary:hover { background: var(--brand-hover); color: var(--on-brand); }
.btn-primary:active { background: var(--brand-active); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); border-color: var(--muted); }
.btn-accent { background: var(--accent); color: var(--on-accent); border-color: transparent; box-shadow: 0 6px 16px -6px var(--accent); }
.btn-accent:hover { filter: brightness(1.05); color: var(--on-accent); }
.btn .icon { transition: transform var(--dur) var(--ease); }
.btn:hover .icon { transform: translateX(2px); }
.btn[aria-disabled="true"], .btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn .spinner { display: none; }
.btn.is-loading .btn-label { visibility: hidden; }
.btn.is-loading .spinner {
  display: block; position: absolute; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 2.5rem; height: 2.5rem; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }

.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.cta-row.center { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 10px;
  background: var(--brand); color: var(--on-brand);
}
.brand-mark svg { width: 1.1rem; height: 1.3rem; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }

.primary-nav { flex: 1; }
.primary-nav ul { display: flex; gap: .25rem; justify-content: center; }
.primary-nav ul a {
  display: block; padding: .5rem .8rem; border-radius: var(--r-pill);
  color: var(--ink-2); text-decoration: none; font-size: var(--fs-sm); font-weight: 500; white-space: nowrap;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.primary-nav ul a:hover { color: var(--ink); background: var(--surface-2); }
/* Active section — same stabilo underline as hero <mark> */
.primary-nav ul a[aria-current="true"] {
  color: var(--ink);
  font-weight: 600;
  border-radius: .12em;
  background-color: transparent;
  background-image: linear-gradient(
    to bottom,
    transparent 58%,
    var(--mark) 58%,
    var(--mark) 92%,
    transparent 92%
  );
}
.primary-nav ul a[aria-current="true"]:hover {
  color: var(--ink);
  background-color: transparent;
  background-image: linear-gradient(
    to bottom,
    transparent 58%,
    var(--mark) 58%,
    var(--mark) 92%,
    transparent 92%
  );
}
.nav-mobile-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.lang-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); }
.lang-switch button {
  border: 0; background: transparent; padding: .3rem .6rem; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 700; color: var(--muted); cursor: pointer; min-width: 2.25rem; min-height: 2rem;
}
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
#theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] #theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] #theme-toggle .icon-moon { display: block; }
.nav-toggle { display: none; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Compact header: hamburger + drawer. Toggled by JS when links no longer fit (lang-aware). */
.site-header.is-nav-compact .nav-toggle { display: inline-grid; }
.site-header.is-nav-compact .header-cta { display: none; }
.site-header.is-nav-compact .primary-nav {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: var(--z-drawer);
  background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--sh-3);
  padding: 1rem var(--gutter) 1.5rem;
  display: none;
  flex: none;
}
.site-header.is-nav-compact .primary-nav.is-open { display: block; }
.site-header.is-nav-compact .primary-nav ul { flex-direction: column; gap: 0; justify-content: flex-start; }
.site-header.is-nav-compact .primary-nav ul a {
  padding: .9rem .5rem; border-radius: var(--r-sm); font-size: var(--fs-base); border-bottom: 1px solid var(--line);
}
.site-header.is-nav-compact .nav-mobile-cta { display: grid; gap: .6rem; margin-top: 1.25rem; }

/* No-JS fallback: keep a safe compact floor on small screens */
@media (max-width: 48rem) {
  html:not(.js) .nav-toggle { display: inline-grid; }
  html:not(.js) .header-cta { display: none; }
  html:not(.js) .primary-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: var(--z-drawer);
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--sh-3);
    padding: 1rem var(--gutter) 1.5rem;
    display: none; flex: none;
  }
  html:not(.js) .primary-nav.is-open { display: block; }
  html:not(.js) .primary-nav ul { flex-direction: column; gap: 0; }
  html:not(.js) .primary-nav ul a {
    padding: .9rem .5rem; border-radius: var(--r-sm); font-size: var(--fs-base); border-bottom: 1px solid var(--line);
  }
  html:not(.js) .nav-mobile-cta { display: grid; gap: .6rem; margin-top: 1.25rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--space-section); position: relative; }
.section-tight { padding-block: 2.5rem; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head.center { max-width: 48rem; margin-inline: auto; }
.section-head .lead { margin-top: 1.25rem; }
.band { background: var(--band-bg); color: var(--ink); }
:root[data-theme="dark"] .band { border-block: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(3rem, 2rem + 4vw, 5.5rem); padding-bottom: 2.5rem; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40rem 26rem at 85% 20%, var(--glow-a), transparent 70%),
    radial-gradient(30rem 22rem at 10% 80%, var(--glow-b), transparent 70%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  opacity: .6;
}
.hero-inner { display: grid; gap: clamp(3rem, 2rem + 3vw, 4.5rem); }
.hero-copy { max-width: 60rem; margin-inline: auto; text-align: center; display: grid; justify-items: center; }
.hero-copy > * { max-width: 100%; }
@media (max-width: 30rem) {
  .cta-row .btn { flex: 1 1 100%; white-space: normal; text-align: center; }
  .eyebrow-pill { font-size: var(--fs-xs); }
}
.hero-copy .lead { margin-top: 1.5rem; margin-inline: auto; }
.hero-copy .lead .hero-lead-break { display: none; }
@media (min-width: 52rem) {
  .hero-copy .lead .hero-lead-break { display: block; }
}
.hero-copy .cta-row { justify-content: center; }
.hero-notes { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.25rem; margin-top: 1.25rem; font-size: var(--fs-sm); color: var(--muted); }
.hero-notes li { display: inline-flex; align-items: center; gap: .4rem; }
.hero-notes .icon { color: var(--brand-text); }
.hero-visual { position: relative; width: 100%; max-width: 68rem; margin-inline: auto; padding-bottom: 3rem; }
@media (min-width: 52rem) {
  .hero-visual .browser { margin-right: 7rem; }
  .hero-visual .admin-main { padding-right: 8.5rem; }
}

.fact-strip {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px;
  margin-top: 2rem; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: var(--line);
}
.fact-strip li {
  display: flex; align-items: center; gap: .65rem; padding: 1rem 1.25rem;
  background: var(--surface); font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2);
}
.fact-strip .icon { color: var(--brand-text); width: 1.25rem; height: 1.25rem; }
@media (min-width: 30rem) { .fact-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 52rem) { .fact-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Verticals ---------- */
.verticals { text-align: center; }
.chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1rem; }
.chip {
  padding: .45rem 1rem; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line);
  font-weight: 600; font-size: var(--fs-sm); color: var(--ink-2);
}
/* Light tint per pill from palette brand / accent / tertiary hues */
.chip-row .chip:nth-child(1) { background: hsl(var(--chip-bh) 48% 91%); color: hsl(var(--chip-bh) 42% 28%); border-color: hsl(var(--chip-bh) 32% 82%); }
.chip-row .chip:nth-child(2) { background: hsl(var(--chip-ah) 62% 91%); color: hsl(var(--chip-ah) 55% 30%); border-color: hsl(var(--chip-ah) 40% 82%); }
.chip-row .chip:nth-child(3) { background: hsl(var(--chip-th) 42% 91%); color: hsl(var(--chip-th) 38% 28%); border-color: hsl(var(--chip-th) 28% 82%); }
.chip-row .chip:nth-child(4) { background: hsl(var(--chip-bh) 38% 94%); color: hsl(var(--chip-bh) 40% 32%); border-color: hsl(var(--chip-bh) 26% 86%); }
.chip-row .chip:nth-child(5) { background: hsl(var(--chip-ah) 48% 93%); color: hsl(var(--chip-ah) 50% 32%); border-color: hsl(var(--chip-ah) 34% 84%); }
.chip-row .chip:nth-child(6) { background: hsl(var(--chip-th) 55% 92%); color: hsl(var(--chip-th) 45% 28%); border-color: hsl(var(--chip-th) 35% 83%); }
.chip-row .chip:nth-child(7) { background: hsl(var(--chip-bh) 55% 88%); color: hsl(var(--chip-bh) 48% 26%); border-color: hsl(var(--chip-bh) 36% 78%); }
.chip-row .chip:nth-child(8) { background: hsl(var(--chip-ah) 70% 88%); color: hsl(var(--chip-ah) 58% 28%); border-color: hsl(var(--chip-ah) 42% 78%); }
:root[data-theme="dark"] .chip-row .chip:nth-child(1) { background: hsl(var(--chip-bh) 40% 16%); color: hsl(var(--chip-bh) 50% 78%); border-color: hsl(var(--chip-bh) 28% 26%); }
:root[data-theme="dark"] .chip-row .chip:nth-child(2) { background: hsl(var(--chip-ah) 45% 16%); color: hsl(var(--chip-ah) 60% 76%); border-color: hsl(var(--chip-ah) 30% 26%); }
:root[data-theme="dark"] .chip-row .chip:nth-child(3) { background: hsl(var(--chip-th) 35% 16%); color: hsl(var(--chip-th) 45% 78%); border-color: hsl(var(--chip-th) 24% 26%); }
:root[data-theme="dark"] .chip-row .chip:nth-child(4) { background: hsl(var(--chip-bh) 32% 18%); color: hsl(var(--chip-bh) 45% 80%); border-color: hsl(var(--chip-bh) 24% 28%); }
:root[data-theme="dark"] .chip-row .chip:nth-child(5) { background: hsl(var(--chip-ah) 38% 18%); color: hsl(var(--chip-ah) 55% 78%); border-color: hsl(var(--chip-ah) 28% 28%); }
:root[data-theme="dark"] .chip-row .chip:nth-child(6) { background: hsl(var(--chip-th) 42% 17%); color: hsl(var(--chip-th) 48% 78%); border-color: hsl(var(--chip-th) 28% 27%); }
:root[data-theme="dark"] .chip-row .chip:nth-child(7) { background: hsl(var(--chip-bh) 48% 14%); color: hsl(var(--chip-bh) 55% 76%); border-color: hsl(var(--chip-bh) 32% 24%); }
:root[data-theme="dark"] .chip-row .chip:nth-child(8) { background: hsl(var(--chip-ah) 52% 14%); color: hsl(var(--chip-ah) 62% 76%); border-color: hsl(var(--chip-ah) 34% 24%); }

/* ---------- Ecosystem (band) ---------- */
.eco-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 60rem) { .eco-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 4rem; } }
.before-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem;
}
.before-title {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.before-title::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--warn); }
.before-list { margin-top: 1rem; display: grid; gap: .25rem; }
.before-list li {
  display: flex; align-items: center; gap: .75rem; padding: .7rem .25rem;
  color: var(--ink-2); border-bottom: 1px dashed var(--line);
}
.before-list li:last-child { border-bottom: 0; }
.before-list .icon { color: var(--muted); width: 1.25rem; height: 1.25rem; }

.hub-panel { display: grid; justify-items: center; gap: 1rem; }
.hub-sol {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-text);
}
.hub-sol::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.hub { position: relative; width: min(100%, 34rem); aspect-ratio: 1; margin-inline: auto; container-type: inline-size; }
.hub-ring {
  position: absolute; inset: 12%; border-radius: 50%;
  border: 1px dashed var(--line-strong);
  background: radial-gradient(circle, var(--glow-a), transparent 65%);
}
.hub-ring::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; border: 1px solid var(--line); }
.hub-core {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 26cqw; height: 26cqw; border-radius: 30%;
  display: grid; place-items: center;
  background: var(--brand); color: var(--on-brand);
  box-shadow: 0 0 0 10px var(--brand-soft), 0 20px 50px -10px var(--brand);
}
.hub-core svg { width: 48%; height: 48%; }
.hub-nodes { position: absolute; inset: 0; }
.hub-node {
  --r: 38cqw;
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(calc(var(--a) * 45deg - 90deg)) translate(var(--r)) rotate(calc(var(--a) * -45deg + 90deg));
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem .85rem; border-radius: var(--r-pill);
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong);
  font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; cursor: pointer;
  box-shadow: var(--sh-2);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.hub-node .icon { color: var(--brand-text); }
.hub-node:hover { border-color: var(--brand); }
.hub-node[aria-selected="true"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.hub-node[aria-selected="true"] .icon { color: var(--on-brand); }
.hub-caption {
  max-width: 44rem; margin: 2rem auto 0; min-height: 3.4em;
  text-align: center; font-size: var(--fs-lg); color: var(--ink-2); text-wrap: pretty;
}
@media (max-width: 40rem) {
  .hub-panel { justify-items: stretch; }
  .hub { aspect-ratio: auto; container-type: normal; width: 100%; }
  .hub-ring, .hub-core { display: none; }
  .hub-nodes { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
  .hub-node { position: static; transform: none; justify-content: flex-start; border-radius: var(--r-md); padding: .75rem; }
  .hub-caption { text-align: left; }
}

/* ---------- Features ---------- */
.feature { display: grid; gap: 2.5rem; align-items: center; }
.feature + .feature { margin-top: clamp(4rem, 3rem + 4vw, 7rem); }
@media (min-width: 60rem) {
  .feature { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4.5rem; }
  .feature-flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .feature-flip .feature-copy { order: 2; }
}
.feature-kicker {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1rem;
  padding: .35rem .75rem; border-radius: var(--r-pill);
  background: var(--brand-soft); color: var(--brand-text); font-size: var(--fs-sm); font-weight: 700;
}
.feature-copy .h3 + p { margin-top: 1rem; color: var(--ink-2); max-width: 36rem; }
.ticks { display: grid; gap: .65rem; margin-top: 1.5rem; }
.ticks li { position: relative; padding-left: 1.85rem; color: var(--ink-2); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--brand-soft);
}
.ticks li::after {
  content: ""; position: absolute; left: 0; top: .2em; width: 1.25rem; height: 1.25rem;
  background: var(--brand-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / .75rem no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / .75rem no-repeat;
}
.ticks-lg li { font-size: var(--fs-lg); }

.feature-visual { position: relative; }
.feature-visual::before {
  content: ""; position: absolute; inset: 8% -4% -6% 10%; z-index: -1; border-radius: var(--r-xl);
  background: radial-gradient(closest-side, var(--glow-a), transparent);
}

.more { margin-top: clamp(4rem, 3rem + 4vw, 7rem); text-align: center; }
.more-grid { display: grid; gap: 1rem; margin-top: 1.5rem; text-align: left; }
@media (min-width: 40rem) { .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .more-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.more-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: .85rem; row-gap: .65rem; align-items: center;
  padding: 1.5rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.more-card:hover { border-color: var(--line-strong); box-shadow: var(--sh-2); transform: translateY(-2px); }
.more-card h4 { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 700; }
.more-card p { grid-column: 1 / -1; color: var(--muted); font-size: var(--fs-sm); }
.more-ic {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--r-md);
  background: var(--accent-soft); color: var(--accent-text);
}
.more-ic .icon { width: 1.35rem; height: 1.35rem; }

/* ---------- Mobile apps (member + staff tabs) ---------- */
.app-head { max-width: 40rem; margin-inline: auto; }
.app-head .eyebrow { margin-bottom: .55rem; }
.app-tabs {
  display: inline-flex; flex-wrap: nowrap; justify-content: center; gap: .25rem;
  max-width: 100%;
  margin: 1.5rem auto 0; padding: .25rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 1px 0 var(--line);
}
.app-tab {
  display: inline-flex; align-items: center; gap: .35rem;
  margin: 0; padding: .5rem .85rem; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-2);
  font: inherit; font-size: .85rem; font-weight: 650; cursor: pointer;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.app-tab .icon { width: .95rem; height: .95rem; stroke-width: 2.25; flex-shrink: 0; }
.app-tab:hover { color: var(--ink); background: var(--brand-soft); }
.app-tab[aria-selected="true"] {
  background: var(--brand); color: var(--on-brand);
  box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--brand) 70%, transparent);
}
.app-tab:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.app-grid { display: grid; gap: 3rem; align-items: center; margin-top: 2.75rem; }
.app-grid[hidden] { display: none !important; }
@media (min-width: 60rem) { .app-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4rem; } }
.app-copy .h3 { margin: 0; }
.app-copy .lead { margin-top: 1rem; }
.app-stores {
  display: flex; flex-wrap: wrap; gap: .75rem;
  margin: 1.75rem 0 0;
}
.app-store-btn .icon { width: 1.15rem; height: 1.15rem; flex-shrink: 0; }
.app-store-btn:hover .icon { transform: none; }
.app-phones { position: relative; display: flex; justify-content: center; align-items: center; padding-block: 1rem 2.5rem; }
.app-phones .mp-main { position: relative; z-index: 2; width: 15rem; }
.app-phones .mp-side { position: relative; z-index: 1; width: 12.75rem; margin-right: -1.25rem; transform: translateY(1.75rem) rotate(-4deg); }
.app-phones .mp-right { margin-right: 0; margin-left: -1.25rem; transform: translateY(1.75rem) rotate(4deg); }
.app-phones .mp-right .mb-body,
.app-phones-staff .mp-right .n-body { padding-left: 24px; }
.app-phones-staff .n-search {
  margin: .15rem 0 .35rem; padding: .55rem .75rem; border-radius: 10px;
  background: var(--surface-2, color-mix(in srgb, var(--ink) 6%, var(--surface)));
  color: var(--ink-2); font-size: 11px;
}
.app-phones-staff .n-members .n-li { align-items: center; gap: 8px; }
.app-phones-staff .n-members .av-img { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; }
@media (max-width: 40rem) {
  .app-phones .mp-right { display: none; }
  .app-phones .mp-main { width: 54%; }
  .app-phones .mp-side { width: 48%; margin-right: -8%; }
  .app-phones .mp-main .mb-offer { display: none; }
  .app-phones-staff .mp-main .n-h-row { display: none; }
}

/* ---------- Steps ---------- */
.steps { display: grid; gap: 1.25rem; counter-reset: step; position: relative; }
@media (min-width: 56rem) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
  .steps::before {
    content: ""; position: absolute; top: 2.85rem; left: 12%; right: 12%; height: 0;
    border-top: 2px dashed var(--line-strong); z-index: 0;
  }
}
.step {
  position: relative; z-index: 1;
  padding: 1.75rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
}
.step-n {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--brand); color: var(--on-brand); font-family: var(--font-display); font-weight: 800;
  box-shadow: 0 0 0 6px var(--surface), 0 0 0 7px var(--line);
  margin-bottom: 1.25rem;
}
.step p { color: var(--muted); margin-top: .5rem; }

/* ---------- Migration lead ---------- */
.switch-grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 60rem) { .switch-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; } }
.switch-copy .lead { margin-top: 1.25rem; }
.assure {
  display: flex; gap: .75rem; align-items: flex-start; margin-top: 2rem; padding: 1rem 1.25rem;
  border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line);
  color: var(--ink-2); font-size: var(--fs-sm); font-weight: 700;
}
.assure .icon { color: var(--brand-text); width: 1.35rem; height: 1.35rem; margin-top: .1rem; }

.lead-form {
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-3);
}
.form-body { display: grid; gap: 1.1rem; }
.form-body > .h4 { margin-bottom: .25rem; }
.field { display: grid; gap: .4rem; min-width: 0; align-content: start; }
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 36rem) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select {
  width: 100%; min-height: 3rem; padding: 0 .9rem;
  border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--bg);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field input:hover, .field select:hover { border-color: var(--muted); }
.field input:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.field input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.field-err { display: flex; align-items: center; gap: .35rem; font-size: var(--fs-xs); font-weight: 600; color: var(--danger); }
.field-err::before { content: "!"; display: grid; place-items: center; width: 1rem; height: 1rem; border-radius: 50%; background: var(--danger); color: var(--surface); font-size: .7rem; font-weight: 800; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; cursor: pointer; }
.select-wrap .icon { position: absolute; right: .85rem; top: 50%; translate: 0 -50%; pointer-events: none; color: var(--muted); }
.form-note { font-size: var(--fs-xs); color: var(--muted); text-align: center; }
.form-success { display: grid; justify-items: center; gap: .75rem; text-align: center; padding: 2rem 1rem; }
.form-success:focus { outline: none; }
.form-success p { color: var(--muted); max-width: 26rem; }
.success-ic { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--ok-soft); color: var(--ok); }
.success-ic .icon { width: 1.75rem; height: 1.75rem; animation: pop .4s var(--ease); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 2rem; }
@media (min-width: 60rem) { .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 4rem; } .faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; } }
.faq-list .faq-more {
  margin-top: 1.5rem;
  font-size: var(--fs-xs);
  line-height: 1.4;
  white-space: nowrap;
}
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem .25rem; cursor: pointer; list-style: none;
  font-weight: 600; font-size: var(--fs-base); color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--brand-text); }
.faq-list summary .icon { transition: transform var(--dur) var(--ease); color: var(--muted); }
.faq-list details[open] summary .icon { transform: rotate(180deg); }
.faq-list details p { padding: 0 .25rem 1.25rem; color: var(--ink-2); max-width: 44rem; }

/* ---------- Final CTA ---------- */
.final { overflow: hidden; }
.final::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(36rem 20rem at 50% 0%, var(--glow-a), transparent 70%), radial-gradient(30rem 18rem at 50% 110%, var(--glow-b), transparent 70%);
}
.final-inner { position: relative; text-align: center; display: grid; justify-items: center; }
.final-inner .lead { margin-top: 1.25rem; }
.final-mark {
  display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 16px; margin-bottom: 1.5rem;
  background: var(--brand); color: var(--on-brand);
}
.final-mark svg { width: 1.6rem; height: 1.9rem; }

/* ---------- Our Team page ---------- */
.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;
}
.page-hero {
  padding: calc(var(--header-h) + 3.5rem) 0 1rem;
  text-align: center;
}
.page-hero-inner { display: grid; justify-items: center; }
.page-hero .eyebrow { margin-bottom: .85rem; }
.page-hero .display { max-width: 22ch; }
.page-hero .lead { margin-top: 1.25rem; margin-inline: auto; }
.our-team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 40rem) {
  .our-team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 64rem) {
  .our-team-grid { grid-template-columns: repeat(3, 1fr); }
}
.our-team-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-1);
  text-align: left;
}
.our-team-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--surface-2);
}
.our-team-card h3 {
  margin: 1.25rem 1.25rem .35rem;
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.our-team-card .role {
  display: block;
  margin: 0 1.25rem .75rem;
  color: var(--accent-text);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.our-team-card p {
  margin: 0 1.25rem 1.5rem;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.55;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding-top: 3.5rem; }
.footer-inner { display: grid; gap: 2.5rem; }
@media (min-width: 52rem) { .footer-inner { grid-template-columns: 1fr 2fr; } }
.footer-brand .muted { margin-top: .75rem; font-size: var(--fs-sm); }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 2rem; }
.footer-h { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; }
.footer-cols ul { display: grid; gap: .5rem; }
.footer-cols a { color: var(--ink-2); text-decoration: none; font-size: var(--fs-sm); }
.footer-cols a:hover { color: var(--brand-text); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 3rem; padding-block: 1.5rem; font-size: var(--fs-sm); padding-bottom: 5rem; }

/* =========================================================
   Product mockups — recreated from admin.superflow-app.com (web)
   and the native staff app (Android/iOS). Tokens follow the palette.
   ========================================================= */
.ui {
  --ui-bg: var(--surface-2);
  --ui-card: var(--surface);
  font-family: var(--font-ui);
  font-size: 13px; line-height: 1.4; color: var(--ink);
  user-select: none;
}
.ui .icon { width: 15px; height: 15px; }

/* Web admin primitives (shadcn-style: 16px cards, 10px buttons, uppercase stat labels) */
.web { --w-bg: var(--surface-2); --w-card: var(--surface); }
.w-card {
  background: var(--w-card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 1px 3px hsl(var(--shadow-rgb) / .08), 0 1px 2px -1px hsl(var(--shadow-rgb) / .08);
}
.w-h1 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.w-h2 { font-size: 14.5px; font-weight: 600; }
.w-sub { font-size: 11.5px; color: var(--muted); }
.w-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 28px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font-size: 11px; font-weight: 500; white-space: nowrap;
}
.w-btn .icon { width: 13px; height: 13px; }
.w-btn-primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.w-sm { height: 24px; padding: 0 8px; font-size: 10.5px; }
.w-icon { width: 28px; padding: 0; }
.w-link { color: var(--brand-text); font-size: 12px; }
.w-muted { color: var(--muted); font-size: 12px; }
.w-tag {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); font-size: 10.5px; font-weight: 500; vertical-align: 1px;
}
.w-chip { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 9px; }
.w-chip .icon { width: 15px; height: 15px; }
.chip-pink { background: #fce7f3; color: #be185d; }
.chip-amber { background: #fef3c7; color: #92400e; }
.chip-rose { background: #ffe4e6; color: #be123c; }
.n-amber { color: #c2410c; }
.n-rose { color: #dc2626; }
.ok-text { display: inline-flex; align-items: center; gap: 4px; color: #059669; font-size: 11.5px; white-space: nowrap; }
.ok-text .icon { width: 13px; height: 13px; }
:root[data-theme="dark"] .chip-pink, .band .chip-pink { background: hsl(330 50% 18%); color: #f9a8d4; }
:root[data-theme="dark"] .chip-amber, .band .chip-amber { background: hsl(38 60% 16%); color: #fcd34d; }
:root[data-theme="dark"] .chip-rose, .band .chip-rose { background: hsl(350 50% 18%); color: #fda4af; }
:root[data-theme="dark"] .n-amber { color: #fb923c; }
:root[data-theme="dark"] .n-rose { color: #f87171; }
:root[data-theme="dark"] .ok-text { color: #34d399; }
.av-img { width: 34px; height: 34px; border-radius: 50%; flex: none; object-fit: cover; background: var(--surface-2); }
.av-blank { display: grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); }

/* Browser + admin shell */
.browser {
  border-radius: 16px; overflow: hidden; background: var(--ui-bg);
  border: 1px solid var(--line-strong); box-shadow: var(--sh-3);
}
.browser-bar { display: flex; align-items: center; gap: 12px; padding: 9px 12px; background: var(--ui-card); border-bottom: 1px solid var(--line); }
.browser-dots { display: flex; gap: 6px; }
.browser-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.browser-url { flex: 1; max-width: 240px; margin-inline: auto; text-align: center; font-size: 11px; color: var(--muted); background: var(--surface-2); border-radius: 6px; padding: 3px 10px; }
.admin { position: relative; display: grid; grid-template-columns: 168px minmax(0, 1fr); height: 480px; overflow: hidden; background: var(--w-bg); }
.admin::after { content: ""; position: absolute; inset: auto 0 0 0; height: 56px; background: linear-gradient(transparent, var(--w-bg)); pointer-events: none; }
.admin-side { background: var(--w-card); border-right: 1px solid var(--line); padding: 0 8px 12px; }
.side-head {
  display: flex; align-items: center; justify-content: space-between; height: 46px;
  margin: 0 -8px 4px; padding: 0 14px; border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 600;
}
.side-tools { display: flex; gap: 10px; color: var(--muted); }
.side-group { font-size: 9.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 8px 4px; }
.admin-side li { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 9px; font-size: 12px; color: var(--ink-2); }
.admin-side li .icon { color: var(--muted); }
.admin-side li.is-active { background: var(--brand-soft); color: var(--brand-text); font-weight: 500; }
.admin-side li.is-active .icon { color: currentColor; }
.admin-side li.is-active::before { content: ""; position: absolute; left: -5px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: var(--brand); }
.admin-body { display: flex; flex-direction: column; min-width: 0; }
.admin-top { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.who { margin-right: auto; line-height: 1.25; }
.who p { font-size: 12px; font-weight: 500; }
.who small { font-size: 10.5px; color: var(--muted); }
.top-field {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; height: 28px; padding: 0 10px;
  border-radius: 9px; border: 1px solid var(--line); background: var(--w-card); font-size: 11px; color: var(--ink-2); box-shadow: var(--sh-1);
}
.top-search { width: 130px; color: var(--muted); }
.top-icon { color: var(--ink-2); }
.admin-main { display: grid; gap: 14px; align-content: start; min-width: 0; padding: 16px 18px; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.head-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.stat { padding: 12px 14px; min-width: 0; }
.stat-label { font-size: 9.5px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-value { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; margin: 2px 0; }
.stat-meta { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fu-head-row { display: grid; gap: 2px; margin-top: 2px; }
.fu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fu { display: grid; gap: 7px; align-content: start; justify-items: start; padding: 14px; min-width: 0; }
.fu-title { display: flex; align-items: center; gap: 10px; }
.fu-title p { font-size: 13px; font-weight: 600; }
.fu-title small { font-size: 11px; color: var(--muted); }
.fu-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; width: 100%; margin-top: 4px; font-size: 12px; font-weight: 500; }
.fu-row b { font-size: 18px; font-weight: 600; color: var(--muted); }
.fu-row b.n-amber { color: #c2410c; }
.fu-row b.n-rose { color: #dc2626; }
:root[data-theme="dark"] .fu-row b.n-amber { color: #fb923c; }
:root[data-theme="dark"] .fu-row b.n-rose { color: #f87171; }

/* Native staff app (React Native, system font) */
.native { font-family: Roboto, 'Inter', system-ui, sans-serif; }
.native .phone-screen { display: flex; flex-direction: column; gap: 0; padding: 0; background: var(--surface-2); }
.n-bar { display: flex; align-items: center; flex: none; height: 64px; padding: 28px 14px 0; background: var(--surface); border-bottom: 1px solid var(--line); }
.n-bar .icon { width: 18px; height: 18px; }
.n-body { position: relative; display: flex; flex-direction: column; flex: 1; gap: 7px; padding: 12px; overflow: hidden; }
.n-title-row { display: flex; justify-content: space-between; align-items: center; }
.n-title { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.n-title-sm { font-size: 21px; }
.n-qr { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-text); }
.n-h { font-size: 12.5px; font-weight: 700; margin-top: 4px; }
.n-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.n-row { display: flex; align-items: center; gap: 10px; padding: 10px; }
.n-ic { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--brand-soft); color: var(--brand-text); }
.n-grow { display: grid; flex: 1; min-width: 0; }
.n-grow b { font-size: 15px; font-weight: 700; line-height: 1.1; }
.n-grow p { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.n-grow small { font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.n-brand { color: var(--brand-text); }
.ui .n-chev { width: 13px; height: 13px; color: var(--muted); }
.n-pulse { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.n-pulse .n-card { display: grid; gap: 2px; padding: 7px 6px; min-width: 0; }
.n-pulse b { font-size: 16px; font-weight: 700; }
.n-pulse small { font-size: 7.5px; font-weight: 700; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: clip; }
.n-row .n-grow small { white-space: normal; line-height: 1.25; }
.n-h-row { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.n-link { font-size: 10px; font-weight: 700; color: var(--brand-text); white-space: nowrap; }
.n-li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; }
.n-li + .n-li { border-top: 1px solid var(--line); }
.n-li > b { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.n-crumb { font-size: 9px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.n-day { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.n-day span { display: grid; text-align: center; }
.n-day small { font-size: 8px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.n-day b { font-size: 11px; }
.n-fab {
  position: absolute; right: 10px; bottom: 12px; display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 12px; border-radius: 999px; background: var(--brand); color: var(--on-brand);
  font-size: 10px; font-weight: 700; box-shadow: var(--sh-3);
}
.n-fab .icon { width: 12px; height: 12px; stroke-width: 3; }

/* Phone */
.phone {
  position: relative; width: 15rem; aspect-ratio: 9 / 18.5;
  padding: 7px; border-radius: 38px; background: #0c0d0f;
  box-shadow: var(--sh-3), inset 0 0 0 1.5px #2a2c31;
}
.phone-notch { position: absolute; top: 14px; left: 50%; translate: -50% 0; width: 30%; height: 18px; border-radius: 99px; background: #0c0d0f; z-index: 2; }
.phone-screen {
  height: 100%; border-radius: 31px; overflow: hidden; background: var(--ui-bg);
  padding: 40px 12px 12px; display: flex; flex-direction: column; gap: 9px;
}
/* Member app (Expo / React Native, system font) */
.member { font-family: Roboto, 'Inter', system-ui, sans-serif; }
.member .phone-screen { display: flex; flex-direction: column; gap: 0; padding: 0; background: var(--surface-2); }
.mb-bar { flex: none; height: 56px; padding-top: 31px; text-align: center; font-size: 11px; font-weight: 600; background: var(--surface); border-bottom: 1px solid var(--line); }
.mb-body { position: relative; display: flex; flex-direction: column; flex: 1; gap: 8px; min-height: 0; padding: 12px 12px 0; overflow: hidden; }
.mb-title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.mb-month { text-align: center; font-size: 10px; font-weight: 600; color: var(--muted); }
.mb-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.mb-days span { position: relative; display: grid; justify-items: center; padding: 5px 0 7px; border-radius: 9px; background: var(--line); font-size: 13px; font-weight: 700; line-height: 1.15; }
.mb-days small { font-size: 7.5px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.mb-days .is-today, .mb-days .is-on { background: var(--brand-soft); color: var(--brand-text); }
.mb-days .is-today small, .mb-days .is-on small { color: inherit; }
.mb-days .is-on { box-shadow: inset 0 0 0 1.5px var(--brand); }
.mb-days .is-today i { position: absolute; bottom: 2px; width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.mb-chips { display: flex; gap: 5px; overflow: hidden; }
.mb-chips span { padding: 4px 9px; border-radius: 999px; background: var(--line); font-size: 9.5px; font-weight: 600; white-space: nowrap; }
.mb-chips .is-on { background: var(--brand-soft); color: var(--brand-text); box-shadow: inset 0 0 0 1px var(--brand); }
.mb-label { margin-top: 2px; font-size: 8.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mb-slot { display: grid; justify-items: start; gap: 2px; padding: 9px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.mb-slot p { max-width: 100%; font-size: 11.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-slot b { margin-right: 3px; font-weight: 600; }
.mb-slot small, .mb-card small { font-size: 9.5px; color: var(--muted); }
.mb-pill { margin-top: 4px; padding: 3px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-text); font-size: 9.5px; font-weight: 700; }
.mb-pill-muted { background: var(--line); color: var(--ink-2); }
.mb-tabs {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: auto -12px 0; padding: 7px 2px 14px;
  background: var(--surface); border-top: 1px solid var(--line);
}
.mb-tabs > span { display: grid; justify-items: center; gap: 2px; font-size: 7px; font-weight: 500; letter-spacing: -0.01em; color: var(--muted); white-space: nowrap; }
.mb-tabs .icon { width: 15px; height: 15px; }
.mb-tabs .is-on { color: var(--brand-text); }
.mb-tabs .is-on .icon { fill: currentColor; }
.mb-hello { display: flex; justify-content: space-between; align-items: flex-end; }
.mb-name { display: flex; align-items: center; gap: 8px; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.mb-name .av-img { width: 28px; height: 28px; }
.mb-qr { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-text); }
.mb-offer {
  display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
}
.mb-offer > div { flex: 1; min-width: 0; }
.mb-offer p { font-size: 10.5px; font-weight: 600; line-height: 1.25; }
.mb-offer small { font-size: 9.5px; font-weight: 600; color: var(--brand-text); }
.mb-offer-ic { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 8px; background: color-mix(in srgb, var(--brand) 18%, transparent); color: var(--brand-text); }
.mb-offer-ic .icon { width: 13px; height: 13px; }
.ui .mb-x { width: 11px; height: 11px; color: var(--muted); }
.mb-card { display: grid; gap: 3px; padding: 11px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.mb-when { font-size: 10px; font-weight: 700; color: var(--brand-text); }
.mb-class { font-size: 13px; font-weight: 700; }
.mb-actions { display: flex; gap: 6px; margin-top: 6px; }
.mb-btn { padding: 6px 12px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-size: 10px; font-weight: 700; white-space: nowrap; }
.mb-btn-soft { background: var(--brand-soft); color: var(--ink); }
.mb-streak { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; }
.mb-ring {
  display: grid; place-items: center; align-content: center; width: 50px; height: 50px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--surface) 80%, transparent 81%), conic-gradient(var(--brand) calc(var(--p) * 360deg), var(--line) 0);
}
.mb-ring b { font-size: 16px; line-height: 1; }
.mb-card .mb-ring small { font-size: 6.5px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.mb-streak-txt { display: grid; gap: 4px; min-width: 0; }
.mb-bar-track { display: block; height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.mb-bar-track i { display: block; height: 100%; background: var(--brand); border-radius: inherit; }
.mb-profile { display: grid; justify-items: center; gap: 6px; padding: 2px 0 4px; text-align: center; }
.mb-profile .av-img { width: 52px; height: 52px; }
.mb-sub { background: color-mix(in srgb, var(--brand) 6%, var(--surface)); }
.mb-sub-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.mb-status { padding: 2px 7px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.mb-card .mb-visits { margin-top: 4px; font-weight: 600; color: var(--ink-2); }
.mb-list { gap: 0; padding: 2px 10px; }
.mb-list > span { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 11px; font-weight: 600; }
.mb-list > span + span { border-top: 1px solid var(--line); }
.mb-list i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--surface-2); }
.mb-list .icon { width: 12px; height: 12px; }

/* Hero composite placement */
.hero-phone { position: absolute; right: 0; bottom: 0; width: 14.5rem; }
.toast {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-3);
  font-family: var(--font-ui); font-size: 12.5px; color: var(--ink-2); max-width: 17rem;
  animation: float 6s ease-in-out infinite;
}
.toast strong { color: var(--ink); }
.toast-a { left: -1.5rem; top: 78%; }
.toast-b { right: 16rem; bottom: .25rem; animation-delay: -3s; }
.toast-ic { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 9px; }
.toast-ic .icon { width: 16px; height: 16px; }
.toast-ic.ok { background: var(--ok-soft); color: var(--ok); }
.toast-ic.brand { background: var(--brand-soft); color: var(--brand-text); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

@media (min-width: 52rem) {
  .hero-visual .browser { margin-right: 9rem; }
  .hero-visual .admin-main { padding-right: 6.5rem; }
}
@media (max-width: 52rem) {
  .admin { grid-template-columns: minmax(0, 1fr); height: 420px; }
  .admin-side, .top-select, .top-search, .head-actions { display: none; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fu-grid { grid-template-columns: minmax(0, 1fr); }
  .fu-grid .fu:not(:nth-child(2)) { display: none; }
  .hero-phone { width: 11.5rem; bottom: -1rem; }
  .hero-visual .admin-main { padding-right: 9rem; }
  .toast-b { display: none; }
}
@media (max-width: 40rem) {
  .admin-top .w-btn, .top-icon { display: none; }
  .hero-visual .admin-main { padding-right: 18px; }
  .hero-phone { width: 9.75rem; right: -.25rem; bottom: -1.5rem; border-radius: 28px; padding: 5px; }
  .hero-phone .phone-screen { border-radius: 23px; }
  .hero-phone .n-bar { height: 48px; padding-top: 22px; }
  .hero-phone .n-title { font-size: 18px; }
  .hero-phone .n-h-row, .hero-phone .n-list, .hero-phone .n-row .n-brand, .hero-phone .n-row + .n-row { display: none; }
  .hero-phone .n-row .n-grow small { white-space: nowrap; }
  .toast-a { left: 0; top: auto; bottom: 1rem; max-width: 12.5rem; font-size: 11.5px; }
}

/* Feature windows */
.w-window {
  position: relative; overflow: hidden; padding: 16px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: var(--sh-3);
}
.w-window-offset { margin: -1.25rem 0 0 2.5rem; }
@media (max-width: 40rem) { .w-window-offset { margin: 1rem 0 0; } }

.sched-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 12px; }
.sched-range { padding: 0 4px; font-size: 12px; font-weight: 500; }
.cal { --row: 56px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cal-head, .cal-body { display: grid; grid-template-columns: 44px repeat(4, minmax(0, 1fr)); }
.cal-head { border-bottom: 1px solid var(--line); }
.cal-head > span { display: grid; justify-items: center; padding: 6px 2px; border-left: 1px solid var(--line); }
.cal-head > span:first-child { border-left: 0; }
.cal-head small { font-size: 9px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.cal-head b { font-size: 12px; font-weight: 600; }
.cal-head .is-today { background: var(--brand-soft); color: var(--brand-text); }
.cal-head .is-today small { color: inherit; }
.cal-times { display: grid; grid-auto-rows: var(--row); padding-top: 4px; }
.cal-times span { padding-right: 6px; text-align: right; font-size: 9.5px; color: var(--muted); }
.cal-col {
  position: relative; height: calc(var(--row) * 4); border-left: 1px solid var(--line);
  background-image: repeating-linear-gradient(to bottom, transparent 0 calc(var(--row) - 1px), var(--line) calc(var(--row) - 1px) var(--row));
}
.cal-col.is-today { background-color: color-mix(in srgb, var(--brand) 6%, transparent); }
.ev {
  position: absolute; left: 3px; right: 3px; top: calc(var(--s) * var(--row) + 2px); height: calc(var(--d) * var(--row) - 4px);
  padding: 4px 6px; border-radius: 8px; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--brand) 42%, transparent);
  background: color-mix(in srgb, var(--brand) 16%, var(--surface));
  font-size: 10px; font-weight: 600; line-height: 1.25; box-shadow: var(--sh-1);
}
.ev small { display: block; margin-top: 2px; font-size: 9.5px; font-weight: 400; color: var(--ink-2); }
.ev-b { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 18%, var(--surface)); }
.now { position: absolute; left: 0; right: 0; top: calc(var(--s) * var(--row)); height: 2px; background: var(--brand); z-index: 1; }
.now::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
@media (max-width: 40rem) {
  .cal-head, .cal-body { grid-template-columns: 38px repeat(3, minmax(0, 1fr)); }
  .hide-sm { display: none; }
}

.roster { margin-top: 8px; }
.roster li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.roster li:first-child { border-top: 0; }
.roster .rn { display: grid; flex: 1; min-width: 0; }
.roster .rn p { font-size: 12.5px; font-weight: 500; }
.roster .rn small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-actions { display: flex; gap: 4px; }
.phone-sm { width: 13rem; }
.phone-sm .n-pulse small { font-size: 6.5px; }
/* Phone sits in-flow beside the window so it cannot cover feature copy */
.feature-visual:has(.phone-float) {
  display: flex;
  align-items: flex-end;
  gap: .75rem;
}
.phone-float {
  position: relative;
  order: -1;
  flex: none;
  z-index: 1;
  margin-right: -1.25rem;
  margin-bottom: -.5rem;
}
.feature-visual:has(.phone-float) .w-window {
  flex: 1;
  min-width: 0;
}
@media (max-width: 40rem) { .phone-float { display: none; } }
@media (min-width: 80rem) {
  .phone-float { margin-right: -2rem; margin-bottom: -1rem; }
}

.w-table { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: 11.5px; }
.w-table th { padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 500; white-space: nowrap; }
.w-table td { padding: 7px 8px 7px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); white-space: nowrap; }
.w-table tr:last-child td { border-bottom: 0; }
.w-table .av-img { width: 26px; height: 26px; }
.w-table-lead td { padding-block: 8px; }
.who-cell { display: inline-flex; align-items: center; gap: 8px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10.5px; }
.fu-solo { max-width: 24rem; }
.fu-solo .w-btn { margin-top: 2px; }

/* =========================================================
   Prototype-only palette panel
   ========================================================= */
.palette-panel { position: fixed; left: 1rem; bottom: 1rem; z-index: var(--z-panel); font-family: var(--font-body); }
.palette-toggle {
  display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; min-height: 2.75rem;
  border-radius: var(--r-pill); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font-weight: 600; font-size: var(--fs-sm); cursor: pointer; box-shadow: var(--sh-3);
}
.palette-toggle .icon { color: var(--brand-text); }
.palette-body {
  position: absolute; left: 0; bottom: calc(100% + .5rem); width: min(21rem, calc(100vw - 2rem));
  padding: .75rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--sh-3);
}
.palette-head { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); padding: .25rem .5rem .5rem; }
.palette-list { display: grid; gap: .25rem; }
.palette-list button {
  display: flex; align-items: center; gap: .75rem; width: 100%; text-align: left;
  padding: .6rem .5rem; border-radius: var(--r-md); border: 1px solid transparent; background: transparent; cursor: pointer;
}
.palette-list button:hover { background: var(--surface-2); }
.palette-list button[aria-checked="true"] { border-color: var(--brand); background: var(--brand-soft); }
.palette-list b { display: block; font-size: var(--fs-sm); color: var(--ink); }
.palette-list small { display: block; font-size: var(--fs-xs); color: var(--muted); line-height: 1.35; }
.sw { display: flex; flex: none; }
.sw i { width: 1.3rem; height: 1.3rem; border-radius: 50%; border: 2px solid var(--surface); margin-left: -.35rem; }
.sw i:first-child { margin-left: 0; }

/* ---------- Live Demo modal ---------- */
body.demo-modal-open { overflow: hidden; }
.demo-modal {
  position: fixed; inset: 0; z-index: var(--z-modal);
  display: grid; place-items: center; padding: 1.25rem;
}
.demo-modal[hidden] { display: none !important; }
.demo-modal-backdrop {
  position: absolute; inset: 0;
  background: color-mix(in srgb, var(--ink) 45%, transparent);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.demo-modal-panel {
  position: relative; z-index: 1;
  width: min(28rem, 100%);
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: 0 24px 64px -24px color-mix(in srgb, var(--ink) 55%, transparent);
  padding: 1.75rem 1.5rem 1.25rem;
}
.demo-modal-close {
  position: absolute; top: .75rem; right: .75rem;
}
.demo-modal-panel .h3 { margin: 0 2rem 0.5rem 0; }
.demo-modal-panel > .muted { margin: 0 0 1rem; font-size: var(--fs-sm); line-height: 1.5; }
.demo-widescreen-note {
  display: flex; gap: .75rem; align-items: flex-start;
  margin: 0 0 1.25rem; padding: .85rem 1rem;
  border-radius: var(--r-lg);
  border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--line));
  background: color-mix(in srgb, var(--brand) 12%, var(--surface));
  font-size: var(--fs-sm); line-height: 1.45; color: var(--ink);
}
.demo-widescreen-note p { margin: 0; }
.demo-widescreen-icon {
  width: 1.25rem; height: 1.25rem; flex-shrink: 0; margin-top: .1rem;
  color: var(--brand); stroke: currentColor; fill: none; stroke-width: 1.75;
}
.demo-owner-card {
  padding: 1rem; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: var(--surface-2);
}
.demo-owner-role { margin: 0; font-weight: 700; font-size: var(--fs-sm); }
.demo-owner-blurb { margin: .35rem 0 1rem; font-size: var(--fs-xs); line-height: 1.45; }
.demo-modal-foot { margin: 1rem 0 0; font-size: var(--fs-xs); text-align: center; }
@media (max-width: 40rem) {
  .header-demo { display: none; }
}

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .word-rotate { transition: none; }
}

/* ---------- Theme switch: circular View Transition reveal (see main.js) ---------- */
[data-theme-reveal]::view-transition-old(root),
[data-theme-reveal]::view-transition-new(root) { mix-blend-mode: normal; animation: none; }
[data-theme-reveal] *, [data-theme-reveal] *::before, [data-theme-reveal] *::after { transition: none !important; }

/* ---------- Cookie consent (Meta Pixel / Google Ads gates) ---------- */
.sf-cookie-root { position: fixed; inset: auto 0 0 0; z-index: calc(var(--z-modal) + 10); pointer-events: none; }
.sf-cookie-root[hidden] { display: none !important; }
.sf-cookie-banner {
  pointer-events: auto;
  margin: 0 auto 1rem;
  max-width: min(40rem, calc(100% - 2rem));
  padding: 1rem 1.15rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 12px 40px hsl(var(--nh) 30% 9% / 0.18);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-family: var(--font-body);
}
.sf-cookie-banner__title { margin: 0; font-weight: 700; font-size: var(--fs-sm); color: var(--ink); }
.sf-cookie-banner__body { margin: 0.35rem 0 0; font-size: var(--fs-xs); line-height: 1.45; color: var(--ink-2); }
.sf-cookie-banner__actions {
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-end;
}
.sf-cookie-btn {
  appearance: none; border-radius: var(--r-pill); padding: 0.45rem 0.9rem;
  font-size: var(--fs-xs); font-weight: 650; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink);
}
.sf-cookie-btn--primary {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  background: var(--brand); color: var(--on-brand, #fff);
}
.sf-cookie-btn--ghost:hover { border-color: var(--ink-2); }
.sf-cookie-check {
  display: flex; align-items: flex-start; gap: 0.55rem;
  margin-top: 0.65rem; font-size: var(--fs-xs); color: var(--ink); cursor: pointer;
}
.sf-cookie-check input { margin-top: 0.15rem; }
