/* ============================================================================
   SYGIL — "Daybreak" design system
   The app's light "temple at daylight" mode, made public. Sygil's four lens
   colors are the colors of a dawn sky. Shared across all marketing pages.
   No external dependencies. System font stack only.
   ============================================================================ */

/* ---------------------------------------------------------------- Tokens --- */
:root {
  /* Ground */
  --paper:        #F7F5F0;   /* base */
  --paper-warm:   #FDFCFA;   /* elevated card fill */
  --paper-sunk:   #EFEDE7;   /* input / sunk fill */
  --ink:          #1D1F26;   /* text anchor */

  /* Ink text tiers (alpha on paper) */
  --ink-1: rgba(29,31,38,1);
  --ink-2: rgba(29,31,38,0.78);
  --ink-3: rgba(29,31,38,0.58);
  --ink-4: rgba(29,31,38,0.40);
  --ink-5: rgba(29,31,38,0.24);

  /* Hairline borders */
  --line-1: rgba(29,31,38,0.14);
  --line-2: rgba(29,31,38,0.10);
  --line-3: rgba(29,31,38,0.055);

  /* Lens accents — AA-contrast light variants (safe for text on paper) */
  --physics:       #2F6FD0;  /* azure  */
  --math:          #47799B;  /* sky    */
  --human:         #C24E5A;  /* coral  */
  --contemplative: #A8761C;  /* amber  */
  --emerald:       #1F7A5A;  /* synthesis / success (deep, AA for text) */

  /* Bright variants — glows / particles only */
  --physics-glow:       #428CF2;
  --math-glow:          #8CBFD9;
  --human-glow:         #F5808C;
  --contemplative-glow: #F2B340;
  --emerald-glow:       #33B38C;

  /* Glass surfaces */
  --glass-fill:   rgba(255,255,255,0.55);
  --glass-fill-2: rgba(255,255,255,0.42);
  --glass-line:   rgba(29,31,38,0.10);
  --glass-shadow: 0 24px 60px -28px rgba(41,37,28,0.30), 0 2px 8px -4px rgba(41,37,28,0.14);

  /* Shape */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 9999px;

  /* Rhythm */
  --gutter: 24px;
  --maxw: 1120px;
  --readable: 720px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.24, 1);
  --spring: cubic-bezier(0.34, 1.32, 0.44, 1);

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco,
          "Cascadia Mono", Consolas, monospace;
}

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

html {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  text-size-adjust: 100%;
}
body {
  background: var(--paper);
  overflow-x: hidden;
  line-height: 1.6;
  font-weight: 300;
}
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(66,140,242,0.18); }

/* Visible focus for keyboard users */
:focus-visible {
  outline: 2px solid var(--physics);
  outline-offset: 3px;
  border-radius: 4px;
}
.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;
}
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 300;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: var(--r-sm);
  transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* --------------------------------------------------------------- Layout --- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
/* The nav is fixed, so anchor jumps must clear it or the heading lands
   underneath. Applies to nav links, in-page CTAs, and scrollIntoView alike. */
section[id], header[id], article[id] { scroll-margin-top: clamp(76px, 9vh, 100px); }

.section { position: relative; padding: clamp(72px, 11vw, 130px) 0; }
.section--tight { padding: clamp(48px, 7vw, 80px) 0; }
.readable { max-width: var(--readable); margin-inline: auto; }
.center { text-align: center; }

/* -------------------------------------------------------------- Type kit --- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-4);
  display: inline-block;
}
.display {
  font-weight: 200;
  font-size: clamp(2.4rem, 6.4vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--ink-1);
}
.h2 {
  font-weight: 200;
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--ink-1);
}
.h3 {
  font-weight: 400;
  font-size: 1.18rem;
  letter-spacing: 0.005em;
  color: var(--ink-1);
}
.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  font-weight: 300;
  line-height: 1.62;
  color: var(--ink-2);
}
.prose { font-size: 1rem; font-weight: 300; line-height: 1.7; color: var(--ink-3); }
.prose strong { color: var(--ink-2); font-weight: 500; }
.muted { color: var(--ink-4); }
.stack > * + * { margin-top: var(--stack, 16px); }

/* Spaced wordmark echo of the app's "S Y G I L" */
.wordmark {
  font-weight: 300;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  padding-left: 0.42em; /* optical: balance the trailing tracking */
}

/* ------------------------------------------------------------- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 12px 24px;
  border-radius: var(--r-pill);
  font-size: 0.98rem; font-weight: 500; letter-spacing: 0.005em;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease),
              box-shadow .25s var(--ease), border-color .25s var(--ease), color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn svg { width: 18px; height: 18px; }

.btn--primary {
  background: var(--ink); color: var(--paper);
  box-shadow: 0 12px 30px -14px rgba(29,31,38,0.55);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -14px rgba(29,31,38,0.5);
}
.btn--glass {
  background: var(--glass-fill);
  border-color: var(--glass-line);
  color: var(--ink-1);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.btn--glass:hover { transform: translateY(-2px); background: rgba(255,255,255,0.72); }
.btn--lg { min-height: 54px; padding: 15px 32px; font-size: 1.05rem; }

/* -------------------------------------------------------------- Glass --- */
.glass {
  background: var(--glass-fill);
  border: 1px solid var(--glass-line);
  border-radius: var(--r-lg);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  backdrop-filter: blur(18px) saturate(1.1);
  box-shadow: var(--glass-shadow);
}
.card { border-radius: var(--r-lg); padding: clamp(20px, 3vw, 30px); }

/* ---------------------------------------------------------------- Nav --- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 34px);
  transition: padding .3s var(--ease);
}
/* Paper scrim, not a glass band. The old translucent fill (0.72 alpha, blurred
   and saturated) took its colour from whatever scrolled behind it, so it could
   never equal the --paper that iOS Safari paints its theme-color chrome with —
   that mismatch was the line under the status bar, and border-bottom drew a
   second one below. This is EXACTLY --paper where the status bar meets it, then
   fades to nothing past the nav so it melts into the page with no edge at all.
   On a ::before so the fade never touches the nav's own content. */
.nav::before {
  content: ""; position: absolute; inset: 0 0 -30px 0; z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg,
    var(--paper) 0,
    var(--paper) 62%,
    rgba(247,245,240,0) 100%);
  opacity: 0; transition: opacity .3s var(--ease);
}
.nav--scrolled::before { opacity: 1; }
.nav--scrolled { padding-top: 10px; padding-bottom: 10px; }
.nav__brand {
  font-size: 1.02rem; color: var(--ink-1);
  font-weight: 400; letter-spacing: 0.42em; padding-left: 0.42em;
}
.nav__right { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); }
.nav__links { display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); }
.nav__link {
  font-size: 0.92rem; font-weight: 400; color: var(--ink-3);
  transition: color .2s var(--ease); position: relative; padding: 6px 0;
}
.nav__link:hover { color: var(--ink-1); }
.nav__cta { min-height: 40px; padding: 8px 20px; font-size: 0.9rem; }
.nav__menu-btn {
  display: none; background: none; border: none; padding: 8px;
  color: var(--ink-2); width: 40px; height: 40px;
}
.nav__menu-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.nav__drawer {
  position: absolute; top: calc(100% + 6px); right: clamp(12px, 4vw, 28px);
  min-width: 190px; padding: 8px;
  background: rgba(247,245,240,0.94);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  border: 1px solid var(--line-2); border-radius: var(--r-md);
  box-shadow: var(--glass-shadow);
  display: none;
}
.nav__drawer.is-open { display: block; }
.nav__drawer a {
  display: block; padding: 11px 14px; border-radius: var(--r-sm);
  font-size: 0.95rem; color: var(--ink-2); transition: background .15s, color .15s;
}
.nav__drawer a:hover { background: rgba(29,31,38,0.05); color: var(--ink-1); }

@media (max-width: 780px) {
  .nav__links { display: none; }
  .nav__menu-btn { display: inline-flex; align-items: center; justify-content: center; }
}

/* ---------------------------------------------------------- Canvas host --- */
.canvas-host { position: relative; }
.canvas-host canvas { display: block; width: 100%; height: 100%; }

/* ---------------------------------------------------------- Dawn wash --- */
/* ONE continuous gradient spanning the hero AND the story band, so the two
   never meet at a seam. Sections inside stay transparent; below .dawn the page
   is plain --paper, which is exactly where this gradient lands at 100%. */
.dawn { position: relative; }
.dawn::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    /* Status-bar blend. iOS Safari tints its top chrome with <meta theme-color>
       (--paper), but the page's first pixel was the dawn wash's powder tint —
       and that mismatch drew a hard line under the status bar. Hold exact paper
       through the safe area, then ease into the wash over the next ~170px
       (mostly behind the nav). env() resolves to 0 off-iOS, so desktop just
       gets a paper top edge under the nav. */
    linear-gradient(180deg,
      var(--paper) 0,
      var(--paper) calc(env(safe-area-inset-top, 0px) + 6px),
      rgba(247,245,240,0) calc(env(safe-area-inset-top, 0px) + 170px)),
    radial-gradient(120% 60% at 50% -8%, rgba(66,140,242,0.10), transparent 46%),
    linear-gradient(180deg,
      rgba(140,191,217,0.20) 0%,
      rgba(140,191,217,0.10) 13%,
      rgba(245,128,140,0.12) 31%,
      rgba(242,179,64,0.15) 49%,
      rgba(242,179,64,0.09) 70%,
      rgba(247,245,240,0) 100%),
    var(--paper);
}

/* --------------------------------------------------------------- Hero --- */
.hero {
  position: relative; z-index: 1;
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 118px 24px 84px;
  overflow: hidden;
}
/* The drifting wash is masked in from the top for the same reason as the dawn
   layer above: its amber radial reached the first pixel and warmed it away from
   --paper, re-drawing the status-bar line. (.hero clips the -20% inset, so the
   mask box is just the hero.) */
.hero__sky {
  position: absolute; inset: 0; z-index: 0;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 calc(env(safe-area-inset-top, 0px) + 190px));
  mask-image: linear-gradient(180deg, transparent 0, #000 calc(env(safe-area-inset-top, 0px) + 190px));
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
/* very slow drift — an offset wash that breathes over the dawn gradient */
.hero__sky::after {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(50% 40% at 32% 22%, rgba(242,179,64,0.14), transparent 60%),
    radial-gradient(46% 42% at 72% 30%, rgba(245,128,140,0.12), transparent 60%);
  animation: dawnDrift 34s ease-in-out infinite alternate;
  will-change: transform, opacity;
}
@keyframes dawnDrift {
  0%   { transform: translate3d(-2%, -1%, 0) scale(1);    opacity: 0.75; }
  100% { transform: translate3d( 3%,  2%, 0) scale(1.08); opacity: 1; }
}
.hero__canvas { position: absolute; inset: 0; z-index: 1; }
/* margin-top: 0 — the mark now takes flow space, so the flex centring balances
   the whole composition instead of leaving the slack below the CTA. */
.hero__content { position: relative; z-index: 2; max-width: 760px; margin-top: 0; }
/* Empty spacer the sigil is drawn into. Its height sets the mark's size and its
   margin-bottom is the breath between the mark and the headline. */
.hero__mark {
  height: clamp(165px, 26vh, 252px);
  margin: 0 auto clamp(40px, 5.5vh, 64px);
}
/* Phones: the text stack wraps taller, so trim the frame and the mark to keep
   the whole hero — CTA and the free-tier note included — above the fold. */
@media (max-width: 700px) {
  .hero { padding: 96px 24px 64px; }
  .hero__mark { height: clamp(148px, 20vh, 196px); margin-bottom: clamp(32px, 4.5vh, 46px); }
}
.hero .display { text-shadow: 0 1px 30px rgba(247,245,240,0.6); }
.hero__sub {
  margin: 22px auto 0; max-width: 600px;
  font-size: clamp(1.05rem, 1.9vw, 1.3rem); font-weight: 300;
  line-height: 1.6; color: var(--ink-2);
}
.hero__cta { margin-top: 34px; display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; }
.hero__note { margin-top: 18px; font-size: 0.86rem; color: var(--ink-4); font-family: var(--mono); letter-spacing: 0.02em; }
.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: var(--ink-4); animation: floatY 2.4s var(--ease) infinite;
}
.hero__scroll svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; }
@keyframes floatY { 0%,100% { transform: translateX(-50%) translateY(0);} 50% { transform: translateX(-50%) translateY(7px);} }

/* --------------------------------------------------------- Story band --- */
.story {
  position: relative; z-index: 1;
  padding: clamp(70px, 10vw, 120px) 24px;
  text-align: center;
  /* No background, no border — .dawn::before carries the wash through. */
}
.story__line {
  max-width: 760px; margin: 0 auto;
  font-weight: 200; font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  line-height: 1.35; letter-spacing: -0.005em; color: var(--ink-1);
}
.story__line em { font-style: normal; color: var(--contemplative); }

/* ---------------------------------------------------------- Section head --- */
.section-head { max-width: 640px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head .lead { margin-top: 16px; }

/* ------------------------------------------------------------- Lenses --- */
.lenses-layout { display: grid; grid-template-columns: 1fr; gap: clamp(30px, 5vw, 56px); align-items: center; margin-top: 52px; }
@media (min-width: 900px) { .lenses-layout { grid-template-columns: 1.05fr 1fr; } }
.lenses-stage { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 460px; margin-inline: auto; }
.lens-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 460px) { .lens-grid { grid-template-columns: 1fr; } }

.lens-card {
  position: relative; padding: 22px 22px 24px;
  border-radius: var(--r-md);
  background: var(--glass-fill);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.lens-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.lens-card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: linear-gradient(180deg, var(--accent), transparent);
  opacity: 0.7;
}
.lens-card__glyph {
  width: 40px; height: 40px; margin-bottom: 14px;
  color: var(--accent);
}
.lens-card__glyph svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.lens-card__glyph .dot { fill: var(--accent); stroke: none; }
.lens-card h3 { font-size: 1.12rem; font-weight: 500; color: var(--accent); margin-bottom: 3px; }
.lens-card .lens-card__label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-4); }
.lens-card p { margin-top: 10px; font-size: 0.94rem; font-weight: 300; line-height: 1.55; color: var(--ink-3); }

.lens--physics       { --accent: var(--physics); }
.lens--math          { --accent: var(--math); }
.lens--human         { --accent: var(--human); }
.lens--contemplative { --accent: var(--contemplative); }
.lens--emerald       { --accent: var(--emerald); }

/* -------------------------------------------------------------- Modes --- */
.modes-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 52px; }
@media (min-width: 760px) { .modes-grid { grid-template-columns: repeat(3, 1fr); } }
.mode-card {
  display: flex; flex-direction: column;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--glass-fill); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: var(--glass-shadow);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.mode-card:hover { transform: translateY(-5px); border-color: var(--line-1); }
.mode-card__art { position: relative; height: 168px; border-bottom: 1px solid var(--line-3); }
.mode-card__body { padding: 24px 24px 28px; }
.mode-card h3 { font-size: 1.22rem; font-weight: 500; margin-bottom: 8px; }
.mode-card p { font-size: 0.95rem; font-weight: 300; color: var(--ink-3); line-height: 1.6; }
.mode-card .eyebrow { font-size: 10px; margin-bottom: 10px; }

/* ------------------------------------------------------- Screens gallery --- */
.gallery { position: relative; margin-top: 48px; }
.gallery__track {
  display: flex; gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  /* Full-bleed track, but the inline padding aligns the first/last item with
     the content column — otherwise item 1 hugs the viewport edge on wide
     screens while the section heading stays centred. */
  --gallery-inset: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
  padding: 6px var(--gallery-inset) 24px;
  scroll-padding-inline: var(--gallery-inset);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.gallery__track::-webkit-scrollbar { display: none; }
/* No card wrapper: each screenshot already carries its own device frame and
   soft backdrop. A border/shadow here double-frames it. Multiply melts the
   shot's cool-grey backdrop into the warm paper. */
.gallery__item {
  flex: 0 0 auto; scroll-snap-align: center;
  width: clamp(210px, 62vw, 268px);
  border-radius: var(--r-lg); overflow: hidden;
}
/* The shots are a vertical gradient: mid-grey (185) at the top → pure white at
   the bottom. `multiply` maps that white exactly onto --paper, so each shot
   dissolves into the page; the soft edge fade keeps the grey top from cutting a
   hard rectangle. The fade stops short of the baked-in caption. */
.gallery__item img {
  width: 100%; height: auto; display: block;
  mix-blend-mode: multiply;
  -webkit-mask-image:
    linear-gradient(180deg, transparent 0, #000 20px),
    linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
  mask-image:
    linear-gradient(180deg, transparent 0, #000 20px),
    linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
/* edge fades — affordance that content scrolls (desktop) */
.gallery::before, .gallery::after {
  content: ""; position: absolute; top: 0; bottom: 24px; width: 56px;
  pointer-events: none; z-index: 2;
}
.gallery::before { left: 0; background: linear-gradient(90deg, var(--paper), transparent); }
.gallery::after { right: 0; background: linear-gradient(270deg, var(--paper), transparent); }
.gallery__hint { text-align: center; margin-top: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: var(--ink-4); }
@media (max-width: 560px) { .gallery::before, .gallery::after { display: none; } }

/* --------------------------------------------------------------- Kids --- */
.kids-layout { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 5vw, 52px); align-items: center; margin-top: 48px; }
@media (min-width: 860px) { .kids-layout { grid-template-columns: 1fr 1fr; } }
.kids-stage { position: relative; aspect-ratio: 4 / 3; width: 100%; max-width: 480px; margin-inline: auto; border-radius: var(--r-lg); overflow: hidden; }
.kids-list { list-style: none; display: grid; gap: 10px; margin-top: 22px; }
.kids-list li { display: flex; gap: 12px; align-items: center; font-size: 1rem; font-weight: 300; color: var(--ink-2); }
.kids-list .swatch { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 4px; background: var(--c); }

/* -------------------------------------------------------------- Demo --- */
.demo-wrap { max-width: 620px; margin: 44px auto 0; }
.demo {
  border-radius: var(--r-xl); overflow: hidden;
  background: var(--glass-fill);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(20px) saturate(1.15); backdrop-filter: blur(20px) saturate(1.15);
  box-shadow: var(--glass-shadow);
}
.demo__head {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 20px; border-bottom: 1px solid var(--line-3);
}
.demo__head .wordmark { font-size: 0.95rem; color: var(--ink-2); }
.demo__body { padding: 20px; }
.demo__pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pill {
  padding: 8px 14px; min-height: 38px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.5); border: 1px solid var(--line-2);
  color: var(--ink-2); font-size: 0.88rem; font-weight: 400;
  transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.pill:hover { background: rgba(255,255,255,0.8); border-color: var(--line-1); transform: translateY(-1px); }
.demo__input-row {
  display: flex; align-items: flex-end; gap: 8px;
  background: var(--paper-warm); border: 1px solid var(--line-2);
  border-radius: var(--r-md); padding: 8px 8px 8px 16px;
  transition: border-color .25s, box-shadow .25s;
}
.demo__input-row:focus-within { border-color: color-mix(in srgb, var(--physics) 45%, var(--line-1)); box-shadow: 0 0 0 4px rgba(66,140,242,0.10); }
.demo__input {
  flex: 1; background: none; border: none; outline: none; resize: none;
  font-family: inherit; font-size: 1rem; font-weight: 400; color: var(--ink-1);
  line-height: 1.5; max-height: 92px; min-height: 26px; padding: 4px 0;
}
.demo__input::placeholder { color: var(--ink-4); }
.demo__send {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  background: rgba(29,31,38,0.06); border: none; color: var(--ink-4);
  transition: background .2s, color .2s;
}
.demo__send.is-active { background: var(--ink); color: var(--paper); }
.demo__send svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.demo__count { text-align: right; font-family: var(--mono); font-size: 10px; color: var(--ink-4); margin-top: 6px; letter-spacing: 0.04em; }

/* Demo — thinking state */
.demo__thinking { display: none; flex-direction: column; align-items: center; gap: 18px; padding: 30px 20px 34px; }
.demo__thinking.is-on { display: flex; }
.demo__thinking-canvas { width: 132px; height: 132px; }
.demo__status { min-height: 20px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.03em; color: var(--ink-3); text-align: center; transition: opacity .4s var(--ease); }

/* Demo — results */
.demo__result { display: none; flex-direction: column; gap: 14px; margin-top: 4px; }
.demo__result.is-on { display: flex; }
.overview-card {
  padding: 18px 20px; border-radius: var(--r-md);
  background: var(--paper-warm); border: 1px solid var(--line-2);
  font-size: 1rem; font-weight: 300; line-height: 1.62; color: var(--ink-1);
}
.overview-card .overview-card__q { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-4); margin-bottom: 10px; }
.lens-result {
  border-radius: var(--r-md); overflow: hidden;
  background: var(--paper-warm); border: 1px solid var(--line-2);
  border-left: 3px solid var(--accent);
}
.lens-result__toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 16px; background: none; border: none; text-align: left;
  font-size: 0.95rem; font-weight: 500; color: var(--accent);
}
.lens-result__toggle .chev { transition: transform .25s var(--ease); color: var(--ink-4); }
.lens-result.is-open .chev { transform: rotate(180deg); }
.lens-result__body { display: none; padding: 0 16px 15px; font-size: 0.95rem; font-weight: 300; line-height: 1.6; color: var(--ink-2); }
.lens-result.is-open .lens-result__body { display: block; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: var(--r-pill);
  font-size: 0.82rem; font-weight: 400; line-height: 1.35;
  border: 1px solid var(--line-2);
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: 0 0 auto; }
.chip--confident { --c: var(--emerald-glow); color: var(--emerald); background: rgba(51,179,140,0.08); }
.chip--uncertain { --c: var(--contemplative-glow); color: var(--contemplative); background: rgba(242,179,64,0.1); }
.demo__sources { display: flex; flex-wrap: wrap; gap: 8px; }
.demo__sources a { font-size: 0.85rem; color: var(--physics); text-decoration: underline; text-underline-offset: 2px; }
.demo__error {
  padding: 16px 18px; border-radius: var(--r-md);
  background: rgba(242,179,64,0.08); border: 1px solid rgba(168,118,28,0.22);
  color: var(--ink-2); font-size: 0.95rem; font-weight: 300; line-height: 1.6;
}
.demo__error a { color: var(--physics); text-decoration: underline; }
.demo__nudge { text-align: center; margin-top: 22px; }
.demo__nudge p { color: var(--ink-3); font-size: 0.95rem; margin-bottom: 14px; }

/* ------------------------------------------------------------ Privacy --- */
.privacy-band { text-align: center; }
.privacy-band .h2 { max-width: 640px; margin-inline: auto; }
.privacy-points { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 40px; max-width: 820px; margin-inline: auto; }
@media (min-width: 720px) { .privacy-points { grid-template-columns: repeat(3, 1fr); } }
.privacy-point { padding: 22px; border-radius: var(--r-md); background: var(--glass-fill); border: 1px solid var(--glass-line); }
.privacy-point h3 { font-size: 1.02rem; font-weight: 500; margin-bottom: 6px; }
.privacy-point p { font-size: 0.9rem; font-weight: 300; color: var(--ink-3); line-height: 1.55; }

/* ------------------------------------------------------------ Pricing --- */
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 52px; max-width: 860px; margin-inline: auto; }
@media (min-width: 720px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }
.price-card {
  position: relative; display: flex; flex-direction: column;
  padding: 30px 28px 32px; border-radius: var(--r-lg);
  background: var(--glass-fill); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: var(--glass-shadow);
}
.price-card--featured { border-color: color-mix(in srgb, var(--emerald-glow) 40%, transparent); }
.price-card__name { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-4); }
.price-card__price { margin-top: 12px; font-weight: 200; font-size: 2.7rem; color: var(--ink-1); line-height: 1; }
.price-card__price .per { font-size: 1rem; font-weight: 300; color: var(--ink-4); }
.price-card__alt { margin-top: 8px; font-size: 0.85rem; color: var(--ink-4); min-height: 18px; }
.price-card__list { list-style: none; margin: 22px 0 26px; display: grid; gap: 11px; }
.price-card__list li { position: relative; padding-left: 22px; font-size: 0.94rem; font-weight: 300; color: var(--ink-2); }
.price-card__list li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--ink-5);
}
.price-card--featured .price-card__list li::before { background: var(--emerald-glow); }
.price-card .btn { margin-top: auto; }
.badge {
  position: absolute; top: -11px; right: 22px;
  background: var(--emerald); color: #fff;
  font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.1em;
  padding: 5px 11px; border-radius: var(--r-pill);
}
.price-toggle-row { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 26px; }

/* ---------------------------------------------------------- Bottom CTA --- */
.final-cta { text-align: center; }
.final-cta .h2 { max-width: 700px; margin: 0 auto 34px; }

/* -------------------------------------------------------------- Footer --- */
.footer { border-top: 1px solid var(--line-3); padding: 44px 24px 40px; text-align: center; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.footer__links a { font-size: 0.88rem; color: var(--ink-3); transition: color .2s; }
.footer__links a:hover { color: var(--ink-1); }
.footer__dot { color: var(--ink-5); }
.footer__made { margin-top: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-4); }

/* -------------------------------------------------------- Scroll reveal --- */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* -------------------------------------------------- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__sky::after { animation: none; }
  .hero__scroll { animation: none; }
}
