/*
 * Semantic Forge site styles (2026 redesign).
 * Replaces common.css for pages that include head-site.ejs.
 */
:root {
    --page-width: 1160px;
    --gutter: clamp(16px, 4vw, 40px);

    --paper: #fbfbf9;
    --surface: #ffffff;
    --surface-2: #f1f4f6;
    --ink: #0d1b2a;
    --ink-2: #33475b;
    --muted: #5d6f80;
    --line: #dfe5ea;

    /* Palette from the Smart Semantic Layer mark (icon-mark.svg):
       ring #156082 on #deebf7, quadrants #008080 and #00ff00. */
    --brand: #156082;
    --brand-ink: #ffffff;
    --brand-soft: #deebf7;
    --teal: #008080;
    --lime: #1a7f37;           /* the mark's #00ff00, darkened so text and lines stay legible */
    --lime-soft: #e5f5e5;
    --lime-bright: #00ff00;    /* exact logo green: fills on dark backgrounds only */

    --hero-bg: #0c1f2c;
    --hero-ink: #eef4f8;
    --hero-muted: #a9bccb;
    --hero-line: #22394b;
    --hero-glow-1: rgba(21, 96, 130, .65);
    --hero-glow-2: rgba(0, 128, 128, .30);
    --hero-accent: #5cc8c8;    /* teal lifted for the dark hero */
    --hero-string: #8ef08e;    /* lime softened for the dark hero */
    --hero-cta-bg: #deebf7;
    --hero-cta-ink: #0c1f2c;

    --code-bg: #0f1e2d;
    --code-ink: #d6e4ee;

    --radius: 14px;
    --shadow: 0 1px 2px rgba(13, 27, 42, .06), 0 8px 24px rgba(13, 27, 42, .06);

    --font-sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --paper: #0b1622;
        --surface: #111f2d;
        --surface-2: #152636;
        --ink: #e8eff5;
        --ink-2: #c3d1dc;
        --muted: #8fa3b4;
        --line: #22364a;
        --brand: #8ec3e3;
        --brand-ink: #06121c;
        --brand-soft: #13324a;
        --teal: #3fb7b7;
        --lime: #5ad65a;
        --lime-soft: #11301a;
        --hero-bg: #07141d;
        --hero-line: #1c2f42;
        --code-bg: #07111b;
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
        color-scheme: dark;
    }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3 {
    font-family: var(--font-display);
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin: 0 0 .5em;
    text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 650; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 650; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; text-wrap: pretty; }

.wrap {
    width: 100%;
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: .9rem;
}

.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 46em; }

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header .wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 68px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 650;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }

.site-nav {
    display: flex;
    gap: 4px;
    margin-left: auto;
    align-items: center;
}
.header-actions {
    display: flex;
    gap: 4px;
    align-items: center;
    flex: none;
}
.site-nav a, .site-nav span,
.header-actions > a:not(.btn), .header-actions > span {
    color: var(--ink-2);
    font-size: .95rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    white-space: nowrap;
}
.site-nav a:hover, .header-actions > a:not(.btn):hover { background: var(--surface-2); text-decoration: none; color: var(--ink); }
.site-nav [aria-current="page"], .header-actions [aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.header-actions .btn { margin-left: 8px; white-space: nowrap; }

/* Copies of the account links that only appear inside the collapsed menu. */
.menu-only { display: none; }

.nav-toggle { display: none; }

/* Medium widths: the page links collapse into the menu; Register and
   "Partner with us" stay in the header. Sign in moves into the menu. */
@media (max-width: 1000px) {
    .nav-toggle {
        display: inline-flex;
        margin-left: 4px;
        background: none;
        border: 1px solid var(--line);
        border-radius: 8px;
        padding: 6px 10px;
        color: var(--ink);
        font: inherit;
        cursor: pointer;
    }
    .header-actions { margin-left: auto; }
    .site-nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 12px var(--gutter) 20px;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
    }
    .site-nav.open { display: flex; }
    .act-signin { display: none; }
    .menu-signin { display: block; }
}

.btn .short, .toggle-icon, .acct-initial { display: none; }

/* Phones: "Partner" and the menu button remain in the header, with a signed-in
   user shown by their initial. */
@media (max-width: 520px) {
    .act-register { display: none; }
    .menu-register { display: block; }
    .site-header .wrap { gap: 8px; }
    .header-actions .btn { margin-left: 0; padding: 8px 14px; font-size: .92rem; }
    .btn .long, .toggle-text, .acct-name { display: none; }
    .btn .short { display: inline; }
    .nav-toggle { padding: 6px 8px; align-items: center; }
    .toggle-icon { display: block; }
    .header-actions .account summary { padding: 2px; max-width: none; }
    .header-actions .account summary::after { content: none; }
    .header-actions .acct-initial {
        display: grid;
        place-items: center;
        width: 32px; height: 32px;
        border-radius: 50%;
        background: var(--brand-soft);
        color: var(--brand);
        font-weight: 700;
    }
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: .98rem;
    border: 1px solid transparent;
    line-height: 1.2;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.header-actions a.btn-primary, .header-actions a.btn-primary:hover { color: var(--brand-ink); background: var(--brand); }
.btn-ghost { border-color: currentColor; color: inherit; }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); }

/* ---------- Hero ---------- */

.hero {
    background:
        radial-gradient(1200px 500px at 85% -10%, var(--hero-glow-1), transparent 60%),
        radial-gradient(700px 400px at 10% 110%, var(--hero-glow-2), transparent 60%),
        var(--hero-bg);
    color: var(--hero-ink);
    padding: clamp(64px, 10vw, 120px) 0 clamp(56px, 8vw, 96px);
    overflow: hidden;
}
.hero .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}
.hero h1 { color: #fff; }
.hero .lede { color: var(--hero-muted); }
.hero .eyebrow { color: var(--hero-accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-follow { margin: 20px 0 0; font-size: .95rem; color: var(--hero-muted); }
.hero-follow a { color: var(--hero-string); font-weight: 600; }
.hero .btn-primary { background: var(--hero-cta-bg); color: var(--hero-cta-ink); }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    padding: 5px 12px 5px 8px;
    border-radius: 999px;
    border: 1px solid var(--hero-line);
    color: var(--hero-muted);
    margin-bottom: 22px;
}
.badge b {
    background: var(--lime-bright);
    color: #062006;
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 999px;
}

/* What the assistant gains: a frosted card beside the hero copy */
.hero-panel {
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--hero-line);
    border-radius: var(--radius);
    padding: clamp(22px, 3vw, 32px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}
.hero-panel h3 { color: #fff; font-size: 1.15rem; margin-bottom: 18px; }
.hero-panel ul { list-style: none; margin: 0; padding: 0; }
.hero-panel li {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid var(--hero-line);
    color: var(--hero-ink);
}
.hp-icon {
    flex: none;
    width: 36px; height: 36px;
    border-radius: 10px;
    display: grid; place-items: center;
    background: rgba(92, 200, 200, .12);
    color: var(--hero-accent);
}
.hp-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 6px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--hero-line);
    color: var(--hero-string);
    font-size: .95rem;
}
.hp-note svg { flex: none; margin-top: 3px; }

/* Conversation card in the hero */
.chat {
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--hero-line);
    border-radius: var(--radius);
    padding: 18px;
    font-size: .92rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}
.chat-row { display: flex; gap: 10px; margin-bottom: 14px; }
.chat-row:last-child { margin-bottom: 0; }
.chat-who {
    flex: none;
    width: 28px; height: 28px;
    border-radius: 8px;
    display: grid; place-items: center;
    font-size: .7rem; font-weight: 700;
}
.who-user { background: #2a4258; color: #cfe0ec; }
.who-ai { background: var(--hero-cta-bg); color: var(--hero-cta-ink); }
.who-ssl { background: #008080; color: #e6fffd; }
.chat-msg { color: var(--hero-ink); padding-top: 3px; min-width: 0; }
.chat-msg .muted { color: var(--hero-muted); }
.tool {
    font-family: var(--font-mono);
    font-size: .8rem;
    background: rgba(0, 0, 0, .3);
    border: 1px solid var(--hero-line);
    border-radius: 8px;
    padding: 8px 10px;
    margin-top: 6px;
    color: #bcd3e3;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.tool .k { color: var(--hero-accent); }
.tool .s { color: var(--hero-string); }
.chat-note {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--hero-line);
    color: var(--hero-muted);
    font-size: .82rem;
    display: flex; gap: 8px; align-items: flex-start;
}
.chat-note svg { flex: none; margin-top: 2px; }

/* ---------- Sections ---------- */

.band { padding: clamp(64px, 9vw, 112px) 0; }
.band-alt { background: var(--surface-2); }
.band-head { max-width: 760px; margin-bottom: 48px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-2); margin: 0; font-size: .98rem; }
.card-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: grid; place-items: center;
    background: var(--brand-soft);
    color: var(--brand);
    margin-bottom: 16px;
}

/* Problem list */
.problems { counter-reset: p; }
.problems .card { position: relative; padding-top: 22px; }
.problems .card::before {
    counter-increment: p;
    content: "0" counter(p);
    display: block;
    font-family: var(--font-mono);
    font-size: .8rem;
    color: var(--lime);
    margin-bottom: 10px;
}

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.step { border-top: 2px solid var(--brand); padding-top: 18px; }
.step-n { font-family: var(--font-mono); font-size: .8rem; color: var(--brand); margin-bottom: 6px; }
.step p { color: var(--ink-2); font-size: .98rem; }

.diagram {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(16px, 3vw, 32px);
}
.diagram svg { display: block; width: 100%; height: auto; }
.diagram figcaption { color: var(--muted); font-size: .9rem; margin-top: 14px; }

/* Diagram colours (theme-aware) */
.dg-box { fill: var(--surface-2); stroke: var(--line); }
.dg-box-brand { fill: var(--brand-soft); stroke: var(--brand); }
.dg-box-teal { fill: color-mix(in srgb, var(--teal) 12%, var(--surface)); stroke: var(--teal); }
.dg-box-lime { fill: var(--lime-soft); stroke: var(--lime); }
.dg-title { fill: var(--ink); font: 600 15px var(--font-sans); }
.dg-text { fill: var(--ink-2); font: 13px var(--font-sans); }
.dg-mono { fill: var(--ink-2); font: 12px var(--font-mono); }
.dg-line { stroke: var(--muted); stroke-width: 1.5; fill: none; }
.dg-line-brand { stroke: var(--brand); stroke-width: 2; fill: none; }
.dg-line-lime { stroke: var(--lime); stroke-width: 2; fill: none; stroke-dasharray: 5 4; }
.dg-line-teal { stroke: var(--teal); stroke-width: 2; fill: none; }
.dg-arrow-teal { fill: var(--teal); }
.dg-label { fill: var(--muted); font: 12px var(--font-sans); }
.dg-arrow { fill: var(--muted); }
.dg-arrow-brand { fill: var(--brand); }
.dg-arrow-lime { fill: var(--lime); }

/* Differentiators */
.diff { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.diff > div { background: var(--surface); padding: 28px; }
.diff h3 { font-size: 1.08rem; }
.diff p { color: var(--ink-2); margin: 0; font-size: .96rem; }

/* Proof */
.quote {
    margin: 0;
    padding: clamp(28px, 4vw, 48px);
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--teal);
}
.quote p { font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.5; color: var(--ink); }
.quote footer { color: var(--muted); font-size: .95rem; }
.quote footer strong { color: var(--ink); }

/* A testimonial given a row of its own beneath a section. */
.quote-feature { margin-top: clamp(40px, 6vw, 64px); max-width: 880px; position: relative; }
.quote-feature::before {
    content: "\201C";
    position: absolute;
    top: clamp(4px, 1vw, 12px);
    right: clamp(20px, 3vw, 36px);
    font: 700 clamp(4.5rem, 9vw, 7rem)/1 Georgia, serif;
    color: var(--brand-soft);
    pointer-events: none;
}
.quote-feature blockquote { margin: 0; }
.quote-feature blockquote p { margin: .4em 0 1em; max-width: 40em; }
.quote-head {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--teal);
}
.quote-context { display: block; margin-top: 2px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }

.facts { list-style: none; margin: 0; padding: 0; }
.facts li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; }
.facts li:first-child { border-top: 1px solid var(--line); }
.facts .tick { color: var(--teal); flex: none; margin-top: 3px; }

/* Engage */
.engage .card { display: flex; flex-direction: column; }
.engage .card p { flex: 1; }
.engage .card .who { font-size: .85rem; color: var(--muted); margin-top: 16px; }

.cta {
    background: var(--hero-bg);
    color: var(--hero-ink);
    border-radius: calc(var(--radius) + 6px);
    padding: clamp(32px, 5vw, 56px);
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) auto;
    gap: 24px;
    align-items: center;
    margin-top: 48px;
}
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { color: var(--hero-muted); margin: 0; }
.cta .btn-primary { background: var(--hero-cta-bg); color: var(--hero-cta-ink); }

/* ---------- Inner pages ---------- */

.page-head {
    background:
        radial-gradient(900px 360px at 90% -20%, var(--hero-glow-1), transparent 60%),
        var(--hero-bg);
    color: var(--hero-ink);
    padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px);
}
.page-head h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); max-width: 22em; }
.page-head .lede { color: var(--hero-muted); }
.page-head .eyebrow { color: var(--hero-accent); }
.page-head .hero-actions { margin-top: 24px; }
.page-head .btn-primary { background: var(--hero-cta-bg); color: var(--hero-cta-ink); }

.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--teal); }
.prose .callout {
    margin-top: 1.6em;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--lime);
    border-radius: 10px;
}
.prose .callout strong { color: var(--ink); }

/* About: the founder's profile card beside the biography. */
.founder { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 760px); gap: clamp(32px, 5vw, 64px); align-items: start; }
.founder .prose p:first-child { margin-top: 0; }
.founder-card { position: sticky; top: 96px; }
.founder-card img { display: block; width: 100%; max-width: 200px; aspect-ratio: 1; object-fit: cover; border-radius: 12px; margin-bottom: 18px; }
.founder-card h3 { margin-bottom: .2em; }
.founder-role { margin: 0 0 14px; color: var(--muted); }
.founder-meta { list-style: none; margin: 0 0 16px; padding: 14px 0 0; border-top: 1px solid var(--line); font-size: .92rem; color: var(--ink-2); }
.founder-meta li { margin-bottom: 6px; }
@media (max-width: 860px) {
    .founder { grid-template-columns: minmax(0, 1fr); }
    .founder-card { position: static; display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 18px; align-items: start; }
    .founder-card img { grid-row: span 4; width: 96px; margin: 0; }
}

.prose img.portrait { float: right; width: 160px; margin: 0 0 16px 24px; border-radius: var(--radius); }

.table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.table code, code { font-family: var(--font-mono); font-size: .9em; }
.table-wrap { overflow-x: auto; }
.table-compare { min-width: 640px; }
.table-compare-wide { min-width: 860px; }
.table-compare-wide td, .table-compare-wide th { width: 19%; }
.table-compare-wide th:first-child { width: 16%; }
.th-sub { display: block; margin-top: 2px; font-size: .75rem; font-weight: 500; text-transform: none; letter-spacing: 0; }
.table-compare tbody th { text-transform: none; letter-spacing: 0; font-size: .96rem; color: var(--ink); }
.table-compare td:last-child, .table-compare thead th:last-child { color: var(--brand); font-weight: 600; background: color-mix(in srgb, var(--brand-soft) 45%, transparent); }

.walk { counter-reset: w; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.walk > li {
    counter-increment: w;
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 24px 22px 72px;
}
.walk > li::before {
    content: counter(w);
    position: absolute;
    left: 22px; top: 20px;
    width: 32px; height: 32px;
    border-radius: 8px;
    display: grid; place-items: center;
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 700;
    font-family: var(--font-mono);
}
.walk h3 { margin-bottom: .3em; }
.walk p { margin: 0; color: var(--ink-2); }
.walk .tool-light {
    font-family: var(--font-mono);
    font-size: .85rem;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 10px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: var(--ink);
}
/* A sequence of tool calls, each followed by what it returned. */
.walk .trace { list-style: none; margin: 4px 0 0; padding: 0; }
.walk .trace > li { position: relative; padding-left: 16px; }
.walk .trace > li::before {
    content: "";
    position: absolute;
    left: 4px; top: 10px; bottom: -10px;
    border-left: 2px solid var(--line);
}
.walk .trace > li:last-child::before { bottom: 12px; }
.walk .trace-result { margin: 6px 0 0; font-size: .92rem; color: var(--muted); }
.walk .trace-result::before { content: "\2192\00a0"; color: var(--teal); }
.walk .trace-result code {
    font-family: var(--font-mono);
    font-size: .85em;
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--brand-soft);
    color: var(--ink);
    overflow-wrap: anywhere;
}

.walk .who-sees { margin-top: 10px; font-size: .88rem; color: var(--muted); }
.walk .who-sees b { color: var(--teal); font-weight: 600; }

.tag {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--lime-soft);
    color: var(--lime);
    vertical-align: middle;
    margin-left: 6px;
}

.contact-grid .card h3 { margin-bottom: .2em; }
.contact-grid .card a { font-weight: 600; }

/* ---------- Account menu and forms ---------- */

.account { position: relative; }
.account summary {
    list-style: none;
    cursor: pointer;
    color: var(--ink-2);
    font-size: .95rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    max-width: 14em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.account summary::-webkit-details-marker { display: none; }
.account summary::after { content: " ▾"; font-size: .8em; color: var(--muted); }
.account summary:hover, .account[open] summary { background: var(--surface-2); color: var(--ink); }
.account-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 220px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 6px;
    display: flex;
    flex-direction: column;
    z-index: 30;
}
.account-menu a {
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--ink);
    font-size: .95rem;
    white-space: nowrap;
}
.account-menu a:hover { background: var(--surface-2); text-decoration: none; }

.auth { padding: clamp(40px, 7vw, 88px) 0; }
.auth .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(32px, 6vw, 80px); align-items: start; }
.auth-aside .lede { font-size: 1.1rem; }
.auth-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 4px);
    padding: clamp(24px, 4vw, 36px);
    box-shadow: var(--shadow);
}
.auth-card h2 { font-size: 1.5rem; }
.auth-card p { color: var(--ink-2); }

.form label { display: block; font-weight: 600; font-size: .92rem; margin: 16px 0 6px; color: var(--ink); }
.form input[type="text"], .form input[type="email"], .form input[type="password"] {
    width: 100%;
    padding: 11px 12px;
    font: inherit;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
}
.form input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.form input[readonly] { color: var(--muted); background: var(--surface-2); }
.form label.check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-weight: 400;
    color: var(--ink-2);
    margin-top: 18px;
}
.form label.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.form input[type="submit"] {
    width: 100%;
    margin-top: 22px;
    padding: 12px 20px;
    font: inherit;
    font-weight: 600;
    color: var(--brand-ink);
    background: var(--brand);
    border: 0;
    border-radius: 10px;
    cursor: pointer;
}
.form input[type="submit"]:hover { filter: brightness(1.1); }
.form .cf-turnstile { margin-top: 16px; }
.form-links { margin-top: 18px; font-size: .92rem; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.form-error:not(:empty) {
    margin-top: 16px;
    padding: 10px 12px;
    border-radius: 8px;
    background: color-mix(in srgb, #d93025 12%, var(--surface));
    color: #b3261e;
    font-size: .92rem;
}

/* Register-for-updates strip */
.signup {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px 32px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--lime);
    border-radius: var(--radius);
    padding: clamp(22px, 3vw, 32px);
}
.signup h3 { margin-bottom: .25em; font-size: 1.25rem; }
.signup p { margin: 0; color: var(--ink-2); }
.signup .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-outline:hover { background: var(--surface-2); }

@media (max-width: 860px) {
    .auth .wrap, .signup { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--line);
    padding: 40px 0 48px;
    color: var(--muted);
    font-size: .9rem;
}
.site-footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.site-footer a { color: var(--ink-2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .brand { margin-bottom: 10px; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
    .hero .wrap, .split, .cta { grid-template-columns: minmax(0, 1fr); }
    .grid-3, .diff, .steps { grid-template-columns: minmax(0, 1fr); }
    .site-footer .wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 640px) and (max-width: 960px) {
    .grid-3, .diff { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .grid-2 { grid-template-columns: minmax(0, 1fr); }
    body { font-size: 16px; }
}
