/* Kodura design tokens.
 *
 * The site is light: it talks to business owners, and the light values are the
 * ones the iOS apps already use. Tool panels, results and code blocks sit in a
 * .console, which switches back to the original dark palette (brand blue
 * #006EFE on near-black #02050B). The two grounds carry meaning: the page
 * explains, the console is where the engineering shows.
 *
 * Tool stylesheets read some tokens under their Branding/palette names
 * (--kodura-*), so those are aliased here in both scopes. An alias must be
 * declared in the same scope as its source, or it keeps the value it resolved
 * to at :root. */

:root {
    --bg: #f5f7fa;
    --bg-raised: #ffffff;
    --bg-card: #ffffff;
    --border: #e4e8ef;
    --border-solid: #dde3ea;
    --border-control: #838d9c; /* 3:1 on white and on --bg: inputs, ghost buttons */

    --text: #101722;
    --text-dim: #5c677a;
    --text-faint: #667085;

    --brand: #006efe;
    --brand-bright: #0057cc; /* links and accent text: 6:1 on white */
    --brand-soft: #006efe14;
    --brand-cyan: #0057cc;
    --on-brand: #ffffff;

    --ok: #0a7a4e;
    --pending: #9a5b00;
    --critical: #c02a2a;

    --header-bg: #f5f7fad9;
    --shadow-menu: 0 12px 32px #1017221f;
    --row-highlight: #006efe0d;
    --row-hover: #10172208;

    --radius: 6px;
    --radius-lg: 10px;
    --max: 1080px;

    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;

    --kodura-brand-bright: var(--brand-bright);
    --kodura-brand-cyan: var(--brand-cyan);
    --kodura-text-dim: var(--text-dim);
    --kodura-text-faint: var(--text-faint);
}

/* The console: tool panels, results and code, on the original dark palette. */
.console,
.article pre,
.prose pre {
    color-scheme: dark;
    --bg: #02050b;
    --bg-raised: #080d16;
    --bg-card: #0b1220;
    --border: #16203180;
    --border-solid: #182234;
    --border-control: #56667f;

    --text: #e8edf5;
    --text-dim: #8e9bb0;
    --text-faint: #75819a;

    --brand: #006efe;
    --brand-bright: #3d92ff;
    --brand-soft: #006efe1a;
    --brand-cyan: #00b9fd;

    --ok: #2fd08a;
    --pending: #f0a83c;
    --critical: #ff6b6b;

    --row-highlight: #ffffff08;
    --row-hover: #ffffff0d;

    --kodura-brand-bright: var(--brand-bright);
    --kodura-brand-cyan: var(--brand-cyan);
    --kodura-text-dim: var(--text-dim);
    --kodura-text-faint: var(--text-faint);
}

.console {
    color: var(--text);
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: clamp(0.9rem, 3vw, 1.5rem);
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.console > * {
    margin-block: 0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* A faint glow behind the hero so the page has depth without imagery. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(60rem 40rem at 70% -10%, #006efe12, transparent 60%),
        radial-gradient(40rem 30rem at 10% 10%, #00a6ff0d, transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.wrap {
    position: relative;
    z-index: 1;
    width: min(100% - 2.5rem, var(--max));
    margin-inline: auto;
}

a {
    color: var(--brand-bright);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1,
h2,
h3 {
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0;
}

/* ---------- Header ---------- */

header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--header-bg);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Must be allowed to wrap. A non-wrapping flex row whose nav cannot shrink
       below its content pushes the whole page wider than a phone viewport, and
       the entire body then scrolls sideways. */
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    padding-block: 0.9rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.brand:hover {
    text-decoration: none;
}

/* The dark-on-light wordmark: the page ground is light. Sized by height with
   width:auto so the intrinsic 2068×236 ratio is preserved. */
.brand .wordmark {
    height: 22px;
    width: auto;
    display: block;
}

nav {
    display: flex;
    gap: 1.5rem;
    font-size: 0.94rem;
}

nav a {
    color: var(--text-dim);
}

nav a:hover {
    color: var(--text);
    text-decoration: none;
}

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

.hero {
    padding-block: clamp(4rem, 12vw, 8rem) clamp(3rem, 8vw, 5rem);
}

.hero h1 {
    font-size: clamp(2.3rem, 6.5vw, 4rem);
    max-width: 17ch;
    margin-bottom: 1.3rem;
}

.hero p {
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    color: var(--text-dim);
    max-width: 58ch;
    margin: 0 0 2rem;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: var(--brand);
    color: var(--on-brand);
}

.btn-primary:hover {
    background: #0057cc;
}

.btn-ghost {
    border-color: var(--border-control);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: var(--brand);
    color: var(--brand-bright);
}

.btn:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

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

section {
    padding-block: clamp(3rem, 8vw, 5.5rem);
}

.section-head {
    margin-bottom: 2.5rem;
}

.section-head h2 {
    font-size: clamp(1.7rem, 4vw, 2.3rem);
    margin-bottom: 0.6rem;
}

.section-head p {
    color: var(--text-dim);
    max-width: 60ch;
    margin: 0;
}

/* ---------- Product cards ---------- */

.products {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

/* With four products, auto-fit lands on three across and leaves one card
   stranded on its own row. Two-up reads as a deliberate grid instead, and
   stays tidy at five and six. */
@media (min-width: 860px) {
    .products {
        grid-template-columns: repeat(2, 1fr);
    }
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-solid);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.card-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius);
    display: grid;
    place-items: center;
    background: var(--brand-soft);
    border: 1px solid var(--border-solid);
    font-size: 1.35rem;
}

.card h3 {
    font-size: 1.2rem;
}

.card p {
    color: var(--text-dim);
    margin: 0;
    font-size: 0.96rem;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    align-self: flex-start;
}

.status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-live {
    color: var(--ok);
    background: #2fd08a1a;
}

.status-dev {
    color: var(--pending);
    background: #f0a83c1a;
}

/* Featured product card (MANA): spans the grid, screenshot beside the copy. */
.card-featured {
    grid-column: 1 / -1;
}

.card-mana .card-icon {
    background: #0a0d12;
    border-color: #263140;
}

.card-mana .card-icon img {
    width: 28px;
    height: 28px;
}

.card-mana .card-shot {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border-solid);
}

.status-soon {
    color: #33d6ff;
    background: #33d6ff1a;
}

@media (min-width: 860px) {
    .card-featured {
        display: grid;
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
        gap: 1.8rem;
        align-items: center;
    }

    .card-featured .card-body {
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
    }
}

@media (max-width: 859px) {
    .card-featured .card-body {
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
    }
}

/* Testable but not yet on the App Store. Distinct from both "available" and
   "in development", because beta is a real, visitable state. */
.status-beta {
    color: var(--brand-bright);
    background: #3d92ff1a;
}

.card ul {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--text-faint);
    font-size: 0.9rem;
}

.card ul li + li {
    margin-top: 0.3rem;
}

/* ---------- About ---------- */

.about {
    background: var(--bg-raised);
    border: 1px solid var(--border-solid);
    border-radius: var(--radius-lg);
    padding: clamp(1.6rem, 4vw, 2.6rem);
}

.about p {
    color: var(--text-dim);
    max-width: 66ch;
}

.about p:first-of-type {
    color: var(--text);
    font-size: 1.08rem;
}

/* ---------- Signup ---------- */

.signup {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-solid);
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 5vw, 3rem);
}

.signup h2 {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    margin-bottom: 0.6rem;
}

.signup p {
    color: var(--text-dim);
    margin: 0 auto 1.6rem;
    max-width: 46ch;
}

.signup form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

.signup input {
    flex: 1 1 260px;
    max-width: 340px;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-control);
    background: var(--bg);
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
}

.signup input:focus {
    outline: 2px solid var(--brand);
    outline-offset: 1px;
}

.note {
    font-size: 0.8rem;
    color: var(--text-faint);
    margin-top: 0.9rem;
}

/* Defined here rather than in a tool stylesheet because every page loads this
   one. It previously lived only in tools/subnet/tool.css, so the sign-up
   form's label rendered visibly on every article that stamped it in. */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Stamped into articles and tool pages by build-nav.mjs. Narrower padding than
   the homepage block, because there it is the section and here it interrupts
   something the reader chose to read.

   It sits after </main>, so it is outside the page's .wrap container and has
   to constrain itself — without this it bled edge to edge. Matched to .prose
   so it lines up with the text above it rather than the page. */
aside.signup {
    width: min(100% - 2.5rem, 70ch);
    margin: clamp(2rem, 5vw, 3rem) auto clamp(2.5rem, 6vw, 4rem);
    padding: clamp(1.4rem, 3.5vw, 2rem);
    text-align: left;
}

aside.signup h2 {
    font-size: clamp(1.15rem, 2.5vw, 1.4rem);
    margin-bottom: 0.4rem;
}

aside.signup p {
    margin-inline: 0;
    max-width: 58ch;
}

aside.signup form {
    justify-content: flex-start;
}

.signup-note {
    font-size: 0.82rem;
    color: var(--text-faint);
    margin: 1rem 0 0;
    max-width: 58ch;
}

.signup-note strong { color: var(--text-dim); }

/* ---------- Prose pages ---------- */

.prose {
    padding-block: clamp(2.5rem, 6vw, 4rem);
    max-width: 70ch;
}

.prose h1 {
    font-size: clamp(1.9rem, 5vw, 2.6rem);
    margin-bottom: 0.4rem;
}

.prose .updated {
    color: var(--text-faint);
    font-family: var(--mono);
    font-size: 0.82rem;
    margin-bottom: 2.5rem;
}

.prose h2 {
    font-size: 1.25rem;
    margin-top: 2.4rem;
    margin-bottom: 0.7rem;
}

.prose h3.faq {
    font-size: 1.05rem;
    margin-top: 1.9rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.prose p,
.prose li {
    color: var(--text-dim);
}

.prose code {
    font-family: var(--mono);
    font-size: 0.88em;
    background: var(--bg-card);
    border: 1px solid var(--border-solid);
    border-radius: 5px;
    padding: 0.1em 0.4em;
    color: var(--brand-bright);
}

.prose ul {
    padding-left: 1.2rem;
}

.prose li + li {
    margin-top: 0.4rem;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.92rem;
}

.prose th,
.prose td {
    text-align: left;
    padding: 0.6rem 0.7rem;
    border-bottom: 1px solid var(--border-solid);
    color: var(--text-dim);
}

.prose th {
    color: var(--text);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

/* Wide tables must scroll inside themselves, never the page. */
.table-scroll {
    overflow-x: auto;
}

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

footer {
    border-top: 1px solid var(--border);
    padding-block: 2.2rem;
    margin-top: 3rem;
}

footer .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    color: var(--text-faint);
    font-size: 0.88rem;
}

footer nav {
    flex-wrap: wrap;
    gap: 0.6rem 1.3rem;
}

/* ---------- Narrow screens ---------- */

@media (max-width: 460px) {
    nav {
        gap: 1.05rem;
        font-size: 0.87rem;
    }

    .brand .wordmark {
        height: 19px;
    }

    .actions .btn {
        flex: 1 1 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Internal links matter for more than navigation: an orphan page is crawled
   less and ranks worse, so the tool pages are reachable from the products
   they belong to. */
.card-link {
    margin: 1rem 0 0;
}

.card-link a {
    color: var(--brand-bright);
    font-size: 0.9rem;
    text-decoration: none;
}

.card-link a:hover {
    text-decoration: underline;
}

/* ── Nav: the Tools dropdown ────────────────────────────────────────────────
 *
 * The parent "Tools" item is a real link to /tools, which lists the same three
 * tools as the menu. That is deliberate: the dropdown is a convenience on top
 * of a page that exists, not the only way to reach them. So it can be switched
 * off entirely below — on touch, where a hover menu has no reliable way to
 * close, and on narrow screens, where an absolutely-positioned panel fights the
 * wrapping header — and nothing becomes unreachable.
 *
 * No JavaScript: :focus-within opens the menu for keyboard users, because the
 * trigger is a descendant of .nav-group.
 */
.nav-group {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
}

/* Off by default; the media query below turns them on where they work. */
.nav-caret,
.nav-menu {
    display: none;
}

@media (hover: hover) and (min-width: 700px) {
    .nav-caret {
        display: inline;
        font-size: 0.82em;
        color: var(--text-dim);
        transition: color 0.15s ease;
    }

    .nav-group:hover .nav-caret,
    .nav-group:focus-within .nav-caret {
        color: var(--text);
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
        position: absolute;
        top: calc(100% + 0.6rem);
        left: -0.85rem;
        min-width: 12.5rem;
        padding: 0.45rem;
        background: var(--bg-card);
        border: 1px solid var(--border-solid);
        border-radius: var(--radius);
        box-shadow: var(--shadow-menu);

        /* visibility rather than display so the fade can run, and so the menu
         * stays out of the tab order while closed. */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-4px);
        transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s;
    }

    /* Bridges the gap between the trigger and the panel. Without it the menu
     * closes as the pointer crosses the empty strip on its way down. */
    .nav-menu::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: -0.7rem;
        height: 0.7rem;
    }

    .nav-group:hover .nav-menu,
    .nav-group:focus-within .nav-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-menu a {
        padding: 0.42rem 0.6rem;
        border-radius: 4px;
        white-space: nowrap;
    }

    .nav-menu a:hover,
    .nav-menu a:focus-visible {
        background: var(--brand-soft);
        color: var(--text);
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav-menu {
        transition: none;
        transform: none;
    }
}

/* Where you are. Applies to the header only — the footer repeats Support, and
 * marking it there too would put two "current page" flags on one document. */
header nav a[aria-current="page"] {
    color: var(--text);
}

header nav > a[aria-current="page"],
.nav-group-label[aria-current="page"] {
    box-shadow: inset 0 -2px 0 var(--brand);
}

.nav-menu a[aria-current="page"] {
    color: var(--text);
    background: var(--brand-soft);
}

/* On a tool page the child carries aria-current, so the parent is highlighted
 * here rather than with an attribute — it marks the section, not the page, and
 * only one element per document should claim to be the current page. */
.nav-group:has(.nav-menu a[aria-current="page"]) .nav-group-label {
    color: var(--text);
}

/* ---------- Services homepage ---------- */

.hero .status {
    margin-bottom: 1.4rem;
}

.steps {
    list-style: none;
    counter-reset: step;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.steps li {
    counter-increment: step;
    background: var(--bg-card);
    border: 1px solid var(--border-solid);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
}

.steps li::before {
    content: counter(step, decimal-leading-zero);
    display: block;
    font-family: var(--mono);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--brand-bright);
    margin-bottom: 0.7rem;
}

.steps h3 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
}

.steps p {
    color: var(--text-dim);
    margin: 0;
    font-size: 0.96rem;
}

/* ---------- Contact form ---------- */

.contact-form {
    display: grid;
    gap: 1.1rem;
    max-width: 560px;
    margin-top: 2rem;
}

.contact-form label {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 0.4rem;
}

.contact-form .optional {
    font-weight: 400;
    color: var(--text-faint);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-control);
    background: var(--bg-card);
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
}

.contact-form textarea {
    min-height: 8rem;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--brand);
    outline-offset: 1px;
}

.contact-form .btn {
    justify-self: start;
}

/* Honeypot: hidden from people, filled in by form-spamming bots. */
.contact-form .trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.notice {
    border: 1px solid #f0a83c66;
    background: #f0a83c14;
    border-radius: var(--radius);
    padding: 0.9rem 1.1rem;
    margin-top: 1.5rem;
}

.notice[hidden] {
    display: none;
}

/* Three app cards: two-up would strand the third on its own row. */
@media (min-width: 860px) {
    .products-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---------- The apex ----------
 *
 * The triangle from the A in the wordmark, at its exact proportions (123 wide,
 * 81 tall, a 10-unit flat top). It marks what a generic site would mark with a
 * dot or an icon: section labels, list bullets, a change in a diagram. Drawn
 * with clip-path so it needs no asset and takes the gradient from the mark. */

.apex,
.eyebrow-mark::before,
.apex-list > li::before {
    content: "";
    display: inline-block;
    flex: none;
    width: 0.75rem;
    height: calc(0.75rem * 81 / 123);
    background: linear-gradient(#0096e0, #006efe);
    clip-path: polygon(45.9% 0, 54.1% 0, 100% 100%, 0 100%);
}

.console .apex,
.console .eyebrow-mark::before,
.console .apex-list > li::before {
    background: linear-gradient(#00b9fd, #006efe);
}

/* Mono, small and tracked: the voice for labels, numbers and addresses. */
.eyebrow-mark {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 0.9rem;
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.apex-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.apex-list > li {
    display: flex;
    gap: 0.7rem;
    align-items: baseline;
}

.apex-list > li::before {
    width: 0.62rem;
    height: calc(0.62rem * 81 / 123);
    transform: translateY(-0.1em);
}

/* Prose bullets take the apex too. Ordered lists keep their numbers. */
.prose ul:not([class]) {
    list-style: none;
    padding-left: 1.3rem;
}

.prose ul:not([class]) > li {
    position: relative;
}

.prose ul:not([class]) > li::before {
    content: "";
    position: absolute;
    left: -1.2rem;
    top: 0.62em;
    width: 0.55rem;
    height: calc(0.55rem * 81 / 123);
    background: linear-gradient(#0096e0, #006efe);
    clip-path: polygon(45.9% 0, 54.1% 0, 100% 100%, 0 100%);
}

.prose th,
.article th {
    font-family: var(--mono);
}

.post-date,
.prose .updated {
    font-family: var(--mono);
}

/* ---------- Topology drawings ----------
 *
 * Service cards show the network they change rather than an icon: 1px links,
 * plain nodes, real labels, and the apex on whatever Kodura adds or watches.
 * Five pieces reused: node, link, the Kodura node (filled brand), a watched
 * path (dashed brand) and a change (the apex in amber). */

.topo {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 0.4rem;
    overflow: visible;
}

.topo text {
    font-family: var(--mono);
    font-size: 10px;
    fill: var(--text-dim);
}

.topo .lbl { fill: var(--text); }
.topo .ln { stroke: var(--border-control); stroke-width: 1; fill: none; }
.topo .watch { stroke: var(--brand); stroke-width: 1.25; fill: none; stroke-dasharray: 4 3; }
.topo .nd { fill: var(--bg-card); stroke: var(--text); stroke-width: 1.1; }
.topo .kd { fill: var(--brand); }
.topo .apx { fill: #006efe; }
.topo .chg { fill: var(--pending); }
.topo .okd { fill: var(--ok); }

/* Flow animation (script.js): the packet, and the box it lands on. */
.topo .pkt { fill: var(--brand); pointer-events: none; }
.topo .nd { transition: stroke 0.35s ease; }
.topo .nd.hit { stroke: var(--brand); }
.topo .kd,
.topo .okd {
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 0.35s ease;
}
.topo .kd.hit,
.topo .okd.hit { transform: scale(1.2); }

/* ---------- Homepage ---------- */

.hero-grid {
    display: grid;
    gap: 2rem;
    align-items: end;
}

@media (min-width: 900px) {
    .hero-grid {
        grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
        gap: 3rem;
    }
}

.hero .eyebrow-mark {
    color: var(--brand-bright);
}

.domain-check {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    max-width: 34rem;
}

.domain-check label {
    font-weight: 600;
    font-size: 0.95rem;
}

.domain-check .row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.domain-check input {
    flex: 1 1 15rem;
    min-width: 0;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-control);
    background: var(--bg-card);
    color: var(--text);
    font-family: var(--mono);
    font-size: 1rem;
}

.domain-check input:focus {
    outline: 2px solid var(--brand);
    outline-offset: 1px;
}

.domain-check small {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.hero .domain-check {
    margin-top: 0.4rem;
}

.founder {
    background: var(--bg-card);
    border: 1px solid var(--border-solid);
    border-radius: var(--radius-lg);
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.founder .who {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.founder .who > div {
    display: flex;
    flex-direction: column;
}

/* The photos are cutouts on transparency; the tile behind them is the brand
 * tint, so the portrait sits in the palette rather than on a studio grey. */
.founder .avatar,
.about .portrait {
    display: block;
    flex: none;
    background: var(--brand-soft);
    border-radius: var(--radius);
}

.founder .avatar {
    width: 72px;
    height: 72px;
}

.about-founder {
    display: grid;
    gap: 2rem;
    align-items: end;
}

@media (min-width: 860px) {
    .about-founder {
        grid-template-columns: minmax(0, 1fr) 17rem;
        gap: 3rem;
    }
}

.about .portrait {
    width: 100%;
    max-width: 17rem;
    height: auto;
    aspect-ratio: 1;
}

.founder .who .name {
    font-size: 1.05rem;
    font-weight: 600;
}

.founder .who .role {
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: var(--text-dim);
}

.hero .founder p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-dim);
}

.founder .wait {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    border-top: 1px solid var(--border-solid);
    padding-top: 0.9rem;
}

.founder .status {
    margin: 0;
}

.founder .wait a {
    font-weight: 600;
    font-size: 0.92rem;
}

/* Service cards: an outcome heading, the acronyms in a small mono line, and
 * what changes. */
.service .sub {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    margin-top: -0.45rem;
}

.ba {
    display: grid;
    grid-template-columns: 3.6rem 1fr;
    gap: 0.35rem 0.8rem;
    margin: 0;
    font-size: 0.93rem;
}

.ba dt {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding-top: 0.28rem;
    color: var(--text-dim);
}

.ba dt.after {
    color: var(--ok);
}

.ba dd {
    margin: 0;
    color: var(--text-dim);
}

.ba dd.after {
    color: var(--text);
}

.products-services {
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

@media (min-width: 860px) {
    .products-services {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card-icon img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: var(--radius);
}

.card-icon.app {
    background: none;
    border: 0;
    overflow: hidden;
}

.capacity-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

/* ---------- The fix block ----------
 *
 * Ends a finding with the exact record or line to paste. Lives in the console
 * on tool pages, so it reads the console's tokens. */

.fix-block {
    margin-top: 0.8rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-solid);
    border-radius: var(--radius);
    background: var(--bg);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-width: 0;
}

.fix-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
}

.fix-title,
.fix-label {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-bright);
}

.fix-label {
    color: var(--text-dim);
}

.fix-copy {
    flex: none;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-control);
    border-radius: var(--radius);
    padding: 0.25rem 0.6rem;
    font-family: var(--mono);
    font-size: 0.75rem;
    cursor: pointer;
}

.fix-copy:hover {
    border-color: var(--brand-bright);
    color: var(--brand-bright);
}

.fix-copy:focus-visible {
    outline: 2px solid var(--brand-bright);
    outline-offset: 2px;
}

.fix-record {
    display: grid;
    grid-template-columns: 3.4rem minmax(0, 1fr);
    gap: 0.3rem 0.8rem;
    margin: 0;
    font-size: 0.85rem;
}

.fix-record dt {
    color: var(--text-dim);
    font-family: var(--mono);
    font-size: 0.75rem;
    padding-top: 0.1rem;
}

.fix-record dd {
    margin: 0;
    font-family: var(--mono);
    color: var(--text);
    overflow-wrap: anywhere;
}

.fix-record .fix-value {
    color: var(--brand-cyan);
}

.fix-note {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.fix-snippet {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.fix-snippet pre {
    margin: 0;
    overflow-x: auto;
    font-family: var(--mono);
    font-size: 0.82rem;
    color: var(--brand-cyan);
}

.card-span {
    grid-column: 1 / -1;
}

.card-icon .apex {
    width: 1.3rem;
    height: calc(1.3rem * 81 / 123);
}

/* Card detail lists take the apex as their bullet. */
.card ul {
    list-style: none;
    padding-left: 1.1rem;
}

.card ul > li {
    position: relative;
}

.card ul > li::before {
    content: "";
    position: absolute;
    left: -1.05rem;
    top: 0.6em;
    width: 0.5rem;
    height: calc(0.5rem * 81 / 123);
    background: linear-gradient(#0096e0, #006efe);
    clip-path: polygon(45.9% 0, 54.1% 0, 100% 100%, 0 100%);
}

/* Section rules style every <p> in a hero, section head or panel; the label is
 * a <p> too, so it restates itself here. */
.hero .eyebrow-mark,
.section-head .eyebrow-mark,
.about .section-head .eyebrow-mark {
    font-size: 0.75rem;
    line-height: 1.4;
    max-width: none;
    margin: 0 0 0.9rem;
    color: var(--text-dim);
}

.hero .eyebrow-mark {
    color: var(--brand-bright);
}

/* ---------- Header button ----------
 * The one action the site asks for. `nav a` colours every nav link, so the
 * button restates its own colours at a higher specificity. */
header nav {
    align-items: center;
    flex-wrap: wrap;
    row-gap: 0.5rem;
}

nav a.nav-cta,
nav a.nav-cta:hover {
    color: var(--on-brand);
    padding: 0.45rem 0.9rem;
    font-size: 0.88rem;
}

header nav > a.nav-cta[aria-current="page"] {
    box-shadow: none;
    color: var(--on-brand);
}

@media (max-width: 460px) {
    nav a.nav-cta,
    nav a.nav-cta:hover {
        padding: 0.4rem 0.7rem;
        font-size: 0.82rem;
    }
}

/* Four links and the button don't fit a phone header on one line. Writing is
   the one a customer needs least there, and the footer links it on every page. */
@media (max-width: 460px) {
    header nav > a[href="/blog"] {
        display: none;
    }
}

/* ---------- Service grid with a lead card ----------
 * The phone card takes two columns and two rows, so six cards fill a 3 × 3
 * grid with nothing stranded. Below 860px everything stacks. */
.products-services {
    grid-template-columns: 1fr;
}

@media (min-width: 860px) {
    .products-services {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .card-lead {
        grid-column: span 2;
        grid-row: span 2;
    }
}

.card-lead h3 {
    font-size: 1.45rem;
}

.card-lead .ba {
    font-size: 1rem;
}

.card-lead .topo {
    margin-bottom: 0.8rem;
}

/* ---------- Who it's for ---------- */
/* Who it's for: headline figures, then one card per industry. */
.stat-row {
    display: grid;
    gap: 1.25rem;
    margin: 0 0 2rem;
}

.stat {
    border-top: 2px solid var(--brand);
    padding-top: 0.9rem;
}

.stat p {
    margin: 0;
    color: var(--text-dim);
    font-size: 0.96rem;
    max-width: 34ch;
}

.stat .num {
    color: var(--text);
    font-size: 2.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 0.35rem;
}

.src {
    font-family: var(--mono);
    font-size: 0.74rem;
    color: var(--text-dim);
}

.stat .src {
    margin-top: 0.6rem;
    font-size: 0.74rem;
}

.src a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--border-control);
    text-underline-offset: 2px;
}

.src a:hover {
    color: var(--brand);
}

.sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.industry-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

/* Each card spans four rows of the grid (head, scene, figure, source) and
   shares them with its neighbours through subgrid, so figures line up. */
.industry-grid .ind {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    row-gap: 0.7rem;
    padding: 1.3rem;
}

.ind::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
}

.ind-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.ind h3 {
    font-size: 1.05rem;
}

.ind .ring {
    flex: none;
    width: 30px;
    height: 30px;
    padding: 7px;
    border-radius: 50%;
    background: var(--brand-soft);
    fill: none;
    stroke: var(--brand);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ind .scene {
    font-size: 0.93rem;
}

.ind-fig {
    align-self: end;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border-solid);
}

.ind-fig .num {
    color: var(--text);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 0.3rem;
    font-variant-numeric: tabular-nums;
}

.ind-fig .fig {
    color: var(--text);
    font-size: 0.9rem;
}

.industry-grid .src {
    align-self: end;
    font-size: 0.72rem;
}

.stat .num {
    font-variant-numeric: tabular-nums;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .ind {
        transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    }

    .ind::before {
        transition: transform 0.35s ease;
    }

    .ind .num {
        transition: color 0.25s ease;
    }

    .ind:hover {
        transform: translateY(-4px);
        border-color: var(--brand);
        box-shadow: 0 14px 30px -18px rgb(0 110 254 / 0.45);
    }

    .ind:hover::before {
        transform: scaleX(1);
    }

    .ind:hover .num {
        color: var(--brand);
    }

    .ind:hover .ring {
        animation: ring 0.9s ease;
    }
}

@keyframes ring {
    0%, 70%, 100% { transform: rotate(0); }
    10% { transform: rotate(-16deg); }
    20% { transform: rotate(14deg); }
    30% { transform: rotate(-12deg); }
    40% { transform: rotate(9deg); }
    50% { transform: rotate(-5deg); }
    60% { transform: rotate(2deg); }
}

@media (min-width: 640px) {
    .industry-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 860px) {
    .stat-row { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

@media (min-width: 1100px) {
    .industry-grid { grid-template-columns: repeat(4, 1fr); }
}

.quiet {
    color: var(--text-dim);
    font-size: 0.92rem;
    max-width: 62ch;
    margin: 1.1rem 0 0;
}

/* ---------- Sample monthly report ---------- */
.report-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem 1rem;
}

.report-head h3 {
    font-size: 1.05rem;
}

.report-tag {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pending);
    border: 1px solid currentColor;
    border-radius: var(--radius);
    padding: 0.15rem 0.5rem;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: 1px;
    background: var(--border-solid);
    border: 1px solid var(--border-solid);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 0;
}

.report-grid div {
    background: var(--bg-card);
    padding: 0.9rem 1rem;
    display: flex;
    flex-direction: column-reverse;
    gap: 0.2rem;
}

.report-grid dt {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.report-grid dd {
    margin: 0;
    font-family: var(--mono);
    font-size: 1.6rem;
    font-variant-numeric: tabular-nums;
    color: var(--text);
}

.report-notes {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.report-notes li + li {
    margin-top: 0.3rem;
}

/* ---------- Page hero for service pages ---------- */
.page-hero {
    padding-block: clamp(3rem, 9vw, 5.5rem) clamp(2rem, 5vw, 3rem);
}

.page-hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 3.4rem);
    max-width: 18ch;
    margin-bottom: 1.1rem;
}

.page-hero > p {
    font-size: clamp(1.05rem, 2.2vw, 1.2rem);
    color: var(--text-dim);
    max-width: 60ch;
    margin: 0 0 1.8rem;
}

.narrow {
    max-width: 620px;
}

.narrow p,
.narrow li {
    color: var(--text-dim);
}

/* A flow diagram wider than a phone scrolls inside itself. */
.flow {
    overflow-x: auto;
    margin: 0;
}

.flow .topo {
    min-width: 560px;
}

.flow figcaption {
    margin-top: 0.8rem;
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* ---------- The app versus Kodura ---------- */
.versus {
    display: grid;
    gap: 1.2rem;
}

@media (min-width: 760px) {
    .versus {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.versus-col {
    border: 1px solid var(--border-solid);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.5rem;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.versus-col h3 {
    font-size: 1.1rem;
}

.versus-col .sub {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    margin: -0.5rem 0 0;
}

.versus-col ul {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--text-dim);
}

.versus-col li + li {
    margin-top: 0.4rem;
}

.versus-kodura {
    border-color: var(--brand);
}

.versus-kodura li {
    color: var(--text);
}

/* ---------- Price and placeholders ----------
 * A placeholder is loud on purpose: nothing marked this way may ship. */
.placeholder {
    font-family: var(--mono);
    font-size: 0.9em;
    background: #f0a83c26;
    color: var(--pending);
    border: 1px dashed var(--pending);
    border-radius: 4px;
    padding: 0 0.35em;
    white-space: nowrap;
}

.price {
    display: grid;
    gap: 1rem;
    padding: 1.4rem 1.5rem;
    border: 1px solid var(--border-solid);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
}

.price-lines {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 2.4rem;
    margin: 0;
}

.price-lines div {
    display: flex;
    flex-direction: column-reverse;
}

.price-lines dt {
    color: var(--text-dim);
    font-size: 0.88rem;
}

.price-lines dd {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.price p {
    margin: 0;
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* ---------- Questions ---------- */
.faq {
    border-top: 1px solid var(--border-solid);
}

.faq details {
    border-bottom: 1px solid var(--border-solid);
    padding: 1rem 0;
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    font-family: var(--mono);
    color: var(--brand-bright);
    flex: none;
}

.faq details[open] summary::after {
    content: "−";
}

.faq summary:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 4px;
}

.faq details p {
    margin: 0.7rem 0 0;
    color: var(--text-dim);
    max-width: 62ch;
}

/* ---------- Service block inside an owner article ----------
 * Part of the article, not an advert: a rule above it, the apex label, one
 * sentence tied to the article's problem and one link. */
.service-block {
    margin: 2.6rem 0 0;
    padding-top: 1.3rem;
    border-top: 1px solid var(--border-solid);
}

.service-block p {
    margin: 0 0 0.6rem;
    color: var(--text);
}

.service-block .eyebrow-mark {
    margin-bottom: 0.6rem;
}

/* ---------- Contact: what's eating your week ----------
 * Radio buttons styled as chips; a plain form field, so it posts with no
 * script. */
.focus-chips {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.focus-chips legend {
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 0.5rem;
    padding: 0;
}

.focus-chips .optional {
    font-weight: 400;
    color: var(--text-faint);
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip-row label {
    margin: 0;
    font-weight: 400;
    cursor: pointer;
}

.chip-row input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.chip-row span {
    display: inline-block;
    padding: 0.5rem 0.95rem;
    border: 1px solid var(--border-control);
    border-radius: var(--radius);
    background: var(--bg-card);
    font-size: 0.95rem;
}

.chip-row input:checked + span {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand-bright);
    box-shadow: inset 0 0 0 1px var(--brand);
}

.chip-row input:focus-visible + span {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* ---------- Blog: owner articles ---------- */
.featured-posts {
    display: grid;
    gap: 1rem;
    margin: 1.4rem 0 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 700px) {
    .featured-posts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.featured-posts li {
    border: 1px solid var(--border-solid);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    padding: 1.3rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.featured-posts .kind {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.featured-posts a {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.featured-posts p {
    margin: 0;
    color: var(--text-dim);
    font-size: 0.95rem;
}

.featured-posts .post-date {
    margin-top: auto;
}

/* The demo line is shown as a number, not a link: tel: links are
 * unreliable on desktop and the number is what people need. */
.demo-line {
    cursor: default;
}

.signup .status {
    margin-bottom: 1rem;
}

.price h2,
.narrow h2 {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    margin-bottom: 0.4rem;
}

.lead-extras {
    padding-top: 0.9rem;
    border-top: 1px solid var(--border-solid);
    color: var(--text-dim);
    font-size: 0.96rem;
}

.page-hero .eyebrow-mark,
.price .eyebrow-mark,
.narrow .eyebrow-mark {
    font-size: 0.75rem;
    line-height: 1.4;
    max-width: none;
    margin: 0 0 0.9rem;
    color: var(--text-dim);
}

.page-hero .eyebrow-mark {
    color: var(--brand-bright);
}

/* Prose list rules (indent, spacing between items) are for running text; the
 * card grid and the post list set their own. */
.prose .featured-posts,
.prose .post-list {
    padding-left: 0;
}

.prose .featured-posts li + li {
    margin-top: 0;
}

.service-block .eyebrow-mark {
    color: var(--text-dim);
}

/* In the narrower article column a flow diagram is drawn on a smaller canvas
 * with larger labels, so the text lands at a readable size. */
.article .flow .topo {
    min-width: 520px;
}

.article .flow .topo text {
    font-size: 12px;
}

/* Until the demo line is live: stated plainly, not styled as an error. */
.demo-soon {
    font-family: var(--mono);
    font-size: 0.85em;
    color: var(--text-dim);
    font-weight: 400;
}

/* ---------- Pricing ---------- */
.plans {
    display: grid;
    gap: 1.25rem;
}

.plan h2 {
    font-size: 1.5rem;
    margin: 0;
}

.plan-lead {
    border-color: var(--brand);
    box-shadow: 0 18px 40px -28px rgb(0 110 254 / 0.5);
}

.plan-kind,
.est-label {
    font-family: var(--mono);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.card .plan-kind {
    margin: 0;
    font-size: 0.76rem;
}

.card .plan-price {
    color: var(--text-dim);
    font-size: 1rem;
    margin-top: 0.4rem;
}

.plan-price .amt,
.est-total .amt {
    color: var(--text);
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-right: 0.2rem;
    font-variant-numeric: tabular-nums;
}

.card .plan-yearly {
    color: var(--text-dim);
    font-size: 0.92rem;
    margin-top: -0.4rem;
}

.card .plan-setup {
    color: var(--text);
    font-weight: 600;
}

.card .plan-minutes {
    font-size: 0.92rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-solid);
}

.estimator {
    display: grid;
    gap: 1.75rem;
}

.est-inputs {
    display: grid;
    gap: 0.9rem;
    align-content: start;
}

.est-range {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.est-range input[type="range"] {
    flex: 1;
    min-width: 0;
    height: 28px;
    accent-color: var(--brand);
    cursor: pointer;
}

.est-minutes-value {
    flex: none;
    min-width: 8.5ch;
    text-align: right;
    font-family: var(--mono);
    font-size: 0.95rem;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.card .est-hint {
    font-size: 0.9rem;
}

.est-check {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-solid);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.est-check:has(input:checked) {
    border-color: var(--brand);
    background: var(--brand-soft);
}

.est-check input {
    width: 18px;
    height: 18px;
    margin: 0.15rem 0 0;
    accent-color: var(--brand);
    flex: none;
}

.est-check-price {
    display: block;
    color: var(--text-dim);
    font-size: 0.88rem;
}

.est-result {
    display: grid;
    gap: 0.9rem;
    align-content: start;
    padding: 1.25rem;
    border-radius: var(--radius);
    background: var(--bg);
    border: 1px solid var(--border-solid);
}

.est-lines {
    margin: 0;
    display: grid;
    gap: 0.4rem;
}

.est-lines div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.92rem;
}

.est-lines div[hidden] {
    display: none;
}

.est-lines dt {
    color: var(--text-dim);
}

.est-lines dd {
    margin: 0;
    font-variant-numeric: tabular-nums;
}

.card .est-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border-solid);
    color: var(--text);
}

.est-total-label {
    font-weight: 600;
}

.card .est-setup {
    display: flex;
    justify-content: space-between;
    font-size: 0.92rem;
}

.est-setup span:last-child {
    color: var(--text);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.fine {
    color: var(--text-dim);
    font-size: 0.86rem;
    max-width: 72ch;
    margin: 1rem 0 0;
}

@media (min-width: 860px) {
    .plans { grid-template-columns: 1.15fr 1fr; align-items: start; }
    .estimator { grid-template-columns: 1.2fr 1fr; }
}
