/* skribos.com home page (subpages keep styles.css).
   Layout: alternating paper / forest bands; one signature object (the SkribOS
   wave pill) that sound flows into and transcript flows out of; pinned scroll
   story in the middle; small animated UI vignettes per feature. */
@font-face {
  font-family: 'Inter';
  src: url('/fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

/* Display and mono faces are self-hosted (no third-party requests: see
   apps/web/src/landing-self-hosted.test.ts). Licences sit beside them in /fonts. */
@font-face { font-family: 'Fraunces'; src: url('/fonts/Fraunces-full-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/fonts/Fraunces-full-italic.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/fonts/IBMPlexMono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/fonts/IBMPlexMono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --paper: #f2f4ef;
  --paper-2: #e7ebe4;
  --card: #ffffff;
  --ink: #0d1613;
  --ink-2: #4a5852;
  --ink-3: #8a968f;
  --line: #d6ddd5;
  --mint: #5fcfae;
  --mint-deep: #17775d;
  --forest: #0e2520;
  --forest-2: #163630;
  --forest-line: #24463f;
  --on-forest: #e9f2ee;
  --on-forest-2: #9fb8ae;
  --rec: #f2584c;
  --hl: #ffe27a;
  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --r-lg: 32px;
  --r-md: 20px;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
svg { display: block; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--mint-deep); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.band { padding-block: 128px; position: relative; }
.band-forest { background: var(--forest); color: var(--on-forest); }
.band-paper2 { background: var(--paper-2); }
.rounded-top { border-radius: var(--r-lg) var(--r-lg) 0 0; }
.rounded { border-radius: var(--r-lg); margin-inline: 12px; }

.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; }
.band-forest .eyebrow { color: var(--mint); }
.display { font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; line-height: 1.02; font-variation-settings: 'opsz' 144, 'SOFT' 50; text-wrap: balance; }
.display em { font-style: italic; font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 0; }
h2.display { font-size: clamp(40px, 5.6vw, 72px); }
h3.display { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.1; }
.lede { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); max-width: 600px; text-wrap: pretty; }
.band-forest .lede { color: var(--on-forest-2); }
.head { max-width: 820px; margin-bottom: 64px; }
.head .lede { margin-top: 22px; }
.center { text-align: center; margin-inline: auto; }
.center .lede { margin-inline: auto; }
.mono { font-family: var(--mono); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; transition: transform 0.15s ease, background 0.2s ease; }
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #22302b; }
.btn-line { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.btn-mint { background: var(--mint); color: var(--forest); }
.btn-mint:hover { filter: brightness(1.06); }
.band-forest .btn-line { color: var(--on-forest); box-shadow: inset 0 0 0 1.5px var(--forest-line); }

/* Nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; padding-top: 14px; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 10px 0 20px; border-radius: 999px; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px var(--line); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.logo svg { width: 28px; height: 28px; }
.logo b span { color: var(--mint-deep); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links .btn { padding: 10px 18px; font-size: 14px; }

/* Hero */
.hero { padding-block: 56px 32px; text-align: center; overflow: hidden; }
.hero h1 { font-size: clamp(52px, 8.4vw, 116px); }
.hero h1 em { color: var(--mint-deep); }
.hero .lede { margin: 28px auto 0; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 38px; }
.fine { margin-top: 16px; font-size: 14px; color: var(--ink-3); }

/* Signature: sound -> pill -> transcript tape */
.flow { position: relative; height: 200px; margin-top: 36px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.flow-in { height: 120px; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%); }
.flow-in canvas { width: 100%; height: 100%; }
.flow-out { height: 52px; position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent); mask-image: linear-gradient(90deg, #000 70%, transparent); }
.tape { position: absolute; left: 0; top: 0; height: 52px; display: flex; align-items: center; white-space: nowrap; background: var(--ink); color: var(--paper); border-radius: 0 999px 999px 0; padding-right: 40px; animation: tape 38s linear infinite; }
.tape span { font-size: 15px; padding-left: 26px; }
.tape .t { font-family: var(--mono); font-size: 12px; color: var(--mint); padding-left: 26px; }
.tape .s { font-weight: 700; padding-left: 8px; }
@keyframes tape { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.pill { position: relative; z-index: 2; width: 132px; height: 72px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink), 0 12px 40px rgba(13, 22, 19, 0.12); display: flex; align-items: center; justify-content: center; gap: 4px; }
.pill i { width: 4px; border-radius: 4px; background: var(--ink); height: 10px; animation: eq 0.9s ease-in-out infinite; }
@keyframes eq { 0%, 100% { transform: scaleY(0.5); } 50% { transform: scaleY(1.6); } }
.chip { position: absolute; left: 50%; bottom: calc(100% + 14px); transform: translate(-50%, 8px); opacity: 0; display: inline-flex; align-items: center; gap: 6px; background: var(--forest); color: var(--on-forest); font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: 999px; white-space: nowrap; transition: opacity 0.35s ease, transform 0.35s ease; }
.chip::before { content: ''; width: 7px; height: 7px; border-radius: 9px; background: var(--mint); }
.chip.on { opacity: 1; transform: translate(-50%, 0); }

/* Platforms strip */
.strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 8px; color: var(--ink-3); font-size: 14px; font-weight: 500; }
.strip b { color: var(--ink-2); font-weight: 600; }

/* Pinned story */
.story { padding-block: 0; }
.story-pin { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding-block: 96px; }
.story-steps { position: relative; display: grid; gap: 48px; }
.step { display: flex; flex-direction: column; justify-content: center; }
.story.pinned .story-steps { display: block; min-height: 360px; }
.story.pinned .step { position: absolute; inset: 0; }
.story:not(.pinned) .dots { display: none; }
.story.pinned .dots { position: absolute; left: 0; bottom: -8px; }
.story:not(.pinned) .scr { opacity: 0; }
.story:not(.pinned) .scr[data-scr="1"] { opacity: 1; }
.step-n { font-family: var(--mono); font-size: 13px; color: var(--mint); margin-bottom: 18px; }
.step h2 { font-size: clamp(38px, 4.6vw, 60px); }
.step p { margin-top: 20px; color: var(--on-forest-2); font-size: 18px; max-width: 460px; }
.dots { display: flex; gap: 8px; margin-top: 36px; }
.dots i { width: 28px; height: 4px; border-radius: 4px; background: var(--forest-line); transition: background 0.3s; }
.dots i.on { background: var(--mint); }
.story-device { display: flex; justify-content: center; }

/* Phone */
.phone { width: 310px; height: 640px; border-radius: 54px; background: #050807; padding: 12px; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45), inset 0 0 0 2px #2b3833; position: relative; flex: none; }
.phone::before { content: ''; position: absolute; top: 23px; left: 50%; transform: translateX(-50%); width: 96px; height: 28px; border-radius: 20px; background: #000; z-index: 5; }
.screen { width: 100%; height: 100%; border-radius: 43px; overflow: hidden; background: #fbfcfa; color: var(--ink); position: relative; font-size: 13px; }
.scr { position: absolute; inset: 0; padding: 64px 20px 20px; display: flex; flex-direction: column; }
.scr + .scr { opacity: 0; }
.scr-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--ink-3); margin-bottom: 14px; }

.rec-label { text-align: center; color: var(--ink-3); font-size: 13px; margin-top: 46px; }
.rec-time { text-align: center; font-size: 50px; font-weight: 300; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.rec-wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 130px; margin: 34px 0; }
.rec-wave i { width: 4px; border-radius: 4px; background: var(--mint-deep); animation: eq 1s ease-in-out infinite; }
.rec-stop { margin: auto auto 36px; width: 76px; height: 76px; border-radius: 999px; box-shadow: inset 0 0 0 4px var(--line); display: grid; place-items: center; }
.rec-stop::after { content: ''; width: 28px; height: 28px; border-radius: 8px; background: var(--rec); }

.tr-title { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.tr-meta { font-size: 11.5px; color: var(--ink-3); margin: 4px 0 12px; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.tabs span { font-size: 11.5px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
.tabs span.on { background: var(--ink); color: #fff; }
.seg { display: grid; grid-template-columns: 34px 1fr; gap: 2px 8px; padding: 7px 0; border-bottom: 1px solid #eef1ec; }
.seg .ts { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); padding-top: 2px; }
.seg .who { font-size: 11px; font-weight: 700; color: var(--mint-deep); }
.seg .who.b { color: #8a5a00; }
.seg p { grid-column: 2; font-size: 12.5px; line-height: 1.45; }
.sum-tldr { font-size: 13.5px; line-height: 1.45; padding: 12px; background: var(--paper); border-radius: 12px; margin-bottom: 12px; }
.sum-h { font-size: 12px; font-weight: 700; margin: 10px 0 6px; }
.sum ul { list-style: none; display: grid; gap: 6px; }
.sum li { font-size: 12.5px; line-height: 1.4; padding-left: 13px; position: relative; }
.sum li::before { content: ''; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 9px; background: var(--mint-deep); }
.search-box { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--paper); font-size: 13px; margin-bottom: 12px; }
.search-box svg { width: 14px; height: 14px; color: var(--ink-3); }
.row { padding: 11px 0; border-bottom: 1px solid #eef1ec; }
.row b { font-size: 13px; display: block; }
.row small { font-size: 11px; color: var(--ink-3); }
.row p { font-size: 12px; color: var(--ink-2); margin-top: 3px; }
mark { background: var(--hl); color: inherit; border-radius: 3px; padding: 0 2px; }

/* Vignette grid */
.vgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.vcard { display: flex; flex-direction: column; gap: 22px; }
.vstage { height: 300px; border-radius: var(--r-lg); background: var(--paper-2); display: grid; place-items: center; overflow: hidden; position: relative; }
.band-paper2 .vstage { background: var(--card); }
.vcard h3 { padding-inline: 6px; }
.vcard p { padding-inline: 6px; color: var(--ink-2); margin-top: -12px; max-width: 460px; }

.watch { width: 158px; height: 190px; border-radius: 46px; background: #050807; padding: 11px; box-shadow: 0 20px 50px rgba(0,0,0,0.25), inset 0 0 0 2px #2b3833; position: relative; }
.watch::after { content: ''; position: absolute; right: -6px; top: 54px; width: 6px; height: 28px; border-radius: 0 4px 4px 0; background: #2b3833; }
.watch-s { height: 100%; border-radius: 37px; background: #000; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.watch-s .wt { font-size: 24px; font-weight: 300; font-variant-numeric: tabular-nums; }
.watch-s .wb { width: 56px; height: 56px; border-radius: 99px; background: rgba(242, 88, 76, 0.22); display: grid; place-items: center; }
.watch-s .wb::after { content: ''; width: 18px; height: 18px; border-radius: 5px; background: var(--rec); }

.cc { display: grid; grid-template-columns: repeat(4, 58px); gap: 12px; padding: 20px; border-radius: 30px; background: #1d2522; }
.cc i { height: 58px; border-radius: 18px; background: #333e3a; display: block; }
.cc i.w2 { grid-column: span 2; }
.cc i.sk { background: var(--mint); display: grid; place-items: center; animation: ping 2.4s ease-out infinite; }
.cc i.sk svg { width: 32px; height: 32px; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(95, 207, 174, 0.6); } 70%, 100% { box-shadow: 0 0 0 16px rgba(95, 207, 174, 0); } }

.share { width: 300px; background: var(--card); border-radius: 22px; padding: 16px; box-shadow: 0 20px 50px rgba(13,22,19,0.12); }
.band-paper2 .share { background: var(--paper); box-shadow: none; }
.file { display: flex; gap: 10px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.file-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--paper-2); display: grid; place-items: center; }
.file-ico svg { width: 18px; height: 18px; color: var(--ink-2); }
.file b { font-size: 13px; display: block; }
.file small { font-size: 11px; color: var(--ink-3); }
.apps { display: flex; justify-content: space-between; padding-top: 14px; }
.apps div { text-align: center; font-size: 10.5px; color: var(--ink-3); }
.apps i { display: block; width: 50px; height: 50px; border-radius: 14px; background: var(--paper-2); margin-bottom: 5px; }
.apps .sk { color: var(--ink); font-weight: 600; }
.apps .sk i { background: var(--mint); display: grid; place-items: center; outline: 2px solid var(--mint-deep); outline-offset: 3px; }
.apps .sk i svg { width: 30px; height: 30px; }

.tg { width: 320px; display: grid; gap: 8px; }
.tg-b { padding: 10px 14px; border-radius: 18px; font-size: 13.5px; max-width: 86%; background: var(--card); box-shadow: 0 2px 0 rgba(13,22,19,0.04); }
.band-paper2 .tg-b { background: var(--paper); }
.tg-b.vn { display: flex; align-items: center; gap: 8px; justify-self: start; }
.tg-b.vn .play { width: 30px; height: 30px; border-radius: 99px; background: #4b9fe0; display: grid; place-items: center; }
.tg-b.vn .play::after { content: ''; border-left: 9px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 2px; }
.tg-b.vn .bars { display: flex; gap: 2px; align-items: center; height: 22px; }
.tg-b.vn .bars i { width: 3px; border-radius: 3px; background: #9cc5ea; }
.tg-b.bot { justify-self: start; }
.tg-b.bot b { display: block; font-size: 12px; color: var(--mint-deep); margin-bottom: 3px; }

/* Editor demo */
.editor-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.edit-list { list-style: none; display: grid; gap: 4px; margin-top: 34px; }
.edit-list li { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink-3); transition: color 0.3s; }
.edit-list li b { font-weight: 600; color: inherit; }
.edit-list li .k { font-family: var(--mono); font-size: 12px; min-width: 22px; }
.edit-list li.on { color: var(--ink); }
.edit-list li.on .k { color: var(--mint-deep); }
.editor { min-height: 360px; background: var(--card); border-radius: var(--r-lg); padding: 28px; box-shadow: 0 30px 80px rgba(13,22,19,0.1); position: relative; }
.ed-seg { display: grid; grid-template-columns: 52px 1fr; gap: 4px 14px; padding: 14px 10px; border-radius: 14px; transition: background 0.3s; }
.ed-seg.focus { background: var(--paper); }
.ed-seg .ts { font-family: var(--mono); font-size: 12px; color: var(--ink-3); padding-top: 3px; }
.spk { justify-self: start; font-size: 12.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: #e3f4ee; color: var(--mint-deep); transition: background 0.3s, color 0.3s; }
.spk.b { background: #fbf0d9; color: #8a5a00; }
.spk.flash { background: var(--mint); color: var(--forest); }
.ed-seg p { grid-column: 2; font-size: 16px; line-height: 1.55; }
.w-old { text-decoration: line-through; text-decoration-color: var(--rec); color: var(--ink-3); }
.w-new { background: #e3f4ee; border-radius: 4px; padding: 0 3px; }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--mint-deep); vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ed-chip { position: absolute; right: 24px; top: -16px; background: var(--forest); color: var(--on-forest); font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px; display: inline-flex; gap: 7px; align-items: center; opacity: 0; transform: translateY(6px); transition: opacity 0.3s, transform 0.3s; }
.ed-chip::before { content: ''; width: 7px; height: 7px; border-radius: 9px; background: var(--mint); }
.ed-chip.on { opacity: 1; transform: none; }
.ed-seg.split-new { animation: drop 0.45s ease; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Notes */
.notes-wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
.notes-demo { position: relative; padding-right: 150px; }
.nd-doc { background: var(--card); border-radius: var(--r-lg); padding: 26px; box-shadow: 0 30px 80px rgba(13,22,19,0.08); }
.nd-line { display: grid; grid-template-columns: 52px 1fr; gap: 14px; padding: 12px 8px; font-size: 15.5px; line-height: 1.55; }
.nd-line .ts { font-family: var(--mono); font-size: 12px; color: var(--ink-3); padding-top: 3px; }
.nd-line .txt { background-image: linear-gradient(var(--hl), var(--hl)); background-repeat: no-repeat; background-size: 0% 100%; transition: background-size 0.9s ease; border-radius: 3px; }
.nd-line.hl .txt { background-size: 100% 100%; }
.nd-note { position: absolute; right: -8px; top: 58%; width: 230px; background: var(--forest); color: var(--on-forest); border-radius: 20px; padding: 16px 18px; font-size: 14.5px; line-height: 1.45; box-shadow: 0 20px 50px rgba(13,22,19,0.25); opacity: 0; transform: translateX(16px) rotate(1.5deg); transition: opacity 0.5s 0.6s, transform 0.5s 0.6s; }
.nd-note small { display: block; font-family: var(--mono); font-size: 11px; color: var(--mint); margin-bottom: 6px; }
.notes-demo.play .nd-note { opacity: 1; transform: rotate(1.5deg); }

/* Share */
.share-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.sheet { background: var(--card); border-radius: var(--r-lg); padding: 26px; max-width: 420px; width: 100%; justify-self: center; box-shadow: 0 30px 80px rgba(13,22,19,0.1); }
.sheet h4 { font-size: 17px; margin-bottom: 4px; }
.sheet .sub { font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.opt { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); font-size: 15px; }
.tog { width: 44px; height: 26px; border-radius: 99px; background: var(--line); position: relative; transition: background 0.3s; flex: none; }
.tog::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 99px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: transform 0.3s; }
.tog.on { background: var(--mint-deep); }
.tog.on::after { transform: translateX(18px); }
.pass { font-family: var(--mono); font-size: 14px; background: var(--paper); border-radius: 10px; padding: 10px 12px; margin-top: 4px; display: flex; justify-content: space-between; color: var(--ink-2); max-height: 0; opacity: 0; overflow: hidden; padding-block: 0; transition: max-height 0.4s, opacity 0.4s, padding 0.4s; }
.pass.on { max-height: 60px; opacity: 1; padding-block: 10px; }
.sheet .btn { width: 100%; justify-content: center; margin-top: 16px; }
.stop { margin-top: 12px; text-align: center; font-size: 13.5px; color: var(--rec); font-weight: 600; }

/* Zero data retention */
.zdr { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.zdr-points { list-style: none; display: grid; gap: 14px; margin-top: 34px; }
.zdr-points li { display: flex; gap: 12px; color: var(--on-forest-2); font-size: 16px; }
.zdr-points li::before { content: ''; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 99px; background: var(--forest-2); box-shadow: inset 0 0 0 5px var(--mint); }
.zdr-stage { position: relative; height: 420px; }
.z-cloud, .z-phone { position: absolute; border-radius: 26px; background: var(--forest-2); box-shadow: inset 0 0 0 1px var(--forest-line); padding: 18px; }
.z-cloud { left: 0; top: 30px; width: 54%; }
.z-phone { right: 4%; bottom: 10px; width: 46%; height: 300px; border-radius: 34px; box-shadow: inset 0 0 0 2px #3a5a52; }
.z-label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-forest-2); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.z-doc { background: #fbfcfa; color: var(--ink); border-radius: 14px; padding: 12px; font-size: 12px; line-height: 1.45; }
.z-doc b { display: block; font-size: 13px; margin-bottom: 4px; }
.z-doc i { display: block; height: 6px; border-radius: 4px; background: var(--paper-2); margin-top: 6px; }
.z-cloud .z-doc { transition: opacity 0.6s, filter 0.6s; }
.z-cloud.gone .z-doc { opacity: 0.12; filter: blur(2px); }
.z-del { margin-top: 12px; font-size: 13px; color: var(--mint); font-weight: 600; opacity: 0; transition: opacity 0.4s; }
.z-cloud.gone .z-del { opacity: 1; }
.z-phone .z-doc { opacity: 0; transform: translateY(-30px); transition: opacity 0.6s, transform 0.6s; }
.z-phone.got .z-doc { opacity: 1; transform: none; }

/* Dictation */
.dict { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.dict-demo { background: var(--card); border-radius: var(--r-lg); padding: 26px; box-shadow: 0 30px 80px rgba(13,22,19,0.1); }
.said { font-size: 21px; line-height: 1.6; min-height: 140px; letter-spacing: -0.005em; }
.said .w { opacity: 0; transition: opacity 0.25s; white-space: pre; }
.said .w.in { opacity: 1; }
.said .f { color: var(--rec); display: inline-block; max-width: 9em; vertical-align: bottom; overflow: hidden; transition: max-width 0.55s ease, opacity 0.4s ease; }
.said.clean .f { max-width: 0; opacity: 0; }
.said .p { display: inline-block; max-width: 0; overflow: hidden; vertical-align: bottom; color: var(--mint-deep); font-weight: 700; transition: max-width 0.3s 0.45s; }
.said.clean .p { max-width: 1em; }
.said .sw { transition: color 0.3s 0.45s; }
.said.clean .sw { color: var(--mint-deep); }
.said.done .sw, .said.done .p { color: inherit; font-weight: inherit; }
.d-bar { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.d-state { font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.d-state::before { content: ''; width: 8px; height: 8px; border-radius: 9px; background: var(--rec); }
.d-state.done::before { background: var(--mint-deep); }
.d-mic { width: 46px; height: 46px; border-radius: 99px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.d-mic svg { width: 20px; height: 20px; }
.mac { margin-top: 30px; display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); }
.mac kbd { font: 600 14px var(--sans); padding: 8px 12px; border-radius: 9px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), 0 3px 0 var(--line); }
.mac p { font-size: 15px; color: var(--ink-2); }
.mac b { color: var(--ink); }
.soon { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mint-deep); background: #e3f4ee; padding: 3px 8px; border-radius: 99px; margin-left: 6px; }

/* Claude */
.claude { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.chat { background: var(--forest-2); border-radius: var(--r-lg); padding: 26px; box-shadow: inset 0 0 0 1px var(--forest-line); display: grid; gap: 14px; }
.chat .q { justify-self: end; background: var(--on-forest); color: var(--ink); padding: 11px 15px; border-radius: 18px 18px 4px 18px; font-size: 15px; max-width: 88%; }
.chat .tool { font-family: var(--mono); font-size: 12px; color: var(--mint); }
.chat .a { font-size: 15px; line-height: 1.6; }
.chat .a ul { margin: 8px 0 0 18px; color: var(--on-forest-2); }
.chat .a li { margin-bottom: 4px; }

/* Pricing */
.ptabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 36px; }
.ptabs button { border: 0; background: none; padding: 9px 18px; border-radius: 99px; font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.ptabs button.on { background: var(--ink); color: var(--paper); }
.pview { display: none; gap: 16px; }
.pview.on { display: grid; }
.pview.two { grid-template-columns: repeat(2, minmax(0, 390px)); justify-content: center; }
.pview.three { grid-template-columns: repeat(3, 1fr); }
.plan { background: var(--card); border-radius: 26px; padding: 30px; text-align: left; display: flex; flex-direction: column; position: relative; }
.plan.feat { background: var(--forest); color: var(--on-forest); }
.plan .badge { position: absolute; top: 22px; right: 22px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--forest); background: var(--mint); padding: 4px 10px; border-radius: 99px; }
.plan h3 { font-size: 15px; font-weight: 600; color: var(--ink-3); }
.plan.feat h3, .plan.feat .stars { color: var(--on-forest-2); }
.plan .amt { font-family: var(--display); font-size: 56px; letter-spacing: -0.02em; line-height: 1; margin: 12px 0 6px; }
.plan .amt small { font-family: var(--sans); font-size: 15px; color: var(--ink-3); }
.plan.feat .amt small { color: var(--on-forest-2); }
.plan .stars { font-size: 13px; color: var(--ink-3); }
.plan ul { list-style: none; display: grid; gap: 10px; margin: 22px 0 26px; }
.plan li { font-size: 15px; padding-left: 24px; position: relative; }
.plan li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 10px; height: 6px; border-left: 2px solid var(--mint-deep); border-bottom: 2px solid var(--mint-deep); transform: rotate(-45deg); }
.plan.feat li::before { border-color: var(--mint); }
.plan .btn { margin-top: auto; justify-content: center; }
.pfoot { margin: 28px auto 0; font-size: 14px; color: var(--ink-3); max-width: 720px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 44px 24px 0; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 18px; font-size: 28px; font-weight: 300; color: var(--ink-3); transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--ink-2); padding-bottom: 24px; max-width: 700px; font-size: 16px; }

/* Final */
.final { text-align: center; padding-block: 150px; }
.final h2 { font-size: clamp(48px, 7vw, 96px); }

footer { padding-block: 40px 56px; }
.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot nav a { color: var(--ink-2); text-decoration: none; font-size: 14px; }
.foot small { color: var(--ink-3); font-size: 13px; }

/* Reveal (only hidden once JS has marked the page) */
.js .rv { opacity: 0; transform: translateY(28px); }

/* Responsive */
@media (max-width: 960px) {
  .band { padding-block: 88px; }
  .story-pin, .editor-wrap, .notes-wrap, .share-wrap, .zdr, .dict, .claude { grid-template-columns: 1fr; gap: 44px; }
  .story-pin { min-height: 100svh; gap: 24px; padding-block: 72px 32px; align-content: center; }
  .story-steps { min-height: 230px; order: 2; }
  .story-device { order: 1; }
  .phone { width: 250px; height: 470px; border-radius: 44px; }
  .screen { border-radius: 33px; }
  .step p { font-size: 16px; margin-top: 12px; }
  .dots { margin-top: 18px; }
  .vgrid { grid-template-columns: 1fr; }
  .pview.three { grid-template-columns: 1fr; }
  .notes-demo { padding-right: 0; padding-bottom: 120px; }
  .nd-note { top: auto; bottom: 0; right: 12px; }
  .nav-links a.hide-m { display: none; }
  .rounded { margin-inline: 6px; }
}
@media (max-width: 640px) {
  .pview.two { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 0.6fr auto 1fr; height: 180px; margin-top: 44px; }
  .pill { width: 96px; height: 56px; }
  .tape span { font-size: 13px; }
  .vstage { height: 250px; }
  .cc { grid-template-columns: repeat(4, 46px); gap: 10px; }
  .cc i { height: 46px; }
  .nav-inner { padding-left: 14px; }
  .editor, .sheet, .dict-demo, .nd-doc, .chat { padding: 18px; }
  .ed-seg { grid-template-columns: 42px 1fr; padding-inline: 4px; }
  .ed-seg p { font-size: 15px; }
  .zdr-stage { height: 380px; }
  .z-cloud { width: 66%; }
  .z-phone { width: 52%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
}

/* Coaching page: Telegram chat inside the story phone */
.tgc { display: flex; flex-direction: column; gap: 8px; }
.tgc-head { text-align: center; font-size: 12px; color: var(--ink-3); margin-bottom: 6px; }
.tgc-head b { display: block; font-size: 14px; color: var(--ink); }
.tgc .b { max-width: 86%; padding: 9px 12px; border-radius: 16px; font-size: 12.5px; line-height: 1.42; background: #eef2ec; }
.tgc .b.vn { display: flex; align-items: center; gap: 8px; }
.tgc .b.vn .play { width: 26px; height: 26px; flex: none; border-radius: 99px; background: #4b9fe0; display: grid; place-items: center; }
.tgc .b.vn .play::after { content: ''; border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: 2px; }
.tgc .b.vn .bars { display: flex; gap: 2px; align-items: center; height: 18px; }
.tgc .b.vn .bars i { width: 2.5px; border-radius: 3px; background: #9cc5ea; display: block; }
.tgc .b.bot b { display: block; font-size: 11px; color: var(--mint-deep); margin-bottom: 4px; }
.tgc .b.bot .t { font-weight: 700; margin-bottom: 4px; }
.tgc .who { font-size: 10.5px; color: var(--ink-3); margin: 4px 0 -4px 4px; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.s3 { background: var(--card); border-radius: 26px; padding: 30px; }
.s3 .n { font-family: var(--mono); font-size: 13px; color: var(--mint-deep); }
.s3 h3 { margin: 14px 0 10px; }
.s3 p { color: var(--ink-2); font-size: 15.5px; }
.s3 a { color: var(--mint-deep); text-decoration: none; }
.s3 a code { color: inherit; }
.s3 code { font-family: var(--mono); font-size: 14px; background: var(--paper-2); padding: 1px 6px; border-radius: 6px; }
.asks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ask { background: var(--forest-2); box-shadow: inset 0 0 0 1px var(--forest-line); border-radius: 20px; padding: 20px 22px; font-family: var(--display); font-size: 20px; line-height: 1.3; font-variation-settings: 'opsz' 48; }
.ask::before { content: '\201C'; color: var(--mint); margin-right: 2px; }
.ask::after { content: '\201D'; color: var(--mint); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trio > div { padding: 26px; border-radius: 24px; box-shadow: inset 0 0 0 1px var(--line); }
.trio h3 { margin-bottom: 10px; }
.trio p { color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 960px) {
  .steps3, .trio, .asks { grid-template-columns: 1fr; }
}

/* ===== v3 ===== */
/* Hero tape: plain type on paper, no box */
.flow-out { height: 120px; display: flex; align-items: center; }
.tape { position: absolute; left: 0; top: 50%; height: auto; transform: translateY(-50%); background: none; color: var(--ink); border-radius: 0; padding: 0; animation: tape2 46s linear infinite; }
.tape span { font-size: 18px; padding-left: 10px; letter-spacing: -0.01em; }
.tape .t { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); padding-left: 40px; }
.tape .s { font-weight: 650; padding-left: 10px; color: var(--mint-deep); }
@keyframes tape2 { from { transform: translate(-50%, -50%); } to { transform: translate(0, -50%); } }

/* App-faithful phone screens (SkribOS dark theme) */
.screen { background: #0e1012; color: #e8eaec; }
.scr { padding: 58px 16px 16px; }
.a-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; color: #767e87; }
.a-top .l { display: flex; gap: 10px; align-items: center; }
.a-ic { width: 26px; height: 26px; border-radius: 99px; display: grid; place-items: center; }
.a-ic.f { background: rgba(255,255,255,0.08); }
.a-ic svg { width: 13px; height: 13px; }
.a-h { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin: 2px 0 10px; }
.a-h small { font-size: 12px; color: #767e87; font-weight: 500; margin-left: 4px; }
.a-title { font-family: ui-serif, Georgia, 'Iowan Old Style', serif; font-weight: 600; font-size: 18px; line-height: 1.2; text-align: center; letter-spacing: -0.01em; }
.a-meta { font-family: var(--mono); font-size: 9px; color: #767e87; text-align: center; margin: 7px 0 12px; line-height: 1.5; }
.a-tabs { display: flex; gap: 14px; font-size: 9.5px; font-weight: 600; letter-spacing: 0.13em; color: #767e87; border-bottom: 1px solid rgba(255,255,255,0.07); margin: 0 -16px 12px; padding: 0 16px; }
.a-tabs span { padding-bottom: 7px; }
.a-tabs span.on { color: #5fcfae; box-shadow: inset 0 -2px 0 #5fcfae; }
.a-seg { font-size: 12.5px; line-height: 1.6; padding: 5px 6px; margin: 0 -6px; border-radius: 4px; }
.a-ts { font-family: var(--mono); font-size: 9.5px; color: #767e87; margin-right: 7px; }
.a-chip { display: inline-block; font-size: 9.5px; font-weight: 600; line-height: 16px; padding: 0 7px; border-radius: 99px; background: #1a322e; color: #95dacc; margin-right: 6px; vertical-align: 1px; }
.a-chip.b { background: #352c19; color: #e6c88e; }
.a-seg.sel { background: rgba(95,207,174,0.12); box-shadow: inset 2px 0 #5fcfae; }
.a-card { background: #15181b; border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; padding: 12px; font-size: 12.5px; line-height: 1.5; }
.a-card .gist { margin-bottom: 9px; }
.a-card b { display: block; font-size: 12px; margin: 8px 0 4px; }
.a-card ul { list-style: none; display: grid; gap: 4px; }
.a-card li { padding-left: 12px; position: relative; }
.a-card li::before { content: ''; position: absolute; left: 1px; top: 8px; width: 4px; height: 4px; border-radius: 9px; background: #5fcfae; }
.a-search { display: flex; align-items: center; gap: 7px; background: rgba(255,255,255,0.07); border-radius: 99px; padding: 8px 12px; font-size: 12px; color: #e8eaec; margin-bottom: 12px; }
.a-search svg { width: 12px; height: 12px; color: #767e87; }
.a-item { background: #15181b; border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; padding: 10px 11px; margin-bottom: 7px; }
.a-item b { display: block; font-size: 12.5px; font-weight: 600; }
.a-item p { font-size: 11px; color: #a8b0b8; margin: 3px 0 4px; line-height: 1.4; }
.a-item small { font-family: var(--mono); font-size: 8.5px; color: #767e87; }
.screen mark { background: rgba(95,207,174,0.28); color: #e8eaec; }
.a-rec { position: absolute; left: 14px; right: 14px; bottom: 22px; display: flex; align-items: center; gap: 10px; padding: 7px 7px 7px 14px; border-radius: 99px; background: #1b1f22; border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.a-rec .dot { width: 8px; height: 8px; border-radius: 9px; background: #f2584c; animation: recdot 1.2s ease-in-out infinite; }
@keyframes recdot { 50% { opacity: 0.3; } }
.a-rec .tm { font-family: var(--mono); font-size: 13px; flex: 1; }
.a-rec .ib { width: 30px; height: 30px; border-radius: 99px; display: grid; place-items: center; color: #a8b0b8; background: rgba(255,255,255,0.06); }
.a-rec .ib svg { width: 12px; height: 12px; }
.a-rec .stop { width: 40px; height: 40px; border-radius: 99px; background: #5fcfae; display: grid; place-items: center; }
.a-rec .stop::after { content: ''; width: 13px; height: 13px; border-radius: 3px; background: #0e1012; }
.a-sheet { position: absolute; left: 0; right: 0; bottom: 0; background: #1b1f22; border-radius: 18px 18px 0 0; padding: 8px 14px 22px; border-top: 1px solid rgba(255,255,255,0.08); }
.a-sheet .hd { width: 34px; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.18); margin: 0 auto 10px; }
.a-sheet .rw { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.a-sheet .tp { font-family: var(--mono); font-size: 10px; background: #5fcfae; color: #0e1012; border-radius: 6px; padding: 2px 6px; font-weight: 600; }
.a-sheet .ar { width: 18px; height: 18px; border-radius: 5px; background: rgba(255,255,255,0.07); }
.a-sheet .sv { margin-left: auto; font-size: 10.5px; font-weight: 600; background: #5fcfae; color: #0e1012; border-radius: 99px; padding: 3px 10px; }
.a-sheet .cn { font-size: 10.5px; color: #a8b0b8; margin-left: auto; }
.a-sheet .cn + .sv { margin-left: 8px; }
.a-sheet .q { font-size: 10.5px; font-style: italic; color: #a8b0b8; border-left: 2px solid rgba(255,255,255,0.15); padding-left: 8px; margin-bottom: 8px; line-height: 1.45; }
.a-sheet .ta { border: 1px solid #5fcfae; border-radius: 9px; padding: 8px 10px; font-size: 12px; min-height: 52px; line-height: 1.45; }
.a-pen { position: absolute; right: 16px; bottom: 20px; width: 38px; height: 38px; border-radius: 99px; background: #5fcfae; display: grid; place-items: center; color: #0e1012; }
.a-pen svg { width: 15px; height: 15px; }

/* Action button vignette */
.ab { position: relative; width: 250px; height: 220px; }
.ab-phone { position: absolute; right: 0; top: 20px; width: 230px; height: 260px; border-radius: 44px 44px 0 0; background: #050807; box-shadow: inset 0 0 0 2px #2b3833; padding: 10px; }
.ab-phone .sc { height: 100%; border-radius: 35px 35px 0 0; background: #0e1012; position: relative; overflow: hidden; }
.ab-island { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); height: 30px; border-radius: 20px; background: #000; color: #fff; display: flex; align-items: center; gap: 8px; padding: 0 12px; font-size: 12px; font-weight: 600; white-space: nowrap; width: 92px; transition: width 0.5s cubic-bezier(.3,1.4,.5,1); overflow: hidden; }
.ab-island .dot { width: 8px; height: 8px; border-radius: 9px; background: #f2584c; flex: none; opacity: 0; transition: opacity 0.3s 0.2s; }
.ab-island .tx { opacity: 0; transition: opacity 0.3s 0.25s; font-family: var(--mono); font-size: 11.5px; }
.ab.on .ab-island { width: 150px; }
.ab.on .ab-island .dot, .ab.on .ab-island .tx { opacity: 1; }
.ab-btn { position: absolute; left: 14px; top: 70px; width: 6px; height: 34px; border-radius: 4px 0 0 4px; background: #3a4a44; }
.ab.on .ab-btn { background: var(--mint); box-shadow: 0 0 0 6px rgba(95,207,174,0.25); }
.ab-label { position: absolute; left: -14px; top: 40px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.ab-cc { position: absolute; left: 30px; bottom: 26px; display: flex; gap: 8px; }
.ab-cc i { width: 44px; height: 44px; border-radius: 14px; background: #333e3a; display: block; }
.ab-cc i.sk { background: var(--mint); display: grid; place-items: center; }
.ab-cc i.sk svg { width: 26px; height: 26px; }

/* Editor v3: inline lines like the app */
.ed-line { font-size: 16px; line-height: 1.65; padding: 10px 12px; border-radius: 10px; transition: background 0.3s; }
.ed-line.focus { background: var(--paper); box-shadow: inset 3px 0 var(--mint-deep); }
.ed-line .ts { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-right: 10px; }
.ed-line .spk { display: inline-block; margin-right: 8px; vertical-align: 1px; padding: 1px 9px; }
.ed-line.new { animation: drop 0.45s ease; }
.story.pinned .story-steps { min-height: 300px; }

/* ZDR mode switch */
.z-mode { position: absolute; left: 50%; top: 0; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; background: var(--forest-2); box-shadow: inset 0 0 0 1px var(--forest-line); border-radius: 99px; padding: 10px 12px 10px 18px; font-size: 14px; font-weight: 600; white-space: nowrap; z-index: 3; }
.z-mode .tog { background: var(--forest-line); }
.z-mode .tog.on { background: var(--mint); }
.zdr-stage { padding-top: 70px; }
.z-cloud { top: 90px; }
@media (max-width: 640px) {
  .tape span { font-size: 15px; }
  .ab { transform: scale(0.9); }
}
@media (max-width: 960px) {
  .story .phone { height: min(470px, 56svh); width: auto; aspect-ratio: 310 / 640; border-radius: 40px; padding: 9px; }
  .story .phone::before { top: 17px; width: 70px; height: 22px; }
  .story .screen { border-radius: 32px; }
  .story .scr { padding: 46px 12px 12px; }
  .story-pin { padding-block: 64px 24px; gap: 18px; }
  .story.pinned .story-steps { min-height: 170px; }
  .step h2 { font-size: clamp(30px, 7vw, 44px); }
  .step p { font-size: 15px; margin-top: 8px; }
}
.ab { width: 270px; }
.ab-phone { right: auto; left: 46px; width: 214px; }
.ab-btn { left: 40px; }
.ab-label { left: 0; top: 30px; }

/* ===== v4 ===== */
/* Hero ribbon (text on a curved band, out of the pill) */
.flow-out { height: 200px; overflow: visible; -webkit-mask-image: linear-gradient(90deg, #000 72%, transparent); mask-image: linear-gradient(90deg, #000 72%, transparent); }
.ribbon { position: absolute; left: -66px; top: 0; width: calc(100% + 66px); height: 200px; overflow: visible; }
.ribbon .band-path { fill: none; stroke: var(--ink); stroke-width: 40; stroke-linecap: round; }
.ribbon text { font: 600 15.5px var(--sans); fill: var(--paper); letter-spacing: 0.01em; }
.ribbon .ts { font: 500 12px var(--mono); fill: var(--mint); }
.ribbon .sp { fill: var(--mint); font-weight: 700; }
.pill { z-index: 3; }

/* Story step 1: skeleton list, pretty recorder, watch alongside */
.sk-item { background: #15181b; border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; padding: 12px; margin-bottom: 8px; }
.sk-item i { display: block; height: 7px; border-radius: 6px; background: rgba(255,255,255,0.09); margin-bottom: 7px; }
.sk-item i:first-child { width: 58%; height: 9px; background: rgba(255,255,255,0.16); }
.sk-item i:last-child { width: 34%; margin-bottom: 0; height: 5px; }
.a-rec2 { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); width: calc(100% - 32px); display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 99px; background: #1b1f22; border: 1px solid rgba(255,255,255,0.09); box-shadow: 0 14px 34px rgba(0,0,0,0.55); }
.a-rec2 .dot { flex: none; width: 9px; height: 9px; border-radius: 9px; background: #f2584c; box-shadow: 0 0 0 4px rgba(242,88,76,0.18); animation: recdot 1.2s ease-in-out infinite; }
.a-rec2 .tm { flex: none; font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums; }
.a-rec2 .lv { flex: 1; display: flex; align-items: center; gap: 2px; height: 22px; min-width: 0; overflow: hidden; }
.a-rec2 .lv i { flex: none; width: 3px; border-radius: 3px; background: #5fcfae; animation: eq 0.9s ease-in-out infinite; }
.a-rec2 .stop { flex: none; width: 42px; height: 42px; border-radius: 99px; background: #5fcfae; display: flex; align-items: center; justify-content: center; }
.a-rec2 .stop::after { content: ''; display: block; width: 14px; height: 14px; border-radius: 4px; background: #0e1012; }
.story-device { position: relative; }
.st-watch { position: absolute; left: calc(50% + 110px); bottom: 40px; transform: scale(0.82); transform-origin: left bottom; }
.st-watch .watch-s { gap: 8px; }
.st-watch .wl { font-size: 10px; color: #a8b0b8; letter-spacing: 0.04em; }
@media (max-width: 960px) { .st-watch { left: calc(50% + 70px); bottom: 10px; transform: scale(0.6); } }

/* Action button: front view of the phone's top-left with real side buttons */
.abx { position: relative; width: 300px; height: 240px; overflow: hidden; }
.abx-phone { position: absolute; left: 40px; top: 26px; width: 300px; height: 300px; border-radius: 54px 0 0 0; background: #050807; box-shadow: inset 0 0 0 2px #2b3833; padding: 11px 0 0 11px; }
.abx-phone .sc { height: 100%; border-radius: 44px 0 0 0; background: #0e1012; position: relative; }
.abx-isl { position: absolute; top: 12px; left: 92px; height: 32px; width: 104px; border-radius: 20px; background: #000; display: flex; align-items: center; gap: 8px; padding: 0 13px; color: #fff; font-family: var(--mono); font-size: 12px; transition: width 0.5s cubic-bezier(.3,1.4,.5,1); overflow: hidden; white-space: nowrap; }
.abx-isl .dot { flex: none; width: 8px; height: 8px; border-radius: 9px; background: #f2584c; opacity: 0; transition: opacity 0.3s 0.2s; }
.abx-isl span { opacity: 0; transition: opacity 0.3s 0.25s; }
.abx.on .abx-isl { width: 150px; }
.abx.on .abx-isl .dot, .abx.on .abx-isl span { opacity: 1; }
.abx-side { position: absolute; left: 36px; width: 5px; border-radius: 3px 0 0 3px; background: #3c4a45; }
.abx-side.action { top: 92px; height: 26px; transition: background 0.2s, transform 0.2s; }
.abx-side.vu { top: 136px; height: 44px; }
.abx-side.vd { top: 192px; height: 44px; }
.abx.on .abx-side.action { background: var(--mint); transform: translateX(2px); box-shadow: 0 0 0 6px rgba(95,207,174,0.22); }
.abx-tag { position: absolute; left: 0; top: 60px; font-size: 12px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.abx-tag::after { content: ''; width: 16px; height: 1.5px; background: var(--ink-3); transform: translateY(18px) rotate(50deg); transform-origin: left; }

/* Control Center (iOS 18 style) */
.ccx { width: 280px; padding: 18px; border-radius: 34px; background: linear-gradient(160deg, #2a3431, #141b19); display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ccx .mod { border-radius: 22px; background: rgba(255,255,255,0.12); }
.ccx .conn { grid-column: span 2; grid-row: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
.ccx .conn i { aspect-ratio: 1; border-radius: 99px; background: rgba(255,255,255,0.18); display: grid; place-items: center; }
.ccx .conn i.on1 { background: #ff9f0a; } .ccx .conn i.on2 { background: #30d158; } .ccx .conn i.on3 { background: #0a84ff; } .ccx .conn i.on4 { background: #0a84ff; }
.ccx .conn svg { width: 16px; height: 16px; color: #fff; }
.ccx .media { grid-column: span 2; grid-row: span 2; padding: 12px; display: flex; flex-direction: column; justify-content: space-between; }
.ccx .media i { display: block; height: 6px; border-radius: 4px; background: rgba(255,255,255,0.25); }
.ccx .media i.s { width: 60%; }
.ccx .media .pl { display: flex; justify-content: center; gap: 14px; color: #fff; font-size: 13px; }
.ccx .ctl { aspect-ratio: 1; border-radius: 99px; background: rgba(255,255,255,0.12); display: grid; place-items: center; color: #fff; }
.ccx .ctl svg { width: 18px; height: 18px; }
.ccx .ctl.sk { background: var(--mint); animation: ping 2.4s ease-out infinite; }
.ccx .ctl.sk svg { width: 30px; height: 30px; }
.ccx .lbl { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; font-size: 9.5px; color: rgba(255,255,255,0.6); margin-top: -6px; }
.ccx .lbl b { color: #fff; font-weight: 600; }

/* Editor v4: app-style inline editing, no side bar */
.ed-line.focus { box-shadow: none; background: var(--paper); }
.ed-line .spk.mono { font-family: var(--mono); font-size: 12.5px; background: none; padding: 0; color: var(--mint-deep); }
.ed-line .spk.mono.b { color: #8a5a00; }
.ed-line .spk.mono::after { content: ' \25BE'; color: var(--ink-3); }
.ed-acts { float: right; display: inline-flex; gap: 4px; margin-left: 8px; }
.ed-acts i { width: 26px; height: 26px; border-radius: 7px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; font-style: normal; font-size: 12px; color: var(--ink-2); }
.ed-acts i.hot { background: var(--mint-deep); color: #fff; box-shadow: none; }
.ed-menu { position: absolute; z-index: 4; margin-top: 6px; background: var(--card); border-radius: 12px; box-shadow: 0 14px 40px rgba(13,22,19,0.18), inset 0 0 0 1px var(--line); padding: 6px; min-width: 170px; font-size: 14px; }
.ed-menu div { padding: 7px 10px; border-radius: 8px; display: flex; justify-content: space-between; }
.ed-menu div.on { background: #e3f4ee; color: var(--mint-deep); font-weight: 600; }
.ed-menu div.add { color: var(--ink-3); }
.ed-line { position: relative; }
.ed-split-tail { display: inline; transition: opacity 0.3s; }
.abx { width: 330px; height: 250px; overflow: visible; }
.abx-phone { left: 100px; top: 24px; width: 220px; height: 240px; border-radius: 46px 46px 0 0; padding: 10px 10px 0; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.abx-phone .sc { border-radius: 37px 37px 0 0; }
.abx-isl { left: 50%; transform: translateX(-50%); }
.abx-side { left: 96px; }
.abx-side.action { top: 84px; }
.abx-side.vu { top: 128px; }
.abx-side.vd { top: 182px; -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
.abx-tag { left: 0; top: 86px; }
.abx-tag::after { width: 30px; transform: none; }
/* Older light mock elements, recoloured for the dark app screen (coaching page) */
.screen .tgc-head b { color: #e8eaec; }
.screen .tgc-head { color: #767e87; }
.screen .tgc .b { background: #1f2427; color: #e8eaec; }
.screen .tgc .b[style*="flex-end"] { background: #1d4a3d !important; }
.screen .tgc .b.bot b { color: #5fcfae; }
.screen .tr-title { font-family: ui-serif, Georgia, serif; font-weight: 600; text-align: center; color: #e8eaec; }
.screen .tr-meta { font-family: var(--mono); font-size: 9.5px; color: #767e87; text-align: center; }
.screen .tabs { gap: 14px; border-bottom: 1px solid rgba(255,255,255,0.07); margin: 0 -16px 12px; padding: 0 16px; }
.screen .tabs span { background: none; color: #767e87; font-size: 9.5px; letter-spacing: 0.13em; text-transform: uppercase; padding: 0 0 7px; border-radius: 0; }
.screen .tabs span.on { background: none; color: #5fcfae; box-shadow: inset 0 -2px 0 #5fcfae; }
.screen .sum { background: #15181b; border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; padding: 12px; }
.screen .sum-tldr { background: none; padding: 0; color: #e8eaec; }
.screen .sum-h { color: #e8eaec; }
.screen .sum li::before { background: #5fcfae; }
.screen .search-box { background: rgba(255,255,255,0.07); border-radius: 99px; color: #e8eaec; }
.screen .row { background: #15181b; border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; padding: 10px 11px; margin-bottom: 7px; }
.screen .row small { font-family: var(--mono); font-size: 8.5px; color: #767e87; }
.screen .row p { color: #a8b0b8; }
/* Ribbon: no CSS mask (it clipped the start square); fade lives inside the SVG */
.flow-out { -webkit-mask-image: none; mask-image: none; overflow: visible; }
.ribbon { left: 0; width: 100%; }

/* Mac window vignette */
.macw { width: 340px; border-radius: 14px; background: #0e1012; box-shadow: 0 24px 60px rgba(13,22,19,0.25), inset 0 0 0 1px rgba(255,255,255,0.08); overflow: hidden; }
.macw-bar { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #181c1f; border-bottom: 1px solid rgba(255,255,255,0.06); }
.macw-bar i { width: 10px; height: 10px; border-radius: 9px; background: #ff5f57; }
.macw-bar i:nth-child(2) { background: #febc2e; } .macw-bar i:nth-child(3) { background: #28c840; }
.macw-bar span { margin-left: auto; margin-right: auto; font-size: 11px; color: #767e87; transform: translateX(-20px); }
.macw-body { display: grid; grid-template-columns: 76px 1fr; height: 190px; }
.macw-side { background: #121518; padding: 12px 10px; display: grid; align-content: start; gap: 8px; }
.macw-side b { display: block; height: 14px; border-radius: 6px; background: rgba(95,207,174,0.35); }
.macw-side i { display: block; height: 7px; border-radius: 4px; background: rgba(255,255,255,0.09); }
.macw-main { position: relative; padding: 12px; }
.macw-main .sk-item { padding: 9px; margin-bottom: 7px; }
.macw-rec { bottom: 12px; width: calc(100% - 24px); padding: 5px 5px 5px 12px; gap: 9px; }
.macw-rec .tm { font-size: 12px; }
.macw-rec .stop { width: 30px; height: 30px; }
.macw-rec .stop::after { width: 10px; height: 10px; border-radius: 3px; }
@media (max-width: 640px) { .macw { width: 290px; } }
.ed-menu div.cur { color: #8a5a00; font-weight: 600; }
.ed-menu div.hov { background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.ed-menu div.on { animation: pick 0.4s ease; }
.ed-menu.closing { animation: menuout 0.5s ease 0.35s forwards; }
@keyframes pick { 0% { background: var(--mint); color: var(--forest); } 100% { background: #e3f4ee; } }
@keyframes menuout { to { opacity: 0; transform: translateY(-4px); } }

/* Mac card: MacBook with a single recording window */
.mbp { width: 360px; display: flex; flex-direction: column; align-items: center; }
.mbp-lid { width: 100%; background: #0b0d0c; border-radius: 16px 16px 6px 6px; padding: 9px 9px 12px; box-shadow: inset 0 0 0 1.5px #2b3833, 0 24px 50px rgba(13,22,19,0.22); }
.mbp-screen { position: relative; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: radial-gradient(120% 90% at 80% 110%, #2f8f74 0%, #15433a 38%, #0b1d19 75%); }
.mbp-menubar { height: 15px; display: flex; align-items: center; gap: 9px; padding: 0 9px; background: rgba(0,0,0,0.28); color: #e8eaec; font-size: 7.5px; }
.mbp-menubar .ap { width: 7px; height: 8px; border-radius: 3px 3px 4px 4px; background: #e8eaec; }
.mbp-menubar i { width: 20px; height: 3px; border-radius: 3px; background: rgba(255,255,255,0.35); }
.mbp-menubar .r { margin-left: auto; display: flex; align-items: center; gap: 7px; }
.mbp-menubar .r svg { width: 13px; height: 13px; border-radius: 3px; background: #5fcfae; }
.mbp-menubar em { font-style: normal; }
.mbp-win { position: absolute; left: 50%; top: 54%; transform: translate(-50%, -50%); width: 58%; padding: 12px 14px 14px; border-radius: 12px; background: rgba(14,16,18,0.92); box-shadow: 0 16px 40px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.08); display: flex; flex-direction: column; align-items: center; color: #e8eaec; }
.mbp-tl { align-self: flex-start; display: flex; gap: 4px; margin-bottom: 8px; }
.mbp-tl i { width: 6px; height: 6px; border-radius: 9px; background: #ff5f57; }
.mbp-tl i:nth-child(2) { background: #febc2e; } .mbp-tl i:nth-child(3) { background: #28c840; }
.mbp-rec { display: flex; align-items: center; gap: 5px; font-size: 8.5px; color: #a8b0b8; letter-spacing: 0.06em; text-transform: uppercase; }
.mbp-rec .dot { width: 6px; height: 6px; border-radius: 9px; background: #f2584c; animation: recdot 1.2s ease-in-out infinite; }
.mbp-time { font-family: var(--mono); font-size: 22px; font-variant-numeric: tabular-nums; margin: 3px 0 6px; letter-spacing: -0.02em; }
.mbp-wave { display: flex; align-items: center; justify-content: center; gap: 2px; height: 30px; margin-bottom: 9px; }
.mbp-wave i { width: 2.5px; border-radius: 3px; background: #5fcfae; animation: eq 0.9s ease-in-out infinite; }
.mbp-stop { width: 26px; height: 26px; border-radius: 99px; background: #5fcfae; display: flex; align-items: center; justify-content: center; }
.mbp-stop::after { content: ''; width: 9px; height: 9px; border-radius: 2px; background: #0e1012; }
.mbp-base { width: 112%; height: 11px; border-radius: 2px 2px 12px 12px; background: linear-gradient(#c9cfcb, #9aa29e); position: relative; }
.mbp-base::before { content: ''; position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 18%; height: 4px; border-radius: 0 0 6px 6px; background: #8a928e; }
@media (max-width: 640px) { .mbp { width: 280px; } }

/* Mac card v2: notes window + the real bottom-of-screen pill */
.mbp-win { display: none; }
.mbp-note { position: absolute; left: 9%; top: 22%; width: 62%; padding: 9px 11px 12px; border-radius: 9px; background: rgba(22,26,28,0.94); box-shadow: 0 12px 30px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(255,255,255,0.08); color: #e8eaec; }
.mbp-note .mbp-tl { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.mbp-note .mbp-tl span { margin-left: 8px; font-size: 7.5px; color: #8a949c; }
.mbp-lines i { display: block; height: 4px; border-radius: 3px; background: rgba(255,255,255,0.12); margin-bottom: 5px; }
.mbp-typed { font-size: 9.5px; line-height: 1.4; min-height: 14px; margin-top: 7px; }
.mbp-typed .caret { height: 10px; width: 1.5px; }
.mpill { position: absolute; left: 50%; bottom: 9%; transform: translate(-50%, 8px) scale(0.85); opacity: 0; height: 22px; padding: 0 10px; border-radius: 99px; background: rgba(0,0,0,0.86); box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.18), 0 6px 18px rgba(0,0,0,0.4); display: flex; align-items: center; gap: 7px; transition: opacity 0.25s, transform 0.3s cubic-bezier(.3,1.4,.5,1); }
.mpill.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.mpill .dot { width: 6px; height: 6px; border-radius: 9px; background: #f2584c; flex: none; }
.mp-wave { display: flex; align-items: center; gap: 1.5px; height: 14px; }
.mp-wave i { width: 2px; border-radius: 1px; background: rgba(255,255,255,0.9); animation: eq 0.8s ease-in-out infinite; }
.mp-tx { display: none; font-size: 8px; color: #e8eaec; white-space: nowrap; }
.mpill.busy .dot { background: #5fcfae; animation: recdot 0.8s ease-in-out infinite; }
.mpill.busy .mp-wave { display: none; }
.mpill.busy .mp-tx { display: inline; }
.mkey { position: absolute; right: 7%; bottom: 8%; font-size: 8px; color: rgba(255,255,255,0.55); padding: 3px 7px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2); transition: all 0.2s; }
.mkey b { font-weight: 700; color: #fff; }
.mkey.on { background: #5fcfae; color: #0e1012; box-shadow: none; }
.mkey.on b { color: #0e1012; }

.mbp { width: 440px; max-width: 92%; }
.mbp-typed { font-size: 11px; }
.mpill { height: 26px; padding: 0 12px; }

.mbp { width: 360px; max-width: 80%; }
.mbp { width: 290px; }
.ed-acts i svg { width: 12px; height: 12px; display: block; }

/* Organisation: folders + auto-file rules */
.org-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: center; }
.org { position: relative; background: var(--card); border-radius: var(--r-lg); padding: 24px; box-shadow: 0 30px 80px rgba(13,22,19,0.1); }
.org-rule { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 14px; border-radius: 16px; background: var(--paper); font-size: 14px; }
.org-rule .lbl { color: var(--ink-2); }
.org-rule .tok { padding: 4px 10px; border-radius: 99px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; transition: background 0.3s, color 0.3s, box-shadow 0.3s; }
.org-rule .tok.dest { background: var(--forest); color: var(--on-forest); box-shadow: none; }
.org-rule .tok.hit { background: var(--mint); color: var(--forest); box-shadow: none; }
.org-body { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.org-cap { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.org-inbox { position: relative; min-height: 120px; }
.org-card { position: relative; z-index: 2; padding: 12px 14px; border-radius: 14px; background: var(--card); box-shadow: 0 8px 24px rgba(13,22,19,0.12), inset 0 0 0 1px var(--line); display: grid; gap: 3px; opacity: 0; transform: translateY(-10px); transition: opacity 0.4s, transform 0.7s cubic-bezier(.5,0,.2,1); }
.org-card b { font-size: 14.5px; }
.org-card span { font-size: 12px; color: var(--ink-3); }
.org-tags { display: flex; gap: 5px; margin-top: 4px; font-style: normal; }
.org-tags i { font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: #e3f4ee; color: var(--mint-deep); transition: background 0.3s; }
.org-card.in { opacity: 1; transform: none; }
.org-card.match .org-tags i:first-child { background: var(--mint); color: var(--forest); }
.org-card.fly { opacity: 0; }
.org-tree .f { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; font-size: 14px; transition: background 0.3s; }
.org-tree .f svg { width: 15px; height: 15px; color: var(--ink-3); flex: none; }
.org-tree .f.sub { padding-left: 30px; }
.org-tree .f small { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.org-tree .f.got { background: #e3f4ee; }
.org-tree .f.got svg, .org-tree .f.got small { color: var(--mint-deep); }
#org-chip { top: -16px; right: 24px; }
@media (max-width: 960px) { .org-wrap { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 640px) { .org-body { grid-template-columns: 1fr; } .org { padding: 16px; } }
.vlink { display: block; margin-top: 6px; color: var(--mint-deep); font-weight: 600; text-decoration: none; }
.vlink:hover { text-decoration: underline; }

/* ===== Phones: home page ===== */
.fine, .hero .eyebrow, .pfoot { text-wrap: balance; }
.vdots { display: none; }
@media (max-width: 640px) {
  .band { padding-block: 72px; }
  .head { margin-bottom: 36px; }
  .final { padding-block: 96px 72px; }
  .hero { padding-top: 40px; }
  .hero .eyebrow { font-size: 11.5px; }
  .hero .ctas { flex-direction: column; align-items: center; margin-top: 30px; }
  .hero .ctas .btn, .final .ctas .btn { width: 100%; max-width: 320px; justify-content: center; }
  .final .ctas { flex-direction: column; align-items: center; }
  .flow { grid-template-columns: 0.45fr auto 1.25fr; margin-top: 28px; }
  .ribbon text { font-size: 14px; }

  /* Start anywhere: a swipeable row instead of six full-height cards */
  .vgrid { display: flex; position: relative; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -20px; padding: 0 20px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .vgrid::-webkit-scrollbar { display: none; }
  .vcard { flex: 0 0 84%; scroll-snap-align: center; gap: 18px; }
  .vstage { height: 240px; }
  .vgrid .abx { transform: scale(0.8); }
  .vgrid .ccx { transform: scale(0.86); }
  .vgrid .share, .vgrid .tg { width: 88%; }
  .vgrid .mbp { max-width: 84%; }
  .vdots { display: flex; justify-content: center; gap: 6px; margin-top: 22px; }
  .vdots i { width: 6px; height: 6px; border-radius: 9px; background: var(--line); transition: background 0.3s, width 0.3s; }
  .vdots i.on { width: 18px; background: var(--ink); }

  /* Editing: the list becomes 2x2 chips so the pinned editor fits on screen */
  .editor-wrap { gap: 22px; }
  #control h2.display { font-size: 34px; }
  #control .eyebrow { margin-bottom: 10px; }
  .edit-list { grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 18px; }
  .edit-list li { border: 0; padding: 9px 11px; gap: 8px; border-radius: 12px; background: rgba(255, 255, 255, 0.55); font-size: 13.5px; line-height: 1.3; align-items: flex-start; }
  .edit-list li .k { min-width: 0; font-size: 11px; padding-top: 1px; }
  .edit-list li.on { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--mint-deep); }
  .editor { min-height: 320px; padding: 18px 10px 14px; }
  .ed-line { font-size: 15px; line-height: 1.6; padding: 8px 10px; }
  .ed-chip { right: 12px; max-width: calc(100% - 24px); font-size: 12px; padding: 7px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* Zero Data Retention: switch on top, servers and phone side by side */
  .zdr-stage { height: auto; padding-top: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: stretch; }
  .z-mode { position: static; transform: none; grid-column: 1 / -1; justify-self: center; margin-bottom: 4px; font-size: 13.5px; }
  .z-cloud, .z-phone { position: static; width: auto; height: auto; padding: 14px; }
  .z-cloud { border-radius: 22px; }
  .z-phone { min-height: 236px; border-radius: 30px; }
  .z-label { font-size: 10.5px; letter-spacing: 0.06em; }
  .z-doc { padding: 10px; font-size: 11.5px; }
  .z-del { font-size: 12px; }

  .faq summary { font-size: 17px; padding-block: 20px; }
  .plan { padding: 26px 24px; }
  .chat .q, .chat .a { font-size: 14.5px; }
}

/* ===== Download page ===== */
.dl-hero { padding-block: 72px 52px; text-align: center; }
.dl-hero h1 { font-size: clamp(44px, 6.6vw, 88px); }
.dl-hero h1 em { color: var(--mint-deep); }
.dl-hero .lede { margin: 22px auto 0; }
.dl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
/* The recommended card spans the row; the other four sit two by two. */
.dl-grid.has-rec { grid-template-columns: repeat(2, 1fr); }
.dl-card { background: var(--card); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.dl-vis { height: 240px; flex: none; background: var(--paper-2); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.dl-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.dl-label { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.dl-body h2 { font-size: 30px; line-height: 1.1; margin: 8px 0 10px; }
.dl-body p { color: var(--ink-2); font-size: 15.5px; text-wrap: pretty; }
.dl-body b { color: var(--ink); font-weight: 600; }
.dl-steps { margin: 16px 0 0 20px; color: var(--ink-2); font-size: 15px; display: grid; gap: 6px; }
.dl-steps a { color: var(--mint-deep); font-weight: 600; }
.dl-note { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--paper); font-size: 14.5px; }
.dl-cta { margin-top: auto; padding-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.dl-fine { font-size: 13px; color: var(--ink-3); }
.dl-rec { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; margin-bottom: 18px; padding: 6px 12px; border-radius: 99px; background: var(--mint); color: var(--forest); font-size: 13px; font-weight: 600; }
.dl-rec::before { content: ''; width: 7px; height: 7px; border-radius: 9px; background: var(--forest); }
.dl-rec[hidden] { display: none; }
.dl-foot { margin: 44px auto 96px; text-align: center; color: var(--ink-2); font-size: 15.5px; text-wrap: balance; }
.dl-foot a { color: var(--mint-deep); font-weight: 600; text-decoration: none; white-space: nowrap; }

/* Visuals, sized down from the home page versions */
.dl-card[data-platform="ios"] .dl-vis,
.dl-card[data-platform="android"] .dl-vis { align-items: flex-start; padding-top: 30px; }
.dl-phone { width: 155px; height: 320px; flex: none; }
.dl-phone .phone { transform: scale(0.5); transform-origin: top left; }
.dl-watch { position: absolute; left: calc(50% + 34px); bottom: 18px; transform: scale(0.6); transform-origin: left bottom; }
.dl-watch .watch-s { gap: 8px; }
.dl-watch .wl { font-size: 10px; color: #a8b0b8; letter-spacing: 0.04em; }
.dl-vis .mbp { width: 290px; max-width: 84%; }
.dl-vis .macw { width: 320px; max-width: 88%; }
.dl-vis .tg { width: 300px; max-width: 86%; }

/* The card for this device: full width, dark, visual alongside */
.dl-card.recommended { grid-column: 1 / -1; flex-direction: row-reverse; background: var(--forest); color: var(--on-forest); }
.recommended .dl-vis { width: 50%; height: auto; min-height: 440px; background: var(--forest-2); }
.recommended .dl-body { padding: 56px; justify-content: center; }
.recommended .dl-body h2 { font-size: clamp(40px, 4.4vw, 56px); margin: 10px 0 14px; }
.recommended .dl-body p, .recommended .dl-steps { color: var(--on-forest-2); font-size: 17px; }
.recommended .dl-body b { color: var(--on-forest); }
.recommended .dl-label { color: var(--mint); }
.recommended .dl-steps a { color: var(--mint); }
.recommended .dl-note { background: var(--forest-2); }
.recommended .dl-fine { color: var(--on-forest-2); }
.recommended .dl-cta { margin-top: 0; padding-top: 30px; }
.recommended .btn-ink { background: var(--mint); color: var(--forest); padding: 17px 28px; font-size: 17px; }
.recommended .btn-ink:hover { filter: brightness(1.06); }
.recommended[data-platform="ios"] .dl-vis,
.recommended[data-platform="android"] .dl-vis { align-items: center; padding-top: 0; }
.recommended .dl-phone { width: 192px; height: 397px; }
.recommended .dl-phone .phone { transform: scale(0.62); }
.recommended .dl-watch { left: calc(50% + 52px); bottom: 40px; transform: scale(0.72); }
.recommended .mbp { width: 400px; }
.recommended .macw { width: 400px; }
.recommended .tg { width: 340px; }

@media (max-width: 960px) {
  .dl-grid, .dl-grid.has-rec { grid-template-columns: 1fr; }
  .dl-card:not(.recommended) { flex-direction: row; }
  .dl-card:not(.recommended) .dl-vis { width: 42%; height: auto; min-height: 260px; }
  .dl-card.recommended { flex-direction: column; }
  .recommended .dl-vis { width: auto; min-height: 0; height: 340px; }
  .recommended .dl-body { padding: 36px 32px 40px; }
}
@media (max-width: 640px) {
  .dl-hero { padding-block: 40px 32px; }
  .dl-hero h1 { font-size: 44px; }
  .dl-grid { gap: 12px; }
  .dl-card:not(.recommended) .dl-vis { display: none; }
  .dl-card:not(.recommended) .dl-body { padding: 22px 22px 24px; }
  .dl-card:not(.recommended) h2 { font-size: 26px; }
  .recommended .dl-vis { height: 280px; }
  .recommended .dl-body { padding: 28px 24px 30px; }
  .recommended .dl-body h2 { font-size: 40px; }
  .recommended .dl-body p, .recommended .dl-steps { font-size: 16px; }
  .recommended .dl-cta .btn { width: 100%; justify-content: center; }
  .recommended .dl-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .dl-cta .btn { justify-content: center; }
  .dl-foot { margin: 32px auto 64px; }
}
@media (max-width: 960px) {
  .recommended[data-platform="ios"] .dl-vis,
  .recommended[data-platform="android"] .dl-vis { align-items: flex-start; padding-top: 36px; }
}
@media (max-width: 640px) {
  /* Button before the picture, so it is on the first screen */
  .dl-card.recommended { flex-direction: column-reverse; }
  .recommended .dl-vis { height: 260px; }
  .recommended[data-platform="ios"] .dl-vis,
  .recommended[data-platform="android"] .dl-vis { padding-top: 28px; }
  .recommended .dl-phone { width: 170px; height: 351px; }
  .recommended .dl-phone .phone { transform: scale(0.55); }
  .recommended .dl-watch { left: calc(50% + 40px); bottom: 24px; transform: scale(0.62); }
}
@media (max-width: 640px) and (max-height: 760px) {
  /* Short phones (iPhone SE): the chip on the editor already names each step */
  .edit-list { display: none; }
  #control h2.display { font-size: 30px; }
}

/* ===== Scenes: sections that stick while scrolling drives the demo ===== */
.scene { padding-block: 0; }
.scene-pin { padding-block: 120px; }
.scene-pin:not(.any-pin) { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.scene-pin.editor-wrap { grid-template-columns: 0.9fr 1.1fr; }
.scene-pin.org-wrap { grid-template-columns: 0.8fr 1.2fr; }
.scene-pin.flip .scene-text { order: 2; }
.scene .lede { margin-top: 20px; }
.scene-demo { min-width: 0; min-height: 0; display: flex; align-items: center; justify-content: center; }
.fit { width: 100%; display: flex; justify-content: center; transform-origin: center center; }
.fit > * { width: 100%; }
.fit > .sheet { max-width: 420px; }
.scene.pinned .scene-pin { height: 100vh; height: 100svh; padding-block: 104px 40px; }
.scene.pinned .scene-pin:not(.any-pin) { grid-template-rows: minmax(0, 1fr); }
.scene.pinned .scene-demo { height: 100%; }
.scene.pinned .nd-note { transition-delay: 0s; }

/* Start anywhere: a row of cards the scroll slides through */
.any-pin { display: flex; flex-direction: column; justify-content: center; gap: 36px; }
.any-pin .scene-text .eyebrow { display: block; }
.any-view { overflow: hidden; }
.any-track { display: flex; gap: 20px; padding-left: max(20px, calc((100vw - 1180px) / 2 + 20px)); will-change: transform; }
.any-track .vcard { flex: 0 0 400px; }
.scene:not(.pinned) .any-view { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.scene:not(.pinned) .any-view::-webkit-scrollbar { display: none; }
.scene:not(.pinned) .any-track .vcard { scroll-snap-align: start; }
.scene:not(.pinned) #any-dots { display: none; }
#any-dots { display: flex; justify-content: center; gap: 6px; }
#any-dots i { width: 6px; height: 6px; border-radius: 9px; background: var(--line); transition: background 0.3s, width 0.3s; }
#any-dots i.on { width: 18px; background: var(--ink); }

/* Demo states: start empty when pinned, finished otherwise */
.watch-s .wt-d { font-size: 24px; font-weight: 300; font-variant-numeric: tabular-nums; }
.watch-s .wl { font-size: 10px; color: #a8b0b8; letter-spacing: 0.04em; }
.watch .wb::after { transition: border-radius 0.3s, width 0.3s, height 0.3s; }
.watch:not(.rec) .wb::after { width: 26px; height: 26px; border-radius: 99px; }
.watch:not(.rec) .wt-d { color: #767e87; }
.ccx .ctl.sk { animation: none; transition: background 0.3s, box-shadow 0.3s; }
.scene.pinned .ccx:not(.on) .ctl.sk { background: rgba(255, 255, 255, 0.12); }
.ccx.on .ctl.sk { box-shadow: 0 0 0 6px rgba(95, 207, 174, 0.3); }
.share .apps .sk i { transition: outline-color 0.3s, transform 0.3s; }
.scene.pinned .share:not(.pick) .apps .sk i { outline-color: transparent; }
.share.pick .apps .sk i { transform: scale(1.06); }
.share-ok { margin-top: 12px; padding: 8px 12px; border-radius: 10px; background: #e3f4ee; color: var(--mint-deep); font-size: 12.5px; font-weight: 600; text-align: center; }
.scene.pinned .share:not(.sent) .share-ok { opacity: 0; transform: translateY(6px); }
.share-ok { transition: opacity 0.3s, transform 0.3s; }
.tg .tg-b.bot { transition: opacity 0.4s, transform 0.4s; }
.scene.pinned .tg:not(.on) .tg-b.bot { opacity: 0; transform: translateY(10px); }
.nd-note .caret { display: none; height: 1em; background: var(--mint); }
.notes-demo.typing .nd-note .caret { display: inline-block; }
.w-bad { text-decoration: underline wavy var(--rec); text-underline-offset: 3px; }
.scene.pinned .c-in { opacity: 0; transform: translateY(8px); transition: opacity 0.35s, transform 0.35s; }
.scene.pinned .c-in.on { opacity: 1; transform: none; }
#sheet-btn { transition: background 0.3s; }
#sheet-btn.done { background: var(--mint-deep); }

/* Editing caption (phones and tablets; desktop keeps the list) */
.ed-cap { display: none; }
.ed-bars { display: flex; gap: 5px; margin-bottom: 12px; }
.ed-bars i { flex: 1; height: 3px; border-radius: 3px; background: var(--line); transition: background 0.3s; }
.ed-bars i.on { background: var(--mint-deep); }
.ed-cap b { display: block; font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
.ed-cap p { color: var(--ink-2); font-size: 15px; line-height: 1.45; margin-top: 3px; min-height: 2.9em; }

@media (max-width: 960px) {
  .scene-pin { padding-block: 80px; }
  .scene-pin:not(.any-pin), .scene-pin.editor-wrap, .scene-pin.org-wrap { grid-template-columns: 1fr; gap: 28px; }
  .scene-pin.flip .scene-text { order: 0; }
  .scene.pinned .scene-pin:not(.any-pin) { display: flex; flex-direction: column; justify-content: flex-start; gap: 18px; padding-block: 90px 20px; }
  .scene.pinned .scene-text { flex: none; }
  .scene.pinned .scene-demo { flex: 1 1 0; height: auto; align-items: flex-start; }
  .scene.pinned .fit { transform-origin: top center; }
  .scene.pinned .zdr-points, .scene.pinned .dict .mac { display: none; }
  #control .edit-list, #control .ed-chip { display: none; }
  .ed-cap { display: block; margin-top: 18px; }
  .scene.pinned .editor { min-height: 330px; }
  .scene.pinned .any-pin { padding-block: 90px 24px; gap: 22px; justify-content: flex-start; }
}

/* ===== Phones: type scale ===== */
@media (max-width: 640px) {
  .eyebrow { font-size: 11px; margin-bottom: 10px; letter-spacing: 0.1em; }
  .hero h1 { font-size: 44px; }
  .hero .lede { font-size: 16px; margin-top: 18px; }
  .lede { font-size: 15.5px; }
  h2.display { font-size: 30px; line-height: 1.06; }
  h3.display { font-size: 22px; }
  .step h2 { font-size: 27px; }
  .step-n { margin-bottom: 10px; }
  .btn { font-size: 15px; padding: 13px 20px; }
  .scene .lede { margin-top: 10px; }
  .any-track { gap: 12px; }
  .any-track .vcard { flex-basis: calc(100vw - 56px); gap: 14px; }
  .any-track .vstage { height: min(240px, 33svh); }
  .vcard p { font-size: 15px; margin-top: -8px; }
  .zdr-points li, .dict .mac p { font-size: 15px; }
  .plan .amt { font-size: 44px; }
  .plan li { font-size: 14.5px; }
  .ptabs button { font-size: 13.5px; }
  .faq summary { font-size: 16px; padding-block: 18px; }
  .faq p { font-size: 15px; }
  .final h2 { font-size: 38px; }
  .pfoot { font-size: 13px; }
  .foot nav { gap: 14px 18px; }
  .dl-hero h1 { font-size: 38px; }
  .recommended .dl-body h2 { font-size: 34px; }
  .dl-card:not(.recommended) h2 { font-size: 23px; }
  .dl-body p, .recommended .dl-body p, .recommended .dl-steps { font-size: 15px; }
}
@media (max-width: 640px) {
  /* Folders & rules: compact enough to show at full size on a phone */
  .org { padding: 14px; }
  .org-rule { padding: 10px; font-size: 13px; gap: 5px; }
  .org-rule .tok { padding: 3px 8px; }
  .org-body { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
  .org-inbox { min-height: 0; }
  .org-card { padding: 10px; }
  .org-card b { font-size: 13px; }
  .org-card span { font-size: 11px; }
  .org-tags i { font-size: 10px; padding: 1px 6px; }
  .org-tree .f { font-size: 12.5px; padding: 5px 6px; gap: 6px; }
  .org-tree .f.sub { padding-left: 18px; }
  .org-tree .f svg { width: 13px; height: 13px; }
  .org-tree .f:nth-child(n+6) { display: none; }
  .said { font-size: 19px; min-height: 120px; }
}
@media (max-width: 960px) {
  .story-pin { padding-block: 92px 24px; align-content: start; }
  .story .phone { height: min(470px, 50svh); }
}

/* ===== Pricing scene ===== */
.price-pin { display: flex; flex-direction: column; align-items: stretch; gap: 32px; text-align: center; }
.price-pin .scene-text .lede { margin-inline: auto; }
.price-pin .ptabs { margin: 28px 0 0; }
.price-pin .scene-demo { align-items: flex-start; }
.pviews { width: 100%; }
.scene.pinned .price-pin { padding-block: 100px 32px; gap: 24px; }
.scene.pinned .price-pin .scene-demo { flex: 1 1 0; height: auto; }
.scene.pinned .price-pin .fit { transform-origin: top center; }
.plan { transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.35s ease; }
.scene.pinned .plan.cur { transform: translateY(-8px); box-shadow: 0 24px 60px rgba(13, 22, 19, 0.14), inset 0 0 0 2px var(--mint-deep); }
.scene.pinned .plan.feat.cur { box-shadow: 0 24px 60px rgba(13, 22, 19, 0.3), inset 0 0 0 2px var(--mint); }
.pdots { display: none; justify-content: center; gap: 6px; }
.pdots i { width: 6px; height: 6px; border-radius: 9px; background: var(--line); transition: background 0.3s, width 0.3s; }
.pdots i.on { width: 18px; background: var(--ink); }
.price-foot .pfoot { margin-top: 8px; padding-bottom: 96px; }
.scene:not(.pinned) .price-foot .pfoot { margin-top: 0; }
@media (max-width: 640px) {
  /* One plan at a time, so each is readable at full size */
  .scene.pinned .pview .plan:not(.cur) { display: none; }
  .scene.pinned .pview.two, .scene.pinned .pview.three { grid-template-columns: 1fr; }
  .scene.pinned .pdots { display: flex; flex: none; }
  .scene.pinned .price-pin { padding-block: 88px 20px; gap: 16px; }
  .price-pin .ptabs { margin-top: 16px; }
  .price-foot .pfoot { padding-bottom: 64px; }
}

/* ===== Segment notes, as the app draws them since #861 =====
   Comment bubbles with a tail pointing at their line: under it, folded into a
   "2 notes" chip on a phone; beside it in a right-hand column when wide. */
.nd-thread { display: flex; flex-direction: column; }
.nd-thread > .nd-notes { order: 1; }
.nd-notes { margin: 0 8px 8px 74px; min-width: 0; }
.nd-chip { display: none; align-items: baseline; gap: 7px; max-width: 100%; padding: 4px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--mint-deep) 28%, var(--line)); background: var(--card); color: var(--ink-2); font-size: 12.5px; line-height: 1.35; }
.nd-chip b { flex: none; font-weight: 650; color: var(--mint-deep); }
.nd-chip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nd-list { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.nd-bubble { --bubble: color-mix(in srgb, var(--mint-deep) 9%, var(--card)); --bubble-line: color-mix(in srgb, var(--mint-deep) 24%, var(--line)); position: relative; max-width: 100%; padding: 7px 12px 9px; border: 1px solid var(--bubble-line); border-radius: 16px; background: var(--bubble); transition: opacity 0.35s, transform 0.35s; }
.nd-bubble:first-child { border-top-left-radius: 6px; }
.nd-bubble:first-child::before { content: ''; position: absolute; top: -6px; left: 12px; width: 10px; height: 10px; border-top: 1px solid var(--bubble-line); border-left: 1px solid var(--bubble-line); border-top-left-radius: 2px; background: inherit; transform: rotate(45deg); }
.nd-head { display: flex; gap: 6px; margin-bottom: 2px; font-size: 11px; line-height: 1.2; color: var(--ink-3); white-space: nowrap; }
.nd-head em { font-style: normal; color: var(--mint-deep); font-variant-numeric: tabular-nums; }
.nd-body { font-size: 14.5px; line-height: 1.5; }
.nd-bubble .caret { display: none; height: 1em; }
.notes-demo.typing .nd-bubble .caret { display: inline-block; }
.notes-demo { padding-right: 0; }
.notes-demo .nd-note { display: none; }
/* Scroll-driven: bubbles arrive one at a time, then (phone) fold into the chip */
.scene.pinned .nd-thread:not(.s1) #nd-b1, .scene.pinned .nd-thread:not(.s2) #nd-b2 { opacity: 0; transform: translateY(-6px); }
.scene.pinned .nd-thread:not(.s1) .nd-notes { display: none; }
.scene.pinned .nd-thread:not(.s2) #nd-b2 { display: none; }
@media (min-width: 961px) {
  /* Wide: notes beside the line, always open, tail pointing left */
  .nd-doc:has(.nd-thread) .nd-line { margin-right: 216px; }
  .nd-thread { display: block; }
  .nd-thread > .nd-notes { float: right; clear: right; width: 200px; margin: 6px 0 8px; }
  .nd-thread::after { content: ''; display: block; clear: both; }
  .nd-bubble:first-child::before { top: 9px; left: -6px; border-top: none; border-left: 1px solid var(--bubble-line); border-bottom: 1px solid var(--bubble-line); border-top-left-radius: 0; border-bottom-left-radius: 2px; }
  .nd-body { font-size: 13.5px; }
  .fit > .notes-demo { max-width: 640px; }
}
@media (max-width: 960px) {
  .nd-thread.folded .nd-list { display: none; }
  .nd-thread.folded .nd-chip { display: inline-flex; }
  .notes-demo { padding-bottom: 0; }
}
@media (max-width: 640px) {
  .nd-notes { margin-left: 58px; }
  .nd-line { grid-template-columns: 40px 1fr; gap: 10px; padding: 9px 4px; font-size: 15px; }
}

/* Story phone (dark app theme): the same bubbles, phone layout */
.a-notes { margin: 2px 0 8px 38px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.a-bub { position: relative; padding: 5px 9px 6px; border: 1px solid rgba(95, 207, 174, 0.26); border-radius: 12px; background: #172420; font-size: 11.5px; line-height: 1.45; color: #e8eaec; }
.a-bub:first-child { border-top-left-radius: 5px; }
.a-bub:first-child::before { content: ''; position: absolute; top: -5px; left: 10px; width: 8px; height: 8px; border-top: 1px solid rgba(95, 207, 174, 0.26); border-left: 1px solid rgba(95, 207, 174, 0.26); background: inherit; transform: rotate(45deg); border-top-left-radius: 2px; }
.a-bub .h { display: block; font-size: 8.5px; color: #767e87; margin-bottom: 1px; white-space: nowrap; }
.a-bub .h em { font-style: normal; color: #5fcfae; }
.a-nchip { display: inline-flex; gap: 6px; max-width: 100%; padding: 3px 9px; border-radius: 99px; border: 1px solid rgba(95, 207, 174, 0.3); background: #15181b; font-size: 10.5px; color: #a8b0b8; white-space: nowrap; overflow: hidden; }
.a-nchip b { color: #5fcfae; font-weight: 650; }
.a-nchip span { overflow: hidden; text-overflow: ellipsis; }

/* Story steps fade and slide. Fraunces italics (y, f) reach ~2px left of the
   text box, and Chrome can paint that overhang outside the fading layer at
   full brightness: a stray white sliver at the left edge mid-transition.
   Give the box room on the left (text stays put) and keep each step on its
   own layer. */
.story.pinned .step { left: -16px; padding-left: 16px; will-change: opacity, transform; }
.scene .scene-text .display { padding-left: 4px; margin-left: -4px; }
.a-title.a-title-s { font-size: 14px; margin-bottom: 10px; }
@media (max-width: 960px) {
  /* The story phone is small on a phone; draw its screen at 80% so it holds
     about what a real iPhone screen does instead of 25 characters a line. */
  /* zoom, not transform: GSAP owns the screens' transform while it fades them. */
  .story .scr > * { zoom: 0.8; }
}

/* ===== Story on phones: a real-size phone, cropped, instead of a tiny one =====
   The app's screen is drawn at its true proportions (a 300px phone shows what a
   390px iPhone does, at ~12px type), and the phone runs off the bottom of its
   area with a fade, using the height that used to sit empty under the text. */
@media (max-width: 960px) {
  .story { --ph: max(250px, calc(100svh - 290px)); }
  .story-pin { padding-block: 82px 16px; gap: 14px; align-content: start; }
  .story-device { height: var(--ph); overflow: hidden; align-items: flex-start; -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
  .story .phone { width: 300px; height: 620px; aspect-ratio: auto; border-radius: 50px; padding: 11px; }
  .story .phone::before { top: 22px; width: 92px; height: 27px; }
  .story .screen { border-radius: 40px; }
  .story .scr { padding: 56px 16px 16px; }
  .story .scr > * { zoom: 1; }
  /* The record bar sits where the crop can still see it */
  .story .a-rec2 { bottom: auto; top: calc(var(--ph) - 96px); }
  .st-watch { left: calc(50% + 58px); bottom: 12px; transform: scale(0.62); }
  .story.pinned .story-steps { min-height: 168px; }
  .step-n { font-size: 12px; margin-bottom: 8px; }
  .step h2 { font-size: 26px; }
  .step p { font-size: 15px; margin-top: 6px; }
  .story.pinned .dots { bottom: 0; }
}

/* "Or ask Claude or ChatGPT" line under a feature (the connector can do it) */
.ai-hint { display: flex; align-items: flex-start; gap: 9px; margin-top: 22px; max-width: 460px; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.ai-hint svg { flex: none; width: 17px; height: 17px; margin-top: 1px; color: var(--mint-deep); }
.ai-hint q { color: var(--ink); font-weight: 550; quotes: '“' '”'; }
#control .ai-hint { margin-top: 26px; }
@media (max-width: 960px) {
  .ai-hint { margin-top: 12px; font-size: 13.5px; }
  #control .ai-hint { margin-top: 8px; }
}

/* Folders & rules: each rule part lights up the matching part of the card */
.org-card .org-src { font-style: normal; border-radius: 4px; padding: 0 3px; margin: 0 -3px; transition: background 0.3s, color 0.3s; }
.org-card.src-hit .org-src { background: var(--mint); color: var(--forest); }

/* ===== Pricing: one page per group =====
   Subscription (Free + Pro) together, then Pay as you go (three packs)
   together. On a phone the cards go compact so each group fits one screen. */
.scene.pinned .pview .plan:not(.cur) { display: flex; }
@media (max-width: 640px) {
  .scene.pinned .pview.two { grid-template-columns: 1fr 1fr; gap: 8px; }
  .scene.pinned .pview.three { grid-template-columns: 1fr; gap: 8px; }
  .scene.pinned .pview .plan { padding: 16px 14px; border-radius: 20px; }
  .scene.pinned .pview .plan .badge { position: static; align-self: flex-start; margin-bottom: 8px; font-size: 9.5px; padding: 3px 8px; }
  .scene.pinned .pview .plan h3 { font-size: 13px; }
  .scene.pinned .pview .plan .amt { font-size: 32px; margin: 6px 0 2px; }
  .scene.pinned .pview .plan .amt small { font-size: 12px; }
  .scene.pinned .pview .plan .stars { font-size: 11px; }
  .scene.pinned .pview .plan ul { gap: 6px; margin: 12px 0 14px; }
  .scene.pinned .pview .plan li { font-size: 12.5px; line-height: 1.35; padding-left: 18px; }
  .scene.pinned .pview .plan li::before { top: 4px; width: 8px; height: 5px; }
  .scene.pinned .pview .plan .btn { padding: 10px 12px; font-size: 13px; }
  /* Packs: a row each — name and price left, what you get right */
  .scene.pinned .pview.three .plan { display: grid; grid-template-columns: 96px 1fr; column-gap: 12px; align-items: start; }
  .scene.pinned .pview.three .plan .badge { grid-column: 1 / -1; }
  .scene.pinned .pview.three .plan h3, .scene.pinned .pview.three .plan .amt, .scene.pinned .pview.three .plan .stars { grid-column: 1; }
  .scene.pinned .pview.three .plan ul { grid-column: 2; grid-row: 2 / span 3; margin: 0; }
  .scene.pinned .pview.three .plan .badge + h3 + .amt + .stars + ul { grid-row: 3 / span 3; }
  .scene.pinned .pview.three .plan .btn { grid-column: 1 / -1; margin-top: 12px; }
}
@media (max-width: 640px) {
  .scene.pinned .pview.three .plan { position: relative; }
  .scene.pinned .pview.three .plan .badge { position: absolute; top: 14px; right: 14px; margin: 0; }
  .scene.pinned .pview.three .plan .badge + h3 + .amt + .stars + ul { grid-row: 2 / span 3; }
  .scene.pinned .pview.three .plan ul { grid-row: 1 / span 3; }
  .scene.pinned .pview.three .plan:has(.badge) ul { margin-top: 26px; }
  .scene.pinned .pview.three .plan .btn { margin-top: 10px; padding-block: 8px; }
}
@media (max-width: 640px) { .scene.pinned .pview .plan .btn { white-space: nowrap; padding-inline: 8px; font-size: 12.5px; } }

/* FAQ: links, and the dictation vs transcription table */
.faq p a, .faq-a a { color: var(--mint-deep); font-weight: 600; text-decoration: none; }
.faq p a:hover { text-decoration: underline; }
.faq-a { padding-bottom: 24px; max-width: 700px; }
.faq-a p { padding-bottom: 12px; }
.faq-a p b { color: var(--ink); }
.faq-table { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 15px; text-align: left; }
.faq-table th, .faq-table td { padding: 10px 12px 10px 0; border-top: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.faq-table thead th { border-top: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.faq-table tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; width: 1%; }
.faq-table td.no { color: var(--ink-3); }
@media (max-width: 640px) {
  .faq-table { font-size: 13.5px; }
  .faq-table th, .faq-table td { padding: 8px 8px 8px 0; }
  .faq-table tbody th { white-space: normal; width: 26%; }
}

/* ---- Connect and support pages (reuse the download page's hero and cards) ---- */
.cn-url { display: inline-flex; align-items: center; gap: 14px; max-width: 100%; margin-top: 34px; padding: 7px 7px 7px 22px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); }
.cn-url code { font-family: var(--mono); font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cn-url .btn { padding: 11px 18px; font-size: 14.5px; flex: none; }
.cn-fine { margin-top: 14px; font-size: 13.5px; color: var(--ink-3); }
.cn-page .dl-body code, .cn-page .faq code { font-family: var(--mono); font-size: 0.9em; background: var(--paper-2); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.cn-page .dl-note { background: var(--paper); color: var(--ink-2); }
.cn-page .dl-note code { background: var(--card); }
.cn-page .faq a { color: var(--mint-deep); font-weight: 600; text-decoration: none; }
.cn-page .faq b { color: var(--ink); font-weight: 600; }
.cn-foot { margin-bottom: 72px; }
.cn-asks { list-style: none; display: grid; margin-top: 34px; }
.cn-asks li { padding: 14px 0; border-top: 1px solid var(--forest-line); color: var(--on-forest-2); font-size: 16.5px; text-wrap: pretty; }
.cn-asks em { font-style: normal; color: var(--on-forest); }
.cn-one { margin-bottom: 0; }
.cn-contact .dl-body code { background: var(--forest-2); color: var(--on-forest); }
.cn-contact .dl-body p a { color: var(--mint); font-weight: 600; text-decoration: none; }
.cn-contact .dl-vis { min-height: 380px; }
.tg-b.cn-me { justify-self: end; background: var(--mint); color: var(--forest); }
.cn-contact .tg-b.bot { color: var(--ink); }
@media (max-width: 640px) {
  .cn-url { flex-direction: column; align-items: stretch; gap: 10px; padding: 16px; border-radius: 22px; text-align: center; }
  .cn-url code { font-size: 13.5px; }
  .cn-url .btn { justify-content: center; }
  .cn-contact .dl-vis { min-height: 0; height: 220px; }
}

/* ---- Long-form pages (privacy policy) ---- */
.cn-doc { max-width: 760px; margin: 0 auto 96px; }
.cn-doc h2 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3vw, 36px); line-height: 1.12; letter-spacing: -0.02em; margin: 64px 0 18px; scroll-margin-top: 96px; text-wrap: balance; }
.cn-doc h3 { font-size: 17px; font-weight: 600; margin: 30px 0 8px; }
.cn-doc p { color: var(--ink-2); font-size: 16.5px; line-height: 1.7; margin-bottom: 16px; text-wrap: pretty; }
.cn-doc ul { color: var(--ink-2); font-size: 16.5px; line-height: 1.65; margin: 0 0 16px 20px; display: grid; gap: 10px; }
.cn-doc strong { color: var(--ink); font-weight: 600; }
.cn-doc a { color: var(--mint-deep); font-weight: 600; text-decoration: none; }
.cn-doc a:hover { text-decoration: underline; }
.cn-doc code { font-family: var(--mono); font-size: 0.88em; background: var(--paper-2); padding: 1px 6px; border-radius: 6px; }
.cn-doc .legal-summary { background: var(--forest); color: var(--on-forest); border-radius: var(--r-lg); padding: 34px 36px; margin: 8px 0 8px; }
.cn-doc .legal-summary .section-label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mint); margin-bottom: 18px; }
.cn-doc .legal-summary ul { color: var(--on-forest-2); margin-bottom: 0; }
.cn-doc .legal-summary strong { color: var(--on-forest); }
.cn-doc .legal-summary code { background: var(--forest-2); color: var(--on-forest); }
.cn-doc .legal-parties { list-style: none; margin-left: 0; gap: 0; background: var(--card); border-radius: 26px; padding: 6px 28px; }
.cn-doc .legal-parties li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.cn-doc .legal-parties li:last-child { border-bottom: 0; }
.cn-doc .legal-parties h4 { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.cn-doc .legal-parties p { margin: 0; font-size: 15.5px; line-height: 1.6; }
@media (max-width: 640px) {
  .cn-doc h2 { margin-top: 48px; }
  .cn-doc .legal-summary { padding: 26px 22px; }
  .cn-doc .legal-parties { padding: 4px 20px; }
}

/* Meetings card (start anywhere row): calendar event → recording island */
.mt-cal { position: absolute; left: 50%; top: 18%; transform: translateX(-50%); width: 62%; padding: 9px 10px; border-radius: 9px; background: rgba(250,251,249,0.96); color: var(--ink); box-shadow: 0 12px 30px rgba(0,0,0,0.35); }
.mt-day { font-size: 7px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.mt-ev { display: grid; grid-template-columns: 24px 1fr; column-gap: 4px; padding: 4px 6px; border-radius: 5px; font-size: 8px; margin-bottom: 3px; border-left: 2px solid #c8d0cb; }
.mt-ev span { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.mt-ev small { grid-column: 2; font-size: 7px; color: var(--ink-2); margin-top: 1px; }
.mt-ev.past { opacity: 0.45; }
.mt-ev.hot { background: #e3f4ee; border-left-color: var(--mint-deep); transition: box-shadow 0.3s; }
.mt-ev.hot.live { box-shadow: inset 0 0 0 1px var(--mint-deep); }
.mt-island { position: absolute; left: 50%; bottom: 8%; transform: translate(-50%, 6px) scale(0.9); opacity: 0; height: 20px; padding: 0 9px; border-radius: 99px; background: rgba(0,0,0,0.9); box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.18), 0 6px 18px rgba(0,0,0,0.4); display: flex; align-items: center; gap: 6px; color: #fff; transition: opacity 0.25s, transform 0.3s cubic-bezier(.3,1.4,.5,1); }
.mt-island.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.mt-island .dot { width: 6px; height: 6px; border-radius: 9px; background: #f2584c; animation: recdot 1.2s ease-in-out infinite; }
.mt-island em { font-style: normal; font-family: var(--mono); font-size: 7.5px; font-variant-numeric: tabular-nums; }
