/* The members area, the sign-in pages and the pay pages: one stylesheet.
 *
 * WHY A FILE. These pages are written by Functions (functions/_lib/page.js is
 * their shell). Their CSS used to sit inline, allowed by its hash in the
 * Content-Security-Policy, so every edit meant regenerating the policy. As a
 * plain file from this site it is allowed by the policy's style-src 'self',
 * with no hash to keep in step. tools/stage.sh ships it BY NAME: no static
 * page links it, so the stage's scan of the static pages would miss it.
 *
 * THE LOOK. The marketing page's quieter sibling: the same dark canvas, the
 * same tokens (index.html, :root), the same two faces (Gloock for headings,
 * Libre Franklin for everything else), square buttons and hairline borders.
 * Content sits in cards on the surface colour (the signed-in page, from 46rem
 * wide: one card, then open bands, as the home page's; near the end of this
 * file). No decoration for its own sake:
 * the only colours beyond the neutrals are the cream accent (actions, and the
 * member's own messages), the amber test-mode band, and a coral dot for an
 * unread answer.
 *
 * CONTRAST. Every text colour here against every background it sits on is at
 * least 4.5:1, measured (tools/widget-check.mjs computes the ratios): the
 * lowest is the soft text on the raised disabled button, 5.5:1.
 *
 * The help chat has its own stylesheet, assets/help-chat.css (it also goes on
 * the owner's guide, which does not load this one).
 */

@font-face { font-family: "Gloock"; src: url("/assets/gloock-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("/assets/libre-franklin-latin.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  /* The marketing page's colours, by the same names where it has them. */
  --canvas: #0A0C11;      /* the page */
  --surface: #121318;     /* cards */
  --panel: #0E1015;       /* the help chat's panel, a step off the page */
  --bubble: #1A1C22;      /* the assistant's messages */
  --raise: #1E2026;       /* a control that is switched off */
  --ink: #D9D6D0;         /* text: 13.5:1 on the canvas */
  --soft: #9A958C;        /* secondary text: 6.6:1 on the canvas, 5.7:1 on a bubble */
  --accent: #F7F4EC;      /* the one action colour */
  --accent-ink: #0B0E13;  /* text on the accent: 17.6:1 */
  --line: rgba(217, 214, 208, 0.14);
  --line-firm: rgba(217, 214, 208, 0.30);
  --test: #F2C14E;        /* test mode, and a payment being checked */
  --attention: #E8877E;   /* an answer arrived while the chat was closed */

  --display: "Gloock", Georgia, serif;
  --text: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  /* The code badge: the reader's own monospace, so nothing is downloaded for it. */
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* The type scale: five steps and the page title. */
  --t-xs: 0.8125rem;   /* 13px: times, the chat's status line and fine print */
  --t-sm: 0.9375rem;   /* 15px: the top bar, notes, chat messages */
  --t-base: 1.0625rem; /* 17px: body text */
  --t-lg: 1.375rem;    /* 22px: card headings (Gloock) */
  --t-xl: 1.125rem;    /* 18px: the lede under a page title */
  --t-2xl: clamp(2.2rem, 1.6rem + 3vw, 3.2rem); /* the page title (Gloock) */

  /* The home page's gutter (scrollcraft.css, --sc-gutter), so the wordmark and
     the bar's edges do not move between the home page and these pages. */
  --gutter: clamp(1.25rem, 5vw, 5.5rem);
  --press: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100svh; background: var(--canvas); color: var(--ink);
  font: 400 var(--t-base)/1.6 var(--text);
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
a { color: var(--ink); text-underline-offset: 0.2em; text-decoration-color: var(--line-firm); }
/* Hover looks only where a pointer hovers: on a touch screen :hover stays on
   the last thing tapped (a question stayed white after it was opened, a
   button dimmed after its press). There the press (:active) is the feedback. */
@media (hover: hover) { a:hover { text-decoration-color: var(--ink); } }
h1 {
  font-family: var(--display); font-weight: 400; font-size: var(--t-2xl); line-height: 1.04;
  letter-spacing: -0.012em; margin: 0 0 0.75rem; text-wrap: balance;
}
h2 { font-family: var(--display); font-weight: 400; font-size: var(--t-lg); line-height: 1.2; letter-spacing: -0.005em; margin: 0 0 0.5rem; }
h3 { font-size: var(--t-base); font-weight: 600; line-height: 1.3; margin: 1.75rem 0 0.25rem; }
/* Inside a card an h3 heads a list ("Common questions"): set as the site's
   labels are (CONTENTS, IN THE PRICE). At 17px and 600 it was the size and
   weight of the questions under it, so it read as the first of them. */
.card h3 { margin: 1.75rem 0 0.55rem; font-size: var(--t-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); }
p { margin: 0 0 1rem; max-width: 36rem; text-wrap: pretty; }
b { font-weight: 600; }
/* Read by screen readers, not shown. */
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---- the top bar ------------------------------------------------------
   The wordmark home, the area's places, and Sign out. On a phone the places
   take a second row, so nothing shrinks below a 44px target. */
.top {
  display: flex; flex-wrap: wrap; align-items: center; column-gap: clamp(1rem, 2.4vw, 2rem);
  /* 71px, as the home page's bar: 48px of mark, 11px above and below and the
     rule. In px, not 0.7rem: 11.2px made the bar 71.4px, every edge under it
     sat on a fraction of a pixel, and the pay page's amber band began on one,
     a darker first row with a step where its column ends. */
  padding: 11px var(--gutter); border-bottom: 1px solid var(--line); background: var(--canvas);
}
.top__mark {
  display: inline-flex; align-items: center; min-height: 48px; margin-right: auto;
  font-family: var(--display); font-size: 1.3rem; color: var(--ink); text-decoration: none;
}
.top__nav { display: flex; flex-wrap: wrap; column-gap: clamp(1rem, 2.4vw, 2rem); }
.top__nav a {
  position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px;
  font-size: var(--t-sm); color: var(--soft); text-decoration: none; transition: color 180ms ease;
}
.top__nav a[aria-current="page"] { color: var(--ink); }
@media (hover: hover) { .top__nav a:hover { color: var(--ink); } }
.top__nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 9px; height: 1px; background: var(--ink);
}
.top__out { margin: 0; }
.top__btn {
  min-height: 44px; padding: 0 1.05rem; background: transparent; color: var(--ink);
  border: 1px solid var(--line-firm); border-radius: 0; font: inherit; font-size: var(--t-sm); font-weight: 600; cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, transform 140ms var(--press);
}
@media (hover: hover) { .top__btn:hover { border-color: var(--ink); background: rgba(247, 244, 236, 0.06); } }
.top__btn:active { transform: translateY(1px); background: rgba(247, 244, 236, 0.1); }
/* A label, not a link ("Sign in", "Payment"): set as one, so nobody taps it.
   In the links' own size and colour it read as a third place to go. */
.top__label { font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); }
@media (max-width: 40rem) {
  .top { column-gap: 1rem; }
  /* The places take a second row here: the bar tightens so the two rows are
     104px, not 115. A one-row bar (sign-in, pay) stays the home page's 71. */
  .top:has(> .top__nav) { padding-block: 5.5px; }
  .top__nav { order: 3; flex-basis: 100%; }
  /* A member's places stay at hand: as the page scrolls, the wordmark and
     Sign out go up with the first row and the second (Your website, Owner's
     guide, Help) holds at the top of the screen, 50.5px of it. On a phone
     the Help tab steps aside whenever a card's button passes under its
     corner, 36 to 50% of the resting positions at 320 and 390 wide, and
     the bar's Help had gone up with the top of the page (measured,
     2026-10-07). The offset is the first row: its 5.5px of padding and the
     48px wordmark. */
  .top:has(> .top__nav [data-chat-open]) { position: sticky; top: calc(-5.5px - 48px); z-index: 40; }
  /* What a link or a Tab scrolls to in the page stops below that row, not
     under it. On the page's own parts, not the whole page: a scroll-padding
     moved the page 431px whenever the held row's Help took focus (closing
     the chat gives it back), measured. */
  body:has(> .top > .top__nav [data-chat-open]) .wrap :is([id], a, button, input, select, textarea, summary) { scroll-margin-top: calc(50.5px + 0.75rem); }
}

/* ---- the column -------------------------------------------------------- */
.wrap { padding: clamp(1.75rem, 5vw, 3.25rem) var(--gutter) 7rem; } /* room at the foot for the Help tab */
.page { max-width: 46rem; margin: 0 auto; }
.page--narrow { max-width: 38rem; }
.intro { margin: 0 0 1.75rem; }
.kicker { margin: 0 0 0.5rem; font-size: var(--t-sm); color: var(--soft); overflow-wrap: anywhere; }
.lede { color: var(--soft); font-size: var(--t-xl); line-height: 1.55; max-width: 34rem; }
.intro .lede:last-child { margin-bottom: 0; }
.soft { color: var(--soft); }
.fine { margin: 0.9rem 0 0; color: var(--soft); font-size: var(--t-sm); }
.aside { color: var(--soft); font-size: var(--t-sm); margin-top: 1.5rem; }
/* On a phone the Help tab (48px, 16px from the edge) stands over the page's
   last line at rest: the signed-out page's first screen at 390 x 844 ended
   "you attach your purch" under it. The line keeps clear of the tab's column. */
@media (max-width: 40rem) { body[data-chat] .page > .aside { padding-right: 3.25rem; } }
.grid { display: grid; gap: 1rem; margin: 0 0 1rem; }
.grid > .card { margin: 0; }
@media (min-width: 46rem) { .grid { grid-template-columns: 1fr 1fr; } }

/* ---- cards --------------------------------------------------------------- */
.card {
  margin: 0 0 1rem; padding: clamp(1.25rem, 4vw, 1.75rem);
  background: var(--surface); border: 1px solid var(--line);
}
.card > :last-child { margin-bottom: 0; }
/* A phone: each card runs to the screen's edges, a band of the surface colour
   between hairlines, as the home page's bands do, and its words start on the
   page's one left edge, the intro's. Inset, a card spent 82 of 320px on two
   gutters, two borders and two paddings: its text began 21px right of the
   heading above it, on a 238px measure, and a common question took three or
   four lines (the signed-in page 4,002px at 320 x 568; 3,633 like this). */
@media (max-width: 30rem) {
  .page > .card, .page > .grid > .card { margin-inline: calc(-1 * var(--gutter)); border-inline: 0; padding-inline: var(--gutter); }
}
.card__act { margin: 1.25rem 0 0; }
.card--soon h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; }
.tag {
  font-family: var(--text); font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  line-height: 1; padding: 0.4rem 0.55rem; color: var(--ink); border: 1px solid var(--line-firm);
}
/* The purchase is what the page is about: its heading a step above the other
   cards' (22px), so six equal cards do not read as one flat list. */
.purchase h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.1rem); }
.code {
  font-family: var(--mono); font-size: var(--t-sm); letter-spacing: 0.04em; line-height: 1;
  padding: 0.4rem 0.6rem; color: var(--ink); background: var(--canvas); border: 1px solid var(--line-firm);
}
/* The dot sits on the first line: centred on the whole block, a status that
   wraps ("Payment received, 6 / October 2026." at 320) had it between its two
   lines. 0.8em is half the 1.6 line, less half the dot. */
.status { display: flex; align-items: flex-start; gap: 0.65rem; margin: 0.5rem 0 0; }
/* The first line of a card (the thanks page) starts at the card's padding. */
.card > .status:first-child { margin-top: 0; }
/* Paid: a tick in the accent, drawn in the site's one stroke (the chevron's
   two borders, turned). It was a cream disc in a grey ring: the anatomy of a
   selected radio button, beside the page's one fact, and the only round
   shape on these pages. The mark stays aria-hidden: the words say it. Its
   box is 11 x 6px turned -45deg, so the tick's left arm starts on the
   column's edge with the heading above it. */
.status__dot {
  flex: none; width: 0.6875rem; height: 0.375rem; margin: calc(0.8em - 0.3rem) 0.15rem 0 0.1rem;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
/* Being checked: not a tick yet. A small square in the test band's amber. */
.status--wait .status__dot { width: 0.5rem; height: 0.5rem; margin: calc(0.8em - 0.25rem) 0.1rem 0 0.15rem; border: 0; background: var(--test); transform: none; }
/* The preview is a quiet button, as "Open the guide" is on its card. */
.purchase__link { margin: 1.25rem 0 0; }
/* A link standing on its own line is a control, so it gets a control's 44px
   target; a link inside a sentence keeps the sentence's line height. */
.solo a { display: inline-flex; align-items: center; min-height: 44px; }
.note { max-width: none; margin: 0 0 1rem; padding: 0.85rem 1rem; border-left: 2px solid var(--accent); background: var(--surface); }
.card .note { background: var(--canvas); }
/* Something that did not work (a claim refused) is told in the warning colour,
   as a wrong code is on the code page; the cream rule is for news. */
.note--bad { border-left-color: var(--attention); }

/* ---- buttons --------------------------------------------------------------- */
.acts { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 0; }
.acts--first { margin-top: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7rem;
  min-height: 48px; padding: 0.75rem 1.5rem; margin: 0;
  font: inherit; font-size: var(--t-sm); font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
  border-radius: 0; background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent);
  transition: filter 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 140ms var(--press);
}
/* Hover darkens the cream: a brightness above 1 has no room to show on it
   (measured). Pressed: the button gives under the finger, as the home page's
   do, and darkens further. */
@media (hover: hover) { .btn:hover { filter: brightness(0.93); } }
.btn:active { transform: translateY(1px); filter: brightness(0.88); }
.btn--quiet { background: transparent; color: var(--ink); border-color: var(--line-firm); }
@media (hover: hover) { .btn--quiet:hover { filter: none; border-color: var(--ink); background: rgba(247, 244, 236, 0.06); } }
.btn--quiet:active { filter: none; background: rgba(247, 244, 236, 0.1); }
.btn, .top__btn { -webkit-tap-highlight-color: transparent; }
/* With a purchase already on the account, attaching another is the page's
   least likely errand: its button is quiet, so the help chat's is the one
   cream button on the page (there were two, a screen apart). With nothing
   attached, the card comes first and its button stays the page's cream one.
   Its hover, like every hover here, only where a pointer hovers. */
.purchase ~ .card .inline .btn { background: transparent; color: var(--ink); border-color: var(--line-firm); }
@media (hover: hover) { .purchase ~ .card .inline .btn:hover { filter: none; border-color: var(--ink); background: rgba(247, 244, 236, 0.06); } }
.purchase ~ .card .inline .btn:active { filter: none; background: rgba(247, 244, 236, 0.1); }
/* The same height as every other control on the card (48px), not 54. */
.btn--google { padding: 0.75rem 1.5rem 0.75rem 1.25rem; }
.btn--google .g { flex: none; }
@media (max-width: 30rem) { .acts { display: grid; } .acts .btn { width: 100%; } }
/* A phone's column is 238px at 320: a button's words on one line ("See your
   website's preview" and "Create your member login" took two, which reads as
   a fault), and the card's own buttons as wide as the column, as .acts are. */
@media (max-width: 30rem) {
  .btn { padding-inline: 1rem; }
  .purchase__link .btn, .card__act .btn { width: 100%; }
  /* "Ask in the help chat" (assets/help-chat.js puts it where the card's form
     was) too: it was the one card button on a phone narrower than its column,
     under three that ran the whole width. */
  .ask-chat .btn { width: 100%; }
}

/* ---- forms ----------------------------------------------------------------- */
form { margin: 0; }
.field { display: grid; gap: 0.45rem; margin: 0 0 1rem; max-width: 30rem; }
.field--wide { max-width: none; }
.field label { font-size: var(--t-sm); font-weight: 600; }
input[type="text"], input[type="email"], textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.85rem; margin: 0;
  background: var(--canvas); color: var(--ink); border: 1px solid var(--line-firm); border-radius: 0;
  font: inherit; font-size: 1rem; line-height: 1.5;
}
textarea { min-height: 6.5rem; resize: vertical; }
@media (hover: hover) { input[type="text"]:hover, input[type="email"]:hover, textarea:hover { border-color: rgba(217, 214, 208, 0.5); } }
/* One focus for every box you type in, here, in the help chat and on the
   intake form: the edge itself turns cream and doubles to 2px. No ring
   floating outside it (a border AND an outline 2px off it read as two boxes).
   The transparent outline is what Windows high-contrast mode draws instead. */
input[type="text"]:focus, input[type="email"]:focus, textarea:focus,
input[type="text"]:focus-visible, input[type="email"]:focus-visible, textarea:focus-visible {
  border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); outline: 2px solid transparent; outline-offset: -2px;
}
::placeholder { color: var(--soft); opacity: 1; }
.inline { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.inline input { flex: 1 1 11rem; min-width: 0; }
.inline .btn { flex: none; }
.check { display: flex; gap: 0.75rem; align-items: flex-start; min-height: 44px; padding: 0.55rem 0; margin: 0 0 0.75rem; max-width: 34rem; font-size: var(--t-sm); cursor: pointer; }
/* Drawn and square, as the intake form's are: the browser's own box is
   rounded and grey, and was the one native control left on these pages.
   Checked, it fills cream inside a dark 3px margin. No image: this file names
   nothing but its two fonts (tools/pay-check.mjs holds it to that). */
.check input {
  appearance: none; flex: none; width: 20px; height: 20px; margin: 0.1rem 0 0;
  border: 1.5px solid var(--line-firm); border-radius: 0; background: var(--canvas); cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
@media (hover: hover) { .check:hover input { border-color: var(--ink); } }
.check input:checked { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px var(--canvas); }

/* ---- signing in: the card on /members, and the code page --------------------
   Two plain ways in, each a control of its own: "Sign in with Google" (a
   link) and, beside it, the email field with "Email me a code" (a form). On a
   wide screen they sit side by side with "or" between; on a phone, stacked,
   full width, with "or" as a ruled line. */
.signin { display: grid; gap: 1rem; }
.signin .field { margin: 0; max-width: none; }
.signin__google { display: flex; }
.signin__or { display: flex; align-items: center; gap: 0.85rem; margin: 0; max-width: none; color: var(--soft); font-size: var(--t-sm); }
.signin__or::before, .signin__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.signin__paused { margin: 0; }
/* Stacked: both ways in run the card's full width, so their edges line up
   (the Google button was 233px over a 636px email row at 768). */
@media (max-width: 49.99rem) {
  .signin__google .btn { width: 100%; }
}
@media (min-width: 50rem) {
  .signin--two { grid-template-columns: auto auto minmax(0, 1fr); align-items: end; column-gap: 1.5rem; }
  .signin--two .btn--google { min-height: 48px; }
  .signin--two .signin__or { min-height: 48px; }
  .signin--two .signin__or::before, .signin--two .signin__or::after { display: none; }
  /* Every control on the row is 48px now (the Google button was 50, its top
     2px above the field's), and the gaps are 1rem: 24px more for the field. */
  .signin--two { column-gap: 1rem; }
}
@media (max-width: 30rem) {
  .signin .inline .btn { width: 100%; }
}
/* The six digits: the reader's own monospace, spaced, so a typo shows. */
.otp { font-family: var(--mono); font-size: 1.3rem; letter-spacing: 0.3em; }
/* The code that did not work (email.js, wrongCodePage): its box says so, and
   still does with focus, which it has on arrival (autofocus): the same 2px
   edge as any focused box, in the warning colour. */
.otp[aria-invalid="true"] { border-color: var(--attention); }
.otp[aria-invalid="true"]:focus { border-color: var(--attention); box-shadow: inset 0 0 0 1px var(--attention); }
.inline .otp { flex: 0 1 12rem; }
/* A phone: the box takes the row beside "Sign in", as the email box does. At
   192px the two needed 282px and the row is 280 at 320, so "Sign in" fell to
   a line of its own under the box it sends. */
@media (max-width: 30rem) { .inline .otp { flex: 1 1 8rem; } }
.otp-form { margin: 0 0 0.25rem; }
/* A short phone (320 x 568, 375 x 553, 360 x 560): the page's top gives way to
   the one thing on it to do. The email box began 39px under the screen at
   320 x 568 and 30px at 375 x 553 (measured, 2026-10-07), so what a visitor
   met was a Google button and an "or" with nothing after it. Here the whole
   box, its label with it, is on the first screen at both: the page's top
   padding, the eyebrow's and the heading's margins, the heading at 30px (it is
   35 to 37), the lede at the notes' 15px (four lines at 320, where it was five)
   and the card's gaps at 12px. Not from 601px tall or 481px wide: at 390 x 844
   and everywhere larger nothing here applies. Scoped to the page with the
   sign-in card, so no other page's top moves. */
@media (max-width: 30rem) and (max-height: 37.5rem) {
  .wrap:has(> .page > .card--signin) { padding-top: 1rem; }
  .intro:has(+ .card--signin) { margin-bottom: 1.25rem; }
  .intro:has(+ .card--signin) .kicker { margin-bottom: 0.25rem; line-height: 1.4; }
  .intro:has(+ .card--signin) h1 { font-size: 1.875rem; margin-bottom: 0.5rem; }
  .intro:has(+ .card--signin) .lede { font-size: var(--t-sm); line-height: 1.55; }
  .card--signin .signin { gap: 0.75rem; }
}

/* ---- the help card (the way to ask with script off) ------------------------ */
.ask .fine { margin: -0.4rem 0 1.1rem; }
/* The rest of the card's fine print, one tap away, as at the top of the chat:
   nine lines of small print were the card's longest block. */
.fine-more { margin: 0.25rem 0 0; color: var(--soft); font-size: var(--t-sm); }
.fine-more summary {
  display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; list-style: none;
  color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-firm); text-underline-offset: 0.2em;
}
.fine-more summary::-webkit-details-marker { display: none; }
.fine-more[open] summary { text-decoration-color: var(--ink); }
@media (hover: hover) { .fine-more summary:hover { text-decoration-color: var(--ink); } }
.fine-more .fine { margin: 0 0 0.25rem; }
/* With script on, this button stands where the card's form was (assets/help-chat.js). */
.ask-chat { margin: 0.75rem 0 1.25rem; }
.answer { margin: 0 0 1.5rem; padding: 1rem 1.15rem; background: var(--canvas); border-left: 2px solid var(--accent); }
.answer p { max-width: none; margin: 0 0 0.75rem; }
.answer .fine { margin: 0.2rem 0 0; }
.answer__k { color: var(--soft); font-size: var(--t-sm); }
.faq { margin: 0.6rem 0 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; display: flex; align-items: center; min-height: 48px; padding: 0.7rem 2rem 0.7rem 0;
  cursor: pointer; list-style: none; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  /* The site's one chevron (the home page's questions, the guide's, the form's
     sections): 9px, a 1.5px ink stroke. */
  content: ""; position: absolute; right: 0.4rem; top: 50%; width: 9px; height: 9px; margin-top: -6px;
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
@media (hover: hover) { .faq summary:hover { color: #fff; } }
.faq details p { margin: 0 0 1rem; color: var(--soft); }
/* The common questions after the cards, in the open (members.js,
   commonQuestions): hairline rows on the page, as the home page's questions
   are, not a seventh box; the heading on the intro's left edge. */
.questions { margin: 2.75rem 0 0; }
.questions > h2 { margin-bottom: 0.9rem; }
.questions .faq { margin-top: 0; }

/* ---- the account card ------------------------------------------------------ */
.email { overflow-wrap: anywhere; }
.account { display: grid; gap: 1.5rem; margin-top: 1.25rem; }
.danger { padding-top: 1.25rem; border-top: 1px solid var(--line); }
/* Delete my account is not Sign out: the warning colour (7.2:1 on the card). */
.danger .btn--quiet { color: var(--attention); border-color: rgba(232, 135, 126, 0.45); }

/* ---- the pay pages ----------------------------------------------------------- */
/* Full bleed, but its words start where the page's column starts (the pay
   pages are .page--narrow, 38rem, centred) and wrap at its width: across the
   whole screen it was one 1216px line at 1280, ruled too long to read
   (impeccable line-length, ~171 characters), and started 304px left of
   everything under it. */
.test {
  /* The element is the column (37rem: 78 characters of 15px type, under the
     80 the line-length rule allows, its left edge on the 38rem column's), and
     its yellow runs edge to edge as a shadow clipped to its own height:
     ink overflow, so nothing can scroll sideways. */
  width: min(37rem, 100% - 2 * var(--gutter) + 1.5rem); max-width: none;
  margin: 0 0 0 calc(max(var(--gutter), (100% - 38rem) / 2) - 0.75rem); padding: 0.75rem;
  /* Each line 22px (1.375rem), so the band is whole pixels at one, two or
     three lines. At 1.5 (22.5px) a one-line band, the thanks page's, was
     46.5px tall, and its last row of pixels was painted twice, by the column's
     own yellow and by the shadow beside it, each blending it its own way: a
     1px step in the band's foot where the column ends (measured at 1440). A
     line a half-pixel shorter, not longer: at 812 x 375 Pay ends 1.6px inside
     the screen, and 24px lines put it under (tools/widget-check.mjs). */
  background: var(--test); color: var(--accent-ink); font-size: var(--t-sm); line-height: 1.375rem;
  box-shadow: 0 0 0 100vmax var(--test); clip-path: inset(0 -100vmax);
}
/* The figure in the cream it has on the home page's price band. */
h1.price { font-size: clamp(3.6rem, 15vw, 5.4rem); line-height: 1; letter-spacing: 0; margin-bottom: 0.9rem; font-variant-numeric: lining-nums; color: var(--accent); }
.page--narrow > .card { margin-top: 1.75rem; }
/* What the price covers, set as the home page's price band sets the same
   facts a page earlier: an uppercase label over hairline rows, in the open.
   In a card under a 22px heading it was the one place on the site this list
   sat in a box, and the pay page read as a form's summary panel. */
.page--narrow:has(> h1.price) > .card { margin-inline: 0; padding: 0; background: none; border: 0; }
.page--narrow:has(> h1.price) > .card > h2 {
  margin: 0 0 0.7rem; font: 600 var(--t-xs)/1.2 var(--text); letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft);
}
.page--narrow:has(> h1.price) .ledger { margin: 0; }
/* The thanks page: the payment's own line under its heading, as the heading's
   second line, not a card of two lines; the one card left is the one thing
   to do next (the members page). */
.page--narrow > h1 + .card:has(> .status:first-child) { margin: 0.25rem 0 0; padding: 0; background: none; border: 0; }
.ledger { list-style: none; margin: 0.75rem 0 0; padding: 0; counter-reset: n; }
.ledger li { display: grid; grid-template-columns: 2.6rem 1fr; padding: 0.85rem 0; border-top: 1px solid var(--line); }
.ledger li::before { counter-increment: n; content: counter(n, decimal-leading-zero); color: var(--soft); font-size: var(--t-sm); padding-top: 0.12rem; font-variant-numeric: tabular-nums; }
.excl { max-width: none; margin: 0; padding: 0.85rem 0 0; border-top: 1px solid var(--line); color: var(--soft); font-size: var(--t-sm); }
.excl b { color: var(--ink); }
.pay { margin: 1.75rem 0 0; }
@media (max-width: 30rem) { .pay .btn { width: 100%; } }
/* In one column (under 64rem) the way to pay comes straight after the price,
   then what it covers: under the ledger, Pay was 1,065px down a 390 x 844
   phone and 1,220px down a 320 one, two screens from the figure it pays. The
   preview link moves up with it, so Tab meets the link and then Pay in the
   order they are seen. Flex does not collapse margins: the gaps are set here.
   The preview link stands between the GST line and Pay, and it is the ink
   the eye measures, not the boxes: its 44px box holds a 15px line, and the
   GST line's own leading sits above it, so margins of 16px above the link
   and 12px below left it 37px under the GST line's last row of pixels and
   25px over Pay's top edge at 390, and 53 and 41 at 1440 (measured,
   2026-10-07). 10px under the GST line and 18px over Pay put it 31 from
   each, with Pay where it was (and the same 28px from the GST line to Pay on
   a page with no preview link). */
@media (max-width: 63.99rem) {
  .page--narrow:has(> h1.price) { display: flex; flex-direction: column; align-items: flex-start; }
  .page--narrow:has(> h1.price) > * { margin-top: 0; }
  .page--narrow:has(> h1.price) > .soft { margin-bottom: 0.625rem; }
  .page--narrow:has(> h1.price) > .solo { margin-bottom: 0; }
  .page--narrow:has(> h1.price) > .pay { margin: 1.125rem 0 0; align-self: stretch; }
  .page--narrow:has(> h1.price) > .card { order: 1; margin: 2.25rem 0 0; align-self: stretch; }
}
/* A phone held sideways (568 to 932 wide, 320 to 430 tall): in one column
   Pay was 122px under the screen at 667 x 375 and 116 at 844 x 390, under the
   amber band, the figure and its two lines (measured, 2026-10-07). The figure
   and its lines on the left, the preview link and Pay beside them, what it
   covers under both. The order in the page is unchanged. */
@media (max-width: 63.99rem) and (max-height: 500px) and (orientation: landscape) {
  .page--narrow:has(> h1.price) {
    max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(1.5rem, 4vw, 3rem); align-items: start;
  }
  .page--narrow:has(> h1.price) > * { grid-column: 1; }
  .page--narrow:has(> h1.price) > .soft { margin-bottom: 1rem; }   /* the link is not under it here */
  .page--narrow:has(> h1.price) > .solo { grid-column: 2; grid-row: 1 / span 2; align-self: end; margin: 0; }
  .page--narrow:has(> h1.price) > .pay { grid-column: 2; grid-row: 3 / span 2; margin: 0.75rem 0 0; }
  .page--narrow:has(> h1.price) > .card { grid-column: 1 / -1; grid-row: 5; margin: 1.75rem 0 0; }
  .page--narrow:has(> h1.price) > .pay .btn { width: 100%; }
}
/* The shortest of them (568 x 320: Pay 40px under the screen, 740 x 360: 10,
   and the same at 640 and 780 x 360; measured, 2026-10-07): the figure, its
   eyebrow and the page's top padding give up what Pay needs. The figure is
   the size it is on an upright phone, 3.6rem; the eyebrow and the figure sit
   closer; the top padding is 1rem. Pay ends 307px down, 13px inside the
   screen at 320 and 53 at 360. Taller than 370px (667 x 375 and up) none of
   this applies, and nothing there moves. */
@media (max-width: 63.99rem) and (max-height: 370px) and (orientation: landscape) {
  body:has(h1.price) .wrap { padding-top: 1rem; }
  .page--narrow:has(> h1.price) > .kicker { margin-bottom: 0.25rem; line-height: 1.4; }
  h1.price { font-size: 3.6rem; margin-bottom: 0.5rem; }
}
/* From 64rem the pay page is set as the home page's price band is: the figure
   and the way to pay on the left, what it covers beside it. In one 38rem column
   Pay sat under the whole ledger, 95px below the fold at 1440 x 900. The order
   in the page is unchanged (what is included is still read first), and the
   band keeps its 37rem measure, its left edge on the wider column's. */
@media (min-width: 64rem) {
  .page--narrow:has(> h1.price) {
    max-width: 60rem; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    grid-template-rows: repeat(5, auto) 1fr; column-gap: clamp(3rem, 5vw, 4.5rem); align-items: start;
  }
  .page--narrow:has(> h1.price) > * { grid-column: 1; }
  .page--narrow:has(> h1.price) > .card { grid-column: 2; grid-row: 1 / -1; margin-top: 0; }
  /* The preview link between the GST line and Pay, 47px from each by the
     ink (it was 53 and 41); Pay stays where it was. As on a phone, above. */
  .page--narrow:has(> h1.price) > .solo { margin-top: 0.5rem; }
  .page--narrow:has(> h1.price) > .pay { margin-top: 2.125rem; }
  body:has(h1.price) .test { margin-left: calc(max(var(--gutter), (100% - 60rem) / 2) - 0.75rem); }
}

/* ---- the signed-in page on a wider screen: one card, then bands --------------
   From 46rem the members page was six boxes of one weight, 16px apart: the
   purchase, the guide, the editor, the help card, attach and the account all
   framed alike, so nothing on the page read as the point of it (round 3's
   open item, "six identical boxes"), and the area was the site's one place
   in boxes beside the home page's and the guide's open bands. Here the
   purchase stays the page's one card (with nothing attached, the attach card,
   which is then the one thing to do), and everything after it is set as the
   home page's bands are: a hairline above, no box; the heading over its words
   to 64rem, and beside them from 64rem, the home page's split (heading left,
   content right, as "Before you say yes."). The markup is the same at every
   width; a phone keeps its full-bleed cards (above). body[data-chat="member"]
   is the signed-in page and no other (functions/_lib/page.js, the shell). */
@media (min-width: 46rem) {
  body[data-chat="member"] .page > .card:not(.purchase):not(:first-of-type),
  body[data-chat="member"] .page > .grid > .card,
  body[data-chat="member"] .page > .questions {
    margin: 0; padding: 2.25rem 0 2.5rem; background: none; border: 0; border-top: 1px solid var(--line);
  }
  /* The one card: a little more room inside, and the bands a step below it. */
  body[data-chat="member"] .page > .card:is(.purchase, :first-of-type) { padding: 1.75rem 2rem 2rem; margin-bottom: 1rem; }
  body[data-chat="member"] .page > .card:is(.purchase, :first-of-type) + :not(.purchase) { margin-top: 2.5rem; }
  body[data-chat="member"] .page > .grid { gap: 0 2.5rem; }
  /* On the page's own ground, a note, an answer and a box take the surface
     colour, as the intake form's boxes do (in a card they took the canvas). */
  body[data-chat="member"] .page > :is(.card:not(.purchase):not(:first-of-type), .grid) :is(.note, .answer) { background: var(--surface); }
  body[data-chat="member"] .page > .card:not(:first-of-type) :is(input[type="text"], input[type="email"], textarea, .check input:not(:checked)) { background: var(--surface); }
  body[data-chat="member"] .questions > h2 { margin-bottom: 0.4rem; }
}
@media (min-width: 64rem) {
  /* The pay page's width at the same size, so the split has room; a query
     container, so the purchase card can find the bands' column (cqw, below). */
  body[data-chat="member"] .page { max-width: 60rem; container-type: inline-size; }
  body[data-chat="member"] .page > .grid { display: block; }
  /* The purchase is split as the bands are, its words starting on their
     column (33.333cqw: a third of the page, measured from the card's padding
     and border), so the card and the bands under it share one left edge for
     their words. The preview stays under the state, on the left: on the
     card's right the help chat's panel, open in its corner, stood over it
     (measured at 1440 x 900). */
  body[data-chat="member"] .page > .card.purchase { display: flow-root; padding: 2rem 2.25rem 2.25rem; }
  body[data-chat="member"] .page > .card.purchase > h2 { float: left; width: calc(33.333cqw - 4.75rem - 1px); margin: 0; }
  body[data-chat="member"] .page > .card.purchase > :not(h2) { margin-left: calc(33.333cqw - 2.25rem - 1px); }
  body[data-chat="member"] .page > .card.purchase > .status { margin-top: 0.45rem; }
  /* The split: the heading floats in the left third, the rest keeps to the
     right two thirds, in the order the page gives it (a float, not a grid, so
     the words keep their own margins between them). flow-root holds a heading
     taller than its words. */
  body[data-chat="member"] .page > .card:not(.purchase):not(:first-of-type),
  body[data-chat="member"] .page > .grid > .card,
  body[data-chat="member"] .page > .questions { display: flow-root; }
  body[data-chat="member"] .page > .card:not(.purchase):not(:first-of-type) > h2,
  body[data-chat="member"] .page > .grid > .card > h2,
  body[data-chat="member"] .page > .questions > h2 {
    float: left; width: calc(33.333% - 2.5rem); margin: 0; font-size: 1.5rem; line-height: 1.2; text-wrap: balance;
  }
  body[data-chat="member"] .page > .card:not(.purchase):not(:first-of-type) > :not(h2),
  body[data-chat="member"] .page > .grid > .card > :not(h2),
  body[data-chat="member"] .page > .questions > :not(h2) { margin-left: 33.333%; }
  /* The first words beside a heading start on its first line. */
  body[data-chat="member"] .page > .card:not(.purchase):not(:first-of-type) > h2 + *,
  body[data-chat="member"] .page > .grid > .card > h2 + * { margin-top: 0; }
  /* The questions' first row has no rule of its own: the band's is above it,
     and its words sit level with the heading's. */
  body[data-chat="member"] .questions .faq { border-top: 0; }
  body[data-chat="member"] .questions > h2 { margin-bottom: 0; }
}

/* ---- the hosted pay page (functions/_lib/hosted.js; built 2026-11-18, NOT
   LIVE: drawn only while HOSTED_CHECKOUT is "1") ------------------------------
   Two steps: the name, then the details. Everything here is under .hosted, so
   no page drawn today changes. The ending's <select> and the state's take the
   text box's look; a radio is the drawn box made round. */
.hosted select {
  min-height: 48px; padding: 0.7rem 2.2rem 0.7rem 0.85rem; margin: 0;
  background: var(--canvas); color: var(--ink); border: 1px solid var(--line-firm); border-radius: 0;
  font: inherit; font-size: 1rem; line-height: 1.5;
}
.hosted select:focus, .hosted select:focus-visible { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); outline: 2px solid transparent; outline-offset: -2px; }
.hosted .domain__row select { flex: 0 0 auto; }
.hosted .domain__say { min-height: 1.5em; margin: 0 0 1rem; font-size: var(--t-sm); color: var(--soft); }
.hosted .domain__say[data-state="ok"] { color: var(--ink); }
.hosted .domain__say[data-state="bad"] { color: var(--attention); }
/* The name, as large as fits a phone: a long one breaks before its ending
   (a <wbr> in the page), not inside it. */
.hosted h1.domain__name { font-size: clamp(1.9rem, 1.3rem + 3vw, 2.8rem); overflow-wrap: anywhere; }
.hosted .card { margin-top: 1.75rem; }
.hosted .card > h2 { margin-top: 0; }
.hosted .field__hint { margin: 0; }
.hosted .field__err { margin: 0; color: var(--attention); font-size: var(--t-sm); }
.hosted .choice { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.hosted .choice legend { padding: 0; margin: 0 0 0.45rem; font-size: var(--t-sm); font-weight: 600; }
.hosted .check input[type="radio"] { border-radius: 50%; }
.hosted .choice .check { font-weight: 400; }
.hosted .sum + .soft { margin-top: 0.75rem; }
.hosted .ledger--sums li { grid-template-columns: 1fr auto; column-gap: 1rem; }
.hosted .ledger--sums li::before { content: none; }
.hosted .ledger--sums b, .hosted .sum b { font-variant-numeric: tabular-nums; }
.hosted .sum { display: flex; justify-content: space-between; gap: 1rem; margin: 0; padding: 0.85rem 0 0; border-top: 1px solid var(--line-firm); font-weight: 600; }
.hosted .note ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.hosted .note a { color: inherit; }
.hosted .pay--hosted > .btn { margin-top: 1.75rem; }
/* The members page's card for a hosted site: its three actions apart. */
.hosting > .card__act, .hosting > form { margin-top: 1.5rem; }
.hosting > .status + .card__act, .hosting > .status + form { margin-top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* On paper. The pay and thanks pages are the ones people print, as a record of
   paying. Browsers print without background graphics unless asked, so the dark
   canvas goes and the light text stayed light: Chrome darkens it on its own
   (to mid grey: measured), Firefox and Safari print it as it is. Black on
   white here (set on the elements, not the tokens, which tools/widget-check.mjs
   measures for the screen), and the bar's links and the forms, which do
   nothing on paper, left off. */
@media print {
  body { background: #fff; color: #000; }
  body * { color: #000 !important; background: transparent !important; border-color: #999 !important; box-shadow: none !important; }
  .top__nav, .top__out, form, .acts { display: none !important; }
}
