/* MySendbox, in LeapCount's "Balanced Ledger" system (www.leapcount app/globals.css + ledger.css):
   warm neutrals, one orange that marks and never means "link", ink buttons, hairline rules
   with end ticks, the double "balanced" rule at most once per page inside the H1. */

/* Self-hosted from Google Fonts (SIL Open Font License): Latin and Latin Extended subsets only.
   Regenerate by fetching fonts.googleapis.com/css2 for the same families with a modern browser user agent. */
@font-face {
    font-family: "Bricolage Grotesque";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Bricolage Grotesque";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Geist";
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url("/fonts/geist-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Geist";
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url("/fonts/geist-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Geist Mono";
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
    src: url("/fonts/geist-mono-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Geist Mono";
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
    src: url("/fonts/geist-mono-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Instrument Serif";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/instrument-serif-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Instrument Serif";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/instrument-serif-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    color-scheme: light;
    --bg: oklch(1 0 0);
    --surface: oklch(0.978 0.003 85);
    --frame: oklch(1 0 0);
    --ink: oklch(0.19 0.006 60);
    --ink-2: oklch(0.44 0.006 60);
    --ink-3: oklch(0.535 0.005 60);
    --rule: oklch(0.905 0.004 80);
    --rule-2: oklch(0.84 0.004 80);
    --rule-ink: oklch(0.19 0.006 60);
    --brand: oklch(0.665 0.185 46);
    --brand-ink: oklch(0.52 0.165 42);
    --brand-wash: oklch(0.665 0.185 46 / 0.1);
    --positive: oklch(0.5 0.11 155);
    --positive-wash: oklch(0.6 0.12 155 / 0.12);
    --negative: oklch(0.53 0.19 27);
    --btn-bg: oklch(0.19 0.006 60);
    --btn-fg: oklch(0.99 0 0);
    --shadow-frame: 0 1px 2px oklch(0.2 0.01 60 / 0.05), 0 24px 48px -28px oklch(0.2 0.01 60 / 0.26);
    --selection: oklch(0.665 0.185 46 / 0.24);
    --pill-bg: oklch(1 0 0 / 0.94);
    --pill-border: oklch(0.86 0.004 80);
    --pill-shadow: 0 1px 2px oklch(0.2 0.01 60 / 0.06), 0 12px 32px -12px oklch(0.2 0.01 60 / 0.3);

    --font-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
    /* MySendbox's own display face: the wordmark and big headings. Body text stays LeapCount's Geist. */
    --font-display: "Instrument Serif", ui-serif, Georgia, serif;
    --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

    --fs-display: 64px;
    --fs-h1: 48px;
    --fs-h2: 36px;
    --fs-h3: 20px;
    --fs-lead: 16px;
    --fs-body: 14px;
    --fs-small: 13px;
    --fs-meta: 12px;
    --track-display: -0.038em;
    --track-h1: -0.032em;
    --track-h2: -0.024em;

    --section: 128px;
    --head-gap: 56px;
    --gutter: 24px;
    --container: 1200px;
}

/* Dark: the system setting, unless the visitor picked light with the header toggle; or picked dark. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --bg: oklch(0.168 0.004 60);
        --surface: oklch(0.198 0.004 60);
        --frame: oklch(0.185 0.004 60);
        --ink: oklch(0.955 0.003 80);
        --ink-2: oklch(0.78 0.004 80);
        --ink-3: oklch(0.68 0.004 80);
        --rule: oklch(1 0 0 / 0.09);
        --rule-2: oklch(1 0 0 / 0.16);
        --rule-ink: oklch(1 0 0 / 0.42);
        --brand: oklch(0.74 0.16 55);
        --brand-ink: oklch(0.8 0.13 62);
        --brand-wash: oklch(0.74 0.16 55 / 0.13);
        --positive: oklch(0.78 0.13 155);
        --positive-wash: oklch(0.7 0.13 155 / 0.14);
        --negative: oklch(0.72 0.16 25);
        --btn-bg: oklch(0.955 0.003 80);
        --btn-fg: oklch(0.17 0.004 60);
        --shadow-frame: 0 0 0 1px oklch(1 0 0 / 0.02);
        --selection: oklch(0.74 0.16 55 / 0.32);
        --pill-bg: oklch(0.24 0.005 60 / 0.92);
        --pill-border: oklch(1 0 0 / 0.14);
        --pill-shadow: 0 1px 2px oklch(0 0 0 / 0.3), 0 12px 32px -12px oklch(0 0 0 / 0.7);
    }
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: oklch(0.168 0.004 60);
    --surface: oklch(0.198 0.004 60);
    --frame: oklch(0.185 0.004 60);
    --ink: oklch(0.955 0.003 80);
    --ink-2: oklch(0.78 0.004 80);
    --ink-3: oklch(0.68 0.004 80);
    --rule: oklch(1 0 0 / 0.09);
    --rule-2: oklch(1 0 0 / 0.16);
    --rule-ink: oklch(1 0 0 / 0.42);
    --brand: oklch(0.74 0.16 55);
    --brand-ink: oklch(0.8 0.13 62);
    --brand-wash: oklch(0.74 0.16 55 / 0.13);
    --positive: oklch(0.78 0.13 155);
    --positive-wash: oklch(0.7 0.13 155 / 0.14);
    --negative: oklch(0.72 0.16 25);
    --btn-bg: oklch(0.955 0.003 80);
    --btn-fg: oklch(0.17 0.004 60);
    --shadow-frame: 0 0 0 1px oklch(1 0 0 / 0.02);
    --selection: oklch(0.74 0.16 55 / 0.32);
    --pill-bg: oklch(0.24 0.005 60 / 0.92);
    --pill-border: oklch(1 0 0 / 0.14);
    --pill-shadow: 0 1px 2px oklch(0 0 0 / 0.3), 0 12px 32px -12px oklch(0 0 0 / 0.7);
}

@media (max-width: 899.98px) {
    :root {
        --fs-display: 48px;
        --fs-h1: 38px;
        --fs-h2: 30px;
        --section: 96px;
        --head-gap: 40px;
    }
}
@media (max-width: 639.98px) {
    :root {
        --fs-display: 40px;
        --fs-h1: 32px;
        --fs-h2: 26px;
        --fs-h3: 18px;
        --section: 80px;
        --head-gap: 32px;
        --gutter: 16px;
    }
}

/* ---------- base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 var(--fs-body) / 1.55 var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
::selection {
    background: var(--selection);
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
    margin: 0;
}
ul,
ol {
    padding: 0;
    list-style: none;
}
a {
    color: inherit;
    text-decoration: none;
}
:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    border-radius: 3px;
}

.page-wrap {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.sec {
    padding-top: var(--section);
}
.num {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}
.skip {
    position: absolute;
    left: -9999px;
}
.skip:focus {
    left: var(--gutter);
    top: 12px;
    z-index: 50;
    background: var(--btn-bg);
    color: var(--btn-fg);
    padding: 8px 12px;
    border-radius: 6px;
}

/* ---------- type ---------- */
.text-display {
    font-size: var(--fs-display);
    line-height: 1;
    letter-spacing: var(--track-display);
    font-weight: 500;
}
.text-h1 {
    font-size: var(--fs-h1);
    line-height: 1.06;
    letter-spacing: var(--track-h1);
    font-weight: 500;
}
.text-h2 {
    font-size: var(--fs-h2);
    line-height: 1.12;
    letter-spacing: var(--track-h2);
    font-weight: 500;
}
.text-h3 {
    font-size: var(--fs-h3);
    line-height: 1.3;
    letter-spacing: -0.012em;
    font-weight: 500;
}
.lead {
    font-size: var(--fs-lead);
    line-height: 1.5;
    color: var(--ink-2);
}
.eyebrow {
    font-size: var(--fs-meta);
    color: var(--ink-3);
    display: flex;
    gap: 10px;
    align-items: baseline;
}
.eyebrow .num {
    color: var(--brand-ink);
}

/* The double "balanced" rule: once per page, inside the H1. */
.dbl {
    --dbl-w: 2px;
    --dbl-gap: 3px;
    background-image: linear-gradient(var(--brand), var(--brand)), linear-gradient(var(--brand), var(--brand));
    background-repeat: no-repeat;
    background-size:
        100% var(--dbl-w),
        100% var(--dbl-w);
    background-position:
        0 100%,
        0 calc(100% - var(--dbl-w) - var(--dbl-gap));
    padding-bottom: 0.1em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    animation: draw 0.8s 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
.text-h1 .dbl {
    --dbl-w: 1.5px;
    --dbl-gap: 2.5px;
}
@keyframes draw {
    from {
        background-size:
            0% var(--dbl-w),
            0% var(--dbl-w);
    }
}

/* Section rule: 1px ink with 7px end ticks, like a ledger page. */
.rule-ticks {
    position: relative;
    height: 1px;
    background: var(--rule-ink);
}
.rule-ticks::before,
.rule-ticks::after {
    content: "";
    position: absolute;
    top: 0;
    width: 1px;
    height: 7px;
    background: var(--rule-ink);
}
.rule-ticks::before {
    left: 0;
}
.rule-ticks::after {
    right: 0;
}

/* ---------- buttons, chips, arrow ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-size: var(--fs-body);
    font-weight: 500;
    white-space: nowrap;
}
.btn.sm {
    height: 32px;
    padding: 0 12px;
    border-radius: 6px;
}
.btn.ghost {
    background: transparent;
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--rule-2);
}
.arr {
    width: 12px;
    height: 10px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    overflow: visible;
}
.arr .shaft {
    opacity: 0;
    transition: opacity 0.15s ease;
}
.arr .head {
    transition: transform 0.15s ease;
}
a:hover .arr .shaft,
a:focus-visible .arr .shaft {
    opacity: 1;
}
a:hover .arr .head,
a:focus-visible .arr .head {
    transform: translateX(3px);
}
.chip {
    display: inline-flex;
    align-items: center;
    height: 18px;
    padding: 0 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    background: color-mix(in oklch, var(--ink) 6%, transparent);
    color: var(--ink-2);
}
.chip.b {
    background: var(--brand-wash);
    color: var(--brand-ink);
}
.chip.p {
    background: var(--positive-wash);
    color: var(--positive);
}
.tick {
    width: 12px;
    height: 12px;
    flex: none;
    fill: none;
    stroke: var(--brand);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- header ---------- */
/* A floating pill, centered: brand left, nav in the middle, the button right. */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 12px var(--gutter) 0;
    pointer-events: none;
}
.site-header .page-wrap {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    max-width: 780px;
    height: 52px;
    padding: 0 8px 0 20px;
    border: 1px solid var(--pill-border);
    border-radius: 999px;
    background: var(--pill-bg);
    -webkit-backdrop-filter: blur(14px) saturate(1.5);
    backdrop-filter: blur(14px) saturate(1.5);
    box-shadow: var(--pill-shadow);
    pointer-events: auto;
}
.site-header .btn {
    border-radius: 999px;
}
.header-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 6px;
}
.header-link {
    padding: 0 8px;
    color: var(--ink-2);
    font-size: var(--fs-body);
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.15s ease;
}
.header-link:hover {
    color: var(--ink);
}
/* Signed in to the dashboard (a hint cookie it sets; see the head script): Dashboard replaces Log in and Get started. */
.site-header .when-in,
.signed-in .site-header .when-out {
    display: none;
}
.signed-in .site-header .when-in {
    display: inline-flex;
}
/* Phones: room for the brand and Get started only (sign-up links to sign-in). */
@media (max-width: 419.98px) {
    .header-link {
        display: none;
    }
}
@media (max-width: 359.98px) {
    .site-header .btn .arr {
        display: none;
    }
}
.theme-toggle {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ink-2);
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease;
}
.theme-toggle:hover {
    background: color-mix(in oklch, var(--ink) 7%, transparent);
    color: var(--ink);
}
.theme-toggle svg {
    width: 16px;
    height: 16px;
}
/* Shows what a click switches to: the moon in light, the sun in dark. */
.theme-toggle .i-sun {
    display: none;
}
:root[data-theme="dark"] .theme-toggle .i-sun {
    display: block;
}
:root[data-theme="dark"] .theme-toggle .i-moon {
    display: none;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .i-sun {
        display: block;
    }
    :root:not([data-theme="light"]) .theme-toggle .i-moon {
        display: none;
    }
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    white-space: nowrap;
}
.brand-icon {
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    /* The icon's own square is near the dark page color; a hairline keeps its edge. */
    box-shadow: 0 0 0 1px var(--rule);
}
.brand-name {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.02em;
}
.nav {
    display: flex;
    gap: clamp(18px, 2.5vw, 28px);
    color: var(--ink-2);
}
.nav a {
    transition: color 0.15s ease;
}
.nav a:hover,
.nav a[aria-current="page"] {
    color: var(--ink);
}
@media (max-width: 899.98px) {
    .nav {
        display: none;
    }
    .site-header .page-wrap {
        grid-template-columns: 1fr auto;
    }
}
@media (max-width: 639.98px) {
    .site-header {
        padding-top: 10px;
    }
    .site-header .page-wrap {
        height: 48px;
        padding-left: 16px;
    }
}

/* ---------- hero ---------- */
.hero {
    padding-top: clamp(64px, 9vw, 112px);
}
.hero-text {
    max-width: 820px;
}
.hero .text-display {
    margin-top: 20px;
}
.hero .lead {
    margin-top: 24px;
    max-width: 600px;
}
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin-top: 32px;
}
.hero-note {
    font-size: var(--fs-small);
    color: var(--ink-3);
}
.br-d {
    display: inline;
}
@media (max-width: 899.98px) {
    .br-d {
        display: none;
    }
}

/* App frame: the window the product drawing sits in. */
.frame {
    margin-top: var(--head-gap);
    border: 1px solid var(--rule);
    border-radius: 12px;
    background: var(--frame);
    box-shadow: var(--shadow-frame);
    overflow: hidden;
}
.frame-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 36px;
    padding: 0 14px;
    border-bottom: 1px solid var(--rule);
    background: var(--surface);
    font-size: 11px;
    color: var(--ink-3);
}
.frame-dots {
    display: flex;
    gap: 6px;
}
.frame-dots i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--rule-2);
}
.frame-url {
    margin-inline: auto;
    font-family: var(--font-mono);
}

/* ---------- inbox drawing (hero) ---------- */
.ib {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    font-size: 12px;
    line-height: 1.45;
    color: var(--ink);
}
.ib-list {
    border-right: 1px solid var(--rule);
    background: var(--surface);
    padding: 14px 10px;
}
.ib-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 2px 6px 12px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--rule);
}
/* .ib-box .ib-mark: outranks ".ib-box span" below, which would grey the letters and undo the centering. */
.ib-box .ib-mark {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: var(--ink);
    color: var(--bg);
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 500;
    flex: none;
}
.ib-box b {
    display: block;
    font-weight: 500;
    font-size: 12px;
}
.ib-box span {
    display: block;
    font-size: 11px;
    color: var(--ink-3);
}
.ib-thread {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 8px;
    padding: 9px 8px;
    border-radius: 6px;
}
.ib-thread + .ib-thread {
    margin-top: 1px;
}
.ib-thread.on {
    background: var(--frame);
    box-shadow: inset 0 0 0 1px var(--rule);
}
.ib-thread b {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ib-thread time {
    font-size: 11px;
    color: var(--ink-3);
    font-family: var(--font-mono);
}
.ib-thread .subj {
    grid-column: 1 / -1;
    color: var(--ink-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ib-thread .st {
    grid-column: 1 / -1;
    margin-top: 3px;
}

.ib-main {
    padding: 20px 24px 22px;
    min-width: 0;
}
.ib-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rule);
}
.ib-head b {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.005em;
}
.ib-head span {
    font-size: 11px;
    color: var(--ink-3);
}
.ib-msg {
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
}
.ib-from {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--ink-3);
    margin-bottom: 6px;
}
.ib-from b {
    color: var(--ink);
    font-weight: 500;
}
.ib-msg p {
    color: var(--ink-2);
    max-width: 62ch;
}
.ib-draft {
    margin-top: 14px;
    border: 1px solid var(--rule);
    border-radius: 8px;
    background: var(--surface);
    padding: 12px 14px 14px;
}
.ib-draft-h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 11px;
    color: var(--ink-3);
}
.ib-draft p {
    color: var(--ink);
    max-width: 62ch;
}
.ib-checks {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 12px;
    border-top: 1px solid var(--rule);
}
.ib-checks div {
    padding: 10px 12px 0 0;
    min-width: 0;
}
.ib-checks div + div {
    padding-left: 12px;
    border-left: 1px solid var(--rule);
}
.ib-checks dt {
    font-size: 11px;
    color: var(--ink-3);
    white-space: nowrap;
}
.ib-checks dd {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    font-size: 13px;
    font-weight: 500;
}
.ib-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}
.ib-actions .meta {
    margin-right: auto;
    font-size: 11px;
    color: var(--ink-3);
}
.ib-actions span.b {
    height: 28px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    font-size: 12px;
    border: 1px solid var(--rule);
    background: var(--frame);
}
.ib-actions span.b.on {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--bg);
    font-weight: 500;
}

@media (max-width: 899.98px) {
    .ib {
        grid-template-columns: minmax(0, 1fr);
    }
    .ib-list {
        border-right: 0;
        border-bottom: 1px solid var(--rule);
    }
    .ib-thread:nth-of-type(n + 3) {
        display: none;
    }
}
@media (max-width: 639.98px) {
    .ib-main {
        padding: 14px;
    }
    .ib-checks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ib-checks div:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }
    .ib-actions .meta {
        display: none;
    }
}

/* ---------- section heads ---------- */
.sec-head {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px var(--gutter);
    padding-top: 28px;
    margin-bottom: var(--head-gap);
}
.sec-head .eyebrow {
    grid-column: 1 / span 3;
    padding-top: 10px;
}
.sec-head .title {
    grid-column: 4 / span 9;
}
.sec-head .lead {
    margin-top: 16px;
    max-width: 620px;
}
@media (max-width: 899.98px) {
    .sec-head .eyebrow,
    .sec-head .title {
        grid-column: 1 / -1;
    }
    .sec-head .eyebrow {
        padding-top: 0;
    }
}

/* ---------- steps: ledger cells with hairlines at the gutter centre ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: var(--gutter);
    border-block: 1px solid var(--rule);
}
.step {
    position: relative;
    padding: 24px 0 30px;
}
.step + .step::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--gutter) / -2);
    width: 1px;
    background: var(--rule);
}
.step .num {
    font-size: var(--fs-meta);
    color: var(--ink-3);
}
.step h3 {
    margin-top: 28px;
    font-size: var(--fs-lead);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.3;
}
.step p {
    margin-top: 6px;
    font-size: var(--fs-small);
    line-height: 1.5;
    color: var(--ink-2);
    max-width: 32ch;
}
.step:hover .num {
    color: var(--brand-ink);
}
@media (max-width: 1099.98px) {
    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .step:nth-child(3)::before {
        display: none;
    }
    .step:nth-child(n + 3) {
        border-top: 1px solid var(--rule);
    }
}
@media (max-width: 639.98px) {
    .steps {
        grid-template-columns: minmax(0, 1fr);
    }
    .step {
        display: grid;
        grid-template-columns: 32px minmax(0, 1fr);
        column-gap: 8px;
        padding: 16px 0;
    }
    .step::before {
        display: none;
    }
    .step + .step {
        border-top: 1px solid var(--rule);
    }
    .step .num {
        grid-row: 1 / span 2;
        padding-top: 2px;
    }
    .step h3 {
        margin-top: 0;
        font-size: 15px;
    }
}

/* ---------- safety rows ---------- */
.rows {
    border-top: 1px solid var(--rule);
}
.row {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 8px var(--gutter);
    padding: 22px 0 24px;
    border-bottom: 1px solid var(--rule);
}
.row .num {
    grid-column: 1 / span 1;
    font-size: var(--fs-meta);
    color: var(--brand-ink);
    padding-top: 3px;
}
.row h3 {
    grid-column: 2 / span 4;
    font-size: var(--fs-lead);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.35;
}
.row p {
    grid-column: 7 / span 6;
    color: var(--ink-2);
    font-size: var(--fs-body);
}
@media (max-width: 899.98px) {
    .row .num {
        grid-column: 1 / span 1;
    }
    .row h3 {
        grid-column: 2 / -1;
    }
    .row p {
        grid-column: 2 / -1;
    }
}
@media (max-width: 639.98px) {
    .row {
        grid-template-columns: 32px minmax(0, 1fr);
        column-gap: 8px;
    }
    .row h3,
    .row p {
        grid-column: 2;
    }
}

/* ---------- legal / policy page ---------- */
.doc {
    padding-top: clamp(56px, 8vw, 96px);
}
.doc-head {
    max-width: 760px;
}
.doc-head .text-h1 {
    margin-top: 16px;
}
.doc-head .lead {
    margin-top: 20px;
}
.doc-meta {
    margin-top: 16px;
    font-size: var(--fs-meta);
    color: var(--ink-3);
}
.doc-body {
    margin-top: var(--head-gap);
    border-top: 1px solid var(--rule);
}
.doc-sec {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px var(--gutter);
    padding: 28px 0 32px;
    border-bottom: 1px solid var(--rule);
}
.doc-sec > .num {
    grid-column: 1 / span 1;
    font-size: var(--fs-meta);
    color: var(--brand-ink);
    padding-top: 4px;
}
.doc-sec h2 {
    grid-column: 2 / span 3;
    font-size: var(--fs-lead);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.35;
}
.doc-sec .body {
    grid-column: 6 / span 7;
    color: var(--ink-2);
}
.doc-sec .body p + p,
.doc-sec .body p + ul,
.doc-sec .body ul + p {
    margin-top: 10px;
}
.doc-sec ul li {
    position: relative;
    padding-left: 18px;
}
.doc-sec ul li + li {
    margin-top: 8px;
}
.doc-sec ul li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.72em;
    width: 7px;
    height: 1px;
    background: var(--ink-3);
}
.doc-sec .body .doc-code {
    margin: 14px 0;
}
.doc-sec .body > .doc-code:last-child {
    margin-bottom: 0;
}
.doc-sec .body :not(pre) > code {
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--rule);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 0.9em;
    /* Long endpoint paths wrap on phones instead of widening the page. */
    overflow-wrap: anywhere;
}
.doc-sec a {
    color: var(--ink);
    border-bottom: 1px solid var(--rule-2);
}
@media (max-width: 899.98px) {
    .doc-sec h2 {
        grid-column: 2 / -1;
    }
    .doc-sec .body {
        grid-column: 2 / -1;
    }
}
@media (max-width: 639.98px) {
    .doc-sec {
        grid-template-columns: 32px minmax(0, 1fr);
        column-gap: 8px;
    }
    .doc-sec h2,
    .doc-sec .body {
        grid-column: 2;
    }
}

/* ---------- footer ---------- */
.site-footer {
    padding-top: var(--section);
    padding-bottom: 40px;
}
.foot-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 32px var(--gutter);
    padding-top: 40px;
    font-size: var(--fs-small);
}
.foot-brand {
    grid-column: 1 / span 4;
}
.foot-brand p {
    margin-top: 10px;
    max-width: 34ch;
    color: var(--ink-3);
    font-size: var(--fs-meta);
}
.foot-col {
    grid-column: span 2;
}
.foot-col:first-of-type {
    grid-column: 7 / span 2;
}
.foot-col h2 {
    margin-bottom: 14px;
    font-size: var(--fs-meta);
    font-weight: 500;
    color: var(--ink-3);
}
.foot-col li + li {
    margin-top: 8px;
}
.foot-col a {
    color: var(--ink-2);
    transition: color 0.15s ease;
}
.foot-col a:hover {
    color: var(--ink);
}
.foot-bottom {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 64px;
    padding-top: 18px;
    border-top: 3px double var(--rule-2);
    font-size: var(--fs-meta);
    color: var(--ink-3);
}
.foot-bottom nav {
    display: flex;
    gap: 20px;
}
.foot-bottom a:hover {
    color: var(--ink);
}
.to-top {
    margin-left: auto;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: var(--ink-2);
    box-shadow: inset 0 0 0 1px var(--rule-2);
}
.to-top svg {
    width: 14px;
    height: 14px;
}
.to-top:hover svg {
    animation: leap 0.5s cubic-bezier(0.3, 0.7, 0.4, 1);
}
@keyframes leap {
    40% {
        transform: translateY(-4px);
    }
}
@media (max-width: 899.98px) {
    .foot-brand {
        grid-column: 1 / -1;
    }
    .foot-col,
    .foot-col:first-of-type {
        grid-column: span 4;
    }
}
@media (max-width: 639.98px) {
    .foot-col,
    .foot-col:first-of-type {
        grid-column: span 6;
    }
    .foot-bottom {
        flex-wrap: wrap;
        gap: 12px 20px;
        margin-top: 48px;
    }
    .foot-bottom p {
        order: 3;
        width: 100%;
    }
}

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

/* Products: two cards side by side (stacked on phones). */
.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.product {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--surface);
  min-width: 0;
}
.product .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.product h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  margin: 0;
}
.product p {
  margin: 0;
  color: var(--ink-2);
}
.product .more,
.mcp-head .more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-weight: 500;
}
.code {
  margin: 4px 0 0;
  padding: 16px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
}
@media (max-width: 860px) {
  .products {
    grid-template-columns: 1fr;
  }
}

/* ---------- MySendbox display type ---------- */
.text-display,
.text-h1,
.text-h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
}
/* The serif's small x-height reads smaller than Geist at the same size. */
.text-display { font-size: calc(var(--fs-display) * 1.15); line-height: 0.98; }
.text-h1 { font-size: calc(var(--fs-h1) * 1.15); }
.text-h2 { font-size: calc(var(--fs-h2) * 1.15); }
.text-display .dbl {
  white-space: nowrap;
}
/* The wordmark: Bricolage Grotesque, a compact grotesk with a bit of character. */
.brand-name {
  font-family: "Bricolage Grotesque", var(--font-sans);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

/* ---------- abuse report form ---------- */
.form {
    display: grid;
    gap: 20px;
    max-width: 560px;
}
.field {
    display: grid;
    gap: 6px;
    min-width: 0;
}
.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
}
.field label {
    color: var(--ink);
    font-weight: 500;
}
.field .opt,
.field .hint {
    font-size: var(--fs-meta);
    color: var(--ink-3);
    font-weight: 400;
}
.field .opt {
    margin-left: 4px;
}
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--rule-2);
    border-radius: 8px;
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    transition: border-color 0.15s ease;
}
.field textarea {
    min-height: 180px;
    resize: vertical;
    font-family: var(--font-mono);
    font-size: var(--fs-small);
    line-height: 1.5;
}
.field input::placeholder {
    color: var(--ink-3);
}
.field input:hover,
.field select:hover,
.field textarea:hover {
    border-color: var(--ink-3);
}
.field :focus-visible {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px var(--brand-wash);
}
.form[hidden] {
    display: none;
}
.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
}
button.btn {
    border: 0;
    font-family: inherit;
    cursor: pointer;
}
button.btn:disabled {
    opacity: 0.55;
    cursor: progress;
}
.form-status {
    font-size: var(--fs-small);
    color: var(--ink-2);
}
.form-status[data-tone="error"] {
    color: var(--negative);
}
.form-note {
    margin-bottom: 16px;
}
.form-done {
    max-width: 560px;
    padding: 20px;
    border: 1px solid var(--rule);
    border-radius: 10px;
    background: var(--surface);
}
.form-done:focus {
    outline: none;
}
.form-done-title {
    color: var(--ink);
    font-weight: 500;
    margin-bottom: 6px;
}
@media (max-width: 639.98px) {
    .field-row {
        grid-template-columns: 1fr;
    }
}

/* ---------- Dispatch section ---------- */
.api-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px;
  margin-top: 40px;
  align-items: start;
}
.api-code {
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
  min-width: 0;
}
.code-head {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
}
.code-head > :first-child {
  margin-right: auto;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: -4px -6px;
  padding: 3px 6px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ink-3);
  font: inherit;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.copy-btn:hover {
  background: color-mix(in oklch, var(--ink) 7%, transparent);
  color: var(--ink);
}
.copy-btn svg {
  width: 13px;
  height: 13px;
}
.copy-btn[data-copied] {
  color: var(--positive);
}
.code-events {
  border-top: 1px solid var(--rule);
}
.code-tag {
  color: var(--brand-ink);
}
.api-code .code {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.code-small {
  font-size: 11.5px;
  color: var(--ink-3);
}
.feats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}
.feats li {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}
.feats li:last-child {
  border-bottom: 0;
}
.feats h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
}
.feats p {
  margin: 0;
  color: var(--ink-2);
}
.feats code,
.api-note code {
  font-family: var(--font-mono);
  font-size: 0.86em;
}
.api-note {
  margin-top: 28px;
  font-size: var(--fs-small, 14px);
  color: var(--ink-3);
}
.api-note a {
  color: var(--ink);
  border-bottom: 1px solid var(--rule-2);
}
@media (max-width: 960px) {
  .api-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Bring your own agent (MCP) ---------- */
.mcp {
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
}
.mcp-head {
  max-width: 720px;
}
.mcp-head .more {
  margin-top: 20px;
}
.mcp-head .text-h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}

/* Instrument Serif sits lower than Geist: lift the double rule back up under the letters. */
.text-display .dbl,
.text-h1 .dbl,
.text-h2 .dbl {
  --dbl-lift: 0.16em;
  background-position:
    0 calc(100% - var(--dbl-lift)),
    0 calc(100% - var(--dbl-lift) - var(--dbl-w) - var(--dbl-gap));
}

/* ---------- Pricing tables ---------- */
.price-table-wrap {
  margin: 14px 0;
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.price-table th,
.price-table td {
  padding: 10px 14px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--rule);
}
.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td {
  border-bottom: 0;
}
.price-table thead th {
  font-size: var(--fs-meta);
  font-weight: 500;
  color: var(--ink-3);
  background: var(--surface);
}
.price-table tbody th {
  font-weight: 500;
  color: var(--ink);
}
.price-table td {
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.doc-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  color: var(--ink-3);
  font-size: var(--fs-meta);
}
