/* AlpineForm's one stylesheet: the design system Scott approved in stage 3 (Glacier's layout in Pine's colours).
   Tokens first, then base elements, then components, then the classes today's pages use. Every text colour meets
   WCAG AA on the backgrounds it's used on (4.5:1), and control outlines meet 3:1; check new pairs the same way. */

/* Atkinson Hyperlegible, served from our own address (Fontsource 5.3.0, OFL), the font the filled PDFs print in. */
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/atkinson-latin-400.woff2?v=d64ba838ef") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/atkinson-latin-ext-400.woff2?v=61eeb0eb8b") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/atkinson-latin-700.woff2?v=140e2bd25a") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/atkinson-latin-ext-700.woff2?v=840ced16f9") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/atkinson-latin-400-italic.woff2?v=bc8825fd43") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Caveat (Fontsource 5.3.0, OFL), the handwriting face a typed signature shows in, as it prints on the paper. */
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/caveat-latin-400.woff2?v=d0b7b931b8") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/caveat-latin-ext-400.woff2?v=b887f25617") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Tokens. Light: stone ground, pine green only for actions and choices, sand for tints. Dark: forest night with a
   sandstone accent (links stay underlined there, since sandstone sits close to the text colour). */
:root {
  --bg: #f7f4ec;
  --surface: #fffdf8;
  --ink: #1f2a24;
  --muted: #56625a;
  --line: #e2dccd;
  --track: #ece7db;
  --accent: #245c45;
  --accent-ink: #ffffff;
  --soft: #f0e8d6;
  --field: #fffdf8;
  --field-line: #878170;
  --focus: rgba(36, 92, 69, 0.22);
  --error: #a3261b;
  --error-soft: #fbedea;
  --warn-ink: #6b4a0e;
  --warn-soft: #f6ebd3;
  --radius: 10px;
  --radius-card: 14px;
  --font: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151a16;
    --surface: #1c221d;
    --ink: #eceae2;
    --muted: #aeb4a9;
    --line: #2e3630;
    --track: #283029;
    --accent: #d2c4a5;
    --accent-ink: #1f2a24;
    --soft: #2b2920;
    --field: #151a16;
    --field-line: #6f786b;
    --focus: rgba(210, 196, 165, 0.3);
    --error: #f3a195;
    --error-soft: #2d1a17;
    --warn-ink: #ebd49c;
    --warn-soft: #352c16;
  }
}

/* Base */
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--font); -webkit-text-size-adjust: 100%; }
main { max-width: 52rem; margin: 0 auto; padding: 24px 16px 48px; }
h1 { font-size: clamp(1.6rem, 5vw, 2rem); line-height: 1.15; margin: 8px 0 12px; }
h2 { font-size: 1.25rem; line-height: 1.25; margin: 32px 0 8px; }
h3 { font-size: 1.05rem; margin: 16px 0 4px; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
label { display: block; margin: 16px 0 6px; font-weight: 700; }
input, select, textarea {
  width: 100%; max-width: 30rem; min-height: 48px; padding: 10px 14px; font: inherit; color: var(--ink);
  background: var(--field); border: 1.5px solid var(--field-line); border-radius: var(--radius);
}
textarea { min-height: 104px; line-height: 1.45; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border: 2px solid var(--accent); box-shadow: 0 0 0 4px var(--focus); }
/* Ticks and dots have no border to thicken: a solid ring instead, clear on any background. */
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; box-shadow: none; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input[type="checkbox"], input[type="radio"] { width: 22px; min-height: 0; height: 22px; padding: 0; accent-color: var(--accent); }
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; margin-top: 16px;
  padding: 0 20px; font: inherit; font-weight: 700; color: var(--accent-ink); background: var(--accent);
  border: 0; border-radius: var(--radius); cursor: pointer; text-decoration: none;
}
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.85rem; color: var(--muted); }
[hidden] { display: none !important; }
/* Phones tint whatever is tapped (a flash of colour before the choice shows): off, with our own press shade below. */
a, button, label, input, select, textarea, canvas { -webkit-tap-highlight-color: transparent; }
/* Keyboard users can jump past the header; the link shows only when it has focus. */
.skip { position: absolute; left: 12px; top: -100px; z-index: 10; padding: 10px 14px; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.skip:focus { top: 12px; }
main:focus { outline: none; }
/* The patient form's strip stays at the top as the page scrolls: keep a focused field clear of it. */
html:has(body.patient .pt-progress) { scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Components (the mock-ups' parts; steps 4 and 5 move the pages onto them) */
.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -0.2em; }
.card { margin: 16px 0; padding: 20px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card.tint { background: var(--soft); border-color: transparent; }
/* The Archive's lock state: plain while locked; green-edged and tinted while a key is in the page's memory. */
.lock-state { display: grid; gap: 6px; }
.lock-state p { margin: 0; }
.lock-state .lock-head { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; }
.lock-state .lock-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.lock-state .lock-actions:empty { display: none; }
.lock-state[data-lock-state="unlocked"] { background: var(--soft); border: 2px solid var(--accent); }
.card.attention { border: 2px solid var(--warn-ink); }
.lede { margin: 6px 0 0; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.btn.wide, button.wide { width: 100%; }
.btn.quiet, button.quiet { color: var(--ink); background: transparent; border: 1.5px solid var(--field-line); font-weight: 400; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px; border-radius: 999px; font-size: 0.85rem; font-weight: 700; white-space: nowrap; background: var(--track); color: var(--ink); }
.chip.received { background: var(--surface); border: 1.5px solid var(--field-line); }
.chip.progress { background: var(--soft); }
.chip.waiting { background: var(--warn-soft); color: var(--warn-ink); }
.chip.live { background: var(--accent); color: var(--accent-ink); }
.chip.closed { background: transparent; color: var(--muted); border: 1.5px solid var(--line); }
.progress { height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--accent); }
.seg { display: inline-flex; flex-shrink: 0; border: 1.5px solid var(--field-line); border-radius: var(--radius); overflow: hidden; }
.seg label { position: relative; margin: 0; font-weight: 400; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: flex; align-items: center; justify-content: center; min-width: 60px; min-height: 44px; padding: 0 12px; background: var(--field); cursor: pointer; }
.seg label + label span { border-left: 1.5px solid var(--field-line); }
.seg input:checked + span { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.seg label:active input:not(:checked) + span, .tabs button:active:not([aria-pressed="true"]) { background: var(--soft); }
/* The ring goes round the whole group: inside a chosen (filled) option it would vanish. */
.seg:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--track); }
.tabs button { flex: 1; min-height: 40px; margin: 0; padding: 0 12px; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 400; }
.tabs button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgb(0 0 0 / 0.12); }
.reveal { margin-top: 12px; padding: 14px; border-radius: var(--radius); background: var(--soft); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 16px; }
.grid > * { grid-column: span 12; min-width: 0; }
@media (min-width: 640px) {
  /* Fields side by side line up their boxes, whatever their labels' length. */
  .grid { align-items: end; }
  .grid > .half { grid-column: span 6; }
  .grid > .third { grid-column: span 4; }
  .grid > .quarter { grid-column: span 3; }
}
.grid input, .grid select, .grid textarea { max-width: none; }
.alert { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; padding: 16px 18px; border-radius: var(--radius-card); background: var(--error-soft); border: 2px solid var(--error); }
.alert > .icon { color: var(--error); width: 1.4em; height: 1.4em; margin-top: 2px; }
.alert h2 { margin: 0; font-size: 1.1rem; }
.alert ul { margin: 10px 0 0; padding-left: 20px; }
.alert p { margin: 10px 0 0; font-size: 0.95rem; }
.alert a { color: var(--ink); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The page frame */
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.top form { margin: 0; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand .icon { color: var(--accent); width: 1.4em; height: 1.4em; }

/* The practice account: the section bar, tiles, two columns, rows of people and forms, a request's steps */
.appnav { display: flex; gap: 4px; padding: 6px 12px; background: var(--surface); border-bottom: 1px solid var(--line); overflow-x: auto; }
.appnav a { padding: 8px 12px; border-radius: 9px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.appnav a:hover { background: var(--track); }
.appnav a[aria-current="page"] { background: var(--soft); font-weight: 700; }
body:has(.appnav) main { max-width: 68rem; }
.standing { margin: 16px 0; }
.standing p { margin: 4px 0 0; }
.standing-head { font-size: 1.15rem; font-weight: 700; }
.standing progress { display: block; width: 100%; max-width: 26rem; height: 8px; margin-top: 12px; border: 0; border-radius: 4px; background: var(--surface); appearance: none; overflow: hidden; }
.standing progress::-webkit-progress-bar { background: var(--surface); }
.standing progress::-webkit-progress-value { background: var(--accent); }
.standing progress::-moz-progress-bar { background: var(--accent); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 12px; margin: 16px 0; }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); color: var(--ink); text-decoration: none; }
.tile:hover { border-color: var(--field-line); }
.tile.attention { border: 2px solid var(--warn-ink); }
.tile-n { font-size: 1.9rem; font-weight: 700; line-height: 1.1; }
.tile-what { font-weight: 700; }
.tile .muted { font-size: 0.9rem; }
@media (max-width: 640px) {
  .tile { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; }
  .tile-n { grid-row: span 2; min-width: 1.4em; text-align: center; }
}
.split { display: grid; gap: 0 20px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.rows { list-style: none; margin: 8px 0 0; padding: 0; }
.rows > li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.rows .icon { color: var(--muted); }
.rows .row-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }
/* Records pages (stage 4 polish). */
/* A button that can't be used yet looks it (on Records, most wait for an unlock). */
button:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.small { font-size: 0.9rem; }
.lock-state [data-key-status].error { color: var(--error); font-weight: 700; }
.lock-state .small { margin-top: 4px; }
/* A step's progress or problem, shown as a band beside the button pressed, not as faint text. */
.flow-status:empty { display: none; }
.flow-status { margin: 12px 0 0; padding: 10px 14px; border-radius: var(--radius); background: var(--soft); color: var(--ink); }
.flow-status.error { background: var(--error-soft); color: var(--error); font-weight: 700; }
.quiet-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 20px 0 0; }
.list-tools { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 16px; margin: 16px 0 4px; }
.list-tools input[type="search"] { flex: 1 1 18rem; max-width: 28rem; }
details.filter > summary { cursor: pointer; padding: 12px 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
details.filter[open] { flex-basis: 100%; }
/* A card that folds away: its heading is the summary. */
details.fold > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary h2 { margin: 0; }
details.fold > summary h2::before { content: "▸"; display: inline-block; width: 1.1em; color: var(--muted); }
details.fold[open] > summary h2::before { content: "▾"; }
.key-form label:first-child { margin-top: 8px; }

/* A radio choice with a line of explanation (the email choice on Keys and access). */
.pick { display: flex; gap: 12px; align-items: flex-start; margin: 10px 0; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); font-weight: 400; }
.pick:has(input:checked) { border: 2px solid var(--accent); background: var(--soft); }
.pick input { margin-top: 3px; flex-shrink: 0; }
fieldset { border: 0; margin: 0; padding: 0; }

/* Filters above a list (Records, the owner Archive): one row when there's room, wrapping on a phone. */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 12px 0; }
.filters label { margin: 0; }
.filters input, .filters select { width: auto; min-width: 10rem; }
/* The Records list: scrolls sideways inside its box on a phone rather than the page. */
.table-scroll { overflow-x: auto; margin: 12px 0; }
table.records td { vertical-align: top; }
table.records .new { margin-left: 6px; }
.answers { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); margin: 0; }
.answers dt, .answers dd { margin: 0; padding: 8px 8px 8px 0; border-top: 1px solid var(--line); }
.answers dt { color: var(--muted); }
.answers dd { white-space: pre-wrap; overflow-wrap: anywhere; }
.who { display: flex; flex-direction: column; flex: 1 1 12rem; min-width: 0; overflow-wrap: anywhere; }
.who .muted { font-size: 0.9rem; }
.avatar { width: 36px; height: 36px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--track); font-size: 0.85rem; font-weight: 700; }
.avatar.invited { background: transparent; border: 1.5px dashed var(--field-line); }
.person .access { font-size: 0.9rem; }
.person .actions { display: flex; flex-wrap: wrap; gap: 6px; }
.person .actions form.inline { display: inline-flex; }
.address { font-size: 0.9rem; overflow-wrap: anywhere; }
.small-print { font-size: 0.9rem; }
.card h3 { margin-top: 20px; }
.card form > button, .card form > div + button { margin-top: 16px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 16px 0; padding: 0; font-size: 0.85rem; }
.steps li { padding-top: 10px; border-top: 6px solid var(--track); color: var(--muted); }
.steps li.done { border-top-color: var(--accent); color: var(--ink); }
.steps li.now { color: var(--ink); font-weight: 700; }
.steps li.now:not(.done) { border-top-color: var(--warn-ink); }
/* Records setup (stage 4): three steps, the current one marked by aria-current. */
.steps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li[aria-current="step"] { border-top-color: var(--accent); color: var(--ink); font-weight: 700; }
/* A recovery code: big, monospaced, wrapping only between its groups. */
.code { font: 700 1.3rem/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 0.06em; word-spacing: 0.3em; padding: 12px 14px; background: var(--soft); border-radius: var(--radius); }
/* Buying links on the explainer page: three side by side when there's room. */
.buy { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 16px; margin: 12px 0 0; padding: 0; list-style: none; }
.buy li { display: flex; flex-direction: column; gap: 4px; }
.next { margin: 8px 0 0; padding-left: 20px; }
.next li { margin: 4px 0; }

/* Owner pages: the same parts, with the section list down the side on a wide screen */
@media (min-width: 960px) {
  main:has(> .subnav:first-child) { display: grid; grid-template-columns: 13rem minmax(0, 1fr); column-gap: 32px; align-items: start; max-width: 80rem; }
  main:has(> .subnav:first-child) > * { grid-column: 2; }
  main:has(> .subnav:first-child) > .subnav { grid-column: 1; grid-row: 1 / span 99; position: sticky; top: 16px; flex-direction: column; flex-wrap: nowrap; }
}

/* What today's pages use */
.muted { color: var(--muted); }
.notice { padding: 12px 14px; background: var(--soft); border-radius: var(--radius); }
.error { padding: 12px 14px; color: var(--ink); background: var(--error-soft); border: 2px solid var(--error); border-radius: var(--radius); }
.warn { color: var(--error); }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 16px 0; }
label.check input { flex-shrink: 0; margin-top: 2px; }
button.small { min-height: 36px; margin: 0; padding: 0 12px; font-size: 0.9rem; font-weight: 400; border-radius: 9px; }
button.secondary { color: var(--ink); background: transparent; border: 1.5px solid var(--field-line); }
button.link { min-height: 0; margin: 0; padding: 0; color: var(--accent); background: none; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
form.inline { display: inline; }
form:not(.inline) > button, button[data-passkey] { display: flex; }
td.actions { white-space: nowrap; }
td.actions form + form { margin-left: 4px; }
ul.choices { list-style: none; padding: 0; }
.subnav { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-bottom: 12px; font-size: 0.95rem; }
.subnav a, .subnav strong { padding: 6px 10px; border-radius: 9px; }
.subnav a { color: var(--ink); text-decoration: none; }
.subnav a:hover { text-decoration: underline; }
.subnav strong { background: var(--soft); }
input.short { display: inline-block; width: 9rem; min-height: 36px; padding: 4px 8px; }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.decide { margin: 16px 0; padding: 12px 16px 16px; border: 2px solid var(--warn-ink); border-radius: var(--radius-card); background: var(--surface); }
.decide form.inline { display: inline-block; margin-right: 8px; }
code.token { display: inline-block; padding: 8px; overflow-wrap: anywhere; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
ol.messages { list-style: none; padding: 0; margin: 0; max-width: 40rem; }
ol.messages li { margin: 0 0 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
ol.messages li.from-alpineform { background: var(--soft); border-color: transparent; }
ol.messages li.draft { border-style: dashed; }
ol.messages p { margin: 4px 0; }
ol.messages .meta { font-size: 0.9rem; color: var(--muted); }
ol.messages .meta strong { color: var(--ink); }
@media (max-width: 640px) {
  thead { display: none; }
  tr, td { display: block; }
  tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
  td { border: 0; padding: 2px 0; }
  td.actions { white-space: normal; }
}

/* The patient form */
body.patient main { max-width: 64rem; padding-top: 16px; }
.pt-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 14px; background: var(--surface); }
.pt-mark { width: 42px; height: 42px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--soft); color: var(--accent); font-weight: 700; }
.pt-practice { font-weight: 700; }
.pt-title { font-size: 0.9rem; color: var(--muted); }
.pt-head + main, .pt-head + .pt-progress { border-top: 1px solid var(--line); }
.pt-progress { position: sticky; top: 0; z-index: 1; padding: 10px 20px 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.pt-where { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 0.9rem; }
.pt-where strong { white-space: nowrap; }
.pt-where span { min-width: 0; overflow: hidden; color: var(--muted); text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.pt-sections { display: none; }
.pt-form > form > button.wide { margin-top: 8px; }
@media (min-width: 960px) {
  .pt-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 40px; align-items: start; }
  .pt-layout:not(:has(.pt-sections)) { grid-template-columns: minmax(0, 46rem); justify-content: center; }
  .pt-sections { display: block; position: sticky; top: 88px; padding-top: 16px; }
  .pt-sections ol { list-style: none; margin: 0; padding: 0; }
  .pt-sections a { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: var(--radius); color: var(--ink); text-decoration: none; }
  .pt-sections a:hover { background: var(--track); }
  .pt-sections a[aria-current="step"] { background: var(--soft); font-weight: 700; }
  .pt-sections p { margin: 16px 10px 0; font-size: 0.9rem; }
  .dot { width: 24px; height: 24px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 999px; border: 1.5px solid var(--field-line); font-size: 0.8rem; font-weight: 700; }
  [aria-current="step"] .dot { border-color: var(--accent); color: var(--accent); }
}
.form-section { scroll-margin-top: 88px; }
.form-section h2 { margin: 0; }
.form-section .lede { margin-bottom: 4px; }
.field { margin: 0 0 4px; }
.field fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.field legend { font-weight: 700; padding: 0; margin: 16px 0 6px; }
.field .help, .field .when { margin: 0 0 6px; font-size: 0.95rem; }
.choices { display: flex; flex-direction: column; }
.choices label.check { min-height: 44px; margin: 0; align-items: center; }
.question-row { border-top: 1px solid var(--line); margin-top: 14px; }
.question-row + .question-row { margin-top: 0; }
.question { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 12px 0; }
.question legend { float: left; flex: 1 1 9rem; min-width: 0; max-width: 34rem; margin: 0; }
/* In a run of such questions, the list reads lighter: plain question text, the choices doing the work. */
.question-row + .question-row .question legend, .question-row:has(+ .question-row) .question legend { font-weight: 400; }
.question-row:not(:has(+ .question-row)) { margin-bottom: 8px; }
.question .seg { margin-left: auto; }
.question .help, .question .field-error { flex-basis: 100%; }
.field-error { display: flex; gap: 6px; align-items: flex-start; margin: 8px 0 0; color: var(--error); font-weight: 700; }
.field-error .icon { margin-top: 3px; }
[aria-invalid="true"] { border: 2px solid var(--error); }
fieldset[aria-invalid="true"] { border: 0; }
.question[aria-invalid="true"] .seg, .signature[aria-invalid="true"] .pad canvas { border: 2px solid var(--error); }
.req { font-size: 0.85rem; font-weight: 400; color: var(--muted); }
.info { margin: 16px 0 4px; padding: 6px 16px; background: var(--bg); border-radius: var(--radius); }
.info h3 { margin: 12px 0 4px; }
label.consent { font-weight: 400; }
.file-note { margin: 0 0 8px; font-size: 0.95rem; }
input[type="file"] { padding: 8px; }
input[type="file"]::file-selector-button { margin-right: 12px; padding: 6px 14px; font: inherit; font-weight: 700; color: var(--ink); background: var(--track); border: 1.5px solid var(--field-line); border-radius: 9px; cursor: pointer; }

.signature .tabs { margin: 4px 0 12px; max-width: 30rem; }
.pad { position: relative; max-width: 600px; }
.pad canvas { display: block; width: 100%; height: auto; aspect-ratio: 600 / 260; touch-action: none; background: #fff; border: 1.5px solid var(--field-line); border-radius: var(--radius); }
/* The line sits near the bottom with its label tucked under it, leaving the pad's height for the signature. */
.pad-hint { position: absolute; left: 14px; right: 14px; bottom: 6px; padding-top: 3px; border-top: 1.5px dashed #878170; font-size: 0.75rem; line-height: 1.3; color: #56625a; pointer-events: none; }
.sign-draw button.small { margin-top: 10px; }
.typed-preview { display: flex; flex-direction: column; gap: 2px; max-width: 30rem; margin: 10px 0 0; padding: 10px 14px; border: 1.5px dashed var(--field-line); border-radius: var(--radius); font-size: 0.85rem; }
.typed-preview [data-typed-preview] { min-height: 1.4em; font-family: "Caveat", var(--font); font-size: 2rem; line-height: 1.2; color: var(--ink); }
.typed-preview [data-typed-preview]:empty::before { content: "Your name"; color: var(--muted); }
.end { max-width: 34rem; margin: 32px auto; }
.end h1 { margin-top: 20px; }
.end p { font-size: 1.05rem; }
.badge { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; border-radius: 999px; }
.badge .icon { width: 34px; height: 34px; }
.badge.done { background: var(--soft); color: var(--accent); }
.badge.calm { background: var(--track); color: var(--ink); }
.badge.problem { background: var(--error-soft); color: var(--error); }
.patient-foot { max-width: 52rem; margin: 0 auto; padding: 8px 16px 32px; font-size: 0.9rem; color: var(--muted); text-align: center; }
.patient-foot p { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 0 0 6px; }
/* A practice's page (stage 5 step 3): its live forms as big rows to tap. */
.pt-index { max-width: 40rem; margin: 8px auto 0; }
.pt-forms { list-style: none; margin: 20px 0 0; padding: 0; }
.pt-forms li + li { margin-top: 10px; }
.pt-forms a { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 14px 18px; border-radius: var(--radius-card); background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 700; text-decoration: none; }
.pt-forms a:hover { border-color: var(--field-line); }
.pt-forms a span { flex: 1; }
.pt-forms .icon { color: var(--accent); }
.preview { padding: 10px 14px; border: 2px dashed var(--accent); border-radius: var(--radius); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* The public site (stage 5): the home page and the pages that share its frame, from the canvas boards "Photo hero
   home page" and "Home page, phone width". Everything is scoped to body.site and named s-…, so the app's own pages
   keep their look. The photo header and the pine bands keep their colours in dark mode; the rest follows the tokens. */
body.site { font-size: 18px; }
body.site main { max-width: none; margin: 0; padding: 0 0 8px; }
.site h1, .site h2, .site h3 { text-wrap: balance; }
.site p, .site li, .site dd { text-wrap: pretty; }
:where(.site) p { margin: 0; }
.s-wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.s-photo { color: #fffdf8; background: linear-gradient(rgba(23, 46, 36, 0.78), rgba(23, 46, 36, 0.78)), url("/assets/site/santis.jpg?v=ac7932f0c8") center 35% / cover no-repeat, #1d3a2d; }
.s-photo a { color: #fffdf8; }
.s-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1360px; margin: 0 auto; padding: 20px 40px; }
.s-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; text-decoration: none; }
.s-photo .s-logo { color: #fffdf8; }
.s-logo img { width: 42px; height: 42px; display: block; }
.s-nav { display: flex; align-items: center; gap: 26px; font-size: 16px; }
.s-photo .s-navlink { color: #e9e6df; text-decoration: none; }
.s-photo .s-navlink:hover { text-decoration: underline; }
.s-photo :focus-visible { outline-color: #d2c4a5; }
.s-menu { display: none; position: relative; }
.s-menu > summary { list-style: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid rgba(255, 253, 248, 0.3); cursor: pointer; }
.s-menu > summary::-webkit-details-marker { display: none; }
.s-menu > summary .icon { width: 22px; height: 22px; }
.s-menu-panel { position: absolute; right: 0; top: 52px; z-index: 5; display: flex; flex-direction: column; min-width: 12rem; padding: 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 12px 28px rgb(0 0 0 / 0.25); }
.s-photo .s-menu-panel a { padding: 12px 14px; border-radius: 9px; color: var(--ink); text-decoration: none; }
.s-photo .s-menu-panel a:hover { background: var(--track); }

.s-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 0 30px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-size: 19px; font-weight: 700; text-decoration: none; text-align: center; }
.site a.s-btn { color: var(--accent-ink); text-decoration: none; }
.site a.s-btn.s-sandy, .s-btn.s-sandy { background: #d2c4a5; color: #1f2a24; }
.s-btn.s-small { min-height: 44px; padding: 0 18px; font-size: 16px; }

.s-hero { max-width: 1280px; margin: 0 auto; padding: 56px 40px 44px; text-align: center; }
.s-hero h1 { max-width: 1120px; margin: 0 auto; font-size: 48px; line-height: 1.14; letter-spacing: -0.5px; }
.s-sub { max-width: 820px; margin: 20px auto 0; font-size: 21px; line-height: 1.55; color: #e9e6df; }
.s-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 28px auto 0; padding: 0; list-style: none; }
.s-vchip { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: rgba(255, 253, 248, 0.08); border: 1px solid rgba(255, 253, 248, 0.18); font-size: 17px; font-weight: 700; color: #fffdf8; }
.s-vchip .icon, .s-dark .icon { color: #d2c4a5; }

/* The demo sits half on the photo and half on the page below it. */
.s-stage { background: linear-gradient(to bottom, transparent 0, transparent 400px, var(--bg) 400px); }
.s-demo { display: grid; grid-template-columns: 296px 72px 560px; grid-template-areas: "dev arrow mail" "dev arrow paper" "cap1 . cap2"; grid-template-rows: auto 1fr auto; column-gap: 28px; justify-content: center; padding-bottom: 8px; color: var(--ink); }
.s-dcap { margin: 14px 0 0; text-align: center; font-size: 17px; font-weight: 700; }
.s-dcap1 { grid-area: cap1; }
.s-dcap2 { grid-area: cap2; }
.s-dnum { display: none; }
.s-narrow { display: none; }
.s-device { grid-area: dev; height: 600px; padding: 8px; border-radius: 40px; background: #0e1411; border: 1px solid rgba(255, 255, 255, 0.22); box-shadow: 0 22px 44px rgb(0 0 0 / 0.38); }
.s-screen { display: flex; flex-direction: column; height: 100%; border-radius: 32px; overflow: hidden; background: var(--bg); }
.s-dhead { display: flex; align-items: center; gap: 8px; padding: 16px 16px 11px; background: var(--surface); border-bottom: 1px solid var(--line); font-weight: 700; font-size: 15px; }
.s-dmark { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--soft); font-size: 12px; }
.s-dprog { height: 5px; background: var(--track); }
.s-dprog span { display: block; height: 5px; width: 0; background: var(--accent); transition: width 0.2s; }
.s-dprog span[data-step="1"] { width: 20%; }
.s-dprog span[data-step="2"] { width: 40%; }
.s-dprog span[data-step="3"] { width: 60%; }
.s-dprog span[data-step="4"] { width: 80%; }
.s-dprog span[data-step="5"] { width: 100%; }
.s-dform { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 12px 16px; }
.s-dform[hidden], .s-dthanks[hidden] { display: none; }
.s-dtitle { font-weight: 700; font-size: 18px; line-height: 1.15; }
.site .s-dfield { display: flex; flex-direction: column; gap: 3px; margin: 0; font-size: 13.5px; font-weight: 700; }
.site .s-dfield input, .site .s-dseg button { min-height: 42px; height: 42px; max-width: none; padding: 0 10px; border-radius: 9px; font-size: 15px; font-weight: 400; }
.site .s-dsign input { font-family: "Caveat", var(--font); font-size: 22px; }
.s-drow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 8px; }
.s-dq { display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; font-weight: 700; }
.s-dseg { display: flex; border: 1.5px solid var(--field-line); border-radius: 9px; overflow: hidden; }
.site .s-dseg button { flex: 1; margin: 0; border-radius: 0; background: var(--field); color: var(--ink); font-weight: 700; }
.site .s-dseg button + button { border-left: 1.5px solid var(--field-line); }
.site .s-dseg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.site .s-dsend, .site .s-dagain button { min-height: 46px; margin: auto 0 0; border-radius: 10px; font-size: 16px; }
.s-dthanks { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 24px 18px; font-size: 15px; line-height: 1.45; }
.s-dthanks .s-dtitle { font-size: 21px; }
.s-dagain { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.s-dagain[hidden] { display: none; }
.site .s-dagain button { margin: 0; }
.site button.s-quiet { background: transparent; color: var(--ink); border: 1.5px solid var(--field-line); font-weight: 400; }
.s-dnote { padding: 8px 14px 14px; font-size: 12px; line-height: 1.3; color: var(--muted); text-align: center; }
.site .s-dstop { min-height: 24px; margin: 0 0 0 4px; padding: 0 8px; border-radius: 6px; background: transparent; color: var(--ink); border: 1px solid var(--field-line); font-size: 12px; font-weight: 700; }
.s-darrow { grid-area: arrow; align-self: start; margin-top: 252px; color: #d2c4a5; }
.s-darrow .icon { width: 64px; height: 48px; stroke-width: 2.4; }
.s-darrow .icon-arrow-down { display: none; }
.s-mail { grid-area: mail; position: relative; z-index: 1; display: flex; gap: 14px; align-items: flex-start; margin-top: 14px; padding: 16px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 16px 36px rgb(0 0 0 / 0.3); }
.s-mail-ic { width: 44px; height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--track); color: var(--muted); }
.s-mail[data-mail="sent"] .s-mail-ic { background: var(--accent); color: var(--accent-ink); }
.s-mail-sent, .s-mail-waiting { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.s-mail[data-mail="sent"] .s-mail-waiting, .s-mail[data-mail="waiting"] .s-mail-sent { display: none; }
.s-mail-from { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--muted); }
.s-mail-subject { font-size: 17px; font-weight: 700; }
.s-mail-waiting .s-mail-subject { color: var(--muted); }
.s-mail-text { font-size: 14.5px; color: var(--muted); }
.s-mail-file { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 6px; padding: 6px 10px; border-radius: 8px; background: var(--soft); font-size: 13.5px; font-weight: 700; }
/* The practice's own form: paper, so it stays paper-coloured in dark mode too. */
.s-paper { grid-area: paper; display: flex; flex-direction: column; gap: 11px; width: 470px; min-height: 500px; margin: 16px 0 0 40px; padding: 24px 28px 18px; background: #fffefb; color: #26262a; box-shadow: 0 22px 44px rgb(0 0 0 / 0.32); font-family: "Times New Roman", Times, serif; font-size: 13.5px; }
.s-phead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 8px; border-bottom: 2px solid #26262a; }
.s-phead div { display: flex; flex-direction: column; }
.s-phead div strong { font-size: 17px; letter-spacing: 0.4px; }
.s-phead div span { font-size: 11.5px; }
.s-phead > strong { font-size: 12.5px; text-align: right; line-height: 1.25; }
.s-pline { display: flex; align-items: flex-end; gap: 6px; }
.s-pline > span:not(.s-pval):not(.s-pbox) { white-space: nowrap; }
.s-pval { flex: 1; min-height: 22px; padding: 0 4px; border-bottom: 1px solid #26262a; font-family: var(--font); font-size: 15.5px; color: #16202b; }
.s-pshort { flex: 0 0 100px; }
.s-pdate { flex: 0 0 92px; font-size: 14px; }
.s-pscript { min-height: 34px; font-family: "Caveat", var(--font); font-size: 28px; line-height: 34px; }
.s-pboxes { align-items: center; gap: 8px; }
.s-pbox { width: 15px; height: 15px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #26262a; font-family: var(--font); font-weight: 700; font-size: 13px; line-height: 1; color: #16202b; }
.s-psec { margin-top: 6px; font-weight: 700; font-size: 12.5px; letter-spacing: 0.3px; }
.s-psmall { font-size: 12px; line-height: 1.35; }
.s-psign { margin-top: 8px; }
.s-poffice { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding: 8px 10px; border: 1px solid #26262a; font-size: 11.5px; }

.s-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 40px 0; text-align: center; }
.site .s-fine { font-size: 16px; color: var(--muted); }
.s-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; padding-top: 80px; padding-bottom: 24px; }
.s-three h2 { margin: 0 0 10px; font-size: 28px; line-height: 1.15; }
.s-three p { font-size: 18px; line-height: 1.55; color: var(--muted); }
.s-ic { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; border-radius: 14px; background: var(--soft); color: var(--accent); }
.s-ic .icon { width: 28px; height: 28px; }
.s-ic.s-ic-sm { width: 44px; height: 44px; margin: 0; border-radius: 12px; }
.s-ic.s-ic-sm .icon { width: 24px; height: 24px; }
.s-band { margin-top: 64px; padding: 48px; border-radius: 22px; }
.s-plain { margin-top: 64px; }
.s-big { margin: 0 0 10px; font-size: 40px; line-height: 1.15; }
.site .s-lead { max-width: 780px; margin: 0 0 36px; font-size: 20px; line-height: 1.5; color: var(--muted); }
.s-m { color: var(--muted); }
.s-band p, .s-plain p { font-size: 18px; line-height: 1.55; }
.site h3 { margin: 0 0 6px; font-size: 21px; line-height: 1.25; }

.s-vs { display: grid; grid-template-columns: minmax(0, 1fr) 250px 250px; gap: 40px; align-items: center; background: var(--surface); border: 1px solid var(--line); }
.s-vs > div > p { color: var(--muted); }
.s-mini { width: 210px; height: 380px; margin: 0 auto; padding: 7px; border-radius: 30px; background: #0e1411; }
.s-mini-screen { height: 100%; border-radius: 24px; overflow: hidden; }
.s-shrunk { display: flex; align-items: center; justify-content: center; background: #e8e4da; }
.s-sheet { width: 178px; height: 230px; display: flex; flex-direction: column; gap: 6px; padding: 8px 9px; background: #fffefb; color: #26262a; box-shadow: 0 1px 3px rgb(0 0 0 / 0.2); font-family: "Times New Roman", Times, serif; font-size: 5.5px; line-height: 1.3; }
.s-sheet b:first-child { font-size: 7px; padding-bottom: 3px; border-bottom: 1px solid #26262a; }
.s-sl { display: flex; gap: 3px; }
.s-sl i { flex: 1; border-bottom: 0.5px solid #26262a; }
.s-slend { margin-top: auto; }
.s-rebuilt { display: flex; flex-direction: column; gap: 9px; padding: 14px 12px; background: #f7f4ec; color: #1f2a24; }
.s-rebuilt b { font-size: 14px; }
.s-ml { font-size: 11.5px; font-weight: 700; }
.s-mbox { display: flex; align-items: center; height: 34px; padding: 0 8px; border-radius: 8px; border: 1.5px solid #878170; background: #fffdf8; font-size: 13px; }
.s-mseg { display: flex; height: 34px; border-radius: 8px; overflow: hidden; border: 1.5px solid #878170; font-size: 13px; font-weight: 700; }
.s-mseg span { flex: 1; display: flex; align-items: center; justify-content: center; background: #fffdf8; }
.s-mseg .s-on { background: #245c45; color: #ffffff; }
.s-msend { display: flex; align-items: center; justify-content: center; height: 38px; margin-top: auto; border-radius: 9px; background: #245c45; color: #ffffff; font-size: 13px; font-weight: 700; }
.site .s-cap { margin-top: 12px; text-align: center; font-size: 16px; font-weight: 700; }
.s-cap span { display: block; font-weight: 400; color: var(--muted); font-size: 15px; }

.s-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
.s-grid2 p { color: var(--muted); }
.s-item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; }

.s-dark { background: #1d3a2d; color: #fffdf8; }
.s-dark .s-lead { color: #e9e6df; }
.s-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin: 0; padding: 0; list-style: none; }
.s-steps h3 { font-size: 22px; }
.s-steps p { font-size: 17px; line-height: 1.5; color: #d9d3c3; }
.site .s-num { margin-bottom: 6px; font-size: 16px; font-weight: 700; color: #d2c4a5; }
.s-pic { position: relative; display: flex; align-items: center; justify-content: center; height: 200px; margin-bottom: 18px; border-radius: 16px; background: #2a4a3b; overflow: hidden; }
.s-clip { position: relative; width: 150px; height: 176px; transform: rotate(-4deg); border-radius: 10px; background: #b99a6b; box-shadow: 0 10px 22px rgb(0 0 0 / 0.35); }
.s-clip-top { position: absolute; left: 50px; top: -8px; width: 50px; height: 18px; border-radius: 5px; background: #8c949a; }
.s-clip-sheet { position: absolute; inset: 16px 10px 10px; display: flex; flex-direction: column; gap: 9px; padding: 10px; background: #fffefb; }
.s-clip-sheet i { display: block; height: 1px; margin-top: 8px; background: #26262a; }
.s-clip-sheet i:first-child { height: 6px; margin-top: 0; }
.s-clip-sheet .s-w70 { width: 70%; }
.s-clip-sheet .s-w60 { width: 60%; }
.s-tiny { width: 114px; height: 172px; padding: 5px; border-radius: 20px; background: #0e1411; box-shadow: 0 10px 22px rgb(0 0 0 / 0.35); }
.s-tiny-screen { display: flex; flex-direction: column; gap: 7px; height: 100%; padding: 12px 9px; border-radius: 16px; background: #f7f4ec; }
.s-tiny-screen i { display: block; }
.s-tiny-title { height: 6px; width: 75%; border-radius: 3px; background: #1f2a24; }
.s-tiny-box { height: 17px; border-radius: 5px; border: 1.5px solid #878170; background: #fffdf8; }
.s-tiny-seg { display: flex; height: 17px; border-radius: 5px; overflow: hidden; border: 1.5px solid #878170; }
.s-tiny-seg b { flex: 1; background: #fffdf8; }
.s-tiny-seg b.s-on { background: #245c45; }
.s-tiny-send { height: 20px; margin-top: auto; border-radius: 6px; background: #245c45; }
.s-pic-chip { position: absolute; right: 64px; top: 28px; display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: #d2c4a5; color: #1f2a24; font-size: 14px; font-weight: 700; }
.s-dark .s-pic-chip .icon { color: #1f2a24; }
.s-pic-link { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 12px; background: #fffdf8; color: #1f2a24; font-size: 18px; font-weight: 700; box-shadow: 0 10px 22px rgb(0 0 0 / 0.35); }
.s-dark .s-pic-link .icon { color: #245c45; }

.s-same { background: var(--soft); }
.s-same .s-big { margin-bottom: 28px; }
.s-same .s-ic { background: var(--surface); }
.s-limit { display: flex; gap: 12px; align-items: flex-start; margin-top: 32px; padding: 16px 20px; border-radius: 12px; background: var(--surface); }
.site .s-limit { font-size: 17px; line-height: 1.5; }
.s-limit > .icon { margin-top: 2px; color: var(--warn-ink); }

.s-eq { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; background: var(--surface); border: 1px solid var(--line); }
.site .s-quote { margin: 0 0 16px; font-size: 40px; line-height: 1.15; }
.site .s-eq p { margin: 0 0 12px; font-size: 19px; line-height: 1.6; }
.s-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.s-ways li { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px; background: var(--bg); font-size: 18px; font-weight: 700; }
.s-ways .icon { width: 26px; height: 26px; color: var(--accent); }

.s-priv { background: var(--surface); border: 1px solid var(--line); }
.s-priv .s-lead { margin-bottom: 32px; }
.s-privgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.s-points { margin: 0; padding: 0; list-style: none; }
.s-points li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; padding: 11px 0; font-size: 18px; line-height: 1.5; }
.s-points .icon { width: 24px; height: 24px; margin-top: 2px; color: var(--accent); }
.site .s-more { margin-top: 18px; }
.s-whobox { padding: 24px 28px; border-radius: 16px; background: var(--bg); }
.s-whobox h3 { margin-bottom: 10px; }
.s-whorows { margin: 0; }
.s-wr { display: grid; grid-template-columns: 120px 150px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.s-wr:last-child { border-bottom: 1px solid var(--line); }
.s-wr dt { font-size: 17px; font-weight: 700; }
.s-wr dd { margin: 0; }
.s-wtext { font-size: 16px; line-height: 1.5; color: var(--muted); }
.s-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 0 12px; border-radius: 999px; font-size: 15px; font-weight: 700; }
.s-yes { background: #245c45; color: #ffffff; }
.s-no { background: #a3261b; color: #ffffff; }
.s-rec { background: #e9b949; color: #3a2a05; }

.s-price { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.s-pc { padding: 32px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.site .s-amt { margin: 4px 0 8px; font-size: 52px; font-weight: 700; line-height: 1.05; }
.s-amt span { font-size: 20px; font-weight: 400; }
.s-pc > .s-m { margin-bottom: 18px; }
.s-ticks { margin: 0; padding: 0; list-style: none; }
.s-tick { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: 18px; line-height: 1.45; }
.s-tick .icon { margin-top: 3px; color: var(--accent); stroke-width: 3; }
.s-refund { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; padding: 12px 14px; border-radius: 12px; background: var(--soft); }
.s-refund .icon { margin-top: 3px; color: var(--accent); }

.s-faq { padding-top: 16px; }
.s-faq h3 { font-size: 20px; }

.s-close { position: relative; text-align: center; color: #fffdf8; background: linear-gradient(rgba(23, 46, 36, 0.78), rgba(23, 46, 36, 0.78)), url("/assets/site/santis.jpg?v=ac7932f0c8") center 40% / cover no-repeat, #1d3a2d; }
.site .s-close h2 { margin: 0 0 12px; font-size: 52px; line-height: 1.15; }
.s-close .s-lead { margin: 0 auto 28px; color: #e9e6df; }

.s-foot { display: flex; flex-direction: column; gap: 14px; margin-top: 64px; padding: 28px 40px; border-top: 1px solid var(--line); background: var(--surface); }
.s-foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 16px; }
.site .s-foot p { font-size: 16px; color: var(--muted); }
.s-foot strong { color: var(--ink); }

/* The legal pages: a short photo header, then text at a reading width. */
.s-hero-short { padding: 24px 40px 40px; }
.s-hero-short h1 { font-size: 40px; }
.s-legal { max-width: 46rem; padding-top: 40px; overflow-wrap: anywhere; }
.site .s-legal p, .s-legal li { font-size: 18px; line-height: 1.65; }
.site .s-legal p { margin: 0 0 16px; }
.s-legal h2 { margin: 36px 0 10px; font-size: 26px; line-height: 1.2; }
.site .s-legal h3 { margin: 24px 0 8px; }
.s-legal ul, .s-legal ol { margin: 0 0 16px; padding-left: 24px; }
.s-legal li { margin: 6px 0; }
.s-legal-list { list-style: none; padding: 0; }
.s-legal-list li { padding: 14px 0; border-top: 1px solid var(--line); font-size: 20px; }

/* The trial request page (boards "Trial page, desktop" and "Trial page, phone, and after sending"). */
.s-hero-trial { padding-top: 40px; padding-bottom: 52px; }
.s-trial { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: start; padding-top: 48px; }
.s-card { padding: 36px 40px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.site .s-card h2 { margin: 0 0 8px; font-size: 28px; line-height: 1.2; }
.site .s-card .s-lead { margin-bottom: 26px; font-size: 18px; line-height: 1.6; }
.s-card fieldset { margin: 0; }
.site .s-group { padding: 0; margin: 8px 0 0; font-size: 15px; font-weight: 700; letter-spacing: 0.4px; color: var(--muted); text-transform: uppercase; }
.s-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; margin: 14px 0 26px; }
.site .s-field label { margin: 0 0 7px; font-size: 17px; }
.site .s-field input { max-width: none; min-height: 50px; }
.s-field .field-error { font-size: 15px; }
.s-opt { font-weight: 400; color: var(--muted); }
.site .s-note { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--soft); font-size: 16px; line-height: 1.55; }
.s-note > .icon { margin-top: 3px; color: var(--warn-ink); }
.s-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin-top: 24px; }
.site .s-actions .s-btn { margin: 0; min-height: 56px; border: 0; cursor: pointer; font: inherit; font-size: 19px; font-weight: 700; }
.s-side { display: flex; flex-direction: column; gap: 24px; }
.s-next { display: flex; flex-direction: column; gap: 22px; margin: 18px 0 0; padding: 0; list-style: none; }
.s-next li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
.s-n { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 17px; }
.site .s-next h3 { margin: 0 0 6px; font-size: 20px; }
.site .s-next p { font-size: 17px; line-height: 1.6; color: var(--muted); }
.s-pricecard { background: #1d3a2d; color: #fffdf8; border-color: transparent; }
.site .s-pricecard .s-fine { color: #d2c4a5; }
.site .s-pricecard .s-amt { margin: 6px 0 14px; font-size: 40px; }
.s-pricecard .s-amt span { font-size: 19px; }
.s-pricecard .s-tick { color: #e9e6df; font-size: 17px; }
.s-pricecard .s-tick .icon { color: #d2c4a5; }
.s-pricecard strong { color: #fffdf8; }
.site .s-ask { font-size: 17px; line-height: 1.6; color: var(--muted); }
.s-done { max-width: 40rem; padding-top: 48px; padding-bottom: 16px; }
.s-okmark { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--soft); color: var(--accent); }
.s-okmark .icon { width: 32px; height: 32px; }
.site .s-done h1 { margin: 20px 0 14px; font-size: 34px; line-height: 1.2; }
.site .s-done p { margin: 0 0 14px; font-size: 18px; line-height: 1.6; }

/* Between a laptop and a phone: the demo and the side-by-side sections narrow first. */
@media (max-width: 1100px) {
  .s-vs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .s-vs > div:first-child { grid-column: 1 / -1; }
  .s-eq, .s-privgrid { grid-template-columns: minmax(0, 1fr); }
  .s-demo { grid-template-columns: 296px 52px minmax(0, 470px); column-gap: 16px; }
  .s-mail, .s-paper { width: auto; margin-left: 0; }
}

/* Phones (the board "Home page, phone width", 390 px). */
@media (max-width: 760px) {
  body.site { font-size: 17px; }
  .s-wrap { padding: 0 16px; }
  .s-photo { background-image: linear-gradient(rgba(23, 46, 36, 0.78), rgba(23, 46, 36, 0.78)), url("/assets/site/santis-900.jpg?v=8b3afa4698"); background-position: center 40%; }
  .s-top { padding: 14px 16px; gap: 10px; }
  .s-logo { font-size: 18px; gap: 8px; }
  .s-logo img { width: 36px; height: 36px; }
  .s-nav { gap: 8px; }
  .s-navlink { display: none; }
  .s-btn.s-small { min-height: 40px; padding: 0 14px; font-size: 15px; }
  .s-menu { display: block; }
  .s-hero { padding: 28px 16px 34px; }
  .s-hero-short { padding: 12px 16px 28px; }
  .s-hero-short h1 { font-size: 30px; }
  .s-legal { padding-top: 28px; }
  .s-hero-trial { padding: 28px 16px 34px; }
  .s-trial { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 20px; }
  .s-card { padding: 26px 18px; border-radius: 18px; }
  .site .s-card h2 { font-size: 24px; }
  .site .s-card .s-lead { font-size: 16.5px; }
  .s-fields { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .site .s-actions .s-btn { width: 100%; }
  .site .s-next p { font-size: 16px; }
  .site .s-pricecard .s-amt { font-size: 34px; }
  .s-done { padding-top: 32px; }
  .site .s-done h1 { font-size: 28px; }
  .site .s-legal p, .s-legal li { font-size: 16.5px; }
  .s-legal h2 { font-size: 22px; }
  .s-hero h1 { font-size: 31px; line-height: 1.24; letter-spacing: -0.3px; }
  .s-sub { margin-top: 18px; font-size: 17px; line-height: 1.65; }
  .s-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 26px; text-align: left; }
  .s-vchip { display: flex; min-height: 52px; height: 100%; padding: 8px 12px; border-radius: 14px; font-size: 14.5px; line-height: 1.35; }
  .s-wide { display: none; }
  .s-narrow { display: inline; }
  .s-stage { background: var(--bg); padding-top: 28px; }
  .s-demo { grid-template-columns: minmax(0, 1fr); grid-template-areas: "cap1" "dev" "arrow" "cap2" "mail" "paper"; grid-template-rows: none; row-gap: 12px; }
  .s-dcap { display: flex; align-items: center; gap: 10px; margin: 0; text-align: left; font-size: 16px; }
  .s-dcap1 { margin: 0; }
  .s-dnum { display: flex; width: 28px; height: 28px; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 14px; }
  /* A visitor on a phone is already holding one: the form shows as itself, not inside a drawing of a phone. */
  .s-device { height: auto; padding: 0; border-radius: 18px; background: none; border: 1px solid var(--line); box-shadow: 0 10px 24px rgb(31 42 36 / 0.12); }
  .s-screen { border-radius: 18px; }
  .site .s-dfield input, .site .s-dseg button { min-height: 44px; height: 44px; font-size: 16px; }
  .site .s-dsend { margin-top: 4px; }
  .s-dagain { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-darrow { justify-self: center; margin: 0; color: var(--accent); }
  .s-darrow .icon-arrow { display: none; }
  .s-darrow .icon-arrow-down { display: block; width: 28px; height: 40px; }
  .s-mail { margin: 0; padding: 12px 14px; border-radius: 14px; box-shadow: 0 8px 20px rgb(31 42 36 / 0.1); }
  .s-mail-ic { width: 38px; height: 38px; border-radius: 10px; }
  .s-mail-subject { font-size: 15px; }
  .s-mail-text { display: none; }
  .s-paper { width: auto; min-height: 0; margin: 0; padding: 16px 16px 12px; gap: 8px; font-size: 10.5px; box-shadow: 0 10px 24px rgb(31 42 36 / 0.14); border: 1px solid var(--line); }
  .s-phead div strong { font-size: 13px; }
  .s-phead div span { font-size: 9px; }
  .s-phead > strong { font-size: 9.5px; }
  .s-pval { min-height: 17px; font-size: 12px; }
  .s-pshort { flex-basis: 74px; }
  .s-pdate { flex-basis: 68px; font-size: 11px; }
  .s-pscript { min-height: 26px; font-size: 21px; line-height: 26px; }
  .s-pbox { width: 12px; height: 12px; font-size: 10px; }
  .s-psec, .s-psmall { font-size: 9.5px; }
  .s-poffice { gap: 6px; font-size: 9px; }
  .s-cta { padding: 20px 16px 0; gap: 8px; }
  .s-btn { padding: 0 16px; }
  .s-cta .s-btn { width: 100%; min-height: 52px; font-size: 18px; }
  .site .s-fine { font-size: 14.5px; line-height: 1.55; }
  .s-three { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-top: 56px; padding-bottom: 0; }
  .s-three h2 { font-size: 19px; line-height: 1.3; margin-bottom: 7px; }
  .s-three p, .s-band p, .s-plain p { font-size: 16.5px; line-height: 1.65; }
  .s-ic { width: 44px; height: 44px; margin-bottom: 10px; border-radius: 12px; }
  .s-band { margin-top: 56px; padding: 28px 18px; border-radius: 18px; }
  .s-plain { margin-top: 56px; }
  .s-big, .site .s-quote { font-size: 26px; line-height: 1.25; margin-bottom: 12px; }
  .site .s-lead { font-size: 17px; line-height: 1.6; margin-bottom: 26px; }
  .site h3 { font-size: 19px; line-height: 1.3; margin-bottom: 7px; }
  .s-vs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .s-mini { width: 100%; max-width: 160px; height: 290px; padding: 5px; border-radius: 24px; }
  .s-mini-screen { border-radius: 19px; }
  .s-sheet { width: 136px; height: 176px; gap: 4px; padding: 6px 7px; font-size: 4.2px; }
  .s-sheet b:first-child { font-size: 5.4px; }
  .s-rebuilt { gap: 7px; padding: 10px 9px; }
  .s-rebuilt b { font-size: 11px; }
  .s-ml { font-size: 9px; }
  .s-mbox, .s-mseg { height: 26px; font-size: 10px; }
  .s-msend { height: 30px; font-size: 10px; }
  .site .s-cap { margin-top: 8px; font-size: 14px; }
  .s-cap span { font-size: 13px; }
  .s-grid2 { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .s-item { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
  .s-ic.s-ic-sm { width: 40px; height: 40px; border-radius: 11px; }
  .s-steps { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .s-steps h3 { font-size: 19px; }
  .site .s-num { font-size: 14px; }
  .s-pic { height: 150px; margin-bottom: 10px; border-radius: 14px; }
  .s-pic-chip { right: 24px; top: 18px; }
  .s-pic-link { padding: 12px 14px; font-size: 15px; }
  .s-same .s-big { margin-bottom: 22px; }
  .site .s-limit { margin-top: 28px; padding: 16px; font-size: 15.5px; line-height: 1.6; }
  .s-eq { gap: 22px; }
  .site .s-eq p { font-size: 16.5px; }
  .s-ways { gap: 10px; }
  .s-ways li { gap: 10px; padding: 12px; border-radius: 12px; font-size: 15.5px; }
  .s-points li { grid-template-columns: 24px minmax(0, 1fr); padding: 10px 0; font-size: 16.5px; line-height: 1.6; }
  .s-whobox { margin-top: 24px; padding: 18px 16px 6px; border-radius: 14px; }
  .s-wr { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 14px 0; }
  .s-wr:last-child { border-bottom: 0; }
  .s-wtext { grid-column: 1 / -1; font-size: 15px; line-height: 1.6; }
  .s-pill { min-height: 28px; padding: 0 11px; font-size: 14px; }
  .s-price { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .s-pc { margin-top: 20px; padding: 26px 18px; border-radius: 16px; }
  .site .s-amt { font-size: 38px; margin: 2px 0 8px; }
  .s-pc .s-btn { width: 100%; min-height: 52px; font-size: 18px; }
  .s-tick { font-size: 16.5px; line-height: 1.55; }
  .s-faq .s-grid2 { gap: 26px; }
  .s-close { padding: 38px 18px; }
  .site .s-close h2 { font-size: 28px; }
  .s-close .s-btn { width: 100%; min-height: 52px; font-size: 18px; }
  .s-foot { margin-top: 56px; padding: 22px 16px 28px; gap: 12px; }
  .s-foot-links { gap: 8px 18px; font-size: 15px; }
  .site .s-foot p { font-size: 15px; line-height: 1.6; }
}
