/*
 * seocc.net: "Night Shift" design, the same tokens as the SEO Control Center app.
 * Dark only. Text meets WCAG AA contrast (4.5:1), UI boundaries 3:1.
 */
/* IBM Plex (SIL Open Font License 1.1, see ../fonts/OFL.txt), served locally: no third-party requests. */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---- Tokens ------------------------------------------------------------------ */
:root {
    color-scheme: dark;
    --bg: #0b0f15;
    --surface: #10151d;
    --surface-2: #0d1218;
    --raised: #161d27;
    --text: #e8edf2;
    --text-2: #c2cbd5;
    --muted: #8e9baa;
    --border: #1e2631;
    --border-strong: #2c3644;
    --input-border: #637083;
    --accent: #7aa7ff;
    --accent-strong: #a3c0ff;
    --accent-soft: rgba(122, 167, 255, 0.12);
    --on-accent: #0a1224;
    --positive: #5fd69c;
    --positive-soft: rgba(95, 214, 156, 0.1);
    --negative: #ffa47a;
    --warning: #ffd479;
    --warning-soft: #3a2e0c;
    --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
    --radius: 12px;
    --radius-sm: 8px;
    --wrap: 72rem;
    --section: clamp(3.5rem, 8vw, 6rem);
}

/* ---- Base -------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 400 1rem/1.65 var(--font); font-feature-settings: "kern"; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
main { flex: 1 0 auto; }
img, svg { max-width: 100%; }
a { color: var(--accent-strong); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0 0 0.5em; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); letter-spacing: -0.03em; line-height: 1.06; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.05rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
strong { font-weight: 600; color: var(--text); }
code { font-family: var(--font-mono); font-size: 0.86em; background: var(--raised); border: 1px solid var(--border); border-radius: 5px; padding: 0.08em 0.35em; overflow-wrap: anywhere; }
.icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
mark.todo { background: var(--warning-soft); color: var(--warning); border-radius: 4px; padding: 0 0.3em; }
.skip-link { position: absolute; left: 0.75rem; top: -4rem; z-index: 30; padding: 0.5rem 1rem; background: var(--accent); color: var(--on-accent); border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: 0.75rem; color: var(--on-accent); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 720px) { .wrap { padding: 0 2rem; } }
.narrow { max-width: 46rem; }

/* ---- Header ------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(11, 15, 21, 0.85); border-bottom: 1px solid var(--border); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); }
.header-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.brand-mark { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 0.95rem; }
.site-nav { display: flex; justify-content: flex-end; gap: 0.25rem; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 0.925rem; font-weight: 500; padding: 0.45rem 0.75rem; border-radius: var(--radius-sm); }
.site-nav a:hover { color: var(--text); background: var(--raised); }
.site-nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 719px) {
    .header-inner { grid-template-columns: 1fr auto; row-gap: 0; padding-top: 0.6rem; }
    .site-nav { grid-column: 1 / -1; order: 3; justify-content: flex-start; margin: 0.35rem -0.75rem 0; overflow-x: auto; }
    .brand-name { font-size: 0.95rem; }
}

/* ---- Buttons and links ---------------------------------------------------------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 44px; padding: 0 1.2rem; border: 1px solid var(--accent); border-radius: var(--radius-sm); background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
.button:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); }
.button-small { min-height: 36px; padding: 0 0.9rem; font-size: 0.875rem; }
.button-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.button-ghost:hover { background: var(--raised); border-color: var(--input-border); color: var(--text); }
.button-block { display: flex; width: 100%; }
.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 500; text-decoration: none; }
.link-arrow .icon { width: 1rem; height: 1rem; transition: transform 0.15s; }
.link-arrow:hover .icon { transform: translateX(2px); }

/* ---- Sections ------------------------------------------------------------------- */
.section { padding: var(--section) 0; }
.section-alt { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-alt + .section-alt { border-top: 0; }
.section-flush { padding-bottom: var(--section); }
.section-head { max-width: 44rem; margin-bottom: 3rem; }
.section-head p, .lead { color: var(--muted); font-size: 1.125rem; }
.section-title-sm { font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin-bottom: 1.5rem; }
.h3-size { font-size: 1.35rem; margin-top: 1rem; }
.kicker { margin: 0 0 0.75rem; color: var(--accent-strong); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.page-head { padding: clamp(3rem, 7vw, 5rem) 0 2.5rem; }
.page-head .lead { max-width: 42rem; margin-bottom: 0; }

/* ---- Hero ------------------------------------------------------------------------- */
.hero { padding-top: clamp(3.5rem, 8vw, 6rem); border-bottom: 1px solid var(--border); background: linear-gradient(180deg, rgba(122, 167, 255, 0.06), transparent 22rem); overflow: hidden; }
.hero-text { text-align: center; }
.hero-text h1 { max-width: 16em; margin: 0 auto 1.25rem; }
.hero-text .lead { max-width: 38rem; margin: 0 auto 2rem; color: var(--text-2); }
.hero-text .actions { justify-content: center; }
.hero-offer { display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 1.75rem; padding: 0.3rem 0.8rem 0.3rem 0.35rem; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--text-2); font-size: 0.875rem; text-decoration: none; }
.hero-offer span { padding: 0.1rem 0.55rem; border-radius: 999px; background: var(--positive-soft); color: var(--positive); font-weight: 600; font-size: 0.8rem; }
.hero-offer .icon { width: 0.95rem; height: 0.95rem; color: var(--muted); }
.hero-offer:hover { color: var(--text); border-color: var(--input-border); }
.hero-specs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; list-style: none; margin: 1.75rem 0 0; padding: 0; color: var(--muted); font-size: 0.85rem; }
.hero-specs li { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-specs li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--border-strong); }
.hero-visual { margin-top: clamp(3rem, 6vw, 4.5rem); }

/* ---- Product replica ---------------------------------------------------------------- */
.app { margin: 0 auto -1px; max-width: 64rem; border: 1px solid var(--border-strong); border-bottom: 0; border-radius: 14px 14px 0 0; background: var(--surface-2); overflow: hidden; box-shadow: 0 -20px 80px rgba(0, 0, 0, 0.35); font-size: 0.8rem; line-height: 1.4; }
.app-chrome { display: flex; align-items: center; gap: 0.4rem; padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--border); background: var(--surface); }
.app-chrome span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.app-chrome em { margin: 0 auto; padding: 0.15rem 1rem; border-radius: 6px; background: var(--surface-2); color: var(--muted); font: 500 0.72rem var(--font-mono); font-style: normal; }
.app-shell { display: grid; grid-template-columns: 11.5rem minmax(0, 1fr); min-height: 25rem; }
.app-side { padding: 1rem 0.75rem; border-right: 1px solid var(--border); background: var(--bg); color: #c9d2dc; }
.app-brand { display: flex; align-items: center; gap: 0.45rem; font-weight: 600; margin-bottom: 1rem; font-size: 0.78rem; }
.app-brand i { width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-style: normal; font-weight: 700; font-size: 0.7rem; }
.app-ws { padding: 0.4rem 0.6rem; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); margin-bottom: 0.9rem; font-weight: 600; font-size: 0.75rem; }
.app-side ul { list-style: none; margin: 0 0 0.9rem; padding: 0; display: grid; gap: 0.1rem; }
.app-side li { padding: 0.35rem 0.6rem; border-radius: 6px; color: #8793a1; }
.app-side li.on { background: #18233a; color: #b4cbff; font-weight: 500; }
.app-side p { margin: 0 0 0.3rem 0.6rem; color: #8793a1; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; }
.app-main { padding: 1.1rem 1.25rem 1.5rem; display: grid; gap: 0.9rem; align-content: start; }
.app-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.app-head b { display: block; font-size: 0.95rem; }
.app-head small { color: var(--muted); }
.app-range { padding: 0.3rem 0.65rem; border: 1px solid var(--border-strong); border-radius: 6px; color: var(--text-2); white-space: nowrap; }
.app-tabs { display: flex; gap: 1.1rem; border-bottom: 1px solid var(--border); color: var(--muted); white-space: nowrap; overflow: hidden; }
.app-tabs > * { padding-bottom: 0.55rem; }
.app-tabs b { color: var(--text); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }
.app-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; }
.app-kpis div { display: grid; gap: 0.1rem; padding: 0.65rem 0.8rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.app-kpis small { color: var(--muted); }
.app-kpis strong { font: 500 1.15rem var(--font-mono); letter-spacing: -0.02em; }
.app-kpis em { font: 500 0.72rem var(--font-mono); font-style: normal; }
.pos { color: var(--positive); }
.app-card { border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.app-card-head { display: flex; justify-content: space-between; padding: 0.6rem 0.8rem 0; }
.app-card-head small { color: var(--muted); }
.app-chart { display: block; width: 100%; height: 150px; padding: 0.5rem 0 0.25rem; }
.app-chart .grid { stroke: var(--border); stroke-width: 1; vector-effect: non-scaling-stroke; }
.app-chart .area { fill: rgba(122, 167, 255, 0.1); }
.app-chart .line { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.app-row { display: grid; grid-template-columns: minmax(0, 1fr) 4.5rem 3.5rem 3rem; gap: 0.5rem; padding: 0.45rem 0.8rem; border-top: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.app-row span:not(:first-child) { text-align: right; font-family: var(--font-mono); font-size: 0.75rem; }
.app-row-head { border-top: 0; color: var(--muted); font-weight: 500; }
.app-row-head span:not(:first-child) { font-family: var(--font); }
@media (max-width: 719px) {
    .app { border-radius: 10px 10px 0 0; }
    .app-shell { grid-template-columns: 1fr; min-height: 0; }
    .app-side { display: none; }
    .app-main { padding: 0.9rem; }
    .app-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .app-chrome em { font-size: 0.65rem; padding: 0.15rem 0.5rem; }
    .app-row { grid-template-columns: minmax(0, 1fr) 3.75rem 2.5rem; }
    .app-row span:nth-child(3) { display: none; }
    .app-tabs span:nth-of-type(n+3) { display: none; }
}

/* ---- Features ---------------------------------------------------------------------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 0 2.5rem; }
@media (min-width: 960px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 1.75rem 0 2rem; border-top: 1px solid var(--border); }
.feature h3 { margin: 1rem 0 0.4rem; }
.feature p, .columns-3 p { margin: 0; color: var(--muted); }
.feature-icon { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); color: var(--accent-strong); }
.columns-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2.5rem; }
.columns-3 h3 { margin: 1rem 0 0.4rem; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 3rem clamp(2rem, 6vw, 5rem); }
.two-col-center { align-items: center; }

.ticks { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.8rem; }
.ticks li { display: flex; gap: 0.65rem; align-items: flex-start; color: var(--text-2); }
.ticks .icon { width: 1.1rem; height: 1.1rem; margin-top: 0.25rem; color: var(--positive); }

/* ---- Spotlights --------------------------------------------------------------------- */
.spotlight { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) {
    .spotlight { grid-template-columns: 5fr 6fr; gap: 4.5rem; }
    .spotlight-reverse { grid-template-columns: 6fr 5fr; }
    .spotlight-reverse .spotlight-text { order: 2; }
}
.spotlight-text > p:not(.kicker) { color: var(--muted); font-size: 1.05rem; }
.panel { border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); overflow: hidden; font-size: 0.9rem; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3); }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--border); }
.panel-head small { color: var(--muted); }
.opp { padding: 1rem 1.1rem; border-bottom: 1px solid var(--border); }
.opp:last-child { border-bottom: 0; }
.opp-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; }
.tag { padding: 0.12rem 0.5rem; border: 1px solid var(--border-strong); border-radius: 6px; color: var(--text-2); font-size: 0.75rem; font-weight: 500; }
.prio { font-size: 0.75rem; font-weight: 600; }
.prio-high { color: var(--negative); }
.prio-medium { color: var(--warning); }
.opp-subject { margin: 0 0 0.2rem; font: 500 0.85rem var(--font-mono); color: var(--text); }
.opp-detail { margin: 0; color: var(--muted); font-size: 0.85rem; }
.chat { padding-bottom: 0.5rem; }
.msg { margin: 1rem 1.1rem; }
.msg-user { margin-left: auto; max-width: 85%; width: fit-content; padding: 0.6rem 0.85rem; border-radius: 10px 10px 2px 10px; background: var(--raised); border: 1px solid var(--border-strong); }
.msg-ai { color: var(--text-2); }
.msg-ai p { margin: 0 0 0.6rem; }
.msg-ai ol { margin: 0 0 0.6rem; padding-left: 1.2rem; display: grid; gap: 0.45rem; }
.msg-ai code { font-size: 0.8rem; }

/* ---- Requirements and closing ---------------------------------------------------------- */
.specs { margin: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.specs div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--border); }
.specs div:last-child { border-bottom: 0; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; color: var(--text-2); }
@media (max-width: 480px) { .specs div { grid-template-columns: 1fr; gap: 0.1rem; } }
.closing { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(1.75rem, 4vw, 2.75rem); border: 1px solid var(--border-strong); border-radius: 16px; background: linear-gradient(135deg, rgba(122, 167, 255, 0.08), transparent 60%), var(--surface); }
.closing h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.closing > div:first-child { flex: 1 1 26rem; }
.closing p { margin: 0; max-width: 38rem; color: var(--muted); }

/* ---- Pricing ------------------------------------------------------------------------------- */
.offer { display: flex; align-items: center; gap: 1.25rem 1.75rem; flex-wrap: wrap; margin-bottom: 1.5rem; padding: 1.1rem 1.4rem; border: 1px solid rgba(95, 214, 156, 0.35); border-radius: var(--radius); background: var(--positive-soft); }
.offer-value { margin: 0; color: var(--positive); font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.offer-text { flex: 1 1 22rem; }
.offer-text p { margin: 0; color: var(--text-2); font-size: 0.925rem; }
.offer-text .offer-title { color: var(--text); font-weight: 600; font-size: 1rem; margin-bottom: 0.15rem; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr)); gap: 1.25rem; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 1.75rem; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); }
.plan-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 24px 60px rgba(0, 0, 0, 0.35); }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.plan-head h2 { margin: 0; font-size: 1.25rem; }
.plan-badge { padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-size: 0.75rem; font-weight: 600; }
.plan-for { margin: 0.5rem 0 1.5rem; color: var(--muted); font-size: 0.925rem; min-height: 3.3em; }
.plan-price { margin-bottom: 1.5rem; }
.amount { display: flex; align-items: baseline; gap: 0.5rem; margin: 0; font-size: 2.6rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.amount .per { font-size: 0.9rem; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.amount-soon { font-size: 1.25rem; color: var(--accent-strong); }
.then { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.875rem; }
.then del { margin-right: 0.25rem; color: var(--muted); }
.plan-list { list-style: none; margin: 1.5rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid var(--border); display: grid; gap: 0.7rem; font-size: 0.925rem; }
.plan-list li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--text-2); }
.plan-list .icon { width: 1.05rem; height: 1.05rem; margin-top: 0.2rem; color: var(--positive); }
.plan-list li.off { color: var(--muted); }
.plan-list li.off .icon { color: var(--muted); }
.plans-note { max-width: 46rem; margin: 1.75rem auto 0; text-align: center; color: var(--muted); font-size: 0.875rem; }

.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.compare { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 0.925rem; }
.compare th, .compare td { padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--border); text-align: center; }
.compare thead th { font-weight: 600; background: var(--surface-2); }
.compare th[scope="row"] { text-align: left; font-weight: 400; color: var(--text-2); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare td { color: var(--text-2); font-variant-numeric: tabular-nums; }
.yes .icon { color: var(--positive); vertical-align: middle; }
.no .icon { color: var(--muted); vertical-align: middle; }

.faq-layout { display: grid; gap: 2rem 4rem; }
@media (min-width: 900px) { .faq-layout { grid-template-columns: 1fr 2fr; } }
.faq-list { border-top: 1px solid var(--border); }
.faq { border-bottom: 1px solid var(--border); }
.faq summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; cursor: pointer; font-weight: 500; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 1.25rem; line-height: 1; }
.faq[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--accent-strong); }
.faq p { margin: 0 0 1.25rem; color: var(--muted); max-width: 44rem; }

/* ---- Documentation -------------------------------------------------------------------------- */
.docs { display: grid; gap: 2rem; padding-top: 2.5rem; padding-bottom: var(--section); }
@media (min-width: 900px) { .docs { grid-template-columns: 15rem minmax(0, 1fr); gap: 3.5rem; } }
@media (min-width: 1200px) { .docs-with-toc { grid-template-columns: 15rem minmax(0, 1fr) 12rem; gap: 3rem; } }
.docs-nav, .docs-toc, .legal-nav { font-size: 0.9rem; }
@media (min-width: 900px) { .docs-nav, .docs-toc, .legal-nav { position: sticky; top: 5.5rem; align-self: start; max-height: calc(100vh - 7rem); overflow-y: auto; } }
.docs-nav-title a { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text); font-weight: 600; text-decoration: none; }
.docs-nav-title .icon { width: 1.05rem; height: 1.05rem; color: var(--accent-strong); }
.docs-nav ol { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.1rem; }
.docs-nav ol a, .legal-nav a { display: flex; gap: 0.6rem; padding: 0.35rem 0.6rem; border-radius: 6px; color: var(--muted); text-decoration: none; line-height: 1.4; }
.docs-nav ol a:hover, .legal-nav a:hover { color: var(--text); background: var(--raised); }
.docs-nav a[aria-current="page"], .legal-nav a[aria-current="page"] { color: var(--text); background: var(--raised); font-weight: 500; }
.docs-num { flex: 0 0 1.25rem; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.docs-menu { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); font-size: 0.925rem; }
.docs-menu summary { display: flex; align-items: center; gap: 0.6rem; padding: 0.8rem 1rem; cursor: pointer; list-style: none; font-weight: 500; }
.docs-menu summary::-webkit-details-marker { display: none; }
.docs-menu summary::after { content: "+"; margin-left: auto; color: var(--muted); font-size: 1.2rem; line-height: 1; }
.docs-menu[open] summary::after { content: "−"; }
.docs-menu summary .icon { width: 1.05rem; height: 1.05rem; color: var(--accent-strong); }
.docs-menu ol { list-style: none; margin: 0; padding: 0 0.5rem 0.75rem; display: grid; gap: 0.1rem; }
.docs-menu a { display: flex; gap: 0.6rem; padding: 0.4rem 0.6rem; border-radius: 6px; color: var(--muted); text-decoration: none; }
.docs-menu a[aria-current="page"] { color: var(--text); background: var(--raised); font-weight: 500; }
@media (max-width: 899px) { .docs-nav { display: none; } }
@media (min-width: 900px) { .docs-menu { display: none; } }
.docs-toc { display: none; }
@media (min-width: 1200px) { .docs-toc { display: block; } }
.docs-toc-title { margin: 0 0 0.6rem; color: var(--muted); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.docs-toc ul { list-style: none; margin: 0; padding: 0 0 0 0.9rem; border-left: 1px solid var(--border); display: grid; gap: 0.45rem; }
.docs-toc a { color: var(--muted); text-decoration: none; line-height: 1.4; display: block; }
.docs-toc a:hover { color: var(--text); }

.prose { min-width: 0; max-width: 46rem; color: var(--text-2); }
.prose h1 { color: var(--text); font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 1rem; }
.prose h2 { color: var(--text); font-size: 1.45rem; margin: 2.75rem 0 0.9rem; padding-top: 0.25rem; }
.prose h3 { color: var(--text); font-size: 1.1rem; margin: 2rem 0 0.6rem; }
.prose > h1 + p { font-size: 1.1rem; color: var(--text-2); }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1.1em; }
.prose li { margin: 0.35rem 0; }
.prose li::marker { color: var(--muted); }
.prose li > ul, .prose li > ol { margin: 0.35rem 0; }
.prose pre { margin: 0.9rem 0 1.25em; padding: 0.9rem 1.1rem; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); line-height: 1.5; }
.prose pre code { padding: 0; border: 0; background: none; font-size: 0.85rem; overflow-wrap: normal; color: var(--text); }
.prose blockquote { margin: 1.25rem 0; padding: 0.9rem 1.1rem; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); background: var(--surface); }
.prose blockquote p:last-child { margin: 0; }
.prose .table-wrap { margin: 1.1rem 0 1.5rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.prose th, .prose td { padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.prose thead th { background: var(--surface-2); color: var(--text); font-weight: 600; }
.prose tbody th { color: var(--text); font-weight: 500; }
.prose tr:last-child > * { border-bottom: 0; }
.chapter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; margin: 2rem 0 0; }
.chapter { display: grid; gap: 0.35rem; align-content: start; padding: 1.1rem 1.2rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); text-decoration: none; transition: border-color 0.15s; }
.chapter:hover { border-color: var(--input-border); }
.chapter-num { color: var(--muted); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.chapter-title { color: var(--text); font-weight: 600; }
.chapter-summary { color: var(--muted); font-size: 0.875rem; line-height: 1.5; }
.docs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3.5rem; }
.docs-pager a { display: grid; gap: 0.15rem; padding: 0.9rem 1.1rem; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; font-weight: 500; color: var(--text); }
.docs-pager a:hover { border-color: var(--input-border); }
.docs-pager a.next { text-align: right; grid-column: 2; }
.docs-pager small { color: var(--muted); font-weight: 400; font-size: 0.8rem; }

/* ---- Legal and 404 -------------------------------------------------------------------------------- */
.legal-layout { display: grid; gap: 2rem; padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: var(--section); }
@media (min-width: 900px) { .legal-layout { grid-template-columns: 12rem minmax(0, 1fr); gap: 4rem; } }
.legal-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.1rem; }
@media (max-width: 899px) { .legal-nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem; } }
.legal-date { margin: -0.25rem 0 2rem; color: var(--muted); font-size: 0.9rem; }
.facts { display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; gap: 0.6rem 1.5rem; margin: 0 0 1.5rem; padding: 1.1rem 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--text); }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; gap: 0.1rem; } .facts dd { margin-bottom: 0.6rem; } }
.notice { padding: 0.75rem 1rem; border-radius: var(--radius-sm); background: var(--warning-soft); color: var(--warning); }
.not-found { padding-bottom: var(--section); }
.not-found-links { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; }

/* ---- Footer ------------------------------------------------------------------------------------------ */
.site-footer { flex-shrink: 0; padding: 3.5rem 0 2rem; border-top: 1px solid var(--border); background: var(--surface-2); font-size: 0.9rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.3fr; } }
.footer-about p { margin: 0.75rem 0 0; max-width: 20rem; color: var(--muted); }
.footer-about .brand { margin-bottom: 0.25rem; }
.footer-title { margin: 0 0 0.9rem; color: var(--text); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.footer-about a:not(.brand), .footer-bottom a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--border-strong); }
.footer-note { color: var(--muted); font-size: 0.85rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
.section-flush + .section { padding-top: 0; }
