/* The public pages (/info, /pricing, /contact). Self-contained: no script, no web fonts, no inline styles. */
:root {
  --bg: #ffffff; --bg-alt: #f5f7fa; --panel: #ffffff; --text: #16202c; --muted: #4a5666; --line: #d5dce6;
  --accent: #0b6e4f; --accent-text: #ffffff; --accent-soft: #e2f4ec; --warn-soft: #fff4d6; --warn-text: #5c4300;
  --danger-soft: #fde8e8; --danger-text: #8a1c1c; --focus: #1a5fd0; --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e141b; --bg-alt: #151d27; --panel: #151d27; --text: #e6ebf2; --muted: #a6b2c1; --line: #2a3644;
    --accent: #3ccf91; --accent-text: #06231a; --accent-soft: #12342a; --warn-soft: #3a3010; --warn-text: #f3d98a;
    --danger-soft: #3b1a1a; --danger-text: #f3b4b4; --focus: #7aa7ff;
  }
}
:root[data-theme="dark"] {
  --bg: #0e141b; --bg-alt: #151d27; --panel: #151d27; --text: #e6ebf2; --muted: #a6b2c1; --line: #2a3644;
  --accent: #3ccf91; --accent-text: #06231a; --accent-soft: #12342a; --warn-soft: #3a3010; --warn-text: #f3d98a;
  --danger-soft: #3b1a1a; --danger-text: #f3b4b4; --focus: #7aa7ff;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.pub { margin: 0; background: var(--bg); color: var(--text); line-height: 1.6;
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--panel); color: var(--text); padding: 8px 12px; border: 2px solid var(--focus); z-index: 10; }
.skip:focus { left: 8px; }
code { font: 0.92em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--bg-alt); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }

.pub-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.pub-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.pub-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; }
.pub-nav { flex: 1 1 auto; }
.pub-nav ul, .pub-footer ul, .crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.pub-nav a { color: var(--text); text-decoration: none; padding: 6px 2px; border-bottom: 2px solid transparent; display: inline-block; }
.pub-nav a:hover { border-bottom-color: var(--line); }
.pub-nav a[aria-current="page"] { border-bottom-color: var(--accent); font-weight: 600; }

main { padding-bottom: 48px; }
.crumbs { margin: 20px 0 0; font-size: 0.9rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 16px; color: var(--muted); }
.hero { padding: 32px 0 8px; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 1.5rem; line-height: 1.3; margin: 0 0 12px; }
h3 { font-size: 1.15rem; margin: 0 0 8px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; margin: 0 0 12px; }
.lead.small { font-size: 1rem; margin-top: 16px; }
.block { padding: 28px 0 0; }
.block > p, .block > .list { max-width: 46rem; }
.note { background: var(--accent-soft); border-radius: var(--radius); padding: 10px 14px; max-width: 46rem; }
.fine { color: var(--muted); font-size: 0.9rem; }
.list { padding-left: 1.25rem; margin: 0 0 12px; }
.list li { margin: 4px 0; }
.steps li { margin: 8px 0; }

.btn { display: inline-block; padding: 10px 18px; border-radius: 8px; border: 2px solid var(--accent); background: transparent; color: var(--accent);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-soft); }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent); filter: brightness(1.08); }
.btn-small { padding: 6px 14px; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { display: block; height: 100%; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); text-decoration: none; color: var(--text); }
.card:hover { border-color: var(--accent); }
.card-title { display: block; font-weight: 700; color: var(--accent); }
.card-text { display: block; color: var(--muted); margin-top: 4px; }

.terms { margin: 0; display: grid; gap: 10px; }
.terms div { border-left: 3px solid var(--accent); padding: 2px 0 2px 12px; }
.terms dt { font-weight: 700; }
.terms dd { margin: 0; color: var(--muted); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 12px; }
table { border-collapse: collapse; width: 100%; min-width: 520px; background: var(--panel); }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th, thead td { background: var(--bg-alt); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 600; }
.compare td, .compare thead th { text-align: center; }
.compare tbody th { text-align: left; }

/* Monthly / annual toggle: two radio buttons before the grid; the sibling selectors switch the prices, no script. */
.billing { margin: 0 0 12px; }
.toggle { display: inline-flex; border: 2px solid var(--accent); border-radius: 999px; overflow: hidden; margin: 0 0 18px; }
.toggle label { padding: 8px 18px; cursor: pointer; font-weight: 600; color: var(--accent); }
.toggle-note { font-weight: 400; font-size: 0.85em; }
#bill-month:checked ~ .toggle label[for="bill-month"],
#bill-year:checked ~ .toggle label[for="bill-year"] { background: var(--accent); color: var(--accent-text); }
#bill-month:focus-visible ~ .toggle label[for="bill-month"],
#bill-year:focus-visible ~ .toggle label[for="bill-year"] { outline: 3px solid var(--focus); outline-offset: 2px; }
.price-year { display: none; }
#bill-year:checked ~ .plans .price-year { display: inline; }
#bill-year:checked ~ .plans .price-month { display: none; }

.plans { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.plan { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--panel); }
.plan-rec { border: 2px solid var(--accent); }
.plan .list { flex: 1 1 auto; }
.plan-cta { margin: 8px 0 0; }
.tagline { color: var(--muted); margin: 0 0 8px; }
.price { font-size: 1.15rem; margin: 0 0 8px; }
.price strong { font-size: 1.7rem; }
.price-sub { color: var(--muted); font-size: 0.9rem; }
.badges { margin: 0 0 6px; }
.badge { display: inline-block; font-size: 0.8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.badge-available { background: var(--accent-soft); color: var(--accent); }
.badge-coming_soon { background: var(--warn-soft); color: var(--warn-text); }
.badge-rec { background: var(--accent); color: var(--accent-text); }

.two { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: var(--panel); }

.faq details { border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 10px; background: var(--panel); }
.faq summary { padding: 12px 16px; cursor: pointer; font-weight: 600; }
.faq details p { margin: 0; padding: 0 16px 14px; color: var(--muted); }

.form { max-width: 40rem; }
.field { margin: 0 0 16px; display: flex; flex-direction: column; gap: 4px; }
.field label { font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--muted); border-radius: 8px; padding: 10px 12px; width: 100%; }
.hint { color: var(--muted); font-size: 0.9rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: var(--radius); padding: 12px 16px; margin: 0 0 16px; max-width: 40rem; }
.alert p, .alert ul { margin: 0; }
.alert-ok { background: var(--accent-soft); }
.alert-error { background: var(--danger-soft); color: var(--danger-text); }

.pub-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 24px 0 32px; }
.pub-footer a { color: var(--text); }

@media (max-width: 640px) {
  .pub-bar { gap: 8px; }
  .pub-nav { order: 3; flex-basis: 100%; }
  .block { padding-top: 22px; }
}
@media (prefers-reduced-motion: no-preference) {
  .card, .btn { transition: border-color 0.15s, background-color 0.15s; }
}

/* Colour theme switch (theme.js builds it into [data-theme-switch]: System, Light, Dark). Dark values come from the
   variables above, so nothing here needs its own dark rule. */
.theme-slot { display: flex; margin: 16px 0 8px; }
.theme-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--panel); }
.theme-seg button { display: inline-flex; align-items: center; gap: 5px; border: 0; border-right: 1px solid var(--line); background: transparent;
  color: var(--text); font: inherit; font-size: 0.85rem; padding: 4px 10px; min-height: 32px; cursor: pointer; }
.theme-seg button:last-child { border-right: 0; }
.theme-seg button:hover { background: var(--bg-alt); }
.theme-seg button[aria-checked="true"] { background: var(--accent-soft); font-weight: 600; }
.theme-seg button:focus-visible { outline-offset: -3px; }
.theme-seg .icon { width: 14px; height: 14px; flex: none; }

/* Diagrams (public_diagrams.py): inline SVG coloured only by these classes, so they follow the theme variables above.
   A flow comes twice: .dg-w side by side for wide screens, .dg-n stacked for phones. */
.dg-fig { margin: 20px 0 16px; }
.dg-fig figcaption { color: var(--muted); font-size: 0.92rem; margin-top: 8px; max-width: 46rem; }
.dg { display: block; width: 100%; height: auto; max-width: 100%; font-family: inherit; }
.dg-n { display: none; max-width: 400px; margin: 0 auto; }
.dg-small { max-width: 520px; }
.dg-pair { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: 840px; }
.dg-panel { max-width: 420px; }
@media (max-width: 899px) {
  .dg-w { display: none; }
  .dg-n { display: block; }
}
.dg text { fill: var(--text); }
.dg .t-l { font-size: 16px; font-weight: 700; }
.dg .t-sm { font-size: 14px; }
.dg .t-s { font-size: 13px; fill: var(--muted); }
.dg .t-e { font-size: 12.5px; fill: var(--muted); }
.dg .t-g { font-size: 13px; font-weight: 700; letter-spacing: 0.02em; }
.dg .t-gn { font-size: 12.5px; font-weight: 600; }
.dg .t-h { font-size: 17px; font-weight: 700; }
.dg .n { fill: var(--panel); stroke: var(--line); stroke-width: 1.5; }
.dg .n-acc { stroke: var(--accent); stroke-width: 2; }
.dg .g { stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 6 5; }
.dg .g-tk { fill: var(--bg-alt); }
.dg .g-you { fill: var(--accent-soft); }
.dg .ic, .fm-ic .ic { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dg .ln { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.dg .ln-back, .dg .ln-alt { fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-dasharray: 5 4; }
.dg .tun-o { fill: none; stroke: var(--accent); stroke-width: 12; stroke-linecap: round; }
.dg .tun-i { fill: none; stroke: var(--panel); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 3 5; }
.dg .hd { fill: var(--accent); }
.dg .hd-back { fill: var(--muted); }
.dg .bd circle { fill: var(--accent); }
.dg .bd text { fill: var(--accent-text); font-size: 13px; font-weight: 700; }

/* The feature map: real text in a grid that wraps, with icons from the same set. */
.fm { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.fm-group { border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); background: var(--panel); padding: 12px 14px; }
.fm-title { margin: 0 0 8px; font-weight: 700; }
.fm-title a { color: var(--text); text-decoration: none; }
.fm-title a:hover { text-decoration: underline; }
.fm ul { list-style: none; margin: 0; padding: 0; }
.fm li { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0; font-size: 0.95rem; }
.fm-ic { flex: none; width: 22px; height: 22px; margin-top: 1px; }
