/* Full Latin Extended variable fonts. Fallback metrics approximate default axes;
   all final demo geometry is measured after document.fonts.ready. */
@font-face { font-family: Archivo; src: url("fonts/archivo.woff2") format("woff2"); font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: Newsreader; src: url("fonts/newsreader.woff2") format("woff2"); font-style: normal; font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Archivo Fallback"; src: local("Arial"); size-adjust: 101.435782%; ascent-override: 86.557227%; descent-override: 20.702754%; line-gap-override: 0%; }
@font-face { font-family: "Newsreader Fallback"; src: local("Georgia"); size-adjust: 88.483570%; ascent-override: 83.066269%; descent-override: 29.949063%; line-gap-override: 0%; }
/* Draftland homepage, direction C "Five voices" */
:root {
  --ink: #16110F;
  --ink-2: #231B17;
  --ink-3: #2E2520;
  --on-ink: #FFF7F0;
  --muted-on-ink: #BFB2A9;
  --paper: #FFFFFF;
  --text: #16110F;
  --muted: #5B514B;
  --rule: #E7E0DB;

  --sam: #FF5B3A;
  --morgan: #FFC21A;
  --ola: #2FD38A;
  --theo: #4EA3FF;
  --priya: #FF77C8;
  --five: linear-gradient(90deg, var(--sam) 0 20%, var(--morgan) 20% 40%, var(--ola) 40% 60%, var(--theo) 60% 80%, var(--priya) 80% 100%);

  --display: "Archivo", "Archivo Fallback", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", "Newsreader Fallback", Georgia, "Times New Roman", serif;

  --ease-out: cubic-bezier(.16, .84, .24, 1);
  --pad: clamp(20px, 4.4vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--on-ink);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.5;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--pad); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--on-ink); outline-offset: 3px; border-radius: 4px; }
.how :focus-visible, .pricing :focus-visible, .closing :focus-visible, .paper :focus-visible { outline-color: var(--ink); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--on-ink); color: var(--ink); padding: 10px 14px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Buttons: squared, heavy, with the five-voice stripe */
.btn {
  --btn-bg: var(--on-ink);
  --btn-fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px 4px;
  border: 0; border-radius: 6px;
  background: var(--five) left bottom / 100% 5px no-repeat, var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--display); font-weight: 760; font-size: 18px; letter-spacing: -0.005em;
  font-variation-settings: "wdth" 104;
  text-decoration: none; cursor: pointer;
  transition: background-size .35s var(--ease-out), transform .2s var(--ease-out), color 0s .07s;
}
@media (hover: hover) { .btn:hover { background-size: 100% 100%, auto; color: var(--ink); } }
.btn:active { transform: translateY(1px); }
.btn-ink { --btn-bg: var(--ink); --btn-fg: var(--on-ink); }
.btn-small { min-height: 42px; padding: 0 16px 4px; font-size: 16px; }
.btn-big { min-height: 60px; padding: 0 34px 5px; font-size: 20px; }
.btn-ghost {
  background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); padding-bottom: 0;
}
@media (hover: hover) { .btn-ghost:hover { background: var(--ink); color: var(--on-ink); } }

.text-link {
  font-weight: 650; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
  text-decoration-color: rgba(255, 247, 240, .45);
}
@media (hover: hover) { .text-link:hover { text-decoration-color: currentColor; } }
.text-link-ink { text-decoration-color: rgba(22, 17, 15, .4); }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1440px; margin: 0 auto; padding: 18px var(--pad);
}
.brand { display: block; color: var(--on-ink); line-height: 0; padding: 4px 0; }
.brand svg { width: 100px; height: 30px; }
.site-nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 30px); font-weight: 600; font-size: 16px; }
.site-nav a:not(.btn) { text-decoration: none; padding: 8px 0; }
.site-nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }

/* Hero */
.hero {
  max-width: 1440px; margin: 0 auto;
  padding: clamp(14px, 3vw, 40px) var(--pad) clamp(56px, 7vw, 96px);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px;
}
h1 {
  font-weight: 820; font-variation-settings: "wdth" 100;
  font-size: clamp(40px, 10.6vw, 60px); line-height: .98; letter-spacing: -0.03em;
}
.h1-a, .h1-b { display: block; text-wrap: balance; }
.ph-br { display: none; }
@media (max-width: 1099px) { .ph-br { display: inline; } }
.h1-a { color: var(--on-ink); }
.five-line {
  background: var(--five) left bottom / 100% .11em no-repeat;
  padding-bottom: .06em; white-space: nowrap;
}
.lead { margin-top: 18px; font-size: clamp(17px, 4.6vw, 21px); line-height: 1.45; color: var(--muted-on-ink); max-width: 34ch; }
.hero-actions { margin-top: 22px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero-small { display: none; margin-top: 16px; font-size: 15px; color: var(--muted-on-ink); }

/* Stage: the demo */
.stage { position: relative; }
.wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; display: none; }
.wires path { fill: none; stroke-width: 2.5; stroke-linecap: round; transition: opacity .4s, stroke-width .2s; }
.wires circle { transition: opacity .4s; }
.wires g { transition: opacity .28s var(--ease-out); }
.wires .hot path { stroke-width: 4.5; }
.wires .spent { opacity: .0; }

.paper {
  position: relative; z-index: 2;
  background: var(--paper); color: var(--text);
  border-radius: 10px;
  padding: 18px 20px 18px;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.6);
}
.paper-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.paper-label { font-weight: 760; font-size: 14px; letter-spacing: .01em; color: var(--muted); }
.paper.has-kept .paper-label { color: var(--ink); }
.paper-meter { display: flex; align-items: center; gap: 10px; }
.paper-meter .count { white-space: nowrap; }
.paper-meter .tally { order: 1; flex-shrink: 0; }
.paper-meter #reset { order: 2; }
.paper-meter #reset { min-height: 0; padding: 0; font-size: 14px; font-weight: 650; line-height: 1.5; white-space: nowrap; background: transparent; color: var(--ink); box-shadow: none; text-decoration: underline; text-underline-offset: 3px; }
/* Start over consumes no slot at zero; keep the existing footer reserve. */
.paper-meter #reset[hidden] { display: none !important; }
.paper-foot #merge-all[hidden] { display: inline-flex !important; visibility: hidden; pointer-events: none; }
@media (max-width: 600px) {
  .paper-top { flex-wrap: wrap; }
  .paper-meter { flex-wrap: wrap; justify-content: flex-end; max-width: 100%; gap: 4px 10px; flex-shrink: 0; }
}
.tally { display: flex; gap: 4px; }
.tally i { display: block; width: 14px; height: 6px; border-radius: 2px; background: var(--rule); transition: background .3s; }
.tally i.on[data-voice="sam"] { background: var(--sam); }
.tally i.on[data-voice="morgan"] { background: var(--morgan); }
.tally i.on[data-voice="ola"] { background: var(--ola); }
.tally i.on[data-voice="theo"] { background: var(--theo); }
.tally i.on[data-voice="priya"] { background: var(--priya); }

.sentence {
  font-family: var(--serif); font-weight: 450; font-variation-settings: "opsz" 36;
  font-size: clamp(21px, 5.6vw, 26px); line-height: 1.4; letter-spacing: -0.01em;
  min-height: 4.2em;
}
.slot { --c: var(--ink); text-decoration: underline; text-decoration-color: var(--c); text-decoration-thickness: 3px; text-underline-offset: 6px; transition: background-color .28s var(--ease-out); border-radius: 3px; }
.slot.leaving { opacity: .25; transition: opacity .15s linear; }
.slot.handoff { transition: none; }
.sentence.resetting .slot { transition: none; }
.slot[data-voice="sam"], [data-voice="sam"] { --c: var(--sam); }
.slot[data-voice="morgan"], [data-voice="morgan"] { --c: var(--morgan); }
.slot[data-voice="ola"], [data-voice="ola"] { --c: var(--ola); }
.slot[data-voice="theo"], [data-voice="theo"] { --c: var(--theo); }
.slot[data-voice="priya"], [data-voice="priya"] { --c: var(--priya); }
.slot.hot:not(.kept) { background: color-mix(in srgb, var(--c) 28%, transparent); }
.slot-insert:not(.kept) { text-decoration: none; }
.slot-insert:not(.kept)::after {
  content: ""; display: inline-block; width: 4px; height: .95em; margin-left: 3px; vertical-align: -.12em;
  background: var(--c); border-radius: 2px;
}
.slot.kept {
  text-decoration: none; background: var(--c); color: var(--ink);
  padding: 0 .14em; margin: 0 -.04em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.sentence-measure { position: absolute; left: 0; top: 0; margin: 0; min-height: 0; visibility: hidden; pointer-events: none; }

.under {
  display: grid;
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rule);
  font-size: 14px; line-height: 1.45; color: var(--muted); min-height: 3.1em;
}
.under b { font-weight: 720; color: var(--ink); margin-right: 6px; }
.under > span { grid-area: 1 / 1; }
.under .orig { visibility: hidden; font-size: 13px; }
.paper.has-kept .under .orig { visibility: visible; }
.paper.has-kept .under .hint { visibility: hidden; }
.hint { color: var(--ink); font-weight: 560; }
.paper::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: 10px 10px 0 0;
  background: var(--five); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease-out);
}
.paper.complete::before { transform: scaleX(1); }
.paper-foot { margin-top: 14px; display: flex; align-items: center; }
.count { font-size: 14px; font-weight: 650; color: var(--muted); font-variant-numeric: tabular-nums; }
.paper.complete .count { color: var(--ink); }

/* Phone paper: compact spacing around the unchanged sentence and controls. */
@media (max-width: 600px) {
  .paper { padding-top: 12px; padding-bottom: 12px; }
  .paper-top { margin-bottom: 6px; }
  .under { margin-top: 6px; padding-top: 4px; }
  .paper-foot { margin-top: 6px; }
}

.voices {
  display: flex; gap: 12px; margin: 16px calc(var(--pad) * -1) 0; padding: 4px var(--pad) 10px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad);
  scrollbar-width: none;
}
.voices::-webkit-scrollbar { display: none; }
.voice {
  flex: 0 0 min(76%, 300px); scroll-snap-align: start;
  position: relative; z-index: 2;
  background: var(--c); color: var(--ink);
  border-radius: 10px; padding: 14px 16px 14px;
  display: flex; flex-direction: column; gap: 8px;
  transition: background-color .28s var(--ease-out), color .28s var(--ease-out), box-shadow .28s var(--ease-out), transform .28s var(--ease-out);
}
.avatar, .change ins { transition: background-color .28s var(--ease-out), color .28s var(--ease-out), box-shadow .28s var(--ease-out); }
.who { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; font-variation-settings: "wdth" 106; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--c); font-size: 15px; font-weight: 850;
}
.note { font-size: 15px; line-height: 1.35; font-weight: 520; }
.change { font-family: var(--serif); font-size: 18px; line-height: 1.35; font-variation-settings: "opsz" 18; }
.change del { text-decoration-thickness: 2px; opacity: .8; }
.change ins { text-decoration: none; font-weight: 600; background: var(--paper); color: var(--ink); white-space: nowrap; padding: 0 .2em; border-radius: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.change .ctx { opacity: .8; }
.voice[data-voice="theo"] ins, .voice[data-voice="priya"] ins { white-space: normal; }
.voice[data-voice="priya"] ins { padding-left: 0; }
.change { text-wrap: pretty; }
.keep {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border: 0; border-radius: 6px;
  background: var(--ink); color: var(--on-ink);
  font-weight: 760; font-size: 15px; cursor: pointer;
  transition: background-color .28s var(--ease-out), color .28s var(--ease-out), box-shadow .28s var(--ease-out), transform .28s var(--ease-out);
}
.keep::before {
  content: ""; width: 12px; height: 12px; border-radius: 2px; box-shadow: inset 0 0 0 2px currentColor;
}
@media (hover: hover) { .keep:hover { transform: translateY(-1px); } }
.keep[aria-pressed="true"]::before { background: currentColor; box-shadow: none; clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 22%, 86% 8%, 38% 72%); width: 14px; }
.voice :focus-visible { outline-color: var(--ink); }

/* a kept voice hands its colour to the sentence */
.voice.kept { background: var(--ink-2); color: var(--on-ink); box-shadow: inset 0 0 0 2px var(--c); }
.voice.kept .avatar { background: var(--c); color: var(--ink); }
.voice.kept .change ins { background: transparent; color: var(--c); padding: 0 .2em; }
.voice[data-voice="priya"].kept .change ins { padding-left: 0; }
.voice.kept .keep { background: var(--c); color: var(--ink); }
.voice.kept :focus-visible { outline-color: var(--on-ink); }

.floater {
  position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none;
  margin: 0; min-height: 0; font-family: var(--serif); font-weight: 450;
  font-variation-settings: "opsz" 36; letter-spacing: -.01em;
  color: transparent;
  transform-origin: 0 0; will-change: transform, opacity;
}
.floater .slot { visibility: hidden; transition: none; }
.floater .slot.flight-target { visibility: visible; color: var(--ink); }
.floater.phone-enter { animation: carrier-in .12s linear both; }
.floater.desktop-enter { animation: carrier-in .12s linear both; }
@keyframes carrier-in { from { opacity: 0; } to { opacity: 1; } }

/* Entrance */
.js.motion-pending .stage .voice, .js.motion-pending .stage .paper { opacity: 0; }
.js.motion-play .stage .voice, .js.motion-play .stage .paper { animation: rise .8s var(--ease-out) both; }
.js.motion-play .stage .paper { animation-delay: .05s; }
.js.motion-play .stage .voice:nth-child(1) { animation-delay: .25s; }
.js.motion-play .stage .voice:nth-child(2) { animation-delay: .37s; }
.js.motion-play .stage .voice:nth-child(3) { animation-delay: .49s; }
.js.motion-play .stage .voice:nth-child(4) { animation-delay: .61s; }
.js.motion-play .stage .voice:nth-child(5) { animation-delay: .73s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
.js .wires.drawn path { animation: draw .9s var(--ease-out) both; }
.js .wires.drawn circle { animation: fadein .3s .7s both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fadein { from { opacity: 0; } }

/* How it works */
.how { background: var(--paper); color: var(--text); padding: clamp(64px, 9vw, 128px) 0; }
.section-title {
  font-weight: 800; font-variation-settings: "wdth" 100;
  font-size: clamp(32px, 7.4vw, 60px); line-height: 1.02; letter-spacing: -0.028em; max-width: 18ch;
}
.flow { margin: clamp(32px, 5vw, 64px) 0 clamp(24px, 3vw, 40px); }
.flow-svg { width: 100%; height: auto; display: block; overflow: visible; }
.flow-heads text { font-family: var(--display); font-weight: 850; font-size: 22px; text-anchor: middle; fill: var(--ink); }
.flow-lines path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .flow:not(.seen) .flow-lines path { stroke-dashoffset: 1; }
.js .flow.seen .flow-lines path { transition: stroke-dashoffset 1.6s var(--ease-out); }
.js .flow-heads .head, .js .flow-final { transition: opacity .5s, transform .5s var(--ease-out); }
.js .flow-heads .head { transform-origin: 0 0; }
.js .flow:not(.seen) .flow-heads .head { opacity: 0; transform: scale(.4); }
.js .flow:not(.seen) .flow-final { opacity: 0; }
.js .flow.seen .flow-heads .head { transition-delay: .5s; }
.js .flow.seen .flow-final { transition-delay: 1.2s; }

.steps { display: grid; gap: 28px; }
.steps li { border-top: 4px solid var(--ink); padding-top: 18px; }
.steps h3 { font-size: clamp(22px, 5.4vw, 28px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; font-variation-settings: "wdth" 104; }
.steps p { margin-top: 10px; color: var(--muted); max-width: 40ch; }

/* Who it's for */
.who-for { padding: clamp(64px, 9vw, 128px) 0; }
.section-kicker { font-size: 18px; font-weight: 760; color: var(--muted-on-ink); letter-spacing: 0; }
.for-line {
  margin-top: 18px;
  font-family: var(--serif); font-weight: 450; font-variation-settings: "opsz" 60;
  font-size: clamp(30px, 7.6vw, 72px); line-height: 1.16; letter-spacing: -0.02em; max-width: 26ch;
}
.for-line mark { white-space: nowrap; }
.for-line mark {
  color: var(--ink); padding: 0 .12em; border-radius: 4px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.m-sam { background: var(--sam); } .m-morgan { background: var(--morgan); } .m-ola { background: var(--ola); } .m-theo { background: var(--theo); } .m-priya { background: var(--priya); }
.groups { margin-top: clamp(40px, 6vw, 72px); display: grid; gap: 14px; }
.group {
  display: block; text-decoration: none; padding: 22px 22px 24px 28px; border-radius: 10px;
  background: var(--ink-2); box-shadow: inset 6px 0 0 var(--gc, var(--sam));
  transition: background .2s, transform .2s var(--ease-out);
}
@media (hover: hover) { .group:hover { background: var(--ink-3); transform: translateY(-2px); } }
.group + .group { --gc: var(--theo); }
.group-name { display: block; font-weight: 800; font-size: 22px; letter-spacing: -0.015em; font-variation-settings: "wdth" 104; }
.group-name .arrow { display: inline-block; transition: transform .2s var(--ease-out); }
@media (hover: hover) { .group:hover .arrow { transform: translateX(4px); } }
.group-line { display: block; margin-top: 6px; color: var(--muted-on-ink); }

/* Pricing */
.pricing { background: var(--paper); color: var(--text); padding: clamp(64px, 9vw, 128px) 0; }
.pricing-grid { display: grid; gap: 36px; }
.pricing .section-title { font-size: clamp(30px, 6.6vw, 50px); }
.pricing-aside { margin-top: 18px; font-family: var(--serif); font-size: clamp(21px, 5vw, 26px); line-height: 1.3; max-width: 26ch; font-variation-settings: "opsz" 30; }
.plans { display: grid; gap: 16px; }
.plan { border-radius: 12px; padding: 26px 24px 28px; display: flex; flex-direction: column; gap: 14px; }
.plan-free { box-shadow: inset 0 0 0 3px var(--ink); }
.plan-premium { background: var(--ink); color: var(--on-ink); position: relative; overflow: hidden; }
.plan-premium::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--five); }
.plan h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.plan-price { font-size: clamp(40px, 9vw, 56px); font-weight: 850; letter-spacing: -0.035em; line-height: 1; font-variation-settings: "wdth" 96; }
.plan-price span { display: block; margin-top: 8px; font-size: 17px; font-weight: 600; letter-spacing: 0; color: var(--muted-on-ink); font-variation-settings: "wdth" 100; }
.plan-free .plan-price::after { content: "\00a0"; display: block; margin-top: 8px; font-size: 17px; }
.plan-alt { color: var(--muted-on-ink); margin-top: -8px; }
.plan ul { display: grid; gap: 8px; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 2px; background: currentColor; }
.plan-premium li::before { background: var(--theo); }
.plan .btn, .plan .text-link { margin-top: auto; align-self: flex-start; }
.plan-premium .text-link-ink { color: var(--on-ink); text-decoration-color: rgba(255,247,240,.5); }
.plan-premium :focus-visible { outline-color: var(--on-ink); }
.tax { font-size: 15px; color: var(--muted); }

/* Closing: the five voices stacked behind one page */
.closing { position: relative; padding: clamp(88px, 12vw, 160px) var(--pad); overflow: hidden; }
.closing-inner { position: relative; max-width: 760px; margin: 0 auto; }
.closing-stack i {
  position: absolute; inset: 0; border-radius: 14px;
  transition: transform 1.2s var(--ease-out);
}
.closing-stack i:nth-child(1) { background: var(--sam);    transform: translate(-5%, -9%) rotate(-7deg); }
.closing-stack i:nth-child(2) { background: var(--morgan); transform: translate(4%, -12%) rotate(4deg); }
.closing-stack i:nth-child(3) { background: var(--ola);    transform: translate(7%, 6%) rotate(7deg); }
.closing-stack i:nth-child(4) { background: var(--theo);   transform: translate(-6%, 9%) rotate(-4deg); }
.closing-stack i:nth-child(5) { background: var(--priya);  transform: translate(1%, 13%) rotate(2deg); }
.js .closing-inner:not(.seen) .closing-stack i:nth-child(1) { transform: translate(-30%, -40%) rotate(-16deg); }
.js .closing-inner:not(.seen) .closing-stack i:nth-child(2) { transform: translate(30%, -45%) rotate(12deg); }
.js .closing-inner:not(.seen) .closing-stack i:nth-child(3) { transform: translate(36%, 30%) rotate(16deg); }
.js .closing-inner:not(.seen) .closing-stack i:nth-child(4) { transform: translate(-34%, 36%) rotate(-12deg); }
.js .closing-inner:not(.seen) .closing-stack i:nth-child(5) { transform: translate(0, 55%) rotate(6deg); }
.closing-card {
  position: relative;
  background: var(--paper); color: var(--text); border-radius: 14px;
  padding: clamp(28px, 5vw, 56px);
  box-shadow: 0 30px 70px -30px rgba(22,17,15,.55);
}
.closing-card h2 { font-size: clamp(32px, 7vw, 56px); font-weight: 820; letter-spacing: -0.03em; line-height: 1.02; }
.closing-card p { margin: 18px 0 28px; font-size: clamp(18px, 4.6vw, 21px); color: var(--muted); max-width: 36ch; }

/* Footer */
.site-footer { padding: 56px 0 64px; color: var(--muted-on-ink); font-size: 15px; }
.footer-grid { display: grid; gap: 28px; }
.footer-line { max-width: 52ch; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-nav a { color: var(--on-ink); text-decoration: none; padding: 6px 0; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Wide screens: the voices orbit the sentence */
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .groups { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1100px) {
  .brand svg { width: 120px; height: 36px; }
  .hero {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    align-items: center; gap: clamp(32px, 4vw, 72px);
    min-height: calc(100vh - 84px); max-height: 980px;
    padding-top: 8px; padding-bottom: 48px;
  }
  h1 { font-size: clamp(60px, 5.5vw, 88px); font-variation-settings: "wdth" 84; letter-spacing: -0.025em; line-height: .96; }
  .lead { font-size: 21px; }
  .hero-small { display: block; }

  .stage {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-areas:
      "a a b b c c"
      "p p p p p p"
      ". d d e e .";
    gap: 34px 16px;
  }
  .wires { display: block; }
  .paper { grid-area: p; padding: 22px 28px 20px; margin: 0 2%; }
  .sentence { font-size: clamp(26px, 2.2vw, 32px); min-height: 4.2em; }
  .voices { display: contents; }
  .voice { margin: 0; }
  .voice[data-voice="sam"] { grid-area: a; rotate: -2deg; translate: 0 14px; }
  .voice[data-voice="morgan"] { grid-area: b; rotate: 1.2deg; translate: 0 -4px; }
  .voice[data-voice="ola"] { grid-area: c; rotate: 2.4deg; translate: 0 18px; }
  .voice[data-voice="theo"] { grid-area: d; rotate: 1.6deg; translate: -10px -6px; }
  .voice[data-voice="priya"] { grid-area: e; rotate: -1.8deg; translate: 10px 8px; }
  @media (hover: hover) { .voice:hover { z-index: 3; } }

  .pricing-grid { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); column-gap: 64px; align-items: start; }
  .tax { grid-column: 2; margin-top: -20px; }
  .footer-grid { grid-template-columns: 1fr 1.2fr; align-items: start; }
  .footer-nav { justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .paper::before { transition: none; }
  .js.motion-play .stage .voice, .js.motion-play .stage .paper, .js .wires.drawn path, .js .wires.drawn circle { animation: none; }
  .js.motion-pending .stage .voice, .js.motion-pending .stage .paper { opacity: 1; }
  .js .flow:not(.seen) .flow-lines path { stroke-dashoffset: 0; }
  .js .flow:not(.seen) .flow-heads .head, .js .flow:not(.seen) .flow-final { opacity: 1; transform: none; }
  .js .flow-heads .head, .js .flow-final, .js .flow-lines path, .wires g { transition: none; }
  .closing-stack i { transition: none; }
  .btn, .voice, .group, .keep, .avatar, .change ins, .slot, .group-name .arrow { transition: none; }
  .group:hover .arrow { transform: none; }
}

/* Root presentation only. The shared header markup and account runtime stay exact. */
.home-voices .public-site-header.public-site-header {
  --ink: #FFF7F0; --accent: #FFF7F0; --accent-ink: #FFF7F0; --header-blue: #FFF7F0;
  width: 100%; max-width: 1440px; min-height: 0; gap: 16px; padding: 18px var(--pad);
  font: 600 16px/1.5 var(--display); font-variation-settings: "wdth" 100;
}
.home-voices .public-site-header .brand { position: relative; min-height: 0; padding: 4px 0; line-height: 0; }
.home-voices .public-site-header .brand svg { width: 100px; height: 30px; }
.home-voices .public-site-header .brand svg path:not(:first-child) { visibility: hidden; }
.home-voices .public-site-header .brand::after { content: ""; position: absolute; left: 0; right: 0; top: 24px; height: 4px; background: var(--five); }
.home-voices .public-site-header nav { gap: clamp(12px, 2.4vw, 30px); font: inherit; white-space: nowrap; }
.home-voices .public-site-header .nav-pricing, .home-voices .public-site-header .login { min-height: 0; padding: 8px 0; }
.home-voices .public-site-header .nav-try {
  min-height: 42px; padding: 0 16px 4px; border-radius: 6px;
  background: var(--five) left bottom / 100% 5px no-repeat, var(--on-ink); color: #16110F;
  font: 760 16px/1.5 var(--display); font-variation-settings: "wdth" 104; text-decoration: none;
  transition: background-size .35s var(--ease-out), transform .2s var(--ease-out);
}
@media (hover: hover) { .home-voices .public-site-header .nav-try:hover { background-size: 100% 100%, auto; } }
.home-voices .public-site-header .nav-try:active { transform: translateY(1px); }
.home-voices .public-site-header .nav-pricing:hover, .home-voices .public-site-header .login:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.home-voices .public-site-header a:focus-visible { outline-color: var(--on-ink); outline-offset: 3px; }
@media (min-width: 1100px) {
  .home-voices .public-site-header .brand svg { width: 120px; height: 36px; }
  .home-voices .public-site-header .brand::after { top: 28px; }
}
@media (prefers-reduced-motion: reduce) { .home-voices .public-site-header .nav-try { transition: none; } }

/* Derived PH reuses the prototype geometry; only its approved welcome is added. */
.home-voices .public-design-welcome { margin-bottom: 18px; color: var(--muted-on-ink); font-size: 14px; line-height: 1.5; }
@media (max-width: 600px) { .home-voices .public-site-header .public-header-beta { display: none; } }

/* Phone first screen: retain type, targets and paper; spend space on the demo. */
@media (max-width: 600px) {
  .home-voices .hero { padding-top: 0; row-gap: 8px; }
  .home-voices .hero .lead { max-width: none; margin-top: 4px; }
  .home-voices .hero-actions { margin-top: 4px; }
  .home-voices .public-design-welcome { margin-bottom: 0; }
  .home-voices .voices { margin-top: 4px; }
  .home-voices .public-site-header.public-site-header { padding-top: 4px; padding-bottom: 4px; }
}

/* Four settled homepage rooms, 27 October. Scoped to the English C homepage
   and its existing PH/channel copies; Polish uses its own page and assets. */
.home-voices .public-site-header .nav-try,
.home-voices .public-site-header .nav-try:hover { background: var(--on-ink); }
.home-voices .five-line { background: none; }
.home-voices #merge-all,
.home-voices #merge-all:hover { background: var(--btn-bg); color: var(--btn-fg); }
.home-voices .plan-free .plan-price span { color: var(--muted); }
.home-voices .steps { margin-top: clamp(32px, 5vw, 64px); }
.home-voices .steps > li { border: 0; padding-top: 0; }
.home-voices .step-picture { min-height: 250px; height: 100%; padding: 22px; background: #F5F2EF; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.home-voices .step-paper { width: 100%; padding: 20px; background: white; border-radius: 10px; box-shadow: 0 8px 20px #16110F0B; }
.home-voices .step-paper b { display: block; font: 650 13px/1.4 var(--display); color: var(--muted); }
.home-voices .step-paper p { margin-top: 8px; font: 450 21px/1.34 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.home-voices .step-paper mark { background: var(--c); color: var(--ink); box-decoration-break: clone; -webkit-box-decoration-break: clone; border-radius: 2px; padding: 0 .04em; }
.home-voices .step-final-count { margin-top: 14px; display: flex; align-items: center; gap: 8px; font: 650 12px/1.4 var(--display); color: var(--muted); }
.home-voices .step-final-tally { display: flex; gap: 5px; }
.home-voices .step-final-tally i { display: block; width: 18px; height: 5px; border-radius: 2px; background: var(--c); }
.home-voices .step-link { padding: 12px 8px; }
.home-voices .step-link svg { width: 100%; height: auto; display: block; }
.home-voices .step-link text { font-family: var(--display); text-anchor: middle; fill: var(--ink); }
.home-voices .step-link-label { font-size: 15px; font-weight: 650; }
.home-voices .step-person text { font-size: 16px; font-weight: 760; }
.home-voices .step-short-note { font-size: 11px; }
.home-voices .step-description { border-top: 4px solid var(--ink); margin-top: 32px; padding-top: 18px; }
@media (min-width: 1040px) { .home-voices .steps > li { display: grid; grid-template-rows: minmax(250px, auto) 1fr; } }
@media (max-width: 1039px) { .home-voices .step-picture { height: auto; max-width: 560px; } .home-voices .step-link svg { max-height: 280px; } }

/* Phone QA27October: reserve a real slot between the wordmark and Pricing. */
@media (max-width: 400px) {
  .home-voices .public-site-header.public-site-header { gap: 10px; }
  .home-voices .public-site-header .public-header-branding { flex: 0 0 80px; min-width: 80px; }
  .home-voices .public-site-header .brand svg { width: 80px; height: 24px; }
  .home-voices .public-site-header .brand::after { top: 20px; }
  .home-voices .public-site-header nav { gap: 8px; }
  .home-voices .public-site-header .nav-try { padding-left: 10px; padding-right: 10px; }
}

/* Approved final homepage layout, 31 October. The English words and demo
   motion stay in their existing markup/controller. */
@media (min-width: 1100px) {
  .home-voices .hero .lead { margin-top: 28px; }
  .home-voices .hero-actions { margin-top: 32px; }
  .home-voices .hero-small { margin-top: 24px; }
  .home-voices .hero h1:lang(pl) { font-size: clamp(66px, 6.05vw, 96.8px); }
  .home-voices .hero h1:lang(pl) .ph-br { display: inline; }
}
@media (max-width: 600px) {
  .home-voices .hero { row-gap: 44px; padding-top: 28px; }
  .home-voices .hero h1 { font-size: clamp(35.2px, 9.328vw, 52.8px); }
  .home-voices .hero .lead { font-size: clamp(13.6px, 3.68vw, 16.8px); margin-top: 18px; }
  .home-voices .hero-actions { margin-top: 32px; }
}
.home-voices:lang(pl) .wires { display: none; }
.home-voices:lang(pl) .pricing .pricing-heading-first { display: block; }
.home-voices:lang(pl) .pricing .pricing-heading-rest {
  display: block; margin-top: 8px; font-size: 20px; font-weight: 700;
  line-height: 1.4; letter-spacing: 0;
}

/* Polish phone header: keep all three navigation actions visible. */
@media (max-width: 600px) {
  .home-voices .public-site-header:lang(pl) {
    display: grid;
    grid-template-columns: minmax(80px, 1fr) auto auto;
    gap: 8px 12px;
  }
  .home-voices .public-site-header:lang(pl) nav { display: contents; }
  .home-voices .public-site-header:lang(pl) .nav-pricing,
  .home-voices .public-site-header:lang(pl) .login {
    min-height: 44px;
    padding-block: 8px;
    font-size: 14px;
  }
  .home-voices .public-site-header:lang(pl) .nav-try {
    display: flex;
    grid-column: 1 / -1;
    justify-content: center;
    min-height: 44px;
  }
}

/* Wave 2 home b, 2 November. The free line shows at every width in both
   languages. English marks Theo's comment-only change (data-prepared): pale
   and dotted like a prepared change in the app, his short line in the card's
   own text colour, and the AI section under How it works. */
.home-voices .hero-small { display: block; }
.home-voices .voice[data-prepared="comment"] .prepared-line { margin-top: 6px; font-size: 13px; line-height: 1.35; }
.home-voices .voice[data-prepared="comment"] .change ins { background: color-mix(in srgb, var(--c) 18%, var(--paper)); border-bottom: 1px dotted var(--ink); border-radius: 0; }
.home-voices .voice.kept[data-prepared="comment"] .change ins { background: transparent; border-bottom-color: var(--c); }
.home-voices .slot.kept[data-prepared="comment"] { background: color-mix(in srgb, var(--c) 18%, transparent); border-bottom: 1px dotted var(--c); border-radius: 0; }
.home-voices .how-ai { margin-top: 48px; border-top: 4px solid var(--ink); padding-top: 18px; max-width: 62ch; }
.home-voices .how-ai h3 { font-size: clamp(22px, 5.4vw, 28px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; font-variation-settings: "wdth" 104; }
.home-voices .how-ai p { margin-top: 10px; color: var(--muted); }
