/* ── Fonts (Editorial: Geist display, IBM Plex Sans body) ────── */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700;800&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

/* ── Generated design tokens (shared with Flutter) ───────────── */
@import url('tokens.generated.css');

/* ──────────────────────────────────────────────────────────────
   Light Editorial theme — ported from the Flutter dashboard
   (fwLightTheme). Warm cream canvas, white cards, sharp corners,
   1px near-black borders, and signature offset accent "shadow"
   blocks cycling the editorial palette.
   ─────────────────────────────────────────────────────────────── */
:root {
  /* Fonts */
  --font-display: 'Geist', system-ui, -apple-system, sans-serif;
  --font-body:    'IBM Plex Sans', system-ui, -apple-system, sans-serif;

  /* Surfaces (light) */
  --bg:         #FFFBF2;          /* shell background — warm cream   */
  --bg-alt:     #FBF3E4;          /* tonal shift for alt sections    */
  --surface:    #FFFFFF;          /* cards / panels                  */
  --surface-2:  #F4ECDC;          /* recessed / hover fill           */

  /* Ink (text + borders) */
  --ink:        #1C1C1F;          /* headlines, borders              */
  --ink-soft:   #424242;          /* body text                       */
  --muted:      #616161;          /* labels, metadata                */
  --border:     #1C1C1F;          /* sharp 1px editorial border      */

  /* Brand */
  --primary:      var(--fw-primary);      /* #49508A navy            */
  --primary-deep: var(--fw-primary-700);  /* #2F355D                 */
  --on-primary:   #FFFFFF;
  --secondary:    var(--fw-secondary);    /* #FF8836 orange          */
  --danger:       #FF5252;                /* button hover (dashboard) */

  /* Editorial accent rotation (matches FwAccentPalette) */
  --accent-1: var(--editorial-pink);
  --accent-2: var(--editorial-orange);
  --accent-3: var(--editorial-yellow);
  --accent-4: var(--editorial-mint);
  --accent-5: var(--editorial-sky);
  --accent-6: var(--editorial-blue);
  --accent-7: var(--editorial-purple);
  --accent: var(--editorial-blue);        /* default for shadow      */

  /* Brand accent gradient (headline highlights) */
  --accent-gradient: linear-gradient(120deg, var(--primary), var(--secondary));

  /* Offset shadow geometry */
  --shadow-offset: 10px;

  /* Spacing scale (Spacing tokens) */
  --s-1: 2px;  --s-2: 4px;  --s-3: 8px;  --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
}

/* ── Editorial offset shadow ─────────────────────────────────────
   Solid accent block offset to the bottom-left with a 1px ink
   outline — the dashboard's FwEditorialShadowCard, done with a
   layered hard box-shadow (no layout impact). */
.editorial-shadow,
.feature-card,
.step-card,
.pricing-card,
.accordion-item,
.contact-form {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow:
    calc(-1 * var(--shadow-offset)) var(--shadow-offset) 0 0 var(--accent),
    calc(-1 * var(--shadow-offset)) var(--shadow-offset) 0 1px var(--border);
}

/* Accent cycling — each card is a direct child of its grid/list, so
   :nth-child restarts the rotation per section. */
.editorial-shadow:nth-child(7n + 1),
.feature-card:nth-child(7n + 1),
.step-card:nth-child(7n + 1),
.pricing-card:nth-child(7n + 1),
.accordion-item:nth-child(7n + 1) { --accent: var(--accent-1); }

.editorial-shadow:nth-child(7n + 2),
.feature-card:nth-child(7n + 2),
.step-card:nth-child(7n + 2),
.pricing-card:nth-child(7n + 2),
.accordion-item:nth-child(7n + 2) { --accent: var(--accent-2); }

.editorial-shadow:nth-child(7n + 3),
.feature-card:nth-child(7n + 3),
.step-card:nth-child(7n + 3),
.pricing-card:nth-child(7n + 3),
.accordion-item:nth-child(7n + 3) { --accent: var(--accent-3); }

.editorial-shadow:nth-child(7n + 4),
.feature-card:nth-child(7n + 4),
.step-card:nth-child(7n + 4),
.pricing-card:nth-child(7n + 4),
.accordion-item:nth-child(7n + 4) { --accent: var(--accent-4); }

.editorial-shadow:nth-child(7n + 5),
.feature-card:nth-child(7n + 5),
.step-card:nth-child(7n + 5),
.pricing-card:nth-child(7n + 5),
.accordion-item:nth-child(7n + 5) { --accent: var(--accent-5); }

.editorial-shadow:nth-child(7n + 6),
.feature-card:nth-child(7n + 6),
.step-card:nth-child(7n + 6),
.pricing-card:nth-child(7n + 6),
.accordion-item:nth-child(7n + 6) { --accent: var(--accent-6); }

.editorial-shadow:nth-child(7n + 7),
.feature-card:nth-child(7n + 7),
.step-card:nth-child(7n + 7),
.pricing-card:nth-child(7n + 7),
.accordion-item:nth-child(7n + 7) { --accent: var(--accent-7); }

/* ── Reset & base ────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--ink);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color .2s cubic-bezier(.4,0,.2,1);
}
a:hover { color: var(--primary-deep); }

::selection {
  background: rgba(73, 80, 138, 0.18);
  color: var(--ink);
}

main {
  flex: 1;
  width: 100%;
}

main .container {
  max-width: 60rem;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem 1.5rem;
}

/* ── Layout: container & sections ────────────────────────────── */
.container {
  width: 100%;
  max-width: 87.5rem; /* 1400px */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .section {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
}

/* ── Navigation ──────────────────────────────────────────────── */
#nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 242, 0.85);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--border);
}

#nav .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.nav-brand a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.nav-brand .brand-mark {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  color: var(--primary);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
}

.nav-brand a:hover .brand-mark { transform: scale(1.05) rotate(-3deg); }

.nav-brand .brand-mark svg { width: 100%; height: 100%; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 0.75rem;
  transition: color .2s cubic-bezier(.4,0,.2,1);
}

.nav-links a:hover { color: var(--ink); }

.nav-links a.active { color: var(--primary); }

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.05rem;
  height: 2px;
  background: var(--secondary);
}

.nav-ctas {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* ── Language picker (editorial dropdown) ────────────────────── */
.lang-picker { position: relative; }

.lang-picker-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.7rem;
  font-size: 0.8125rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background .2s cubic-bezier(.4,0,.2,1);
}

.lang-picker-btn:hover { background: var(--surface-2); }

.lang-picker-btn[aria-expanded="true"] { background: var(--surface-2); }

.lang-picker-chevron {
  transition: transform .2s cubic-bezier(.4,0,.2,1);
  color: var(--muted);
}

.lang-picker-btn[aria-expanded="true"] .lang-picker-chevron {
  transform: rotate(180deg);
}

.lang-picker-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.4rem;
  min-width: 9rem;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: -6px 6px 0 0 var(--accent-6), -6px 6px 0 1px var(--border);
  padding: 0.3rem 0;
  z-index: 100;
}

.lang-picker-dropdown::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 0.5rem;
}

.lang-picker-dropdown a {
  display: block;
  padding: 0.55rem 0.85rem;
  font-size: 0.8125rem;
  color: var(--muted);
  text-decoration: none;
  transition: background .2s, color .2s;
}

.lang-picker-dropdown a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.lang-picker-dropdown [aria-selected="true"] a {
  font-weight: 700;
  color: var(--primary);
}

/* ── Burger (mobile only) ────────────────────────────────────── */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  width: 32px;
  height: 28px;
  position: relative;
  color: var(--ink);
}

.burger span {
  display: block;
  position: absolute;
  left: 4px;
  right: 4px;
  height: 2px;
  background: currentColor;
  transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .2s;
}

.burger span:nth-child(1) { top: 6px; }
.burger span:nth-child(2) { top: 13px; }
.burger span:nth-child(3) { top: 20px; }

/* ── Buttons (ported from fw_button.dart) ────────────────────── */
.btn-primary,
.btn-outline,
.btn-secondary,
.btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  transition:
    background .2s cubic-bezier(.4,0,.2,1),
    color .2s,
    transform .1s;
}

/* Primary — navy fill, red hover (matches dashboard) */
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}
.btn-primary:hover {
  background: var(--danger);
  color: #fff;
}

/* Secondary — white surface */
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
}
.btn-secondary:hover { background: var(--surface-2); }

/* Outlined — transparent, fills ink on hover (editorial invert) */
.btn-outline {
  background: transparent;
  color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--bg);
}

/* Text-only */
.btn-text {
  background: transparent;
  color: var(--primary);
  border-color: transparent;
  padding: 0.6rem 0.85rem;
}
.btn-text:hover { background: var(--surface-2); }

.btn-primary:active,
.btn-outline:active,
.btn-secondary:active,
.btn-text:active {
  transform: scale(0.96);
}

.btn-primary.btn-lg,
.btn-outline.btn-lg,
.btn-secondary.btn-lg {
  padding: 0.95rem 1.85rem;
  font-size: 0.9rem;
}

.btn-full { width: 100%; }

/* ── Nav button sizing overrides ─────────────────────────────── */
.nav-ctas .btn-outline,
.nav-ctas .btn-primary,
.nav-ctas .btn-text {
  padding: 0.55rem 1rem;
  font-size: 0.75rem;
}

/* ── Section heading ─────────────────────────────────────────── */
.section-head {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 4rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.95rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: var(--ink);
}

.section-head h2 .accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .section-head h2 { font-size: 2.6rem; }
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  background: var(--bg);
  color: var(--ink);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--border);
}

/* The dark video loop doesn't suit the light editorial canvas */
.hero-section .hero-bg { display: none; }

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 50% 60% at 15% 20%, rgba(142, 209, 252, 0.30), transparent 60%),
    radial-gradient(ellipse 45% 55% at 85% 80%, rgba(247, 141, 167, 0.28), transparent 60%);
  pointer-events: none;
}

/* Cursor spotlight target — updated by animations.js */
.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    500px circle at var(--mx, 30%) var(--my, 50%),
    rgba(252, 185, 0, 0.18),
    transparent 55%
  );
  pointer-events: none;
  transition: opacity .3s;
}

.hero-section .container {
  position: relative;
  z-index: 1;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* Scattered product cutouts behind hero content */
.hero-deco {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-deco-item {
  position: absolute;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.hero-deco-item--ball-a {
  top: 6%;
  left: 2%;
  width: clamp(6.25rem, 11.5vw, 10rem);
  opacity: 0.42;
  transform: rotate(-22deg);
}

.hero-deco-item--ball-b {
  top: 58%;
  right: 6%;
  width: clamp(4.75rem, 8vw, 7.25rem);
  opacity: 0.28;
  filter: blur(2.5px);
  transform: rotate(34deg);
}

.hero-deco-item--cap-a {
  top: 10%;
  right: 8%;
  width: clamp(9.5rem, 18vw, 15.25rem);
  opacity: 0.38;
  transform: rotate(14deg);
}

.hero-deco-item--cap-b {
  top: 42%;
  left: 4%;
  width: clamp(7.25rem, 12.5vw, 11.25rem);
  opacity: 0.22;
  filter: blur(3px);
  transform: rotate(-28deg);
}

.hero-deco-item--bottle-a {
  bottom: 22%;
  left: 1%;
  width: clamp(4.75rem, 8vw, 7.25rem);
  opacity: 0.34;
  mix-blend-mode: multiply;
  transform: rotate(9deg);
}

.hero-deco-item--bottle-b {
  top: 28%;
  left: 38%;
  width: clamp(3.6rem, 5.85vw, 5.4rem);
  opacity: 0.2;
  mix-blend-mode: multiply;
  filter: blur(2px);
  transform: rotate(-16deg);
}

.hero-deco-item--shirt-a {
  top: 12%;
  right: 5%;
  width: min(76.75rem, 80vw);
  opacity: 0.3;
  mix-blend-mode: multiply;
  transform: rotate(-11deg);
}

.hero-deco-item--shirt-b {
  bottom: 22%;
  right: -20%;
  width: min(46rem, 48vw);
  opacity: 0.18;
  mix-blend-mode: multiply;
  filter: blur(3.5px);
  transform: rotate(19deg);
}

@media (max-width: 767px) {
  .hero-deco-item--shirt-a {
    top: 2%;
    right: -18%;
    width: min(76.75rem, 92vw);
    opacity: 0.22;
  }

  .hero-deco-item--shirt-b {
    width: min(46rem, 72vw);
    right: -8%;
    bottom: 26%;
  }

  .hero-deco-item--cap-a {
    top: 62%;
    right: -6%;
    width: clamp(7.25rem, 32vw, 11rem);
    opacity: 0.28;
  }

  .hero-deco-item--bottle-a {
    bottom: 18%;
    left: auto;
    right: 4%;
  }

  .hero-deco-item--ball-a {
    top: 3%;
    left: 58%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-deco-item {
    filter: none !important;
  }

  .hero-deco-item--ball-b,
  .hero-deco-item--cap-b,
  .hero-deco-item--bottle-b,
  .hero-deco-item--shirt-b {
    opacity: 0.15;
  }
}

@media (min-width: 768px) {
  .hero-section .container {
    padding-top: 7.5rem;
    padding-bottom: 7.5rem;
  }
  .hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 3.5rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.45rem 0.9rem;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-badge svg { color: var(--secondary); }

.hero-section h1 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.hero-section h1 .accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (min-width: 768px) { .hero-section h1 { font-size: 3.6rem; } }
@media (min-width: 1024px) { .hero-section h1 { font-size: 4.25rem; } }

.hero-section .hero-lead {
  max-width: 34rem;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-section .hero-img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  box-shadow:
    calc(-1 * var(--shadow-offset)) var(--shadow-offset) 0 0 var(--accent-7),
    calc(-1 * var(--shadow-offset)) var(--shadow-offset) 0 1px var(--border);
}

/* ── Platforms strip ─────────────────────────────────────────── */
.platforms-strip {
  background: var(--surface);
  padding: 1.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.platforms-strip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.platforms-strip .platforms-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.platforms-strip .platform-icons {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.platform-icon {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color .2s cubic-bezier(.4,0,.2,1), transform .2s;
}

.platform-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.platform-icon:hover {
  color: var(--primary);
  transform: scale(1.06);
}

.hero-platforms {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: auto;
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  border-bottom: none;
}

.hero-section .hero-platforms .container {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.pricing-stats {
  margin-bottom: 2rem;
}

.pricing-stats .stat-number,
.pricing-stats .stat-suffix {
  font-size: 2.25rem;
}

@media (min-width: 768px) {
  .pricing-stats .stat-number,
  .pricing-stats .stat-suffix {
    font-size: 2.5rem;
  }
}

/* ── Feature cards ───────────────────────────────────────────── */
.features-grid {
  display: grid;
  gap: 1.5rem 1.75rem;
}

@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  padding: 2rem 1.75rem;
  transition: transform .2s cubic-bezier(.4,0,.2,1);
}

.feature-card:hover { transform: translate(2px, -2px); }

.feature-card .icon-wrap {
  width: 3rem;
  height: 3rem;
  background: var(--accent);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  transition: transform .2s cubic-bezier(.4,0,.2,1);
}

.feature-card:hover .icon-wrap { transform: scale(1.08); }

.feature-card .icon-wrap svg { width: 1.5rem; height: 1.5rem; }

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ── How it works ────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  gap: 2.5rem 1.75rem;
  margin-top: 2rem;
  position: relative;
}

@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }

.step-card {
  position: relative;
  padding: 2.5rem 1.5rem 1.75rem;
  text-align: center;
  transition: transform .2s cubic-bezier(.4,0,.2,1);
}

.step-card:hover { transform: translate(2px, -2px); }

.step-card .step-num {
  position: absolute;
  top: calc(-1rem - 1px);
  left: 1.25rem;
  width: 2.2rem;
  height: 2.2rem;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  border: 1px solid var(--border);
}

.step-card .step-icon {
  width: 3rem;
  height: 3rem;
  margin: 0.5rem auto 1rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-card .step-icon svg { width: 1.75rem; height: 1.75rem; }

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.step-card p {
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ── Stats section ───────────────────────────────────────────── */
.stats-section {
  background: var(--bg-alt);
  padding: 4.5rem 1rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 2rem;
  text-align: center;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stat-number,
.stat-suffix {
  font-family: var(--font-display);
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* ── Pricing cards ───────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  gap: 1.75rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}

.pricing-card {
  display: flex;
  flex-direction: column;
  padding: 2.25rem 2rem;
  position: relative;
}

.pricing-card.featured {
  background: var(--surface);
}

.pricing-card.featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--accent-gradient);
}

@media (min-width: 768px) {
  .pricing-card.featured { transform: translateY(-0.75rem); }
}

.pricing-card .badge {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--secondary);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--border);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pricing-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.pricing-card .plan-desc {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.pricing-card .price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}

.pricing-card .price-period {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--muted);
  margin-left: 0.25rem;
}

.pricing-card ul {
  list-style: none;
  margin: 2rem 0;
}

.pricing-card ul li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
  color: var(--ink-soft);
}

.pricing-card ul li .check {
  flex-shrink: 0;
  width: 1.05rem;
  height: 1.05rem;
  color: var(--primary);
}

.pricing-card .btn-primary,
.pricing-card .btn-outline {
  margin-top: auto;
  width: 100%;
}

/* ── FAQ Accordion ───────────────────────────────────────────── */
.faq-list {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.accordion-item {
  background: var(--surface);
  transition: transform .2s cubic-bezier(.4,0,.2,1);
}

.accordion-item.is-open { transform: translate(2px, -2px); }

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: left;
  color: var(--ink);
  background: none;
  border: none;
  cursor: pointer;
  transition: color .2s;
}

.accordion-trigger:hover { color: var(--primary); }

.accordion-trigger .chevron {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--muted);
  transition: transform .2s cubic-bezier(.4,0,.2,1), color .2s;
}

.accordion-item.is-open .accordion-trigger .chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.accordion-content {
  display: none;
  padding: 0 1.5rem 1.4rem;
}

.accordion-item.is-open .accordion-content { display: block; }

.accordion-content-inner {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ── CTA banner ──────────────────────────────────────────────── */
.cta-banner {
  position: relative;
  padding: 5rem 1.25rem;
  text-align: center;
  background:
    radial-gradient(ellipse at 25% 30%, rgba(142, 209, 252, 0.35), transparent 55%),
    radial-gradient(ellipse at 75% 75%, rgba(247, 141, 167, 0.30), transparent 55%),
    var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  isolation: isolate;
}

@media (min-width: 768px) { .cta-banner { padding: 7rem 1.25rem; } }

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: var(--ink);
}

.cta-banner h2 .accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta-banner p {
  max-width: 34rem;
  margin: 0 auto 2rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

@media (min-width: 768px) { .cta-banner h2 { font-size: 2.85rem; } }

/* ── Forms (ported from fw_text_field.dart) ──────────────────── */
.form-group { margin-bottom: 1rem; }

.form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

label.field-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: box-shadow .2s cubic-bezier(.4,0,.2,1), background .2s;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

input:hover,
textarea:hover { background: var(--surface-2); }

input:focus,
textarea:focus {
  outline: none;
  background: var(--surface);
  box-shadow: inset 0 0 0 2px var(--primary);
}

textarea {
  min-height: 10rem;
  resize: vertical;
  line-height: 1.6;
}

/* ── Contact two-column ──────────────────────────────────────── */
.contact-grid {
  display: grid;
  gap: 3rem;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-form {
  padding: 2rem;
  --accent: var(--accent-6);
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.75rem;
}

.contact-info-item .icon-wrap {
  width: 2.6rem;
  height: 2.6rem;
  flex-shrink: 0;
  background: var(--accent-3);
  color: var(--ink);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-item .icon-wrap svg { width: 1.15rem; height: 1.15rem; }

.contact-info-item strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

.contact-info-item span {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ── Legal prose ─────────────────────────────────────────────── */
.prose-legal {
  max-width: 48rem;
  margin: 0 auto;
  padding: 5rem 1.25rem 7rem;
}

@media (min-width: 768px) { .prose-legal { padding: 7rem 1.25rem; } }

.prose-legal h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.prose-legal .updated {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  letter-spacing: 0.02em;
}

.prose-legal h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.prose-legal h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.prose-legal p {
  margin-bottom: 1rem;
  color: var(--ink-soft);
  line-height: 1.75;
  font-size: 0.95rem;
}

.prose-legal ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  list-style: disc;
}

.prose-legal li {
  margin-bottom: 0.5rem;
  color: var(--fg-muted);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.prose-legal strong { color: var(--fg); font-weight: 600; }

.prose-legal a {
  color: var(--primary);
  text-decoration: none;
  word-break: break-word;
}

.prose-legal a:hover { text-decoration: underline; }

.prose-legal .contact-block {
  background: var(--surface-1);
  border: 1px solid var(--outline-variant);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  line-height: 1.9;
}

/* Unfilled legal placeholders — visually flagged for editors */
.prose-legal .ph {
  display: inline;
  background: rgba(255, 196, 0, 0.16);
  color: var(--fg);
  border: 1px dashed rgba(255, 196, 0, 0.5);
  border-radius: 0.25rem;
  padding: 0 0.35em;
  font-size: 0.85em;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Legal-basis / data tables */
.prose-legal .legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
}

.prose-legal .legal-table th,
.prose-legal .legal-table td {
  border: 1px solid var(--outline-variant);
  padding: 0.625rem 0.75rem;
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}

.prose-legal .legal-table th {
  background: var(--surface-2);
  color: var(--fg);
  font-weight: 700;
}

.prose-legal .legal-table td { color: var(--fg-muted); }

.prose-legal .legal-table tbody tr:nth-child(even) td { background: var(--surface-1); }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--surface);
  color: var(--ink-soft);
  padding: 4rem 1.25rem 1.5rem;
  margin-top: auto;
  border-top: 1px solid var(--border);
}

.site-footer .footer-inner {
  max-width: 87.5rem;
  margin: 0 auto;
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .site-footer .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.site-footer .footer-brand .brand-mark {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.site-footer .footer-brand .brand-mark svg { width: 100%; height: 100%; display: block; }

.site-footer .footer-brand p {
  max-width: 22rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.site-footer h4 {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.site-footer ul { list-style: none; }

.site-footer ul li { margin-bottom: 0.65rem; }

.site-footer ul a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color .2s cubic-bezier(.4,0,.2,1);
}

.site-footer ul a:hover { color: var(--primary); }

.site-footer .footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ── Coming soon ─────────────────────────────────────────────── */
.coming-soon {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  overflow: hidden;
  isolation: isolate;
}

.coming-soon::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 45% 50% at 12% 18%, rgba(142, 209, 252, 0.35), transparent 60%),
    radial-gradient(ellipse 40% 45% at 88% 82%, rgba(247, 141, 167, 0.32), transparent 60%),
    radial-gradient(ellipse 35% 40% at 80% 12%, rgba(252, 185, 0, 0.22), transparent 60%);
  pointer-events: none;
}

.coming-soon-inner {
  width: 100%;
  max-width: 40rem;
  text-align: center;
}

.coming-soon .cs-mark {
  display: inline-flex;
  width: 4.5rem;
  height: 4.5rem;
  color: var(--primary);
  margin-bottom: 2rem;
}

.coming-soon .cs-mark svg { width: 100%; height: 100%; display: block; }

.coming-soon .cs-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.45rem 1rem;
  margin-bottom: 1.75rem;
}

.coming-soon h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.coming-soon h1 .accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (min-width: 768px) { .coming-soon h1 { font-size: 4.25rem; } }

.coming-soon p {
  max-width: 32rem;
  margin: 0 auto 2.25rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.coming-soon .cs-form {
  display: flex;
  gap: 0.75rem;
  max-width: 28rem;
  margin: 0 auto 1.75rem;
  flex-wrap: wrap;
}

.coming-soon .cs-form input[type="email"] {
  flex: 1;
  min-width: 12rem;
}

.coming-soon .cs-note {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.coming-soon .cs-accent-bar {
  display: flex;
  height: 6px;
  max-width: 28rem;
  margin: 2.5rem auto 0;
  border: 1px solid var(--border);
}

.coming-soon .cs-accent-bar span { flex: 1; }
.coming-soon .cs-accent-bar span:nth-child(1) { background: var(--accent-1); }
.coming-soon .cs-accent-bar span:nth-child(2) { background: var(--accent-2); }
.coming-soon .cs-accent-bar span:nth-child(3) { background: var(--accent-3); }
.coming-soon .cs-accent-bar span:nth-child(4) { background: var(--accent-4); }
.coming-soon .cs-accent-bar span:nth-child(5) { background: var(--accent-5); }
.coming-soon .cs-accent-bar span:nth-child(6) { background: var(--accent-6); }
.coming-soon .cs-accent-bar span:nth-child(7) { background: var(--accent-7); }

/* ── Mobile (< 768px) ────────────────────────────────────────── */
@media (max-width: 767px) {
  .burger { display: block; }

  #nav .container { flex-wrap: wrap; }

  .nav-right {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    order: 99;
    padding-top: 1rem;
    margin-top: 0.5rem;
    gap: 0.25rem;
    border-top: 1px solid var(--border);
  }

  .nav-right .nav-links {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }

  .nav-right .nav-links a {
    padding: 0.875rem 0.5rem;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-right .nav-links a.active::after { display: none; }

  .nav-right .nav-ctas {
    margin-top: 1rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-right .nav-ctas .btn-outline,
  .nav-right .nav-ctas .btn-primary,
  .nav-right .nav-ctas .btn-text {
    width: 100%;
    justify-content: center;
  }

  .site-nav.nav-open .nav-right { display: flex; }

  .site-nav.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-nav.nav-open .burger span:nth-child(2) { opacity: 0; }
  .site-nav.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .coming-soon h1 { font-size: 2.5rem; }
}

/* ── Home: horizontal section pager ───────────────────────────── */
body[data-page="home"] {
  overflow-x: hidden;
}

html:has(body[data-page="home"]) {
  scroll-behavior: auto;
}

body[data-page="home"] #nav {
  position: sticky;
  top: 0;
  z-index: 100;
}

body[data-page="home"] .section-pager {
  position: relative;
  flex-shrink: 0;
  height: calc(100dvh - var(--nav-height, 4.25rem));
  min-height: 28rem;
  overflow: hidden;
  background: var(--bg);
}

body[data-page="home"] .section-pager-track {
  display: flex;
  height: 100%;
  will-change: transform;
}

body[data-page="home"] .section-pager-panel {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-bottom: none;
}

body[data-page="home"] .section-pager-panel > .container {
  width: 100%;
  max-width: 87.5rem;
  flex-shrink: 0;
  margin-top: auto;
  margin-bottom: auto;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

body[data-page="home"] .section-pager-panel.section,
body[data-page="home"] .section-pager-panel.hero-section,
body[data-page="home"] .section-pager-panel.cta-banner {
  padding-top: 0;
  padding-bottom: 0;
}

body[data-page="home"] .section-pager-panel.hero-section {
  display: flex;
  flex-direction: column;
}

body[data-page="home"] .section-pager-panel.hero-section > .container {
  flex: 1 1 auto;
  margin-bottom: 0;
}

body[data-page="home"] .section-pager-panel.hero-section .hero-platforms {
  margin-top: auto;
}

body[data-page="home"] .section-pager-panel.hero-section .container {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

@media (min-width: 768px) {
  body[data-page="home"] .section-pager-panel.hero-section .container {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  body[data-page="home"] .section-pager-panel.section {
    padding-top: 0;
    padding-bottom: 0;
  }
}

/* Slightly tighter grids inside the fixed-height pager stage */
body[data-page="home"] .section-pager-panel .section-head {
  margin-bottom: 1.75rem;
}

body[data-page="home"] .section-pager-panel .section-head h2 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
}

body[data-page="home"] .section-pager-panel .features-grid,
body[data-page="home"] .section-pager-panel .steps-grid,
body[data-page="home"] .section-pager-panel .pricing-grid {
  gap: 1rem 1.25rem;
}

body[data-page="home"] .section-pager-panel .feature-card,
body[data-page="home"] .section-pager-panel .step-card,
body[data-page="home"] .section-pager-panel .pricing-card {
  padding: 1.35rem 1.25rem;
}

body[data-page="home"] .section-pager-panel .faq-list {
  max-height: none;
}

body[data-page="home"] .section-pager-panel .pricing-stats {
  margin-bottom: 1.25rem;
}

body[data-page="home"] .section-pager-panel.cta-banner .container {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

body[data-page="home"] .section-transition-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-100%);
  will-change: transform, opacity;
}

body[data-page="home"].section-pager-animating {
  overflow: hidden;
}

body[data-page="home"] #footer {
  position: relative;
  z-index: 10;
  scroll-margin-top: var(--nav-height, 4.25rem);
}

/* ── Motion preferences ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Pricing page ─────────────────────────────────────── */
.pricing-note {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--fw-ink, #1C1C1F);
  opacity: 0.6;
}
.plan-features {
  margin: 1rem 0 1.5rem;
  line-height: 1.9;
  font-size: 0.95rem;
}
.price-annual {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  opacity: 0.65;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--fw-primary, #49508A);
  margin-bottom: 0.75rem;
}
.pricing-grid--packs {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .pricing-grid--packs {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .pricing-grid--packs {
    grid-template-columns: repeat(4, 1fr);
  }
}
.cta-band .section-head {
  text-align: center;
}
.cta-band .btn-primary {
  margin-top: 1.25rem;
  display: inline-block;
}
