/* ==========================================================================
   Carte — site styles
   Brand rules live in BRAND.md (and are shown at /brand.html).
   Tokens first; every color, radius, and font below comes from them.
   ========================================================================== */

:root {
  /* Color — neutrals */
  --paper: #fbfbf8;         /* page canvas */
  --surface: #ffffff;       /* cards, header */
  --sunk: #f3f4ef;          /* wells, segmented controls */
  --ink: #0e1512;           /* text, primary buttons */
  --ink-2: #2e3933;         /* strong secondary text */
  --muted: #646f69;         /* body copy on paper */
  --faint: #8f9993;         /* captions, meta */
  --line: #e7e9e3;          /* hairlines */
  --line-strong: #d6dad2;   /* hover / input borders */

  /* Color — brand */
  --leaf: #1a7f45;          /* accent text, serif italics, links on hover */
  --mint: #a8e7b1;          /* signature highlight */
  --mint-soft: #ebf7ee;     /* tinted surfaces */
  --peach-soft: #fbefe7;
  --lilac-soft: #f0eef8;
  --dot: rgba(14, 21, 18, .17);

  /* Type */
  --font-display: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Shape & depth */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow-xs: 0 1px 2px rgba(14, 21, 18, .05);
  --shadow-sm: 0 1px 2px rgba(14, 21, 18, .04), 0 4px 14px rgba(14, 21, 18, .05);
  --shadow-md: 0 2px 6px rgba(14, 21, 18, .04), 0 18px 40px rgba(14, 21, 18, .08);

  /* Dot field */
  --dot-gap: 22px;
}

/* ---------- Base ---------- */
picture { display: contents; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { max-width: 100%; height: auto; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--leaf); outline-offset: 4px; border-radius: 6px; }
::selection { background: var(--mint); color: var(--ink); }

p { line-height: 1.65; }
h1, h2, h3, p { margin-top: 0; }

/* Display headlines: Instrument Serif. Italic <em> is the accent. */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -.02em;
  text-wrap: balance;
}
h1 { line-height: .95; }
h2 { font-size: clamp(40px, 5vw, 66px); line-height: 1; margin-bottom: 20px; }
h1 em, h2 em, .serif-accent { font-style: italic; color: var(--leaf); }
h3 { font-weight: 600; letter-spacing: -.025em; font-size: 22px; line-height: 1.2; }

.container { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }

/* ---------- Dot field: the signature fading gradient with dots ---------- */
/* Any section with .has-dots gets a dot grid that fades out radially,
   sitting on a soft mint glow. Children are lifted above it. */
.has-dots { position: relative; isolation: isolate; }
.has-dots::before,
.has-dots::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.has-dots::before {
  background: radial-gradient(60% 55% at 50% 0%, rgba(168, 231, 177, .45) 0%, rgba(168, 231, 177, .12) 45%, transparent 75%);
}
.has-dots::after {
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1.5px);
  background-size: var(--dot-gap) var(--dot-gap);
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 62% at 50% 0%, #000 25%, transparent 78%);
          mask-image: radial-gradient(ellipse 70% 62% at 50% 0%, #000 25%, transparent 78%);
}
.has-dots.dots-bottom::before { background: radial-gradient(60% 60% at 50% 100%, rgba(168, 231, 177, .42) 0%, rgba(168, 231, 177, .1) 48%, transparent 78%); }
.has-dots.dots-bottom::after {
  background-position: center bottom;
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 100%, #000 22%, transparent 78%);
          mask-image: radial-gradient(ellipse 72% 70% at 50% 100%, #000 22%, transparent 78%);
}
.has-dots.dots-center::before { background: radial-gradient(55% 60% at 50% 50%, rgba(168, 231, 177, .4) 0%, transparent 72%); }
.has-dots.dots-center::after {
  background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 60% 65% at 50% 50%, #000 15%, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 65% at 50% 50%, #000 15%, transparent 75%);
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(251, 251, 248, .82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
          backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; gap: 10px; align-items: center; font-size: 21px; font-weight: 650; letter-spacing: -.04em; }
.brand img { border-radius: 9px; width: 32px; height: 32px; box-shadow: var(--shadow-xs); }
.nav-links { display: flex; gap: 6px; font-size: 14px; color: var(--muted); }
.nav-links a { padding: 8px 12px; border-radius: var(--r-pill); transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--ink); background: var(--sunk); }

/* ---------- Buttons & links ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 50px; padding: 0 8px 0 22px;
  border: 1px solid var(--ink); border-radius: var(--r-pill);
  background: var(--ink); color: #fff;
  font-size: 15px; font-weight: 550; letter-spacing: -.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 1px 2px rgba(14, 21, 18, .25), 0 8px 20px -6px rgba(14, 21, 18, .35);
  transition: transform .2s, background .2s, box-shadow .2s;
}
/* The arrow becomes a round chip: the button's signature */
.button span[aria-hidden] {
  width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 50%; background: var(--mint); color: var(--ink);
  font-size: 15px; line-height: 1;
  transition: transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
.button:hover { background: #1e2a24; transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 1px 2px rgba(14, 21, 18, .25), 0 14px 26px -8px rgba(14, 21, 18, .45); }
.button:hover span[aria-hidden] { transform: rotate(45deg) scale(1.06); }
.button:active { transform: translateY(0) scale(.99); }
.button.ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-xs); }
.button.ghost span[aria-hidden] { background: var(--sunk); }
.button.ghost:hover { border-color: var(--faint); }
.button.ghost:hover span[aria-hidden] { transform: translateY(2px); }
.button.small { min-height: 40px; padding: 0 5px 0 16px; gap: 10px; font-size: 13.5px; }
.button.small span[aria-hidden] { width: 28px; height: 28px; font-size: 13px; }

.text-link { font-size: 14px; font-weight: 550; display: inline-flex; gap: 8px; align-items: center; color: var(--ink); }
.text-link span[aria-hidden] { transition: transform .15s; }
.text-link:hover { color: var(--leaf); }
.text-link:hover span[aria-hidden] { transform: translateX(2px); }

.skip-link { position: fixed; left: 20px; top: -80px; z-index: 50; padding: 12px 20px; background: var(--surface); border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; }

/* Eyebrow: small caps label with the brand dot */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 550; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); line-height: 1.5; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 3px var(--mint-soft); flex-shrink: 0; }
.pill {
  gap: 10px; padding: 6px 14px 6px 8px; margin-bottom: 28px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--surface); box-shadow: var(--shadow-xs);
  letter-spacing: 0; text-transform: none; font-size: 13px; color: var(--ink-2);
  transition: border-color .15s;
}
.pill::before { display: none; }
.pill:hover { border-color: var(--line-strong); }
.pill-tag { background: var(--mint-soft); color: var(--leaf); border-radius: var(--r-pill); padding: 2px 9px; font-weight: 600; font-size: 12px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--leaf); }

/* ---------- Hero ---------- */
.hero { text-align: center; padding-top: 76px; overflow: hidden; }
.hero h1 { font-size: clamp(60px, 8.6vw, 116px); margin: 0 0 26px; }
.paper-word { position: relative; display: inline-block; font-style: italic; color: var(--leaf); padding-right: .04em; }
.paper-word svg { position: absolute; left: -2%; bottom: -.06em; width: 104%; height: .2em; fill: none; stroke: var(--mint); stroke-width: 5; stroke-linecap: round; z-index: -1; }
.hero-copy { font-size: 19px; color: var(--muted); margin: 0 auto 32px; max-width: 590px; line-height: 1.55; }
.actions { display: flex; align-items: center; justify-content: center; gap: 12px; }
.quiet { font-size: 13px; color: var(--faint); margin-top: 18px; }
.hero-stage { position: relative; height: 500px; margin: 60px auto 0; max-width: 1050px; }
.hero-stage::before { content: ""; position: absolute; left: 10%; right: 10%; bottom: 0; height: 70%; background: radial-gradient(ellipse at 50% 85%, rgba(168, 231, 177, .55) 0, transparent 65%); z-index: -1; }

.phone { background: #0d1210; border-radius: 38px; border: 6px solid #141b17; outline: 1px solid rgba(14, 21, 18, .35); overflow: hidden; box-shadow: var(--shadow-md); }
.phone img { width: 100%; height: auto; }
.hero-stage .phone { position: absolute; width: 220px; top: 30px; }
.hero-stage .phone-left { left: calc(50% - 300px); transform: rotate(-10deg); top: 55px; }
.hero-stage .phone-right { right: calc(50% - 300px); transform: rotate(10deg); top: 55px; }
.hero-stage .phone-main { width: 234px; left: calc(50% - 117px); z-index: 3; top: 0; }
.hero-pip { position: absolute; width: 190px; bottom: 4px; left: calc(50% - 375px); z-index: 4; filter: drop-shadow(0 15px 10px rgba(14, 21, 18, .08)); }

.stage-note { position: absolute; color: var(--muted); font-family: var(--font-display); font-style: italic; font-size: 24px; text-align: left; z-index: 5; line-height: 1.1; }
.stage-note svg { width: 80px; height: 65px; display: block; stroke: var(--faint); fill: none; stroke-width: 1.3; }
.note-left { left: 0; top: 22px; transform: rotate(-6deg); }
.note-left svg { margin-left: 55px; }
.note-right { right: -5px; top: 95px; transform: rotate(6deg); }
.note-right svg { margin-left: 20px; }

/* Ribbon: a slow marquee of serif phrases, tilted like tape across the page */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ribbon {
  position: relative; z-index: 6; overflow: hidden;
  margin: -24px calc(50% - 50vw - 40px) 0; padding: 16px 0;
  background: var(--ink); color: #f4f2ea;
  transform: rotate(-1.4deg);
  box-shadow: 0 12px 30px -12px rgba(14, 21, 18, .4);
}
.ribbon-track { display: flex; width: max-content; animation: ribbon 38s linear infinite; }
.ribbon-track > div { display: flex; align-items: center; }
.ribbon span { font-family: var(--font-display); font-style: italic; font-size: 30px; line-height: 1; padding: 0 26px; white-space: nowrap; }
.ribbon i { font-style: normal; color: var(--mint); font-size: 20px; }
@keyframes ribbon { to { transform: translateX(-50%); } }
.motion-paused .ribbon-track { animation-play-state: paused; }

/* ---------- Paper story ---------- */
.paper-story { background: var(--surface); border-bottom: 1px solid var(--line); padding: 120px 0 104px; margin-top: -18px; }
.story-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 90px; align-items: center; }
.story-grid h2 { font-size: clamp(38px, 4vw, 54px); line-height: 1.04; margin-bottom: 0; }
.muted { color: var(--faint); font-style: italic; }
.story-copy p { font-size: 16px; color: var(--muted); margin-bottom: 16px; }
.story-copy p:first-child { color: var(--ink-2); }
.story-copy .text-link { margin-top: 8px; }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section-heading { text-align: center; max-width: 700px; margin: 0 auto 56px; }
.section-heading > p:last-child { color: var(--muted); font-size: 17px; margin: 0; }

/* Feature cards: real business cards that turn over */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; perspective: 1400px; }
.feature-card { position: relative; aspect-ratio: 1.58 / 1; min-height: 236px; }
.feature-card:nth-child(1) { transform: rotate(-1.5deg); }
.feature-card:nth-child(2) { transform: translateY(14px) rotate(.8deg); }
.feature-card:nth-child(3) { transform: rotate(1.6deg); }
.mint { --tint: var(--mint-soft); --tint-ink: var(--leaf); --edge: var(--mint); }
.peach { --tint: var(--peach-soft); --tint-ink: #a1532c; --edge: #f2c4a8; }
.lilac { --tint: var(--lilac-soft); --tint-ink: #5b4fa0; --edge: #cfc6ef; }
.flip { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3, 1.25, .5, 1); }
.feature-card:hover .flip, .feature-card:focus-within .flip, .feature-card.is-flipped .flip { transform: rotateY(180deg); }
.face {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  padding: 22px 24px; border-radius: 14px;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 1px 1px rgba(14, 21, 18, .04), 0 10px 24px -8px rgba(14, 21, 18, .18), 0 30px 50px -30px rgba(14, 21, 18, .25);
}
.front {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .7), transparent 45%),
    radial-gradient(circle at 100% 0%, var(--tint) 0, transparent 60%),
    #fffefb;
}
.front::after { /* card edge colour strip */ content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--edge); }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.feature-number { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; color: var(--faint); }
.monogram { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); font-family: var(--font-display); font-style: italic; font-size: 16px; color: var(--tint-ink); }
.line-icon { width: 42px; height: 42px; margin: auto 0 14px; display: grid; place-items: center; border-radius: 12px; background: var(--tint); color: var(--tint-ink); }
.line-icon svg { width: 22px; height: 22px; }
.front h3 { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1; letter-spacing: -.015em; margin: 0; }
.flip-hint { position: absolute; right: 22px; bottom: 20px; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--faint); }
.flip-hint svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.back {
  transform: rotateY(180deg); justify-content: flex-end;
  background: var(--ink); color: #f4f2ea; border-color: var(--ink); overflow: hidden;
}
.back::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(168, 231, 177, .22) 1px, transparent 1.5px); background-size: 16px 16px; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 100% 0%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse 80% 70% at 100% 0%, #000 10%, transparent 70%); }
.back > * { position: relative; }
.back-num { position: absolute; top: 10px; right: 20px; font-family: var(--font-display); font-style: italic; font-size: 64px; line-height: 1; color: var(--mint); opacity: .9; }
.back p { font-size: 14px; line-height: 1.55; color: rgba(244, 242, 234, .78); margin: 0 0 14px; max-width: 34ch; }
.back .text-link { color: var(--mint); font-size: 13.5px; }
.back .text-link:hover { color: #fff; }

/* Demo */
.demo { border-top: 1px solid var(--line); }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.showcase {
  position: relative; overflow: hidden; isolation: isolate;
  height: 740px; padding: 40px 40px 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
}
.showcase::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1.5px);
  background-size: var(--dot-gap) var(--dot-gap);
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 100%, #000 10%, transparent 75%);
          mask-image: radial-gradient(ellipse 75% 55% at 50% 100%, #000 10%, transparent 75%);
}
.showcase::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.library-showcase::before { background: radial-gradient(70% 55% at 50% 100%, rgba(168, 231, 177, .5), transparent 75%); }
.qr-showcase::before { background: radial-gradient(70% 55% at 50% 100%, rgba(246, 205, 180, .5), transparent 75%); }
.showcase-copy { max-width: 400px; position: relative; z-index: 1; }
.showcase-copy .eyebrow { margin-bottom: 14px; }
.showcase-copy h3 { font-family: var(--font-display); font-weight: 400; font-size: 44px; line-height: 1; letter-spacing: -.02em; margin-bottom: 14px; }
.showcase-copy > p:last-child { font-size: 15px; color: var(--muted); min-height: 74px; }
.switcher { display: inline-flex; gap: 2px; padding: 4px; background: var(--sunk); border: 1px solid var(--line); border-radius: var(--r-pill); position: relative; z-index: 3; }
.switcher button { border: 0; cursor: pointer; min-height: 34px; padding: 0 16px; border-radius: var(--r-pill); background: transparent; color: var(--muted); font-size: 13px; font-weight: 500; transition: color .15s, background .15s; }
.switcher button:hover { color: var(--ink); }
.switcher button[aria-pressed=true] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.showcase-phone { position: relative; margin: 28px auto 0; width: 268px; border-radius: 40px; }
.qr-phone { margin-top: 40px; transform: rotate(6deg); }
.qr-note { position: absolute; right: 18px; bottom: 80px; writing-mode: vertical-rl; color: #a1532c; font-family: var(--font-display); font-style: italic; font-size: 22px; }

.little-features { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.little-features > div { position: relative; padding: 30px 28px 28px; overflow: hidden; }
.little-features > div + div { border-left: 1px dashed var(--line-strong); }
.little-features span { position: absolute; right: 14px; top: -6px; font-family: var(--font-display); font-style: italic; font-size: 96px; line-height: 1; color: var(--mint); opacity: .5; pointer-events: none; transition: transform .4s, opacity .3s; }
.little-features > div:hover span { transform: rotate(-8deg) scale(1.05); opacity: .9; }
.little-features h3 { position: relative; font-family: var(--font-display); font-weight: 400; font-size: 28px; letter-spacing: -.015em; line-height: 1.05; margin: 40px 0 10px; max-width: 18ch; }
.little-features p { position: relative; font-size: 14px; color: var(--muted); margin-bottom: 0; max-width: 34ch; }

/* Privacy */
.privacy { background: var(--surface); border-block: 1px solid var(--line); }
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: start; }
.privacy-intro { max-width: 400px; color: var(--muted); font-size: 16px; margin-bottom: 28px; }
/* Privacy choices as ticket stubs */
.privacy-details { display: grid; gap: 14px; }
.privacy-details > div {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 92px 1fr; align-items: stretch;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: transform .25s, box-shadow .25s;
}
.privacy-details > div:nth-child(2) { margin-left: 28px; }
.privacy-details > div:hover { transform: translateX(-4px) rotate(-.4deg); box-shadow: var(--shadow-sm); }
.privacy-details > div::before, .privacy-details > div::after { /* punched notches */
  content: ""; position: absolute; left: 83px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line); z-index: 1;
}
.privacy-details > div::before { top: -10px; }
.privacy-details > div::after { bottom: -10px; }
.privacy-details > div > span {
  display: grid; place-items: center; border-right: 1.5px dashed var(--line-strong);
  font-family: var(--font-display); font-style: italic; font-size: 40px; color: var(--leaf);
  background: var(--mint-soft);
}
.privacy-details > div > div { padding: 22px 24px; }
.privacy-details h3 { font-size: 17px; margin: 0 0 6px; }
.privacy-details p { font-size: 14px; color: var(--muted); margin: 0; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; }
.faq h2 { font-size: clamp(40px, 4.4vw, 56px); }
.faq-intro { position: sticky; top: 110px; align-self: start; }
.faq-intro > p:not(.eyebrow) { font-size: 15px; color: var(--muted); max-width: 360px; margin-bottom: 24px; }
.faq-list { counter-reset: q; }
details { counter-increment: q; border: 1px solid transparent; border-bottom-color: var(--line); border-radius: 0; padding: 18px 14px; transition: background .25s, border-color .25s, border-radius .25s; }
details[open] { background: var(--surface); border-color: var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
details:has(+ details[open]) { border-bottom-color: transparent; }
summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: 40px 1fr 30px; gap: 12px; align-items: center; font-size: 16px; font-weight: 500; line-height: 1.45; }
summary::-webkit-details-marker { display: none; }
summary::before { content: counter(q, decimal-leading-zero); font-family: var(--font-display); font-style: italic; font-size: 22px; color: var(--faint); transition: color .2s; }
details[open] summary::before { color: var(--leaf); }
summary::after { content: "+"; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); font-size: 17px; font-weight: 400; line-height: 1; color: var(--muted); transition: transform .3s, background .2s, color .2s; }
details[open] summary::after { transform: rotate(45deg); background: var(--mint); color: var(--ink); border-color: var(--mint); }
summary:hover::before { color: var(--leaf); }
details p { font-size: 15px; color: var(--muted); margin: 12px 42px 4px 52px; }
.faq summary h3 { font: inherit; letter-spacing: -.01em; margin: 0; line-height: 1.5; }

/* Download CTA: the one inverted moment, ink with mint dots */
.download { padding: 40px 0 112px; }
.download-inner {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  padding: 104px 32px 112px;
  background: var(--ink); color: #f4f2ea; border-radius: 36px;
  box-shadow: 0 30px 60px -30px rgba(14, 21, 18, .6);
  --dot: rgba(168, 231, 177, .3);
}
.download-inner.has-dots::before { background: radial-gradient(60% 70% at 50% 100%, rgba(168, 231, 177, .28) 0%, rgba(168, 231, 177, .06) 50%, transparent 78%); }
.download-inner > div { position: relative; z-index: 2; }
.download .eyebrow { color: rgba(244, 242, 234, .7); }
.download .eyebrow::before { background: var(--mint); box-shadow: 0 0 0 3px rgba(168, 231, 177, .18); }
.download h2 { font-size: clamp(48px, 6.4vw, 92px); margin-bottom: 22px; color: #f6f4ee; }
.download h2 em { color: var(--mint); }
.download p:not(.eyebrow) { color: rgba(244, 242, 234, .68); font-size: 17px; margin-bottom: 32px; }
.download .button { background: #f6f4ee; color: var(--ink); border-color: #f6f4ee; box-shadow: 0 10px 30px -10px rgba(168, 231, 177, .5); }
.download .button:hover { background: #fff; }
.download .button span[aria-hidden] { background: var(--ink); color: var(--mint); }
.download-pip, .download-link { position: absolute; width: 205px; top: 70px; z-index: 1; }
.download-pip { left: 30px; transform: rotate(-8deg); }
.download-link { right: 30px; transform: rotate(9deg); }

/* Footer */
footer { padding: 40px 0 28px; border-top: 1px solid var(--line); background: var(--paper); }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 28px; }
.footer-top > p { font-family: var(--font-display); font-style: italic; font-size: 20px; margin: 0; color: var(--muted); }
.footer-top > div { display: flex; gap: 24px; font-size: 13.5px; color: var(--muted); }
.footer-top > div a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 22px; font-size: 12px; color: var(--faint); }
.footer-bottom p { margin: 0; }
.footer-bottom a:hover { color: var(--ink); }

/* Motion control */
.motion-toggle { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); color: var(--muted); min-height: 30px; padding: 4px 11px; font-size: 11px; cursor: pointer; margin-top: 6px; }
.motion-toggle[hidden] { display: none; }
.motion-toggle svg { width: 9px; height: 9px; fill: currentColor; }

/* 404 */
.missing { min-height: calc(100svh - 160px); display: flex; align-items: center; text-align: center; padding: 64px 0 88px; }
.missing h1 { font-size: clamp(52px, 7vw, 92px); margin: 0 0 18px; }
.missing .eyebrow { margin-bottom: 18px; }
.missing p { color: var(--muted); font-size: 17px; max-width: 440px; margin: 0 auto 28px; }
.missing .actions { flex-wrap: wrap; }

/* ---------- Gentle independent movement keeps the mockups feeling light ---------- */
.hero-stage .phone-left { --float-angle: -10deg; --float-rise: -13px; animation: device-float 8.5s ease-in-out infinite; animation-delay: -2.5s; }
.hero-stage .phone-main { --float-angle: 0deg; --float-rise: -10px; animation: device-float 7s ease-in-out infinite; animation-delay: -1s; }
.hero-stage .phone-right { --float-angle: 10deg; --float-rise: -15px; animation: device-float 9s ease-in-out infinite; animation-delay: -5s; }
.showcase-phone { --float-angle: 0deg; --float-rise: -9px; animation: device-float 8s ease-in-out infinite; animation-delay: -3s; }
.qr-phone { --float-angle: 6deg; --float-rise: -12px; animation-duration: 9s; animation-delay: -5s; }
.hero-pip { --float-angle: -3deg; --float-rise: -7px; animation: device-float 6.5s ease-in-out infinite; animation-delay: -2s; }
@keyframes device-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--float-angle)); }
  50% { transform: translate3d(0, var(--float-rise), 0) rotate(calc(var(--float-angle) + 1deg)); }
}
.motion-paused .hero-stage .phone, .motion-paused .showcase-phone, .motion-paused .hero-pip { animation-play-state: paused; }

/* ---------- Responsive ---------- */
@media (min-width: 1450px) { .hero { padding-top: 92px; } .hero-stage { height: 530px; } }

@media (max-width: 1050px) {
  .container { width: calc(100% - 48px); }
  .stage-note { font-size: 20px; }
  .note-left { left: 0; top: -20px; }
  .note-right { right: 0; top: 0; }
  .hero-pip { left: calc(50% - 340px); width: 160px; }
  .story-grid, .privacy-grid { gap: 48px; }
  .feature-grid { gap: 18px; }
  .front h3 { font-size: 25px; }
  .face { padding: 18px 20px; }
  .back p { font-size: 13px; }
  .back-num { font-size: 48px; }
  .showcase { padding: 34px 30px 0; }
  .showcase-copy h3 { font-size: 38px; }
  .download-pip, .download-link { width: 150px; top: auto; bottom: -30px; }
  .download-pip { left: 0; }
  .download-link { right: 0; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 80px; }
  .container { width: calc(100% - 32px); }
  .nav { height: 62px; gap: 12px; }
  .nav-links { display: none; }
  .brand { font-size: 20px; }
  .brand img { width: 30px; height: 30px; }
  .hero { padding-top: 52px; }
  .hero h1 { font-size: clamp(52px, 12vw, 84px); }
  .hero-copy { font-size: 16.5px; }
  .hero-stage { height: 390px; margin-top: 48px; }
  .hero-stage .phone { width: 175px; border-width: 5px; border-radius: 30px; }
  .hero-stage .phone-main { width: 185px; left: calc(50% - 92.5px); }
  .hero-stage .phone-left { left: calc(50% - 237px); }
  .hero-stage .phone-right { right: calc(50% - 237px); }
  .stage-note { display: none; }
  .hero-pip { width: 120px; left: calc(50% - 240px); bottom: -4px; }
  .ribbon { padding: 12px 0; }
  .ribbon span { font-size: 22px; padding: 0 18px; }
  .paper-story { padding: 64px 0; }
  .story-grid { grid-template-columns: 1fr; gap: 24px; }
  .story-copy { max-width: 560px; }
  .section { padding: 80px 0; }
  .section-heading { margin-bottom: 40px; }
  .feature-grid { grid-template-columns: minmax(0, 420px); justify-content: center; gap: 22px; }
  .feature-card:nth-child(2) { transform: rotate(.8deg); }
  .front h3 { font-size: 30px; }
  .back p { font-size: 14px; }
  .line-icon { margin: 20px 0 24px; }
  .demo-grid { gap: 12px; }
  .showcase { padding: 28px 22px 0; height: 650px; }
  .showcase-copy h3 { font-size: 32px; }
  .showcase-copy > p:last-child { font-size: 14px; min-height: 100px; }
  .showcase-phone { width: 220px; border-radius: 35px; }
  .switcher button { padding: 0 11px; font-size: 12px; }
  .little-features { grid-template-columns: 1fr; }
  .little-features > div + div { border-left: 0; border-top: 1px dashed var(--line-strong); }
  .privacy-details > div:nth-child(2) { margin-left: 0; }
  .privacy-details > div { grid-template-columns: 70px 1fr; }
  .privacy-details > div::before, .privacy-details > div::after { left: 61px; }
  .privacy-details > div > span { font-size: 32px; }
  .privacy-grid { grid-template-columns: 1fr; gap: 36px; }
  .faq-grid { grid-template-columns: 1fr; gap: 28px; }
  .faq-intro { position: static; }
  details p { margin: 12px 0 4px 52px; }
  .download { padding-bottom: 80px; }
  .download-inner { padding: 72px 22px 190px; border-radius: 28px; }
  .download-pip, .download-link { width: 120px; bottom: -40px; }
  .download-pip { left: calc(50% - 135px); }
  .download-link { right: calc(50% - 135px); }
  .footer-top { flex-wrap: wrap; }
  .footer-top > p { order: 3; width: 100%; }
  .footer-top > div { gap: 16px; flex-wrap: wrap; }
  .footer-bottom { flex-wrap: wrap; }
  .footer-bottom > p:nth-child(2) { display: none; }
}

@media (max-width: 540px) {
  .container { width: calc(100% - 32px); }
  .button.small { font-size: 12.5px; padding: 0 13px; }
  .hero h1 { font-size: clamp(48px, 13.5vw, 64px); }
  .pill { font-size: 12px; margin-bottom: 22px; }
  .hero-copy { font-size: 15.5px; max-width: 340px; }
  .desktop-break { display: none; }
  .actions { flex-direction: column; align-items: stretch; max-width: 300px; margin-inline: auto; }
  .quiet { font-size: 12px; }
  .hero-stage { height: 349px; margin-top: 40px; }
  .hero-stage .phone-main { width: 174px; left: calc(50% - 87px); border-radius: 29px; }
  .hero-stage .phone-left, .hero-stage .phone-right { width: 153px; top: 46px; border-radius: 26px; }
  .hero-stage .phone-left { left: calc(50% - 205px); }
  .hero-stage .phone-right { right: calc(50% - 205px); }
  .hero-pip { width: 95px; left: calc(50% - 170px); bottom: -3px; }
  summary { grid-template-columns: 30px 1fr 28px; gap: 10px; }
  summary::before { font-size: 19px; }
  details { padding: 16px 8px; }
  details p { margin-left: 40px; }
  h2 { font-size: 40px; }
  .eyebrow { font-size: 10.5px; }
  .demo-grid { grid-template-columns: 1fr; }
  .showcase { height: 670px; padding: 30px 24px 0; }
  .showcase-copy h3 { font-size: 36px; }
  .showcase-copy > p:last-child { min-height: 0; }
  .showcase-phone { width: 237px; }
  .qr-phone { margin-top: 32px; }
  summary { font-size: 15px; }
  .footer-top > div { gap: 12px; font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .hero-stage .phone, .showcase-phone, .hero-pip, .ribbon-track { animation: none !important; }
  .flip { transition: none; }
  .motion-toggle { display: none; }
}

/* Touch screens flip on tap (scripts/site.js). Without motion, show both sides stacked. */
@media (prefers-reduced-motion: reduce) {
  .feature-card, .feature-card:nth-child(n) { aspect-ratio: auto; transform: none; }
  .flip, .feature-card:hover .flip, .feature-card:focus-within .flip, .feature-card.is-flipped .flip { position: static; transform: none; display: grid; gap: 8px; }
  .face { position: relative; inset: auto; min-height: 200px; }
  .back { transform: none; min-height: 0; padding-top: 56px; }
  .flip-hint { display: none; }
}
.features { overflow-x: clip; }
