/*
 * The Curule site's one stylesheet. The colours are brand/tokens.css under the names the pages use (a test compares them
 * value by value and recomputes the contrast), the type is the system's own (nothing is downloaded), and the visitor's
 * colour scheme is the only switch: no theme toggle, no stored choice.
 */
:root {
  color-scheme: light dark;
  --bg: #fbfaf8; --panel: #ffffff; --ink: #1c1b1a; --muted: #5d5a55; --line: #e4e0d9;
  --accent: #2b5fd9; --accent-ink: #ffffff;
  --ok: #1d7a46; --warn: #8a5a00; --code: #f2efe9;
  --lift: 0 1px 2px rgba(28, 27, 26, .05), 0 24px 60px -28px rgba(28, 27, 26, .28);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131211; --panel: #1b1a18; --ink: #efece6; --muted: #aaa59c; --line: #302e2a;
    --accent: #7ba0ff; --accent-ink: #0e1220;
    --ok: #5ac488; --warn: #e0b04a; --code: #23211e;
    --lift: 0 1px 2px rgba(0, 0, 0, .4), 0 24px 60px -28px rgba(0, 0, 0, .8);
  }
}
:root {
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 112px);
  --radius: 12px;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 18px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
main:focus { outline: none; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }

h1, h2, h3, h4 { margin: 0; font-weight: 650; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.3rem + 5.2vw, 4.75rem); line-height: 1.02; letter-spacing: -.04em; }
h2 { font-size: clamp(1.75rem, 1.15rem + 2.4vw, 2.875rem); line-height: 1.08; letter-spacing: -.032em; }
h3 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -.012em; }
h4 { font-size: 1rem; line-height: 1.4; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
code, kbd, samp { font-family: var(--mono); font-size: .875em; }
:not(pre) > code { background: var(--code); border: 1px solid var(--line); border-radius: 6px; padding: .1em .38em; overflow-wrap: anywhere; }
b, strong { font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* ---------------------------------------------------------------- layout */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: var(--section); }
.band { background: var(--panel); border-block: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .title { margin-bottom: 20px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; color: var(--muted); font-size: .75rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.lede { color: var(--muted); font-size: clamp(1.0625rem, .98rem + .4vw, 1.3125rem); line-height: 1.55; max-width: 40rem; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
.cols > * { min-width: 0; }
.cols > .section-head { margin-bottom: 0; }
@media (min-width: 900px) { .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(1px)) and (background: color-mix(in srgb, red 50%, blue)) {
  .site-header { background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px); }
}
.bar { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.logo { display: block; height: 26px; width: auto; }
.logo .ink { stroke: var(--ink); }
.logo .seat { fill: var(--accent); }
.nav-main { display: none; margin-left: 20px; }
.nav-main a, .menu-panel a { color: var(--muted); font-weight: 500; text-decoration: none; }
.nav-main a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; font-size: .9375rem; }
.nav-main a:hover, .menu-panel a:hover { color: var(--ink); }
.nav-main a[aria-current="page"], .menu-panel a[aria-current="page"] { color: var(--ink); }
.nav-main a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.bar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.signin { display: none; align-items: center; min-height: 44px; padding: 0 12px; color: var(--muted); font-size: .9375rem; font-weight: 500; text-decoration: none; }
.signin:hover { color: var(--ink); }
@media (min-width: 860px) {
  .nav-main { display: flex; }
  .signin { display: inline-flex; }
  .menu { display: none; }
}
.menu summary { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); font-size: .9375rem; font-weight: 600; cursor: pointer; list-style: none; user-select: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu-icon { position: relative; width: 16px; height: 12px; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 1px; background: currentColor; }
.menu-icon::before { top: 1px; }
.menu-icon::after { bottom: 1px; }
.menu[open] .menu-icon::before { top: 5px; transform: rotate(45deg); }
.menu[open] .menu-icon::after { bottom: 5px; transform: rotate(-45deg); }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -30px rgba(0, 0, 0, .35); }
.menu-panel nav { display: grid; width: min(100% - 2 * var(--gutter), var(--max)); margin: 0 auto; padding: 8px 0 16px; }
.menu-panel a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
.menu-panel a:last-child { border-bottom: 0; }
.menu-panel a[hidden] { display: none; }
@media (max-width: 420px) { .bar .btn { padding-inline: 14px; white-space: nowrap; } .bar-actions { gap: 6px; } .logo { height: 24px; } }
/* On the narrowest phones the menu is its icon, and still says "Menu" to a screen reader. */
@media (max-width: 359px) {
  .menu summary { padding: 0; width: 44px; justify-content: center; }
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .bar .btn { padding-inline: 12px; font-size: .875rem; }
}

/* ---------------------------------------------------------------- buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: 0 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); font: 600 .9375rem/1.2 var(--font); text-align: center; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--muted); text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); border-color: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 1rem; }
.arrow-link { display: inline-flex; align-items: center; gap: .4em; min-height: 44px; font-weight: 600; text-decoration: none; }
.arrow-link::after { content: "\2192"; }
.arrow-link:hover::after { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------------------------------------------------------- hero */
.hero { padding-top: clamp(48px, 8vw, 104px); }
.hero h1 { max-width: 22ch; }
.hero .lede { margin-top: 28px; }
.hero .btn-row { margin-top: 36px; }
.facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: clamp(40px, 6vw, 64px) 0 clamp(32px, 5vw, 48px); padding: 0; list-style: none; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts strong { font-size: .9375rem; }
.facts span { color: var(--muted); font-size: .875rem; line-height: 1.5; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(2, 1fr); column-gap: 32px; } }
@media (min-width: 1000px) {
  .facts { grid-template-columns: repeat(4, 1fr); column-gap: 0; border-bottom: 1px solid var(--line); }
  .facts li { padding: 20px 24px; border-bottom: 0; border-left: 1px solid var(--line); }
  .facts li:first-child { padding-left: 0; border-left: 0; }
}

/* ---------------------------------------------------------------- product frame and tabs */
.frame { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--lift); }
.frame-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--bg); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.frame-bar span { margin-left: 10px; color: var(--muted); font: 12px/1 var(--mono); }
.frame img { display: block; width: 100%; height: auto; }
.frame figcaption { margin: 0; padding: 14px 18px; border-top: 1px solid var(--line); background: var(--bg); color: var(--muted); font-size: .875rem; line-height: 1.5; }
.frame figcaption b { color: var(--ink); }
.showcase { position: relative; }
.tab-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; width: fit-content; max-width: 100%; margin-bottom: 18px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.tabs label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 8px; color: var(--muted); font-size: .9375rem; font-weight: 600; cursor: pointer; user-select: none; }
.tabs label:hover { color: var(--ink); }
.pane { display: none; margin: 0; }
.tab-input:nth-of-type(1):checked ~ .frame .pane:nth-of-type(1),
.tab-input:nth-of-type(2):checked ~ .frame .pane:nth-of-type(2),
.tab-input:nth-of-type(3):checked ~ .frame .pane:nth-of-type(3),
.tab-input:nth-of-type(4):checked ~ .frame .pane:nth-of-type(4) { display: block; }
.tab-input:nth-of-type(1):checked ~ .tabs label:nth-child(1),
.tab-input:nth-of-type(2):checked ~ .tabs label:nth-child(2),
.tab-input:nth-of-type(3):checked ~ .tabs label:nth-child(3),
.tab-input:nth-of-type(4):checked ~ .tabs label:nth-child(4) { background: var(--ink); color: var(--bg); }
.tab-input:nth-of-type(1):focus-visible ~ .tabs label:nth-child(1),
.tab-input:nth-of-type(2):focus-visible ~ .tabs label:nth-child(2),
.tab-input:nth-of-type(3):focus-visible ~ .tabs label:nth-child(3),
.tab-input:nth-of-type(4):focus-visible ~ .tabs label:nth-child(4) { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------------------------------------------------------------- cards and grids */
.card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.band .card { background: var(--bg); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .9375rem; }
.card p:last-child { margin-bottom: 0; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 600px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; list-style: none; counter-reset: step; border-top: 1px solid var(--line); }
.steps li { position: relative; counter-increment: step; padding: 28px 0 28px 64px; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 28px; color: var(--accent); font: 600 1.0625rem/1.3 var(--mono); }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: .9375rem; }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
  .steps li { padding: 32px 32px 32px 0; border-bottom: 0; }
  .steps li + li { padding-left: 32px; border-left: 1px solid var(--line); }
  .steps li::before, .steps li + li::before { position: static; display: block; margin-bottom: 14px; }
}

.tiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 4vw, 48px) 24px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile .frame { box-shadow: none; }
.tile:hover .frame { border-color: var(--muted); }
.tile h3 { margin: 20px 0 8px; }
.tile p { color: var(--muted); font-size: .9375rem; max-width: 34rem; }
.tile .frame img { aspect-ratio: 8 / 5; object-fit: cover; }

/* ---------------------------------------------------------------- code */
.code { margin: 14px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--code); }
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; font: .84375rem/1.7 var(--mono); tab-size: 2; }
.code-bar { display: flex; justify-content: flex-end; padding: 6px 6px 0; }
.code .copy { min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); font: 600 .8125rem/1 var(--font); cursor: pointer; }
.code .copy:hover { border-color: var(--muted); }
.code-bar + pre { padding-top: 8px; }
@media (max-width: 719px), (pointer: coarse) { .code .copy { min-height: 44px; } }
.try { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: try; }
.try > li { position: relative; counter-increment: try; padding: 0 0 32px 56px; }
.try > li::before { content: counter(try); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); font: 600 .9375rem/1 var(--mono); }
.try > li::after { content: ""; position: absolute; left: 17.5px; top: 40px; bottom: 6px; width: 1px; background: var(--line); }
.try > li:last-child { padding-bottom: 0; }
.try > li:last-child::after { display: none; }
.try h3 { margin-bottom: 6px; }
.try p { color: var(--muted); font-size: .9375rem; }

/* ---------------------------------------------------------------- notices, tags, pills */
.notice { margin: 0; padding: 16px 20px; border: 1px solid var(--line); border-left: 4px solid var(--warn); border-radius: 0 10px 10px 0; background: var(--panel); font-size: .9375rem; }
.band .notice { background: var(--bg); }
.notice b { color: var(--warn); }
.notice.neutral { border-left-color: var(--accent); }
.notice.neutral b { color: var(--ink); }
.tag { display: inline-block; padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.band .tag { background: var(--code); }

/* ---------------------------------------------------------------- faq */
.faq { 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: 64px; padding: 14px 48px 14px 0; font-size: 1.0625rem; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); }
.faq details[open] summary::after { margin-top: -2px; transform: rotate(-135deg); }
.faq summary:hover { color: var(--accent); }
.faq .answer { max-width: 46rem; padding: 0 0 24px; color: var(--muted); }
.faq .answer p { margin-bottom: .8em; }

/* ---------------------------------------------------------------- call to action */
.cta .wrap { padding: clamp(32px, 6vw, 72px); border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.cta h2 { max-width: 20ch; margin-bottom: 20px; }
.cta .lede { margin-bottom: 32px; }

/* ---------------------------------------------------------------- footer */
.site-footer { padding: clamp(48px, 7vw, 80px) 0 40px; border-top: 1px solid var(--line); background: var(--bg); color: var(--muted); font-size: .9375rem; }
.foot-grid { display: grid; gap: 40px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.foot-brand { grid-column: 1 / -1; max-width: 22rem; }
.foot-brand p { margin: 14px 0 0; }
.foot-contact a { color: var(--ink); }
.foot-col h2 { margin: 0 0 12px; color: var(--ink); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.foot-col ul { display: grid; gap: 0; list-style: none; }
.foot-col a { display: inline-flex; align-items: center; min-height: 36px; color: var(--muted); text-decoration: none; }
.foot-col a:hover { color: var(--ink); text-decoration: underline; }
.foot-col a[aria-current="page"] { color: var(--ink); }
@media (max-width: 859px), (pointer: coarse) { .foot-col a { min-height: 44px; } }
@media (min-width: 860px) {
  .foot-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
  .foot-brand { grid-column: auto; }
}
.foot-legal { display: grid; gap: 6px; margin-top: clamp(40px, 6vw, 64px); padding-top: 24px; border-top: 1px solid var(--line); font-size: .8125rem; line-height: 1.6; }
.foot-legal p { margin: 0; max-width: 60rem; }

/* ---------------------------------------------------------------- inner pages */
.page-head { padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 18ch; font-size: clamp(2.25rem, 1.2rem + 4.4vw, 4rem); }
.page-head .lede { margin-top: 24px; }
.prose { max-width: 44rem; }
.prose h2 { margin: 56px 0 16px; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.125rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 32px 0 8px; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.25em; }
.prose li { margin-bottom: .45em; padding-left: .2em; }
.prose li::marker { color: var(--muted); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink); font-size: .9375rem; font-weight: 600; text-decoration: none; }
.toc a:hover { border-color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px 56px; padding-block: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.split:last-child { border-bottom: 0; }
.split > header h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.125rem); }
.split > header p { margin-top: 12px; color: var(--muted); font-size: .9375rem; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .split > header { position: sticky; top: 100px; align-self: start; } }
.rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.rows > li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.rows b { font-size: 1rem; }
.rows span { color: var(--muted); font-size: .9375rem; }

/* ---------------------------------------------------------------- pricing */
.billing-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.billing { display: inline-flex; gap: 4px; margin: 0 0 24px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.billing label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 8px; color: var(--muted); font-size: .9375rem; font-weight: 600; cursor: pointer; user-select: none; }
.billing label small { color: inherit; font-size: .8125rem; font-weight: 500; opacity: .9; }
@media (max-width: 420px) { .billing label { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; padding: 4px 14px; line-height: 1.25; } .billing label small { font-size: .75rem; } }
.billing-input:nth-of-type(1):checked ~ .billing label:nth-child(1),
.billing-input:nth-of-type(2):checked ~ .billing label:nth-child(2) { background: var(--ink); color: var(--bg); }
.billing-input:nth-of-type(1):focus-visible ~ .billing label:nth-child(1),
.billing-input:nth-of-type(2):focus-visible ~ .billing label:nth-child(2) { outline: 3px solid var(--accent); outline-offset: 2px; }
.billing-input:nth-of-type(1):checked ~ .plans .price-monthly,
.billing-input:nth-of-type(2):checked ~ .plans .price-annual { display: none; }
.plans { display: grid; gap: 0 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { display: grid; grid-row: span 6; grid-template-rows: subgrid; margin-bottom: 16px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.plan-head h3 { font-size: 1.375rem; }
.plan-tag { margin: 8px 0 0; color: var(--muted); font-size: .9375rem; line-height: 1.5; }
.plan-price { margin: 20px 0 0; }
.price { margin: 0; font-variant-numeric: tabular-nums; }
.price .amount { display: block; font-size: 2.5rem; font-weight: 650; line-height: 1.1; letter-spacing: -.035em; }
.price .per { display: block; margin-top: 6px; color: var(--muted); font-size: .875rem; line-height: 1.45; }
.plan-limits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 20px 0 0; align-self: start; }
.plan-limits div { display: flex; flex-direction: column-reverse; padding: 10px 6px; border-radius: 8px; background: var(--code); text-align: center; }
.plan-limits dt { color: var(--muted); font-size: .75rem; line-height: 1.3; }
.plan-limits dd { margin: 0; font-size: 1.375rem; font-weight: 650; line-height: 1.3; font-variant-numeric: tabular-nums; }
.plan-includes { margin: 20px 0 0; padding: 0; list-style: none; font-size: .9375rem; }
.plan-includes li { position: relative; margin-bottom: 8px; padding-left: 22px; }
.plan-includes li::before { content: ""; position: absolute; left: 3px; top: .5em; width: 8px; height: 5px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.plan-meta { margin: 8px 0 0; font-size: .875rem; }
.plan-meta p { margin: 0 0 8px; }
.plan-support { color: var(--muted); }
.plan-planned { color: var(--warn); }
.plan-cta { margin: 16px 0 0; align-self: end; }
.plan-cta .btn { width: 100%; }
.unit { white-space: nowrap; }

.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.compare { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 0; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.compare caption { text-align: left; }
.compare th, .compare td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { background: var(--panel); font-size: 1rem; }
.compare tbody th { width: 24%; font-weight: 600; background: var(--panel); position: sticky; left: 0; z-index: 1; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr:hover td, .compare tbody tr:hover th { background: var(--bg); }
.compare .yes { color: var(--ok); font-weight: 600; }
.compare .no { color: var(--muted); }

.calc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 860px) { .calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; } }
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 6px; font-size: .9375rem; font-weight: 600; }
.field input[type=number], .field select { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); font: 1rem var(--font); }
.field input[type=number]:hover, .field select:hover { border-color: var(--muted); }
.field .hint { margin-top: 6px; color: var(--muted); font-size: .875rem; }
.field-check { display: flex; gap: 12px; align-items: center; min-height: 44px; }
.field-check input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--accent); }
.field-check label { display: flex; flex: 1; align-items: center; min-height: 44px; margin: 0; font-weight: 500; cursor: pointer; }
.result { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.result .row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.result .row:last-of-type { border-bottom: 0; }
.result .who { color: var(--muted); font-size: .8125rem; font-weight: 400; }
.result .total { font-size: 1.5rem; font-weight: 650; letter-spacing: -.02em; }
.result .fine { margin-top: 12px; color: var(--muted); font-size: .875rem; }

/* plan teaser on the home page */
.teaser { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 600px) { .teaser { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .teaser { grid-template-columns: repeat(4, 1fr); } }
.teaser li { display: flex; flex-direction: column; gap: 6px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.band .teaser li { background: var(--bg); }
.teaser h3 { font-size: 1.125rem; }
.teaser .amount { font-size: 2rem; font-weight: 650; line-height: 1.15; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.teaser .per, .teaser .limits { color: var(--muted); font-size: .875rem; line-height: 1.45; }
.teaser .limits { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------- documents */
.doc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 720px) { .doc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .doc-grid { grid-template-columns: repeat(3, 1fr); } }
.doc-card { display: flex; flex-direction: column; gap: 6px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.doc-card:hover, .doc-card:focus-within { border-color: var(--muted); }
.doc-card h2, .doc-card h3 { font-size: 1.1875rem; letter-spacing: -.012em; line-height: 1.3; }
.doc-card > p { color: var(--muted); font-size: .9375rem; }
.legend-title { font-size: 1.375rem; line-height: 1.25; letter-spacing: -.02em; }
.legend b { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.doc-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 12px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.doc-list li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.doc-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.doc-list a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.doc-list .path { color: var(--muted); font: .8125rem/1.4 var(--mono); overflow-wrap: anywhere; }
.doc-list .about { color: var(--muted); font-size: .875rem; }
.doc-list .head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.group { margin: 40px 0 12px; color: var(--muted); font-size: .8125rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.group:first-child { margin-top: 0; }
.plain { margin: 0; padding: 0; list-style: none; counter-reset: plain; border-top: 1px solid var(--line); }
.plain li { position: relative; counter-increment: plain; padding: 14px 0 14px 44px; border-bottom: 1px solid var(--line); }
.plain li::before { content: counter(plain); position: absolute; left: 0; top: 14px; color: var(--accent); font: 600 .9375rem/1.6 var(--mono); }
.tick { margin: 0 0 16px; padding: 0; list-style: none; font-size: .9375rem; }
.tick li { position: relative; margin-bottom: 6px; padding-left: 22px; color: var(--muted); }
.tick li::before { content: ""; position: absolute; left: 3px; top: .5em; width: 8px; height: 5px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.contact h2 { font-size: 1.5rem; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 8px; }
.contact h3 { margin: 20px 0 8px; font-size: .8125rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact .address { margin: 16px 0 0; font-size: 1.0625rem; font-weight: 600; overflow-wrap: anywhere; }
.contact .small { color: var(--muted); }

/* ---------------------------------------------------------------- not found */
.nf { padding: clamp(64px, 14vw, 160px) 0; }
.nf h1 { max-width: 14ch; }
.nf .lede { margin: 24px 0 32px; }

/* The pages carry no style attributes (their content security policy forbids them): spacing is a class. */
.mt-s { margin-top: 16px; }
.mt-m { margin-top: 24px; }
.mt-l { margin-top: 32px; }
.mt-xl { margin-top: clamp(32px, 5vw, 56px); }
.measure { max-width: 46rem; }

/* ---------------------------------------------------------------- motion: only when the visitor has not asked for less */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .btn, .toc a, .tabs label, .billing label, .copy { transition: background-color .15s, border-color .15s, color .15s; }
  .card, .teaser li, .doc-card { transition: border-color .15s, transform .15s; }
  .card:hover, .doc-card:hover { transform: translateY(-2px); }
  .tile .frame { transition: border-color .15s; }
  .arrow-link::after, .faq summary::after { transition: transform .15s; }
  .menu-icon::before, .menu-icon::after { transition: transform .18s, top .18s, bottom .18s; }
}
/* A forced-colour mode (Windows high contrast) replaces the fill that marks the chosen tab or billing period: say it in system colours. */
@media (forced-colors: active) {
  .tab-input:nth-of-type(1):checked ~ .tabs label:nth-child(1),
  .tab-input:nth-of-type(2):checked ~ .tabs label:nth-child(2),
  .tab-input:nth-of-type(3):checked ~ .tabs label:nth-child(3),
  .tab-input:nth-of-type(4):checked ~ .tabs label:nth-child(4),
  .billing-input:nth-of-type(1):checked ~ .billing label:nth-child(1),
  .billing-input:nth-of-type(2):checked ~ .billing label:nth-child(2) { forced-color-adjust: none; background: Highlight; color: HighlightText; }
}
@media print {
  .site-header, .skip, .tabs, .billing, .copy, .site-footer .foot-grid { display: none; }
  body { background: #fff; color: #000; }
}
