  /* =========================================================================
     Theme — mirrors the app's Theme.swift exactly
     ========================================================================= */
  :root {
    --bg-top:        #FFD4B8;
    --bg-mid:        #FFB5C5;
    --bg-bottom:     #C8B6FF;
    --accent:        #FF8C5A;
    --accent-dark:   #E66A35;
    --accent-soft:   #FFB089;
    --warning:       #F2A14E;
    --success:       #5BB97D;
    --danger:        #E96A6A;
    --lavender:      #8A7CD8;
    --text-primary:  #2D1B4E;
    --text-secondary:#6B5B7E;
    --text-tertiary: #9B8BAE;
    --glass:         rgba(255,255,255,0.40);
    --glass-strong:  rgba(255,255,255,0.62);
    --glass-border:  rgba(255,255,255,0.55);
  }

  /* =========================================================================
     Reset + base
     ========================================================================= */
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; scroll-padding-top: 84px; }   /* keep #anchors clear of the fixed nav */
  html, body { overflow-x: hidden; max-width: 100vw; }
  h1, h2, h3, h4, p, .section-title, .lede, .section-lede { overflow-wrap: break-word; }

  /* Swap copy/graphics between desktop and small screens. */
  .show-mobile { display: none; }
  @media (max-width: 720px) {
    .show-desktop { display: none !important; }
    .show-mobile  { display: inline; }
    .show-mobile.block { display: block; }
  }
  body {
    font-family: 'Plus Jakarta Sans', ui-rounded, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    color: var(--text-primary);
    line-height: 1.55;
    background: linear-gradient(135deg, var(--bg-top) 0%, var(--bg-mid) 50%, var(--bg-bottom) 100%);
    background-size: 200% 200%;
    animation: gradientShift 28s ease-in-out infinite alternate;
    min-height: 100vh;
  }
  @keyframes gradientShift {
    0%   { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
  }
  a { color: inherit; text-decoration: none; }
  img, svg { display: block; max-width: 100%; }
  ::selection { background: var(--accent); color: white; }

  /* =========================================================================
     Layout helpers
     ========================================================================= */
  .container {
    max-width: 1100px; margin: 0 auto;
    padding-left:  max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
  }
  section { padding: 96px 0; position: relative; }
  @media (max-width: 720px) { section { padding: 64px 0; } }

  /* Glass card */
  .card {
    background: var(--glass);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 18px 40px rgba(45, 27, 78, 0.10);
  }

  /* Buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 16px;
    transition: transform 120ms ease, box-shadow 120ms ease;
    cursor: pointer;
    border: 0;
  }
  .btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    box-shadow: 0 12px 28px rgba(255, 140, 90, 0.45);
  }
  .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(255, 140, 90, 0.55); }
  .btn-ghost {
    background: var(--glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
  }
  .btn-ghost:hover { background: var(--glass-strong); }

  /* ===== Auth modal + signed-in nav chip ===== */
  .auth-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(45, 27, 78, 0.42);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    display: none; align-items: center; justify-content: center; padding: 20px;
    animation: authFade 180ms ease;
  }
  .auth-overlay.open { display: flex; }
  @keyframes authFade { from { opacity: 0; } to { opacity: 1; } }
  .auth-card {
    width: 100%; max-width: 420px;
    max-height: calc(100vh - 32px); overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 22px; padding: 32px 28px 26px 28px;
    position: relative;
    box-shadow: 0 28px 70px rgba(45, 27, 78, 0.30);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: var(--text-primary);
    animation: authPop 220ms cubic-bezier(.2,.8,.2,1);
  }
  @media (max-width: 480px) {
    .auth-overlay { padding: 14px; align-items: flex-start; padding-top: max(14px, env(safe-area-inset-top)); }
    .auth-card { padding: 26px 20px 22px; }
  }
  @keyframes authPop { from { transform: translateY(8px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
  .auth-close {
    position: absolute; top: 12px; right: 14px;
    background: transparent; border: 0; cursor: pointer;
    width: 32px; height: 32px; border-radius: 50%;
    color: var(--text-secondary); font-size: 22px; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .auth-close:hover { background: rgba(0, 0, 0, 0.05); color: var(--text-primary); }
  .auth-icon {
    width: 56px; height: 56px; border-radius: 50%;
    margin: 0 auto 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white; font-size: 24px;
    box-shadow: 0 10px 24px rgba(255, 140, 90, 0.40);
  }
  .auth-head { text-align: center; }
  /* min-heights keep the card from resizing when the title/sub text changes
     between sign-in and sign-up — so the cross-fade has nothing to jump. */
  .auth-title { font-size: 22px; font-weight: 800; margin: 0 0 4px; letter-spacing: -0.2px; min-height: 28px; }
  .auth-sub   { font-size: 14px; color: var(--text-secondary); margin: 0 0 16px; }
  .auth-form  { display: flex; flex-direction: column; gap: 12px; }
  .auth-field { display: flex; flex-direction: column; gap: 4px; }
  .auth-label { font-size: 11px; font-weight: 700; color: var(--text-secondary); letter-spacing: 0.6px; text-transform: uppercase; }
  .auth-form input[type="email"],
  .auth-form input[type="password"],
  .auth-form input[type="text"] {
    font: inherit; padding: 12px 14px;
    border-radius: 12px; border: 1px solid rgba(45, 27, 78, 0.10);
    background: rgba(255, 255, 255, 0.7);
    font-size: 15px; color: var(--text-primary); outline: none;
    transition: border-color 120ms, background 120ms, box-shadow 120ms;
    width: 100%; box-sizing: border-box;
  }
  .auth-form input:focus {
    border-color: var(--accent); background: white;
    box-shadow: 0 0 0 4px rgba(255, 140, 90, 0.18);
  }
  .auth-pw-row { position: relative; }
  .auth-pw-row input { padding-right: 44px; }
  .auth-pw-toggle {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    background: transparent; border: 0; cursor: pointer; padding: 6px 8px;
    font-size: 16px; color: var(--text-secondary); border-radius: 8px;
  }
  .auth-pw-toggle:hover { background: rgba(0, 0, 0, 0.05); }
  .auth-msg     { margin: 0; text-align: center; font-size: 13px; font-weight: 600; padding: 4px 0; }
  .auth-msg.err { color: var(--danger); }
  .auth-msg.ok  { color: var(--success); }
  .auth-submit  { margin-top: 6px; padding: 14px 18px; font-size: 15px; }
  .auth-submit[disabled] { opacity: 0.6; cursor: not-allowed; }
  .auth-link {
    background: transparent; border: 0; color: var(--accent); font-weight: 600;
    cursor: pointer; padding: 8px; font-size: 13px; font-family: inherit;
    align-self: center;
  }
  .auth-link:hover { color: var(--accent-dark); }
  .auth-divider { height: 1px; background: rgba(45, 27, 78, 0.10); margin: 4px 0; }
  /* Federated sign-in buttons (Google / Apple) + the "or" rule that separates them from the email form */
  .auth-social { display: flex; flex-direction: column; gap: 8px; }
  .auth-oauth {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; box-sizing: border-box;
    font: inherit; font-size: 15px; font-weight: 700;
    padding: 12px 14px; border-radius: 12px; cursor: pointer;
    border: 1px solid rgba(45, 27, 78, 0.18);
    transition: background 120ms, box-shadow 120ms, border-color 120ms, opacity 120ms;
  }
  .auth-oauth[disabled] { opacity: 0.6; cursor: not-allowed; }
  .auth-oauth svg { flex: 0 0 auto; }
  .auth-google { background: #fff; color: #3c4043; }
  .auth-google:hover { background: #f7f8fa; box-shadow: 0 2px 10px rgba(45, 27, 78, 0.10); border-color: rgba(45, 27, 78, 0.24); }
  .auth-google:active { background: #f1f3f5; }
  .auth-apple  { background: #000; color: #fff; border-color: #000; }
  .auth-apple:hover { background: #1c1c1e; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18); }
  .auth-apple:active { background: #2a2a2c; }
  .auth-or {
    display: flex; align-items: center; gap: 12px;
    color: var(--text-tertiary); font-size: 11px; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
    margin: 2px 0;
  }
  .auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: rgba(45, 27, 78, 0.10); }
  .auth-foot { font-size: 13px; color: var(--text-secondary); text-align: center; margin-top: 14px; }
  .auth-foot a { color: var(--accent); font-weight: 700; text-decoration: none; }
  .auth-foot a:hover { color: var(--accent-dark); }
  .auth-forgot-link { display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent); text-decoration: none; margin-top: 4px; align-self: flex-end; }
  .auth-forgot-link:hover { color: var(--accent-dark); }

  /* Signed-in chip */
  .user-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 6px 6px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.7);
    font-size: 13px; font-weight: 600; color: var(--text-primary);
  }
  .user-chip .user-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(91, 185, 125, 0.20); }
  .user-chip .user-email { max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .user-chip .user-signout {
    background: rgba(45, 27, 78, 0.06); border: 0; color: var(--text-secondary);
    font: inherit; font-size: 12px; font-weight: 700;
    padding: 6px 10px; border-radius: 999px; cursor: pointer;
  }
  .user-chip .user-signout:hover { background: rgba(233, 106, 106, 0.18); color: var(--danger); }


  /* Section labels */
  .label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 14px;
  }

  /* =========================================================================
     Nav — fixed, frosted, transparency increases on scroll
     ========================================================================= */
  nav.top {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    background: rgba(255, 255, 255, 0.55);
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    transition:
      background 280ms ease,
      backdrop-filter 280ms ease,
      -webkit-backdrop-filter 280ms ease,
      border-color 280ms ease,
      box-shadow 280ms ease;
  }
  /* When scrolled past the hero, dial transparency up so the gradient bleeds through */
  nav.top.scrolled {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(22px) saturate(200%);
    -webkit-backdrop-filter: blur(22px) saturate(200%);
    border-bottom-color: rgba(255, 255, 255, 0.20);
    box-shadow: 0 8px 24px rgba(45, 27, 78, 0.08);
  }
  /* Spacer for the fixed nav so the hero doesn't slide under it */
  body { padding-top: 68px; }
  @media (max-width: 720px) { body { padding-top: 66px; } }
  /* Lock background scroll while the full-screen mobile menu is open. */
  body.menu-open { overflow: hidden; }

  /* =========================================================================
     Animations — entrance, scroll-reveal, hover lift, CTA pulse
     ========================================================================= */

  /* Hero entrance — staged in on page load */
  .hero h1, .hero .lede, .hero .ctas {
    opacity: 0; transform: translateY(28px);
    animation: fadeInUp 800ms cubic-bezier(.2,.7,.2,1) forwards;
  }
  .hero h1     { animation-delay: 80ms; }
  .hero .lede  { animation-delay: 220ms; }
  .hero .ctas  { animation-delay: 360ms; }
  .hero .phone {
    opacity: 0; transform: translateY(28px) scale(.96);
    animation: fadeInPop 900ms cubic-bezier(.2,.7,.2,1) 280ms forwards,
               phoneFloat 6s ease-in-out 1.2s infinite;
  }
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes fadeInPop {
    from { opacity: 0; transform: translateY(28px) scale(.96); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
  }
  @keyframes phoneFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
  }

  /* Scroll-reveal — toggled on by IntersectionObserver. Sections and cards
     fade up the first time they enter the viewport. */
  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition:
      opacity 720ms cubic-bezier(.2,.7,.2,1),
      transform 720ms cubic-bezier(.2,.7,.2,1);
    will-change: opacity, transform;
  }
  .reveal.visible { opacity: 1; transform: none; }

  /* Stagger inside grids — children animate in sequence. */
  .stagger > * {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 600ms cubic-bezier(.2,.7,.2,1),
      transform 600ms cubic-bezier(.2,.7,.2,1);
  }
  .stagger.visible > *           { opacity: 1; transform: none; }
  .stagger > *:nth-child(1)      { transition-delay:   0ms; }
  .stagger > *:nth-child(2)      { transition-delay:  90ms; }
  .stagger > *:nth-child(3)      { transition-delay: 180ms; }
  .stagger > *:nth-child(4)      { transition-delay: 270ms; }
  .stagger > *:nth-child(5)      { transition-delay: 360ms; }
  .stagger > *:nth-child(6)      { transition-delay: 420ms; }
  .stagger > *:nth-child(7)      { transition-delay: 480ms; }
  .stagger > *:nth-child(8)      { transition-delay: 540ms; }
  .stagger > *:nth-child(n+9)    { transition-delay: 600ms; }

  /* Cards lift uniformly on hover */
  .card {
    transition:
      transform 280ms cubic-bezier(.2,.7,.2,1),
      box-shadow 280ms ease,
      opacity 720ms cubic-bezier(.2,.7,.2,1);
  }
  .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px rgba(45, 27, 78, 0.18);
  }

  /* Primary CTA gets a subtle pulse halo so the eye finds it */
  .btn-primary { position: relative; }
  .btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(255, 140, 90, 0.55);
    animation: ctaPulse 2400ms cubic-bezier(.2,.7,.2,1) infinite;
    pointer-events: none;
  }
  @keyframes ctaPulse {
    0%   { box-shadow: 0 0 0 0    rgba(255, 140, 90, 0.55); }
    70%  { box-shadow: 0 0 0 16px rgba(255, 140, 90, 0); }
    100% { box-shadow: 0 0 0 0    rgba(255, 140, 90, 0); }
  }

  /* Section labels get a soft slide-in once revealed */
  .reveal .label {
    transform: translateX(-12px);
    opacity: 0;
    transition: opacity 700ms 100ms ease, transform 700ms 100ms cubic-bezier(.2,.7,.2,1);
  }
  .reveal.visible .label {
    transform: none; opacity: 1;
  }

  /* Underline expand on nav links */
  nav.top .links a:not(.cta) {
    position: relative;
  }
  nav.top .links a:not(.cta)::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 280ms cubic-bezier(.2,.7,.2,1);
  }
  nav.top .links a:not(.cta):hover::after {
    transform: scaleX(1);
  }

  /* Reduced motion — kill everything that moves */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    .stagger > * { opacity: 1; transform: none; }
    .hero h1, .hero .lede, .hero .ctas, .hero .phone {
      opacity: 1; transform: none;
    }
  }
  nav.top .row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 0; position: relative;
  }
  nav.top .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
  nav.top .links { display: flex; gap: 24px; align-items: center; font-weight: 600; font-size: 14px; color: var(--text-secondary); }
  nav.top .links a:hover { color: var(--text-primary); }

  /* Hamburger — hidden on desktop, shown <= 720px. Sits above the full-screen
     menu so it stays tappable (turns into an ✕). */
  .nav-toggle {
    display: none; position: relative; z-index: 110;
    flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; padding: 9px; background: transparent; border: 0; cursor: pointer;
  }
  .nav-toggle span {
    display: block; width: 100%; height: 2.5px; border-radius: 2px;
    background: var(--text-primary);
    transition: transform 220ms ease, opacity 140ms ease;
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  /* ===== Mobile nav: links open into a full-screen menu ===== */
  @media (max-width: 720px) {
    .nav-toggle { display: flex; }
    nav.top .brand { position: relative; z-index: 110; font-size: 19px; }   /* stay visible over the menu */
    nav.top .brand .icon-mark { width: 32px; height: 32px; }                 /* 56px is too big for a phone nav */
    nav.top .container { padding-left: 22px; padding-right: 22px; }           /* keep "Emba" / ☰ off the edges */
    nav.top .row { gap: 12px; padding: 12px 0; }

    /* Drop the backdrop blur on mobile — `backdrop-filter` on nav.top would
       make the `position: fixed` menu inside it position relative to the
       (tiny) nav bar instead of the viewport, "smooshing" it at the top. */
    nav.top, nav.top.scrolled {
      backdrop-filter: none; -webkit-backdrop-filter: none;
      background: rgba(255, 247, 242, 0.94);
      box-shadow: 0 2px 14px rgba(45, 27, 78, 0.06);
    }

    nav.top .links {
      position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 95;
      width: 100vw; height: 100vh; height: 100dvh;        /* explicit full screen */
      display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 4px;
      padding: 88px max(28px, env(safe-area-inset-left)) calc(36px + env(safe-area-inset-bottom)) max(28px, env(safe-area-inset-right));
      background: linear-gradient(165deg, var(--bg-top) 0%, var(--bg-mid) 48%, var(--bg-bottom) 100%);
      overflow-y: auto; -webkit-overflow-scrolling: touch;
      transform: translateY(-100%);              /* parked above the viewport */
      visibility: hidden; pointer-events: none;
      transition: transform 300ms cubic-bezier(.4, 0, .2, 1), visibility 0s linear 300ms;
    }
    nav.top .links.open {
      transform: translateY(0);                  /* slides down into place */
      visibility: visible; pointer-events: auto;
      transition: transform 360ms cubic-bezier(.16, 1, .3, 1), visibility 0s;
    }
    /* Items stagger in just behind the sliding panel. */
    nav.top .links > * { opacity: 0; transform: translateY(14px); transition: opacity 220ms ease, transform 220ms cubic-bezier(.16, 1, .3, 1); }
    nav.top .links.open > * { opacity: 1; transform: none; }
    nav.top .links.open > *:nth-child(1) { transition-delay: 70ms; }
    nav.top .links.open > *:nth-child(2) { transition-delay: 100ms; }
    nav.top .links.open > *:nth-child(3) { transition-delay: 130ms; }
    nav.top .links.open > *:nth-child(4) { transition-delay: 160ms; }
    nav.top .links.open > *:nth-child(5) { transition-delay: 190ms; }
    nav.top .links.open > *:nth-child(6) { transition-delay: 220ms; }
    nav.top .links.open > *:nth-child(7) { transition-delay: 250ms; }
    nav.top .links a:not(.cta) {
      display: block; text-align: center; padding: 16px 12px;
      font-size: 22px; font-weight: 700; color: var(--text-primary);
      border-bottom: 1px solid rgba(45, 27, 78, 0.10);
    }
    nav.top .links a:not(.cta):active { background: rgba(45, 27, 78, 0.05); }
    nav.top .links a:not(.cta)::after { display: none; }
    nav.top .links #navSignIn,
    nav.top .links a.cta.btn {
      width: 100%; justify-content: center; box-sizing: border-box;
      padding: 16px; font-size: 16px; border-radius: 14px;
    }
    nav.top .links #navSignIn { margin-top: 22px; }
    nav.top .links a.cta.btn-primary { margin-top: 10px; }
    nav.top .links .user-chip {
      width: 100%; justify-content: space-between; box-sizing: border-box;
      padding: 12px 16px; margin-top: 22px;
    }
  }

  /* =========================================================================
     Hero
     ========================================================================= */
  .hero { padding: 40px 0 110px; }
  .hero .grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: center;
  }
  .hero .grid > * { min-width: 0; max-width: 100%; }
  @media (max-width: 900px) {
    /* Single column. Items stretch to the track (no `justify-items: center`,
       which would shrink them to max-content and overflow); text centers via
       `text-align`. */
    .hero .grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
    .hero .grid > * { width: 100%; }
    .hero .phone { margin: 0 auto; }
    .hero .lede { max-width: 100%; }
  }
  .hero h1 {
    font-size: clamp(34px, 7vw, 80px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 800;
    margin-bottom: 24px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  h2.section-title {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .hero h1 .accent {
    background: linear-gradient(120deg, var(--accent) 0%, var(--accent-dark) 60%, var(--lavender) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
  }
  .hero .lede {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 520px;
  }
  @media (max-width: 900px) { .hero .lede { margin-left: auto; margin-right: auto; } }
  .hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
  @media (max-width: 900px) { .hero .ctas { justify-content: center; } }

  /* Hero icon mark */
  .icon-mark { width: 56px; height: 56px; }

  /* =========================================================================
     Phone mockup (CSS+SVG, no real screenshot needed)
     ========================================================================= */
  .phone {
    width: min(320px, calc(100vw - 48px));
    aspect-ratio: 320 / 660;
    border-radius: 56px;
    background: #1a0f2e;
    padding: 12px;
    box-shadow:
      0 40px 100px rgba(45, 27, 78, 0.30),
      0 4px 16px rgba(45, 27, 78, 0.15),
      inset 0 0 0 2px rgba(255,255,255,0.08);
    position: relative;
  }
  .phone .screen {
    width: 100%; height: 100%;
    border-radius: 44px;
    background: linear-gradient(180deg, #FFD4B8 0%, #FFB5C5 50%, #C8B6FF 100%);
    overflow: hidden;
    position: relative;
    padding: 60px 18px 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .phone .notch {
    position: absolute;
    top: 12px; left: 50%; transform: translateX(-50%);
    width: 110px; height: 32px;
    background: #1a0f2e;
    border-radius: 18px;
    z-index: 5;
  }
  .phone .greeting { font-weight: 800; font-size: 22px; color: var(--text-primary); padding: 0 4px; }
  .phone .greeting .small { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
  .phone .pcard {
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.55);
  }
  .phone .pcard h4 { font-size: 12px; font-weight: 700; color: var(--accent-dark); letter-spacing: 0.6px; text-transform: uppercase; margin-bottom: 4px; }
  .phone .pcard p { font-size: 13px; color: var(--text-primary); }
  .phone .ring {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 2px solid var(--accent);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 24px rgba(255,140,90,0.4);
  }
  .phone .row { display: flex; gap: 10px; align-items: center; }
  .phone .button {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white; padding: 10px;
    border-radius: 12px; font-size: 12px; font-weight: 700;
    text-align: center; flex: 1;
    box-shadow: 0 6px 14px rgba(255, 140, 90, 0.4);
  }
  .phone .ghost {
    background: rgba(255,255,255,0.5);
    color: var(--lavender);
    padding: 10px;
    border-radius: 12px; font-size: 12px; font-weight: 700;
    text-align: center; flex: 1;
    border: 1px solid rgba(138,124,216,0.4);
  }
  .phone .tabbar {
    margin-top: auto;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 10px;
    display: flex; justify-content: space-around;
    border: 1px solid rgba(255,255,255,0.6);
  }
  .phone .tabbar .tab {
    font-size: 9px; color: var(--text-tertiary); display: flex; flex-direction: column; align-items: center; gap: 2px;
  }
  .phone .tabbar .tab.active { color: var(--accent); font-weight: 700; }
  .phone .tabbar .tab .dot { font-size: 14px; }

  /* =========================================================================
     Research section
     ========================================================================= */
  .grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  @media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
  .grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  @media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }
  .grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  @media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 600px)  { .grid-4 { grid-template-columns: 1fr; } }

  .research-card .icon {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 14px;
    box-shadow: 0 8px 18px rgba(255,140,90,0.35);
  }
  .research-card h3 { font-size: 18px; margin-bottom: 8px; font-weight: 700; }
  .research-card p { color: var(--text-secondary); font-size: 14px; }
  .research-card .source { font-size: 11px; color: var(--text-tertiary); font-style: italic; margin-top: 8px; }

  h2.section-title {
    font-size: clamp(28px, 4.5vw, 48px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 800;
    margin-bottom: 20px;
    max-width: 720px;
  }
  .section-lede {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 640px;
  }

  /* =========================================================================
     Day-cycle timeline (mirrors the in-app DayCycleTimeline)
     ========================================================================= */
  .cycle-list {
    display: flex; flex-direction: column;
    gap: 0;
  }
  .cycle-row {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 16px;
    align-items: start;
    padding-bottom: 22px;
    position: relative;
  }
  .cycle-row::before {
    content: ""; position: absolute; left: 29px; top: 36px; bottom: 0; width: 2px;
    background: var(--glass-border);
  }
  .cycle-row:last-child { padding-bottom: 0; }
  .cycle-row:last-child::before { display: none; }
  .cycle-row .badge {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 16px;
    box-shadow: 0 6px 16px rgba(45,27,78,0.18);
  }
  .cycle-row h4 { font-size: 17px; font-weight: 700; margin-bottom: 2px; }
  .cycle-row p { color: var(--text-secondary); font-size: 14px; }
  .cycle-row .time { font-size: 13px; font-weight: 700; opacity: 0.85; }

  /* =========================================================================
     Features grid
     ========================================================================= */
  .feature-card {
    transition: transform 240ms ease;
  }
  .feature-card:hover { transform: translateY(-4px); }
  .feature-card .icon-circle {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
  }
  .feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
  .feature-card p  { color: var(--text-secondary); font-size: 14px; }

  /* =========================================================================
     "What is an Emba" section — large hero card
     ========================================================================= */
  .emba-explain {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
  }
  @media (max-width: 900px) { .emba-explain { grid-template-columns: 1fr; } }
  /* =========================================================================
     3D Emba model — stacked rounded slices (no corner gaps)
     ========================================================================= */
  /* The two CSS variables `--c-top` / `--c-bot` are swapped at runtime by the
     swatch picker (see #embaColorPicker in index.html). Every face's gradient,
     the side slices, and the floor shadow are derived from them via color-mix
     so the whole prism re-tints as a unit. Defaults match the "Sunrise" finish
     in the shop catalogue (shop.html `COLORS.sunrise`). */
  .emba-3d {
    --c-top: #FFB089;
    --c-bot: #E66A35;
    perspective: 1400px;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 1;
    margin: 0 auto;
    transition: --c-top 240ms ease, --c-bot 240ms ease;
  }
  .emba-card {
    width: 280px; height: 280px;
    margin: 40px auto;
    position: relative;
    transform-style: preserve-3d;
    animation: embaFloat 9s ease-in-out infinite;
  }
  @keyframes embaFloat {
    0%   { transform: rotateY(-30deg) rotateX(22deg) translateY(0); }
    50%  { transform: rotateY( 30deg) rotateX(22deg) translateY(-12px); }
    100% { transform: rotateY(-30deg) rotateX(22deg) translateY(0); }
  }
  /* Each slice is a full rounded rectangle at a slightly different Z.
     Stack ~14 of them and you get a solid prism with no corner gaps —
     because every slice is the same shape, the corners stay sealed at
     every angle. Side colour = a slightly darker mix of the bottom tone. */
  .emba-card .slice {
    position: absolute;
    inset: 0;
    border-radius: 56px;
    background: linear-gradient(135deg,
      var(--c-bot) 0%,
      color-mix(in srgb, var(--c-bot), black 22%) 100%);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: background 240ms ease;
  }
  /* Top face — the visible "logo" slice. Brighter so it reads as the surface. */
  .emba-card .top {
    position: absolute;
    inset: 0;
    border-radius: 56px;
    background: linear-gradient(135deg,
      var(--c-top) 0%,
      var(--c-bot) 60%,
      color-mix(in srgb, var(--c-bot), white 8%) 100%);
    box-shadow:
      inset 0 2px 0 rgba(255, 255, 255, 0.45),
      inset 0 -2px 0 rgba(0, 0, 0, 0.08),
      0 30px 60px color-mix(in srgb, var(--c-bot), transparent 55%);
    transform: translateZ(14px);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: background 240ms ease, box-shadow 240ms ease;
  }
  .emba-card .top svg {
    width: 78%; height: 78%;
    filter: drop-shadow(0 4px 8px color-mix(in srgb, var(--c-bot), black 35%));
    transition: filter 240ms ease;
  }
  /* Bottom face — deeper finish so the back side reads as a printed underside. */
  .emba-card .bottom {
    position: absolute;
    inset: 0;
    border-radius: 56px;
    background: linear-gradient(135deg,
      color-mix(in srgb, var(--c-bot), black 30%) 0%,
      color-mix(in srgb, var(--c-bot), black 45%) 100%);
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.20);
    transform: translateZ(-14px);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: background 240ms ease;
  }
  /* Floor shadow under the prism */
  .emba-3d::after {
    content: "";
    display: block;
    width: 60%;
    height: 30px;
    margin: -10px auto 0;
    border-radius: 50%;
    background: radial-gradient(ellipse at center,
      color-mix(in srgb, var(--c-bot), transparent 55%),
      transparent);
    animation: embaShadow 9s ease-in-out infinite;
  }

  /* Swatch picker — sits under the 3D model. Buttons mirror the shop's COLORS map. */
  .emba-color-picker {
    margin: 8px auto 0;
    max-width: 360px;
    text-align: center;
  }
  .emba-swatches {
    display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  }
  .emba-swatch {
    width: 36px; height: 36px; border-radius: 50%;
    border: 2px solid transparent; cursor: pointer; padding: 0;
    box-shadow: 0 6px 16px rgba(45, 27, 78, 0.18);
    transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
  }
  .emba-swatch:hover  { transform: translateY(-2px); }
  .emba-swatch:focus-visible { outline: 0; border-color: var(--text-primary); }
  .emba-swatch[aria-pressed="true"] {
    border-color: var(--text-primary);
    transform: scale(1.12);
    box-shadow: 0 8px 22px rgba(45, 27, 78, 0.28);
  }
  .emba-color-label {
    margin-top: 10px;
    font-size: 12px; font-weight: 700; letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-secondary);
  }
  @keyframes embaShadow {
    0%, 100% { transform: scaleX(1)   translateY(0); opacity: 0.5; }
    50%      { transform: scaleX(1.1) translateY(0); opacity: 0.35; }
  }
  @media (prefers-reduced-motion: reduce) {
    .emba-card { animation: none; transform: rotateY(-22deg) rotateX(18deg); }
    .emba-3d::after { animation: none; }
  }

  /* =========================================================================
     Privacy callout
     ========================================================================= */
  .privacy-card {
    text-align: center;
    padding: 48px 32px;
  }
  .privacy-card .lock {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--success), #4FB573);
    margin: 0 auto 18px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 32px;
    box-shadow: 0 12px 28px rgba(91,185,125,0.4);
  }
  .privacy-card h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
  .privacy-card p { font-size: 17px; color: var(--text-secondary); max-width: 580px; margin: 0 auto 24px; }
  .privacy-points {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
    margin-top: 32px; text-align: left;
  }
  @media (max-width: 800px) { .privacy-points { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 500px) { .privacy-points { grid-template-columns: 1fr; } }
  .privacy-points .pp {
    background: rgba(255,255,255,0.45);
    border-radius: 12px; padding: 14px;
    border: 1px solid rgba(255,255,255,0.5);
  }
  .privacy-points .pp h4 { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
  .privacy-points .pp p { font-size: 12px; color: var(--text-secondary); margin: 0; }

  /* =========================================================================
     Final CTA
     ========================================================================= */
  .final-cta { text-align: center; padding: 80px 24px; }
  .final-cta h2 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
  }
  .final-cta p { font-size: 19px; color: var(--text-secondary); margin-bottom: 32px; }

  /* =========================================================================
     Footer
     ========================================================================= */
  footer {
    border-top: 1px solid var(--glass-border);
    padding: 32px 0;
    margin-top: 32px;
  }
  footer .row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; align-items: center; }
  footer .legal { font-size: 13px; color: var(--text-tertiary); }
  footer .links { display: flex; gap: 20px; font-size: 13px; color: var(--text-secondary); }
  footer .links a:hover { color: var(--text-primary); }

  /* App store badge */
  .app-badge {
    background: linear-gradient(135deg, #1a0f2e, #2d1b4e);
    color: white;
    padding: 12px 22px;
    border-radius: 12px;
    display: inline-flex; align-items: center; gap: 12px;
    font-weight: 600;
    transition: transform 120ms ease;
  }
  .app-badge:hover { transform: translateY(-1px); }
  .app-badge .small { font-size: 10px; opacity: 0.8; line-height: 1.2; }
  .app-badge .big   { font-size: 18px; font-weight: 800; line-height: 1; }

  /* =========================================================================
     Phone layout — last block so it wins the cascade. Force every wide thing
     to fit the viewport and the hero to a clean single column.
     ========================================================================= */
  @media (max-width: 720px) {
    section, .container, .grid, .grid-2, .grid-3, .grid-4, .hero .grid > * {
      max-width: 100%;
    }
    .container { padding-left: 20px; padding-right: 20px; }
    .nav-toggle { display: flex; }

    .hero { padding: 56px 0 64px; }
    .hero .grid { display: block; }
    .hero .grid > * { width: 100%; }
    .hero > .grid > div:first-child { margin-bottom: 28px; }
    .hero h1   { font-size: clamp(28px, 8.5vw, 40px); line-height: 1.08; margin-bottom: 16px; }
    .hero .lede{ font-size: 16px; line-height: 1.5; margin: 0 auto 22px; }
    .hero .ctas{ flex-wrap: wrap; gap: 10px; justify-content: center; }
    .hero .ctas .btn { flex: 1 1 auto; justify-content: center; }
    .hero .phone { width: min(300px, calc(100% - 8px)); margin: 0 auto; }

    /* Hard cap: nothing in the hero or section headers may be wider than its
       column, and long words may break. Kills horizontal overflow regardless
       of what an inline child tries to do. */
    .hero h1, .hero .lede, .hero .ctas, .hero .phone,
    .section-title, .section-lede, .label { max-width: 100%; }
    .hero h1, .hero h1 *, .hero .lede, .hero .lede *,
    h2.section-title, .section-title {
      white-space: normal; word-break: break-word; overflow-wrap: anywhere;
    }
    .hero h1 .accent, .show-mobile, .show-desktop { display: inline; }
  }
  /* Final clip — anything that still manages to be too wide gets cut, not
     scrolled. (Applied site-wide; sections are full-width blocks anyway.) */
  @media (max-width: 720px) {
    section, .hero, footer { overflow-x: clip; }

    .section-title  { font-size: clamp(26px, 6.5vw, 34px); }
    .section-lede   { font-size: 16px; }
    h2.section-title{ max-width: 100%; }
  }
  @media (max-width: 380px) {
    .hero h1 { font-size: 30px; }
    .container { padding-left: 18px; padding-right: 18px; }
    nav.top .container { padding-left: 18px; padding-right: 18px; }
  }
