/* Klinic2Go website. One stylesheet; design in docs/v2/design.md. */

@font-face { font-family: "Fraunces"; src: url("/fonts/Fraunces-site.woff2?v=4d5f70a2f0") format("woff2");
  font-weight: 400 650; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/fonts/PlusJakartaSans-site.woff2?v=3d99150dde") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  color-scheme: light dark;
  --paper: #f7f6f1;
  --paper-2: #efede6;
  --surface: #ffffff;
  --field: #ffffff;
  --ink: #0e1522;
  --ink-2: #4a5260;
  --line: #e2e0d8;
  --line-strong: #c9c6bb;
  --field-line: #858174;
  --green: #05705a;
  --mint: #2ee6b6;
  --mint-hover: #5cefca;
  --on-mint: #0e1522;
  --mint-wash: #dff5ee;
  --brand-blue: #0A4FD6;
  --brand-blue-hover: #176bff;
  --wm-blue: #5a9bff;
  --wm-green: #16d94a;
  --night: #0e1522;
  --night-2: #172133;
  --night-line: #26314a;
  --on-night: #eef1f5;
  --on-night-2: #a3adbd;
  --todo-bg: #fff1c7;
  --todo-ink: #7a4a00;
  --error: #b42318;
  --focus: #05705a;
  --shadow-card: 0 1px 2px rgba(14,21,34,.06), 0 16px 32px -16px rgba(14,21,34,.18);
  --shadow-paper: 0 1px 2px rgba(14,21,34,.08), 0 28px 48px -24px rgba(14,21,34,.32);
  --shadow-device: 0 48px 80px -32px rgba(14,21,34,.42), 0 16px 28px -14px rgba(14,21,34,.30);
  --shadow-device-night: 0 50px 90px -30px rgba(0,0,0,.65), 0 18px 36px -18px rgba(0,0,0,.5);
  --shot-ring: 0 0 0 0 transparent;
  --band-edge: transparent;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2,.7,.2,1);
  --beat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-2 -2 23 20'%3E%3Cpath d='M0 8L4 0L10 16L15 4L19 8' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #080c13;
    --paper-2: #0f1520;
    --surface: #121a27;
    --field: #0d1420;
    --ink: #eef1f5;
    --ink-2: #a7b0bf;
    --line: #222c3d;
    --line-strong: #33405a;
    --field-line: #5d6b85;
    --green: #2ee6b6;
    --mint-wash: #0f2a24;
    --night: #121b2c;
    --night-2: #172133;
    --todo-bg: #3a2f12;
    --todo-ink: #f3d690;
    --error: #ff8a80;
    --focus: #2ee6b6;
    --shadow-card: 0 1px 2px rgba(0,0,0,.3), 0 16px 32px -16px rgba(0,0,0,.6);
    --shadow-paper: 0 1px 2px rgba(0,0,0,.3), 0 28px 48px -24px rgba(0,0,0,.7);
    --shadow-device: var(--shadow-device-night);
    --shot-ring: 0 0 0 1px rgba(255,255,255,.08);
    --band-edge: var(--night-line);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; overflow-x: clip;
  background: var(--paper); color: var(--ink);
  font: 400 18px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
@media (max-width: 599px) { body { font-size: 17px; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
h1, h2 { font-family: var(--font-display); text-wrap: balance; }
h1 { font-weight: 600; font-size: clamp(2.25rem, 1.7rem + 2.2vw, 3.5rem); line-height: 1.06; letter-spacing: -.02em; }
h2 { font-weight: 580; font-size: clamp(1.875rem, 1.4rem + 1.9vw, 3rem); line-height: 1.08; letter-spacing: -.02em; }
h3 { font-weight: 650; font-size: 20px; line-height: 1.35; letter-spacing: -.01em; text-wrap: balance; }
@media (max-width: 599px) { h3 { font-size: 19px; } }
p, li { text-wrap: pretty; }
strong { font-weight: 700; }
code { font-size: .88em; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 24px; }

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.band :focus-visible, .site-head :focus-visible, .site-foot :focus-visible, .hero :focus-visible { outline-color: var(--mint); }
.band .form-card :focus-visible { outline-color: var(--focus); }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: 72px; }
@media (min-width: 600px) { .sec { padding-block: 96px; } }
@media (min-width: 900px) {
  .sec { padding-block: 128px; }
  .sec:not(.band) + .sec:not(.band) { padding-top: 48px; }
}

.band { background: var(--night); color: var(--on-night); }
.band a:not(.btn), .hero a:not(.btn) { color: var(--mint); }
.band .muted { color: var(--on-night-2); }
.muted { color: var(--ink-2); }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 50;
  background: var(--mint); color: var(--on-mint); font-weight: 700; font-size: 16px;
  padding: 12px 20px; border-radius: 999px; text-decoration: none;
}
.skip:focus { top: 12px; outline-color: var(--on-night); }

mark.todo {
  background: var(--todo-bg); color: var(--todo-ink);
  border-radius: 6px; padding: 2px 6px; font-size: 15px; font-weight: 600; line-height: 1.6;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px;
  background: var(--brand-blue); color: #fff;
  font: 700 17px/1 var(--font-body); text-decoration: none; text-align: center; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  transition: background-color .16s var(--ease), transform .16s var(--ease);
}
.btn:hover { background: var(--brand-blue-hover); transform: translateY(-1px); }
.btn:disabled { cursor: progress; opacity: .75; transform: none; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.link-2 {
  font-weight: 600; font-size: 17px;
  text-decoration-line: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px;
}
.link-2:hover { text-decoration-thickness: 2.5px; }

/* ---------- The pulse line ---------- */
.beat { width: 30px; height: 26px; flex: none; overflow: visible; }
.beat path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.pulse-rule { display: flex; align-items: center; height: 26px; color: var(--green); max-width: 520px; margin-bottom: 28px; }
.band .pulse-rule { color: var(--mint); }
.pulse-rule .solid { flex: 1; border-top: 2.5px solid; }
.pulse-rule .solid:first-child { flex: 0 0 40px; }
.pulse-rule .dots { flex: 1; height: 3px;
  background: radial-gradient(circle, currentColor 1.25px, transparent 1.6px) 0 50% / 9px 3px repeat-x; }
.pulse-rule--plain { max-width: 320px; }
.pulse-rule--price { max-width: 240px; margin-inline: auto; }
.pulse-rule--price .solid:first-child { flex: 1; }

/* ---------- Header ---------- */
.site-head { background: var(--night); color: var(--on-night); }
.page .site-head { border-bottom: 1px solid var(--band-edge); }
.head-row {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "logo btn" "nav nav";
  align-items: center; column-gap: 16px;
}
.logo {
  grid-area: logo; display: inline-flex; align-items: center; gap: 10px; min-height: 64px; width: max-content;
  color: var(--on-night); text-decoration: none; font: 800 20px/1 var(--font-body); letter-spacing: -.02em;
}
.logo svg { width: 28px; height: 28px; border-radius: 22%; box-shadow: 0 0 0 1px rgba(255,255,255,.14); }
.logo .wk { color: var(--wm-blue); }
.logo .wg { color: var(--wm-green); }
.head-btn { grid-area: btn; }
.head-nav {
  grid-area: nav; display: flex; align-items: center; gap: 24px; min-height: 44px;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); border-top: 1px solid var(--night-line);
}
.head-nav a { color: var(--on-night); font-weight: 600; font-size: 15px; text-decoration: none; padding-block: 10px; }
.head-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.head-nav a[aria-current="page"] { color: var(--mint); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.head-nav { gap: 20px; }
/* No room beside the logo and the button between 600 and 900; the footer links it there. */
@media (min-width: 600px) and (max-width: 899px) { .head-nav .nav-paper { display: none; } }
@media (min-width: 600px) {
  .head-row { grid-template-columns: auto 1fr auto; grid-template-areas: "logo nav btn"; min-height: 72px; }
  .logo svg { width: 32px; height: 32px; }
  .head-nav { justify-content: flex-end; gap: 28px; margin: 0; padding: 0 12px 0 0; border: 0; }
  .foot-links a[aria-current="page"] { color: var(--mint); }
  .head-nav a { font-size: 16px; font-weight: 500; }
}

/* ---------- Grid ---------- */
.split { display: grid; row-gap: 48px; }
@media (min-width: 900px) {
  .split { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: center; }
  .split > * { grid-row: 1; }
  .t-1-5 { grid-column: 1 / 6; } .t-1-6 { grid-column: 1 / 7; } .t-1-7 { grid-column: 1 / 8; }
  .t-8-12 { grid-column: 8 / 13; } .p-7-12 { grid-column: 7 / 13; } .p-1-6 { grid-column: 1 / 7; }
  .p-9-12 { grid-column: 9 / 13; } .p-8-12 { grid-column: 8 / 13; } .t-6-12 { grid-column: 6 / 13; } .p-1-5 { grid-column: 1 / 6; }
}

.prose > * + * { margin-top: 16px; }
.prose h2 { margin-bottom: 24px; }
.prose h2 + * { margin-top: 0; }
.prose .actions { margin-top: 32px; }
.sec-text, .not-head, .join-text { max-width: 62ch; }
.sec-text p { color: var(--ink-2); }
.band .sec-text p { color: var(--on-night-2); }

/* ---------- App screens ---------- */
.device {
  --w: 460px;
  width: var(--w); max-width: 100%; margin: 0;
  padding: calc(var(--w) * .032);
  border-radius: calc(var(--w) * .075);
  background: linear-gradient(150deg, #2b3446 0%, #121925 45%, #0a0e16 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), inset 0 1px 0 rgba(255,255,255,.12), var(--shadow-device);
}
.device .screen { border-radius: calc(var(--w) * .043); overflow: hidden; background: #fff; }
.device img { width: 100%; height: auto; }
.device--tablet { --w: min(300px, 88vw); }
.device--phone { --w: min(220px, 62vw); padding: calc(var(--w) * .04); border-radius: calc(var(--w) * .15); }
.device--phone .screen { border-radius: calc(var(--w) * .11); }
@media (min-width: 600px) { .device--tablet { --w: 400px; } .device--phone { --w: 220px; } }
@media (min-width: 900px) { .device--tablet { --w: 460px; } .device--phone { --w: 240px; } }
.band .device { --shadow-device: var(--shadow-device-night); }
/* The whole figure fades into the page, bezel and shadow with it. */
.device--fade { -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
@media (prefers-color-scheme: dark) {
  .device { box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 0 0 1px rgba(255,255,255,.06), var(--shadow-device); }
}

.paper {
  background: #fff; border-radius: 6px; overflow: hidden;
  box-shadow: var(--shadow-paper), var(--shot-ring);
  width: min(320px, 88vw); transform: rotate(-1.5deg);
}
@media (min-width: 600px) { .paper { width: 440px; max-width: 100%; } }
.piece {
  background: var(--surface); border-radius: 20px; padding: 12px; box-shadow: var(--shadow-card);
}
.piece img { border-radius: 10px; box-shadow: var(--shot-ring); }
.pic { display: flex; justify-content: center; }

/* ---------- 1. Top of the home page ---------- */
.hero {
  position: relative; overflow: clip;
  background: var(--night) radial-gradient(640px 460px at 74% 46%, rgba(46,230,182,.16), transparent 70%);
  border-bottom: 1px solid var(--band-edge);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-text { padding-top: 48px; }
.eyebrow { text-wrap: balance; color: var(--mint); font-weight: 600; font-size: 15px; line-height: 1.4; letter-spacing: .01em; margin-bottom: 20px; }
.hero h1 { color: #fff; font-size: clamp(2.25rem, 1.5rem + 3.4vw, 4.5rem); line-height: 1.04; letter-spacing: -.025em; }
.hero h1 .mint { display: block; color: var(--mint); }
.lead { margin-top: 24px; max-width: 34ch; color: var(--on-night-2); font-size: clamp(1.125rem, 1rem + .4vw, 1.3125rem); line-height: 1.55; }
.hero .actions { margin-top: 32px; display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
.hero .actions .link-2 { align-self: flex-start; }
.lead-2 { margin-top: 16px; max-width: 40ch; color: var(--on-night-2); font-size: 17px; line-height: 1.55; }
.hero .note { margin-top: 20px; color: var(--on-night-2); font-size: 15px; line-height: 1.55; }
/* The tablet shows only the top of a record, so the phone stands taller than it: room is kept above for the phone.
   Nothing is cut: the devices sit whole inside the ink, with the pulse line passing behind them. */
.hero { padding-bottom: 72px; }
.hero-pics { display: flow-root; position: relative; margin-top: 120px; width: fit-content; max-width: 100%; }
.hero-pics .device--tablet { --w: min(300px, 82vw); }
.hero-pics .device--phone { --w: 132px; position: absolute; right: -4px; bottom: -16px; transform: rotate(3deg); }
@media (min-width: 600px) {
  .hero .actions { flex-direction: row; align-items: center; gap: 24px; }
  .hero .actions .link-2 { align-self: center; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .hero-pics { margin-inline: auto; margin-top: 150px; }
  .hero-pics .device--tablet { --w: 380px; }
  .hero-pics .device--phone { --w: 170px; }
}
@media (min-width: 900px) {
  .hero { padding-bottom: 0; }
  .hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: center; }
  .hero-text { grid-column: 1 / 8; padding-block: 96px 128px; }
  .hero h1 { font-size: clamp(2.25rem, 1.5rem + 3.4vw, 4rem); }
  .hero .actions .btn { min-height: 48px; }
  .hero-pics { grid-column: 8 / 13; align-self: center; justify-self: start; margin: 0 0 0 -24px; width: auto; }
  .hero-pics .device--tablet { --w: min(600px, 42vw); }
  .hero-pics .device--phone { --w: min(170px, 12.5vw); right: -40px; bottom: -110px; }
}
.hero-pulse {
  position: absolute; inset-inline: 0; bottom: 96px; height: 48px; display: flex; align-items: center;
  color: var(--mint); z-index: 0; pointer-events: none;
}
@media (min-width: 900px) { .hero-pulse { bottom: 48px; } }
.hero-pulse .lead-line { flex: 0 0 calc((100vw - min(1200px, 100vw)) / 2 + var(--gutter) + 40px); border-top: 3px solid; }
.hero-pulse .tail { flex: 1; border-top: 3px solid; }
.hero-pulse .beat { width: 57px; height: 48px; }
.hero-pulse .beat path { stroke-width: 3; }

/* ---------- 2. No signal ---------- */
.pic-signal .device { --w: min(240px, 66vw); }
@media (min-width: 900px) { .pic-signal .device { --w: 280px; } }

/* ---------- 3. OB-GYN panel ---------- */
.obgyn-panel { background: var(--mint-wash); border-radius: 32px; padding: 24px; }
.obgyn-panel .sec-text p { color: var(--ink-2); }
.obgyn-panel .piece { max-width: 640px; width: 100%; margin-inline: auto; }
@media (min-width: 600px) { .obgyn-panel { padding: 48px; } }
@media (min-width: 900px) { .obgyn-panel { padding: 64px; } .obgyn-panel .split { grid-template-columns: repeat(12, minmax(0, 1fr)); } .obgyn-panel .p-7-12 { grid-column: 7 / 13; } }

/* ---------- 4. Record and visit ---------- */
@media (min-width: 900px) { .pic-visit { justify-content: flex-start; } .pic-visit .device { --w: 520px; } }
/* Rx: the heading gets six columns so it sets in three lines, the paper sits in the last five. */

/* ---------- 6. The secretary's phone and the bill, side by side ---------- */
/* A phone screen cut down to the part that matters, on a card. */
.piece--phone { width: min(340px, 100%); }
.duo-grid { display: grid; gap: 24px; }
.duo-card {
  display: flex; flex-direction: column; gap: 40px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow-card);
  padding: 32px 20px; overflow: hidden;
}
.duo-card h2 { font-size: clamp(1.625rem, 1.3rem + 1vw, 1.875rem); line-height: 1.15; }
.duo-card .prose p { color: var(--ink-2); }
.duo-card .pic { margin-top: auto; }
.duo-card .prose { max-width: 46ch; }
.pic-desk .device { --w: min(260px, 72vw); }
/* The bill card cut out of the tablet screen (from the patient's name down to the buttons), so its amounts read at a
   useful size. The numbers are pixels of bill-tablet.webp (900 x 664); re-check them if that picture is re-made. */
.pic-bill { justify-content: flex-start; }
.crop-bill {
  width: 100%; max-width: 560px; aspect-ratio: 716 / 500; overflow: hidden;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-card), var(--shot-ring);
}
.crop-bill img { width: calc(900 / 716 * 100%); max-width: none; margin: calc(-102 / 716 * 100%) 0 0 calc(-92 / 716 * 100%); }
/* The phone rises from the bottom edge of its card: the top of today's list is what matters. */
.duo-card:has(.pic-desk) { padding-bottom: 0; }
.pic-desk { height: 400px; overflow: hidden; align-items: flex-start; }
@media (min-width: 600px) { .duo-card { padding: 40px; } }
@media (min-width: 900px) {
  .duo-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .pic-desk .device { --w: 280px; }
}

/* ---------- 8. Where the records are (ink) ---------- */
.records { border-block: 1px solid var(--band-edge); }
.records h2 { color: #fff; }
.beats { list-style: none; display: grid; gap: 12px; }
.beats li { position: relative; padding-left: 32px; }
.beats li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 17px;
  background: var(--green); -webkit-mask: var(--beat) center / contain no-repeat; mask: var(--beat) center / contain no-repeat;
}
.band .beats li::before { background: var(--mint); }
.records .beats { color: var(--on-night); }
.records .sec-text > .beats { margin-top: 0; }
.records .more { margin-top: 24px; }
.records .more a { font-weight: 600; }
.records-head .pulse-rule { margin-bottom: 28px; }
.records-head h2 { margin-bottom: 32px; }
@media (min-width: 900px) {
  .records-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; }
  .records-head { grid-column: 1 / 6; position: sticky; top: 48px; align-self: start; }
  .records-text { grid-column: 6 / 13; max-width: none; padding-top: 54px; }
}

/* ---------- 3b. Less typing ---------- */
.easier { gap: 16px; line-height: 1.55; }
/* A saved set of prescription lines, inside its own point: what "the app remembers your lines" looks like. */
.easier .piece { margin-top: 16px; max-width: 560px; padding: 8px; }
/* On phones the saved set takes the full width between the page gutters (out under the point's mark) so its lines
   can be read. */
@media (max-width: 599px) { .easier .piece { margin-left: -32px; border-radius: 16px; padding: 6px; } }
@media (min-width: 900px) {
  .typing .easier { grid-column: 6 / 13; align-self: start; }
  .not-head { position: sticky; top: 48px; }
}

/* ---------- 9. What it does not do ---------- */
.nots { list-style: none; }
.nots li {
  display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line);
  line-height: 1.55; color: var(--ink);
}
.nots li::before {
  content: ""; flex: none; width: 26px; height: 26px; margin-top: 0; border: 1.5px solid var(--ink); border-radius: 50%;
  background: linear-gradient(var(--ink), var(--ink)) center / 10px 2px no-repeat;
}
.nots-intro { margin-top: 24px; color: var(--ink-2); }
@media (min-width: 900px) {
  .not-head { grid-column: 1 / 5; align-self: start; }
  .nots { grid-column: 6 / 13; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; align-content: start; }
}

/* ---------- 10. Price ---------- */
.price-card {
  max-width: 760px; margin-inline: auto; text-align: center;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 28px; box-shadow: var(--shadow-card);
  padding: 32px 20px;
}
@media (min-width: 600px) { .price-card { padding: 64px; } }
.price-card h2 { font-weight: 600; }
.price-big { display: block; font-size: clamp(2.25rem, 1.6rem + 3.6vw, 4.5rem); line-height: 1; letter-spacing: -.03em; font-variant-numeric: lining-nums tabular-nums; }
.price-free { display: block; margin-top: 12px; color: var(--green); font-weight: 580; }
.price-card .notes { margin-top: 24px; display: grid; gap: 12px; color: var(--ink-2); font-size: 18px; font-variant-numeric: lining-nums; }
.price-card .notes p { max-width: 52ch; margin-inline: auto; }
.price-card .btn { margin-top: 32px; width: 100%; }
@media (min-width: 600px) { .price-card .btn { width: auto; min-width: 280px; } }

/* ---------- 11. Who makes it ---------- */
.who-icon { width: 96px; height: 96px; border-radius: 22%; box-shadow: var(--shadow-card), var(--shot-ring); }
.who .mail { font-weight: 600; }
@media (min-width: 900px) {
  .who-pic { grid-column: 1 / 4; }
  .who-icon { width: 200px; height: 200px; }
  .who .sec-text { grid-column: 5 / 12; }
}

/* ---------- 12. Join (ink) ---------- */
.join { border-top: 1px solid var(--band-edge); }
.join h2 { color: #fff; }
.join .intro { margin-top: 24px; color: var(--on-night-2); }
@media (min-width: 900px) {
  .join .split { align-items: start; }
  .join .join-text { grid-column: 1 / 6; }
  .join .form-card { grid-column: 6 / 13; }
}
.form-card {
  background: var(--surface); color: var(--ink); border-radius: 28px; padding: 20px; box-shadow: var(--shadow-card);
  border: 1px solid var(--band-edge);
}
@media (min-width: 600px) { .form-card { padding: 40px; } }
.form-card a, .band .form-card a:not(.btn) { color: var(--green); }
.fields { display: grid; gap: 24px; }
@media (min-width: 600px) { .fields { grid-template-columns: 1fr 1fr; } .field--wide, .form-end { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; min-width: 0; }
.field label { font-size: 16px; font-weight: 650; line-height: 1.4; color: var(--ink); }
.field .hint { margin-top: 4px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.field input {
  margin-top: 10px; width: 100%; min-height: 56px; padding: 0 16px;
  font: 400 18px/1.3 var(--font-body); color: var(--ink); background: var(--field);
  border: 1.5px solid var(--field-line); border-radius: 12px;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field input:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field .err { margin-top: 8px; color: var(--error); font-size: 15px; font-weight: 600; line-height: 1.45; }
.form-end .btn { width: 100%; }
@media (min-width: 600px) { .form-end .btn { width: auto; } }
.form-end .small { margin-top: 16px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg:empty { display: none; }
.msg { border-radius: 20px; padding: 20px; font-size: 17px; line-height: 1.55; }
.fields:not([hidden]) + .msg { margin-top: 24px; }
.msg--soon, .msg--done { background: var(--mint-wash); color: var(--ink); }
.msg--done { display: flex; gap: 12px; }
.msg--done svg { flex: none; width: 20px; height: 20px; margin-top: 4px; color: var(--green); }
.msg--done svg path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.msg--error { border-left: 3px solid var(--error); background: var(--paper); border-radius: 6px 20px 20px 6px; }
.msg:focus { outline: none; }
.form-card:has(.fields[hidden]) { background: var(--night-2); border: 1px solid var(--night-line); box-shadow: none; padding: 32px 24px; }
.form-card:has(.fields[hidden]) .msg--soon { background: none; padding: 0; color: var(--on-night); font-size: 19px; }
.form-card:has(.fields[hidden]) .msg--soon a:not(.btn) { color: var(--mint); }
.soon-act { margin-top: 24px; }
.soon-act .btn { width: 100%; color: #fff; }
.band .form-card:has(.fields[hidden]) :focus-visible { outline-color: var(--mint); }
@media (min-width: 600px) { .form-card:has(.fields[hidden]) { padding: 40px; } .soon-act .btn { width: auto; } }

/* ---------- Footer ---------- */
.site-foot { background: var(--night); color: var(--on-night); padding-block: 0 40px; font-size: 15px; line-height: 1.55; }
.page .site-foot { border-top: 1px solid var(--band-edge); }
.foot-pulse { display: flex; align-items: center; color: var(--mint); height: 26px; margin-bottom: 38px; }
.foot-pulse .seg { flex: 1; border-top: 1px solid var(--night-line); }
.foot-pulse .seg:first-child { flex: 0 0 0; }
.site-foot .wrap { padding-top: 48px; }
@media (min-width: 600px) { .site-foot .wrap { padding-top: 64px; } }
.foot-grid { display: grid; gap: 32px; }
.foot-brand .logo { min-height: 0; }
.foot-brand p { margin-top: 12px; color: var(--on-night-2); }
.foot-says { display: grid; gap: 12px; max-width: 60ch; }
.foot-links { list-style: none; display: grid; gap: 4px; align-content: start; }
.foot-links a { color: var(--on-night); text-decoration: none; display: inline-block; padding-block: 6px; font-weight: 600; }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-foot a.mail { color: var(--mint); }
.copy { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--night-line); color: var(--on-night-2); }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 3fr 6fr 3fr; gap: 32px 48px; } .foot-links { justify-self: end; } }

/* ---------- Inner pages (questions, legal) ---------- */
.page-top { padding-block: 64px 32px; }
@media (min-width: 600px) { .page-top { padding-block: 96px 48px; } }
.page-top .sub { margin-top: 16px; color: var(--ink-2); }
.page-body { padding-bottom: 96px; }
@media (min-width: 900px) { .page-body { padding-bottom: 128px; } }

.toc-box { background: var(--paper-2); border-radius: 20px; padding: 20px; }
.toc-box ol, .toc-box ul { list-style: none; display: grid; gap: 4px; }
.toc-box a { display: inline-block; padding-block: 4px; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--ink); line-height: 1.4; }
.toc-box a:hover { color: var(--green); text-decoration: underline; }

/* Questions */
.q-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.q-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong);
  border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none;
}
.q-nav a:hover { border-color: var(--green); color: var(--green); }
.q-layout { display: grid; gap: 40px; }
.q-group + .q-group { margin-top: 64px; }
.q-group > h2, .legal h2 { font-size: clamp(1.5rem, 1.3rem + .8vw, 1.875rem); line-height: 1.2; letter-spacing: -.01em; }
.q-group > h2 { border-top: 1px solid var(--ink); padding-top: 24px; }
.q { padding-block: 32px; border-bottom: 1px solid var(--line); }
.q:last-child { border-bottom: 0; padding-bottom: 0; }
.q p { margin-top: 8px; color: var(--ink-2); max-width: 65ch; }
.q-end { margin-top: 64px; }
@media (min-width: 900px) {
  .q-layout { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: start; }
  .q-nav { grid-column: 1 / 4; position: sticky; top: 32px; background: var(--paper-2); border-radius: 20px; padding: 20px; }
  .q-nav ul { display: grid; gap: 4px; }
  .q-nav a { min-height: 0; padding: 4px 0; border: 0; border-radius: 0; }
  .q-nav a:hover { text-decoration: underline; }
  .q-main { grid-column: 5 / 13; }
}

/* Legal */
.legal-layout { display: grid; gap: 40px; }
details.toc-box summary { cursor: pointer; font-weight: 700; font-size: 16px; padding-block: 2px; }
details.toc-box[open] summary { margin-bottom: 12px; }
.legal { font-size: 17px; line-height: 1.7; max-width: 68ch; min-width: 0; }
.legal > * + * { margin-top: 16px; }
.legal h2 { margin-top: 48px; margin-bottom: 16px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { margin-top: 32px; font-size: 19px; }
.legal h2 + *, .legal h3 + * { margin-top: 0; }
.legal h3 + p { margin-top: 8px; }
.legal .beats li::before { top: .35em; }
.legal .effective { font-weight: 600; }
@media (min-width: 1100px) {
  .legal-layout { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: start; }
  .legal-toc { grid-column: 1 / 4; position: sticky; top: 32px; max-height: calc(100vh - 64px); overflow: auto; }
  .legal-toc summary { display: none; }
  .legal { grid-column: 5 / 13; }
}

/* Moving from paper: a guide, set like the home page rather than like a policy */
.guide { min-width: 0; }
.guide-lead { max-width: 40ch; color: var(--ink-2); font-size: clamp(1.125rem, 1rem + .4vw, 1.3125rem); line-height: 1.55; }
.guide-sec { padding-block: 56px; border-top: 1px solid var(--line); }
.guide-lead + .guide-sec { margin-top: 48px; }
.guide-text { max-width: 62ch; }
.guide-text > * + * { margin-top: 16px; }
.guide-text h2 { font-size: clamp(1.875rem, 1.4rem + 1.9vw, 2.5rem); margin-bottom: 24px; }
.guide-text h2 + * { margin-top: 0; }
.guide-text p { color: var(--ink-2); }
.guide-text .beats { gap: 12px; }
.guide .paper { width: min(300px, 80vw); }
.guide .device--phone { --w: min(240px, 66vw); }
.guide-end { padding-top: 56px; }
.guide-end .price-card h2 { font-size: clamp(2.25rem, 1.8rem + 2vw, 3.25rem); }
@media (min-width: 900px) {
  .guide-sec { padding-block: 80px; }
  .guide-sec.split { align-items: center; }
  .guide .paper { width: 380px; }
  .guide .device--phone { --w: 260px; }
  .guide .p-1-5 { justify-content: center; }
}

/* 404 */
.lost { min-height: 60vh; display: flex; align-items: center; padding-block: 72px; }
.lost .wrap { width: 100%; }
.lost-page .site-head, .lost-page .site-foot { border: 0; }
.lost h1 { color: #fff; }
.lost p { margin-top: 20px; color: var(--on-night-2); }
.broken { display: flex; align-items: center; width: 320px; max-width: 100%; height: 26px; color: var(--mint); margin-bottom: 32px; }
.broken .s1 { flex: 0 0 80px; border-top: 2.5px solid; }
.broken .s2 { flex: 0 0 40px; border-top: 2.5px solid; margin-right: 24px; }
.broken .s3 { flex: 1; border-top: 2.5px solid; }
@media (max-width: 599px) { .broken { width: 240px; } .broken .s1 { flex-basis: 48px; } }

/* ---------- Motion (only with JS, only when the reader allows it) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .motion .reveal { transition: opacity .48s var(--ease), translate .48s var(--ease); }
  .motion .reveal:not(.in) { opacity: 0; translate: 0 24px; }

  .motion .hero-pulse .lead-line { transform-origin: left; animation: grow .6s var(--ease) .2s both; }
  .motion .hero-pulse .beat path { stroke-dasharray: 1; animation: draw .35s linear .8s both; }
  .motion .hero-pulse .tail { transform-origin: left; animation: grow .5s var(--ease) 1.15s both; }

  .motion .pulse-rule .solid { transform-origin: left; transition: transform .15s linear; }
  .motion .pulse-rule .beat path { stroke-dasharray: 1; transition: stroke-dashoffset .15s linear; }
  .motion .pulse-rule .dots { transition: opacity .3s linear; }
  .motion .pulse-rule:not(.in) .solid { transform: scaleX(0); }
  .motion .pulse-rule:not(.in) .beat path { stroke-dashoffset: 1; }
  .motion .pulse-rule:not(.in) .dots { opacity: 0; }
  .motion .pulse-rule > :nth-child(2), .motion .pulse-rule > :nth-child(2) path { transition-delay: .15s; }
  .motion .pulse-rule > :nth-child(3), .motion .pulse-rule > :nth-child(3) path { transition-delay: .3s; }
  .motion .pulse-rule > :nth-child(4) path { transition-delay: .55s; }
  .motion .pulse-rule > :nth-child(5) { transition-delay: .7s; }
  .motion .pulse-rule > :nth-child(6) path { transition-delay: .95s; }
  .motion .pulse-rule > :nth-child(7) { transition-delay: 1.1s; }
}
@keyframes grow { from { transform: scaleX(0); } }
@keyframes draw { from { stroke-dashoffset: 1; } }
main:focus { outline: none; }
.nw { white-space: nowrap; }

/* The film loop (marketing/film, wide cut, no words), on ink right under the top of the page. Muted, loops, plays
   inline; with reduced motion no source matches, so only the poster shows (main.js also stops it). MP4 only: every
   browser the site supports plays it, and it was the smaller file.
   The film's ink is baked in (#0e1522) and does not follow dark mode, so the band keeps that ink, and the film runs
   edge to edge with its sides and ends faded into it: no box, no seam. The top blends from the hero's ink. */
.film-band { background: linear-gradient(var(--night), #0e1522 96px) #0e1522; padding-block: 8px 48px; border-bottom: 1px solid var(--band-edge); }
.film-band .wrap { max-width: none; padding-inline: 0; }
.film {
  display: block; width: 100%; max-width: 1600px; height: auto; margin-inline: auto; aspect-ratio: 16 / 9; background: #0e1522;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent), linear-gradient(transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent), linear-gradient(transparent, #000 10%, #000 90%, transparent);
  mask-composite: intersect;
}
@media (min-width: 900px) { .film-band { padding-block: 0 64px; } }
/* The still (the loop's first frame) is the video's background, not its poster, so a phone, which never shows the
   band, does not download it. With reduced motion no source plays and the still stays. */
@media (min-width: 600px) { .film { background: #0e1522 url(/video/film-poster-v3.jpg?v=cd1feb995b) center / cover no-repeat; } }
.hero:has(+ .film-band) { border-bottom: 0; }
/* Phones: no film. At 360 px its screens are a few pixels tall, and each one is shown, readable, further down the
   page. The <source>s ask for 600 px and up, so a phone downloads nothing. */
@media (max-width: 599px) { .film-band { display: none; } .hero:has(+ .film-band) { border-bottom: 1px solid var(--band-edge); } }
