/* iFiley landing page.
   Palette is the app's own: the light "iridescent" ground, the dusk ground and
   the accent all come from Sources/SmartFilerApp/Theme.swift, so the site and
   the app read as one world. */

:root {
  color-scheme: light;

  --ink: #191733;
  --ink-sky: #2b2860;
  --dim: #55527a;
  --faint: #6a678c;
  --line: #e6e4f0;
  --ground: #fbfbfe;
  --accent: #4e68f0;
  --accent-deep: #3a34b8;
  --peri: #8fa5ff;
  --night: #121529;
  --night-ink: #f4f2ed;
  --night-dim: #c9cbe8;
  --night-faint: #a9a6be;

  --iri-1: #efebff;
  --iri-2: #fbf1f3;
  --iri-3: #e9f1ff;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter Tight", "Segoe UI", system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter Tight", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --wrap: 1040px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mark {
  display: inline-block;
  width: 1em; height: 1em;
  background: currentColor;
  -webkit-mask: url("assets/mark.svg") center / contain no-repeat;
          mask: url("assets/mark.svg") center / contain no-repeat;
  flex-shrink: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 48px; padding: 0 24px;
  border-radius: 999px;
  font-family: var(--sans); font-size: 16px; font-weight: 600;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 160ms, box-shadow 160ms;
}
.btn:active { transform: scale(0.97); }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 14px 30px -12px rgba(25, 23, 51, 0.6); }
.btn-glass { background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(255, 255, 255, 0.85); color: var(--ink); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-light { background: var(--night-ink); color: var(--ink); }
.btn-ghost-night { background: rgba(244, 242, 237, 0.1); border: 1px solid rgba(244, 242, 237, 0.4); color: var(--night-ink); }
.btn svg { width: 15px; height: 18px; }

/* Hover only where there's a real pointer; a tap shouldn't leave a button lit. */
@media (hover: hover) and (pointer: fine) {
  .btn-ink:hover { background: #2a2750; }
  .btn-glass:hover { background: rgba(255, 255, 255, 0.75); }
  .btn-light:hover { background: #fff; }
  .btn-ghost-night:hover { background: rgba(244, 242, 237, 0.18); }
      .seats button:hover { color: var(--night-ink); }
}

/* ---------- Nav ---------- */

.nav {
  position: fixed; z-index: 50;
  top: 16px; left: 50%;
  width: min(1000px, 100% - 32px);
  transform: translateX(-50%);
  /* Three columns so the links sit on the true centre line, whatever the ends weigh.
     minmax(0, 1fr) stops a wide end from growing its column and pushing the links off
     centre; the ends are kept narrow enough to fit instead. */
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 20px;
  height: 54px; padding: 0 8px; /* even, so the middle column is the pill's true centre */
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 10px 30px -14px rgba(25, 23, 51, 0.28);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}
.nav-brand { display: flex; align-items: center; gap: 9px; justify-self: start; padding-left: 10px; font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.nav-brand .mark { font-size: 21px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--dim); transition: color 150ms; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; justify-self: end; }
.nav-price { font-size: 14px; font-weight: 500; }
.nav .btn { height: 38px; padding: 0 18px; font-size: 14px; box-shadow: none; }

/* ---------- Hero: a scroll-locked scene ---------- */

.hero { position: relative; height: 420vh; background: #8b9cf4; }

.stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  --p: 0;
}

.scene, .scene video, .scene img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 62%;
}
/* The camera pushes into the painting as you scroll, like walking into the field. */
.world { position: absolute; inset: 0; transform: scale(calc(1 + var(--p) * 0.2)); transform-origin: 50% 78%; will-change: transform; }

/* Same box and same cover crop as the video, so the ridge in the mask lands on
   the ridge in the painting. Only what's inside is clipped; the video is not. */
.depth {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url("assets/sky-mask.png") 50% 62% / cover no-repeat;
          mask: url("assets/sky-mask.png") 50% 62% / cover no-repeat;
}

/* Keeps the headline area calm without flattening the sky. */
.veil {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(90% 55% at 50% 30%, rgba(233, 236, 255, 0.35), rgba(233, 236, 255, 0) 70%);
}

.beats { position: absolute; inset: 0; pointer-events: none; }
.beat {
  position: absolute; left: 50%; top: 0;
  width: min(1000px, 100% - 40px);
  transform: translate(-50%, 0);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  color: var(--ink);
  opacity: 0;
  will-change: opacity, transform, filter;
}
.beat.live { pointer-events: auto; }
.beat .eyebrow { color: var(--ink-sky); }

.beat-0 { gap: 10px; }
.beat-0 .eyebrow { display: flex; align-items: center; gap: 7px; font-size: 11px; }
.beat-0 .eyebrow svg { margin-top: -2px; }
.wordmark {
  font-family: var(--display);
  font-size: clamp(104px, 19vw, 300px);
  font-weight: 700; letter-spacing: -0.05em; line-height: 0.82;
  padding-right: 0.05em; /* optical: the tracking pulls the last letter in */
}

.beat-1, .beat-2 { top: 17vh; gap: 20px; }
.beat h2 {
  font-family: var(--display);
  font-size: clamp(38px, 4.9vw, 70px);
  letter-spacing: -0.035em; line-height: 1.02;
}
.beat-3 h2 { font-size: clamp(46px, 6.4vw, 92px); letter-spacing: -0.042em; line-height: 0.98; }
.beat .lede {
  font-size: clamp(17px, 1.5vw, 20px); line-height: 1.45;
  color: var(--ink-sky);
  max-width: 600px;
}
.beat .tags { color: var(--ink-sky); font-size: 11px; }

.beat-3 { top: 13vh; gap: 22px; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding-top: 6px; }
.cta-note { font-size: 13px; font-weight: 500; color: var(--ink-sky); }

.chips { position: absolute; inset: 0; pointer-events: none; }
.chip {
  position: absolute;
  display: flex; align-items: center; gap: 9px;
  padding: 9px 14px 9px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 40px -18px rgba(25, 23, 51, 0.45);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 13px; font-weight: 500; color: var(--ink);
  white-space: nowrap;
  opacity: 0;
  will-change: transform, opacity;
}
.chip i {
  width: 22px; height: 27px; border-radius: 4px; flex-shrink: 0;
  background: #fff; border: 1px solid rgba(25, 23, 51, 0.12);
  position: relative; overflow: hidden;
}
.chip i::after {
  content: attr(data-t);
  position: absolute; left: 0; right: 0; bottom: 3px;
  font: 700 6.5px/1 var(--sans); letter-spacing: 0.04em; text-align: center; color: #fff;
  background: var(--c, #e0443e); padding: 1.5px 0;
  font-style: normal;
}

.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em; color: var(--ink-sky);
  opacity: calc(1 - var(--p) * 8);
}

/* ---------- The app window, ported from the Paper board ---------- */

.window-dock {
  position: absolute; left: 50%; top: 0;
  width: 1120px; height: 578px;
  transform-origin: 50% 0;
  will-change: transform;
}

.win {
  position: relative;
  width: 1120px; height: 578px;
  display: flex;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(150deg, var(--iri-1) 0%, var(--iri-2) 52%, var(--iri-3) 100%);
  box-shadow: 0 70px 120px -30px rgba(25, 23, 51, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.7);
  font-family: var(--sans);
  font-size: 12px; line-height: 16px;
  color: var(--ink);
  text-align: left;
}
.win svg { flex-shrink: 0; }

.w-side {
  width: 248px; flex-shrink: 0;
  display: flex; flex-direction: column;
  padding-bottom: 16px;
  background: rgba(255, 255, 255, 0.52);
  border-right: 1px solid rgba(25, 23, 51, 0.09);
}
.w-lights { display: flex; gap: 8px; align-items: center; height: 52px; padding-left: 20px; }
.w-lights span { width: 12px; height: 12px; border-radius: 50%; background: #d6d2e2; }
.w-lights span:first-child { background: #ff5f57; }
.w-brand { display: flex; align-items: center; gap: 9px; padding: 6px 20px 22px; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; line-height: 22px; }
.w-brand .mark { font-size: 20px; }
.w-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 10px; }
.w-item { display: flex; align-items: center; gap: 11px; height: 36px; padding: 0 11px; border-radius: 9px; font-size: 13px; color: var(--dim); }
.w-item b { flex: 1; font-weight: 400; }
.w-item small { font-size: 11px; color: var(--faint); }
.w-item.on { color: var(--ink); background: linear-gradient(100deg, rgba(78, 104, 240, 0.2), rgba(78, 104, 240, 0.07)); border: 1px solid rgba(78, 104, 240, 0.3); }
.w-item.on b { font-weight: 600; }
.w-badge { padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 14px; background: #b9c7ff; color: #141a33; }
.w-badge.amber { background: #ffb454; color: #33260f; }
.w-cap { padding: 18px 21px 6px; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; color: var(--faint); }
.w-places .w-item { height: 30px; }
.w-places .w-item.sub { padding-left: 37px; }
.w-group { padding: 8px 11px 2px; font-size: 11px; font-weight: 600; color: var(--faint); }
.w-group:first-child { padding-top: 0; }
.w-foot { margin-top: auto; display: flex; align-items: center; gap: 9px; padding: 14px 20px 0; border-top: 1px solid rgba(25, 23, 51, 0.09); font-size: 11px; color: var(--faint); }
.w-foot .dot { width: 6px; height: 6px; border-radius: 50%; background: #30d158; }
.w-foot span:nth-child(2) { flex: 1; }

.w-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.w-bar { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 30px; flex-shrink: 0; }
.w-bar strong { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 24px; }
.w-bar span { font-size: 12px; color: var(--faint); flex: 1; }

.w-body { display: flex; align-items: flex-start; gap: 36px; padding: 12px 30px 30px; }
.w-doc { width: 296px; flex-shrink: 0; display: flex; flex-direction: column; gap: 18px; }
.w-stack { position: relative; width: 296px; height: 346px; }
.w-sheet { position: absolute; width: 252px; height: 316px; border-radius: 9px; }
.w-sheet.s2 { left: 42px; top: 26px; background: rgba(255, 255, 255, 0.62); border: 1px solid rgba(25, 23, 51, 0.06); }
.w-sheet.s1 { left: 29px; top: 13px; background: rgba(255, 255, 255, 0.82); border: 1px solid rgba(25, 23, 51, 0.08); }
.w-page {
  position: absolute; left: 16px; top: 0; width: 252px; height: 316px;
  display: flex; flex-direction: column; gap: 9px;
  padding: 26px 24px; border-radius: 10px;
  background: #fbf8f2; border-top: 1px solid #fff;
  box-shadow: 0 30px 60px -14px rgba(0, 0, 0, 0.35), 0 6px 16px rgba(0, 0, 0, 0.14);
}
.w-page .kind { font-size: 7px; font-weight: 700; letter-spacing: 0.16em; line-height: 10px; color: #b0392a; }
.w-page .addr { margin-top: 4px; font-size: 13px; font-weight: 600; line-height: 16px; color: #241f18; }
.w-rules { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; }
.w-rules i { display: block; height: 3px; border-radius: 2px; background: #dfd9ce; }
.w-split { display: flex; gap: 10px; margin-top: 12px; }
.w-split .w-rules { flex: 1; margin: 0; }
.w-split em { width: 56px; height: 34px; border-radius: 3px; background: #efe9dc; }
.w-sign { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.w-sign i { width: 104px; height: 1px; background: #241f18; }
.w-sign span { font-size: 7px; letter-spacing: 0.1em; line-height: 10px; color: #8a8375; }
.w-name { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 24px; }
.w-pills { display: flex; align-items: center; gap: 6px; margin-top: 9px; }
.w-pill { padding: 3px 9px; border-radius: 999px; font-size: 11px; line-height: 14px; color: var(--dim); background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(25, 23, 51, 0.11); }

.w-where { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.w-where > .cap { padding-bottom: 12px; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; color: var(--faint); }
.w-match {
  position: relative;
  display: flex; gap: 20px; padding: 24px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(135deg, #8fa5ff 0%, #4259e2 9%, #3a34b8 100%);
  border-top: 1px solid rgba(220, 228, 255, 0.6);
  box-shadow: 0 28px 64px -12px rgba(78, 104, 240, 0.55), 0 6px 18px rgba(0, 0, 0, 0.18);
  color: #fff;
  overflow: hidden;
}
/* A slow sheen so the answer feels lit, not printed. */
.w-match::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.22) 50%, transparent 65%);
  transform: translateX(-100%);
  animation: sheen 5.5s var(--ease-out) 1.2s infinite;
}
@keyframes sheen { 0% { transform: translateX(-100%); } 40%, 100% { transform: translateX(100%); } }
.w-ring { position: relative; width: 58px; height: 58px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.12); border: 3px solid rgba(255, 255, 255, 0.32); transition: background-color 300ms ease, border-color 300ms ease; }
.w-ring svg { position: absolute; transition: opacity 260ms, transform 360ms var(--ease-out); }
.w-ring .tick { opacity: 0; transform: scale(0.5); }
.filed .w-ring .folder { opacity: 0; transform: scale(0.5); }
.filed .w-ring .tick { opacity: 1; transform: scale(1); }
.filed .w-ring { background: rgba(48, 209, 88, 0.9); border-color: rgba(255, 255, 255, 0.55); }
.w-match .txt { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.w-match .cap { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; line-height: 12px; color: rgba(255, 255, 255, 0.92); }
.w-match strong { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; line-height: 34px; }
.w-match span { font-size: 13px; line-height: 19px; color: rgba(255, 255, 255, 0.92); }
.w-match span + span { color: rgba(255, 255, 255, 0.86); }
.w-alts { display: flex; }
.w-alts div { flex: 1; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 11px; }
.w-alts b { font-size: 12px; font-weight: 600; line-height: 16px; }
.w-alts small { font-size: 10px; line-height: 12px; }
/* Same rule as the app: text steps down by rank, never below 4.5:1. */
.w-alts div:nth-child(1) { background: rgba(201, 210, 255, 0.92); color: #1e2a6b; border-bottom-left-radius: 20px; }
.w-alts div:nth-child(2) { background: rgba(201, 210, 255, 0.66); color: rgba(30, 42, 107, 0.9); border-left: 1px solid rgba(25, 23, 51, 0.1); }
.w-alts div:nth-child(3) { background: rgba(201, 210, 255, 0.44); color: rgba(30, 42, 107, 0.82); border-left: 1px solid rgba(25, 23, 51, 0.1); border-bottom-right-radius: 20px; }
.w-alts div:nth-child(1) small { color: rgba(30, 42, 107, 0.82); }
.w-alts div:nth-child(2) small { color: rgba(30, 42, 107, 0.78); }
.w-alts div:nth-child(3) small { color: rgba(30, 42, 107, 0.74); }
.w-else { display: flex; align-items: center; gap: 10px; height: 40px; margin: 14px 0 0; padding: 0 8px 0 14px; border-radius: 13px; font-size: 12.5px; background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(25, 23, 51, 0.11); }
.w-else span { flex: 1; color: var(--faint); white-space: nowrap; }
.w-else b { display: flex; align-items: center; gap: 6px; padding: 0 8px; font-weight: 500; color: var(--dim); white-space: nowrap; }
.w-find { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(25, 23, 51, 0.11); }
.w-meter { display: inline-flex; align-items: flex-end; gap: 2px; height: 13px; margin-left: 9px; vertical-align: -1px; }
.w-meter i { width: 3px; border-radius: 1px; background: #fff; }
.w-meter i:nth-child(1) { height: 6px; } .w-meter i:nth-child(2) { height: 9px; } .w-meter i:nth-child(3) { height: 13px; }
.w-acts { display: flex; align-items: flex-start; gap: 16px; margin-top: 26px; padding: 0 6px; }
.w-act { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 8px; font-size: 11px; color: var(--dim); }
.w-act .o { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(25, 23, 51, 0.11); }
.w-act small { font-size: 10px; color: var(--faint); margin-top: -4px; }
.w-act.go { padding-top: 0; color: var(--ink); font-weight: 600; }
.w-act.go .o { position: relative; width: 64px; height: 64px; border: 0; background: linear-gradient(160deg, #b9c7ff 0%, #6c82f5 100%); box-shadow: 0 14px 30px -6px rgba(108, 130, 245, 0.6); }
.w-act.go .o::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(108, 130, 245, 0.55); }
.filed .w-act.go .o { animation: press 520ms var(--ease-out); }
.filed .w-act.go .o::after { animation: ring 900ms var(--ease-out); }
@keyframes press { 0% { transform: scale(1); } 30% { transform: scale(0.9); } 100% { transform: scale(1); } }
@keyframes ring { from { box-shadow: 0 0 0 0 rgba(108, 130, 245, 0.55); } to { box-shadow: 0 0 0 22px rgba(108, 130, 245, 0); } }

/* ---------- Facts ---------- */

.facts { background: var(--night); color: var(--night-ink); padding: 64px 0; }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.fact strong { display: block; font-family: var(--display); font-size: clamp(38px, 4.2vw, 54px); letter-spacing: -0.04em; line-height: 1; }
.fact span { display: block; margin-top: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--night-faint); }
.fact:last-child strong { color: var(--peri); }

/* ---------- Sections ---------- */

.section { padding: clamp(96px, 12vw, 150px) 0; }
.h-section { font-family: var(--display); font-size: clamp(44px, 5.4vw, 68px); letter-spacing: -0.04em; line-height: 1; }

.does-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.does-head p { max-width: 350px; color: var(--dim); }
/* ---------- Features: each card carries a piece of the real app ---------- */

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.card {
  min-width: 0;
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px 14px 30px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(25, 23, 51, 0.02), 0 24px 48px -36px rgba(25, 23, 51, 0.25);
}
.card.span-2 { grid-column: span 2; }
.card.span-3 { grid-column: span 3; }
.card h3 { margin: 16px 18px 0; font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.card p { margin: 0 18px; font-size: 15.5px; line-height: 1.55; color: var(--dim); max-width: 560px; }
.card.wide { flex-direction: row; align-items: center; gap: 24px; padding: 14px; }
.card.wide .ui { flex: 1.3; }
.card.wide .wide-text { flex: 1; padding: 20px 28px 20px 8px; }
.card.wide h3 { margin: 0 0 10px; font-size: 26px; }
.card.wide p { margin: 0; }

/* The stage each UI sits on: the painted morning, softened. */
.ui {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  min-height: 260px; padding: 28px 22px;
  border-radius: 18px;
  background: #e9e6fb url("assets/scene-morning.webp") 50% 45% / cover no-repeat;
}
.ui::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(251, 251, 254, 0.1), rgba(251, 251, 254, 0.35)); }
.ui-panel {
  position: relative; width: 100%; max-width: 520px; min-width: 0;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 30px 60px -24px rgba(25, 23, 51, 0.45);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  font-size: 12.5px; line-height: 1.35; color: var(--ink); text-align: left;
}
.ui-title { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.ui-title small { margin-left: 8px; font-size: 11.5px; font-weight: 400; color: var(--faint); }
.ui-sub { margin: 3px 0 12px; font-size: 12px; color: var(--dim); }
.ui-cap { font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em; color: var(--faint); margin-bottom: 8px; }
.doc { width: 18px; height: 22px; flex-shrink: 0; border-radius: 3px; background: #fbf8f2; border: 1px solid rgba(25, 23, 51, 0.14); }
.doc.logo { background: linear-gradient(135deg, #b9c7ff, #6c82f5); border: 0; }
.doc.dmg { background: #e4e2ee; }
.btn-ui { flex-shrink: 0; padding: 5px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 500; background: #fff; border: 1px solid rgba(25, 23, 51, 0.13); white-space: nowrap; }
.tick { position: relative; width: 16px; height: 16px; border-radius: 50%; background: #30d158; flex-shrink: 0; }
.tick::after { content: ""; position: absolute; left: 5px; top: 3px; width: 4px; height: 7px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #30d158; flex-shrink: 0; }

.batch-row { display: flex; align-items: center; gap: 10px; padding: 9px 11px; margin-top: 6px; border-radius: 10px; background: #fff; border: 1px solid rgba(25, 23, 51, 0.09); }
.batch-row b { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.batch-row b em { display: block; font-style: normal; font-weight: 400; font-size: 11px; color: #a85700; }
.batch-row small { color: var(--faint); font-size: 11px; }
.batch-row .box { width: 16px; height: 16px; flex-shrink: 0; border-radius: 5px; border: 1.5px solid rgba(25, 23, 51, 0.25); font-size: 10px; line-height: 13px; text-align: center; color: #fff; }
.batch-row.on .box { background: var(--accent); border-color: var(--accent); }
.batch-row.held { background: #fff8ee; border-color: rgba(168, 87, 0, 0.25); }
.batch-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; margin-top: 12px; font-size: 11.5px; color: var(--dim); }
.go-pill { padding: 7px 14px; border-radius: 999px; font-weight: 600; color: #141a33; background: linear-gradient(160deg, #b9c7ff, #6c82f5); box-shadow: 0 10px 20px -8px rgba(108, 130, 245, 0.7); white-space: nowrap; }

.shrink .ok { font-size: 12px; }
.shrink .ok, .filed-card .ok { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #1e7a34; }
.shrink .big, .filed-card .big { margin-top: 6px; font-family: var(--display); font-size: 54px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.shrink .big span, .filed-card .big span { margin-left: 8px; font-size: 20px; font-weight: 500; letter-spacing: 0; color: var(--dim); }
.seg { display: flex; padding: 3px; border-radius: 9px; background: rgba(25, 23, 51, 0.07); }
.seg span { flex: 1; padding: 5px 0; border-radius: 7px; text-align: center; font-size: 11.5px; font-weight: 500; color: var(--dim); }
.seg span.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(25, 23, 51, 0.15); }
.sizes { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 14px; }
.sizes b { font-size: 12px; font-weight: 600; }
.sizes div { display: flex; align-items: center; gap: 10px; }
.sizes i { height: 10px; width: var(--w); max-width: 78%; border-radius: 999px; background: linear-gradient(90deg, var(--peri), var(--accent)); }
.sizes div:nth-child(2) i { background: rgba(25, 23, 51, 0.16); }
.sizes small { font-size: 11px; color: var(--dim); white-space: nowrap; }

.catch .watch { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.browsers { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.browsers span { padding: 4px 9px; border-radius: 999px; font-size: 11px; background: #fff; border: 1px solid rgba(25, 23, 51, 0.1); color: var(--dim); }
.partial { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 10px; background: #fff; border: 1px solid rgba(25, 23, 51, 0.09); }
.partial > div { flex: 1; min-width: 0; }
.partial b { display: block; font-weight: 600; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.partial small { font-size: 10.5px; color: var(--faint); }
.prog { margin-top: 6px; height: 5px; border-radius: 999px; background: rgba(25, 23, 51, 0.08); overflow: hidden; }
.prog i { display: block; height: 100%; border-radius: 999px; background: var(--accent); transform: translateX(-60%); animation: dl 3.2s var(--ease-out) infinite; }
@keyframes dl { from { transform: translateX(-88%); } to { transform: translateX(-8%); } }

.learn-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.learn-head b { font-family: var(--display); font-size: 20px; letter-spacing: -0.02em; }
.learn-head small { font-size: 11.5px; color: var(--faint); }
.term { display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin-top: 6px; border-radius: 10px; background: #fff; border: 1px solid rgba(25, 23, 51, 0.09); }
.term b { flex: 1; font-weight: 600; }
.term small { font-size: 11px; color: var(--faint); }
.sig { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.sig i { width: 3px; border-radius: 1px; background: var(--peri); }
.sig i:nth-child(1) { height: 5px; } .sig i:nth-child(2) { height: 8px; } .sig i:nth-child(3) { height: 12px; }
.sig.s2 i:nth-child(3) { background: rgba(25, 23, 51, 0.15); }
.term.warn { background: #fff8ee; border-color: rgba(168, 87, 0, 0.25); }
.term.warn b, .term.warn small { color: #a85700; }
.term .x { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(168, 87, 0, 0.14); color: #a85700; font-size: 13px; }

.aside-row { display: flex; align-items: center; gap: 12px; padding: 12px; margin-top: 10px; border-radius: 12px; background: #fff; border: 1px solid rgba(25, 23, 51, 0.09); }
.aside-row .doc { width: 26px; height: 26px; border-radius: 6px; }
.aside-row > div { flex: 1; min-width: 0; }
.aside-row b { display: block; font-weight: 600; }
.aside-row em { display: block; font-style: normal; font-size: 11px; color: #a85700; margin-top: 2px; }

.rename .tokens { display: flex; gap: 6px; margin-bottom: 14px; }
.rename .tokens span { padding: 4px 9px; border-radius: 7px; font-family: var(--mono); font-size: 11px; color: var(--accent-deep); background: rgba(78, 104, 240, 0.12); border: 1px solid rgba(78, 104, 240, 0.25); }
.rename .from { font-family: var(--mono); font-size: 11.5px; color: var(--faint); text-decoration: line-through; }
.rename .arrow { margin: 4px 0; color: var(--faint); }
.rename .to { font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: var(--ink); padding: 8px 10px; border-radius: 8px; background: #fff; border: 1px solid rgba(25, 23, 51, 0.09); }

.grab { max-width: 560px; background: rgba(18, 21, 41, 0.86); border-color: rgba(143, 165, 255, 0.28); color: var(--night-ink); }
.grab-head { display: flex; align-items: center; gap: 9px; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; color: var(--night-faint); }
.grab-head .mark { font-size: 15px; color: var(--night-ink); }
.grab-head kbd { margin-left: auto; font-family: var(--sans); font-size: 11px; letter-spacing: 0; }
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.scr { padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); }
.scr i { display: block; aspect-ratio: 16 / 10; border-radius: 7px; background: linear-gradient(160deg, #262a45, #15172a); margin-bottom: 8px; }
.scr b { display: block; font-size: 12px; font-weight: 600; }
.scr small { font-size: 10px; color: var(--night-faint); }
.scr.on { border-color: #8fa5ff; background: rgba(143, 165, 255, 0.12); }
.scr.on i { background: url("assets/scene-sunrise.webp") center / cover; }

.privacy { background: linear-gradient(160deg, var(--accent) 0%, var(--accent-deep) 100%); color: #fff; }
.privacy .eyebrow { color: #c9d2ff; }
.privacy h2 { margin-top: 30px; max-width: 900px; font-family: var(--display); font-size: clamp(46px, 6vw, 76px); letter-spacing: -0.04em; line-height: 1; }
/* The promise and its caveat are set at the same size on purpose: a caveat
   in smaller type than the claim it qualifies is overclaiming in typography. */
.privacy-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 44px; font-size: 20px; line-height: 1.5; }

.interlude {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  min-height: 600px; padding: 120px 0;
  text-align: center;
  background: #e9e6fb url("assets/scene-morning.webp") 50% 40% / cover no-repeat;
}
.interlude h2 { font-family: var(--display); font-size: clamp(48px, 6.4vw, 84px); letter-spacing: -0.042em; line-height: 1; }
.interlude p { max-width: 620px; font-size: 19px; line-height: 1.5; color: var(--ink-sky); }

/* ---------- How it works: one stage, four screens, driven by scroll ---------- */

.how { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 72px; margin-top: 40px; }
.how-stage { position: sticky; top: max(96px, calc(50vh - 250px)); align-self: start; }
.stage-card {
  position: relative; overflow: hidden;
  aspect-ratio: 560 / 470;
  border-radius: 28px;
  background: #e9e6fb url("assets/scene-morning.webp") 50% 45% / cover no-repeat;
  box-shadow: 0 40px 80px -48px rgba(25, 23, 51, 0.5);
  --k: 1;
}
.panels { position: absolute; left: 0; top: 0; width: 560px; height: 470px; transform: scale(var(--k)); transform-origin: 0 0; }
.panel {
  position: absolute; inset: 0;
  opacity: 0; transform: translateY(14px) scale(0.98); filter: blur(6px);
  /* Leaving is quick so the outgoing screen never smears into the next one. */
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), filter 220ms var(--ease-out);
  pointer-events: none;
}
.panel.on {
  opacity: 1; transform: none; filter: none;
  transition: opacity 520ms var(--ease-out) 60ms, transform 620ms var(--ease-out) 60ms, filter 520ms var(--ease-out) 60ms;
}

/* 02 read */
.read-page { position: absolute; left: 34px; top: 44px; width: 210px; height: 280px; padding: 22px 20px; border-radius: 10px; background: #fbf8f2; box-shadow: 0 30px 60px -20px rgba(25, 23, 51, 0.5); display: flex; flex-direction: column; gap: 9px; transform: rotate(-3deg); }
.read-page .kind { font-size: 7px; font-weight: 700; letter-spacing: 0.16em; color: #b0392a; }
.read-page .who, .read-page .read-line { font-size: 12px; font-weight: 600; color: #241f18; }
.read-page .read-line { font-weight: 500; }
.read-page mark { background: rgba(143, 165, 255, 0.45); color: inherit; border-radius: 3px; padding: 0 2px; }
.read-page .total { margin-top: auto; align-self: flex-end; font-size: 15px; font-weight: 700; color: #241f18; }
.read-card { position: absolute; right: 28px; top: 96px; width: 300px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.9); border: 1px solid #fff; box-shadow: 0 30px 60px -22px rgba(25, 23, 51, 0.5); }
.read-row { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(25, 23, 51, 0.07); font-size: 12px; }
.read-row small { color: var(--faint); padding-top: 1px; }
.read-row b { font-weight: 500; }
.name-chip { display: inline-block; padding: 2px 8px; border-radius: 999px; background: rgba(78, 104, 240, 0.12); color: var(--accent-deep); font-weight: 600; }

/* 03 weigh */
.panel .signals { position: absolute; left: 50%; top: 50%; width: 440px; transform: translate(-50%, -50%); display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: 18px; background: rgba(255, 255, 255, 0.88); border: 1px solid #fff; box-shadow: 0 30px 60px -22px rgba(25, 23, 51, 0.5); }
.signals .eyebrow { color: var(--faint); font-size: 10.5px; }
.signal-top { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; }
.signal-top span { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--dim); }
.bar { margin-top: 7px; height: 9px; border-radius: 999px; background: rgba(25, 23, 51, 0.07); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); border-radius: 999px; background: linear-gradient(90deg, var(--peri), var(--accent)); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1000ms var(--ease-out); }
.panel.on .bar i { transform: scaleX(1); }
.panel.on .signal:nth-child(3) .bar i { transition-delay: 80ms; }
.panel.on .signal:nth-child(4) .bar i { transition-delay: 160ms; }
.panel.on .signal:nth-child(5) .bar i { transition-delay: 240ms; }
.panel.on .signal:nth-child(6) .bar i { transition-delay: 320ms; }

/* 04 filed */
.filed-card { position: absolute; left: 50%; top: 50%; width: 460px; transform: translate(-50%, -50%); padding: 26px; border-radius: 18px; background: rgba(255, 255, 255, 0.9); border: 1px solid #fff; box-shadow: 0 30px 60px -22px rgba(25, 23, 51, 0.5); }
.filed-card p { margin-top: 10px; font-size: 13px; color: var(--dim); }
.dest { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid rgba(25, 23, 51, 0.1); }
.dest > div { flex: 1; min-width: 0; }
.dest b { display: block; font-size: 13.5px; }
.dest small { font-size: 11.5px; color: var(--faint); }
.panel.on .filed-card .tick { animation: pop 520ms var(--ease-out) both 150ms; }
@keyframes pop { from { opacity: 0; transform: scale(0.5); } 70% { opacity: 1; transform: scale(1.1); } to { transform: scale(1); } }

.stage-caption { display: none; }
.stage-progress { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.stage-progress i { flex: 1; height: 2px; border-radius: 2px; background: var(--line); transition: background 300ms; }
.stage-progress i.on { background: var(--accent); }
.stage-progress span { margin-left: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--faint); }

.steps { list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: 34px 1fr; gap: 20px; min-height: 62vh; align-content: center; opacity: 0.32; transition: opacity 420ms var(--ease-out); }
.step:first-child { min-height: 50vh; align-content: start; padding-top: 12vh; }
.step:last-child { min-height: 70vh; }
.step.on { opacity: 1; }
.step .n { font-family: var(--mono); font-size: 12px; color: var(--accent); padding-top: 9px; }
.step h3 { font-family: var(--display); font-size: clamp(28px, 3vw, 38px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.step p { margin-top: 12px; font-size: 18px; line-height: 1.55; color: var(--dim); max-width: 440px; }

.pricing {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 56px;
  padding: clamp(110px, 12vw, 140px) 0 clamp(120px, 13vw, 160px);
  text-align: center; color: var(--night-ink);
  background: var(--night);
}
.pricing > .scene { transform: none; }
.pricing > .scene video, .pricing > .scene img { object-position: 50% 60%; }
.pricing > *:not(.scene) { position: relative; }
.pricing h2 { font-family: var(--display); font-size: clamp(46px, 6vw, 76px); letter-spacing: -0.04em; line-height: 1; }
.pricing .sub { margin: 16px auto 0; max-width: 560px; font-size: 19px; color: var(--night-dim); }
.seats {
  position: relative;
  display: inline-flex; padding: 4px; margin-bottom: -28px; border-radius: 999px;
  background: rgba(18, 21, 41, 0.55);
  border: 1px solid rgba(143, 165, 255, 0.35);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.seats[hidden] { display: none; }
.seats button, .seats-lit span {
  font: inherit; font-size: 15px; font-weight: 600; line-height: 20px;
  padding: 9px 20px; border-radius: 999px; white-space: nowrap;
}
.seats button {
  border: 0; cursor: pointer;
  background: none; color: var(--night-dim);
  transition: color 150ms ease;
}
.seats button:focus-visible { outline: 2px solid var(--peri); outline-offset: 2px; }
/* A lit copy of the labels, clipped to the chosen one. Sliding the clip moves
   the pill and swaps the text colour in the same motion, with no in-between
   frame where dark text sits on a dark track. */
.seats-lit {
  position: absolute; inset: 4px;
  display: flex; pointer-events: none;
  border-radius: 999px;
  background: var(--night-ink); color: var(--ink);
  transition: clip-path 280ms var(--ease-in-out);
}
.seats-lit.still { transition: none; }
.pricing .family-note { margin-top: -28px; font-size: 16px; color: var(--night-dim); }
.pricing .family-note[hidden] { display: none; }
.plans { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; width: min(780px, 100% - 40px); }
.plan {
  flex: 1 1 300px;
  display: flex; flex-direction: column; gap: 18px;
  padding: 34px; border-radius: 24px; text-align: left;
  background: rgba(18, 21, 41, 0.55);
  border: 1px solid rgba(143, 165, 255, 0.35);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.plan .eyebrow { color: var(--peri); }
.plan .price { display: flex; align-items: baseline; gap: 8px; }
.plan .price strong { font-family: var(--display); font-size: 64px; letter-spacing: -0.04em; line-height: 1; }
.plan .price span { color: var(--night-faint); }
.plan p { font-size: 16px; color: var(--night-dim); }
.plan .btn { margin-top: 4px; }
.pricing .req { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--night-faint); }

.faq { display: grid; grid-template-columns: 320px 1fr; gap: 72px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list p a { color: var(--accent); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 26px 0; cursor: pointer; list-style: none;
  font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 12px; height: 12px; flex-shrink: 0;
  background:
    linear-gradient(var(--dim), var(--dim)) center / 12px 1.6px no-repeat,
    linear-gradient(var(--dim), var(--dim)) center / 1.6px 12px no-repeat;
  transition: transform 220ms var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 26px 0; color: var(--dim); max-width: 620px; }
.faq details::details-content { opacity: 0; transition: opacity 200ms var(--ease-out), content-visibility 200ms allow-discrete; }
.faq details[open]::details-content { opacity: 1; }

.footer { padding: 56px 0 64px; border-top: 1px solid var(--line); }
.footer .wrap { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.footer-brand .mark { font-size: 22px; }
.footer-made { margin-top: 14px; font-size: 14px; color: var(--dim); }
.footer-cols { display: flex; gap: 64px; }
.footer-cols div { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-cols .eyebrow { font-size: 11px; color: var(--faint); letter-spacing: 0.16em; }
.footer-cols a:hover { color: var(--accent); }
.footer-legal { margin-top: 40px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--faint); }

/* ---------- Reveal ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Smaller screens ---------- */

@media (max-width: 1100px) {
  .nav-price { display: none; }
  .how { grid-template-columns: 1fr 1fr; gap: 40px; }
  .step p { font-size: 16px; }
}

@media (max-width: 820px) {
  :root { --gutter: 16px; }
  .nav { gap: 12px; }
  .nav { grid-template-columns: 1fr auto; }
  .nav-links, .nav-price { display: none; }
  .facts .wrap { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .does-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .bento { grid-template-columns: 1fr; }
  .card.span-2, .card.span-3 { grid-column: auto; }
  .card.wide { flex-direction: column; align-items: stretch; }
  .card.wide .wide-text { padding: 6px 18px 16px; }
  .ui { min-height: 220px; padding: 22px 14px; }
  /* Phones: the stage pins under the nav and the steps scroll up beneath it. */
  .how { grid-template-columns: 1fr; gap: 0; }
  .how-stage { top: 78px; z-index: 2; padding-bottom: 8px; background: var(--ground); }
  .stage-progress { margin-top: 10px; }
  .stage-caption { display: block; min-height: 150px; padding-top: 16px; }
  .stage-caption h3 { font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }
  .stage-caption p { margin-top: 8px; font-size: 16px; line-height: 1.5; color: var(--dim); }
  /* The list still drives the scroll and is still read aloud; the caption is what's seen. */
  .step, .step:first-child, .step:last-child { min-height: 70vh; padding: 0; opacity: 0; pointer-events: none; }
  .aside-row { flex-wrap: wrap; }
  .aside-row > div { flex: 1 1 60%; }
  .aside-row .btn-ui { margin-left: 38px; }
  .term { flex-wrap: wrap; row-gap: 2px; }
  .privacy-cols { grid-template-columns: 1fr; gap: 20px; font-size: 18px; }
  .faq { grid-template-columns: 1fr; gap: 32px; }
  .faq details p { padding-right: 0; }
  .beat-1, .beat-2 { top: 15vh; }
  .beat-3 { top: 12vh; }
  .chip { font-size: 12px; }
  .plan { padding: 28px; }
}

@media (max-width: 480px) {
  .hero { height: 380vh; }
  .btn { height: 46px; padding: 0 20px; font-size: 15px; }
  .nav .btn { padding: 0 14px; }
  .cta-row .btn { flex: 1 1 100%; }
}

/* ---------- Reduced motion: the finished frame, no choreography ---------- */

@media (prefers-reduced-motion: reduce) {
  .hero { height: auto; }
  .stage { position: relative; height: 100vh; min-height: 760px; }
  .scene { transform: none; }
  .beat-0, .beat-1, .beat-2, .chips, .scroll-cue { display: none; }
  .beat-3 { opacity: 1; }
  .w-match::after { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .bar i { transform: none; transition: none; }
  .btn { transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  .seats-lit { transition: none; }
  .world { transform: none; }
  .panel, .stage-progress i, .step { transition: none; }
  .panel.on .filed-card .tick, .prog i { animation: none; }
  .bar i { transform: none; }
}

/* ---------- Real-app cards added after walking through iFiley itself ---------- */

.words .word-add { display: flex; gap: 8px; }
.offer { display: flex; gap: 10px; padding: 11px 12px; margin-bottom: 14px; border-radius: 11px; background: rgba(78, 104, 240, 0.09); border: 1px solid rgba(78, 104, 240, 0.25); font-size: 12.5px; }
.offer-star { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--accent); background: rgba(78, 104, 240, 0.16); }
.offer b { display: block; font-weight: 600; line-height: 16px; }
.offer small { display: block; margin-top: 4px; font-size: 11px; line-height: 14px; color: var(--dim); }
.offer-btns { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 11px; color: var(--dim); }
.offer-btns .yes { padding: 4px 10px; border-radius: 999px; font-weight: 600; color: #141a33; background: linear-gradient(160deg, #b9c7ff, #6c82f5); }
.word-field { flex: 1; display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 9px; background: #fff; border: 1px solid rgba(78, 104, 240, 0.45); box-shadow: 0 0 0 3px rgba(78, 104, 240, 0.12); font-size: 12.5px; }
.word-field::after { content: ""; width: 1px; height: 14px; margin-left: -6px; background: var(--accent); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.word-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.word-chips span { padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 500; color: var(--accent-deep); background: rgba(78, 104, 240, 0.1); border: 1px solid rgba(78, 104, 240, 0.22); }
.word-note { margin-top: 12px; font-size: 11px; color: var(--faint); }

.place { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px solid rgba(25, 23, 51, 0.07); font-size: 12.5px; }
.place b { flex: 1; font-weight: 500; }
.place small { font-size: 11px; color: var(--faint); }
.place-group { padding: 8px 4px 0; font-size: 11px; font-weight: 600; color: var(--faint); }
.place.sub { padding-left: 29px; }
.place.off { opacity: 0.5; }
.term.quiet b { color: var(--dim); }
.term.quiet .sig i:nth-child(1) { background: rgba(25, 23, 51, 0.3); }
.place.add { color: var(--accent); font-weight: 500; border-bottom: 0; padding-top: 8px; }
.place.add + .place.add { padding-top: 2px; }
.folder-ic { width: 16px; height: 12px; border-radius: 2px 2px 3px 3px; background: #6aa9f5; position: relative; flex-shrink: 0; }
.folder-ic::before { content: ""; position: absolute; left: 0; top: -2px; width: 7px; height: 3px; border-radius: 2px 2px 0 0; background: #6aa9f5; }
.catch .partial { margin-top: 10px; }

.metrics { display: flex; gap: 28px; margin: -4px 0 14px; }
.metrics b { display: block; font-family: var(--display); font-size: 17px; letter-spacing: -0.02em; }
.metrics small { font-size: 10.5px; color: var(--faint); }
.sig.s1 i:nth-child(2), .sig.s1 i:nth-child(3) { background: rgba(25, 23, 51, 0.15); }
.sig.s1 i:nth-child(1) { background: #ffb454; }

.act-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.act-head b { font-size: 15px; }
.act-head small { font-size: 11px; color: var(--faint); }
.act-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-top: 6px; border-radius: 10px; background: #fff; border: 1px solid rgba(25, 23, 51, 0.09); }
.act-row > div { flex: 1; min-width: 0; }
.act-row b { display: block; font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-row small { font-size: 10.5px; color: var(--faint); }

.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sw { padding: 6px; border-radius: 11px; border: 1px solid rgba(25, 23, 51, 0.1); background: #fff; }
.sw.on { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(78, 104, 240, 0.2); }
.sw i { position: relative; display: block; height: 46px; border-radius: 7px; overflow: hidden; }
.sw i em { position: absolute; left: 8%; top: 18%; width: 22%; height: 64%; border-radius: 2px; background: #fbf8f2; }
.sw i u { position: absolute; left: 36%; right: 8%; top: 38%; height: 26%; border-radius: 3px; background: linear-gradient(135deg, #8fa5ff, #4e68f0); }
.sw.dusk i { background: linear-gradient(168deg, #1b1f38, #0a0b16); }
.sw.light i { background: linear-gradient(150deg, var(--iri-1), var(--iri-2), var(--iri-3)); }
.sw.dark i { background: #111113; }
.sw b { display: block; margin-top: 6px; font-size: 11.5px; font-weight: 600; text-align: center; }
.follow { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 12px; color: var(--dim); }
.switch { width: 30px; height: 18px; border-radius: 999px; background: rgba(25, 23, 51, 0.15); position: relative; }
.switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }

/* Step 01: the window, and the Dock it lives in. */
.mini-win { position: absolute; left: 60px; right: 60px; top: 46px; height: 260px; border-radius: 12px; overflow: hidden; background: linear-gradient(150deg, var(--iri-1), var(--iri-2), var(--iri-3)); box-shadow: 0 30px 60px -20px rgba(25, 23, 51, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.7); }
.mini-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; }
.mini-bar span { width: 9px; height: 9px; border-radius: 50%; background: #d6d2e2; }
.mini-bar span:first-child { background: #ff5f57; }
.mini-bar b { margin-left: 12px; font-size: 14px; letter-spacing: -0.01em; }
.mini-bar small { font-size: 10.5px; color: var(--faint); }
.mini-body { display: flex; gap: 16px; padding: 8px 16px; }
.mini-page { width: 120px; height: 160px; flex-shrink: 0; padding: 14px 12px; border-radius: 7px; background: #fbf8f2; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.35); display: flex; flex-direction: column; gap: 8px; }
.mini-page .kind { font-size: 6px; font-weight: 700; letter-spacing: 0.16em; color: #b0392a; }
.mini-page .w-rules { margin: 0; gap: 4px; }
.mini-page .w-rules i { height: 2.5px; }
.mini-where { flex: 1; padding-top: 4px; }
.mini-match { padding: 14px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #8fa5ff 0%, #4259e2 9%, #3a34b8 100%); box-shadow: 0 16px 34px -12px rgba(78, 104, 240, 0.6); }
.mini-match small { display: block; font-size: 8px; font-weight: 700; letter-spacing: 0.14em; opacity: 0.92; }
.mini-match b { display: block; margin-top: 4px; font-size: 18px; letter-spacing: -0.02em; }
.dock { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; align-items: flex-end; gap: 10px; padding: 8px 12px; border-radius: 20px; background: rgba(255, 255, 255, 0.45); border: 1px solid rgba(255, 255, 255, 0.7); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 20px 40px -18px rgba(25, 23, 51, 0.45); }
.dock i { width: 46px; height: 46px; border-radius: 11px; background: rgba(255, 255, 255, 0.7); }
.dock .t1 { background: linear-gradient(160deg, #d9dde8, #b8bfd0); }
.dock .t2 { background: linear-gradient(160deg, #ececf2, #d2d4de); }
.dock .t3 { background: linear-gradient(160deg, #c9d0e0, #a9b2c6); }
.dock .t4 { background: linear-gradient(160deg, #e2e4ec, #c4c8d4); }
.dock-app { position: relative; }
.dock-app img { width: 46px; height: 46px; border-radius: 11px; }
.dock-app em { position: absolute; right: -5px; top: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #ff3b30; color: #fff; font: 700 11px/18px var(--sans); font-style: normal; text-align: center; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8); }
.panel.on .mini-win { animation: rise 700ms var(--ease-out) both 100ms; }
.panel.on .dock-app { animation: bounce 900ms var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes bounce { 0% { transform: translateY(0); } 25% { transform: translateY(-16px); } 50% { transform: translateY(0); } 70% { transform: translateY(-7px); } 100% { transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .panel.on .mini-win, .panel.on .dock-app, .word-field::after { animation: none; }
}

/* ---------- Pages: privacy, terms, support, what's new ----------
   Drawn in Paper first (iFiley Redesign, page "Site pages"). One reading
   column under the same nav, with the landing's morning wash behind the title. */

.page-wrap { width: min(880px, 100% - var(--gutter) * 2); margin-inline: auto; }
.page-head {
  padding: 150px 0 56px;
  background: linear-gradient(180deg, var(--iri-1) 0%, #f6f1f8 55%, var(--ground) 100%);
}
.page-head .eyebrow { color: var(--faint); }
.page-head h1 { margin-top: 18px; font-family: var(--display); font-size: clamp(52px, 7vw, 72px); letter-spacing: -0.045em; line-height: 1; }
.page-head .lede a { color: var(--accent); }
.page-head .lede { margin-top: 18px; max-width: 640px; font-size: clamp(18px, 2vw, 21px); line-height: 1.48; color: var(--dim); }
.page-main { padding-bottom: 96px; }

.glance { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.glance > div, .key-facts > div, .answers > div {
  border-radius: 24px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 24px 48px -36px rgba(25, 23, 51, 0.25);
}
.glance > div { padding: 28px 30px 30px; }
.glance .lit, .key-facts .lit {
  color: #fff; border-color: transparent;
  background: linear-gradient(150deg, var(--accent) 0%, var(--accent-deep) 100%);
  box-shadow: 0 30px 60px -30px rgba(58, 52, 184, 0.6);
}
.glance .eyebrow { font-size: 11px; color: var(--faint); }
.glance .lit .eyebrow { color: #c9d2ff; }
.glance h2 { margin-top: 16px; font-family: var(--display); font-size: 26px; line-height: 1.15; letter-spacing: -0.03em; }
.glance ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 9px; font-size: 15.5px; line-height: 1.42; color: var(--dim); }
.glance .lit ul { color: #e4e8ff; }

.key-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.key-facts > div { padding: 24px 26px; border-radius: 20px; box-shadow: none; }
.key-facts strong { display: block; font-family: var(--display); font-size: 40px; line-height: 1; letter-spacing: -0.04em; }
.key-facts span { display: block; margin-top: 8px; font-size: 15px; line-height: 1.4; color: var(--dim); }
.key-facts .lit span { color: #e4e8ff; }

.doc-rows { margin-top: 72px; border-top: 1px solid var(--line); }
.doc-row { display: grid; grid-template-columns: 200px 1fr; gap: 40px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.doc-row h2 { font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.4; }
.doc-row p { font-size: 17px; line-height: 1.65; color: var(--dim); }
.doc-row a, .answers a { color: var(--accent); }

.mail-card {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 36px 40px; border-radius: 28px; color: #fff;
  background: linear-gradient(135deg, #8fa5ff 0%, #4259e2 12%, #3a34b8 100%);
  box-shadow: 0 36px 70px -34px rgba(58, 52, 184, 0.65);
}
.mail-card .eyebrow { font-size: 11px; color: #c9d2ff; }
.mail-card h2 { margin-top: 10px; font-family: var(--display); font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.035em; line-height: 1.1; overflow-wrap: anywhere; }
.mail-card p { margin-top: 10px; max-width: 460px; font-size: 15px; line-height: 1.47; color: #e4e8ff; }
.mail-card .btn { flex-shrink: 0; }

/* Download, before 1.0: the mail card stacks and carries the launch signup.
   The form posts to /api/notify, which sends people back to #joined or
   #retry, and :target shows the matching line. No JS on this page. */
.notify-card { flex-direction: column; align-items: stretch; gap: 28px; }
.notify-form {
  display: flex; align-items: center; gap: 10px; max-width: 560px; padding: 6px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.28);
}
.notify-form input[type="email"] {
  flex: 1; min-width: 0; height: 44px; padding: 0 18px; border: 0; border-radius: 999px;
  background: transparent; color: #fff; font: inherit; font-size: 16px; outline: none;
}
.notify-form input[type="email"]::placeholder { color: #c9d2ff; }
.notify-form:focus-within { border-color: rgba(255, 255, 255, 0.7); }
.notify-form .btn { height: 44px; padding: 0 22px; }
.notify-form .trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.notify-card .notify-note { scroll-margin-top: 45vh; display: none; margin-top: 0; max-width: none; font-size: 16px; font-weight: 500; color: #fff; }
.notify-card .notify-note:target { display: block; }
.notify-card:has(#joined:target) .notify-form { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.answers.answers-3 { grid-template-columns: repeat(3, 1fr); }

.answers-title { margin-top: 72px; font-family: var(--display); font-size: 32px; letter-spacing: -0.035em; }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.answers > div { padding: 24px 26px; border-radius: 20px; box-shadow: none; }
.answers h3 { font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.answers p { margin-top: 8px; font-size: 15.5px; line-height: 1.55; color: var(--dim); }

.release { display: grid; grid-template-columns: 200px 1fr; gap: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.release .ver { font-family: var(--display); font-size: 56px; font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
.release .soon {
  display: inline-block; margin-top: 12px; padding: 4px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: #a15300;
  background: #fff3e0; border: 1px solid rgba(161, 83, 0, 0.25);
}
.release h2 { font-family: var(--display); font-size: 24px; line-height: 1.25; letter-spacing: -0.03em; }
.changes { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; font-size: 17px; line-height: 1.53; color: var(--dim); }
.changes li { position: relative; padding-left: 20px; }
.changes li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.footer-cols a[aria-current="page"] { color: var(--accent); font-weight: 500; }

@media (max-width: 820px) {
  .page-head { padding: 120px 0 40px; }
  .glance, .key-facts, .answers { grid-template-columns: 1fr; }
  .doc-row, .release { grid-template-columns: 1fr; gap: 8px; }
  .doc-rows { margin-top: 56px; }
  .release { gap: 20px; }
  .mail-card { flex-direction: column; align-items: flex-start; padding: 28px; }
  .notify-card { align-items: stretch; }
  .answers.answers-3 { grid-template-columns: 1fr; }
}

/* ---------- Moving between pages ----------
   Browsers that support cross-page view transitions fade the old page out
   quickly and bring the new one up; the nav is held still across the swap so
   it reads as one site, not a reload. Elsewhere it's a normal page load. */

@view-transition { navigation: auto; }
.nav { view-transition-name: site-nav; }
::view-transition-group(site-nav) { animation-duration: 0s; }
::view-transition-old(root) { animation: page-out 160ms var(--ease-out) both; }
::view-transition-new(root) { animation: page-in 340ms var(--ease-out) both; }
@keyframes page-out { to { opacity: 0; } }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }

/* The text pages settle in a beat at a time, on any browser. */
.page-head .eyebrow, .page-head h1, .page-head .lede, .page-main > * {
  animation: page-rise 560ms var(--ease-out) both;
}
.page-head h1 { animation-delay: 50ms; }
.page-head .lede { animation-delay: 100ms; }
.page-main > * { animation-delay: 170ms; }
.page-main > * + * { animation-delay: 230ms; }
@keyframes page-rise { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .page-head .eyebrow, .page-head h1, .page-head .lede, .page-main > * { animation: none; }
}
