/* The site's static pages — /guide/, /wall-clock/, /questions/ and /plans/ — share this.

   Static on purpose: no framework and no web fonts, since a page that calls a
   font CDN hands the reader's address to a third party. The colours are the
   app's own, both themes: each page follows `cul.theme.v1` when the reader
   has chosen one in the app, and is light otherwise, as the app is. */

:root {
  --bg: #f5f5f3; --surface: #ffffff; --line: #e4e4e1;
  --text: #171717; --text-2: #3d3d3b; --muted: #666666;
  --accent: #ff3330; --accent-text: #b82523; --accent-soft: rgba(255, 51, 48, 0.08); --accent-line: rgba(255, 51, 48, 0.35);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b0b0b; --surface: #141414; --line: #262626;
  --text: #f2f2f0; --text-2: #c8c8c5; --muted: #9b9b98;
  --accent-text: #ff5c52; --accent-soft: rgba(255, 51, 48, 0.13);
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding-inline: 20px; padding-block: 0 80px;
}
header.bar {
  max-width: 760px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 72px; border-bottom: 1px solid var(--line);
}
.wordmark { color: var(--text); text-decoration: none; }
/* The logo, drawn in the page's ink so it follows the theme; the app's headers draw it at the same 22px. */
.wordmark svg { display: block; height: 22px; width: 89.9px; }
a { color: var(--accent-text); text-underline-offset: 3px; }
/* The identity red is 3.64:1 under white text, which is enough for a
   graphic and not for a word — so the button is the app's own raised-on
   look: the deep red on a tint of it, with a hairline. */
.cta {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 12px;
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-text);
  font-weight: 600; font-size: 14px; text-decoration: none;
}
.cta.big { min-height: 44px; padding: 0 20px; font-size: 15px; }
main { max-width: 760px; margin: 0 auto; }
.eyebrow { font: 500 11px/1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-text); margin: 48px 0 12px; }
h1 { font-size: clamp(30px, 6vw, 42px); line-height: 1.1; margin: 0 0 16px; letter-spacing: -0.02em; text-wrap: balance; }
.lede { color: var(--text-2); font-size: 18px; max-width: 62ch; margin: 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
nav.toc { margin: 32px 0 8px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
nav.toc ol { margin: 0; padding-left: 20px; columns: 2 220px; column-gap: 32px; }
nav.toc li { margin: 0; }
/* Every link at least 28px tall, the floor the app holds its controls to. */
nav.toc a, footer a, .wordmark, .actions a:not(.cta), .more a { display: inline-flex; align-items: center; min-height: 28px; }
section { margin-top: 56px; }
h2 { font-size: 24px; letter-spacing: -0.01em; margin: 0 0 12px; text-wrap: balance; }
h3 { font-size: 17px; margin: 24px 0 6px; }
p, li { max-width: 68ch; color: var(--text-2); }
ol.steps { padding-left: 22px; }
ol.steps li { margin: 10px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td, tr:last-child th { border-bottom: 0; }
thead th { font: 500 11px/1.4 ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
tbody th { font-weight: 600; color: var(--text); white-space: nowrap; }
td.n { font-variant-numeric: tabular-nums; }
.wrap { overflow-x: auto; }
code, .mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.92em; }
.note { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 12px 16px; border-radius: 0 10px 10px 0; color: var(--text); }
.muted { color: var(--muted); font-size: 14px; }
/* Two plain columns of facts: not cards, just a hairline above each. */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 28px; margin-top: 8px; }
.facts div { padding-top: 12px; border-top: 1px solid var(--line); }
.facts b { display: block; color: var(--text); font-weight: 600; }
.facts span { color: var(--text-2); font-size: 15px; }
/* Plan and tier cards, on /plans/: the one place these pages lift something
   off the ground, because prices are read side by side. The plan being sold
   carries the accent as an edge, not as a fill. */
/* Set counts rather than auto-fit, so three plans and four tiers never leave
   one card alone on a row. */
.plans { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 480px) { .plans.tiers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 780px) { .plans.tiers { grid-template-columns: repeat(4, 1fr); } }
.plans > div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.plans > div.lead { border-color: var(--accent-line); box-shadow: inset 0 3px 0 var(--accent); }
.plans h3 { margin: 0; font-size: 17px; color: var(--text); }
.plans .price { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); font-variant-numeric: tabular-nums; }
.plans .price small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plans .price.off { font-size: 18px; font-weight: 600; color: var(--muted); }
.plans p { margin: 0; font-size: 15px; }
.plans ul { margin: 6px 0 0; padding-left: 18px; }
.plans li { margin: 4px 0; font-size: 15px; }
.plans a { display: inline-flex; align-items: center; min-height: 28px; margin-top: auto; padding-top: 6px; }
/* /plans/, laid out the way SnapFrames lays out its own: a centred head, a
   choice of how to pay, the tiers side by side with one marked, and a list of
   what every one of them gets. Wider than the reading pages, because four
   prices want to be read across a row. */
body.wide header.bar, body.wide main, body.wide footer { max-width: 1040px; }
.pricing-head { text-align: center; }
.pricing-head .lede, .pricing-head p { margin-inline: auto; }
.pricing-head .muted { margin-top: 12px; }
.method { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px auto 0; padding: 0; border: 0; }
.method legend { width: 100%; text-align: center; font: 500 11px/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.method label { display: flex; align-items: flex-start; gap: 10px; min-height: 28px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; min-width: 200px; }
.method label:has(input:checked) { border-color: var(--accent-line); background: var(--accent-soft); }
.method input { margin: 3px 0 0; accent-color: var(--accent-text); }
.method b { display: block; color: var(--text); font-size: 15px; }
.method small { color: var(--muted); font-size: 13px; }
.plans.pricing { margin-top: 28px; }
.plans.pricing > div { position: relative; padding-top: 22px; }
.plans.pricing > div:has(.badge) { border-color: var(--accent-line); box-shadow: inset 0 3px 0 var(--accent); }
.badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); padding: 3px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--accent-line); color: var(--accent-text); font: 600 11px/1.3 ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
.choose { margin-top: auto; min-height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 600 14px/1.2 inherit; font-family: inherit; cursor: pointer; }
.choose.lead { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-text); }
.choose:disabled { cursor: not-allowed; }
.plans.pricing > div p:last-of-type { margin-bottom: 12px; }
.status { text-align: center; margin: 16px auto 0; color: var(--muted); font-size: 14px; }
ul.checks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: 1fr; gap: 10px 32px; }
@media (min-width: 640px) { ul.checks { grid-template-columns: 1fr 1fr; } }
ul.checks li { position: relative; padding-left: 26px; margin: 0; max-width: none; }
ul.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent-text); font-weight: 700; }
.qa h2 { font-size: 19px; margin-bottom: 8px; }
.qa section { margin-top: 36px; }
.more { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 16px; }
footer { max-width: 760px; margin: 72px auto 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 4px; }
@media (max-width: 520px) { body { padding-inline: 16px; } .lede { font-size: 16px; } header.bar .cta { padding: 0 12px; } }
