/* The site's pages, on top of base.css: the Edge hero, the feature sections, the grid, the FAQ, the footer,
   and the mock-up visuals that stand in for captures until the end. */

/* ---- Page ---- */
.page { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.nav { max-width: 1180px; margin: 0 auto; }
.nav-links a.current { color: var(--text); }
h2, h3 { font-family: var(--font-display); letter-spacing: -0.025em; margin: 0; }
p { margin: 0; }
sup { font-size: 0.6em; vertical-align: super; color: var(--text-3); }

/* Draft marks: planned features. Strip before publishing (see README). */
.planned {
  display: inline-block; vertical-align: 0.2em; margin-left: 6px; padding: 2px 7px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: #ffd07a; background: rgba(255, 208, 122, 0.12); border: 1px solid rgba(255, 208, 122, 0.3);
}
.mock {
  position: absolute; z-index: 3; top: 10px; right: 10px; padding: 2px 7px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-3); background: rgba(0, 0, 0, 0.35); border: 1px solid var(--hairline);
}

/* ---- Hero (Edge) ---- */
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(24px, 5vw, 72px);
  padding: clamp(32px, 6vw, 72px) 0 clamp(56px, 8vw, 110px); min-height: min(calc(100vh - 66px), 820px);
}
.wordmark {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.04em;
  font-size: clamp(54px, 9vw, 112px); line-height: 1; margin: 0;
  background: var(--sheen-linear); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift { from { background-position: 0% 0; } to { background-position: 100% 0; } }
.tagline {
  font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 40px); font-weight: 600;
  letter-spacing: -0.025em; line-height: 1.1; margin: 18px 0 0;
}
.sub { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.5; color: var(--text-2); max-width: 30em; margin: 20px 0 0; }
.ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.facts { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 40px; font-size: 13.5px; color: var(--text-3); font-weight: 500; }
.facts span::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--text-3); margin: 0 8px 2px 0; }
.stage { position: relative; display: grid; place-items: center; }
.stage .phone { --w: clamp(250px, 25vw, 312px); }
/* The rim: a thin sheen line around the frame, as if light caught its edge. */
.stage .phone::before {
  content: ""; position: absolute; inset: -1.5px; border-radius: inherit; padding: 1.5px;
  background: var(--sheen);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0.85; animation: sheen-turn 18s linear infinite; pointer-events: none;
}

/* ---- Feature sections ---- */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 5vw, 72px);
  padding: clamp(40px, 6vw, 84px) 0; border-top: 1px solid var(--hairline); scroll-margin-top: 20px;
}
.feature.flip .words { order: 2; }
.feature h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08; max-width: 14ch; }
.feature .words p { font-size: clamp(16.5px, 1.5vw, 19px); line-height: 1.55; color: var(--text-2); margin-top: 16px; max-width: 32em; }
.feature .words p b { color: var(--text); font-weight: 600; }
.visual { position: relative; }
.card { position: relative; border-radius: 26px; padding: 22px; overflow: hidden; }

/* The transcript panel (from mock-up C). */
.reader { padding: 22px 26px 26px 18px; }
.reader-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: var(--text-3); font-weight: 600; }
.reader-head > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.corner { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; flex: none; }
.corner span { padding: 5px 11px; border-radius: 999px; color: var(--text-2); font-size: 12.5px; }
.window {
  position: relative; height: calc(5 * 1.5em + 8px); overflow: hidden; margin-top: 14px; padding-left: 20px;
  font-size: clamp(16px, 2vw, 24px); letter-spacing: -0.012em;
  -webkit-mask: linear-gradient(transparent, #000 22%, #000 70%, transparent);
          mask: linear-gradient(transparent, #000 22%, #000 70%, transparent);
}
.lines { position: absolute; left: 20px; right: 0; top: 0; transition: transform 0.7s cubic-bezier(.3,.7,.2,1); }
.line { height: 1.5em; line-height: 1.5em; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .5s, font-weight .5s; }
.line.now { color: var(--text); font-weight: 700; }
.line.fold { color: var(--text-2); font-weight: 600; display: flex; align-items: center; gap: 10px; }
.line.fold span { font-size: 0.66em; }
.line.fold i { flex: 0 0 34px; height: 8px; border-radius: 4px; background: repeating-linear-gradient(-45deg, rgba(255,255,255,.35) 0 3px, transparent 3px 6px); }
.marker {
  position: absolute; left: 2px; top: calc(2 * 1.5em + 0.2em); width: 4px; height: 1.1em; border-radius: 2px;
  background: var(--sheen); animation: sheen-turn 8s linear infinite; box-shadow: 0 0 14px rgba(140, 170, 255, 0.55);
}

/* A small player strip: scrubber with skips, a notice that appears. */
.strip { padding: 22px 24px 20px; }
.strip .track { display: flex; gap: 3px; height: 6px; }
.strip .track span { border-radius: 999px; background: rgba(255,255,255,.22); }
.strip .track .done { background: rgba(255,255,255,.9); }
.strip .track .skip { background: repeating-linear-gradient(-45deg, rgba(255,255,255,.3) 0 2.5px, transparent 2.5px 5px); }
.strip .track .head { position: relative; }
.strip .track .head::after {
  content: ""; position: absolute; top: -5px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  left: var(--at, 0%); transform: translateX(-50%); box-shadow: 0 2px 8px rgba(0,0,0,.5);
  animation: head-skip 6s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes head-skip {
  0%, 38% { left: 0%; } 46%, 100% { left: 100%; }
}
.strip .times { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--text-3); font-weight: 600; font-variant-numeric: tabular-nums; }
.strip .row { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; min-height: 44px; }
.strip .speed { font-size: 15px; font-weight: 600; color: var(--text-2); }
.strip .float-pill { opacity: 0; transform: translateY(6px); animation: notice-in 6s ease infinite; }
@keyframes notice-in {
  0%, 44% { opacity: 0; transform: translateY(6px); }
  50%, 90% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: translateY(6px); }
}

/* Chapter list with the rail. */
.chapters { padding: 16px 0 16px 20px; display: grid; grid-template-columns: 1fr 28px; }
.chapter {
  display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px;
  padding: 11px 16px 11px 0; font-size: 15px; color: var(--text-2); border-bottom: 1px solid var(--hairline);
  transition: transform .3s, color .3s;
}
.chapter:last-child { border-bottom: 0; }
.chapter i { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--text-3); display: grid; place-items: center; font-style: normal; font-size: 12px; color: var(--text-3); }
.chapter.heard i { background: var(--text-3); color: var(--bg); border-color: transparent; }
.chapter.now { color: var(--text); font-weight: 600; }
.chapter.now i { border-color: var(--text); color: var(--text); }
.chapter.lift { color: var(--text); font-weight: 600; transform: translateX(-6px) scale(1.03); }
.chapter .t { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--text-3); }
.chapter.ad { color: var(--text-3); font-size: 13px; padding: 7px 16px 7px 0; }
.chapter.ad i { border-style: dashed; }
.chapter small { font-size: 12px; color: var(--text-3); font-weight: 500; margin-left: 8px; }
.rail { position: relative; width: 28px; border-left: 1px solid var(--hairline); }
.rail::before { content: ""; position: absolute; left: 10px; top: 46%; width: 8px; height: 8px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 4px rgba(255,255,255,.12); }
.rail i { position: absolute; left: 12px; width: 4px; height: 4px; border-radius: 50%; background: var(--text-3); }

/* Reorder: a dragged row. */
.reorder .chapter { grid-template-columns: 18px 1fr auto; }
.reorder .chapter i { width: 18px; height: 18px; border-radius: 4px; border: 0; background: none; color: var(--text-3); font-size: 14px; letter-spacing: -1px; }
.reorder .chapter.drag {
  background: rgba(255,255,255,.08); border-radius: 14px; border-bottom: 0; padding-left: 12px; margin: 4px 8px 4px -12px;
  box-shadow: 0 14px 30px rgba(0,0,0,.5); color: var(--text); font-weight: 600;
  animation: drag 7s cubic-bezier(.35,.7,.2,1) infinite;
}
@keyframes drag { 0%, 20% { transform: translateY(0); } 50%, 80% { transform: translateY(-92px); } 100% { transform: translateY(0); } }
.reorder .chapter.drag small { color: #ffd07a; }
.reorder .edit { display: flex; justify-content: flex-end; padding: 0 16px 10px 0; }
.reorder .edit span { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.reorder .edit span b { padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.14); }
.reorder .edit span em { padding: 5px 11px; font-style: normal; color: var(--text-2); }

/* Feeds: the switcher and the copy move. */
.feeds { padding: 22px 24px 24px; display: grid; gap: 18px; }
.feeds .switch { display: flex; padding: 3px; border-radius: 999px; font-size: 13.5px; font-weight: 600; width: max-content; }
.feeds .switch span { padding: 7px 16px; border-radius: 999px; color: var(--text-2); }
.feeds .switch span.on { background: rgba(255,255,255,.16); color: var(--text); }
.feeds .switch span.on::after { content: " ♛"; font-size: 11px; color: #ffd07a; }
.feeds .ep { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; }
.feeds .ep .art2 { width: 52px; height: 52px; border-radius: 10px; background: radial-gradient(60% 60% at 50% 42%, #ffcf7a 0%, #f39a53 26%, transparent 27%), linear-gradient(160deg, #3b2a6e, #1c1840); }
.feeds .ep b { display: block; font-size: 15px; }
.feeds .ep span { font-size: 13px; color: var(--text-3); }
.feeds .bar { position: relative; height: 6px; border-radius: 999px; background: rgba(255,255,255,.18); }
.feeds .bar::before { content: ""; position: absolute; inset: 0 44% 0 0; border-radius: 999px; background: rgba(255,255,255,.9); }
.feeds .bar::after { content: ""; position: absolute; top: 0; bottom: 0; left: 78%; width: 22%; border-radius: 999px; background: repeating-linear-gradient(-45deg, rgba(255,208,122,.45) 0 3px, transparent 3px 6px); }
.feeds .bonus { font-size: 12px; color: var(--text-3); display: flex; justify-content: space-between; margin-top: -8px; }
.feeds .bonus b { color: #ffd07a; font-weight: 600; }

/* Search: a field, In Transcripts results. */
.search { padding: 18px 18px 20px; display: grid; gap: 8px; }
.search .field { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 14px; border-radius: 12px; background: rgba(255,255,255,.1); font-size: 16px; }
.search .q i { display: inline-block; width: 2px; height: 1.1em; vertical-align: -0.2em; margin-left: 2px; background: var(--text); animation: caret 1s steps(2) infinite; }
@keyframes caret { to { opacity: 0; } }
.search .x { width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: 14px; color: var(--text-2); }
.search .group { margin-top: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); }
.search .hit { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; padding: 6px 0; }
.search .hit .art2 { width: 44px; height: 44px; border-radius: 9px; background: radial-gradient(60% 60% at 50% 42%, #ffcf7a 0%, #f39a53 26%, transparent 27%), linear-gradient(160deg, #3b2a6e, #1c1840); }
.search .hit .art2.alt { background: linear-gradient(160deg, #1d4d5e, #0d2430); }
.search .hit .art2.alt2 { background: linear-gradient(160deg, #6b3a2a, #2d1710); }
.search .hit b { display: block; font-size: 15px; }
.search .hit span { display: block; font-size: 12.5px; color: var(--text-3); }
.search .hit em { display: block; font-style: normal; font-size: 14px; color: var(--text-2); margin-top: 3px; line-height: 1.35; }
.search mark { background: rgba(255,208,122,.22); color: var(--text); border-radius: 3px; padding: 0 2px; }

/* Local first: a diagram. */
.local { padding: 20px; display: grid; gap: 10px; }
.local .box { border-radius: 18px; padding: 16px 18px; }
.local h4 { margin: 0 0 10px; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); font-weight: 700; }
.local ul { margin: 0; padding: 0; list-style: none; font-size: 14.5px; line-height: 1.75; color: var(--text-2); columns: 2; column-gap: 18px; }
.local .ai ul { columns: 1; }
.local ul li::before { content: "✓ "; color: var(--text); }
.local ul li.soon::before { content: "○ "; color: var(--text-3); }
.local .arrow { font-size: 20px; color: var(--text-3); text-align: center; display: flex; align-items: center; justify-content: center; gap: 10px; }
.local .arrow small { font-size: 11.5px; font-weight: 600; letter-spacing: 0.03em; }
.local .ai { background: rgba(255,255,255,.04); }

/* Details: three small vignettes. */
.vignettes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.vig { margin: 0; position: relative; aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; background: linear-gradient(180deg, #241d45, #0f0e1d); border: 1px solid var(--hairline); }
.vig figcaption { font-size: 12.5px; font-weight: 600; color: var(--text-2); line-height: 1.3; min-height: 2.6em; }
.vig .v-art { position: absolute; left: 50%; top: 18%; width: 54%; aspect-ratio: 1; border-radius: 10px; transform: translateX(-50%); background: radial-gradient(60% 60% at 50% 42%, #ffcf7a 0%, #f39a53 26%, transparent 27%), linear-gradient(160deg, #3b2a6e, #1c1840); animation: ease-art 4s ease-in-out infinite alternate; }
@keyframes ease-art { to { transform: translateX(-50%) scale(0.86); } }
.vig .v-key { position: absolute; left: 10px; right: 10px; bottom: 54px; height: 30%; border-radius: 10px 10px 4px 4px; background: rgba(255,255,255,.08); animation: key-up 4s ease-in-out infinite alternate; }
.vig .v-bar { position: absolute; left: 10px; right: 10px; height: 30px; border-radius: 999px; bottom: calc(54px + 30% + 8px); background: var(--glass-fill); border: 1px solid var(--glass-edge); animation: bar-up 4s ease-in-out infinite alternate; }
.vig .v-bar::after { content: "Find"; position: absolute; left: 12px; top: 7px; font-size: 11px; color: var(--text-3); }
@keyframes key-up { from { transform: translateY(120%); } 30%, to { transform: none; } }
@keyframes bar-up { from { transform: translateY(calc(30% + 60px)); } 30%, to { transform: none; } }
.vig .v-scrub { position: absolute; left: 12px; right: 12px; top: 46%; display: flex; gap: 3px; height: 6px; animation: scrub-open 4s ease-in-out infinite alternate; }
.vig .v-scrub span { border-radius: 999px; background: rgba(255,255,255,.3); }
.vig .v-scrub span.d { background: rgba(255,255,255,.9); }
.vig .v-scrub span.s { background: repeating-linear-gradient(-45deg, rgba(255,255,255,.35) 0 2.5px, transparent 2.5px 5px); }
@keyframes scrub-open { from { gap: 0; height: 4px; } 30%, to { gap: 3px; height: 10px; } }

/* Rewind tiles. */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { border-radius: 20px; padding: 18px 18px 16px; }
.tile small { display: block; font-size: 12px; font-weight: 600; color: var(--text-3); letter-spacing: 0.03em; text-transform: uppercase; }
.tile b { display: block; font-family: var(--font-display); font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.03em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.tile span { font-size: 13px; color: var(--text-2); }
.tile .undo { display: inline-flex; gap: 8px; align-items: center; margin-top: 10px; font-size: 13px; color: var(--text-2); }
.tile .undo em { font-style: normal; font-weight: 600; color: var(--text); }

/* Words-only card (planned, no screen yet). */
.words-only { padding: 26px; font-size: 15px; line-height: 1.6; color: var(--text-2); border-style: dashed; }
.words-only .turn { display: grid; grid-template-columns: 4px 1fr; gap: 12px; margin-top: 10px; }
.words-only .turn i { border-radius: 2px; }
.words-only .turn b { display: block; font-size: 12px; color: var(--text-3); }

/* ---- Everything else ---- */
.grid-section { padding: clamp(40px, 6vw, 84px) 0; border-top: 1px solid var(--hairline); }
.grid-section h2 { font-size: clamp(24px, 3vw, 34px); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 26px; }
.grid div { padding: 14px 16px; border-radius: 16px; font-size: 14.5px; line-height: 1.4; color: var(--text-2); }

/* ---- FAQ ---- */
.faq { padding: clamp(40px, 6vw, 84px) 0; border-top: 1px solid var(--hairline); max-width: 760px; }
.faq h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 10px; }
.faq details { border-bottom: 1px solid var(--hairline); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-3); font-weight: 400; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--text-2); line-height: 1.55; font-size: 15.5px; max-width: 60ch; }

/* ---- Footnote and footer ---- */
.footnote { padding: 0 0 40px; font-size: 13px; color: var(--text-3); }
.footer { border-top: 1px solid var(--hairline); padding-top: 28px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 13px; color: var(--text-3); }
.footer a { color: var(--text-2); }
.footer .legal { flex-basis: 100%; margin-top: 4px; }

/* ---- Plain pages (privacy, support) ---- */
.plain { max-width: 680px; padding-top: clamp(28px, 5vw, 56px); padding-bottom: 80px; }
.plain h1 { font-family: var(--font-display); font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.035em; line-height: 1.05; margin: 0; }
.plain .lede { font-size: 18px; color: var(--text-2); line-height: 1.5; margin-top: 14px; }
.plain ul { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.plain li { padding: 16px 18px; border-radius: 16px; font-size: 15.5px; line-height: 1.5; color: var(--text-2); }
.plain li b { color: var(--text); font-weight: 600; }
.plain .note { margin-top: 24px; font-size: 13.5px; color: var(--text-3); line-height: 1.5; }
.plain .btn { margin-top: 26px; }
.plain .btn[hidden] { display: none; }
/* The full policy under the summary cards (privacy.html). */
.plain .policy-facts { margin-top: 18px; font-size: 14px; color: var(--text-3); line-height: 1.6; }
.plain .policy-facts b { color: var(--text-2); font-weight: 600; }
.policy { margin-top: 44px; border-top: 1px solid var(--hairline); padding-top: 8px; }
.policy h2 { font-size: 22px; margin: 30px 0 10px; color: var(--text); }
.policy p { color: var(--text-2); font-size: 15.5px; line-height: 1.6; margin: 0 0 12px; }
.policy p b, .policy li b { color: var(--text); font-weight: 600; }
.policy ul { margin: 0 0 12px; padding-left: 20px; list-style: disc; display: block; }
.policy li { padding: 0; border-radius: 0; margin: 0 0 8px; font-size: 15.5px; line-height: 1.6; color: var(--text-2); }

/* ---- Phone width ---- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-bottom: 72px; min-height: 0; }
  .sub { margin-inline: auto; }
  .ctas, .facts { justify-content: center; }
  .feature { grid-template-columns: 1fr; gap: 26px; }
  .feature.flip .words { order: 0; }
  .feature h2 { max-width: none; }
  .vignettes { gap: 8px; }
  .vig { border-radius: 16px; padding: 10px; }
  .vig figcaption { font-size: 11px; }
  .vig .mock { display: none; }
}

/* A feature section whose visual is a built scene in a phone (scenes/): centred, a little smaller than the hero. */
.visual > .phone { --w: clamp(230px, 22vw, 290px); margin: 0 auto; }
/* Vignettes hold small phones: a 2 × 2 grid, each card as tall as its phone plus caption (no fixed aspect). */
.vignettes { grid-template-columns: repeat(2, 1fr); gap: 14px; }
.vig { aspect-ratio: auto; justify-content: flex-start; align-items: center; padding: 16px 14px 12px; }
.vig > .phone { --w: clamp(140px, 11vw, 180px); margin: 0 auto 12px; }
.vig figcaption { text-align: center; }
.scrubber-row { margin-top: 18px; grid-column: 1 / -1; }
.scrubber-row .triptych > .phone { --w: clamp(140px, 13vw, 200px); flex: none; }
.visual.pair { display: flex; gap: 18px; justify-content: center; }
.visual.pair > .phone { --w: clamp(150px, 15vw, 210px); margin: 0; }
.row-caption { text-align: center; font-size: 13px; color: var(--text-2); margin: 12px 0 0; }
@media (max-width: 720px) { .scrubber-row .triptych { gap: 10px; } .scrubber-row .triptych > .phone { --w: 28vw; } }
