/*
 * Acme CRM — marketing site
 * ---------------------------------------------------------------------------
 * One stylesheet for all five pages. There is no build step, so this file is
 * the only place layout and colour are decided; the pages themselves carry no
 * <style> block and no inline styles.
 *
 * Read this top to bottom and it is: tokens, reset, typography, layout
 * primitives, components, then the page-specific bits that were not worth
 * generalising. Nothing here depends on JavaScript — site.js only enhances.
 */

/* ===========================================================================
   1. Tokens
   ---------------------------------------------------------------------------
   Every colour in the site comes from here. Dark mode redefines the same
   names below rather than introducing new ones, so a component is written
   once and is correct in both.
   ======================================================================== */

:root {
    color-scheme: light dark;

    /* Ink — text, from strongest to faintest. */
    --ink: #14171c;
    --ink-2: #363c46;
    --ink-3: #5d6572;
    --ink-4: #868e9b;

    /* Ground — page and raised surfaces. Warm rather than pure white: a
       marketing page is read for minutes, and #fff at full brightness is
       tiring. */
    --paper: #fbf9f6;
    --paper-2: #ffffff;
    --paper-3: #f3efe9;

    /* Lines. Two weights: one you notice, one you do not. */
    --line: #e4ded4;
    --line-soft: #efeae2;

    /* Accent. One saturated colour in the whole palette, so where it appears
       it means something: a link, a button, a number worth reading. */
    --accent: #12604d;
    --accent-hover: #0d4c3c;
    --accent-ink: #ffffff;
    --accent-wash: #e8f1ee;

    /* Second accent, used only for small marks — never for a surface. */
    --ember: #a8541c;

    /* The dark band. Fixed rather than themed: the hero is dark in both
       modes, which is what makes it read as a distinct surface. */
    --night: #12161c;
    --night-2: #1b212a;
    --night-ink: #f4f1ec;
    --night-ink-2: #a8b0bd;
    --night-line: #2a323d;

    /* Type. The display face is the one external request this site makes;
       the fallback stack is a real fallback, not a token gesture. */
    --font-display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype",
        Palatino, Georgia, "Times New Roman", serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
        "Liberation Mono", monospace;

    /* Spacing scale. */
    --gap-1: 0.5rem;
    --gap-2: 0.75rem;
    --gap-3: 1rem;
    --gap-4: 1.5rem;
    --gap-5: 2rem;
    --gap-6: 3rem;
    --gap-7: 4.5rem;
    --gap-8: 7rem;

    --radius: 14px;
    --radius-sm: 9px;
    --radius-lg: 22px;

    --container: 1160px;
    --measure: 62ch;

    --shadow-sm: 0 1px 2px rgba(20, 23, 28, 0.05);
    --shadow: 0 2px 4px rgba(20, 23, 28, 0.04),
        0 12px 28px -14px rgba(20, 23, 28, 0.18);
    --shadow-lg: 0 2px 6px rgba(20, 23, 28, 0.05),
        0 30px 60px -30px rgba(20, 23, 28, 0.3);
}

@media (prefers-color-scheme: dark) {
    :root {
        --ink: #eceff4;
        --ink-2: #c3cad4;
        --ink-3: #98a1ae;
        --ink-4: #737d8b;

        --paper: #101318;
        --paper-2: #171b22;
        --paper-3: #1d222b;

        --line: #2a313b;
        --line-soft: #232932;

        --accent: #63c9a9;
        --accent-hover: #86dcc0;
        --accent-ink: #06231c;
        --accent-wash: #14261f;

        --ember: #e09a5f;

        --night: #0b0e12;
        --night-2: #141920;
        --night-line: #252d38;

        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
        --shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 12px 28px -14px rgba(0, 0, 0, 0.7);
        --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4),
            0 30px 60px -30px rgba(0, 0, 0, 0.9);
    }
}

/* ===========================================================================
   2. Reset and base
   ======================================================================== */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    /*
     * Where an anchor lands, measured from the top of the viewport. Sized for
     * the tallest case: the header (72px) and the features page's sub-nav
     * (~46px) stacked, plus a little air.
     *
     * This is the ONLY place scroll offset is set. An element that also
     * carries scroll-margin-top adds to this rather than replacing it, and the
     * two together landed a section 222px down while the script's own trigger
     * line was still expecting 130 — which highlighted the previous section on
     * every jump.
     */
    scroll-padding-top: 128px;
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    letter-spacing: -0.004em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent);
    text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
    text-underline-offset: 0.18em;
    text-decoration-thickness: 1px;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
    color: var(--accent-hover);
    text-decoration-color: currentColor;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: var(--gap-6) 0;
}

/* Anything a screen reader should read but nobody should see. */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -150%);
    z-index: 100;
    background: var(--accent);
    color: var(--accent-ink);
    padding: 0.6rem 1.1rem;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.15s ease;
}

.skip-link:focus {
    transform: translate(-50%, 0);
    color: var(--accent-ink);
}

/* ===========================================================================
   3. Typography
   ---------------------------------------------------------------------------
   Display sizes are fluid via clamp() so there is one scale rather than a
   set of breakpoint overrides. The serif is used only for headings and for
   the large figures in the stat strip.
   ======================================================================== */

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: -0.018em;
    line-height: 1.08;
    margin: 0 0 var(--gap-3);
    color: var(--ink);
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.6rem, 1.5rem + 4.6vw, 4.6rem);
}

h2 {
    font-size: clamp(2rem, 1.35rem + 2.6vw, 3.1rem);
}

h3 {
    font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.7rem);
    line-height: 1.2;
}

/*
 * The small sans-serif heading used inside cards and journey steps.
 *
 * A class rather than the h4 ELEMENT, because these sit directly under a
 * section's h2 and jumping h2 → h4 skips a level — which is what a screen
 * reader announces and what an outline tool reports. They are marked up as h3
 * and carry this class to keep the smaller, plainer look.
 */
h4,
.h-card {
    font-family: var(--font-sans);
    font-weight: 650;
    font-size: 1.0625rem;
    letter-spacing: -0.01em;
    line-height: 1.35;
}

p {
    margin: 0 0 var(--gap-3);
    max-width: var(--measure);
}

.lede {
    font-size: clamp(1.125rem, 1.03rem + 0.45vw, 1.32rem);
    line-height: 1.55;
    color: var(--ink-2);
    max-width: 56ch;
}

/* The small letterspaced label above a heading. */
.eyebrow {
    display: inline-flex;
    /* Not centre: a label that wraps to two lines on a narrow screen would
       hang its rule halfway down the block, level with nothing. */
    align-items: flex-start;
    gap: 0.55rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 var(--gap-3);
}

.eyebrow::before {
    content: "";
    width: 1.6rem;
    height: 1px;
    background: currentColor;
    opacity: 0.55;
    flex: none;
    /* Half of the first line, so the rule reads as underlining that line. */
    margin-top: 0.75em;
}

.muted {
    color: var(--ink-3);
}

.small {
    font-size: 0.9375rem;
    line-height: 1.6;
}

code,
kbd,
.mono {
    font-family: var(--font-mono);
    font-size: 0.875em;
}

code {
    background: var(--paper-3);
    border: 1px solid var(--line-soft);
    border-radius: 5px;
    padding: 0.1em 0.36em;
}

/* ===========================================================================
   4. Layout primitives
   ======================================================================== */

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.container--narrow {
    max-width: 820px;
}

.section {
    padding-block: clamp(3.5rem, 2rem + 6vw, var(--gap-8));
}

.section--tight {
    padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem);
}

.section--ruled {
    border-top: 1px solid var(--line-soft);
}

.section-head {
    max-width: 44rem;
    margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem);
}

.section-head p {
    max-width: 52ch;
}

.grid {
    display: grid;
    gap: clamp(1.25rem, 0.8rem + 1.6vw, 2rem);
}

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

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

    .grid--4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 640px) and (max-width: 899px) {
    .grid--3,
    .grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Text beside a supporting panel. */
.split {
    display: grid;
    gap: clamp(2rem, 1rem + 4vw, 4rem);
    align-items: center;
}

@media (min-width: 940px) {
    .split {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    }

    .split--reverse > :first-child {
        order: 2;
    }
}

/*
 * Two columns that start together rather than balancing about their middles.
 *
 * `.split` centres, which is right when the two sides are a paragraph and a
 * picture. It is wrong when both sides are content of very different lengths —
 * on the contact page it pushed the form half a screen down to line its middle
 * up with a taller stack of cards, leaving the top of the page empty.
 */
.split--top {
    align-items: start;
}

.stack > * + * {
    margin-top: var(--gap-3);
}

.center {
    text-align: center;
}

.center p,
.center .lede {
    margin-inline: auto;
}

/* ===========================================================================
   5. Buttons
   ======================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.008em;
    line-height: 1;
    padding: 0.92rem 1.5rem;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease,
        color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn--primary {
    background: var(--accent);
    color: var(--accent-ink);
    box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
    background: var(--accent-hover);
    color: var(--accent-ink);
}

.btn--ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}

.btn--ghost:hover {
    color: var(--ink);
    background: var(--paper-3);
    border-color: var(--ink-4);
}

/* On the dark hero and the dark CTA band. */
.btn--onnight {
    background: var(--night-ink);
    color: var(--night);
}

.btn--onnight:hover {
    background: #ffffff;
    color: var(--night);
}

.btn--onnight-ghost {
    background: transparent;
    color: var(--night-ink);
    border-color: var(--night-line);
}

.btn--onnight-ghost:hover {
    color: var(--night-ink);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.35);
}

.btn--sm {
    padding: 0.62rem 1.1rem;
    font-size: 0.9375rem;
}

.btn--block {
    width: 100%;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-2);
    align-items: center;
    margin-top: var(--gap-4);
}

.center .btn-row {
    justify-content: center;
}

/* A link that reads as an action without being a button. */
.arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    text-decoration: none;
}

.arrow-link::after {
    content: "→";
    transition: transform 0.15s ease;
}

.arrow-link:hover::after {
    transform: translateX(3px);
}

/* ===========================================================================
   6. Header and footer
   ---------------------------------------------------------------------------
   Duplicated verbatim in every page. That is the cost of no build step, and
   it is deliberate: the alternative is injecting them with JavaScript, which
   would leave a crawler and a reader with JS disabled looking at a page with
   no navigation.
   ======================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.site-header.is-scrolled {
    border-bottom-color: var(--line-soft);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: var(--gap-4);
    min-height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-size: 1.32rem;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-decoration: none;
    flex: none;
}

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

.brand__mark {
    width: 26px;
    height: 26px;
    flex: none;
}

.site-nav {
    display: none;
    margin-inline-start: auto;
    align-items: center;
    gap: 0.35rem;
}

.site-nav a {
    color: var(--ink-2);
    text-decoration: none;
    font-size: 0.96rem;
    font-weight: 550;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.site-nav a:hover {
    color: var(--ink);
    background: var(--paper-3);
}

.site-nav a[aria-current="page"] {
    color: var(--ink);
    background: var(--paper-3);
}

.site-header__cta {
    display: none;
    flex: none;
}

.nav-toggle {
    margin-inline-start: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper-2);
    color: var(--ink);
    cursor: pointer;
}

.nav-toggle svg {
    width: 20px;
    height: 20px;
}

.nav-toggle__close {
    display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__open {
    display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
    display: block;
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--line-soft);
    background: var(--paper);
    padding: var(--gap-2) 0 var(--gap-4);
}

.mobile-nav.is-open {
    display: block;
}

.mobile-nav a {
    display: block;
    padding: 0.8rem 0;
    color: var(--ink);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 550;
    border-bottom: 1px solid var(--line-soft);
}

.mobile-nav .btn {
    margin-top: var(--gap-3);
}

@media (min-width: 900px) {
    .site-nav,
    .site-header__cta {
        display: flex;
    }

    .nav-toggle,
    .mobile-nav {
        display: none !important;
    }
}

.site-footer {
    background: var(--night);
    color: var(--night-ink-2);
    padding-block: var(--gap-7) var(--gap-5);
    margin-top: auto;
}

.site-footer a {
    color: var(--night-ink-2);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--night-ink);
}

.site-footer .brand {
    color: var(--night-ink);
}

.footer-grid {
    display: grid;
    gap: var(--gap-5);
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 720px) {
    .footer-grid {
        grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
        gap: var(--gap-4);
    }
}

.footer-blurb {
    margin-top: var(--gap-3);
    max-width: 32ch;
    color: var(--night-ink-2);
}

.footer-col h2 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--night-ink);
    margin: 0 0 var(--gap-3);
    font-weight: 650;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
    font-size: 0.95rem;
}

.footer-note {
    margin-top: var(--gap-6);
    padding-top: var(--gap-4);
    border-top: 1px solid var(--night-line);
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-3);
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.footer-note p {
    margin: 0;
    max-width: none;
}

/* ===========================================================================
   7. Dark bands (hero, CTA, anything on --night)
   ======================================================================== */

.night {
    background: var(--night);
    color: var(--night-ink);
    position: relative;
    overflow: hidden;
}

.night h1,
.night h2,
.night h3,
.night h4 {
    color: var(--night-ink);
}

.night p,
.night .lede {
    color: var(--night-ink-2);
}

.night .eyebrow {
    color: var(--accent);
}

@media (prefers-color-scheme: light) {
    .night .eyebrow {
        color: #6fd3b3;
    }
}

/* A very quiet grid, so the dark band has texture without decoration. */
.night::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(
            to right,
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 68px 68px;
    mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(
        120% 90% at 50% 0%,
        #000 20%,
        transparent 78%
    );
    pointer-events: none;
}

.night > * {
    position: relative;
}

/* ===========================================================================
   8. Hero
   ======================================================================== */

.hero {
    padding-block: clamp(3.5rem, 2rem + 7vw, 7rem) clamp(3rem, 2rem + 5vw, 5.5rem);
}

.hero__inner {
    max-width: 60rem;
}

.hero h1 {
    margin-bottom: var(--gap-4);
}

.hero .lede {
    max-width: 46rem;
    font-size: clamp(1.15rem, 1rem + 0.7vw, 1.45rem);
}

.hero__proof {
    margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
    padding-top: var(--gap-4);
    border-top: 1px solid var(--night-line);
    display: grid;
    gap: var(--gap-4);
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.stat__figure {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem);
    line-height: 1;
    color: var(--night-ink);
    display: block;
    letter-spacing: -0.02em;
}

.stat__label {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--night-ink-2);
}

/* ===========================================================================
   9. Cards
   ======================================================================== */

.card {
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.35rem, 1rem + 1vw, 1.9rem);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease,
        transform 0.18s ease;
}

.card p {
    margin: 0;
    color: var(--ink-3);
    font-size: 0.9875rem;
    line-height: 1.6;
    max-width: none;
}

.card h3,
.card h4 {
    margin: 0;
}

.card--link:hover {
    border-color: var(--ink-4);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.card__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--accent-wash);
    color: var(--accent);
    margin-bottom: var(--gap-2);
    flex: none;
}

.card__icon svg {
    width: 20px;
    height: 20px;
}

.card--flat {
    background: transparent;
    border: 0;
    border-top: 2px solid var(--line);
    border-radius: 0;
    padding: var(--gap-4) 0 0;
}

.card--flat:hover {
    transform: none;
    box-shadow: none;
}

/* A card carrying a big number. */
.card--figure .figure {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem);
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--ink);
}

/* ===========================================================================
   10. Panels — the fake UI shown beside copy
   ---------------------------------------------------------------------------
   Deliberately schematic rather than a screenshot: a screenshot of a product
   goes stale the week after it ships, and a stale screenshot is worse than
   none. These are built from the same tokens as the rest of the page.
   ======================================================================== */

.panel {
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.panel__bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--line-soft);
    background: var(--paper-3);
    font-size: 0.8125rem;
    color: var(--ink-3);
}

.panel__dots {
    display: inline-flex;
    gap: 0.32rem;
}

.panel__dots i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--line);
    display: block;
}

.panel__body {
    padding: 1rem;
}

/* A table filling a panel already has the panel's own frame around it. */
.panel .table-wrap {
    border: 0;
    border-radius: 0;
    background: transparent;
}

/* Kanban mock. */
.board {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.board__col {
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    padding: 0.6rem;
    min-width: 0;
}

.board__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.02em;
    color: var(--ink-2);
    margin-bottom: 0.55rem;
}

.board__count {
    color: var(--ink-4);
    font-weight: 550;
    font-variant-numeric: tabular-nums;
}

.board__card {
    background: var(--paper-2);
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    padding: 0.55rem 0.6rem;
    margin-bottom: 0.45rem;
    box-shadow: var(--shadow-sm);
}

.board__card:last-child {
    margin-bottom: 0;
}

.board__name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
    margin-bottom: 0.28rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.board__meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    color: var(--ink-4);
}

.board__value {
    font-variant-numeric: tabular-nums;
    color: var(--ink-2);
    font-weight: 600;
}

.chip {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.1rem 0.4rem;
    border-radius: 5px;
    background: var(--accent-wash);
    color: var(--accent);
    white-space: nowrap;
}

.chip--ember {
    background: color-mix(in srgb, var(--ember) 14%, transparent);
    color: var(--ember);
}

.chip--plain {
    background: var(--paper-3);
    color: var(--ink-3);
}

/* ===========================================================================
   11. The journey — a lead's path across the product
   ======================================================================== */

.journey {
    display: grid;
    gap: 0;
    counter-reset: step;
}

@media (min-width: 940px) {
    .journey {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.journey__step {
    position: relative;
    padding: var(--gap-4) 0 var(--gap-4) var(--gap-5);
    border-left: 1px solid var(--line);
}

@media (min-width: 940px) {
    .journey__step {
        padding: var(--gap-5) var(--gap-4) 0 0;
        border-left: 0;
        border-top: 1px solid var(--line);
    }
}

.journey__step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.06em;
    left: -1px;
    top: var(--gap-4);
    padding-inline: 0.75rem 0;
    border-left: 1px solid var(--accent);
}

@media (min-width: 940px) {
    .journey__step::before {
        left: 0;
        top: -1px;
        padding: 0.6rem 0 0;
        border-left: 0;
        border-top: 2px solid var(--accent);
        width: 2.2rem;
    }
}

.journey__step h3 {
    margin: 0 0 0.35rem;
}

.journey__step p {
    margin: 0;
    color: var(--ink-3);
    font-size: 0.9375rem;
    max-width: 34ch;
}

/* ===========================================================================
   12. Feature-page navigation and long-form sections
   ======================================================================== */

.subnav {
    position: sticky;
    top: 72px;
    z-index: 40;
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line-soft);
}

.subnav__scroll {
    display: flex;
    gap: 0.15rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding-block: 0.55rem;
}

.subnav__scroll::-webkit-scrollbar {
    display: none;
}

.subnav a {
    flex: none;
    font-size: 0.875rem;
    font-weight: 550;
    color: var(--ink-3);
    text-decoration: none;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    white-space: nowrap;
}

.subnav a:hover {
    color: var(--ink);
    background: var(--paper-3);
}

.subnav a.is-active {
    color: var(--accent);
    background: var(--accent-wash);
}

/* No scroll-margin-top here — see scroll-padding-top on :root, which already
   covers every anchor on the site and which this would silently add to. */
.feature-block {
    padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
    border-top: 1px solid var(--line-soft);
}

.feature-block:first-of-type {
    border-top: 0;
}

/* ===========================================================================
   13. Lists
   ======================================================================== */

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

.ticks li {
    position: relative;
    padding-left: 1.75rem;
    color: var(--ink-2);
    font-size: 0.9875rem;
    line-height: 1.55;
}

.ticks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.44em;
    width: 0.72rem;
    height: 0.42rem;
    border-left: 1.8px solid var(--accent);
    border-bottom: 1.8px solid var(--accent);
    transform: rotate(-45deg);
}

.ticks--night li {
    color: var(--night-ink-2);
}

.dl {
    display: grid;
    gap: 0;
    margin: 0;
}

.dl > div {
    display: grid;
    gap: 0.25rem;
    padding-block: var(--gap-3);
    border-top: 1px solid var(--line-soft);
}

@media (min-width: 720px) {
    .dl > div {
        grid-template-columns: 15rem minmax(0, 1fr);
        gap: var(--gap-4);
        align-items: baseline;
    }
}

.dl dt {
    font-weight: 650;
    color: var(--ink);
    font-size: 0.9875rem;
}

.dl dd {
    margin: 0;
    color: var(--ink-3);
    font-size: 0.9875rem;
    line-height: 1.6;
}

/* ===========================================================================
   14. Tables
   ======================================================================== */

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper-2);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
    min-width: 34rem;
}

th,
td {
    text-align: left;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid var(--line-soft);
    vertical-align: top;
}

thead th {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-4);
    font-weight: 650;
    background: var(--paper-3);
    white-space: nowrap;
}

tbody tr:last-child td {
    border-bottom: 0;
}

td strong {
    color: var(--ink);
    font-weight: 650;
}

/* ===========================================================================
   15. Pricing
   ======================================================================== */

/* Stretch, not start: three plans of different lengths must still end level,
   because a row of buttons at three different heights reads as a mistake. The
   tick list inside each plan takes the slack (`flex: 1` below). */
.price-grid {
    display: grid;
    gap: var(--gap-4);
    align-items: stretch;
}

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

.plan {
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 1rem + 1.5vw, 2.1rem);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.plan--featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg);
}

.plan__name {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin: 0 0 var(--gap-2);
}

.plan--featured .plan__name {
    color: var(--accent);
}

.plan__price {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 1.8rem + 2vw, 3.2rem);
    line-height: 1;
    letter-spacing: -0.025em;
    color: var(--ink);
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.plan__per {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ink-4);
    letter-spacing: 0;
}

.plan__desc {
    margin: var(--gap-3) 0 var(--gap-4);
    color: var(--ink-3);
    font-size: 0.9375rem;
    max-width: none;
}

.plan .ticks {
    margin-bottom: var(--gap-4);
    flex: 1;
}

.plan .btn {
    width: 100%;
}

.badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-ink);
    margin-left: 0.5rem;
    vertical-align: 0.15em;
}

/* The banner marking invented numbers as invented. Loud on purpose — it is
   there to stop placeholder pricing reaching a real customer. */
.notice {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1rem 1.2rem;
    border: 1px dashed var(--ember);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--ember) 7%, transparent);
    color: var(--ink-2);
    font-size: 0.9375rem;
    line-height: 1.55;
    margin-bottom: var(--gap-5);
}

.notice strong {
    color: var(--ember);
}

.notice p {
    margin: 0;
    max-width: none;
}

.notice__mark {
    flex: none;
    font-weight: 700;
    color: var(--ember);
}

/* ===========================================================================
   16. Forms
   ======================================================================== */

.form {
    display: grid;
    gap: var(--gap-3);
}

.field {
    display: grid;
    gap: 0.4rem;
}

.field label {
    font-size: 0.875rem;
    font-weight: 650;
    color: var(--ink-2);
}

.field .hint {
    font-size: 0.8125rem;
    color: var(--ink-4);
}

.field input,
.field select,
.field textarea {
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.72rem 0.9rem;
    width: 100%;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
    min-height: 8.5rem;
    resize: vertical;
    line-height: 1.55;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-wash);
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--ink-4);
}

.field-row {
    display: grid;
    gap: var(--gap-3);
}

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

/* Bot bait. Never shown, never filled in by a person. */
.hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.form-status {
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    border: 1px solid var(--line);
    background: var(--paper-3);
    color: var(--ink-2);
}

.form-status--ok {
    border-color: var(--accent);
    background: var(--accent-wash);
    color: var(--accent);
}

.form-status--bad {
    border-color: var(--ember);
    background: color-mix(in srgb, var(--ember) 8%, transparent);
    color: var(--ember);
}

[hidden] {
    display: none !important;
}

/* ===========================================================================
   17. Accordion (FAQ) — <details>, so it works with no JavaScript
   ======================================================================== */

.faq {
    border-top: 1px solid var(--line-soft);
}

.faq details {
    border-bottom: 1px solid var(--line-soft);
}

.faq summary {
    cursor: pointer;
    list-style: none;
    padding: var(--gap-4) 2.5rem var(--gap-4) 0;
    font-weight: 650;
    font-size: 1.05rem;
    color: var(--ink);
    position: relative;
}

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

.faq summary::after {
    content: "+";
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--ink-4);
    line-height: 1;
}

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

.faq details > div {
    padding-bottom: var(--gap-4);
}

.faq details p:last-child {
    margin-bottom: 0;
}

/* ===========================================================================
   18. Page-specific odds and ends
   ======================================================================== */

/* Sits under the header on interior pages, in place of the dark hero. */
.page-head {
    padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

/* The heading and the first block of content are one thought, so they do not
   need both of their paddings between them — stacked, they left a screen's
   worth of nothing under every interior page's opening line. */
.page-head + .section {
    padding-top: clamp(1rem, 0.5rem + 1vw, 1.75rem);
}

.logo-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
    opacity: 0.55;
}

.logo-row span {
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    color: var(--ink-3);
}

.quote {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.1rem);
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin: 0 0 var(--gap-4);
    max-width: 26ch;
}

.byline {
    font-size: 0.9375rem;
    color: var(--ink-4);
}

.cta-band {
    padding-block: clamp(3.5rem, 2rem + 5vw, 6rem);
}

.cta-band h2 {
    max-width: 20ch;
    margin-inline: auto;
}

/* ===========================================================================
   19. Spacing utilities
   ---------------------------------------------------------------------------
   Deliberately four, and only for top margin. A page needs the occasional
   "this block wants more air than the last one" and inventing a class name
   for each of those is worse than admitting it. Anything beyond this belongs
   in a component above.
   ======================================================================== */

.mt-3 { margin-top: var(--gap-4) !important; }
.mt-4 { margin-top: var(--gap-5) !important; }
.mt-5 { margin-top: 2.5rem !important; }
.mt-6 { margin-top: var(--gap-6) !important; }

/* Layout so the footer sits at the bottom on short pages. */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}
