/* =================================================================
   Andante AI — landing page styles

   Tokens: docs/brand/brand-tokens.md (canonical, mirrored in
   docs/10_BRAND.md). Visual: docs/brand/Andante AI Brand Handoff.html.

   Brand handoff updated 2026-05-03:
     • Sans:   Inter Tight  →  Funnel Display (400/500/600/700)
     • Wordmark AI color: terracotta → aubergine plum
       (--plum-deep on light, --plum-bright on dark) via new
       semantic alias --wordmark-ai. Terracotta is reserved for
       CTAs/accents — never on the wordmark AI.
     • Wordmark TM: was a 0.42em mono superscript; now a framed
       hairline-bordered mono badge (border-top + border-bottom)
       at 0.46em. Hidden below ~24px via `.compact`.
     • New opt-in modifiers on .andante-wordmark: `.glow` (shimmer
       gradient on AI cluster), `.breathing` (opacity breathe),
       `.edge-glow` (name edge glow), `.wm-hover` (hover drop-shadow).
       prefers-reduced-motion freezes all. @media print kills all.
       Use only on hero / splash / dark-chrome surfaces — never body UI or <40px.

   Two surfaces: paper (light) + charcoal (dark, OS-driven via
   prefers-color-scheme — semantic tokens re-resolve automatically
   in the dark block below).

   Awning stripes (manifesto band): navy/paper.
   ================================================================= */

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

:root {
  /* ---- Light surfaces -------------------------------------------- */
  --paper:           #F4EFE6;
  --paper-soft:      #FBF8F2;
  --navy:            #1D3464;
  --navy-soft:       #2D4885;
  --terracotta:      #C8553B;
  --plum-deep:       #4F2C44;   /* wordmark AI · italic serif emphasis on light */
  --plum-soft:       #EFD2DE;   /* tinted surface — rewrite/suggest cards, info chips, pin halos */
  --plum-blush:      #F7E4ED;   /* whisper — hover row tint, "just changed" 1.5s flash */
  --slate:           #6B7280;
  --rule:            #E5DECF;

  /* ---- Dark surfaces (charcoal — never black, never brown) ------- */
  --charcoal:        #1F2228;
  --charcoal-soft:   #2A2E36;
  --sky:             #9BB3D9;
  --sky-soft:        #D2DDED;
  --terracotta-soft: #E07A5F;
  --plum-bright:     #D9A3C2;   /* legacy; --plum-royal-soft (#9D5DAD) is now wordmark AI on dark */
  --plum-veil:       rgba(217, 163, 194, 0.18);  /* tinted surface on dark — plum-soft equivalent */
  --slate-light:     #9AA3AF;

  /* ---- Semantic tokens (re-resolve in the dark block below) ----- */
  --bg:              var(--paper);
  --surface:         var(--paper-soft);
  --fg:              var(--navy);
  --fg-secondary:    var(--navy-soft);
  --fg-muted:        var(--slate);
  --accent:          var(--terracotta);
  --wordmark-ai:     var(--plum-deep);
  /* AI-suggestion surface — plum-soft on light, plum-veil on dark.
     Components consume `--suggest-bg` so swapping the marketing site
     to OS-driven dark mode in future flips this automatically. */
  --suggest-bg:      var(--plum-soft);
  --suggest-fg:      var(--plum-deep);
  --whisper:         var(--plum-blush);
  --border:          var(--rule);

  /* ---- Non-brand utilities (status only — used sparingly) -------- */
  --moss:            #7A8C6A;   /* "in progress" status dot, ok-state */
  --hairline:        rgba(31, 34, 40, 0.10);
  --shadow-card:     0 1px 2px rgba(31, 34, 40, 0.05),
                     0 8px 30px rgba(31, 34, 40, 0.07);

  /* ---- Type-tone tiers (DEPTH not monochrome) ---------------------- */
  /* The brand handoff sets navy as primary text. Page-wide that reads
     monotone-blue. We split body type into a tone hierarchy:
       --ink         body / prose          (charcoal — calm reading text)
       --ink-soft    secondary / metadata  (slate-ish charcoal)
       --fg / --navy emphasis / structural (navy — wordmark, em, titles)
     Body uses --ink. Headings/em/links stay --navy. The contrast
     between navy moments and charcoal prose IS the depth. */
  --ink:        var(--charcoal);
  --ink-soft:   #4A4F5C;

  /* ---- Type ------------------------------------------------------ */
  --font-display:  "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-sans:     "Funnel Display", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:     "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  /* legacy aliases — components author against semantic names below */
  --font-wordmark: var(--font-sans);
  --font-body:     var(--font-sans);

  /* ---- Layout ---------------------------------------------------- */
  --max-width:    1200px;
  --gutter:       clamp(20px, 4vw, 48px);
  --section-pad:  clamp(72px, 10vw, 140px);

  /* ---- Radius scale ----------------------------------------------- */
  --radius-md:    14px;   /* small cards, chips, suggest-card */
  --radius-lg:    18px;   /* day cards, planner cards */
  --radius-xl:    22px;   /* hero cards, large CTAs */

  /* ---- Extended brand palette (second handoff 2026-05-03) --------- */
  --aubergine:       #4F2C44;   /* alias of --plum-deep — used in gradient stops */
  --plum-royal:      #7B3D8A;   /* mid-depth plum — AI gradient anchor */
  --plum-royal-soft: #9D5DAD;   /* wordmark AI on dark (replaces --plum-bright) */
  --ai-lavender-hi:  #EBD6E5;   /* wordmark name on dark */
  --navy-deep:       #0A2244;   /* deepest navy — gradient shadows + border anchors */

  /* Semantic aliases for the second handoff */
  --wordmark-name:   var(--navy);          /* light: navy; dark: ai-lavender-hi */

  /* ---- Gradient ramps (brand book §6) ----------------------------- */
  /* Named after the sky states they evoke. Each is a subtle directional
     wash; combine with a base surface color, don't use full-bleed.     */
  --gradient-twilight: linear-gradient(155deg, #7B3D8A 0%, #4F2C44 38%, #1D3464 70%, #0A2244 100%);
  --gradient-dawn: linear-gradient(
    160deg,
    var(--paper)      0%,
    #F9EFE8           35%,
    var(--plum-blush) 100%
  );
  --gradient-dusk: linear-gradient(
    150deg,
    var(--charcoal)      0%,
    var(--navy-deep)     50%,
    #3A1A30              100%
  );
  --gradient-fog: linear-gradient(
    180deg,
    var(--paper-soft) 0%,
    var(--paper)      100%
  );
  --gradient-ink: linear-gradient(
    180deg,
    var(--charcoal)      0%,
    var(--charcoal-soft) 100%
  );

  /* ---- AI gradient (linear — used for sparkle icon, badges) ------- */
  /* Warm pink → lavender → plum arc. Narrower than ai-conic so it
     reads as "Andante" rather than generic rainbow.                    */
  --ai-gradient: linear-gradient(
    135deg,
    #F0B9D0 0%,
    #E8A5C8 20%,
    #C58CB0 40%,
    #B7ABD7 60%,
    #8E6FB8 80%,
    #7B3D8A 100%
  );

  /* ---- AI conic (6-stop — used for animated glow border) ---------- */
  /* Gold → pink → rose → lavender → sky → plum-royal. Each stop is
     60° so a conic rotation reads as a single aurora sweep.            */
  --ai-conic: conic-gradient(
    from 0deg,
    #FFD89A 0deg,
    #F0B9D0 60deg,
    #D98AAE 120deg,
    #B7ABD7 180deg,
    #8FB8E0 240deg,
    #7B3D8A 300deg,
    #FFD89A 360deg
  );
}

/* Dark-mode block deliberately NOT shipped to the live site — the
   brand handoff defines a dark palette, but the marketing site is
   light-only by design (paper background, navy primary). The dark
   tokens above (--charcoal / --sky / --plum-bright / etc.) remain
   defined so the footer (always-charcoal) can use them as raw
   values, but no `@media (prefers-color-scheme: dark)` block flips
   the semantic tokens. Add one only when we explicitly decide to
   support OS-driven dark mode for the marketing surface. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);                /* charcoal for prose; navy reserved for emphasis */
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -10000px; top: auto;
  background: var(--navy); color: var(--paper);
  padding: 10px 16px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

/* =====  WORDMARK  ================================================
   Spec source: docs/brand/brand-tokens.md §4 (handoff 2026-05-03).
     • `andante` — Funnel Display 600, var(--wordmark-name) (navy on
                   light, ai-lavender-hi on dark), letter-spacing -0.02em.
     • `AI`      — Funnel Display 500 uppercase, var(--wordmark-ai)
                   (plum-deep on light, plum-royal-soft on dark), 0.38em
                   of the name with 0.16em letter-spacing, top: 0 (no
                   baseline lift), display inline-flex align-items stretch.
                   Gap to name = 0.20em.
     • `TM`      — JetBrains Mono 500, 0.46em of .ai (relative to AI
                   cluster), framed by hairline borders top + bottom
                   (currentColor — inherits from .ai so the rules match
                   plum). align-self: stretch. Hidden below ~24px via `.compact`.
     • Glow      — opt-in via `.glow` class. Animates the AI cluster
                   only (the contrast between flat name + breathing
                   AI is the point). Light + dark keyframes below.
   Sized via em so parent font-size propagates to AI + TM. */
.andante-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.20em;                     /* brand book §4: 20% of nameSize */
  line-height: 1;
  color: var(--wordmark-name, var(--navy)); /* navy on light, ai-lavender-hi on dark */
  font-family: var(--font-sans);   /* Funnel Display */
  font-size: 40px;                  /* header default. Sized AT the brand
                                      handoff's "don't glow under 40px" floor
                                      so opting `.glow` in on the header is safe.
                                      Footer brand has its own 44px override;
                                      footer copyright keeps --small (19px). */
  font-weight: 600;
}
.andante-wordmark .name {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--wordmark-name, var(--navy));  /* navy on light, ai-lavender-hi on dark */
}
.andante-wordmark .ai {
  font-family: var(--font-sans);   /* Funnel Display, NOT mono */
  font-weight: 500;
  font-size: 0.38em;               /* brand book §4: 38% of nameSize */
  letter-spacing: 0.16em;          /* was 0.18em */
  text-transform: uppercase;
  color: var(--wordmark-ai);        /* plum-deep on light, plum-royal-soft on dark */
  position: relative;
  top: 0;                          /* no baseline lift — aligned */
  display: inline-flex;
  align-items: stretch;
  line-height: 1;
}
.andante-wordmark .tm {
  font-family: var(--font-mono);
  font-weight: 500;
  /* TM size is relative to .ai — 0.46em of .ai cluster size */
  font-size: 0.46em;               /* 46% of .ai font-size */
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-left: 0.14em;             /* 14% of tmSize (was 0.36em of badge) */
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  text-align: center;
  padding: 0 0.32em;               /* horiz pad: 32% of tmSize (was 0.18em of badge) */
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  box-sizing: border-box;
  color: inherit;                    /* inherits plum from .ai parent */
}
.andante-wordmark--small {
  font-size: 19px;
}
/* Hide TM below ~24px — at small sizes the hairline frame collapses
   into noise. --small always hides; .compact opts in explicitly
   (the React component sets it automatically when font-size < 24px). */
.andante-wordmark--small .tm,
.andante-wordmark.compact .tm {
  display: none;
}

/* =====  WORDMARK · AI ANIMATIONS  ================================
   Opt-in modifiers on .andante-wordmark. Animates ONLY the AI
   cluster (and .name for edge-glow) — the base name stays flat.
   Use on hero / splash / loading states / dark-chrome surfaces.
   Don't use on dense body UI, table rows, or wordmarks under ~40px. */
@keyframes ai-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@keyframes ai-breathe {
  0%, 100% { opacity: 1.00; filter: none; }
  50%      { opacity: 0.86; filter: drop-shadow(0 0 6px rgba(79,44,68,0.18)); }
}
@keyframes ai-breathe-glow {
  0%, 100% {
    filter: drop-shadow(0 0 4px rgba(217,138,174,0.18))
            drop-shadow(0 0 16px rgba(143,184,224,0.10));
  }
  50% {
    filter: drop-shadow(0 0 8px rgba(217,138,174,0.42))
            drop-shadow(0 0 28px rgba(143,184,224,0.28));
  }
}
@keyframes name-edge-glow-light {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(29,52,100,0.10)); }
  50%      { filter: drop-shadow(0 0 10px rgba(123,61,138,0.45))
                     drop-shadow(0 0 24px rgba(157,93,173,0.32))
                     drop-shadow(0 0 40px rgba(217,138,174,0.20)); }
}
@keyframes name-edge-glow-dark {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(235,214,229,0.12)); }
  50%      { filter: drop-shadow(0 0 12px rgba(235,214,229,0.55))
                     drop-shadow(0 0 28px rgba(143,184,224,0.42))
                     drop-shadow(0 0 48px rgba(217,138,174,0.28)); }
}

/* .glow — gradient shimmer on the AI cluster */
.andante-wordmark.glow .ai {
  background: linear-gradient(135deg, #7B3D8A, #9D5DAD, #C07DB8, #7B3D8A);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: ai-shimmer 7s ease-in-out infinite;
}

/* .breathing — subtle opacity + drop-shadow breathe */
.andante-wordmark.breathing .ai {
  animation: ai-breathe 5.4s ease-in-out infinite;
}

/* .glow.breathing — shimmer + glow breathe combined */
.andante-wordmark.glow.breathing .ai {
  animation: ai-shimmer 7s ease-in-out infinite,
             ai-breathe-glow 5.4s ease-in-out infinite;
}

/* .edge-glow — name edge glow (light default) */
.andante-wordmark.edge-glow .name {
  animation: name-edge-glow-light 5s ease-in-out infinite;
}
@media (prefers-color-scheme: dark) {
  .andante-wordmark.dark.edge-glow .name,
  .andante-wordmark.edge-glow .name {
    animation: name-edge-glow-dark 5s ease-in-out infinite;
  }
}

/* .wm-hover — hover state drop-shadow on AI cluster */
.andante-wordmark.wm-hover:hover .ai {
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(123,61,138,0.35));
  transition: filter 0.3s ease, opacity 0.3s ease;
}

/* Reduced-motion: freeze all animations. */
@media (prefers-reduced-motion: reduce) {
  .andante-wordmark.glow .ai,
  .andante-wordmark.breathing .ai,
  .andante-wordmark.glow.breathing .ai,
  .andante-wordmark.edge-glow .name {
    animation: none;
  }
}
/* Print: kill all animations. */
@media print {
  .andante-wordmark.glow .ai,
  .andante-wordmark.breathing .ai,
  .andante-wordmark.glow.breathing .ai,
  .andante-wordmark.edge-glow .name {
    animation: none;
    filter: none;
    text-shadow: none;
  }
}

/* AI gradient text — for hero headline accent words and section moments */
.gtext {
  background: var(--ai-gradient);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: ai-shimmer 7s ease-in-out infinite;
}

/* Hero title prefix override — static dark navy→plum gradient on light paper.
   Key differences from the base .gtext:
   • background-size: 100% — static, no shifting. Shimmer on a 220% bg cycles
     through lighter stops and foams the text into a blurry smear on paper.
   • animation: none — for the same reason.
   • text-shadow: none — .hero__title inherits a white paper-glow text-shadow;
     on transparent gradient text that creates a frosted-glass fog. Remove it.
   • ::before background: none — strip the paper-card highlight behind the prefix;
     it turns lavender/frosted over the hero gradient. */
.hero__title-prefix.gtext {
  background: linear-gradient(
    135deg,
    var(--plum-deep)   0%,
    var(--plum-royal)  40%,
    #7B3D8A            72%,
    var(--navy)       100%
  );
  background-size: 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: none;
  text-shadow: none;
}
.hero__title-prefix.gtext::before {
  background: none;
}

/* Inline sparkle glyph — filled with AI gradient + shimmer + twinkle */
.ai-spark {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.16em;
  background: var(--ai-gradient);
  background-size: 280% 280%;
  animation: ai-shimmer 5.5s ease-in-out infinite, ai-twinkle 3.2s ease-in-out infinite;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 L13.5 9 L20 10.5 L13.5 12 L12 19 L10.5 12 L4 10.5 L10.5 9 Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 L13.5 9 L20 10.5 L13.5 12 L12 19 L10.5 12 L4 10.5 L10.5 9 Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  flex-shrink: 0;
}
@keyframes ai-twinkle {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.08); opacity: 0.88; }
}

/* =====  AI-SUGGESTION SURFACES  ==================================
   Spec source: docs/brand/brand-tokens.md §5 (handoff 2026-05-03).

   The framing: terracotta gets attention, plum gets trust. These
   classes are reserved for AI-suggestion / advisory moments —
   "we propose an alternative", "AI picked this", "we noticed the
   weather changed". Don't restyle CTAs, nav, or general chrome
   as plum.

   Pairing rules:
     • Inside a plum-tinted region, italic emphasis goes plum-deep
       (light) / plum-bright (dark) — NEVER terracotta. Terracotta
       on plum clashes.
     • plum-blush should read as a whisper. If it's clearly pink,
       drop opacity or revert. */

/* Tinted surface — rewrite suggestion cards, "AI proposed this" panels.
   Pair with plum-deep type and plum-deep italic emphasis. */
.suggest-card {
  background: var(--suggest-bg);
  color: var(--suggest-fg);
  border: 1px solid rgba(79, 44, 68, 0.10);  /* plum-deep at 10% */
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.suggest-card em,
.suggest-card .em {
  color: var(--suggest-fg);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

/* Inline advisory chip — "AI picked", "Suggested for you", etc. */
.hint-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--suggest-bg);
  color: var(--suggest-fg);
  border-radius: 999px;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

/* "Just changed" flash — applied for 1.5s after a rewrite lands.
   Add `.just-changed` to the affected element; remove after the
   animation completes (or let it self-clear via JS on
   animationend). Whisper, not flash. */
@keyframes andante-just-changed {
  0%   { background-color: var(--whisper); }
  100% { background-color: transparent; }
}
.just-changed {
  animation: andante-just-changed 1.5s ease-out 1;
}
@media (prefers-reduced-motion: reduce) {
  .just-changed { animation: none; }
}

/* Hover row tint — list rows, itinerary day rows. Whisper, not
   highlight. Opt-in via the `is-tintable` class on the row so we
   don't blanket-affect every list element. */
.is-tintable:hover {
  background-color: var(--whisper);
  transition: background-color 220ms ease;
}

/* =====  HEADER  ================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  background: rgba(244, 239, 230, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }

.site-nav {
  display: flex; align-items: center; gap: 28px;
  font-size: 15px; font-weight: 500;
}
.site-nav a {
  color: var(--ink-soft);
  position: relative;
  padding: 6px 2px;
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--navy); }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--navy);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.2s ease;
}
.site-nav a:hover::after { transform: scaleX(1); }

/* Higher-specificity selector (0,2,1) beats `.site-nav a` (0,1,1) above
   so we can drop the `!important` flags that used to live here.
   Don't simplify back to `.site-nav__cta` — the generic nav-link rule
   would override `color` and `padding` and the button collapses. */
.site-nav a.site-nav__cta {
  background: var(--aubergine); color: var(--ai-lavender-hi);
  padding: 10px 18px; border-radius: 999px;
  font-size: 14px;
}
.site-nav a.site-nav__cta:hover { background: var(--plum-royal); color: var(--ai-lavender-hi); }
.site-nav a.site-nav__cta::after { display: none; }

/* Header language switcher — small mono links, sits inline with nav.
   Same code-typography as the AI badge in the wordmark so the switcher
   reads as part of the brand chrome. */
/* =====  LANGUAGE SWITCHER  ============================================
   Flag-led dropdown sitting in the header nav.

   Trigger: minimal — flag (22×16) + chevron only. The flag carries the
   meaning; locale code is sr-only for screen readers. Hover/open state
   adds a faint navy tint pill.

   Menu: paper-soft 14px-radius card, soft drop shadow, opens with a
   180ms ease-out fade + scale-from-top-right (Apple flavour). Visibility
   is pure-CSS (opacity + visibility transitions), no [hidden] toggle —
   the .is-open class on the wrapper drives everything.

   Active locale: navy + 600 weight + a 5px terracotta dot indicator
   on the right edge — reads "you are here" without a heavy bg fill. */
.lang-switcher {
  position: relative;
  display: inline-block;
}

.lang-switcher__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px 7px 8px;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink);
  transition: background 160ms ease;
}
.lang-switcher__trigger:hover,
.lang-switcher.is-open .lang-switcher__trigger {
  background: rgba(29, 52, 100, 0.06);
}
.lang-switcher__trigger:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.lang-switcher__flag {
  width: 22px; height: 16px;
  border-radius: 3px;
  flex-shrink: 0;
  display: block;
  /* hairline so the lighter flags (Spain, Italy) don't blend into paper */
  box-shadow: inset 0 0 0 0.5px rgba(31, 34, 40, 0.16);
}

/* Trigger code is sr-only — flag carries the meaning visually. */
.lang-switcher__code {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.lang-switcher__chevron {
  width: 10px; height: 10px;
  color: var(--ink-soft);
  flex-shrink: 0;
  transition: transform 200ms ease, color 160ms ease;
}
.lang-switcher.is-open .lang-switcher__chevron {
  transform: rotate(180deg);
  color: var(--ink);
}

/* ---- Menu ---------------------------------------------------------- */
.lang-switcher__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  margin: 0;
  padding: 6px;
  background: var(--paper-soft);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  box-shadow:
    0 1px 2px rgba(31, 34, 40, 0.04),
    0 12px 32px rgba(31, 34, 40, 0.10);
  list-style: none;
  min-width: 192px;
  z-index: 100;
  /* Closed: invisible + slightly lifted up + scaled in */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.97);
  transform-origin: top right;
  transition:
    opacity     180ms ease-out,
    transform   180ms ease-out,
    visibility  0s linear 180ms;        /* delay visibility on close */
}
.lang-switcher.is-open .lang-switcher__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition:
    opacity     180ms ease-out,
    transform   180ms ease-out,
    visibility  0s linear 0s;            /* visible immediately on open */
}

.lang-switcher__menu li { margin: 0; position: relative; }
.lang-switcher__menu a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-radius: 9px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  transition: background 140ms ease, color 140ms ease;
}
.lang-switcher__menu a::after { display: none; }   /* override .site-nav a underline */
.lang-switcher__menu a:hover {
  background: rgba(29, 52, 100, 0.05);
  color: var(--navy);
}
.lang-switcher__menu li[aria-selected="true"] a {
  color: var(--navy);
  font-weight: 600;
  padding-right: 32px;     /* room for the indicator dot */
}
/* Terracotta dot — "you are here" without a heavy bg. */
.lang-switcher__menu li[aria-selected="true"] a::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 5px; height: 5px;
  margin-top: -2.5px;
  border-radius: 999px;
  background: var(--terracotta);
}

.lang-switcher__name { flex: 1; }
.lang-switcher__short { display: none; }   /* flag does the work */

@media (max-width: 720px) {
  /* Drop the header switcher on narrow screens (footer one still works). */
  .lang-switcher { display: none; }
}

@media (max-width: 640px) {
  .site-nav a:not(.site-nav__cta) { display: none; }
}

/* =====  HERO  =================================================== */
.hero {
  position: relative;
  min-height: clamp(480px, 72vh, 720px);
  display: flex; align-items: center;
  padding: 56px var(--gutter) 72px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(
    170deg,
    var(--paper)      0%,
    #F9EFE8           45%,
    #F5EAEF           100%
  );
}

/* Decorative passport-stamp ink mark — anchored bottom-right of the
   hero, rotated, low opacity, navy. Brings the postcard/passport vibe
   without crowding the type. Hidden on narrow viewports. */
.hero__stamp {
  position: absolute;
  bottom: clamp(40px, 6vw, 72px);
  right:  clamp(24px, 5vw, 64px);
  z-index: -1;
  width: clamp(140px, 16vw, 200px);
  height: auto;
  color: var(--navy);
  opacity: 0.22;
  pointer-events: none;
}
@media (max-width: 720px) {
  .hero__stamp { display: none; }
}

/* New travel ephemera — vintage luggage tag at the bottom-left, opposite
   the passport stamp. Different color (terracotta) and different rotation
   from the passport so the two read as a layered collage of ephemera, not
   matched corners. Same visibility rules: hidden on narrow viewports
   where it would crowd the headline. */
.hero__luggage-tag {
  position: absolute;
  bottom: clamp(28px, 5vw, 60px);
  left:   clamp(20px, 4vw, 56px);
  z-index: -1;
  width: clamp(96px, 11vw, 144px);
  height: auto;
  color: var(--terracotta);
  opacity: 0.20;
  pointer-events: none;
  transform: rotate(-8deg);          /* tag-like tilt — opposite direction
                                          from the passport's -13° */
}
@media (max-width: 720px) {
  .hero__luggage-tag { display: none; }
}

/* Hero Polaroid — vintage instant photo that swaps with each rotator
   phrase. Position + tilt vary per phrase via CSS custom properties
   (--polaroid-top / --polaroid-left / --polaroid-right / --polaroid-rot)
   set inline by headline.js, so each photo lands on a DIFFERENT side
   of the text — slots alternate left/right with varied tilts for a
   "scattered on the desk" feel.

   For each phrase, JS sets EITHER --polaroid-left OR --polaroid-right
   to a value; the other gets 'auto'. CSS reads both via var() so the
   absolute-positioning anchor flips between left and right naturally.

   Layout strategy across viewports:
     • SHOW AT ALL SIZES — width clamps from 110px (mobile) → 260px
       (desktop) so it never disappears. The Polaroid is part of the
       hero promise, not chrome to hide.
     • Z-STACK — Polaroid at z-index: 1, hero text at z-index: 5
       (set on .hero__content). Any text-vs-polaroid overlap puts
       the text on TOP of the photo, which keeps reading legible
       because text has its own solid color (navy/charcoal). Subtle
       text-shadow on the title adds a paper-tinted halo for the
       worst-case overlap.
     • SLIGHT OVERLAP IS OK — at narrow viewports the polaroid edges
       may cross the text column. The 14px white frame around the
       photo means the only thing crossing text is the warm-paper
       margin, not the photographic content; legible.

   Per-phrase position is JS-driven via --polaroid-top + (--polaroid-left
   OR --polaroid-right). Anchors use vw/vh so positions scale with the
   viewport. NOTE: top/left/right are NOT transitioned — position
   changes happen instantly during the invisible fade-out gap, so the
   user sees a clean swap, not a slide across the screen. */
.hero__polaroid {
  /* Flex item inside .hero__title-row — sits beside the h1 only.
     Negative margin creates depth overlap; text (z:5) stays on top. */
  flex-shrink: 0;
  align-self: flex-start;
  width: clamp(140px, 18vw, 210px);
  margin-left: -20px;
  margin-top: 0.35em;
  /* HARD ASPECT LOCK */
  aspect-ratio: 1 / 1.2;
  z-index: 1;                         /* below the hero text */

  /* Polaroid frame — warm off-white. Flex column so the photo fills
     remaining height after caption + padding take their share, and the
     locked aspect ratio above stays intact. */
  display: flex;
  flex-direction: column;
  background: var(--paper-soft);
  padding: clamp(10px, 1.2vw, 14px) clamp(10px, 1.2vw, 14px) clamp(20px, 2.4vw, 32px) clamp(10px, 1.2vw, 14px);
  border-radius: 1px;
  box-shadow:
    0 1px 2px rgba(31, 34, 40, 0.10),
    0 12px 28px rgba(31, 34, 40, 0.18);

  /* Casual tilt; initial state nudged down + scaled-down so .is-visible
     reads as "dropping in". The rotation comes from --polaroid-rot
     which JS sets per-phrase. */
  transform: rotate(var(--polaroid-rot, -3deg)) translate(0px, 8px) scale(0.97);
  transform-origin: 60% 30%;
  opacity: 0;
  transition:
    opacity   0.55s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.70s cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: auto;
  user-select: none;
}
/* Left-side variant: polaroid appears before the h1 in flex order,
   negative right margin creates the overlap into the text's left edge. */
.hero__polaroid.is-left {
  order: -1;
  margin-left: 0;
  margin-right: -20px;
}
@media (max-width: 600px) {
  .hero__polaroid.is-left {
    margin-left: 0;
    margin-right: -24px;
  }
}

.hero__polaroid.is-visible {
  opacity: 1;
  transform: rotate(var(--polaroid-rot, -3deg)) translate(0px, 0px) scale(1);
  transition-delay: 1.0s;
}
.hero__polaroid.is-visible:hover {
  transform: rotate(var(--polaroid-rot, -3deg)) translate(6px, -16px) scale(1);
  transition: transform 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.22s ease;
  transition-delay: 0s;
  box-shadow:
    0 2px 4px rgba(31, 34, 40, 0.08),
    0 18px 36px rgba(31, 34, 40, 0.20);
  z-index: 6;
  cursor: default;
}

.hero__polaroid-photo {
  /* Photo fills the available flex space inside the polaroid container.
     flex-basis: 0 is critical — it tells the flex algorithm to ignore
     the image's intrinsic height entirely and distribute space based
     purely on flex-grow. With flex-basis: auto, each photo contributes
     its own natural height as its "preferred size" before grow/shrink
     runs, so a 800×533 landscape and a 800×1200 portrait produce
     different photo-area heights at the same viewport width even though
     the container is aspect-ratio-locked. Setting basis: 0 + min-height: 0
     makes all polaroids render at identical dimensions; object-fit: cover
     handles the per-photo crop. */
  width: 100%;
  flex: 1 1 0;
  min-height: 0;
  object-fit: cover;
  display: block;
  background: var(--rule);
}

.hero__polaroid-caption {
  flex: 0 0 auto;          /* fixed height — the polaroid's locked aspect
                              gives photo whatever's left after this. */
  margin-top: clamp(6px, 0.8vw, 12px);
  /* min-height guarantees the white chin always reads as a Polaroid —
     below ~28px the handwritten text cramps and the bottom strip
     loses its identity. The bottom padding on .hero__polaroid already
     adds 20–32px of white space below this element; combined they
     produce the classic thick-chin look at every viewport width. */
  min-height: 28px;
  text-align: center;
  /* Covered By Your Grace — Google Font, handwritten/marker style.
     Reads as if the caption were scribbled on the photo's bottom strip
     in pen. Falls back to Instrument Serif italic if the webfont fails
     to load. */
  font-family: "Covered By Your Grace", var(--font-display);
  font-style: normal;
  font-weight: 400;
  /* Handwritten fonts read smaller than serifs at the same px size,
     so bump the scale +2px relative to the previous serif italic. */
  font-size: clamp(13px, 1.3vw, 17px);
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: 0;
}

@media (max-width: 600px) {
  .hero {
    padding-top: 32px;
    padding-bottom: 48px;
  }
  .hero__title-row {
    padding: 0 clamp(12px, 3vw, 20px);
    margin-bottom: 16px;
  }
  .hero__title {
    text-align: center;
  }
  .hero__bottom {
    padding: 0 clamp(16px, 4vw, 24px);
  }
  .hero__polaroid {
    width: clamp(110px, 32vw, 150px);
    margin-left: -24px;
    margin-top: 0.2em;
    padding: 7px 7px 16px 7px;
  }
  .hero__polaroid-caption {
    margin-top: 3px;
    font-size: 11px;
    min-height: 20px;
  }
}

/* Reduced motion — skip the slide+scale, only opacity moves.
   Rotation still varies per phrase (it's a static property, not motion). */
@media (prefers-reduced-motion: reduce) {
  .hero__polaroid {
    transform: rotate(var(--polaroid-rot, -3deg));
  }
  .hero__polaroid.is-visible {
    transform: rotate(var(--polaroid-rot, -3deg));
  }
}

/* Right-align the title text when the polaroid sits on the right so the
   text always ends flush against the photo regardless of phrase length.
   Desktop only — on mobile the row is full-width so centering reads better. */
@media (min-width: 601px) {
  .hero__title-row:has(.hero__polaroid:not(.is-left)) .hero__title {
    text-align: right;
  }
}

/* Light terracotta/plum blobs — subtle warmth on paper background. */
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% -20% -10%;
  z-index: -2;
  background:
    radial-gradient(ellipse 55% 45% at 14% 22%, rgba(200, 85, 59, 0.09), transparent 60%),
    radial-gradient(ellipse 45% 40% at 10% 24%, rgba(255, 216, 154, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 50% at 82% 72%, rgba(123, 61, 138, 0.07), transparent 60%),
    radial-gradient(ellipse 50% 42% at 80% 74%, rgba(183, 171, 215, 0.09), transparent 55%);
  pointer-events: none;
}

.hero__map {
  position: absolute; inset: 0;
  z-index: -1;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.hero__map svg { width: 100%; height: 100%; }

/* Stage — full-width centering wrapper only; no max-width here so
   the two child sections can independently choose their own widths. */
.hero__stage {
  width: 100%;
  position: relative;
  z-index: 2;
}

/* Title row — width is set inline by JS to bottomSection.offsetWidth × 1.2
   (default). Expands beyond that only when a phrase needs > 4 total lines,
   just enough to reach 3. CSS value is the fallback before JS runs. */
.hero__title-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 720px;
  margin: 0 auto 20px;
  padding: 0 clamp(16px, 2.5vw, 36px);
}

/* Bottom section — curiosity card + email signup.
   Narrower max-width + more side padding (Padding B) makes copy
   feel like an intimate column rather than wall-to-wall text. */
.hero__bottom {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  text-align: center;
}

.hero__copy-card {
  margin-bottom: 16px;
  text-align: center;
}

.hero__title {
  /* Fills the row; JS controls the row's max-width, title follows. */
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 5;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 5.2vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--charcoal);
  text-shadow:
    0 0 8px rgba(244, 239, 230, 0.85),
    0 0 18px rgba(244, 239, 230, 0.45);
  /* Dynamic safe zone: --hero-line-count is set by headline.js to
     1 (prefix) + N rotator lines, LOCKED to the worst-case phrase at
     load (and on resize) by lockHeroGeometryToMaxPhrase(). Floor of 2
     lines (1 prefix + 1 rotator) is the smallest the title can ever
     need; the lock pushes the actual var higher when phrases wrap.
     The 0.6s transition catches resize-driven height changes
     smoothly; per-phrase swaps don't change the height because of
     the lock. */
  --hero-line-count: 2;
  min-height: calc(1.02em * max(2, var(--hero-line-count)));
  transition: min-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero__title-prefix {
  display: block;
  /* Shrink-to-fit so the highlight ::before below only covers the text,
     not the full h1 width. Centered within the h1 via margin:auto since
     the parent's text-align doesn't center a block-level child. */
  width: fit-content;
  margin: 0 auto;
  padding: 0 0 0.05em;
  border-radius: 3px;
  /* Italic — the prefix carries the editorial "voice" now; the rotator
     phrase is regular for easier reading. */
  font-style: italic;
  /* z-stack: prefix paints above the rotator (z-index 2 vs rotator
     line's 0), and isolation contains the highlight ::before to
     this element's stacking context only. */
  position: relative;
  z-index: 2;
  isolation: isolate;
  /* Enter animation — starts hidden, revealed when JS adds
     .is-revealed to .hero__title. Fires at delay 0s so the prefix
     arrives just before the rotator phrase (which delays 0.1s). */
  opacity: 0;
  transform: translateY(0.18em);
  transition:
    opacity   0.55s cubic-bezier(0.16, 1, 0.3, 1) 0s,
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0s;
}
.hero__title.is-revealed .hero__title-prefix {
  opacity: 1;
  transform: translateY(0);
}
.hero__title-prefix::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(244, 239, 230, 0.6);
  border-radius: 3px;
  z-index: -1;
  pointer-events: none;
}
.hero__title em {
  font-style: italic;
  color: var(--navy);
  font-weight: 500;
}

/* Headline rotator — italic navy phrase that swaps through 5 feature
   lines. Two layered backgrounds animate INDEPENDENTLY (different
   durations + delays), driven by per-layer custom properties:

     • HIGHLIGHT (--rotator-highlight-w) — cream/paper wash behind the
       text. Same color as the page background so it masks the dot-map
       noise underneath, giving the text a clean reading surface. Sweeps
       in slowly (2.4s ease-out) at "user reading speed" — the eye reads
       the phrase as the marker fills in beneath it.
     • UNDERLINE (--rotator-underline-w) — thin navy stroke positioned
       at the lowercase x-height baseline (NOT below descenders), cutting
       through any 'p'/'g'/'y' descenders for an editorial through-line
       look. Sweeps in faster (0.7s ease-out) and starts 1.5s after the
       highlight, so it lands as a confident finishing stroke once the
       reader has had time with the phrase.

   `box-decoration-break: clone` makes each wrapped line carry its own
   bg fragment so the marker re-draws on each line of multi-line
   phrases. `@property` registration is required so the CSS engine knows
   to interpolate the percentage values smoothly (without it, custom
   properties transition discretely). */

/* The .rotator is a CONTAINER. The actual text + highlight + underline
   live in per-line `.rotator__line` spans that headline.js generates
   after measuring where the text wraps. Per-line spans give us:
     • True sequential reveal across lines (each span has its own
       --rotator-line-delay so line 2 starts after line 1 completes)
     • Real ::before/::after pseudo-elements with explicit z-index so
       the underline always sits ABOVE the highlight, never washed out.
   Animation strategy: `transform: scaleX(0→1)` on the pseudos —
   GPU-accelerated, no `@property` registration needed, no custom-
   property interpolation quirks. The inline `--rotator-line-delay`
   on each span flows into both the highlight + underline animation
   delays via var(). */
.rotator {
  display: inline;
  white-space: normal;
  /* Regular weight — the prefix is italic now (the voice); the rotator
     stays upright for legibility, since this is the part that actually
     changes and needs to be read. */
  font-style: normal;
  font-weight: 500;
  color: var(--navy);
}

.rotator__line {
  display: inline-block;
  position: relative;
  /* Fresh stacking context contained to this line. */
  isolation: isolate;
  vertical-align: baseline;
  /* Horizontal padding ZERO on purpose: any horizontal padding here adds
     extra width to each inline-block, which can push long phrases past
     the wrap point measured on the raw text and cause the rendered
     layout to disagree with the line-split. Vertical padding on the
     bottom is kept so the highlight/underline have a hair of room
     below the descenders. Highlight ::before still extends to inset:0
     so it covers the visible text area exactly. */
  padding: 0 0 0.05em;
  border-radius: 3px;
  /* Hard cap so an inline-block can never overflow its parent (would
     break the visual line layout for an over-tight phrase + viewport). */
  max-width: 100%;
}

/* Z-STACK — bottom to top:
     ::before (highlight)    z-index: 0  (cream wash, lowest)
     ::after  (underline)    z-index: 1  (navy/terracotta stroke, middle)
     .rotator__line__text    z-index: 2  (text, on top, never covered)
   Wrapping the text in an inner span is the only way to put it ABOVE
   the ::after pseudo — pseudos are always treated as last child in
   DOM order, so without an explicit-z text wrapper, ::after paints
   over the text. */

/* Animation rebuild (clean slate):
     • No more "draw across" scaleX. The highlight + underline fade in
       at FULL width via opacity. Calmer, less mechanical.
     • Text fades in WITH a small upward slide (translateY 0.18em → 0).
       The slide is subtle — enough to register as motion but not as a
       distracting reveal effect.
     • Single shared transition duration for everything (~0.55s on IN,
       ~0.32s on OUT). No per-line stagger — all lines appear together.
     • Z-stack preserved: highlight (z:0) → underline (z:1) → text (z:2). */

.rotator__line::before {
  /* HIGHLIGHT — cream/paper wash behind the text on light surface. */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(244, 239, 230, 0.6);
  border-radius: 3px;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.32s cubic-bezier(0.4, 0, 0.6, 1);
}

.rotator__line::after {
  /* UNDERLINE — navy-soft (the brand's secondary navy, #2D4885) at ~35%
     transparency. Same 0.08em stroke; lower alpha softens the mark to
     a watercolor-pass feel rather than a confident editorial rule.
     `bottom: 0.14em` lands the stroke just below the lowercase
     baseline (a touch above the descender line).

     Animation: draws left-to-right via `transform: scaleX(0→1)` on
     entry, ~0.85s ease-out so the stroke decelerates into place
     (feels like a confident pen pass, not a mechanical sweep).
     Each line waits for the prior to finish via `--rotator-line-delay`
     (set inline by headline.js per span), so a multi-line phrase
     reads as a forward, line-by-line gesture rather than a
     simultaneous chord. */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.14em;
  height: 0.08em;
  background: rgba(45, 72, 133, 0.35);
  border-radius: 0.04em;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition:
    opacity   0.32s cubic-bezier(0.4, 0, 0.6, 1),
    transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.rotator__line__text {
  /* TEXT — on top of the stack. Fades + subtle upward slide on entry.
     OUT direction snaps faster than IN so the next phrase doesn't have
     to wait long. */
  position: relative;
  z-index: 2;
  display: inline-block;
  /* Defensive: explicitly upright. The parent .rotator already sets
     font-style: normal but `<em>` defaults to italic — pinning here
     ensures the rotator phrase always reads as the regular cut even
     if some inherited rule tries to italicize. */
  font-style: normal;
  opacity: 0;
  transform: translateY(0.18em);
  transition:
    opacity   0.32s cubic-bezier(0.4, 0, 0.6, 1),
    transform 0.32s cubic-bezier(0.4, 0, 0.6, 1);
}

/* IN state — text gets a longer, softer ease (lands smoothly at rest). */
.rotator.is-revealed .rotator__line::before {
  opacity: 1;
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
}

/* Underline IN — builds in AFTER the text has settled. Two layered
   transitions:
     • opacity 0.4s — quick fade so the stroke doesn't flicker in
     • transform scaleX(0→1) over 1.0s — slow, deliberate writing
       gesture so the eye registers the build-in
   Both share a 0.4s base delay so the text reads first, THEN the
   underline draws under it like a confident pen pass. The per-line
   `--rotator-line-delay` (0.7s × line index, set inline by
   headline.js) stacks on top so multi-line phrases cascade
   forward, line by line. */
.rotator.is-revealed .rotator__line::after {
  opacity: 1;
  transform: scaleX(1);
  transition:
    opacity   0.40s cubic-bezier(0.4, 0, 0.6, 1) calc(0.40s + var(--rotator-line-delay, 0s)),
    transform 1.00s cubic-bezier(0.22, 0.61, 0.36, 1) calc(0.40s + var(--rotator-line-delay, 0s));
}

.rotator.is-revealed .rotator__line__text {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity   0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

@media (prefers-reduced-motion: reduce) {
  .rotator__line::before,
  .rotator__line::after,
  .rotator__line__text,
  .rotator.is-revealed .rotator__line::before,
  .rotator.is-revealed .rotator__line::after,
  .rotator.is-revealed .rotator__line__text,
  .hero__title-prefix,
  .hero__title.is-revealed .hero__title-prefix {
    transition: none;
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__copy-card {
  display: inline-block;
  max-width: 620px;
  margin: 0 auto 32px;
  /* Default padding is the "standard bigger" — a tier larger than
     before (28px → was 22px). When the rotator above wraps to its
     max line count, .hero--rotator-tall on the parent hero shrinks
     this padding so the card visually compresses and the page
     doesn't grow uncomfortably tall. Both directions transition
     smoothly via the property below. */
  padding: 28px clamp(24px, 3.4vw, 40px);
  background: rgba(244, 239, 230, 0.82);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(29, 52, 100, 0.06);
  box-shadow: 0 1px 2px rgba(29, 52, 100, 0.04), 0 12px 36px rgba(29, 52, 100, 0.06);
  /* Smooth size transitions so any rotator-driven height changes
     ripple gracefully through the layout below. */
  transition: padding 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              max-width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Compact mode — applied by JS to the .hero element when the rotator
   wraps to 3+ lines. Subtler padding so the card doesn't add to the
   visual height when the title above is already tall. */
.hero--rotator-tall .hero__copy-card {
  padding: 20px clamp(20px, 3vw, 36px);
}

/* The sub sits above .hero__detail (which is charcoal/ink). To keep
   the sub from blending in with the prose, it returns to navy with
   a terracotta accent on `curiosity` — and a slightly larger / tighter
   set so it reads as a discrete editorial line, not body. */
.hero__sub {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;                   /* Instrument Serif ships at 400; weight set
                                          for browser fallback synthesis only */
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.3;
  color: var(--navy);
  max-width: 580px;
  margin: 0 auto 12px;
}
.hero__sub em { color: var(--terracotta); font-style: italic; }
.hero__sub-pop {
  color: var(--terracotta);
  font-style: italic;
}
.hero__detail {
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 540px;
  margin: 0 auto;
}

.hero__legal {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--slate);
  text-align: center;
}

/* =====  MANIFESTO BAND  =========================================
   Paper-soft block framed top + bottom with diagonal navy/paper
   awning stripes — the Italian café reference, kept on-brand. */
.manifesto {
  position: relative;
  padding: clamp(80px, 12vw, 140px) var(--gutter);
  text-align: center;
  /* Paper-soft — light background keeps the manifesto on-brand.
     Awning stripes in navy/paper frame the block top and bottom. */
  background: linear-gradient(180deg, var(--paper-soft) 0%, #FBF5F0 50%, var(--paper-soft) 100%);
  isolation: isolate;
  /* Hard guarantee: block fills viewport width regardless of parent. */
  width: 100%;
  box-sizing: border-box;
}
.manifesto::before,
.manifesto::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 14px;
  /* Navy/paper awning stripes — the Italian café reference */
  background: repeating-linear-gradient(
    -45deg,
    var(--navy)  0,
    var(--navy)  18px,
    var(--paper) 18px,
    var(--paper) 36px
  );
  z-index: 1;
}
.manifesto::before { top: 0; }
.manifesto::after  { bottom: 0; }

.manifesto__line {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 54px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--navy);
  max-width: 22ch;
  margin: 0 auto 22px;
}
.manifesto__line em {
  color: var(--terracotta);
  font-style: italic;
}
.manifesto__detail {
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.6;
  color: var(--ink-soft);
  opacity: 0.72;
  max-width: 50ch;
  margin: 0 auto;
}

/* =====  WAITLIST  =============================================== */
.waitlist {
  display: flex;
  gap: 8px;
  background: var(--paper-soft);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 6px;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.waitlist:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(29, 52, 100, 0.18), var(--shadow-card);
}
.waitlist input[type="email"] {
  flex: 1;
  border: 0; outline: 0;
  background: transparent;
  padding: 12px 18px;
  font: inherit; font-size: 16px;
  color: var(--navy);
  min-width: 0;
}
.waitlist input::placeholder { color: var(--slate); }

.waitlist--center { margin: 32px auto 0; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; border-radius: 999px;
  padding: 12px 22px;
  font-size: 15px; font-weight: 600;
  transition: transform 0.12s ease, background 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--navy);
  color: var(--paper);
}
.btn--primary:hover { background: var(--navy-soft); }
.btn--primary:disabled { opacity: 0.55; cursor: progress; }

.btn__arrow {
  width: 16px; height: 16px;
  transition: transform 0.15s ease;
}
.btn:hover .btn__arrow { transform: translateX(2px); }

.waitlist__status {
  margin: 14px auto 0;
  min-height: 22px;
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
}
.waitlist__status[data-state="error"] { color: var(--terracotta); }
.waitlist__status[data-state="ok"]    { color: var(--moss); }

/* =====  Generic section bits  ==================================== */
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  max-width: 18ch;
  color: var(--navy);
}
/* Clean terracotta→plum gradient bar above section titles. */
.section-title::before {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  border-radius: 99px;
  margin-bottom: 18px;
  background: linear-gradient(90deg, var(--terracotta) 0%, var(--plum-royal) 100%);
}
.section-title--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title--center::before { display: block; margin-left: auto; margin-right: auto; }

/* =====  WEDGE: three panels  ==================================== */
.wedge {
  padding: var(--section-pad) var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
}
.wedge .section-title {
  margin: 0 auto 64px;
  text-align: center;
  max-width: 22ch;
}
.wedge .section-title::before { margin-left: auto; margin-right: auto; }

.wedge__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 44px);
}
@media (max-width: 880px) {
  .wedge__grid { grid-template-columns: 1fr; }
}

.wedge__panel {
  background: var(--paper-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.25s ease;
}
.wedge__panel.is-revealed {
  opacity: 1; transform: translateY(0);
}
.wedge__panel:hover {
  box-shadow: 0 1px 2px rgba(29, 52, 100, 0.06), 0 18px 50px rgba(29, 52, 100, 0.12);
}

.wedge__icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  background: rgba(29, 52, 100, 0.10);
  border-radius: var(--radius-lg);
  margin-bottom: 22px;
  color: var(--navy);
}
.wedge__icon svg { width: 36px; height: 36px; }

/* Middle panel: plum-tinted dawn gradient — signals "this is the AI
   moat" without being loud. The ai-lavender-hi blush background + the
   plum icon distinguishes it from the two navy flanking panels. */
.wedge__panel:nth-child(2) {
  background: linear-gradient(
    155deg,
    var(--paper-soft) 0%,
    #F5EAF2           60%,
    #F0E4EF           100%
  );
  border-color: rgba(79, 44, 68, 0.12);
}
.wedge__panel:nth-child(2) .wedge__icon {
  background: rgba(123, 61, 138, 0.10);
  color: var(--plum-royal);
}
.wedge__panel:nth-child(2) .wedge__heading-soft {
  color: var(--plum-deep);
}

.wedge__heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.1;
  margin: 0 0 14px;
  color: var(--navy);
}
.wedge__heading-soft {
  color: var(--ink-soft);
  font-style: italic;
}

.wedge__body {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
}

/* =====  Mockup section  ========================================= */
.mockup {
  padding: var(--section-pad) var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
@media (max-width: 880px) {
  .mockup { grid-template-columns: 1fr; text-align: center; }
  .mockup .section-title { margin-left: auto; margin-right: auto; }
}

.mockup__lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 28px;
}
@media (max-width: 880px) { .mockup__lede { margin-left: auto; margin-right: auto; } }

.mockup__bullets {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 12px;
  font-size: 15px;
  color: var(--ink-soft);
}
@media (max-width: 880px) { .mockup__bullets { justify-content: center; } }

.mockup__bullets li { display: flex; align-items: center; gap: 12px; }
@media (max-width: 880px) { .mockup__bullets li { justify-content: center; } }

.dot { width: 10px; height: 10px; border-radius: 999px; flex: 0 0 auto; }
.dot--planned  { background: var(--navy); }
.dot--progress { background: var(--moss); }
.dot--done     { background: var(--navy); opacity: 0.35; }
.dot--loved    { background: var(--terracotta); }

.mockup__phone {
  display: flex; justify-content: center;
}
.phone-frame {
  width: 100%;
  max-width: 320px;
  height: auto;
  /* Twilight shadow: navy primary + plum soft secondary = depth without
     pure-black shadow. Matches the --gradient-twilight color ramp. */
  filter:
    drop-shadow(0 30px 60px rgba(10, 34, 68, 0.22))
    drop-shadow(0 8px 20px rgba(79, 44, 68, 0.12));
}

/* =====  Differ table  =========================================== */
.differ {
  padding: var(--section-pad) var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}
.differ .section-title { margin: 0 auto 18px; }
.differ .section-title::before { margin-left: auto; margin-right: auto; }

.differ__lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0 auto 56px;
}

.differ__table {
  text-align: left;
  background: var(--paper-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.differ__row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  border-top: 1px solid var(--hairline);
}
.differ__row:first-child { border-top: 0; }

.differ__cell {
  padding: 18px 20px;
  font-size: 14px;
  color: var(--ink-soft);
  display: flex; align-items: center;
}
.differ__cell--label {
  font-weight: 500;
  color: var(--navy);
}
.differ__cell--us {
  /* Subtle dawn-plum tint on the "us" column — reads as "this is the
     Andante column" without competing with the row data. */
  background: linear-gradient(
    180deg,
    rgba(245, 234, 242, 0.60) 0%,
    rgba(240, 228, 239, 0.40) 100%
  );
  color: var(--navy);
  font-weight: 600;
}
.differ__row--head .differ__cell {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--navy);
  background: var(--paper-soft);
  padding-top: 22px; padding-bottom: 22px;
}
.differ__row--head .differ__cell--us {
  color: var(--plum-deep);
  background: linear-gradient(
    180deg,
    #F5EAF2 0%,
    #F0E4EF 100%
  );
}

.differ__cell[data-state="yes"]::before {
  content: ""; display: inline-block;
  width: 14px; height: 14px;
  margin-right: 10px;
  background: var(--terracotta);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7' stroke='black' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7' stroke='black' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.differ__cell[data-state="no"]::before {
  content: ""; display: inline-block;
  width: 14px; height: 14px; margin-right: 10px;
  background: var(--slate);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6L6 18' stroke='black' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6L6 18' stroke='black' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: 0.55;
}
.differ__cell[data-state="partial"]::before {
  content: ""; display: inline-block;
  width: 14px; height: 14px; margin-right: 10px;
  background: var(--slate);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4' fill='black'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4' fill='black'/%3E%3C/svg%3E") center/contain no-repeat;
}
.differ__row--head .differ__cell::before { display: none; }

.differ__kicker {
  margin: 48px auto 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--ink-soft);
  max-width: 38ch;
}
.differ__kicker strong {
  color: var(--navy);
  font-style: normal;
  font-weight: 500;
}

@media (max-width: 720px) {
  .differ__row { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .differ__cell { padding: 14px 12px; font-size: 13px; }
  .differ__row--head .differ__cell { font-size: 14px; }
}

/* =====  Join CTA section  ======================================= */
.join {
  padding: var(--section-pad) var(--gutter);
  background: linear-gradient(
    180deg,
    var(--paper-soft) 0%,
    #F7EDF4           60%,
    #F0E4EF           100%
  );
  border-top: 1px solid var(--rule);
}
.join__inner {
  max-width: 720px; margin: 0 auto; text-align: center;
}
.join__sub {
  margin: 0 auto;
  max-width: 50ch;
  font-size: 17px;
  color: var(--ink-soft);
}

/* =====  FOOTER  =================================================
   Charcoal dark surface — uses sky for primary type, terracotta-soft
   for headings/accents (navy-on-charcoal would muddy). */
.site-footer {
  /* Dusk gradient: charcoal → navy-deep → aubergine-dark. The plum
     base colour at bottom anchors the page and echoes the wordmark AI
     plum in the footer lockup above it. */
  background: linear-gradient(
    160deg,
    var(--charcoal)  0%,
    var(--navy-deep) 55%,
    #2C1428          100%
  );
  color: var(--sky);
  padding: 64px var(--gutter) 32px;
}
.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 720px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

.site-footer .andante-wordmark {
  color: var(--sky);
}
.site-footer .andante-wordmark .name { color: var(--sky); }
.site-footer .andante-wordmark .ai { color: var(--plum-royal-soft); }
/* TM inherits from .ai (currentColor on the hairline borders) */

/* Footer brand wordmark — sized up for presence above the tagline.
   Scoped to .site-footer__brand so the inline copyright wordmark
   inside .site-footer__copy stays at --small (19px). */
.site-footer__brand .andante-wordmark {
  font-size: 44px;
}

.site-footer__tag {
  margin: 14px 0 0;
  color: var(--sky-soft);
  font-size: 14px;
  max-width: 28ch;
  opacity: 0.78;
}

.site-footer__col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--terracotta-soft);
  margin: 0 0 16px;
}
.site-footer__links {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 10px;
  font-size: 14px;
}
.site-footer__links a {
  color: var(--sky-soft);
  opacity: 0.85;
  transition: color 0.15s ease, opacity 0.15s ease;
}
.site-footer__links a:hover { color: var(--sky); opacity: 1; }

.badge-coming {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(155, 179, 217, 0.10);
  border: 1px solid rgba(155, 179, 217, 0.18);
  color: var(--sky-soft);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}
.badge-coming svg { width: 14px; height: 14px; }

/* Language switcher — text-only links, middot-separated, above copyright */
.site-footer__lang {
  max-width: var(--max-width);
  margin: 40px auto 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--slate-light);
}
.site-footer__lang a {
  color: var(--slate-light);
  text-decoration: none;
  padding: 0 4px;
  transition: color 160ms ease;
}
.site-footer__lang a:hover { color: var(--sky); }
.site-footer__lang-active {
  color: var(--sky);
  font-weight: 600;
  padding: 0 4px;
}

.site-footer__copy {
  max-width: var(--max-width);
  margin: 16px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(155, 179, 217, 0.14);
  font-size: 12px;
  color: var(--slate-light);
  text-align: center;
}

/* =====  Reduce motion  =========================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .wedge__panel { opacity: 1; transform: none; }
}

/* ===== MOBILE IMPROVEMENTS ==========================================
   Better layout, typography, and spacing on phones.
   Rules cascade — later/narrower breakpoints build on wider ones.
   ==================================================================== */

/* ---- 640px: font scale + tighter rhythm --------------------------- */
@media (max-width: 640px) {
  body { font-size: 16px; }

  /* Title floor 36 → 30px at 375px reduces worst-case line wraps so the
     locked title height stays compact, keeping polaroid + title visually
     side-by-side without excessive dead space below the text. */
  .hero__title { font-size: clamp(36px, 9.5vw, 88px); }

  /* Wedge: tighter single-column padding */
  .wedge__panel { padding: 26px 22px; }
  .wedge__heading { font-size: 24px; }
  .wedge .section-title { margin-bottom: 40px; }

  /* Differ: tighter vertical rhythm around the table */
  .differ__lede { margin-bottom: 32px; }
  .differ__kicker { margin-top: 28px; }

  /* Phone mockup: a touch narrower so it doesn't dominate solo-column */
  .phone-frame { max-width: 260px; }
}

/* ---- 600px: differ — drop the Agencies column --------------------- */
@media (max-width: 600px) {
  .differ__row { grid-template-columns: 1.8fr 1fr 1fr; }
  /* Hide 4th cell (Agencies) in every row including the header */
  .differ__cell:last-child { display: none; }
}

/* ---- 480px: stacked waitlist + 2-col differ + header + footer ----- */
@media (max-width: 480px) {
  /* Header: shrink wordmark so logo + CTA sit comfortably on one line */
  .site-header { padding-top: 14px; padding-bottom: 14px; }
  .site-header .andante-wordmark { font-size: 30px; }
  .site-header .andante-wordmark .tm { display: none; }
  .site-nav a.site-nav__cta { padding: 8px 14px; font-size: 13px; }

  /* Waitlist: stack input above button — side-by-side at 375px leaves
     only ~100px for the text input, far too narrow. */
  .waitlist {
    flex-direction: column;
    border-radius: var(--radius-lg);
    padding: 8px;
    gap: 6px;
  }
  .waitlist input[type="email"] {
    padding: 12px 14px;
    border-radius: calc(var(--radius-lg) - 4px);
  }
  .waitlist .btn {
    width: 100%;
    justify-content: center;
    border-radius: calc(var(--radius-lg) - 4px);
    padding: 12px 16px;
  }

  /* Differ: drop Typical App column too — on a phone, a clean
     feature checklist (Feature | Andante AI) beats a 3-col comparison.
     The :last-child hide from the 600px rule already removed Agencies. */
  .differ__row { grid-template-columns: 1.8fr 1fr; }
  .differ__cell:nth-child(3) { display: none; }

  /* Footer: full single-column stack */
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__brand { grid-column: 1; }
}

/* ===================================================================== */

/* =====  Privacy page  =========================================== */
.privacy {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px var(--gutter) 100px;
}
.privacy h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  margin: 0 0 12px;
  color: var(--navy);
}
.privacy h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  margin: 36px 0 10px;
  color: var(--navy);
}
.privacy p, .privacy li { color: var(--ink-soft); }
.privacy a { color: var(--terracotta); text-decoration: underline; }

/* =================================================================
   LIQUID GLASS UI SYSTEM — 2026-05-05
   Architecture: ambient colour orbs (z-index -1) → frosted glass
   panels (backdrop-filter) → content → controls. Glass reads as
   glass only when something colourful sits behind it — each section
   injects its own warm/cool blob cluster, all at opacity ≤0.12 so
   the paper brand identity dominates and depth is felt, not seen.
   ================================================================= */

/* ---- Glass token supplement ------------------------------------- */
:root {
  --glass-strong:      rgba(251, 248, 242, 0.80);
  --glass-medium:      rgba(251, 248, 242, 0.64);
  --glass-light:       rgba(251, 248, 242, 0.46);
  --glass-border-hi:   rgba(255, 255, 255, 0.72);
  --glass-border-md:   rgba(255, 255, 255, 0.44);
  --glass-blur-sm:     saturate(180%) blur(12px);
  --glass-blur-md:     saturate(200%) blur(24px);
  --glass-blur-lg:     saturate(220%) blur(36px);
}

/* ---- Header — deepened glass ----------------------------------- */
.site-header {
  background: rgba(244, 239, 230, 0.76);
  backdrop-filter: saturate(200%) blur(28px);
  -webkit-backdrop-filter: saturate(200%) blur(28px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.40);
  box-shadow:
    inset 0 -1px 0 rgba(229, 222, 207, 0.28),
    0 2px 20px rgba(29, 52, 100, 0.04);
}
.site-header.is-scrolled {
  border-bottom-color: rgba(229, 222, 207, 0.60);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(229, 222, 207, 0.36),
    0 4px 32px rgba(29, 52, 100, 0.08);
}

/* .site-header--over-hero removed — header is always light paper glass */

/* ---- Language switcher — glass dropdown ----------------------- */
.lang-switcher__menu {
  background: rgba(251, 248, 242, 0.88);
  backdrop-filter: saturate(200%) blur(28px);
  -webkit-backdrop-filter: saturate(200%) blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 4px 16px rgba(29, 52, 100, 0.08),
    0 16px 48px rgba(29, 52, 100, 0.12),
    0 32px 64px rgba(29, 52, 100, 0.06);
}

/* ---- Hero floating feature chips ------------------------------ */
/* Minimal light glass pills that float between the copy card and the form.
   aria-hidden — decorative only, not read by assistive tech. */
.hero__chips {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 auto 16px;
  max-width: 520px;
}
.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(244, 239, 230, 0.85);
  border: 1px solid rgba(29, 52, 100, 0.10);
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
  user-select: none;
}
.hero__chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hero__chip-dot--terra { background: var(--terracotta-soft); }
.hero__chip-dot--plum  { background: var(--plum-royal-soft); }
.hero__chip-dot--navy  { background: var(--sky); }
@media (max-width: 480px) { .hero__chips { gap: 6px; } }

/* ---- Wedge section — ambient blobs + glass panels ------------- */
.wedge {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
/* Warm amber-left, cool plum-right, soft navy-bottom */
.wedge::before {
  content: "";
  position: absolute;
  top: -80px; bottom: -80px;
  left: 50%; right: auto;
  transform: translateX(-50%);
  width: 100vw;
  z-index: 0;
  background:
    radial-gradient(ellipse 52% 54% at 12% 36%, rgba(200, 85, 59, 0.11), transparent 58%),
    radial-gradient(ellipse 54% 50% at 86% 26%, rgba(123, 61, 138, 0.10), transparent 56%),
    radial-gradient(ellipse 58% 54% at 50% 92%, rgba(29, 52, 100, 0.08), transparent 60%);
  pointer-events: none;
}
.wedge__grid { position: relative; z-index: 1; }

/* Glass panel override */
.wedge__panel {
  background: rgba(251, 248, 242, 0.68);
  backdrop-filter: saturate(200%) blur(22px);
  -webkit-backdrop-filter: saturate(200%) blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.60);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.90),
    inset 0 -1px 0 rgba(29, 52, 100, 0.03),
    0 2px 4px rgba(29, 52, 100, 0.04),
    0 12px 40px rgba(29, 52, 100, 0.09),
    0 40px 72px rgba(29, 52, 100, 0.05);
  transition:
    opacity 0.7s ease,
    transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.28s ease;
}
.wedge__panel.is-revealed:hover {
  transform: translateY(-7px) scale(1.006);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(29, 52, 100, 0.04),
    0 4px 8px rgba(29, 52, 100, 0.06),
    0 24px 64px rgba(29, 52, 100, 0.14),
    0 60px 96px rgba(29, 52, 100, 0.07);
}
/* Middle (AI) panel: plum-tinted gradient glass */
.wedge__panel:nth-child(2) {
  background: linear-gradient(
    155deg,
    rgba(245, 234, 242, 0.90) 0%,
    #F0E0EF  50%,
    rgba(235, 214, 229, 0.70) 100%
  );
  border: 1px solid rgba(79, 44, 68, 0.15);
  box-shadow: 0 1px 2px rgba(79, 44, 68, 0.06), 0 8px 30px rgba(79, 44, 68, 0.10);
}
/* Icon containers: inner glass */
.wedge__icon {
  background: rgba(29, 52, 100, 0.07);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.64),
    0 2px 8px rgba(29, 52, 100, 0.06);
}
.wedge__panel:nth-child(2) .wedge__icon {
  background: rgba(123, 61, 138, 0.08);
}

/* ---- Mockup section — ambient blobs + phone glow -------------- */
.mockup {
  position: relative;
  isolation: isolate;
}
.mockup::before {
  content: "";
  position: absolute;
  top: -60px; bottom: -60px;
  left: 50%; right: auto;
  transform: translateX(-50%);
  width: 100vw;
  z-index: 0;
  background:
    radial-gradient(ellipse 54% 58% at 74% 44%, rgba(123, 61, 138, 0.11), transparent 58%),
    radial-gradient(ellipse 50% 48% at 18% 54%, rgba(29, 52, 100, 0.09), transparent 58%),
    radial-gradient(ellipse 44% 44% at 54% 14%, rgba(200, 85, 59, 0.07), transparent 55%);
  pointer-events: none;
}
.mockup__copy,
.mockup__phone { position: relative; z-index: 1; }

/* Ambient glow halo behind the phone */
.mockup__phone {
  position: relative;
}
.mockup__phone::before {
  content: "";
  position: absolute;
  inset: -50px;
  border-radius: 80px;
  background: radial-gradient(ellipse at 52% 50%,
    rgba(123, 61, 138, 0.18) 0%, transparent 65%);
  filter: blur(28px);
  z-index: 0;
  pointer-events: none;
}
.mockup__phone svg { position: relative; z-index: 1; }

/* Richer phone frame twilight shadow */
.phone-frame {
  filter:
    drop-shadow(0 44px 88px rgba(10, 34, 68, 0.30))
    drop-shadow(0 12px 32px rgba(79, 44, 68, 0.18))
    drop-shadow(0 2px 8px rgba(10, 34, 68, 0.14));
}

/* ---- Differ section — ambient blobs + glass table ------------- */
.differ {
  position: relative;
  isolation: isolate;
}
.differ::before {
  content: "";
  position: absolute;
  top: -60px; bottom: -60px;
  left: 50%; right: auto;
  transform: translateX(-50%);
  width: 100vw;
  z-index: 0;
  background:
    radial-gradient(ellipse 54% 48% at 58% 40%, rgba(79, 44, 68, 0.08), transparent 58%),
    radial-gradient(ellipse 48% 58% at 18% 58%, rgba(200, 85, 59, 0.07), transparent 56%),
    radial-gradient(ellipse 44% 50% at 82% 76%, rgba(29, 52, 100, 0.07), transparent 55%);
  pointer-events: none;
}
.differ .section-title,
.differ__lede,
.differ__table,
.differ__kicker { position: relative; z-index: 1; }

/* Glass table */
.differ__table {
  background: rgba(251, 248, 242, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.82),
    inset 0 -1px 0 rgba(29, 52, 100, 0.03),
    0 2px 4px rgba(29, 52, 100, 0.04),
    0 16px 48px rgba(29, 52, 100, 0.10),
    0 48px 80px rgba(29, 52, 100, 0.06);
}
/* Header row cells: slightly translucent */
.differ__row--head .differ__cell {
  background: rgba(251, 248, 242, 0.30);
}
.differ__row--head .differ__cell--us {
  background: rgba(245, 234, 242, 0.68);
}

/* ---- Join CTA — light ambient + standard inner layout ---------- */
.join {
  position: relative;
  isolation: isolate;
}
.join::before {
  content: "";
  position: absolute;
  inset: -40px;
  z-index: 0;
  background:
    radial-gradient(ellipse 58% 58% at 50% 50%, rgba(123, 61, 138, 0.08), transparent 60%),
    radial-gradient(ellipse 50% 48% at 18% 78%, rgba(200, 85, 59, 0.07), transparent 55%),
    radial-gradient(ellipse 52% 44% at 82% 20%, rgba(29, 52, 100, 0.06), transparent 55%);
  pointer-events: none;
}
.join__inner {
  position: relative;
  z-index: 1;
}

/* ---- Glass waitlist form (light surface — join section) ------- */
.waitlist {
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.90),
    0 2px 12px rgba(29, 52, 100, 0.07),
    0 8px 24px rgba(29, 52, 100, 0.04);
}
.waitlist:focus-within {
  border-color: rgba(29, 52, 100, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 0 0 4px rgba(29, 52, 100, 0.12),
    0 2px 12px rgba(29, 52, 100, 0.07),
    0 8px 24px rgba(29, 52, 100, 0.05);
}

/* Hero waitlist uses the standard light glass styles (no dark overrides needed) */

/* ---- Liquid glass primary button — aubergine plum ------------- */
.btn--primary {
  background: var(--aubergine);
  color: var(--ai-lavender-hi);
  box-shadow:
    inset 0 1px 0 rgba(235, 214, 229, 0.20),
    inset 0 -1px 0 rgba(0, 0, 0, 0.20),
    0 2px 8px rgba(79, 44, 68, 0.36),
    0 8px 24px rgba(79, 44, 68, 0.22);
  position: relative;
  overflow: hidden;
}
/* Top specular highlight — the "liquid" gloss. */
.btn--primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 44%;
  background: linear-gradient(
    180deg,
    rgba(235, 214, 229, 0.12) 0%,
    rgba(235, 214, 229, 0.03) 100%
  );
  border-radius: 999px 999px 0 0;
  pointer-events: none;
}
.btn--primary:hover {
  background: var(--plum-royal);
  box-shadow:
    inset 0 1px 0 rgba(235, 214, 229, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22),
    0 4px 12px rgba(123, 61, 138, 0.40),
    0 12px 36px rgba(123, 61, 138, 0.28);
}
.btn--primary:disabled {
  background: var(--aubergine);
  box-shadow: none;
}
/* Arrow inherits position; ensure it sits above the ::after glow. */
.btn__arrow { position: relative; z-index: 1; }
.btn__label { position: relative; z-index: 1; }

/* Section title gradient bar — subtle ambient glow */
.section-title::before {
  box-shadow: 0 0 12px rgba(200, 85, 59, 0.25);
}

/* =====  COMING SOON — APP ICON SECTION  =================================
   Centered dark surface between the waitlist CTA and the manifesto band.
   Features the Andante AI app icon prominently with the App Store badge. */
.app-coming {
  padding: clamp(72px, 10vw, 120px) var(--gutter);
  background: linear-gradient(
    160deg,
    var(--charcoal)   0%,
    var(--navy-deep)  55%,
    #2C1428           100%
  );
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Soft ambient glow rings behind the icon */
.app-coming::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(600px, 90vw);
  height: min(600px, 90vw);
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(123, 61, 138, 0.20), transparent 65%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(29, 52, 100, 0.18), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.app-coming__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* The real iOS app icon — clip to iOS corner radius (~22.5%), cast a glow */
.app-icon-lockup {
  width: clamp(96px, 14vw, 140px);
  height: clamp(96px, 14vw, 140px);
  border-radius: clamp(20px, 22.5%, 32px);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow:
    0 0 0 1px rgba(155, 179, 217, 0.12),
    0 8px 32px rgba(10, 34, 68, 0.60),
    0 24px 64px rgba(79, 44, 68, 0.40);
}
.app-icon-lockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-coming__headline {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 500;
  color: var(--sky-soft);
  margin: 0;
  letter-spacing: -0.01em;
}

.app-coming__sub {
  font-size: clamp(14px, 1.4vw, 17px);
  color: var(--sky);
  opacity: 0.72;
  margin: 0;
  max-width: 40ch;
}

/* App Store badge pill */
.badge-appstore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(155, 179, 217, 0.22);
  border-radius: 999px;
  color: var(--sky-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: default;
  user-select: none;
}
.badge-appstore svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.85;
}

/* Wordmark inside the dark coming-soon section */
.app-coming .andante-wordmark {
  font-size: 32px;
  text-decoration: none;
  cursor: default;
  pointer-events: none;
}
.app-coming .andante-wordmark .name { color: var(--sky-soft); }
.app-coming .andante-wordmark .ai   { color: var(--plum-royal-soft, #9B7EC8); }
