/* PostVoice brand tokens: "Counter Ticket".
   One source for sms.postvoice.ai and postvoice.ai. build.py prepends this file to each site's stylesheet.
   Guidance: BRAND.md. Change a value here and rebuild; never hard-code these hexes in a page. */

@font-face { font-family: "Familjen Grotesk"; src: url("/fonts/familjen-grotesk.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/hanken-grotesk.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/hanken-grotesk-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  /* Paper and ink */
  --paper: #fafaf6;        /* page ground: receipt paper, never cream */
  --paper-2: #f1f1ea;      /* quiet bands, hover fills */
  --surface: #ffffff;      /* tickets, cards, inputs */
  --ink: #111318;          /* headings, body on paper: 17.8:1 */
  --ink-2: #454a53;        /* secondary text: 8.5:1 */
  --muted: #666b74;        /* captions, meta: 5.1:1 on paper */
  --line: #e4e4de;         /* hairlines */
  --dash: #cfd0ca;         /* dashed ticket rules */
  --strike: #7d828b;       /* struck-out filler words in transcripts */

  /* The one accent */
  --cobalt: #2743c4;       /* brand, links, primary buttons: 7.5:1 on paper, white on it 7.8:1 */
  --cobalt-deep: #1e36a3;  /* hover and pressed */
  --cobalt-soft: #dfe5ff;  /* highlighter marks, focus halos */
  --night: #0e1330;        /* the one dark band (final CTA, footer bar) */
  --on-cobalt: #ffffff;

  /* Type */
  --display: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Shape */
  --radius: 6px;           /* buttons, inputs, chips: squared, like a printed form */
  --radius-card: 10px;     /* soft cards (rare) */
  --ticket-shadow: 0 1px 0 rgba(17, 19, 24, 0.04), 0 30px 60px -30px rgba(17, 19, 24, 0.35);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Legacy names used by the sms.postvoice.ai stylesheet, mapped onto the brand */
  --bg: var(--paper);
  --bg-2: var(--paper-2);
  --accent: var(--cobalt);
  --accent-deep: var(--cobalt-deep);
  --accent-soft: var(--cobalt-soft);
  --on-accent: var(--on-cobalt);
  --serif: var(--display);
  --shadow: var(--ticket-shadow);
}

/* postvoice.ai. Brand tokens come first from brand/tokens.css (build.py prepends them). */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: var(--cobalt); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--cobalt-deep); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-weight: 700; font-size: clamp(44px, 6.4vw, 78px); line-height: 0.96; letter-spacing: -0.04em; }
h2 { font-weight: 700; font-size: clamp(32px, 4.2vw, 50px); line-height: 1.02; letter-spacing: -0.035em; }
h3 { font-weight: 650; font-size: 22px; line-height: 1.2; letter-spacing: -0.015em; }
p { margin: 0; text-wrap: pretty; }
.mark-hl { background: linear-gradient(transparent 62%, var(--cobalt-soft) 62%); padding: 0 0.04em; }
.mono { font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 34em; }
.tel { white-space: nowrap; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
section { padding-block: 112px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 20; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--radius); }
.skip:focus { top: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 22px; border-radius: var(--radius); font: 600 16.5px/1.1 var(--sans); text-decoration: none; border: 0; cursor: pointer; transition: background-color 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease), box-shadow 180ms var(--ease); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--cobalt); color: var(--on-cobalt); box-shadow: 0 10px 24px -14px rgba(39, 67, 196, 0.8); }
.btn-primary:hover { background: var(--cobalt-deep); color: var(--on-cobalt); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn-small { min-height: 44px; padding: 10px 16px; font-size: 15px; }

/* Header */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: rgba(250, 250, 246, 0.9); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid transparent; transition: border-color 200ms; }
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 22px/1 var(--display); letter-spacing: -0.02em; }
.brand svg { width: 30px; height: 30px; }
.brand:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-size: 15.5px; font-weight: 500; padding: 12px 12px; border-radius: var(--radius); }
.nav a:not(.btn):hover { color: var(--ink); background: var(--paper-2); }
.nav .btn { margin-left: 10px; }

/* Hero */
.hero { padding-block: 64px 96px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 64px; align-items: center; }
.hero .mono { display: block; margin-bottom: 22px; }
.hero .lead { margin: 26px 0 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .demo-line { margin-top: 20px; }
.hero .demo-line a { color: var(--muted); text-decoration: none; }
.hero .demo-line a:hover { color: var(--cobalt); }

/* The ticket: the brand's signature object */
.ticket-stage { position: relative; }
.examples { display: flex; gap: 6px; margin: 0 0 16px; flex-wrap: wrap; }
.examples button { font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); background: transparent; border: 1.5px solid var(--dash); border-radius: var(--radius); padding: 0 14px; min-height: 40px; cursor: pointer; transition: border-color 160ms, color 160ms, background-color 160ms; }
.examples button:hover { border-color: var(--ink); color: var(--ink); }
.examples button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.ticket { position: relative; background: var(--surface); box-shadow: var(--ticket-shadow); transform: rotate(1.2deg); }
.ticket::before { content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 10px; background: radial-gradient(circle at 7px 0, transparent 5.5px, var(--surface) 6px) 0 0 / 14px 10px repeat-x; }
.ticket-body { padding: 26px 28px 40px; display: grid; gap: 16px; }
.ticket-row { display: flex; justify-content: space-between; gap: 12px; font: 500 11.5px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ticket-row .live { display: inline-flex; align-items: center; gap: 8px; }
.ticket-row .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--cobalt); box-shadow: 0 0 0 4px var(--cobalt-soft); }
.rule { border: 0; border-top: 1.5px dashed var(--dash); margin: 0; }
.part { display: grid; gap: 12px; }
.part .rule { margin: 4px 0; }
.part .k { font: 500 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--cobalt); display: flex; align-items: center; gap: 10px; }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 13px; height: 13px; fill: var(--cobalt); }
.said { font-style: italic; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.said s { text-decoration: none; color: var(--strike); background: linear-gradient(var(--strike), var(--strike)) no-repeat 0 58% / 100% 1.5px; }
.posted { font-size: 17.5px; line-height: 1.55; color: var(--ink); }
.who { font-size: 14px; color: var(--muted); }
.stamp { position: absolute; right: 22px; bottom: -16px; font: 600 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--cobalt); border: 2px solid var(--cobalt); background: var(--paper); padding: 8px 10px; transform: rotate(-6deg); }
.panel[hidden] { display: none; }

/* Motion: plays once on load and on example switch. At rest everything is readable. */
@keyframes strike { from { background-size: 0% 1.5px; } to { background-size: 100% 1.5px; } }
@keyframes settle { from { opacity: 0.25; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes stampIn { 0% { opacity: 0; transform: rotate(-6deg) scale(1.25); } 60% { opacity: 1; transform: rotate(-6deg) scale(0.96); } 100% { opacity: 1; transform: rotate(-6deg) scale(1); } }
.ticket.play .said s { animation: strike 420ms var(--ease) both; animation-delay: calc(250ms + var(--i, 0) * 170ms); }
.ticket.play .posted { animation: settle 700ms var(--ease) both; animation-delay: 900ms; }
.ticket.play .stamp { animation: stampIn 420ms var(--ease) both; animation-delay: 1500ms; }

/* Proof band under the hero */
.band { background: var(--paper-2); }

/* Problem */
.problem .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.problem .lead { margin-top: 22px; }
.receipt { background: var(--surface); box-shadow: var(--ticket-shadow); padding: 28px 30px 26px; font-family: var(--mono); }
.receipt h3 { font: 600 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.receipt ul { list-style: none; margin: 0; padding: 0; }
.receipt li { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline; padding: 16px 0; border-top: 1.5px dashed var(--dash); }
.receipt li span { font-family: var(--sans); font-size: 16.5px; line-height: 1.4; color: var(--ink-2); }
.receipt li b { font: 600 40px/1 var(--display); letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.receipt .src { border-top: 1.5px dashed var(--dash); padding-top: 14px; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.receipt .src a { color: var(--muted); }

/* How it works: one ticket with three tear-off stubs */
.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: 56px; }
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--surface); box-shadow: var(--ticket-shadow); list-style: none; margin: 0; padding: 0; }
.stub { position: relative; padding: 30px 30px 34px; display: grid; gap: 14px; align-content: start; }
.stub + .stub { border-left: 2px dashed var(--dash); }
.stub + .stub::before, .stub + .stub::after { content: ""; position: absolute; left: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); }
.stub + .stub::before { top: -10px; }
.stub + .stub::after { bottom: -10px; }
.stub .mono { color: var(--cobalt); }
.stub p { color: var(--ink-2); font-size: 16.5px; line-height: 1.55; }
.vis { height: 150px; display: grid; place-items: center; background: var(--paper); border-radius: var(--radius); margin-bottom: 6px; overflow: hidden; }
.vis-card { width: 150px; background: var(--surface); box-shadow: 0 10px 24px -16px rgba(17, 19, 24, 0.5); padding: 12px; transform: rotate(-3deg); display: grid; gap: 8px; }
.vis-card b { font: 700 15px/1.05 var(--display); letter-spacing: -0.02em; }
.vis-card img { width: 64px; height: 64px; }
.vis-bubbles { display: grid; gap: 6px; width: 240px; font: 13px/1.3 -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--sans); }
.vis-bubbles span { padding: 7px 11px; border-radius: 16px; max-width: 85%; }
.vis-bubbles .me { justify-self: end; background: #34c759; color: #fff; }
.vis-bubbles .them { justify-self: start; background: #e9e9eb; color: #000; }
.vis-call { display: grid; justify-items: center; gap: 10px; }
.vis-call .wave { display: flex; align-items: center; gap: 4px; height: 44px; }
.vis-call .wave i { width: 5px; border-radius: 3px; background: var(--cobalt); }
.vis-call .wave em { width: 60px; height: 5px; border-radius: 3px; background: var(--cobalt); margin-left: 3px; }
.vis-review { width: 240px; background: var(--surface); box-shadow: 0 10px 24px -16px rgba(17, 19, 24, 0.5); padding: 12px 14px; display: grid; gap: 8px; font-size: 12.5px; line-height: 1.45; color: var(--ink); }
.vis-review .btnlike { justify-self: start; background: var(--cobalt); color: #fff; font: 600 11.5px/1 var(--sans); padding: 7px 10px; border-radius: 4px; }

/* Why voice */
.voice .wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
.voice-head { position: sticky; top: 112px; display: grid; gap: 22px; }
.pull { font: italic 400 22px/1.45 var(--sans); color: var(--ink-2); border-left: 0; margin: 8px 0 0; padding: 0; }
.pull b { font-style: normal; font-weight: 600; color: var(--ink); background: linear-gradient(transparent 62%, var(--cobalt-soft) 62%); }
.points { list-style: none; margin: 0; padding: 0; }
.points li { display: grid; grid-template-columns: 56px 1fr; gap: 6px 20px; padding: 30px 0; border-top: 1.5px dashed var(--dash); }
.points li:last-child { border-bottom: 1.5px dashed var(--dash); }
.points .n { grid-row: span 2; font: 600 13px/1.9 var(--mono); letter-spacing: 0.08em; color: var(--cobalt); }
.points p { color: var(--ink-2); font-size: 17px; }

/* Try it */
.try .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 72px; align-items: center; }
.try .lead { margin-top: 22px; }
.try-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.try-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: var(--ink-2); font-size: 17px; }
.try-steps li b { font: 600 13px/1.7 var(--mono); color: var(--cobalt); }
.try-card { position: relative; background: var(--surface); box-shadow: var(--ticket-shadow); padding: 30px; display: grid; gap: 18px; justify-items: center; text-align: center; }
.try-card::before, .try-card::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2.5px solid var(--ink); }
.try-card::before { left: 14px; top: 14px; border-right: 0; border-bottom: 0; }
.try-card::after { right: 14px; bottom: 14px; border-left: 0; border-top: 0; }
.qr { width: 220px; height: 220px; position: relative; }
.qr img { width: 100%; height: 100%; }
.qr .qr-mark { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; background: var(--surface); padding: 4px; border-radius: 12px; }
.try-num { font: 700 30px/1 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.prefill { font: 14px/1.3 var(--sans); color: var(--ink); background: var(--paper-2); border: 1px solid var(--line); border-radius: 18px; padding: 8px 14px; }
.prefill span { color: var(--muted); }
.consent { font-size: 12.5px; line-height: 1.55; color: var(--muted); text-align: left; border-top: 1.5px dashed var(--dash); padding-top: 16px; }
.consent a { color: var(--muted); }
.only-mobile, .only-mobile-inline { display: none; }

/* What you get + pricing */
.get .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 72px; align-items: start; }
.get-list { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.get-list li { padding: 22px 0; border-top: 1.5px dashed var(--dash); display: grid; gap: 6px; }
.get-list h3 { font-size: 19px; }
.get-list p { color: var(--ink-2); font-size: 16.5px; }
.price { background: var(--ink); color: var(--paper); padding: 34px; display: grid; gap: 16px; position: relative; }
.price .mono { color: #a9adbd; }
.price h3 { color: var(--paper); font-size: 30px; letter-spacing: -0.03em; }
.price p { color: #d4d6de; font-size: 16.5px; }
.price .btn-primary { justify-self: start; background: var(--paper); color: var(--ink); box-shadow: none; }
.price .btn-primary:hover { background: var(--cobalt-soft); color: var(--ink); }

/* FAQ */
.faq .wrap > * { max-width: 880px; }
.faq h2 { margin-bottom: 40px; }
.faq details { border-top: 1.5px dashed var(--dash); }
.faq details:last-of-type { border-bottom: 1.5px dashed var(--dash); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font: 650 20px/1.3 var(--display); letter-spacing: -0.015em; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 26px/1 var(--mono); color: var(--cobalt); transition: transform 200ms var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 26px; color: var(--ink-2); font-size: 17px; max-width: 62ch; }

/* Final CTA */
.final { background: var(--night); color: #fff; }
.final .wrap { display: grid; gap: 26px; justify-items: start; }
.final h2 { color: #fff; max-width: 15em; font-size: clamp(36px, 5vw, 64px); }
.final p { color: #c9cde0; font-size: 19px; max-width: 34em; }
.final .btn-primary { background: #fff; color: var(--night); box-shadow: none; }
.final .btn-primary:hover { background: var(--cobalt-soft); color: var(--night); }
.final .btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5); }
.final .btn-ghost:hover { background: #fff; color: var(--night); }

/* Footer */
.site-foot { background: var(--night); color: #a9adbd; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-block: 36px 44px; font-size: 14px; }
.site-foot .wrap { display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; align-items: start; }
.site-foot .brand { color: #fff; font-size: 19px; margin-bottom: 10px; }
.site-foot .brand svg { width: 24px; height: 24px; }
.site-foot address { font-style: normal; line-height: 1.6; }
.site-foot a { color: #c9cde0; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-foot nav a { display: inline-block; padding: 10px 0; }

/* Doc pages (privacy, 404) */
.doc { padding-block: 72px 112px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(38px, 5vw, 56px); margin-bottom: 14px; }
.doc h2 { font-size: 26px; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 14px; }

@media (max-width: 960px) {
  section { padding-block: 84px; }
  .hero .wrap, .problem .wrap, .voice .wrap, .try .wrap, .get .wrap { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .voice-head { position: static; }
  .strip { grid-template-columns: minmax(0, 1fr); }
  .stub + .stub { border-left: 0; border-top: 2px dashed var(--dash); }
  .stub + .stub::before { left: -10px; top: -11px; }
  .stub + .stub::after { left: auto; right: -10px; top: -11px; bottom: auto; }
  .ticket { transform: none; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .wrap { padding-inline: 16px; }
  section { padding-block: 68px; }
  .hero { padding-block: 32px 72px; }
  .nav a:not(.btn) { display: none; }
  .nav .btn { margin-left: 0; }
  .site-head .wrap { min-height: 64px; }
  .cta-row .btn { width: 100%; }
  .ticket-body { padding: 22px 20px 36px; }
  .get-list { grid-template-columns: minmax(0, 1fr); }
  .only-desktop { display: none; }
  .only-mobile { display: flex; }
  .only-mobile-inline { display: inline; }
  .points li { grid-template-columns: 36px 1fr; gap: 6px 12px; }
  .try-card { padding: 26px 20px; }
  .final .btn { width: 100%; }
  .site-foot .wrap { grid-template-columns: minmax(0, 1fr); }
  .receipt { padding: 24px 20px 22px; }
  .receipt li b { font-size: 34px; }
  .price { padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticket.play .said s, .ticket.play .posted, .ticket.play .stamp { animation: none; }
  .btn, .examples button, .faq summary::after { transition: none; }
}
