    /* ===================================================================
       SEMANTIC TOKENS
       One strategy for the whole page (Section 8.A, option 2): CSS variables,
       exposed to Tailwind in js/tw-config-home.js so `bg-surface` and
       `style="color:var(--body)"` resolve to the same value.

       The hues are the app's shipped brand tokens
       (apps/mobile/src/design/tokens.ts). What changed is their deployment:
       the previous build put every light section inside a luminance band of
       0.081, which is what read as monotony. The light family now spans
       0.815 to 0.959 and breaks hue once, on a sage-tinted band.
       =================================================================== */
    :root {
      color-scheme: light;

      --surface:        #FDFAF6;   /* lum .959 */
      --surface-2:      #F4EDE2;   /* lum .853 */
      --surface-3:      #E4EBE3;   /* lum .815, sage-tinted: the hue break */
      --emphasis:       #1C1410;
      --emphasis-2:     #261C17;

      --ink:            #1C1410;
      --body:           #3D4F5C;
      --muted:          #5C6872;

      --accent:         #C45530;
      --accent-strong:  #A34425;
      --accent-soft:    #FBE9E1;
      --on-accent:      #FEF9F5;

      --on-emphasis:        #FDFAF6;
      --on-emphasis-muted:  #E2D2BC;

      --line:           #E4D8C4;
      --line-strong:    #CBBBA1;

      --sage:           #3B5E47;
      --sage-soft:      #E3EFE5;
    }

    /* Brand fidelity in dark (Section 8.B): terra is brightened so it stays
       recognisable, never desaturated into grey. Hierarchy parity holds -
       the emphasis band still separates from its neighbours, by lifting
       instead of dropping. */
    @media (prefers-color-scheme: dark) {
      :root {
        color-scheme: dark;

        --surface:        #2A211B;
        --surface-2:      #372C24;
        --surface-3:      #2D3931;
        --emphasis:       #463729;
        --emphasis-2:     #332920;

        --ink:            #F8F3EC;
        --body:           #D2CBBF;
        --muted:          #ABA294;

        --accent:         #EE7B54;
        --accent-strong:  #F5A583;
        --accent-soft:    #56362A;
        /* Deliberately NOT flipped. The primary CTA paints a fixed terra
           gradient in both schemes, so its label has to stay light or it
           drops to 2.95:1 on a dark button. */
        --on-accent:      #FEF9F5;

        --on-emphasis:        #F8F3EC;
        --on-emphasis-muted:  #C8C0B2;

        --line:           #483B31;
        --line-strong:    #6B5949;

        --sage:           #A4CBAF;
        --sage-soft:      #314138;
      }
    }

    * { margin: 0; padding: 0; box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      font-family: 'Inter', system-ui, sans-serif;
      background: var(--surface);
      color: var(--ink);
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
    }

    /* Brand refresh: display headings use DM Serif Display to match the app's type system
       (app src/design/tokens.ts: type.hero/title/bigValue = DMSerifDisplay_400). Inter stays
       for body, eyebrow labels, nav, buttons and the in-phone demo UI. */
    h1, h2, h3 {
      font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif !important;
      font-weight: 400 !important;
      letter-spacing: -0.01em;
    }

    /* Primary CTAs use DM Serif Display italic to match the app's button type
       (app src/design/tokens.ts: type.button = DMSerifDisplay_400_Italic).
       Italic descender clearance (Section 4.1): leading floor plus reserve so
       the y/g/j/p/q tails are never clipped. */
    .cta-btn, .nav-cta {
      font-family: 'DM Serif Display', Georgia, serif !important;
      font-style: italic !important;
      font-weight: 400 !important;
      line-height: 1.18 !important;
    }

    @keyframes float {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-12px); }
    }

    .animate-on-scroll {
      opacity: 0;
      transform: translateY(24px);
      will-change: opacity, transform;
      transition:
        opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .animate-on-scroll.visible {
      opacity: 1;
      transform: translateY(0);
      will-change: auto;
    }
    /* Blur "focus-in" only on large screens: animated filters are GPU-costly and
       read as smear on high-refresh phones; mobile gets the pure transform reveal. */
    @media (min-width: 1024px) {
      .animate-on-scroll {
        filter: blur(6px);
        transition:
          opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
          transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
          filter 0.55s ease-out;
      }
      .animate-on-scroll.visible { filter: blur(0); }
    }
    .delay-75  { transition-delay: 0.075s; }

    .delay-150 { transition-delay: 0.15s; }
    .delay-200 { transition-delay: 0.2s; }
    .delay-225 { transition-delay: 0.225s; }
    .delay-300 { transition-delay: 0.3s; }

    /* Organic wave dividers between sections (same curve language as the brand wave) */
    /* Height scales with the viewport: a fixed 90px slab covered content on
       small screens, where the wave is proportionally much larger. */
    .wave-divider { display: block; width: 100%; height: clamp(44px, 7vw, 90px); pointer-events: none; }

    /* Honor reduced-motion: everything lands instantly, fully visible */
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }
      html { scroll-behavior: auto !important; }
      .animate-on-scroll { opacity: 1 !important; transform: none !important; filter: none !important; }
    }

    .phone-notch {
      position: absolute;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 100px;
      height: 26px;
      background: #1C1410;
      border-radius: 0 0 16px 16px;
      z-index: 10;
    }

    /* CTA button */
    .cta-btn {
      background: linear-gradient(135deg, #A34425 0%, #7D331C 100%);
      color: var(--on-accent);
      transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                  box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      box-shadow: 0 4px 16px rgba(196, 85, 48, 0.3);
    }
    .cta-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 30px rgba(196, 85, 48, 0.42);
    }
    /* Tactile feedback (Section 4.5): physical push on press. */
    .cta-btn:active { transform: translateY(0) scale(0.985); }

    /* ===== Interactive Demo ===== */
    .demo-phone {
      width: 280px;
      height: 572px;
      border-radius: 44px;
      border: 6px solid #1C1410;
      overflow: hidden;
      position: relative;
      box-shadow: 0 30px 80px rgba(28,20,16,0.25), 0 0 0 1px rgba(28,20,16,0.08);
      background: #261C17;
      margin: 0 auto;
      animation: float 6s ease-in-out infinite;
    }
    .demo-screen {
      position: absolute;
      inset: 0;
      overflow: hidden;
      background: #1C1410;
    }
    .demo-scene {
      position: absolute;
      inset: 0;
      opacity: 0;
      transform: translateY(8px);
      transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
      pointer-events: none;
    }
    .demo-scene.active { transform: translateY(0); }
    .demo-scene.active {
      opacity: 1;
      pointer-events: auto;
    }

    /* Play overlay */
    .demo-play-overlay {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(28,20,16,0.35);
      backdrop-filter: blur(2px);
      cursor: pointer;
      transition: opacity 0.4s ease;
      z-index: 20;
    }
    .demo-play-overlay.hidden {
      opacity: 0;
      pointer-events: none;
    }
    .demo-play-btn {
      width: 84px;
      height: 84px;
      border-radius: 50%;
      background: linear-gradient(135deg, #A34425 0%, #7D331C 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 8px 32px rgba(196,85,48,0.5), 0 0 0 0 rgba(91,140,106,0.5);
      animation: demo-play-pulse 2s ease-in-out infinite;
      transition: transform 0.2s ease;
    }
    .demo-play-btn:hover { transform: scale(1.06); }
    @keyframes demo-play-pulse {
      0%, 100% { box-shadow: 0 8px 32px rgba(196,85,48,0.5), 0 0 0 0 rgba(91,140,106,0.6); }
      50% { box-shadow: 0 8px 32px rgba(196,85,48,0.5), 0 0 0 18px rgba(91,140,106,0); }
    }

    /* Demo map background (shared across scenes) */
    .demo-map {
      position: absolute;
      inset: 0;
      background:
        radial-gradient(circle at 25% 22%, rgba(58,80,55,0.32) 0%, transparent 38%),
        radial-gradient(circle at 75% 38%, rgba(58,80,55,0.22) 0%, transparent 32%),
        radial-gradient(circle at 45% 72%, rgba(58,80,55,0.18) 0%, transparent 28%),
        linear-gradient(135deg, #261C17 0%, #1C1410 100%);
    }

    /* Bottom sheet shared style */
    .demo-sheet {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      background: rgba(38,28,23,0.97);
      backdrop-filter: blur(20px);
      border-radius: 26px 26px 0 0;
      padding: 18px 18px 26px;
      border-top: 1px solid rgba(232,113,74,0.18);
    }
    .demo-handle {
      width: 38px;
      height: 4px;
      background: rgba(255,255,255,0.18);
      border-radius: 2px;
      margin: 0 auto 14px;
    }
    .demo-step-label {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #E8714A;
      margin-bottom: 6px;
    }
    .demo-title {
      font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif;
      font-size: 18px;
      font-weight: 400;
      letter-spacing: -0.01em;
      color: #FDFAF6;
      margin-bottom: 14px;
    }

    /* Activity list: matches the app's vertical picker (step1-activity) */
    .demo-activity-list {
      display: flex;
      flex-direction: column;
      margin-bottom: 14px;
    }
    .demo-activity-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 9px 2px;
      border-bottom: 1px solid rgba(255,255,255,0.08);
      font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif;
      font-style: italic;
      font-size: 16px;
      letter-spacing: -0.01em;
      color: rgba(253,250,246,0.92);
      transition: color 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .demo-activity-row:last-child { border-bottom: none; }
    .demo-activity-check {
      width: 18px;
      height: 18px;
      border-radius: 50%;
      border: 1.5px solid rgba(255,255,255,0.22);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: border-color 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .demo-activity-check svg { opacity: 0; transition: opacity 0.4s ease; }
    .demo-activity-row.selected { color: #E8714A; }
    .demo-activity-row.selected .demo-activity-check { border-color: #E8714A; }
    .demo-activity-row.selected .demo-activity-check svg { opacity: 1; }

    /* Slider scene */
    .demo-time-display {
      text-align: center;
      margin: 6px 0 4px;
    }
    .demo-time-num {
      font-size: 56px;
      font-weight: 800;
      color: #FDFAF6;
      letter-spacing: -1.5px;
      line-height: 1;
      font-variant-numeric: tabular-nums;
    }
    .demo-time-unit {
      font-size: 13px;
      color: rgba(255,255,255,0.45);
      font-weight: 500;
      margin-top: 4px;
    }
    .demo-slider-track {
      position: relative;
      height: 22px;
      display: flex;
      align-items: center;
      margin: 16px 4px 22px;
      cursor: grab;
      touch-action: none;
    }
    .demo-slider-track:active { cursor: grabbing; }
    .demo-slider-rail {
      position: absolute;
      left: 0;
      right: 0;
      height: 5px;
      background: rgba(255,255,255,0.1);
      border-radius: 3px;
    }
    .demo-slider-fill {
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
      background: linear-gradient(90deg, #A34425, #7D331C);
      border-radius: 3px;
      width: 25%;
    }
    .demo-slider-handle {
      position: absolute;
      top: 50%;
      left: 25%;
      transform: translate(-50%, -50%);
      width: 22px;
      height: 22px;
      background: white;
      border-radius: 50%;
      box-shadow: 0 2px 10px rgba(0,0,0,0.4);
      pointer-events: none;
    }
    .demo-slider-track.animating .demo-slider-fill,
    .demo-slider-track.animating .demo-slider-handle {
      transition: width 1.8s cubic-bezier(0.22, 1, 0.36, 1), left 1.8s cubic-bezier(0.22, 1, 0.36, 1);
    }

    /* Big CTA */
    .demo-cta {
      background: linear-gradient(135deg, #A34425, #7D331C);
      padding: 15px;
      border-radius: 16px;
      text-align: center;
      color: white;
      font-size: 16px;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      position: relative;
      overflow: hidden;
    }
    .demo-cta.tapping {
      animation: demo-tap 0.6s ease-out;
    }
    @keyframes demo-tap {
      0% { transform: scale(1); }
      40% { transform: scale(0.94); box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
      100% { transform: scale(1); box-shadow: 0 0 0 24px rgba(255,255,255,0); }
    }

    /* Route reveal scene */
    .demo-route-info {
      position: absolute;
      top: 18px;
      left: 18px;
      right: 18px;
      background: rgba(38,28,23,0.92);
      backdrop-filter: blur(16px);
      border-radius: 16px;
      padding: 14px 16px;
      border: 1px solid rgba(232,113,74,0.18);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .demo-route-stat-label {
      font-size: 10px;
      color: rgba(255,255,255,0.5);
      text-transform: uppercase;
      letter-spacing: 0.06em;
      font-weight: 600;
    }
    .demo-route-stat-value {
      font-size: 18px;
      color: #FDFAF6;
      font-weight: 800;
      font-variant-numeric: tabular-nums;
    }
    .demo-route-divider {
      width: 1px;
      height: 28px;
      background: rgba(255,255,255,0.1);
    }
    .demo-route-svg-path {
      stroke-dasharray: 700;
      stroke-dashoffset: 700;
    }
    .demo-scene.active .demo-route-svg-path {
      animation: demo-draw 2.4s 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }
    @keyframes demo-draw {
      to { stroke-dashoffset: 0; }
    }

    /* Pro panel scene */
    .demo-pro-panel {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      background: linear-gradient(180deg, rgba(38,28,23,0.98) 0%, rgba(28,20,16,0.99) 100%);
      backdrop-filter: blur(20px);
      border-radius: 26px 26px 0 0;
      padding: 22px 18px 26px;
      border-top: 1px solid rgba(91,140,106,0.3);
      transform: translateY(100%);
      transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .demo-scene.active .demo-pro-panel {
      transform: translateY(0);
    }
    .demo-pro-header {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 16px;
    }
    .demo-pro-badge {
      background: linear-gradient(135deg, #5B8C6A, #4A7558);
      color: white;
      font-size: 10px;
      font-weight: 800;
      padding: 4px 9px;
      border-radius: 6px;
      letter-spacing: 0.08em;
    }
    .demo-pro-title {
      font-size: 15px;
      font-weight: 700;
      color: #FDFAF6;
    }

    /* Pro scene: preference chips + compass */
    .demo-pref-label {
      font-size: 9px;
      letter-spacing: 0.09em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.45);
      font-weight: 700;
      margin-bottom: 7px;
    }
    .demo-chips { display: flex; flex-wrap: wrap; gap: 6px; }
    .demo-chip {
      font-size: 11px;
      font-weight: 600;
      color: rgba(255,255,255,0.55);
      border: 1px solid rgba(255,255,255,0.16);
      padding: 5px 11px;
      border-radius: 999px;
      background: transparent;
    }
    .demo-scene.active .demo-chip-pick.pick-1 { animation: demo-chip-pick 0.45s ease forwards; animation-delay: 2.6s; }
    .demo-scene.active .demo-chip-pick.pick-2 { animation: demo-chip-pick 0.45s ease forwards; animation-delay: 3.1s; }
    .demo-scene.active .demo-chip-pick.pick-3 { animation: demo-chip-pick 0.45s ease forwards; animation-delay: 3.6s; }
    /* AI prompt typewriter */
    .demo-prompt {
      display: flex;
      align-items: center;
      gap: 8px;
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(232,113,74,0.35);
      border-radius: 12px;
      padding: 9px 12px;
      margin-bottom: 14px;
    }
    .demo-prompt-sparkle { flex-shrink: 0; }
    .demo-prompt-text-wrap { overflow: hidden; min-width: 0; }
    .demo-prompt-text {
      display: inline-block;
      font-size: 12px;
      font-weight: 500;
      color: rgba(255,255,255,0.85);
      white-space: nowrap;
      overflow: hidden;
      width: 0;
      border-right: 1.5px solid #E8714A;
      padding-right: 2px;
    }
    .demo-scene.active .demo-prompt-text {
      animation:
        demo-type 1.6s 0.6s steps(26, end) forwards,
        demo-caret 0.7s 0.6s step-end 5;
    }
    @keyframes demo-type { to { width: 100%; } }
    @keyframes demo-caret {
      0%, 100% { border-right-color: #E8714A; }
      50% { border-right-color: transparent; }
    }
    @keyframes demo-chip-pick {
      40% { transform: scale(0.93); }
      100% {
        background: rgba(232,113,74,0.18);
        border-color: #E8714A;
        color: #F09772;
        transform: scale(1);
      }
    }
    .demo-compass-needle { transform-origin: 36px 36px; }
    .demo-scene.active .demo-compass-needle {
      animation: demo-compass-spin 1.8s 4.2s cubic-bezier(0.34, 1.3, 0.5, 1) forwards;
    }
    @keyframes demo-compass-spin {
      to { transform: rotate(-405deg); }
    }
    .demo-compass-value {
      font-size: 13px;
      font-weight: 800;
      color: #F09772;
      margin-top: 4px;
      opacity: 0;
    }
    .demo-scene.active .demo-compass-value {
      animation: demo-compass-value-in 0.5s ease 5.9s forwards;
    }
    @keyframes demo-compass-value-in { to { opacity: 1; } }

    /* Caption + dots */
    .demo-caption-wrap {
      height: 24px;
      margin-top: 22px;
      text-align: center;
    }
    .demo-dots { margin-top: 12px; }
    .demo-caption {
      font-size: 15px;
      font-weight: 600;
      color: #1C1410;
      opacity: 0;
      transition: opacity 0.4s ease;
    }
    .demo-caption.show { opacity: 1; }
    .demo-dots {
      display: flex;
      gap: 8px;
      justify-content: center;
    }
    .demo-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: rgba(28,20,16,0.18);
      transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
      cursor: pointer;
    }
    .demo-dot:hover { background: rgba(28,20,16,0.32); }
    .demo-dot.active {
      background: #E8714A;
      width: 28px;
      border-radius: 4px;
    }
    .demo-replay-btn {
      margin-top: 18px;
      padding: 10px 22px;
      background: white;
      border: 1.5px solid #FDDDD0;
      color: #C45530;
      font-size: 14px;
      font-weight: 600;
      border-radius: 999px;
      cursor: pointer;
      display: none;
      align-items: center;
      gap: 8px;
      transition: all 0.2s ease;
    }
    .demo-replay-btn:hover {
      background: #FDF0EB;
      border-color: #F9BAA1;
    }
    .demo-replay-btn.show { display: inline-flex; }

    /* Language switcher */
    .lang-switcher { display: flex; align-items: center; gap: 2px; margin-left: 8px; padding-left: 14px; border-left: 1px solid var(--line); }
    .lang-btn { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; padding: 4px 8px; border-radius: 6px; background: transparent; border: none; cursor: pointer; color: var(--muted); transition: all 0.2s ease; }
    .lang-btn:hover { color: var(--accent); background: var(--accent-soft); }
    .lang-btn.active { color: var(--accent); background: var(--accent-soft); }
    .nav-social { display: inline-flex; color: var(--body); transition: color 0.2s ease; }
    .nav-social:hover { color: var(--accent); }
    a:focus-visible, button:focus-visible, input:focus-visible {
      outline: 3px solid var(--accent);
      outline-offset: 3px;
    }

/* French sets a non-breaking space before a colon. This separator is shared
   markup across EN/NL/FR, so the space is applied by language rather than
   baked into the translated strings. applyLang() keeps <html lang> current. */
.label-sep { font-weight: 400; }
html[lang="fr"] .label-sep::before { content: "\00a0"; }
