/* Notifier for Codex website. Tokens follow the "Codex Notifier Companion Design Language" (Claude Design,
   31 Oct 2026): cool green-grey neutrals, violet as the only accent, Schibsted Grotesk for anything a
   person reads, Martian Mono only for machine content (commands, paths, timestamps, section labels).
   Light leads; dark follows the system. */

:root {
    --canvas: #F1F4F2;
    --surface: #FFFFFF;
    --fill: #E2E8E5;
    --subtle: #EEF2F0;
    --ink: #121715;
    --ink-2: #3A423F;
    --muted: #4A534F;
    --faint: #6B7570;
    --terminal: #121715;
    --terminal-ink: #E7ECE9;
    --terminal-dim: #8C9691;
    --terminal-line: transparent;
    --violet: oklch(0.52 0.2 290);
    --violet-text: oklch(0.45 0.2 290);
    --violet-term: oklch(0.75 0.14 290);
    --on-violet: #FFFFFF;
    --added: oklch(0.5 0.13 160);
    --removed: oklch(0.52 0.18 25);
    --online: oklch(0.55 0.13 160);
    --hairline: rgba(18, 23, 21, .1);
    --outline: rgba(18, 23, 21, .18);
    --shadow-card: 0 1px 0 rgba(18, 23, 21, .06), 0 16px 32px -20px rgba(18, 23, 21, .25);
    --shadow-phone: 0 0 0 7px #121715, 0 40px 80px -30px rgba(0, 0, 0, .45);
    --nav-bg: rgba(241, 244, 242, .82);

    --sans: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'Martian Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    --r-tag: 4px;
    --r-code: 8px;
    --r-btn: 10px;
    --r-list: 12px;
    --r-card: 14px;
    --r-big: 24px;

    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --canvas: #0F1312;
        --surface: #181E1C;
        --fill: #252C29;
        --subtle: #212826;
        --ink: #E9EEEB;
        --ink-2: #C4CCC8;
        --muted: #A1AAA6;
        --faint: #7D8782;
        --terminal: #070A09;
        --terminal-line: rgba(233, 238, 235, .12);
        --violet: oklch(0.72 0.15 290);
        --violet-text: oklch(0.8 0.12 290);
        --on-violet: #0F1312;
        --added: oklch(0.78 0.13 160);
        --removed: oklch(0.74 0.14 25);
        --online: oklch(0.75 0.14 160);
        --hairline: rgba(233, 238, 235, .1);
        --outline: rgba(233, 238, 235, .18);
        --shadow-card: 0 1px 0 rgba(233, 238, 235, .06), 0 16px 32px -20px rgba(0, 0, 0, .6);
        --shadow-phone: 0 0 0 7px #000, 0 0 0 8.5px #3A4440, 0 40px 80px -30px rgba(0, 0, 0, .6);
        --nav-bg: rgba(15, 19, 18, .82);
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --canvas: #0F1312;
    --surface: #181E1C;
    --fill: #252C29;
    --subtle: #212826;
    --ink: #E9EEEB;
    --ink-2: #C4CCC8;
    --muted: #A1AAA6;
    --faint: #7D8782;
    --terminal: #070A09;
    --terminal-line: rgba(233, 238, 235, .12);
    --violet: oklch(0.72 0.15 290);
    --violet-text: oklch(0.8 0.12 290);
    --on-violet: #0F1312;
    --added: oklch(0.78 0.13 160);
    --removed: oklch(0.74 0.14 25);
    --online: oklch(0.75 0.14 160);
    --hairline: rgba(233, 238, 235, .1);
    --outline: rgba(233, 238, 235, .18);
    --shadow-card: 0 1px 0 rgba(233, 238, 235, .06), 0 16px 32px -20px rgba(0, 0, 0, .6);
    --shadow-phone: 0 0 0 7px #000, 0 0 0 8.5px #3A4440, 0 40px 80px -30px rgba(0, 0, 0, .6);
    --nav-bg: rgba(15, 19, 18, .82);
    color-scheme: dark;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
a:hover { color: var(--violet-text); }
code, pre, kbd, .mono { font-family: var(--mono); }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding-inline: 32px; }
.page { min-height: 100vh; display: flex; flex-direction: column; }
.page > main, .page > .grow { flex: 1; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Inline code in prose */
p code, li code, .fine code, td code, .dtable code, summary code, .callout code, .link-step code {
    font-size: .78em;
    padding: 2px 6px;
    border-radius: var(--r-tag);
    background: var(--fill);
    color: var(--ink);
    overflow-wrap: anywhere;
}

/* ---------- Mark ---------- */

.mark {
    flex: none;
    width: 30px; height: 30px;
    border-radius: 7.5px;
    background: oklch(0.52 0.2 290);
    display: grid; place-items: center;
}
.mark::after {
    content: '';
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 3px solid #FFFFFF;
}
.mark-lg { width: 88px; height: 88px; border-radius: 20px; }
.mark-lg::after { width: 38px; height: 38px; border-width: 9.5px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.brand-tag {
    font-family: var(--mono); font-size: 10px; line-height: 1;
    padding: 4px 7px; border-radius: var(--r-tag);
    background: var(--fill); color: var(--muted);
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 48px; padding: 0 20px;
    border-radius: var(--r-btn);
    border: 1.5px solid var(--ink);
    background: transparent; color: var(--ink);
    font: 600 16px/1 var(--sans);
    text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: transform .12s ease, background .15s ease;
}
.btn:hover { color: var(--ink); background: var(--fill); }
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: var(--canvas); border-color: var(--ink); }
.btn-ink:hover { background: var(--ink-2); color: var(--canvas); border-color: var(--ink-2); }
.btn-violet { background: var(--violet); color: var(--on-violet); border-color: var(--violet); }
.btn-violet:hover { background: var(--violet-text); color: var(--on-violet); border-color: var(--violet-text); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 15px; }
.btn-lg { height: 56px; padding: 0 24px; font-size: 17px; }
.btn .arrow { font-weight: 400; opacity: .7; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- Labels and text ---------- */

.label {
    font-family: var(--mono); font-size: 11px; font-weight: 500;
    letter-spacing: .04em; text-transform: uppercase;
    color: var(--faint);
}
.label-violet { color: var(--violet-text); }
.tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--mono); font-size: 11px; line-height: 1;
    padding: 6px 9px; border-radius: 5px;
    background: var(--violet); color: var(--on-violet);
    width: fit-content;
}
.tag-quiet { background: var(--subtle); color: var(--muted); font-size: 10px; padding: 4px 7px; border-radius: var(--r-tag); }
.fine { font-size: 14px; line-height: 1.45; color: var(--muted); }
.fine a { color: var(--ink); font-weight: 600; }
.lede { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.lede a { font-weight: 600; }

.display {
    font-size: clamp(42px, 5.8vw, 72px);
    line-height: .98;
    font-weight: 800;
    letter-spacing: -.045em;
}
.h2 {
    font-size: clamp(34px, 4.6vw, 52px);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -.035em;
}

/* ---------- Nav ---------- */

.nav {
    position: sticky; top: 0; z-index: 20;
    background: var(--nav-bg);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--hairline);
}
.nav-inner { height: 68px; display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 24px; margin-inline-start: auto; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-spacer { flex: 1; }
.nav-links + .btn { margin-inline-start: 0; }

/* ---------- Hero ---------- */

.hero { padding: 72px 0 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.hero-sub { font-size: 20px; line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.get-steps { display: flex; flex-direction: column; gap: 22px; margin-top: 4px; }
.get-step { display: flex; flex-direction: column; gap: 10px; }
.get-step-head { display: flex; gap: 12px; align-items: baseline; font-size: 16px; font-weight: 700; }
.get-step-head .num { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--violet-text); }

.hero-visual { position: relative; display: flex; justify-content: center; padding: 20px 0 30px; }
.float {
    position: absolute; z-index: 2;
    background: var(--surface);
    border-radius: var(--r-card);
    box-shadow: var(--shadow-card), 0 0 0 1px var(--hairline);
}
.float-notif {
    top: -8px; left: -56px; width: 300px;
    display: flex; gap: 12px; align-items: flex-start; padding: 14px;
}
.float-notif .mark { width: 34px; height: 34px; border-radius: 8.5px; }
.float-notif .mark::after { width: 13px; height: 13px; border-width: 3.4px; }
.notif-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.notif-head { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.notif-head b { font-weight: 700; }
.notif-head small { font-size: 12px; color: var(--faint); }
.notif-text { font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.float-done {
    bottom: 28px; right: -12px;
    display: flex; gap: 10px; align-items: center;
    padding: 12px 16px;
    font-family: var(--mono); font-size: 12px;
}
.float-done .ok { color: var(--added); }

/* ---------- Install switcher and terminal ---------- */

.install { display: flex; flex-direction: column; gap: 10px; max-width: 640px; min-width: 0; }
.seg {
    display: flex; padding: 4px; gap: 2px;
    border-radius: var(--r-btn); background: var(--fill);
    width: fit-content; max-width: 100%;
    overflow-x: auto; scrollbar-width: none;
}
.seg::-webkit-scrollbar { display: none; }
.seg button {
    flex: none;
    height: 34px; padding: 0 14px;
    border: 0; border-radius: 7px;
    background: transparent; color: var(--muted);
    font: 600 14px/1 var(--sans); cursor: pointer;
}
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }

.cmd {
    display: flex; align-items: center; gap: 12px;
    min-height: 56px; padding: 8px 8px 8px 16px;
    border-radius: var(--r-btn);
    background: var(--terminal); color: var(--terminal-ink);
    box-shadow: inset 0 0 0 1px var(--terminal-line);
    font-family: var(--mono); font-size: 13px; line-height: 1.6;
    min-width: 0;
}
.cmd-prompt { color: var(--violet-term); flex: none; }
.cmd-text { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; padding: 6px 0; }
.cmd-code { color: var(--violet-term); }
.cmd-copy {
    flex: none; height: 40px; padding: 0 14px;
    border: 0; border-radius: 7px;
    background: rgba(231, 236, 233, .1); color: var(--terminal-ink);
    font: 600 14px/1 var(--sans); cursor: pointer;
}
.cmd-copy:hover { background: rgba(231, 236, 233, .18); }
.cmd-sm { min-height: 48px; font-size: 12px; }
.cmd-sm .cmd-copy { height: 34px; font-size: 13px; }

.terminal {
    border-radius: var(--r-card);
    background: var(--terminal); color: var(--terminal-ink);
    box-shadow: inset 0 0 0 1px var(--terminal-line), 0 30px 60px -30px rgba(0, 0, 0, .45);
    overflow: hidden; min-width: 0;
}
.terminal-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(231, 236, 233, .08);
    font-family: var(--mono); font-size: 11px; color: var(--terminal-dim);
}
.terminal-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(231, 236, 233, .16); }
.terminal-bar span { margin-inline-start: 8px; }
.terminal-log {
    padding: 18px 20px 22px;
    font-family: var(--mono); font-size: 12.5px; line-height: 2;
    display: flex; flex-direction: column;
    overflow-x: auto;
}
.terminal-log > div { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px; }
.terminal-log > div > span:last-child { overflow-wrap: anywhere; }
.t-dim { color: var(--terminal-dim); }
.t-violet { color: var(--violet-term); }
.t-ok { color: oklch(0.78 0.13 160); }
.cursor i { display: inline-block; width: 8px; height: 15px; background: var(--terminal-ink); vertical-align: -3px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor i { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Sections ---------- */

.section { border-top: 1px solid var(--hairline); }
.section-pad { padding-top: 104px; padding-bottom: 104px; }
.section-head { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.steps { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; border-radius: var(--r-list); overflow: hidden; }
.steps li {
    display: flex; gap: 16px; align-items: baseline;
    padding: 16px 18px; background: var(--surface);
    font-size: 17px; font-weight: 600;
}
.steps li > span:first-child { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--violet-text); flex: none; width: 22px; }

/* ---------- Features ---------- */

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.feature {
    display: flex; flex-direction: column;
    border-radius: var(--r-big);
    background: var(--surface);
    overflow: hidden; min-width: 0;
}
.feature-copy { padding: 28px 28px 24px; display: flex; flex-direction: column; gap: 10px; }
.feature-copy h3 { font-size: 23px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.feature-copy p { font-size: 16px; line-height: 1.5; color: var(--muted); }
.feature-visual {
    margin-top: auto;
    height: 330px; overflow: hidden;
    background: var(--subtle);
    display: flex; justify-content: center; align-items: flex-start;
    padding-top: 30px;
}
.feature-visual .phone { transform: scale(.78); transform-origin: top center; }
.phone-cta { margin-top: 40px; }

/* ---------- Phone mocks ---------- */

.phone {
    flex: none;
    width: 300px; height: 620px;
    border-radius: 44px;
    background: var(--canvas);
    box-shadow: var(--shadow-phone);
    position: relative; overflow: hidden;
    display: flex; flex-direction: column;
    font-family: var(--sans); color: var(--ink);
    text-align: start;
}
.phone::before {
    content: ''; position: absolute; top: 9px; left: 50%; margin-left: -48px;
    width: 96px; height: 28px; border-radius: 16px; background: #000;
}
.phone-status { height: 46px; padding: 0 28px 0 34px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; flex: none; }
.phone-status i { width: 20px; height: 10px; border-radius: 3px; background: var(--ink); }
.phone-body { flex: 1; padding: 6px 16px 0; display: flex; flex-direction: column; min-height: 0; }
.phone-title { display: flex; align-items: flex-end; justify-content: space-between; padding: 0 2px; }
.phone-title b { font-size: 30px; line-height: 1; font-weight: 800; letter-spacing: -.035em; }
.phone-sub { font-size: 12px; color: var(--muted); padding: 0 2px; }
.phone-tabs {
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 66px; background: var(--surface);
    border-top: 1px solid var(--hairline);
    display: grid; grid-template-columns: repeat(3, 1fr);
}
.phone-tabs span { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: var(--faint); }
.phone-tabs span::before { content: ''; width: 26px; height: 3px; }
.phone-tabs span.on { color: var(--ink); font-weight: 700; }
.phone-tabs span.on::before { background: var(--violet); }
.phone-home { position: absolute; bottom: 7px; left: 50%; margin-left: -50px; width: 100px; height: 4px; border-radius: 2px; background: var(--ink); z-index: 3; }

.req {
    margin-top: 14px;
    border-radius: var(--r-card);
    background: var(--surface);
    padding: 14px;
    display: flex; flex-direction: column; gap: 10px;
    box-shadow: var(--shadow-card);
}
.req-head { display: flex; justify-content: space-between; align-items: baseline; }
.req-head b { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.req-head .timer { font-family: var(--mono); font-size: 10px; color: var(--violet-text); }
.req-path { font-family: var(--mono); font-size: 9px; color: var(--faint); margin-top: -8px; }
.req-kind { font-size: 12px; font-weight: 600; color: var(--muted); }
.req-code { border-radius: var(--r-code); background: var(--terminal); color: var(--terminal-ink); box-shadow: inset 0 0 0 1px var(--terminal-line); padding: 11px; font-family: var(--mono); font-size: 10.5px; line-height: 1.5; }
.req-text { font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.req-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 6px; }
.req-actions span {
    height: 44px; border-radius: var(--r-btn);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 600;
}
.req-actions .no { border: 1.5px solid var(--outline); color: var(--removed); }
.req-actions .yes { background: var(--violet); color: var(--on-violet); }
.rows { display: flex; flex-direction: column; gap: 2px; border-radius: 10px; overflow: hidden; }
.rows > div { display: flex; gap: 10px; align-items: center; padding: 11px 12px; background: var(--surface); }
.rows .kind { font-family: var(--mono); font-size: 9px; width: 34px; color: var(--violet-text); flex: none; }
.rows .name { flex: 1; font-size: 13px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .meta { font-family: var(--mono); font-size: 9px; color: var(--faint); }
.rows .add { color: var(--added); }
.rows .rem { color: var(--removed); }
.up-next { margin: 18px 2px 6px; font-family: var(--mono); font-size: 9px; color: var(--faint); }
.opts { display: flex; flex-direction: column; gap: 6px; }
.opts span { display: flex; align-items: center; justify-content: space-between; height: 42px; padding: 0 14px; border-radius: var(--r-btn); border: 1.5px solid var(--outline); font-family: var(--mono); font-size: 12px; }
.opts span.pick { border-color: var(--violet); color: var(--violet-text); }
.opts span.pick::after { content: '●'; font-size: 9px; }
.reply { height: 42px; border-radius: var(--r-btn); background: var(--fill); color: var(--faint); display: flex; align-items: center; padding: 0 14px; font-size: 13px; }

/* ---------- Pricing ---------- */

.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 48px; }
.plan {
    display: flex; flex-direction: column; gap: 14px;
    padding: 26px 22px 22px;
    border-radius: var(--r-card);
    background: var(--surface);
    min-width: 0;
}
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 16px; font-weight: 700; min-height: 26px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plan-price b { font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.plan-price span { font-size: 15px; color: var(--muted); }
.plan p { font-size: 15px; line-height: 1.5; color: var(--muted); flex: 1; }
.plan .btn { width: 100%; }
.plan-hi { box-shadow: 0 0 0 2px var(--violet), var(--shadow-card); }
.plan-badge { font-family: var(--mono); font-size: 10px; font-weight: 500; padding: 5px 8px; border-radius: 5px; background: var(--violet); color: var(--on-violet); white-space: nowrap; }
.pricing-fine { margin-top: 28px; max-width: 80ch; }

/* ---------- FAQ ---------- */

.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: 2px; border-radius: var(--r-list); overflow: hidden; }
.faq-item { background: var(--surface); }
.faq-item summary {
    list-style: none; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 20px 22px;
    font-size: 18px; font-weight: 700; letter-spacing: -.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+'; flex: none;
    font-family: var(--mono); font-size: 18px; font-weight: 400; color: var(--violet-text);
    transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 22px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.faq-item p a { font-weight: 600; }

/* ---------- CTA ---------- */

.cta { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; padding-top: 112px; padding-bottom: 112px; }
.cta .h2 { max-width: 14ch; }
.cta p { max-width: 50ch; font-size: 19px; color: var(--ink-2); }
.cta .btn-row { justify-content: center; }
.cta .install { align-items: center; width: 100%; }
.cta .cmd { width: 100%; text-align: start; }
.cta .fine { text-align: center; }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--hairline); padding: 56px 0 64px; background: var(--surface); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; }
.footer-about { display: flex; flex-direction: column; gap: 16px; }
.footer-about p { font-size: 14px; line-height: 1.55; color: var(--muted); max-width: 52ch; }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 15px; text-decoration: none; color: var(--ink-2); }
.footer-col a:hover { color: var(--violet-text); }
.footer-copy { grid-column: 1 / -1; font-size: 13px; color: var(--faint); padding-top: 24px; border-top: 1px solid var(--hairline); }

/* ---------- Docs and legal pages ---------- */

.doc-header { padding: 64px 0 40px; border-bottom: 1px solid var(--hairline); }
.doc-header h1 { font-size: clamp(38px, 5.4vw, 60px); line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.doc-header .meta { display: block; margin-top: 16px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.doc-header .meta a { color: var(--ink); }
.doc-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; padding-top: 48px; padding-bottom: 104px; }
.toc { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 120px); overflow-y: auto; }
.toc > span { margin-bottom: 10px; }
.toc a { display: flex; gap: 10px; padding: 6px 10px; border-radius: 7px; text-decoration: none; font-size: 14px; color: var(--muted); }
.toc a span { font-family: var(--mono); font-size: 11px; color: var(--faint); padding-top: 2px; }
.toc a:hover { color: var(--ink); background: var(--fill); }
.toc a.on { color: var(--ink); background: var(--surface); font-weight: 600; }
.toc a.on span { color: var(--violet-text); }

.doc { max-width: 760px; min-width: 0; }
.doc > .intro { display: flex; flex-direction: column; gap: 20px; margin-bottom: 24px; }
.doc > .intro p { font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.doc section { padding-top: 40px; }
.doc h2 { display: flex; gap: 14px; align-items: baseline; font-size: 30px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; margin-bottom: 18px; }
.doc h2 > span:first-child { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--violet-text); letter-spacing: 0; flex: none; }
.doc h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; margin: 28px 0 10px; }
.doc p, .doc li { font-size: 16.5px; line-height: 1.65; color: var(--ink-2); }
.doc p + p { margin-top: 14px; }
.doc p + .cmd, .doc .cmd + p, .doc .dtable + p, .doc p + .dtable, .doc ul + p { margin-top: 14px; }
.doc ul, .doc ol { padding-inline-start: 22px; margin: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.doc a { font-weight: 600; }
.doc strong { color: var(--ink); }
.doc .cmd { margin: 10px 0; }

.callout {
    display: flex; flex-direction: column; gap: 6px;
    padding: 18px 20px; border-radius: var(--r-list);
    background: var(--surface);
    border-inline-start: 3px solid var(--violet);
}
.callout .text { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.callout .text a { font-weight: 600; }

.dtable { display: flex; flex-direction: column; gap: 2px; border-radius: var(--r-list); overflow: hidden; margin: 14px 0; }
.dtable > div { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr); gap: 16px; padding: 12px 16px; background: var(--surface); font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.dtable > div:first-child { background: var(--fill); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.dtable code { background: transparent; padding: 0; font-size: 12.5px; }
.dtable-wide > div { grid-template-columns: minmax(0, .5fr) minmax(0, 1.5fr); }

/* Legal body extras (kept from the Claude Code Notifier legal markup) */
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.doc th, .doc td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--hairline); vertical-align: top; color: var(--ink-2); }
.doc th { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 500; }
.doc .table-wrap { overflow-x: auto; }
.doc .note, .doc .highlight-box, .doc .info-box, .doc .warning-box {
    margin: 16px 0; padding: 16px 18px; border-radius: var(--r-list);
    background: var(--surface); border-inline-start: 3px solid var(--violet);
}
.doc .caps { text-transform: uppercase; font-size: 14.5px; }

/* ---------- Link pages (/p, /c, /licence) ---------- */

.link-main { display: flex; justify-content: center; padding-top: 56px; padding-bottom: 96px; }
.link-card {
    width: 100%; max-width: 680px;
    display: flex; flex-direction: column; gap: 20px;
}
.link-card h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; }
.link-sub { font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.link-narrow .link-card { max-width: 460px; }
.link-center { align-items: center; text-align: center; }
.link-center .btn-row, .link-stores { justify-content: center; }
.link-stores { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.link-stores .btn { width: 100%; }
.link-line { display: flex; flex-direction: column; gap: 8px; }
.link-live {
    display: flex; gap: 14px; align-items: center;
    padding: 16px 18px; border-radius: var(--r-list); background: var(--surface);
}
.link-live > div { display: flex; flex-direction: column; gap: 2px; }
.link-live b { font-size: 16px; }
.link-pulse { position: relative; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--violet); }
.link-pulse::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--violet); opacity: 0; animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.4); opacity: .8; } 100% { transform: scale(1.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .link-pulse::after { animation: none; } }
.link-more { border-radius: var(--r-list); background: var(--surface); }
.link-more summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; font-weight: 700; }
.link-more summary::-webkit-details-marker { display: none; }
.link-more-body { padding: 0 18px 18px; display: flex; flex-direction: column; gap: 14px; }
.link-alts { display: flex; flex-direction: column; gap: 12px; }
.link-alt { display: flex; flex-direction: column; gap: 6px; }
.link-next { display: flex; flex-direction: column; gap: 10px; }
.link-done { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; font-weight: 700; background: var(--fill); color: var(--muted); }
.link-icon { width: 88px; height: 88px; border-radius: 20px; }
.link-open { width: 100%; }
.ok { color: var(--added); }

/* ---------- Responsive ---------- */

@media (max-width: 1040px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .hero-visual { padding-top: 8px; }
    .float-notif { left: max(0px, calc(50% - 300px)); }
    .float-done { right: max(0px, calc(50% - 280px)); }
    .split, .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .features { grid-template-columns: minmax(0, 1fr); }
    .feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .feature-visual { margin-top: 0; height: 100%; min-height: 300px; }
    .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
    .doc-body { grid-template-columns: minmax(0, 1fr); }
    .toc { display: none; }
}
@media (max-width: 768px) {
    .container { padding-inline: 16px; }
    .nav-links { display: none; }
    .nav-inner { gap: 12px; }
    .nav-inner .btn { margin-inline-start: auto; }
    .brand-tag { display: none; }
    .hero { padding: 40px 0 64px; }
    .hero-sub, .lede, .cta p { font-size: 17px; }
    .section-pad { padding-top: 72px; padding-bottom: 72px; }
    .cta { padding-top: 80px; padding-bottom: 80px; }
    .feature { display: flex; }
    .feature-visual { height: 300px; min-height: 0; }
    .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .doc-header { padding: 40px 0 28px; }
    .doc h2 { font-size: 25px; }
    .dtable > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .dtable > div:first-child { display: none; }
}
@media (max-width: 560px) {
    .plans { grid-template-columns: minmax(0, 1fr); }
    .float-notif { left: 0; width: 260px; top: -8px; }
    .float-done { right: 0; }
    .hero-visual .phone { transform: scale(.9); transform-origin: top center; margin-bottom: -62px; }
    .btn-row > .btn { flex: 1 1 auto; }
    .cmd { padding-inline-start: 12px; gap: 8px; }
    .cmd-copy { padding: 0 10px; }
    .seg button { padding: 0 10px; }
    .nav-inner .btn { height: 38px; padding: 0 12px; font-size: 14px; }
}
@media (max-width: 360px) {
    /* "Notifier for Codex" and the Get the app button share a 320px-wide nav */
    .brand { gap: 8px; }
    .brand-name { font-size: 17px; }
    .nav-inner .btn { padding: 0 10px; font-size: 13px; }
}

/* Legal page switch (privacy / terms) */
.seg-link { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 7px; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--muted); }
.seg-link:hover { color: var(--ink); }
.seg-link.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
