/* sophie.css — the sophie.tools style system (SOP-1351).
 *
 * The one place the site's look is defined: the homepage (index.html) and
 * every markdown page (site/*.md through site/_layout.html) link this file
 * and carry no style of their own. Change a colour or a size here and every
 * page that links it changes with it.
 *
 * Sections, in order: fonts, tokens, base, the page frame (header, footer,
 * sections), type, components, the homepage's pieces, .doc, the
 * markdown page, and the blog.
 */

/* ---- Fonts (self-hosted: no visitor's IP goes to Google) ---- */
@font-face { font-family: 'Karla'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/karla-2.woff2) format('woff2'); }
@font-face { font-family: 'Karla'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/karla-2.woff2) format('woff2'); }
@font-face { font-family: 'Karla'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/karla-2.woff2) format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 300 500; font-display: swap; src: url(/fonts/newsreader-3.woff2) format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 300 600; font-display: swap; src: url(/fonts/newsreader-6.woff2) format('woff2'); }

/* ---- Tokens ---- */
:root {
  /* Surfaces */
  --ink: #1C141B;           /* the page */
  --plum: #6B2D4F;          /* the accent surface: Sophie's own voice, the closing band */
  --surface: #241A23;       /* a raised panel on the page */
  --well: #211820;          /* inside a text box or a form being filled */
  --surface-press: #2A1E28; /* a pressed or disabled control */
  /* Text, brightest first */
  --text-bright: #F6EDF1;   /* headings */
  --text: #EDE4E8;          /* default */
  --text-body: #CFC6BD;     /* running text */
  --text-muted: #9A8F86;    /* nav, intros, labels */
  --text-faint: #8A8078;    /* captions, fine print */
  --numeral: #54423A;       /* section numbers */
  --on-plum: #FBF6EE;       /* text on plum */
  --on-plum-label: #E8C88A; /* labels on plum */
  --selection-text: #FCF8F4;
  --text-label: #B6ACA3;    /* form labels */
  --placeholder: #6E625A;   /* input placeholders */
  --error: #F0A79B;         /* a field's error */
  --rule-on-plum: #8A4A6E;  /* rules on plum */
  /* Lines */
  --rule: #3A2B39;
  --rule-strong: #524438;
  /* Accent */
  --brass: #D9A441;
  --brass-light: #EFC271;
  /* Type */
  --serif: Newsreader, Georgia, serif;
  --sans: Karla, system-ui, sans-serif;
  /* Space */
  --gutter: clamp(18px, 5vw, 64px);      /* left and right of every band */
  --band: clamp(44px, 7vw, 96px);        /* top and bottom of a section */
  --gap-cols: clamp(24px, 4vw, 56px);    /* between columns */
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--sans); }
a { color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brass-light); }
::selection { background: var(--plum); color: var(--selection-text); }
input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
::placeholder { color: var(--placeholder); }
textarea { font: inherit; font-size: 17px; padding: 12px 0; width: 100%; border: none; border-bottom: 1px solid var(--rule-strong); background: transparent; color: var(--text-bright); resize: vertical; min-height: 4.5em; }
strong { font-weight: 600; color: var(--text-bright); }
section[id] { scroll-margin-top: 72px; }

/* ---- The page frame ---- */
.site { max-width: 100%; overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column; }
.site > main { flex: 1 0 auto; }

.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: baseline; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: 18px var(--gutter); background: var(--ink); border-bottom: 1px solid var(--rule); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand img { display: block; height: 30px; width: auto; }
.brand span { font-family: var(--serif); font-size: 25px; font-weight: 500; letter-spacing: -0.01em; }
.site-nav { display: flex; align-items: baseline; gap: clamp(12px, 2.2vw, 26px); flex-wrap: wrap; font-size: 13px; letter-spacing: 0.09em; text-transform: uppercase; }
.nav-muted { color: var(--text-muted); text-decoration: none; }
.nav-muted:hover { color: var(--text); }
.nav-accent { color: var(--brass); text-decoration: none; }
.nav-accent:hover { color: var(--brass-light); }

.site-footer { padding: clamp(36px, 5vw, 56px) var(--gutter) 48px; display: flex; flex-wrap: wrap; gap: 28px 48px; justify-content: space-between; align-items: flex-start; }
.site-footer .about { display: flex; flex-direction: column; gap: 8px; }
.site-footer .mark { display: flex; align-items: center; gap: 9px; }
.site-footer .mark img { display: block; height: 26px; width: auto; opacity: 0.85; }
.site-footer .mark span { font-family: var(--serif); font-size: 22px; color: var(--text-bright); }
.site-footer .fine { font-size: 14.5px; line-height: 1.6; color: var(--text-faint); }
.site-footer .fine.measure { max-width: 46ch; }
.site-footer nav { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }

/* A section: a full-width band, ruled above, with its number in a left column. */
.section { padding: var(--band) var(--gutter); }
.section.ruled { border-top: 1px solid var(--rule); }
.section.plum { background: var(--plum); }
.section.plum .h-sub { color: var(--on-plum); }
.section-row { display: flex; gap: clamp(0px, 4vw, 64px); }
.section-num { flex: 0 0 auto; width: clamp(0px, 8vw, 104px); overflow: hidden; }
.section-num span { display: block; font-size: clamp(22px, 3vw, 48px); font-family: var(--serif); color: var(--numeral); line-height: 1; }
.section-body { flex: 1 1 auto; min-width: 0; }

/* ---- Type ---- */
.eyebrow { margin: 0; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint); }
.eyebrow.brass { color: var(--brass); }
.eyebrow.on-plum { color: var(--on-plum-label); }
.h-display { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(64px, 17vw, 232px); line-height: 0.86; letter-spacing: -0.045em; color: var(--text-bright); text-wrap: balance; }
.h-section { margin: 0 0 clamp(28px, 4vw, 48px); font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 6.4vw, 88px); line-height: 1.02; letter-spacing: -0.035em; color: var(--text-bright); text-wrap: balance; }
.h-page { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 10vw, 120px); line-height: 0.95; letter-spacing: -0.045em; color: var(--text-bright); }
.h-page em, .h-section em { font-style: italic; color: var(--brass); }
.h-sub { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 4vw, 42px); line-height: 1.1; letter-spacing: -0.02em; color: var(--text-bright); }
.h-item { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.2; letter-spacing: -0.015em; color: var(--text-bright); }
.h-item.large { font-size: clamp(26px, 3vw, 38px); line-height: 1.15; letter-spacing: -0.02em; max-width: 16ch; text-wrap: balance; }
.h-label { margin: 0; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
.h-label.brass { color: var(--brass); }
.lede.top { margin-top: 28px; }
.lede { margin: 0; font-size: clamp(17px, 1.9vw, 21px); line-height: 1.6; color: var(--text-body); text-wrap: pretty; }
.intro { margin: 0 0 clamp(32px, 5vw, 56px); max-width: 62ch; font-size: 17px; line-height: 1.65; color: var(--text-muted); text-wrap: pretty; }
.pull { margin: 0; font-family: var(--serif); font-size: clamp(20px, 2.3vw, 26px); line-height: 1.35; color: var(--brass); text-wrap: pretty; }
.pull.ruled { padding-top: 20px; border-top: 1px solid var(--rule); }
/* A link onward from a section, e.g. to /features. */
.more { margin: clamp(28px, 4vw, 44px) 0 0; font-size: 13px; letter-spacing: 0.09em; text-transform: uppercase; }
.more a { color: var(--brass); text-decoration: none; }
.more a:hover { color: var(--brass-light); }
.caption { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text-faint); text-wrap: pretty; }
.fineprint { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--text-faint); text-wrap: pretty; }
.bright { color: var(--text-bright); }
.h-section.close { margin-bottom: 24px; }
.h-section.loose { margin-bottom: clamp(32px, 5vw, 64px); }
.h-section.flush { margin: 0; }
/* Heading measures: where a big heading breaks its lines. */
.ch-10 { max-width: 10ch; } .ch-14 { max-width: 14ch; } .ch-16 { max-width: 16ch; } .ch-17 { max-width: 17ch; } .ch-18 { max-width: 18ch; }

/* Running text: a column of paragraphs. */
.prose { display: flex; flex-direction: column; gap: 20px; font-size: 17px; line-height: 1.65; color: var(--text-body); }
.prose.tight { gap: 16px; font-size: 16.5px; max-width: 58ch; }
.prose p { margin: 0; text-wrap: pretty; }
.measure { max-width: 56ch; }

/* Layout */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: var(--gap-cols); align-items: start; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack.s10 { gap: 10px; }
.stack.s14 { gap: 14px; }
.stack.s16 { gap: 16px; }
.stack.s0 { gap: 0; }
.stack.narrow { max-width: 460px; }
.cols.wide { gap: clamp(24px, 5vw, 72px); }

/* ---- Components ---- */
.btn-brass, .notice .button { display: inline-block; padding: 16px 32px; background: var(--brass); color: var(--ink); font-size: 16px; font-weight: 600; letter-spacing: 0.01em; text-decoration: none; border: none; cursor: pointer; font-family: inherit; }
.btn-brass:hover, .notice .button:hover { background: var(--brass-light); color: var(--ink); }
.btn-plum { display: inline-block; padding: 16px 32px; background: var(--on-plum); color: var(--plum); font-size: 16px; font-weight: 600; text-decoration: none; }
.btn-plum:hover { background: var(--on-plum-label); color: var(--plum); }

/* A card: a quotation shown as a message or a calendar line. */
.card { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--rule); }
.card.plum { background: var(--plum); border: none; }
.card .quote { margin: 0; font-family: var(--serif); font-size: clamp(20px, 2.3vw, 27px); line-height: 1.35; letter-spacing: -0.01em; color: var(--text-faint); text-wrap: pretty; }
.card.plum .quote { color: var(--on-plum); }

/* A text message from Sophie. */
.bubble { padding: 22px 24px; background: var(--plum); border-radius: 18px 18px 18px 2px; }
.bubble .eyebrow { margin: 0 0 10px; letter-spacing: 0.16em; color: var(--on-plum-label); }
.bubble p:last-child { margin: 0; font-size: 17.5px; line-height: 1.6; color: var(--on-plum); text-wrap: pretty; }

/* A list of lines between rules. */
.ruled-list { margin: 0; padding: 0; list-style: none; }
.ruled-list li { padding: 16px 0; border-top: 1px solid var(--rule); font-family: var(--serif); font-size: clamp(20px, 2.4vw, 28px); line-height: 1.3; color: var(--text-bright); text-wrap: pretty; }
.ruled-list li:last-child { border-bottom: 1px solid var(--rule); }
.ruled-list.lead li:first-child { border-top-color: var(--brass); }
.ruled-list.on-plum li { font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--on-plum); border-color: var(--rule-on-plum); }
.ruled-list.lead.on-plum li:first-child { border-top-color: var(--on-plum-label); }

/* A list of short entries. */
.entries { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.entries li { font-size: 16.5px; line-height: 1.6; color: var(--text-body); text-wrap: pretty; }
.entries a.name { color: var(--brass); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--rule-strong); }
.entries sup { font-size: 11px; letter-spacing: 0.06em; margin-left: 3px; }
.entries sup a { color: var(--text-muted); text-decoration: none; border-bottom: 1px solid var(--rule); }

/* A titled item opening with a rule (brass for the first, the lead). */
.item { padding: clamp(24px, 3vw, 40px) 0; border-top: 1px solid var(--rule); }
.item.lead { border-top-color: var(--brass); }
.item:last-of-type { border-bottom: 1px solid var(--rule); }
.item.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(16px, 3vw, 48px); align-items: start; }
.item.row .eyebrow { margin: 0 0 12px; }
.item.note { display: flex; flex-direction: column; gap: 8px; padding: 20px 0; }
.item.note p { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--text-body); max-width: 52ch; text-wrap: pretty; }
.item.card-top { display: flex; flex-direction: column; gap: 16px; padding: 22px 0 0; }
.item.card-top:last-of-type { border-bottom: none; }

/* A form field: a small uppercase label over an underlined input. */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 400; color: var(--text-label); margin-bottom: 10px; }
.field input { font: inherit; font-size: 17px; padding: 12px 0; width: 100%; border: none; border-bottom: 1px solid var(--rule-strong); border-radius: 0; background: transparent; color: var(--text-bright); }
button.btn-brass { border-radius: 0; }

/* A boxed aside with a brass edge: a form, or what matters most on a page. */
.callout { margin: var(--band) 0 0; padding: 28px 30px; max-width: 72ch; border: 1px solid var(--rule); border-left: 3px solid var(--brass); }
.callout h2 { margin-top: 0; padding-top: 0; border-top: none; }
.callout h2::before { content: none; }
.callout p:last-child { margin-bottom: 0; }

/* A short page with one message: thank-you, back soon, billing returns. */
.notice { width: 100%; max-width: 34rem; margin: 0 auto; padding: var(--band) var(--gutter); text-align: center; }
.notice h1 { margin: 0 0 20px; font-family: var(--serif); font-weight: 300; font-size: clamp(38px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.035em; color: var(--text-bright); }
.notice p { margin: 0 0 14px; font-size: 17px; line-height: 1.6; color: var(--text-body); }
.notice .btn-brass, .notice .button { margin-top: 20px; }

/* ---- The homepage's pieces ---- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 9vw, 104px) var(--gutter) clamp(44px, 8vw, 96px); }
.hero > * { position: relative; z-index: 1; }
.hero .watermark { position: absolute; right: -6vw; bottom: -4vw; width: clamp(240px, 34vw, 560px); opacity: 0.22; pointer-events: none; z-index: 0; }
.hero .eyebrow { margin: 0 0 clamp(20px, 3vw, 34px); font-size: 12.5px; letter-spacing: 0.2em; color: var(--text-muted); }
.hero .h-display em { font-style: italic; color: var(--brass); margin-left: clamp(0px, 9vw, 160px); }
.hero-foot { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 72px); margin: clamp(36px, 6vw, 72px) 0 0; padding-top: clamp(20px, 3vw, 32px); border-top: 1px solid var(--rule); }
.hero-foot .lede { flex: 1 1 420px; max-width: 58ch; }
.hero-foot .cta { flex: 0 1 320px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.hero-foot .cta span { font-size: 15px; line-height: 1.5; color: var(--text-muted); text-wrap: pretty; }
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(20px, 3vw, 40px); margin: 0 0 clamp(44px, 7vw, 84px); }
.compare .card.plum { margin-top: clamp(0px, 3vw, 44px); }
.closing { background: var(--plum); padding: clamp(52px, 9vw, 116px) var(--gutter); }
.closing p { margin: 0 0 40px; max-width: 30ch; font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 4.6vw, 60px); line-height: 1.18; letter-spacing: -0.03em; color: var(--on-plum); text-wrap: pretty; }

/* ---- The signup and join flows (site/signup.html, site/join.html) ----
 * Their pages are shells; internal/signupweb streams each step into #step
 * using these .su-* classes. Was one <style> block per page (SOP-895,
 * SOP-790), nearly identical; now one copy. */
body.flow { font-size: 17px; line-height: 1.5; overflow-x: hidden; overflow-wrap: anywhere; }
@keyframes sophiePulse { 0% { transform: scale(1); opacity: .9 } 70% { transform: scale(2.6); opacity: 0 } 100% { transform: scale(2.6); opacity: 0 } }

.su-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px clamp(16px, 5vw, 64px); border-bottom: 1px solid var(--rule); }
.su-brand { display: flex; align-items: center; gap: 10px; }
.su-brand img { display: block; height: 26px; width: auto; }
.su-brand span { font-family: 'Newsreader', Georgia, serif; font-size: 22px; font-weight: 500; color: var(--text); }
.su-stepof { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
.su-progress { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; padding: 0 clamp(16px, 5vw, 64px); }
.su-progress span { height: 3px; background: var(--rule); }
.su-progress span.on { background: var(--brass); }

.su-main { max-width: 760px; margin: 0 auto; padding: clamp(40px, 8vw, 96px) clamp(16px, 5vw, 64px) 64px; display: flex; flex-direction: column; gap: 24px; }
.su-main.su-wide { max-width: 1120px; padding-top: clamp(32px, 6vw, 72px); gap: clamp(32px, 5vw, 56px); }
.su-intro { display: flex; flex-direction: column; gap: 16px; }
.su-eyebrow { margin: 0; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); }
.su-h1 { margin: 0; font-family: 'Newsreader', Georgia, serif; font-weight: 300; font-size: clamp(40px, 8vw, 80px); line-height: 1.02; letter-spacing: -0.035em; color: var(--text-bright); text-wrap: balance; }
.su-lede { margin: 0; max-width: 56ch; font-size: 17px; line-height: 1.65; color: var(--text-body); text-wrap: pretty; }
.su-body { margin: 0; font-size: 18px; line-height: 1.6; color: var(--text-body); text-wrap: pretty; }
.su-body strong { font-weight: 600; color: var(--text-bright); }

.su-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; align-items: stretch; }
.su-card { display: flex; flex-direction: column; gap: 18px; padding: 24px; border: 1px solid var(--rule); background: transparent; cursor: pointer; }
.su-card:has(input:checked) { border-color: var(--brass); background: var(--surface); }
.su-card-soon { border-style: dashed; cursor: default; color: var(--text-faint); }
.su-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.su-card-name { font-family: 'Newsreader', Georgia, serif; font-size: 30px; letter-spacing: -0.02em; color: var(--text-bright); }
.su-card-soon .su-card-name, .su-card-soon .su-for, .su-card-soon .su-amt, .su-card-soon .su-per, .su-card-soon .su-feats { color: var(--text-faint); }
.su-card input[type=radio] { width: 20px; height: 20px; margin: 0; accent-color: var(--brass); }
.su-soon { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); background: var(--text-faint); padding: 4px 8px; }
.su-for { margin: 0; font-size: 16px; line-height: 1.5; color: var(--text-body); }
.su-price { margin: 0; display: flex; align-items: baseline; gap: 6px; }
.su-amt { font-family: 'Newsreader', Georgia, serif; font-size: 38px; color: var(--text-bright); }
.su-per { font-size: 15px; color: var(--text-muted); }
.su-feats { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; font-size: 15px; line-height: 1.45; color: var(--text-body); }
.su-feats li { padding: 9px 0; border-top: 1px solid var(--rule); }
.su-feats li:last-child { border-bottom: 1px solid var(--rule); }
.su-card:not(.su-card-soon) .su-extra { color: var(--on-plum-label); }

.su-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(28px, 5vw, 64px); align-items: start; padding-top: clamp(24px, 4vw, 40px); border-top: 1px solid var(--rule); }
.su-fields { display: flex; flex-direction: column; gap: 26px; }
.su-field label { display: block; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-label); margin-bottom: 10px; }
.su-field input { font: inherit; font-size: 17px; padding: 12px 0; width: 100%; border: none; border-bottom: 1px solid var(--rule-strong); background: transparent; color: var(--text-bright); border-radius: 0; }
.su-help { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.su-err { margin: 10px 0 0; font-size: 15px; line-height: 1.5; color: var(--error); text-wrap: pretty; }
.su-err:empty { display: none; }
.su-btn { align-self: flex-start; display: inline-block; padding: 16px 32px; background: var(--brass); color: var(--ink); font: inherit; font-size: 16px; font-weight: 600; letter-spacing: 0.01em; border: none; cursor: pointer; text-decoration: none; }
.su-btn:hover { background: var(--brass-light); color: var(--ink); }
.su-btn-ghost { align-self: flex-start; padding: 14px 24px; background: transparent; color: var(--text); border: 1px solid var(--rule-strong); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.su-btn-ghost:hover { border-color: var(--brass); }
.su-btn-ghost:disabled { color: var(--text-faint); border-color: var(--rule); cursor: not-allowed; }

.su-panel { display: flex; flex-direction: column; gap: 18px; padding: clamp(20px, 3vw, 28px); border: 1px solid var(--rule); }
.su-check { display: flex; gap: 12px; align-items: flex-start; }
.su-check input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brass); }
.su-check label { font-size: 14px; line-height: 1.55; color: var(--text-body); text-wrap: pretty; cursor: pointer; }
.su-fine { margin: 0; flex: 1 1 200px; font-size: 13.5px; line-height: 1.5; color: var(--text-faint); }

.su-notice { margin: 0; padding: 16px 18px; background: var(--plum); color: var(--on-plum); font-size: 16px; line-height: 1.55; text-wrap: pretty; }
.su-wait { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: 16px; color: var(--text-body); }
.su-pulse { position: relative; display: inline-block; width: 10px; height: 10px; flex: 0 0 auto; }
.su-pulse span { position: absolute; inset: 0; border-radius: 50%; background: var(--brass); }
.su-pulse span:first-child { animation: sophiePulse 1.8s ease-out infinite; }
.su-sends { display: flex; flex-direction: column; gap: 16px; }
.su-sends .su-err { margin: 0; font-size: 16px; line-height: 1.55; }
.su-resend-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.su-muted { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-muted); }
/* Step 3, owner details (SOP-902): the prototype's step-3 template. */
.su-own .su-sec { display: flex; flex-direction: column; gap: 24px; padding-top: 24px; border-top: 1px solid var(--rule); }
.su-rows { display: flex; flex-direction: column; gap: 28px; }
.su-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px clamp(24px, 4vw, 56px); align-items: end; }
.su-row-top { align-items: start; }
.su-why { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.su-opt { text-transform: none; letter-spacing: 0; color: var(--text-faint); }
.su-field select { font: inherit; font-size: 17px; padding: 12px 0; width: 100%; border: none; border-bottom: 1px solid var(--rule-strong); background: transparent; color: var(--text-bright); border-radius: 0; }
.su-field select option { background: var(--ink); color: var(--text-bright); }
.su-gender { margin: 0; padding: 0; border: none; min-width: 0; }
.su-gender legend { padding: 0; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-label); margin-bottom: 14px; }
.su-radios { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 16px; color: var(--text); }
.su-radio { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.su-radio input { width: 18px; height: 18px; margin: 0; accent-color: var(--brass); }
.su-own-plan { padding-top: 4px; }
.su-info { display: flex; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--rule); }
.su-info-i { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--brass); color: var(--brass); font-family: 'Newsreader', Georgia, serif; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.su-info p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-body); text-wrap: pretty; }
.su-bday { display: flex; gap: 14px; }
.su-bday select { flex: 2; min-width: 0; }
.su-bday input { flex: 1; min-width: 0; }
.su-tz { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule-strong); font-size: 17px; color: var(--text-bright); }
.su-tz a { font-size: 15px; }
.su-sec-head { display: flex; flex-direction: column; gap: 10px; }
.su-h2 { margin: 0; font-family: 'Newsreader', Georgia, serif; font-weight: 400; font-size: clamp(26px, 3.4vw, 34px); line-height: 1.15; letter-spacing: -0.02em; color: var(--text-bright); }
.su-sec-body { margin: 0; max-width: 60ch; font-size: 16px; line-height: 1.6; color: var(--text-body); text-wrap: pretty; }
.su-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px clamp(24px, 4vw, 56px); align-items: start; }
.su-own-q { margin-top: 18px; }
.su-phone { display: flex; align-items: baseline; gap: 10px; border-bottom: 1px solid var(--rule-strong); }
.su-phone input { flex: 1; min-width: 0; border-bottom: none; }
.su-cc { font-size: 17px; color: var(--text-muted); }
.su-verified { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass); }
.su-btn-brass { border-color: var(--brass); }
.su-btn-brass:hover { background: var(--surface-press); }
.su-codebox { display: flex; flex-direction: column; gap: 14px; padding: clamp(18px, 3vw, 26px); border: 1px solid var(--rule); }
.su-codebox .su-err { margin: 0; }
.su-body-s { margin: 0; font-size: 16px; line-height: 1.55; color: var(--text-body); text-wrap: pretty; }
.su-code-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 18px; }
.su-code-field { flex: 0 1 220px; }
.su-code-field input { font-family: ui-monospace, Menlo, monospace; font-size: 26px; letter-spacing: 0.35em; padding: 10px 0; }
.su-stopped { display: flex; align-items: flex-start; gap: 14px; padding: clamp(18px, 3vw, 26px); background: var(--plum); }
.su-stopped p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--on-plum); text-wrap: pretty; }
.su-stopped .su-pulse { margin-top: 7px; }
.su-stopped .su-pulse span { background: var(--on-plum); }
.su-limit { margin: 0; }
.su-check-lg label { font-size: 16px; line-height: 1.5; color: var(--text); }
.su-pay-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.su-pay-row .su-fine { flex: 1 1 220px; font-size: 14px; color: var(--text-muted); }
.su-btn:disabled { background: var(--surface-press); color: var(--text-faint); border: 1px solid var(--rule); cursor: not-allowed; }
.su-final .su-muted { margin-top: -8px; font-size: 14px; color: var(--text-faint); }
.su-testcard { display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 3vw, 28px); background: var(--plum); }
.su-testcard p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--on-plum); text-wrap: pretty; }
.su-testcard .su-testcard-label { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-plum-label); }
/* Step 4, payment (SOP-903): the prototype's pay template. */
.su-pay { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(32px, 6vw, 72px); align-items: start; }
.su-pay-main { display: flex; flex-direction: column; gap: 22px; }
.su-shows { display: flex; flex-direction: column; border: 1px solid var(--rule); padding: clamp(20px, 3vw, 28px); }
.su-shows .su-eyebrow { margin-bottom: 14px; }
.su-shows-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule); font-size: 16px; color: var(--text); }
.su-shows-row.su-credit { color: var(--on-plum-label); }
.su-shows .su-muted { margin-top: 16px; font-size: 14px; }
.su-eyebrow-brass { color: var(--brass); }

/* Step 5 (SOP-904): the prototype's step-5 Basic and Household owner box. */
.su-ob { max-width: 1040px; }
.su-have { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.su-have-cell { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 18px 0; }
.su-have-label { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
.su-have-text { font-size: 16px; line-height: 1.55; color: var(--text); }
.su-have-text strong { font-weight: 600; }
.su-ob-lede { display: flex; flex-direction: column; gap: 10px; max-width: 64ch; }
.su-ob-p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--text-body); text-wrap: pretty; }
.su-ob-p.su-ob-strong { color: var(--text-bright); }
.su-ob-box { display: flex; flex-direction: column; gap: 10px; }
.su-ob-label { font-family: 'Newsreader', Georgia, serif; font-size: 26px; letter-spacing: -0.015em; color: var(--text-bright); }
.su-ob-text { font: inherit; font-size: 17px; line-height: 1.6; padding: 14px 16px; width: 100%; border: 1px solid var(--rule-strong); border-radius: 0; background: var(--well); color: var(--text-bright); resize: vertical; }
.su-ob-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--text-faint); }
.su-ob-household { display: flex; flex-direction: column; gap: 18px; }
.su-owner-card { display: flex; flex-direction: column; gap: 14px; padding: clamp(18px, 3vw, 26px); background: var(--surface); border: 1px solid var(--rule); }
.su-owner-card .su-ob-text { font-size: 16.5px; padding: 12px 14px; background: var(--ink); }
.su-owner-card .su-ob-meta { font-size: 13px; }
.su-ob-conflict { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; padding: 12px 14px; border-left: 2px solid var(--error); }
.su-ob-conflict .su-err { margin: 0; }
.su-ob-newer-label { margin: 0; font-size: 13.5px; color: var(--text-faint); }
.su-ob-newer { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--text-muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.su-ob-use { align-self: flex-start; min-height: 44px; padding: 0 20px; background: transparent; color: var(--on-plum); border: 1px solid var(--on-plum-label); font: inherit; font-size: 15px; cursor: pointer; }
.su-owner-head { display: flex; align-items: center; gap: 14px; }
.su-avatar { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: var(--brass); color: var(--ink); font-weight: 600; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.su-owner-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.su-owner-name { font-family: 'Newsreader', Georgia, serif; font-size: 24px; letter-spacing: -0.01em; color: var(--text-bright); }
.su-owner-sub { font-size: 14px; color: var(--text-muted); }
.su-ob-label-s { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-label); }
.su-ob-finish { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding-top: 24px; border-top: 1px solid var(--rule); }
.su-ob-hint { margin: 0; flex: 1 1 240px; font-size: 14px; line-height: 1.5; color: var(--text-muted); text-wrap: pretty; }
/* Step 5, Household members (SOP-905): the prototype's household template's chips, member articles, add form and marks. */
.su-hh-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 20px; }
.su-hh-count { font-size: 15px; color: var(--text-body); }
.su-hh-count strong { font-weight: 600; color: var(--text-bright); }
.su-hh-beta { color: var(--on-plum-label); }
.su-mb-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0; border-top: 1px solid var(--brass); border-bottom: 1px solid var(--rule); }
.su-mb-chip { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--rule-strong); border-radius: 999px; font-size: 14.5px; color: var(--text-bright); }
.su-mb-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--plum); color: var(--on-plum); font-weight: 600; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.su-mb-dot.su-mb-dot-owner { background: var(--brass); color: var(--ink); }
.su-mb-you { color: var(--text-muted); }
.su-mb-plus { color: var(--on-plum-label); }
.su-mb-card { display: flex; flex-direction: column; gap: 14px; padding: clamp(18px, 3vw, 26px); border: 1px solid var(--rule); }
.su-mb-card.su-mb-card-extra { border-color: var(--brass); }
.su-mb-card .su-ob-text { font-size: 16.5px; padding: 12px 14px; }
.su-mb-card .su-err:empty { display: none; }
.su-mb-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.su-mb-head .su-owner-who { flex: 1 1 180px; }
.su-mb-head .su-owner-sub { line-height: 1.45; }
.su-avatar.su-avatar-mb { background: var(--plum); color: var(--on-plum); }
.su-mb-remove { min-height: 44px; padding: 0 16px; background: transparent; color: var(--text-body); border: 1px solid var(--rule); font: inherit; font-size: 14px; cursor: pointer; }
.su-mb-remove:hover { border-color: var(--error); color: var(--error); }
.su-mb-mark { margin: 0; align-self: flex-start; padding: 6px 10px; border: 1px solid var(--brass); font-size: 13.5px; color: var(--on-plum-label); }
.su-mb-confirm { display: flex; flex-direction: column; gap: 14px; padding: 16px 18px; background: var(--plum); }
.su-mb-confirm-p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--on-plum); text-wrap: pretty; }
.su-mb-confirm-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.su-mb-confirm-yes { min-height: 44px; padding: 0 20px; background: var(--on-plum); color: var(--plum); border: none; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.su-mb-confirm-no { min-height: 44px; padding: 0 20px; background: transparent; color: var(--on-plum); border: 1px solid var(--on-plum-label); font: inherit; font-size: 15px; cursor: pointer; }
.su-mb-add { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; padding: 0 20px; background: transparent; color: var(--brass); border: 1px dashed var(--brass); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.su-mb-add:hover { background: var(--surface); }
.su-mb-add span { font-size: 22px; line-height: 1; }
.su-mb-note { margin: -6px 0 0; font-size: 14px; color: var(--text-muted); }
.su-mb-full { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-body); }
.su-mb-form { display: flex; flex-direction: column; gap: 22px; padding: clamp(20px, 3vw, 30px); border: 1px dashed var(--brass); background: var(--well); }
.su-mb-form-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.su-h3 { margin: 0; font-family: 'Newsreader', Georgia, serif; font-weight: 400; font-size: 26px; letter-spacing: -0.015em; color: var(--text-bright); }
.su-mb-cancel { background: none; border: none; font: inherit; font-size: 14px; color: var(--text-muted); cursor: pointer; min-height: 44px; white-space: nowrap; flex-shrink: 0; }
.su-mb-fields { display: flex; flex-direction: column; gap: 22px; }
.su-mb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 22px 28px; }
.su-mb-grid select { background: var(--well); }
.su-label-aside { text-transform: none; letter-spacing: 0; color: var(--text-faint); }
.su-mb-ages { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px 28px; padding-top: 18px; border-top: 1px solid var(--rule); }
.su-mb-age { margin: 0; padding: 0; border: none; }
.su-mb-age legend { padding: 0; margin-bottom: 8px; font-size: 17px; color: var(--text-bright); }
.su-mb-radios { display: flex; gap: 24px; font-size: 16px; color: var(--text); }
.su-mb-radio { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.su-mb-radio input, .su-mb-perm input { width: 18px; height: 18px; margin: 0; accent-color: var(--brass); }
.su-mb-perm { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--rule-strong); cursor: pointer; }
.su-mb-perm-text { display: flex; flex-direction: column; gap: 6px; font-size: 16.5px; line-height: 1.45; color: var(--text-bright); }
.su-mb-perm-help { font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.su-mb-extra { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--brass); }
.su-mb-eyebrow { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); }
.su-mb-extra-p { font-size: 16px; line-height: 1.55; color: var(--text-bright); text-wrap: pretty; }
.su-mb-extra-p strong { font-weight: 600; }
.su-mb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.su-mb-hint { flex: 1 1 200px; font-size: 14.5px; line-height: 1.5; color: var(--text-muted); }
.su-mb-u13 { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; background: var(--plum); }
.su-mb-u13-p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--on-plum); text-wrap: pretty; }
.su-mb-u13-why { margin: 0; font-size: 15px; line-height: 1.55; color: var(--on-plum); }
.su-mb-u13-why a { color: var(--on-plum-label); }
.su-mb-done { align-self: flex-start; min-height: 44px; padding: 0 20px; background: var(--on-plum); color: var(--plum); border: none; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .su-pulse span:first-child { animation: none; } }
/* Step 6 (SOP-906): the prototype's finish template. */
.su-account { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; }
.su-finish { max-width: 1120px; gap: clamp(32px, 5vw, 56px); }
.su-banner { margin: 0; padding: 16px 18px; background: var(--plum); color: var(--on-plum); font-size: 16px; line-height: 1.55; text-wrap: pretty; }
.su-finish-top { display: flex; flex-direction: column; gap: 18px; }
.su-finish-h1 { font-size: clamp(44px, 9vw, 96px); line-height: 0.98; letter-spacing: -0.04em; }
.su-finish-name { font-style: italic; color: var(--brass); }
.su-number { display: flex; flex-direction: column; gap: 8px; padding: clamp(20px, 3vw, 28px) 0; border-top: 1px solid var(--brass); border-bottom: 1px solid var(--rule); }
.su-number-label { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
.su-number-value { font-family: 'Newsreader', Georgia, serif; font-weight: 300; font-size: clamp(42px, 11vw, 104px); line-height: 1; letter-spacing: -0.02em; color: var(--brass); white-space: nowrap; }
.su-number-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.su-number-actions .su-btn, .su-number-actions .su-btn-ghost { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; font-size: 15px; text-decoration: none; }
/* Step 6's Invite your household (SOP-790): the prototype's finish template's section. */
.su-invite { display: flex; flex-direction: column; gap: 18px; }
.su-invite-rows { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.su-invite-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.su-invite-row .su-owner-who { flex: 1 1 160px; }
.su-invite-name { font-size: 17px; color: var(--text-bright); }
.su-invite-send { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; text-decoration: none; }
.su-invite-opened { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-muted); }
.su-invite-again { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--rule); font-size: 14px; text-decoration: none; }
.su-invite-texted { font-size: 14px; color: var(--on-plum-label); }
.su-invite-foot { max-width: 60ch; font-size: 14.5px; }
/* The join page (SOP-790): the prototype's join template. */
.su-join-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(32px, 6vw, 72px); align-items: start; }
.su-join-card { gap: 22px; }
.su-join-card .su-field input[readonly] { color: var(--text-bright); }
.su-join-end { gap: 22px; }
.su-join-number { padding-top: 18px; border-top: 1px solid var(--brass); font-size: clamp(40px, 10vw, 88px); }
.su-phone-only { display: none !important; }
@media (pointer: coarse) { .su-phone-only { display: inline-flex !important; } }

/* ---- Pages the sophie server renders ----
 * Each links this file, as the static pages do, and carries no style of its
 * own. The one-sentence pages (internal/grocerytool's Kroger callback,
 * internal/onboarding's thank-you) use .notice and
 * need nothing here; /consent/household (internal/signupweb) uses the .su-*
 * rules above. */

/* ---- dashboard (internal/dashweb: pages.html, placeholder.html) ----
 * Scoped by body.dash, so the pages' bare h1/h2/header/main/button keep
 * their markup (tests pin "<h1>Your account</h1>"). .lede and .brand are
 * sophie.css's, narrowed here to the dashboard's sizes. */
body.dash { font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; }
.dash header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px clamp(16px, 5vw, 64px); border-bottom: 1px solid var(--rule); }
.dash .brand img { height: 26px; }
.dash .brand span { font-size: 22px; letter-spacing: 0; }
.dash .where { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.dash main { max-width: 760px; margin: 0 auto; padding: clamp(32px, 8vw, 96px) clamp(16px, 5vw, 64px) 72px; display: flex; flex-direction: column; gap: 22px; }
.dash h1 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 8vw, 64px); line-height: 1.02; letter-spacing: -0.035em; color: var(--text-bright); }
.dash h2 { margin: 18px 0 0; font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--text-bright); }
.dash .lede { margin: 0; font-size: 18px; line-height: 1.6; color: var(--text-body); }
.dash button { font: inherit; font-weight: 600; padding: 12px 22px; border: 0; border-radius: 6px; background: var(--brass); color: var(--ink); cursor: pointer; }
.dash button:disabled { opacity: 0.55; cursor: default; }
.dash-phone { font: inherit; padding: 10px; width: 100%; max-width: 320px; margin-bottom: 12px; }
.dash-count { font: inherit; padding: 10px; width: 96px; margin-right: 12px; }
/* The signed-out placeholder (placeholder.html): a taller page, a larger heading. */
.dash.dash-placeholder main { padding-top: clamp(48px, 10vw, 120px); }
.dash.dash-placeholder h1 { font-size: clamp(40px, 8vw, 76px); }
.dash .contact { margin: 0; padding-top: 22px; border-top: 1px solid var(--rule); font-size: 16px; line-height: 1.65; color: var(--text-muted); text-wrap: pretty; }

/* ---- onboarding form (internal/onboarding: /onboarding/<link>) ----
 * The page had no style before; this puts it in the signup pages' terms
 * (.su-head above it, .su-main's measure, .field's underlined inputs). */
body.ob { font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; }
.ob-main { max-width: 760px; margin: 0 auto; padding: clamp(40px, 8vw, 96px) clamp(16px, 5vw, 64px) 64px; display: flex; flex-direction: column; gap: 24px; }
.ob-main h1 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 8vw, 80px); line-height: 1.02; letter-spacing: -0.035em; color: var(--text-bright); text-wrap: balance; }
.ob-main > p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--text-body); text-wrap: pretty; }
.ob-main form { display: flex; flex-direction: column; gap: 24px; }
.ob-main fieldset { margin: 0; min-width: 0; padding: 20px 24px 24px; border: 1px solid var(--rule); }
.ob-main legend { padding: 0 8px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); }
.ob-main fieldset p, .ob-main fieldset li { font-size: 16px; line-height: 1.55; color: var(--text-body); text-wrap: pretty; }
.ob-main fieldset p { margin: 0 0 14px; }
.ob-main fieldset ul { margin: 0 0 14px; padding-left: 20px; }
.ob-main label { display: block; margin: 18px 0 8px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-label); }
.ob-main legend + label { margin-top: 4px; }
.ob-main label.ob-check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; letter-spacing: 0; text-transform: none; color: var(--text); cursor: pointer; }
.ob-main .ob-check input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brass); }
.ob-main input:not([type="checkbox"]), .ob-main select { font: inherit; font-size: 17px; padding: 10px 0; width: 100%; border: none; border-bottom: 1px solid var(--rule-strong); border-radius: 0; background: transparent; color: var(--text-bright); }
.ob-main select option { background: var(--ink); color: var(--text); }
.ob-main .btn-brass { align-self: flex-start; }

/* ---- .legal: the terms, privacy and consent pages ----
 * A single readable column: these are read closely, not scanned. */
.legal { max-width: 760px; padding: clamp(48px, 8vw, 96px) var(--gutter) clamp(64px, 8vw, 112px); }
.legal h1 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(38px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.035em; color: var(--text-bright); }
.legal .meta { margin: 18px 0 clamp(48px, 6vw, 68px); font-size: 15px; color: var(--text-faint); letter-spacing: 0.01em; }
.legal h2 { margin: clamp(38px, 4.5vw, 52px) 0 14px; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.25; letter-spacing: -0.015em; color: var(--text-bright); }
.legal .meta + h2 { margin-top: 0; }
.legal p { margin: 0; font-size: 17px; line-height: 1.68; color: var(--text-body); text-wrap: pretty; }
.legal p + p, .legal ul + p { margin-top: 14px; }
.legal p + ul { margin-top: 14px; }
.legal ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.legal li { font-size: 17px; line-height: 1.68; color: var(--text-body); padding-left: 20px; border-left: 2px solid var(--rule); text-wrap: pretty; }
.legal .callout { margin: clamp(38px, 4.5vw, 52px) 0 0; }
.legal .callout h2 { margin-top: 0; }
.legal .caption { margin: 0 0 18px; color: var(--text-muted); }
.legal .spaced { margin-top: clamp(38px, 4.5vw, 52px); }

/* ---- .doc: a markdown page (site/*.md) ----
 * Markdown renders bare elements, so this styles elements, in the
 * homepage's terms: a section heading per h2, its list as a grid of
 * entries across the full width. */
.doc { padding: var(--band) var(--gutter); counter-reset: doc-section; }
.doc h1 { margin: 0 0 clamp(28px, 4vw, 48px); font-family: var(--serif); font-weight: 300; font-size: clamp(48px, 9vw, 128px); line-height: 0.95; letter-spacing: -0.04em; color: var(--text-bright); text-wrap: balance; }
.doc h1 + p { max-width: 62ch; font-size: clamp(17px, 1.9vw, 21px); line-height: 1.6; }
.doc p { margin: 0 0 20px; max-width: 72ch; font-size: 17px; line-height: 1.65; color: var(--text-body); text-wrap: pretty; }
.doc hr { margin: var(--band) 0 0; border: 0; border-top: 1px solid var(--rule); }
.doc h2 { margin: var(--band) 0 clamp(24px, 3vw, 40px); padding-top: var(--band); border-top: 1px solid var(--rule); font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 4.8vw, 64px); line-height: 1.04; letter-spacing: -0.03em; color: var(--text-bright); text-wrap: balance; counter-increment: doc-section; }
.doc h2::before { content: counter(doc-section, decimal-leading-zero); display: block; margin-bottom: 14px; font-size: clamp(18px, 2vw, 28px); letter-spacing: 0; color: var(--numeral); }
.doc hr + h2 { margin-top: 0; border-top: none; }
.doc h3 { margin: clamp(32px, 4vw, 48px) 0 14px; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.2; letter-spacing: -0.015em; color: var(--text-bright); }
.doc ul, .doc ol { margin: 0 0 20px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 var(--gap-cols); }
.doc li { padding: 18px 0 22px; border-top: 1px solid var(--rule); font-size: 16.5px; line-height: 1.6; color: var(--text-body); text-wrap: pretty; }
.doc li strong { display: block; margin-bottom: 6px; font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; color: var(--text-bright); }
.doc li p { margin: 0; }
.doc code { font-size: 0.92em; }
.doc blockquote { margin: 0 0 20px; padding: 22px 24px; max-width: 72ch; background: var(--plum); border-radius: 18px 18px 18px 2px; }
.doc blockquote p { margin: 0; color: var(--on-plum); }
.doc h2 + .callout { margin: 0 0 clamp(24px, 3vw, 40px); }

/* ---- the blog (site/blog/, SOP-1414) ----
 * A post is a .doc read top to bottom, so its sections are not numbered
 * and its headings and lists are a reading column's, not the features
 * page's full-width grid. The index is one column of posts. */
/* --post-text is a post's body size, one place to tune it: 19px is about
 * 14pt; 24px would be 18pt. */
.post { --post-text: 19px; }
.post article { max-width: 72ch; }
.post p, .post h1 + p, .post li { font-size: var(--post-text); line-height: 1.65; }
.post .eyebrow, .blog .post-list .eyebrow { margin: 0 0 14px; }
.post h1 { font-size: clamp(40px, 6.5vw, 88px); }
.post h2 { margin: clamp(40px, 5vw, 64px) 0 18px; padding-top: 0; border-top: none; font-size: clamp(26px, 3.2vw, 38px); }
.post h2::before { content: none; }
.post ul, .post ol { display: block; padding-left: 22px; list-style: disc; }
.post ol { list-style: decimal; }
.post li { padding: 0 0 10px; border-top: none; }
.post li strong { display: inline; margin: 0; font-family: inherit; font-size: inherit; font-weight: 600; color: var(--text-bright); }
.post img { max-width: 100%; height: auto; border-radius: 12px; }
.post-nav { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; max-width: 72ch; margin-top: var(--band); padding-top: 28px; border-top: 1px solid var(--rule); }
.post-prev { display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.post-prev-title { font-family: var(--serif); font-size: 24px; line-height: 1.25; color: var(--text-bright); }
.post-prev:hover .post-prev-title { color: var(--brass-light); }
.blog .post-list { display: block; max-width: 72ch; margin-top: clamp(32px, 5vw, 56px); }
.blog .post-list li { padding: 28px 0 30px; }
.post-list-title { display: block; margin: 0 0 10px; font-family: var(--serif); font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; letter-spacing: -0.015em; color: var(--text-bright); text-decoration: none; }
.post-list-title:hover { color: var(--brass-light); }
.blog .post-list li p:last-child { margin: 0; }

/* ---- email (internal/mailtmpl, SOP-1348) ----
 * The last section of this file, to its end. An email is this site's own
 * page: internal/mailtmpl's frame uses the classes above (.site-header,
 * .brand, .eyebrow, .h-page, .prose, .bubble, .btn-brass, .site-footer and
 * the rest), and an email's <style> carries the rules above for the classes
 * it uses, then this section. Each var() is replaced by its value, and each
 * clamp() by its minimum (an email is at most 600px wide).
 *
 * Emails use the light look (Ian, 2026-11-21): not every client renders a
 * dark design properly. :root.email gives the site's tokens their light
 * values, the palette the legal and billing pages wore before SOP-1351
 * (cream page, dark ink, a rust accent). No web page's root has the class,
 * so the site is untouched. There is no dark version (SOP-1379, Ian
 * 2026-11-21: every client gets the light design): this section has no
 * prefers-color-scheme block, and the frame declares color-scheme light.
 *
 * What is here is only what a mail client needs and the site does not:
 * the 600px table, the hidden preheader, and plain margins and blocks where
 * the site uses flex gaps, sticky headers or grids. Every selector here is
 * an .email-* class or is scoped under .email-wrap, so nothing reaches a
 * web page. */
:root.email {
  --ink: #F7F3ED;           /* the page: cream */
  --surface: #FFFDFA;       /* a raised panel */
  --text-bright: #211D18;
  --text: #211D18;
  --text-body: #3C352E;
  --text-muted: #6B6259;
  --text-faint: #8A7F72;
  --text-label: #6B6259;
  --rule: #E2D9CC;
  --rule-strong: #E2D9CC;
  --brass: #A6462B;         /* the accent: links, the heading's italic, the button */
  --brass-light: #7E3220;
  /* Sophie's mark in every email: this one dark blue, and no other.
     cmd/sitebuild makes /sophie-mark-email.png in it; nothing else may
     name a blue for the mark. */
  --email-color-sophie-image: #1F3A5F;
  --gutter: 32px;
  --band: 36px;
}
.email-body { margin: 0 !important; padding: 0 !important; width: 100% !important; }
.email-preheader { display: none; max-height: 0; overflow: hidden; mso-hide: all; font-size: 1px; line-height: 1px; color: var(--ink); opacity: 0; }
.email-page { width: 100%; background-color: var(--ink); border-collapse: collapse; }
.email-wrap { width: 100%; max-width: 600px; border-collapse: collapse; }
.email-wrap .site-header { display: block; position: static; }
/* The header is one table row, mark, name and label, each cell centred on
   the row, so "Sophie" and the label sit on the mark's centre line in every
   client, Outlook included. */
.email-header-row { border-collapse: collapse; }
.email-header-mark { width: 36px; padding: 0 12px 0 0; vertical-align: middle; }
.email-header-name, .email-header-label { vertical-align: middle; }
.email-header-label { text-align: right; }
.email-wrap .brand { display: inline-block; }
.email-wrap .brand img { display: block; height: 45px; width: 36px; }
.email-wrap .brand span { display: block; line-height: 1; }
.email-wrap .site-nav { display: block; line-height: 1; }
.email-wrap .h-page { margin-top: 22px; font-size: 52px; line-height: 1.04; }
.email-wrap .prose { display: block; }
.email-wrap .prose p, .email-wrap .prose ul { margin: 0 0 20px; }
.email-wrap .prose ul { padding-left: 22px; }
.email-wrap .prose li { margin: 0 0 10px; }
.email-wrap .prose .h-label { margin: 8px 0 6px; font-family: var(--sans); font-weight: 600; color: var(--text-bright); }
.email-wrap .prose .callout { margin: 0 0 20px; padding: 18px 22px; background-color: var(--surface); }
.email-wrap .bubble { margin: 8px 0 20px; }
.email-wrap .bubble .eyebrow { margin: 0 0 10px; }
.email-cta { margin: 8px 0 0; }
.email-wrap .btn-brass { color: var(--surface); }
.email-wrap .caption { margin: 14px 0 0; }
.email-wrap .more { margin: 16px 0 0; }
.email-signoff { margin: 32px 0 0; font-style: italic; color: var(--text-bright); }
.email-wrap .site-footer { display: block; border-top: 1px solid var(--rule); }
.email-wrap .site-footer .about { display: block; }
.email-wrap .site-footer .mark { display: block; margin: 0 0 8px; }
.email-wrap .site-footer .mark img { display: inline-block; vertical-align: middle; margin-right: 9px; width: 21px; height: 26px; }
.email-wrap .site-footer .mark span { vertical-align: middle; }
.email-wrap .site-footer .fine { display: block; margin: 0 0 4px; }
.email-wrap .site-footer nav { display: block; margin-top: 18px; font-size: 13px; }
.email-wrap .site-footer nav a { color: var(--text-muted); text-decoration: none; margin-right: 14px; }
@media screen and (max-width: 620px) {
  .email-wrap .section, .email-wrap .site-header, .email-wrap .site-footer { padding-left: 20px !important; padding-right: 20px !important; }
  .email-wrap .h-page { font-size: 40px !important; }
}
