/* CA Pilot website. Tokens are the app's (docs/brand.md on the capilot-brand branch): same colours, IBM Plex, 10–12 px corners. */
:root {
  --bg: #ECEEF1; --panel: #F8F9FA; --ink: #1E2733; --muted: #586273; --rule: #D6DAE0; --hover: #E3E7EC;
  --accent: #2F5A8A; --accent-ink: #F8F9FA; --accent-soft: #DCE6F1; --spark: #B07A1E; --ok: #2D6A47; --ok-soft: #DDEEE3;
  --f-sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", Consolas, ui-monospace, monospace;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #161B22; --panel: #1D232C; --ink: #DCE2EA; --muted: #98A2B1; --rule: #2C3440; --hover: #252C36;
  --accent: #8DB4E0; --accent-ink: #12171E; --accent-soft: #22344A; --spark: #E0A43A; --ok: #7CC79A; --ok-soft: #1B3226; color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #161B22; --panel: #1D232C; --ink: #DCE2EA; --muted: #98A2B1; --rule: #2C3440; --hover: #252C36;
  --accent: #8DB4E0; --accent-ink: #12171E; --accent-soft: #22344A; --spark: #E0A43A; --ok: #7CC79A; --ok-soft: #1B3226; color-scheme: dark }

* { box-sizing: border-box }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--f-sans) }
a { color: var(--accent) }
.wrap { max-width: 1040px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)) }
h1, h2, h3 { line-height: 1.25; text-wrap: balance; margin: 0 }
h1 { font-size: clamp(28px, 4.5vw, 42px); font-weight: 600 }
h2 { font-size: 26px; font-weight: 600 }
h3 { font-size: 18px; font-weight: 600 }
p { margin: 0; max-width: 68ch }
.muted { color: var(--muted) }

/* header and footer */
.top { border-bottom: 1px solid var(--rule); background: var(--panel) }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; flex-wrap: wrap }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 20px }
.brand img { width: 34px; height: 34px }
.brand .ca { color: var(--accent) }
nav.links { display: flex; gap: 18px; flex-wrap: wrap }
nav.links a { color: var(--ink); text-decoration: none; font-weight: 500 }
nav.links a:hover, nav.links a[aria-current="page"] { color: var(--accent) }
footer { border-top: 1px solid var(--rule); margin-top: 64px; background: var(--panel) }
footer .wrap { padding-block: 28px; display: grid; gap: 12px; font-size: 14px; color: var(--muted) }
footer .flinks { display: flex; gap: 16px; flex-wrap: wrap }

/* sections */
main { display: grid; gap: 56px; padding-block: 40px }
.hero { display: grid; gap: 16px; padding-block: 24px 8px }
.tag { display: inline-block; width: max-content; max-width: 100%; background: var(--accent-soft); color: var(--ink); border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 500 }
.hero .line { position: relative; padding-bottom: 14px }
.hero .line::after { content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: 4px; border-radius: 4px; background: var(--spark) }
.lead { font-size: 19px; color: var(--muted) }
.actions { display: flex; gap: 12px; flex-wrap: wrap }
.btn { display: inline-block; padding: 11px 18px; border-radius: 8px; font-weight: 600; text-decoration: none; border: 1px solid var(--accent) }
.btn.primary { background: var(--accent); color: var(--accent-ink) }
.btn.outline { color: var(--accent); background: transparent }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px }
.card { background: var(--panel); border: 1px solid var(--rule); border-radius: 12px; padding: 18px; display: grid; gap: 8px; align-content: start; min-width: 0 }
.card.pick { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) }
.section { display: grid; gap: 18px }
.trust { display: grid; gap: 8px; padding: 18px; border-radius: 12px; background: var(--ok-soft); color: var(--ink) }
.trust strong { color: var(--ok) }

/* pricing */
.switch { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; padding: 3px; background: var(--panel); width: max-content }
.switch button { font: 500 15px var(--f-sans); border: 0; background: transparent; color: var(--ink); padding: 7px 16px; border-radius: 999px; cursor: pointer }
.switch button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink) }
.price { font: 600 32px var(--f-mono); font-variant-numeric: tabular-nums }
.price small { font: 400 15px var(--f-sans); color: var(--muted) }
.steps { font-family: var(--f-mono); font-size: 14px; display: grid; gap: 2px }
ul.ticks { margin: 0; padding-left: 20px; display: grid; gap: 4px }
.tablewrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--rule); border-radius: 12px }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule) }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted) }
td.n { font-family: var(--f-mono); text-align: right; white-space: nowrap }
tr:last-child td { border-bottom: 0 }

/* policy pages */
.doc { display: grid; gap: 14px; max-width: 760px }
.doc h2 { font-size: 20px; margin-top: 12px }
.doc ul { margin: 0; padding-left: 22px; display: grid; gap: 4px }
@media (prefers-reduced-motion: no-preference) { .switch button { transition: background .15s } }
