/* Public pages: home, pricing, commitment, status, privacy, terms, contact.
   Linked after components.css and seo.css (header, footer, tables, buttons live there).
   Tokens only: no colour, radius or spacing value is invented here. */

.page-skip { position: absolute; inset-inline-start: -9999px; display: inline-flex; align-items: center; min-height: var(--touch-min); }
.page-skip:focus {
  inset-inline-start: var(--space-4); top: var(--space-2); z-index: 50;
  padding: 0 var(--space-3); background: var(--color-surface); border-radius: var(--radius-control);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* The sections are a column; the gap is the rhythm, with room under the last one before the footer. */
.page { gap: var(--space-12); padding-block: var(--space-6) var(--space-12); }
.page h2:not(.eyebrow):not(.section-title) { margin: 0 0 var(--space-3); font-size: 24px; font-weight: var(--weight-bold); line-height: 1.2; letter-spacing: -0.015em; }

/* — page head: eyebrow, h1, lede, actions —
   The h1 is the token `.display` face and takes its size from the --display-* custom properties, so a page chooses the
   board's size with `data-display` (content/pages/<slug>.json "display") and nothing here caps it: the default is
   clamp(40px, 5.6vw, var(--display-max)) with --display-max 80px. Each size is a board's clamp(), value for value. */
.page-head {
  --display-min: 40px; --display-vw: 5.6vw; --display-max: 80px; --display-leading: 0.94;
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); max-width: 44rem; padding-top: var(--space-6);
}
.page-head[data-display="hero"] { --display-min: 48px; --display-vw: 7.2vw; --display-max: 104px; }
.page-head[data-display="pricing"] { --display-min: 44px; --display-vw: 6.4vw; --display-max: 92px; }
.page-head[data-display="large"] { --display-min: 40px; --display-vw: 6vw; --display-max: 88px; }
.page-head[data-display="guides"] { --display-min: 44px; --display-vw: 6.4vw; --display-max: 88px; --display-leading: 0.96; }
.page-head[data-display="document"] { --display-vw: 5.6vw; --display-max: 72px; --display-leading: 0.96; }
.page-head h1 { margin: 0; font-size: clamp(var(--display-min), var(--display-vw), var(--display-max)); line-height: var(--display-leading); text-wrap: balance; }
.page-head p { margin: 0; }
.page-head__lede { max-width: 60ch; font-size: 18px; text-wrap: pretty; }
.page-head__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); padding-top: var(--space-2); }
.page-head .btn .icon { width: 18px; height: 18px; stroke-width: 2.2px; }

/* Eyebrow kinds besides the mono label (tokens.css .eyebrow): the intro pill with the live dot. The breadcrumb is
   the .breadcrumbs component of components.css. */
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px;
  font-size: 13px; font-weight: var(--weight-medium); color: var(--color-text-muted);
  background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-pill);
}

/* Split head: the h1 (with its eyebrow and actions) beside the lede, the lede at the end edge; one column on a phone. */
.page-head--split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); align-items: end; gap: var(--space-8); max-width: none; }
.page-head__main { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); min-width: 0; }
.page-head--split .page-head__lede { justify-self: end; max-width: 520px; }
@media (max-width: 720px) { .page-head--split .page-head__lede { justify-self: start; } }

/* — cards — */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.card .card-body { font-size: 15px; }
.card__action { margin: 0; padding-top: var(--space-2); }
.card__action:first-child { padding-top: 0; }

/* — commitment strip — */
.strip__rows { display: flex; flex-direction: column; margin: 0; }
.strip__row { display: grid; grid-template-columns: minmax(10rem, 1fr) 2fr; gap: var(--space-1) var(--space-4); padding: var(--space-3) 0; border-top: 1px solid var(--color-line); font-size: 14px; }
.strip__row dt { font-weight: var(--weight-semibold); }
.strip__row dd { margin: 0; }
@media (max-width: 720px) { .strip__row { grid-template-columns: 1fr; } }

/* — plan cards (tiers section) —
   Transcribed from the Main and Pricing boards (DZ-9). The grid is the board's auto-fit; at 720px and below it is 2 x 2 and a
   card shows its name, price, short codes line and button; one "Show plan details" disclosure reveals the rest on every card at
   once (a real <details>; `.plans:has(.plan-more[open])` does the revealing, no script). */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.pricing-card { position: relative; gap: 14px; padding: 28px var(--space-6); border-width: 2px; background: var(--color-surface); line-height: normal; }
.pricing-card > *, .pricing-card .tier-period > * { margin: 0; }
.pricing-card__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-2); }
.pricing-card__name { margin: 0; font-family: var(--font-body); font-size: 15px; font-weight: var(--weight-semibold); line-height: inherit; letter-spacing: normal; }
.pricing-card__chip { margin: 0; padding: 3px var(--space-2); font-size: 11px; font-weight: var(--weight-semibold); border-radius: 999px; }
/* While billing is off (config/ops.json billing.open): a neutral tag on every paid card, kept on phones. */
.pricing-card__soon { margin: 0; white-space: nowrap; }
.pricing-card__price { display: flex; align-items: baseline; gap: 6px; font-family: var(--font-display); font-weight: var(--weight-heavy); font-size: 44px; letter-spacing: -0.03em; line-height: 1; }
.pricing-card__amount { font-size: inherit; font-weight: inherit; letter-spacing: inherit; line-height: inherit; }
.pricing-card__unit { font-family: var(--font-body); font-weight: var(--weight-medium); font-size: 15px; color: var(--color-text-muted); letter-spacing: 0; }
.pricing-card__billing { font-family: var(--font-mono); font-size: 12px; color: var(--color-text-muted); }
.pricing-card__kicker { color: var(--color-text-muted); font-size: 15px; }
.pricing-card__codes { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--color-line); font-weight: var(--weight-semibold); font-size: 15px; }
.pricing-card__codes-short { display: none; }
.pricing-card__list { display: flex; flex-direction: column; gap: var(--space-2); margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.4; color: var(--color-text-muted); }
.pricing-card__list li { display: flex; align-items: flex-start; gap: var(--space-2); }
.pricing-card__list .icon { flex: none; width: 16px; height: 16px; margin-top: 2px; stroke-width: 2.4; color: var(--color-text); }
.pricing-card__cta { width: 100%; min-height: 48px; margin-top: auto; padding: 0; gap: 0; line-height: normal; border-color: var(--color-line); }
.pricing-table td { white-space: normal; font-family: inherit; }
.pricing-table td.tabular { white-space: nowrap; }

/* The featured plan: the highlighter edge is a `.mark` ring (a fill, shaped by a mask), and an ink edge sits inside it. */
.pricing-card--featured { border-color: transparent; }
.pricing-card__edge {
  position: absolute; inset: -2px; margin: 0; padding: 2px; border-radius: inherit; pointer-events: none;
  -webkit-mask: linear-gradient(black 0 0) content-box, linear-gradient(black 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(black 0 0) content-box exclude, linear-gradient(black 0 0);
}
.pricing-grid--compact .pricing-card--featured::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--color-text); border-radius: 18px; pointer-events: none; }
/* Pricing (full): the ink edge is an inset shadow; a hover lift keeps it and adds the board's soft drop under it. */
.tiers .pricing-grid--full .pricing-card--featured.lift { box-shadow: inset 0 0 0 1px var(--color-text); }
.tiers .pricing-grid--full .pricing-card--featured.lift:hover { box-shadow: inset 0 0 0 1px var(--color-text), var(--shadow-raised); }

/* Home (compact): one 1px edge, a mono codes line and one sentence under it. */
.pricing-grid--compact .pricing-card { border-width: 1px; }
.pricing-grid--compact .pricing-card--featured { border-width: 2px; }
.pricing-grid--compact .pricing-card__cta { min-height: 46px; }
.pricing-grid--compact .pricing-card__codes { margin-top: var(--space-2); padding-top: var(--space-4); font-family: var(--font-mono); font-size: 13px; font-weight: var(--weight-regular); color: var(--color-text); }
.pricing-grid--compact .pricing-card__line { font-size: 14px; line-height: 1.5; color: var(--color-text-muted); }

/* The disclosure under the grid and the "Compare every plan" link are for a phone only. */
.plans { display: flex; flex-direction: column; gap: var(--space-4); }
.plan-more, .plan-compare { display: none; }
.plan-more summary {
  display: flex; justify-content: center; align-items: center; gap: var(--space-2); min-height: 46px; line-height: normal;
  border-radius: 999px; border: 1px solid var(--color-line); background: var(--color-surface);
  font-weight: var(--weight-semibold); font-size: 15px; cursor: pointer; list-style: none;
}
.plan-more summary::-webkit-details-marker { display: none; }
.plan-more .chev, .faq__question .chev { flex: none; width: 18px; height: 18px; stroke-width: 2.2; transition: transform var(--dur-ui) var(--ease-out); }
.plan-more[open] .chev, .faq__item[open] .chev { transform: rotate(180deg); }
.plan-more[open] .plan-more__show, .plan-more:not([open]) .plan-more__hide { display: none; }
.plan-compare { align-items: center; gap: var(--space-2); align-self: flex-start; min-height: var(--touch-min); line-height: normal; font-weight: var(--weight-semibold); font-size: 15px; }
.plan-compare .icon { width: 18px; height: 18px; stroke-width: 2.2; }

@media (max-width: 720px) {
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pricing-card { gap: var(--space-2); padding: var(--space-4) var(--space-3); min-width: 0; }
  .pricing-card__chip, .pricing-card__kicker, .pricing-card__billing, .pricing-card__extra { display: none; }
  .pricing-card__name { font-size: 18px; }
  .pricing-card__price { font-size: 26px; }
  .pricing-card__unit { font-size: 13px; }
  .pricing-card .pricing-card__codes, .pricing-grid--compact .pricing-card__codes {
    margin-top: 0; padding-top: 0; border-top: 0; font-family: var(--font-mono); font-weight: var(--weight-medium); font-size: 11px; line-height: 1.35; color: inherit;
  }
  .pricing-grid--compact .pricing-card__codes { font-weight: var(--weight-regular); }
  .pricing-card__codes-long { display: none; }
  .pricing-card__codes-short { display: inline; }
  .pricing-card__cta, .pricing-grid--compact .pricing-card__cta { min-height: 40px; }
  .plan-more { display: block; }
  .plan-compare { display: inline-flex; }
  .plans:has(.plan-more[open]) .pricing-card__extra { display: block; }
  .plans:has(.plan-more[open]) ul.pricing-card__extra { display: flex; }
}

/* — commitment: the events table is the page — */
.commitment > :not(table) { max-width: 68ch; }
.commitment h2 { margin-top: var(--space-6); }
.commitment .callout { margin: 0 0 var(--space-4); padding: var(--space-4) var(--space-6); font-size: 17px; background: var(--color-surface-2); border-radius: var(--radius-card); }
.commitment code { font-family: var(--font-mono); font-size: 0.92em; }
.commitment-table { width: 100%; margin: 0 0 var(--space-4); border-collapse: collapse; font-size: 14px; }
.commitment-table th, .commitment-table td { padding: var(--space-3); text-align: start; vertical-align: top; border-bottom: 1px solid var(--color-line); }
.commitment-table thead th { font-size: 13px; font-weight: var(--weight-semibold); color: var(--color-text-muted); }
.commitment-table tbody th { width: 14%; font-weight: var(--weight-semibold); }
@media (max-width: 720px) {
  .commitment-table, .commitment-table tbody, .commitment-table tr, .commitment-table th, .commitment-table td { display: block; }
  .commitment-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .commitment-table tr { padding: var(--space-3) 0; border-bottom: 1px solid var(--color-line); }
  .commitment-table th, .commitment-table td { padding: var(--space-1) 0; border: 0; }
  .commitment-table tbody th { width: auto; font-size: 17px; }
  .commitment-table td::before { content: attr(data-label); display: block; font-size: 13px; font-weight: var(--weight-semibold); color: var(--color-text-muted); }
}
.page h2.eyebrow { margin: 0 0 var(--space-2); }

/* — status: the abuse counter, and the empty states that say nothing is published yet — */
.status-figure { margin: 0 0 var(--space-1); font-size: 40px; font-weight: var(--weight-heavy); line-height: 1.1; letter-spacing: -0.02em; }
.status-empty { color: var(--color-text-muted); }
.page--status .commitment-table tbody th { width: 28%; }

/* — a band: a dark section that bleeds past the page column —
   The band is as wide as the column with its side padding (the board's inner box), its own padding puts the content back on
   the column, and it paints sideways with a spread shadow clipped to the sides, which adds no scrollable overflow. Its colours
   are site.css `.band`. */
.band { margin-inline: calc(-1 * clamp(16px, 4vw, 40px)); padding-inline: clamp(16px, 4vw, 40px); box-shadow: 0 0 0 100vmax var(--color-band); clip-path: inset(0 -100vmax); }

/* On About the page is a two-column grid at 1024px and up (info.css); a band spans both columns, as the panel it replaced did. */
.page--about > .band { grid-column: 1 / -1; }

/* — timeline: what happens when paid access ends (home) and the three rules (about) — */
.timeline { display: flex; flex-direction: column; gap: 56px; padding-block: clamp(72px, 10vw, 144px); }
.timeline__head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: var(--space-8); align-items: end; }
.timeline__head .section-title { font-size: clamp(40px, 6vw, 88px); line-height: 0.96; letter-spacing: -0.035em; }
.timeline__head .lede { max-width: 520px; line-height: 1.55; }
.timeline__steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 2px;
  margin: 0; padding: 0; list-style: none; overflow: hidden;
  border: 1px solid var(--color-band-line); border-radius: var(--radius-card);
}
.timeline__step {
  display: flex; flex-direction: column; gap: var(--space-4); padding: 28px var(--space-6) var(--space-8);
  background: color-mix(in oklab, var(--color-band) 85%, white 6%); border-inline-end: 1px solid var(--color-band-line);
}
.timeline__step:last-child { border-inline-end: 0; }
.timeline__day { font-size: 12px; font-weight: var(--weight-regular); line-height: normal; color: var(--color-band-muted); }
.timeline__title { margin: 0; font-family: var(--font-display); font-size: 28px; font-weight: var(--weight-bold); line-height: 1.05; letter-spacing: -0.02em; }
.band .timeline__title--accent { color: var(--color-highlight); }
.timeline__body { margin: 0; line-height: 1.5; color: var(--color-band-muted); }
.timeline__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin: 0; }
.timeline__foot .btn { min-height: 52px; padding: 0 var(--space-6); font-size: 16px; line-height: normal; }
.timeline__foot .btn .icon { width: 18px; height: 18px; stroke-width: 2.2; }
.timeline__version { font-size: 14px; color: var(--color-band-muted); }
@media (max-width: 1023px) { .timeline__step { border-inline-end: 0; } }
@media (max-width: 720px) {
  .timeline { gap: var(--space-8); }
  .timeline__step { gap: 6px; padding: var(--space-4) 18px 18px; }
  .timeline__title { font-size: 22px; }
  .timeline__body { font-size: 15px; line-height: 1.45; }
}

/* The three rules (about): a numbered chip, a smaller title, a looser body. */
.timeline--rules { gap: 36px; padding-block: clamp(56px, 7vw, 96px); }
.timeline--rules .timeline__head { display: block; }
.timeline--rules .timeline__head .section-title { font-size: clamp(32px, 4vw, 56px); line-height: 1; letter-spacing: -0.03em; }
.timeline--rules .timeline__steps { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); border-radius: var(--radius-card); }
.timeline--rules .timeline__step { gap: var(--space-3); border-inline-end: 0; }
.timeline--rules .timeline__tag { align-self: flex-start; padding: 2px 6px; margin: 0; line-height: normal; font-family: var(--font-mono); font-size: 12px; font-weight: var(--weight-regular); }
.timeline--rules .timeline__title { font-size: 24px; line-height: 1.1; }
.timeline--rules .timeline__body { line-height: 1.55; }
.timeline--rules .timeline__foot .btn { min-height: 50px; padding: 0 22px; font-size: 15px; }

/* — tiers: the heading row, the monthly/yearly toggle and the notes — */
.tiers { gap: 20px; }
.tiers--compact { gap: 40px; }
.tiers__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-6); }
.tiers--full .tiers__head { justify-content: flex-start; }
.tiers__note { margin: 0; font-size: 15px; line-height: normal; color: var(--color-text-muted); }
.tiers__foot { margin: 0; max-width: 760px; font-size: 14px; line-height: 1.5; color: var(--color-text-muted); }
.tiers--compact .tiers__foot { max-width: 720px; }
.tiers__toggle { display: inline-flex; align-items: center; gap: var(--space-1); padding: var(--space-1); background: var(--color-surface); border: 1px solid var(--color-line); border-radius: 999px; }
.tiers__toggle .seg-opt { min-height: 40px; min-inline-size: 0; padding: 0 var(--space-4); gap: var(--space-2); font-size: 14px; }
.tiers__free { padding: 2px 6px; margin: 0; font-size: 11px; font-weight: var(--weight-regular); border-radius: 999px; }
.tier-period { display: contents; }
.tiers:has(input[value="monthly"]:checked) .tier-period--yearly,
.tiers:has(input[value="yearly"]:checked) .tier-period--monthly { display: none; }

/* — faq: a card per question — */
.faq { width: 100%; max-width: 860px; margin-inline: auto; gap: 20px; }
.faq .section-title { margin-bottom: var(--space-2); font-size: clamp(32px, 4vw, 48px); }
.faq__list { display: flex; flex-direction: column; gap: 20px; }
.faq__item { padding-inline: 20px; border: 1px solid var(--color-line); border-radius: 14px; background: var(--color-surface); }
.faq__question { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding-block: 18px; font-size: 16px; font-weight: var(--weight-semibold); line-height: normal; cursor: pointer; list-style: none; }
.faq__question::-webkit-details-marker { display: none; }
.faq__answer { padding-bottom: 20px; font-size: 15px; line-height: 1.55; color: var(--color-text-muted); }
.faq__answer p { margin: 0 0 var(--space-3); }
.faq__answer p:last-child { margin-bottom: 0; }

/* — closing band: the highlighter, ink text, one ink button, a tilted plate half out of the corner —
   The fill and the type are site.css `.cta-band--highlight`; this places the plate and keeps the button ink in both modes. */
.cta-band__plate {
  position: absolute; inset-inline-end: -4%; top: -20%; width: 46%; aspect-ratio: 1; box-sizing: border-box; padding: 3%;
  background: var(--color-qr-plate); border-radius: var(--radius-plate); transform: rotate(8deg); opacity: 0.96; box-shadow: var(--shadow-plate-cta);
}
.cta-band__plate svg { display: block; width: 100%; height: 100%; }
.cta-band__action { position: relative; margin: 0; }
.cta-band--highlight .lede { position: relative; color: inherit; }
.cta-band--highlight .btn-primary { min-height: 52px; padding: 0 var(--space-6); font-size: 16px; line-height: normal; background: var(--color-on-highlight); color: var(--color-on-band); }
.cta-band--highlight .btn-primary:hover { background: var(--color-on-highlight); }
.cta-band--highlight .btn .icon { width: 18px; height: 18px; stroke-width: 2.2; }
@media (min-width: 721px) and (max-width: 1023px) { .cta-band__plate { width: 32%; top: -12%; } }
@media (max-width: 720px) {
  .cta-band--highlight { padding-bottom: 40%; }
  .cta-band__plate { width: 56%; top: auto; bottom: -22%; inset-inline-end: -14%; opacity: 0.9; }
}
