/* ============================================================================
   muhkoo.com — shared stylesheet for every page.
   "Cryptographic Instrument", refreshed for a product site: geometric sans
   (Montserrat) headers against cold mono metadata on near-black ink, hairline
   blueprint rules, corner ticks, a faint coordinate lattice, grain — plus
   screenshots in browser and phone frames, API chips and alternating rows.

   Renaming rule: hosting serves every asset with a one-year immutable cache,
   so any change to this file ships as site.v4.css.

   Class contract — pages use these names and must not invent others without
   adding them here:
     Chrome     .navbar .nav-brand .brand-logo .brand-name .nav-links .nav-toggle
                .nav-cta .site-footer .footer-grid .footer-col .footer-base
     Layout     .container .section .section-alt .section-header .eyebrow .section-intro
                .section-actions
     Hero       .hero .hero-grid .hero-title .hero-sub .hero-actions .hero-install
                .hero-install-copy .hero-visual .hero-code .hero-shots
     Buttons    .btn .btn-primary .btn-secondary .btn-large
     Media      .frame-browser (+ .frame-bar) .frame-phone .shot
     Cards      .card-grid .card .card-link .tile-grid .tile .chip .chips
     Use cases  .usecase .usecase.reverse .usecase-media .usecase-body .usecase-points .code-block
     Customers  .customer .customer-meta
     Trust      .trust-grid .trust-item
     Pricing    everything under #pricing and #estimator, unchanged from styles.css
     Updates    .updates-month .updates-list .update-item .update-date .roadmap-grid .roadmap-item
     CTA band   .cta-band
     Legal      .legal .legal-head .legal-note .legal-toc .legal-body, unchanged
   Carried over from today's markup: .highlight (accent words in a title),
   .hero-install-prompt (the "$"), and the code token colours
   .comment .keyword .method .string .boolean.
   ============================================================================ */

:root {
    /* Ink + surfaces */
    --ink:        #06090e;
    --ink-2:      #0a0f16;
    --panel:      #0c121b;
    --panel-2:    #101822;
    --line:       rgba(150, 180, 200, 0.10);
    --line-2:     rgba(150, 180, 200, 0.18);

    /* Type */
    --paper:      #e9eef0;
    --muted:      #94a3ac;
    --faint:      #5d6b75;

    /* Accent */
    --acid:       #58da7d;
    --acid-dim:   #3fae62;
    --acid-soft:  rgba(88, 218, 125, 0.12);
    --acid-line:  rgba(88, 218, 125, 0.32);

    --display: 'Montserrat', system-ui, -apple-system, sans-serif;
    --body:    'Archivo', system-ui, sans-serif;
    --mono:    'JetBrains Mono', ui-monospace, monospace;

    --r:    7px;
    --r-sm: 4px;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --t:    320ms var(--ease);

    --maxw: 1240px;
    --gut:  clamp(1.25rem, 4vw, 3rem);
}

/* Additions for v2 (the block above is today's, unchanged). */
:root {
    --nav-h: 68px;                                          /* sticky navbar height */
    --glow:  0 30px 80px -30px rgba(88, 218, 125, 0.25);    /* screenshot frames */
    --drop:  0 40px 90px -30px rgba(0, 0, 0, 0.8);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* No `scroll-behavior: smooth` here: on a phone the jump to a URL's #fragment
   starts before the web fonts arrive, the page reflows, and a smooth scroll
   keeps its stale destination (the heading lands under the nav). In-page link
   clicks still glide: site.v3.js scrolls them, respecting reduced motion. */
html { -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--paper);
    background-color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    counter-reset: section;
}

/* No page may scroll sideways; wide content scrolls inside its own box.
   Only <html> clips: a clip on <body> as well hides the overflow from
   document.documentElement.scrollWidth, so a too-wide element is silently
   cut off and the 400px overflow test can never fail. */
html { overflow-x: clip; }
.code-block, .rates-table-wrap { overflow-x: auto; }
.shot { display: block; max-width: 100%; height: auto; }
img { max-width: 100%; }

/* Anchor targets land below the sticky navbar, not under it. */
[id] { scroll-margin-top: var(--nav-h); }

/* ── Atmosphere: lattice grid + glow (fixed), grain overlay ──────────────── */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(900px 520px at 78% -8%, rgba(88, 218, 125, 0.12), transparent 60%),
        radial-gradient(800px 600px at 8% 8%, rgba(60, 120, 180, 0.07), transparent 55%),
        linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 78px,
        linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 78px 100%;
    -webkit-mask-image: radial-gradient(130% 100% at 50% 0%, #000 38%, transparent 92%);
            mask-image: radial-gradient(130% 100% at 50% 0%, #000 38%, transparent 92%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 999;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--acid); color: var(--ink); }

:is(a, button, input, summary):focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }

/* ── Layout primitives ───────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }

.section { position: relative; padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-alt { background: var(--panel); }

/* ── Section header (editorial, numbered, left-aligned) ──────────────────── */
.section-header {
    counter-increment: section;
    max-width: 760px;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-header h2 { text-wrap: balance; }

.section-header .eyebrow { margin-bottom: 1.1rem; }

.section-header .eyebrow::before {
    content: counter(section, decimal-leading-zero);
    color: var(--acid);
    margin-right: 0.7rem;
    padding-right: 0.7rem;
    border-right: 1px solid var(--line-2);
}

.section-intro {
    font-size: clamp(1.02rem, 1.6vw, 1.2rem);
    color: var(--muted);
    max-width: 60ch;
    margin-top: 1.2rem;
}
.section-intro a { color: var(--acid); text-underline-offset: 3px; }
/* A button row closing a section, below its grid or list. */
.section-actions { margin-top: 2.5rem; }

/* ── Eyebrow / kicker (mono label) ───────────────────────────────────────── */
.eyebrow {
    display: inline-flex;
    align-items: center;
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--faint);
}

/* ── Typography ──────────────────────────────────────────────────────────── */
h1, h2 { font-family: var(--display); font-weight: 480; line-height: 1.05; letter-spacing: -0.015em; }
h3, h4 { font-family: var(--body); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: 1.35rem; line-height: 1.2; }
h4 { font-size: 1.1rem; line-height: 1.25; }

a { color: inherit; }

/* Inline code in running text (API names, commands). */
:is(p, li) > code { font-family: var(--mono); font-size: 0.86em; color: var(--acid); overflow-wrap: anywhere; }
p strong { color: var(--paper); font-weight: 600; }

/* Cursor tracer canvas (site.v3.js) — overlays everything, never blocks input. */
#cursor-tracer { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9999; }

/* ── Navbar ──────────────────────────────────────────────────────────────── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.85rem 0;
    background: rgba(6, 9, 14, 0.72);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--line);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.nav-brand { display: inline-flex; align-items: center; gap: 0.6rem; flex-shrink: 0; color: var(--paper); text-decoration: none; }
.brand-logo { height: 30px; width: auto; }
.brand-name {
    font-family: var(--display);
    font-weight: 540;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--paper);
}

.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.1vw, 1.9rem); list-style: none; }
.nav-links a:not(.nav-cta) {
    position: relative;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--muted);
    text-decoration: none;
    transition: color var(--t);
}
.nav-links a:not(.nav-cta):hover,
.nav-links a[aria-current="page"] { color: var(--paper); }
.nav-links a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -7px;
    height: 1px;
    background: var(--acid);
    box-shadow: 0 0 8px rgba(88, 218, 125, 0.7);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px; height: 40px;
    margin-right: -9px;
    padding: 9px;
    background: none; border: none; cursor: pointer;
}
.nav-toggle span { display: block; width: 100%; height: 1.5px; background: var(--paper); border-radius: 2px; transition: transform var(--t), opacity var(--t); }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    font-family: var(--body);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: transform var(--t), background var(--t), border-color var(--t), color var(--t), box-shadow var(--t);
}
.btn-primary { background: var(--acid); color: var(--ink); box-shadow: 0 0 0 0 rgba(88,218,125,0.5); }
.btn-primary:hover { background: #6dee92; transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(88, 218, 125, 0.6); }
.btn-secondary { background: transparent; color: var(--paper); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--acid-line); color: var(--acid); transform: translateY(-2px); }
.btn-large { padding: 1rem 1.9rem; font-size: 1rem; }

/* The nav's call to action is a compact primary button. */
.nav-cta { padding: 0.55rem 1.05rem; font-size: 0.84rem; line-height: 1.2; white-space: nowrap; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
/* Text first, then a wide visual: a code window beside stacked screenshots. */
.hero { position: relative; padding: clamp(3.25rem, 7vw, 5.5rem) 0 clamp(3.75rem, 8vw, 6rem); overflow: hidden; }
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(760px 420px at 70% 78%, rgba(88, 218, 125, 0.08), transparent 70%);
}
.hero::after {
    content: "";
    position: absolute;
    left: var(--gut); right: var(--gut); bottom: 0;
    height: 1px;
    background: var(--line);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2.75rem, 5vw, 4rem); }
.hero-grid > * { min-width: 0; }

.hero .eyebrow {
    gap: 0.6rem;
    padding: 0.42rem 0.9rem;
    letter-spacing: 0.14em;
    color: var(--muted);
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
}
.hero .eyebrow::before {
    content: "";
    flex-shrink: 0;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--acid);
    animation: pulse 2.4s infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(88,218,125,0.5); } 70% { box-shadow: 0 0 0 7px rgba(88,218,125,0); } 100% { box-shadow: 0 0 0 0 rgba(88,218,125,0); } }
.hero .section-header { counter-increment: none; }

.hero-title {
    max-width: 15ch;
    margin: 1.6rem 0 1.5rem;
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.03em;
}
.highlight { font-style: italic; font-weight: 600; color: var(--acid); }

.hero-sub {
    max-width: 58ch;
    margin-bottom: 2.2rem;
    font-size: clamp(1.05rem, 1.7vw, 1.26rem);
    color: var(--muted);
}
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.hero-install {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 0.55rem 0.55rem 0.55rem 1rem;
    max-width: 100%;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
}
.hero-install code { font-family: var(--mono); font-size: 0.85rem; color: var(--paper); white-space: nowrap; overflow-x: auto; min-width: 0; }
.hero-install-prompt { color: var(--acid); margin-right: 0.6rem; user-select: none; }
.hero-install-copy {
    flex-shrink: 0;
    padding: 0.4rem 0.85rem;
    font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
    color: var(--ink); background: var(--acid); border: none; border-radius: 3px; cursor: pointer;
    transition: background var(--t);
}
.hero-install-copy:hover { background: #6dee92; }
.hero-install-copy.copied { background: var(--paper); }

/* The visual: a browser + phone collage, with the code window laid over its
   lower left. Both sit in one grid row; the code is bottom-aligned. */
.hero-visual {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: end;
}
.hero-shots { grid-column: 5 / -1; grid-row: 1; position: relative; padding: 0 9% 7% 0; }
.hero-shots .frame-phone { position: absolute; right: 0; bottom: 0; width: 22%; }
.hero-code { grid-column: 1 / 8; grid-row: 1; position: relative; z-index: 2; margin-bottom: 2%; }

/* Code windows: the hero snippet, and a code sample standing in for a screenshot. */
.hero-code,
.usecase-media > .code-block {
    padding: 1.15rem 1.4rem 1.35rem;
    font-family: var(--mono);
    font-size: clamp(0.7rem, 0.9vw, 0.8rem);
    line-height: 1.8;
    color: var(--paper);
    overflow-x: auto;
    background: linear-gradient(180deg, rgba(16, 24, 34, 0.96), rgba(8, 12, 18, 0.98));
    border: 1px solid var(--line-2);
    border-radius: var(--r);
    box-shadow: var(--drop), var(--glow);
}
.hero-code::before,
.usecase-media > .code-block::before {
    content: "";
    display: block;
    width: 8px; height: 8px;
    margin: 0.2rem 0 1rem;
    border-radius: 50%;
    background: var(--line-2);
    box-shadow: 14px 0 0 var(--line-2), 28px 0 0 var(--line-2);
}
.hero-code :is(pre, code) { font: inherit; color: inherit; }
/* Show code as typed: no "=>" → "⇒" ligatures in samples people copy. */
.hero-code, .code-block, .hero-install code { font-variant-ligatures: none; }

/* ── Screenshot frames ───────────────────────────────────────────────────── */
.frame-browser {
    position: relative;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line-2);
    border-radius: var(--r);
    box-shadow: 0 30px 80px -30px rgba(88,218,125,0.25);
}
/* The bar draws its own three dots; any text inside it reads as the URL. */
.frame-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 28px;
    padding: 0 12px;
    overflow: hidden;
    font-family: var(--mono);
    font-size: 0.64rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
    color: var(--faint);
    background: var(--panel-2);
    border-bottom: 1px solid var(--line-2);
}
.frame-bar::before {
    content: "";
    flex-shrink: 0;
    width: 8px; height: 8px;
    margin-right: 28px;
    border-radius: 50%;
    background: var(--line-2);
    box-shadow: 14px 0 0 var(--line-2), 28px 0 0 var(--line-2);
}
.frame-browser .shot { width: 100%; }

.frame-phone {
    position: relative;
    padding: 5px;
    background: #04070b;
    border: 1px solid var(--line-2);
    border-radius: 22px;
    box-shadow: 0 30px 80px -30px rgba(88,218,125,0.25), 0 24px 50px -20px rgba(0, 0, 0, 0.9);
}
.frame-phone .shot { width: 100%; border-radius: 17px; }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: clamp(1rem, 2vw, 1.4rem);
}
/* Five cards read better as three over two than as four over one. */
@media (min-width: 760px) {
    .card-grid:has(> :nth-child(5):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .card-grid:has(> :nth-child(5):last-child) > * { grid-column: span 2; }
    .card-grid:has(> :nth-child(5):last-child) > :nth-child(n+4) { grid-column: span 3; }
}
/* Four cards read as two over two, not three over one, until all four fit
   in a row. */
@media (min-width: 760px) and (max-width: 1240px) {
    .card-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1241px) {
    .card-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.4rem 1.4rem 1.5rem;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
}
/* A screenshot leading a card runs edge to edge. */
.card > .shot:first-child {
    width: calc(100% + 2.8rem);
    max-width: none;
    margin: -1.4rem -1.4rem 1.3rem;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top;
    border-bottom: 1px solid var(--line);
}
/* A code sample can stand in for that screenshot (the chat and agents cards):
   it takes the same edge-to-edge 16:10 slot, growing only if its lines need
   more height. It is decoration inside a link (aria-hidden), so a long line is
   cut with an ellipsis rather than scrolled: a scrolling box would become a
   keyboard stop hidden from screen readers. The full sample is one click on. */
.card > .hero-code:first-child {
    flex-shrink: 0;
    margin: -1.4rem -1.4rem 1.3rem;
    aspect-ratio: 16 / 10;
    overflow: visible;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
}
.card > .hero-code:first-child > code { display: block; overflow: hidden; text-overflow: ellipsis; }
.card h3 { font-size: 1.12rem; color: var(--paper); margin-bottom: 0.4rem; }
.card p { font-size: 0.92rem; color: var(--muted); }
.card .chips { margin-top: 1rem; }

.card-link { color: inherit; text-decoration: none; transition: border-color var(--t), transform var(--t), box-shadow var(--t); }
.card-link:hover { border-color: var(--acid-line); transform: translateY(-3px); box-shadow: 0 30px 60px -34px rgba(88, 218, 125, 0.4); }
.card-link::after {
    content: "\2192";
    align-self: flex-start;
    margin-top: auto;
    padding-top: 0.9rem;
    font-family: var(--mono);
    line-height: 1;
    color: var(--faint);
    transition: color var(--t), transform var(--t);
}
.card-link:hover::after { color: var(--acid); transform: translateX(5px); }
.card-link .shot { transition: transform 0.6s var(--ease); }
.card-link:hover .shot { transform: scale(1.025); }

/* ── Building-block tiles (hairline instrument grid) ─────────────────────── */
.tile-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
}
.tile { min-width: 0; padding: clamp(1.3rem, 2.4vw, 1.75rem); background: var(--ink-2); transition: background var(--t); }
.tile:hover { background: var(--panel-2); }
.tile > .chip, .tile > .chips { margin-bottom: 1.1rem; }
.tile :is(h3, h4, strong) { display: block; font-size: 1.04rem; font-weight: 600; color: var(--paper); margin-bottom: 0.35rem; }
.tile p { font-size: 0.9rem; line-height: 1.55; color: var(--muted); }

/* ── API chips ───────────────────────────────────────────────────────────── */
.chip {
    display: inline-block;
    padding: 0.18rem 0.5rem;
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.45;
    white-space: nowrap;
    color: var(--acid);
    background: var(--acid-soft);
    border: 1px solid var(--acid-line);
    border-radius: 3px;
}
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; }

/* ── Use-case rows (image beside text, alternating) ──────────────────────── */
/* A row is .usecase (or .customer) itself, or the .container inside a
   <section class="section usecase">. :is() forgives a browser without :has(),
   which then loses only that branch instead of the whole rule. */
:is(.usecase > .container, .usecase:not(:has(> .container)), .customer) {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.customer + .customer { margin-top: clamp(4.5rem, 10vw, 7.5rem); }

.usecase-media { position: relative; min-width: 0; }
/* A phone shot hangs off the lower right of the desktop shot. */
.usecase-media:has(> .frame-phone) { padding: 0 0 8% 0; }
.usecase-media:has(> .frame-phone) > .frame-browser { width: 88%; }
.usecase-media > .frame-phone { position: absolute; right: 0; bottom: 0; width: 24%; z-index: 2; }
/* A second desktop shot overlaps the first, lower and to the right. */
.usecase-media > .frame-browser + .frame-browser { width: 72%; margin: -26% 0 0 10%; z-index: 1; }
.usecase-media > .code-block { font-size: 0.75rem; padding-inline: 1.25rem; }

.usecase-body { min-width: 0; }
.usecase-body > * + *,
.customer > :last-child > * + * { margin-top: 1.15rem; }
.usecase-body > .eyebrow { color: var(--acid); }
.usecase-body > .eyebrow + h2 { margin-top: 0.85rem; }
.usecase-body h2,
.customer h2 { font-size: clamp(1.85rem, 3.4vw, 2.7rem); line-height: 1.08; text-wrap: balance; }
.usecase-body > p,
.customer p { color: var(--muted); max-width: 56ch; }
.usecase-body a:not(.btn):not(.chip) { color: var(--acid); text-decoration: none; font-weight: 600; }
.usecase-body a:not(.btn):not(.chip):hover { text-decoration: underline; text-underline-offset: 3px; }

.usecase-points { list-style: none; display: grid; gap: 0.55rem; }
.usecase-points li { position: relative; padding-left: 1.4rem; color: var(--paper); font-size: 0.95rem; }
.usecase-points li::before { content: "+"; position: absolute; left: 0; font-family: var(--mono); color: var(--acid); }

.code-block {
    display: block;
    max-width: 100%;
    padding: 1rem;
    font-family: var(--mono);
    font-size: 0.74rem;
    line-height: 1.75;
    color: var(--paper);
    tab-size: 2;
    background: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
}
.code-block :is(pre, code) { font: inherit; color: inherit; }
.comment { color: var(--faint); }
.keyword { color: #7cc4ff; }
.method  { color: var(--acid); }
.string  { color: #f0b866; }
.boolean { color: #c79bf0; }

@media (min-width: 860px) {
    :is(.usecase.reverse > .container, .usecase.reverse:not(:has(> .container)), .customer.reverse) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
    .usecase.reverse .usecase-media,
    .customer.reverse > :first-child { order: 2; }
}

/* ── Customers ───────────────────────────────────────────────────────────── */
.customer-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.3rem 0.9rem;
    font-family: var(--mono);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--faint);
}
.customer-meta :is(strong, b, h3, h4) { font: 600 0.78rem var(--mono); letter-spacing: 0.1em; color: var(--paper); }
.customer-meta a { color: var(--acid); text-decoration: none; text-transform: none; letter-spacing: 0.02em; }
.customer-meta a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Trust points ────────────────────────────────────────────────────────── */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: clamp(1.75rem, 4vw, 3rem);
}
.trust-item { position: relative; min-width: 0; padding-top: 1.5rem; border-top: 1px solid var(--line-2); }
.trust-item::before {
    content: "";
    position: absolute;
    top: -1px; left: 0;
    width: 2.75rem; height: 1px;
    background: var(--acid);
    box-shadow: 0 0 12px rgba(88, 218, 125, 0.7);
}
.trust-item :is(h3, h4) { font-size: 1.2rem; color: var(--paper); margin-bottom: 0.55rem; }
.trust-item p { color: var(--muted); font-size: 0.95rem; }

/* ── Pricing ─────────────────────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 1.2rem; }
.pricing-card { position: relative; padding: clamp(1.4rem, 2.5vw, 2rem); background: var(--ink); min-width: 0; }
.pricing-card.featured { background: var(--panel); }
.pricing-card h3 { font-family: var(--mono); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.8rem; }
.pricing-tag { position: absolute; top: 1rem; right: 1rem; padding: 0.2rem 0.6rem; font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--acid); border: 1px solid var(--acid-line); border-radius: 999px; }
.pricing-price { font-family: var(--display); font-size: 2.4rem; font-weight: 440; color: var(--paper); line-height: 1; margin-bottom: 0.8rem; }
.pricing-price span { font-family: var(--mono); font-size: 0.78rem; color: var(--faint); letter-spacing: 0; }
.pricing-card > p { color: var(--muted); font-size: 0.88rem; margin-bottom: 1.2rem; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.pricing-features li { position: relative; padding-left: 1.3rem; font-size: 0.88rem; color: var(--muted); }
.pricing-features li::before { content: "+"; position: absolute; left: 0; color: var(--acid); font-family: var(--mono); }

.rate-card { padding: clamp(1.4rem, 3vw, 2rem); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.rate-card h3 { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper); margin-bottom: 0.4rem; }
.rate-card > p { color: var(--muted); font-size: 0.88rem; margin-bottom: 1.4rem; max-width: 70ch; }
.rate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.rate-item { padding: 0.9rem 1rem; background: var(--ink); min-width: 0; }
.rate-axis { display: block; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.3rem; }
.rate-price { font-family: var(--display); font-size: 1.3rem; font-weight: 480; color: var(--acid); }
.rate-unit { font-family: var(--mono); font-size: 0.66rem; color: var(--faint); margin-left: 0.2rem; }
/* v2 addition: ten rates in rows of five (or two), so no row ends in an empty
   cell showing the hairline colour. */
.rate-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 760px) { .rate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── Estimator ───────────────────────────────────────────────────────────── */
.estimator { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.estimator-controls { min-width: 0; display: flex; flex-direction: column; gap: 1.3rem; }
.est-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem; }
.est-mode { display: inline-flex; padding: 2px; border: 1px solid var(--line-2); border-radius: 999px; }
.est-mode-btn { padding: 0.4rem 1.1rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: none; border: none; border-radius: 999px; cursor: pointer; transition: all var(--t); }
.est-mode-btn.active { background: var(--acid); color: var(--ink); }
.preset-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.preset-label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--faint); margin-right: 0.3rem; }
.preset-btn { padding: 0.4rem 0.9rem; font-family: var(--mono); font-size: 0.72rem; color: var(--muted); background: transparent; border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer; transition: all var(--t); }
.preset-btn:hover, .preset-btn.active { color: var(--acid); border-color: var(--acid-line); background: var(--acid-soft); }
.est-advanced { display: flex; flex-direction: column; gap: 1.3rem; padding-top: 1.3rem; border-top: 1px dashed var(--line-2); }
.est-advanced[hidden] { display: none; }
.est-group-label, .est-hint, .preset-label { font-family: var(--mono); }
.est-group-label { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.est-hint { font-size: 0.68rem; color: var(--faint); margin-left: 0.3rem; margin-right: auto; }
.est-input label { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: 0.92rem; color: var(--paper); margin-bottom: 0.5rem; }
.est-val { font-family: var(--mono); font-weight: 600; color: var(--acid); white-space: nowrap; }
.est-input input[type="range"] { width: 100%; height: 4px; accent-color: var(--acid); cursor: pointer; }

.estimator-results { min-width: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.result-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.result-card.result-muhkoo { background: var(--acid-soft); border-color: var(--acid-line); }
.result-name { font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.result-muhkoo .result-name { color: var(--paper); }
.result-figures { display: flex; flex-direction: column; align-items: flex-end; }
.result-total { font-family: var(--display); font-size: 1.6rem; font-weight: 480; color: var(--paper); line-height: 1.05; }
.result-muhkoo .result-total { color: var(--acid); }
.result-note, .result-idle { font-family: var(--mono); font-size: 0.64rem; color: var(--faint); }
.result-note { color: var(--acid-dim); }
.result-save { font-family: var(--mono); font-size: 0.68rem; font-weight: 600; color: var(--acid); }
.result-save.worse { color: var(--faint); }
.est-disclaimer { font-size: 0.78rem; color: var(--faint); max-width: 80ch; margin-top: 2rem; line-height: 1.6; }
/* The estimator is all script: without it every figure reads $0. Without the
   js class (no JS, or site.v3.js failed to load) hide it and say why. */
html:not(.js) .estimator { display: none; }
.est-nojs { padding: 1rem 1.2rem; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.js .est-nojs { display: none; }

/* ── Updates / changelog ─────────────────────────────────────────────────── */
/* On /updates/ each month is a row: the month sticks on the left while its
   entries scroll past. Elsewhere (the home page) an entry shows its own date. */
.updates-month {
    display: grid;
    grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
    gap: 1.25rem clamp(2rem, 5vw, 4rem);
    padding: clamp(2.25rem, 4.5vw, 3.25rem) 0;
    border-top: 1px solid var(--line);
}
.updates-month:first-of-type { border-top: none; padding-top: 0; }
.updates-month > h2 {
    position: sticky;
    top: calc(var(--nav-h) + 1.5rem);
    align-self: start;
    font-size: clamp(1.3rem, 2.2vw, 1.6rem);
    font-weight: 500;
    line-height: 1.2;
}
.updates-list { display: flex; flex-direction: column; max-width: 820px; }
.update-item {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    column-gap: 1.5rem;
    padding: 1.6rem 0;
    border-top: 1px solid var(--line);
}
.update-item:first-child { border-top: none; padding-top: 0; }
.update-item > :not(.update-date) { grid-column: 2; }
.update-date { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--acid-dim); padding-top: 0.2rem; }
.update-item h4 { color: var(--paper); font-weight: 600; margin-bottom: 0.45rem; }
.update-item p { color: var(--muted); font-size: 0.95rem; }
.update-item p + p { margin-top: 0.5rem; }
.update-item code { font-family: var(--mono); font-size: 0.85em; color: var(--acid); }
.update-item a { color: var(--acid); text-underline-offset: 3px; }
/* A grid item stretches to its column: keep the link's click target to its text. */
.update-item > a { justify-self: start; }
/* Under a month heading the per-entry date would only repeat it. */
.updates-month .update-item { grid-template-columns: minmax(0, 1fr); }
.updates-month .update-item > * { grid-column: 1; }
.updates-month .update-date { display: none; }

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: clamp(1rem, 2vw, 1.4rem);
}
/* Dashed: not built yet. */
.roadmap-item { min-width: 0; padding: clamp(1.4rem, 3vw, 2rem); background: var(--ink-2); border: 1px dashed var(--line-2); border-radius: var(--r); }
.roadmap-item :is(h3, h4) { font-size: 1.15rem; color: var(--paper); margin-bottom: 0.5rem; }
.roadmap-item p { color: var(--muted); font-size: 0.93rem; }

/* ── Call-to-action band (ends every page) ───────────────────────────────── */
.cta-band { text-align: center; overflow: hidden; isolation: isolate; }
.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(640px 320px at 50% 118%, rgba(88, 218, 125, 0.17), transparent 70%),
        linear-gradient(90deg, transparent, var(--acid-line), transparent) top / 100% 1px no-repeat;
}
.cta-band h2 { max-width: 18ch; margin: 0 auto 1.1rem; font-size: clamp(2.2rem, 5vw, 3.6rem); text-wrap: balance; }
.cta-band p { max-width: 52ch; margin: 0 auto 2.2rem; font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--muted); }
.cta-band .hero-actions { justify-content: center; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { padding: clamp(3.5rem, 6vw, 5rem) 0 2.5rem; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(10, 15, 22, 0.7)); }
.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) repeat(4, minmax(0, 1fr));
    gap: 2.5rem clamp(1.5rem, 4vw, 3rem);
    margin-bottom: 3rem;
}
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; min-width: 0; }
.footer-col h4 { font-family: var(--mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.3rem; }
.footer-col a:not(.nav-brand) { font-size: 0.92rem; color: var(--muted); text-decoration: none; overflow-wrap: anywhere; transition: color var(--t); }
.footer-col a:not(.nav-brand):hover { color: var(--acid); }
.footer-col .brand-logo { height: 28px; }
.footer-col .brand-name { font-size: 1.3rem; }
.footer-col > p { max-width: 32ch; margin-top: 0.3rem; font-size: 0.9rem; color: var(--muted); }
.footer-base {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.6rem 1.5rem;
    padding-top: 1.8rem;
    border-top: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--faint);
}

/* ── Page-load reveal (hero) ─────────────────────────────────────────────── */
.hero .eyebrow, .hero-title, .hero-sub, .hero .hero-actions, .hero .hero-install { animation: rise 0.8s var(--ease) both; }
.hero-title          { animation-delay: 0.06s; }
.hero-sub            { animation-delay: 0.16s; }
.hero .hero-actions  { animation-delay: 0.24s; }
.hero .hero-install  { animation-delay: 0.32s; }
.hero-visual         { animation: rise 0.9s var(--ease) 0.4s both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .estimator { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Below 1100px the code window is too narrow beside the shots: stack them. */
@media (max-width: 1100px) {
    .hero-visual { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
    .hero-shots, .hero-code { grid-column: 1; grid-row: auto; margin: 0; }
    .hero-shots { order: -1; }
    .hero-code { font-size: 0.78rem; }
}

/* Footer: the brand and four link columns share a row above 1100px. Below it
   the brand takes its own row; below 860px the link columns pair up. */
@media (max-width: 1100px) {
    .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .footer-grid > :first-child { grid-column: 1 / -1; }
}

/* Progressive enhancement: the mobile menu only collapses when JS is running,
   so a visitor without JS still sees every nav link. */
@media (max-width: 860px) {
  .js .nav-links { display: none; }
  .js .nav-links.open { display: flex; }
  .nav-toggle { display: none; }
  .js .nav-toggle { display: inline-flex; }
}

@media (max-width: 860px) {
    /* Without JS: the links wrap onto their own rows under the brand. */
    .navbar .container { flex-wrap: wrap; row-gap: 0.7rem; }
    .nav-links { flex-basis: 100%; flex-wrap: wrap; gap: 0.6rem 1.3rem; }
    /* With JS: a drop-down panel under the bar. */
    .js .nav-links {
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: calc(100vh - var(--nav-h));
        overflow-y: auto;
        padding-bottom: 1.25rem;
        background: var(--ink-2);
        border-bottom: 1px solid var(--line-2);
        box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.9);
    }
    .js .nav-links a:not(.nav-cta) { display: block; padding: 0.95rem var(--gut); border-bottom: 1px solid var(--line); }
    .js .nav-links a[aria-current="page"]::after { top: 0; bottom: 0; right: auto; width: 2px; height: auto; }
    .js .nav-links .nav-cta { display: flex; margin: 1.25rem var(--gut) 0; padding: 0.85rem 1.2rem; }

    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .updates-month { grid-template-columns: minmax(0, 1fr); }
    .updates-month > h2 { position: static; }
}

/* Rows stack below 860px, media first. */
@media (max-width: 859.98px) {
    :is(.usecase > .container, .usecase:not(:has(> .container)), .customer) { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
    .pricing-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }
    .update-item { grid-template-columns: minmax(0, 1fr); row-gap: 0.35rem; }
    .update-item > *, .update-item > :not(.update-date) { grid-column: 1; }
    .footer-base { flex-direction: column; }
    .hero-code, .usecase-media > .code-block { font-size: 0.72rem; padding: 1rem 1.1rem 1.15rem; }
}

@media (max-width: 560px) {
    .tile-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── Legal pages (Privacy, Terms) ─────────────────────────────────────── */
.legal { padding: 8rem 0 5rem; }
.legal .container { max-width: 820px; }
.legal-head { border-bottom: 1px solid var(--line); padding-bottom: 1.75rem; margin-bottom: 2.5rem; }
.legal-head .eyebrow { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--acid); }
.legal-head h1 { font-size: clamp(2rem, 5vw, 2.9rem); margin: 0.6rem 0 0.75rem; }
.legal-head .updated { font-family: var(--mono); font-size: 0.8rem; color: var(--faint); }
.legal-note { background: var(--acid-soft); border: 1px solid var(--acid-line); border-radius: var(--r); padding: 1rem 1.25rem; margin: 0 0 2.5rem; color: var(--muted); font-size: 0.9rem; }
.legal-note strong { color: var(--paper); }
.legal-toc { margin: 0 0 3rem; padding: 1.25rem 1.5rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.legal-toc h2 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.85rem; }
.legal-toc ol { margin: 0; padding-left: 1.25rem; columns: 2; column-gap: 2rem; }
.legal-toc li { margin: 0.28rem 0; break-inside: avoid; }
.legal-toc a { color: var(--paper); text-decoration: none; font-size: 0.9rem; }
.legal-toc a:hover { color: var(--acid); }
.legal-body h2 { font-family: var(--display); font-weight: 500; font-size: 1.4rem; margin: 2.75rem 0 0.9rem; scroll-margin-top: 90px; }
.legal-body h2 .num { color: var(--acid); font-family: var(--mono); font-size: 0.95rem; margin-right: 0.6rem; }
.legal-body h3 { margin: 1.6rem 0 0.5rem; font-size: 1.02rem; color: var(--paper); }
.legal-body p, .legal-body li { color: var(--muted); line-height: 1.7; font-size: 0.97rem; }
.legal-body p { margin: 0 0 1rem; }
.legal-body ul { margin: 0 0 1.25rem; padding-left: 1.35rem; }
.legal-body li { margin: 0.4rem 0; }
.legal-body a { color: var(--acid); text-decoration: none; }
.legal-body a:hover { text-decoration: underline; }
.legal-body strong { color: var(--paper); font-weight: 600; }
.legal-body address { font-style: normal; color: var(--muted); line-height: 1.7; }
@media (max-width: 640px) { .legal-toc ol { columns: 1; } }
