/* ===========================================================================
   NeutralFeed — site stylesheet
   ===========================================================================

   Art direction, stated once so it does not get eroded:

   THE UI IS PAPER AND GRAPHITE. The only saturated colour anywhere on the site
   comes from the photographs, plus a single 6px signal-green dot that means the
   feed is live. Buttons are ink on paper. Rules are hairlines. If something
   needs emphasis it gets weight, size or space — not colour.

   Two reasons. It suits a product whose entire pitch is that nothing here is
   exciting; and it keeps the site clear of the accent-gradient-on-white look
   that every other B2B page has. Note also that teal appears nowhere: that is
   Aqfer's colour, and the tag on this page is meant to read as a third party.

   Type is Instrument Sans over Martian Mono. Martian is unusually wide, so it
   is set at ~0.86 of the nominal size with negative tracking wherever it runs
   inline; --mono-fs carries that factor.
   =========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=Martian+Mono:wght@300;400;500;600&display=swap');

:root {
    --paper: #f4f3f0;
    --paper-2: #fbfaf8;
    --ink: #16181a;
    --g70: #3d4145;
    --g50: #6b7075;
    --g30: #a9aeb2;
    --g15: #d5d7d4;
    --g08: #e6e5e1;
    --live: #3f7d5a;

    --sans: 'Instrument Sans', system-ui, sans-serif;
    --mono: 'Martian Mono', ui-monospace, monospace;
    --mono-fs: 0.86;

    --wrap: 1180px;
    --gut: 24px;
    --mast-h: 61px;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--mast-h) + 24px);
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}
a {
    color: inherit;
}
h1,
h2,
h3,
h4 {
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.08;
}
p {
    margin: 0 0 1em;
}
p:last-child {
    margin-bottom: 0;
}
ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
hr {
    border: 0;
    border-top: 1px solid var(--g15);
    margin: 0;
}

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gut);
}
.narrow {
    max-width: 760px;
}

.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: var(--paper);
    padding: 10px 16px;
    z-index: 100;
}
.skip:focus {
    left: 0;
}

:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

/* ---------------------------------------------------------------- type */

.mono {
    font-family: var(--mono);
    font-size: calc(1em * var(--mono-fs));
    letter-spacing: -0.02em;
}

.kicker {
    font-family: var(--mono);
    font-size: calc(11px * var(--mono-fs) * 1.16);
    font-weight: 500;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--g50);
    margin: 0 0 14px;
}

.lede {
    font-size: 18px;
    line-height: 1.55;
    color: var(--g70);
}

.small {
    font-size: 14px;
    color: var(--g50);
}

/* ---------------------------------------------------------------- masthead */

.mast {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(244, 243, 240, 0.93);
    backdrop-filter: saturate(150%) blur(9px);
    border-bottom: 1px solid var(--g15);
}
.mast-in {
    display: flex;
    align-items: center;
    gap: 26px;
    height: var(--mast-h);
}

.brand {
    display: flex;
    align-items: baseline;
    gap: 1px;
    text-decoration: none;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.035em;
    text-transform: uppercase;
    white-space: nowrap;
}
.brand i {
    font-style: normal;
    color: var(--g30);
}
.brand::before {
    /* The mark: a hairline square with a filled quadrant. Reads as an
       instrument glyph rather than a logo, and needs no image request. */
    content: '';
    width: 13px;
    height: 13px;
    margin-right: 9px;
    align-self: center;
    border: 1.5px solid var(--ink);
    background: linear-gradient(135deg, var(--ink) 0 50%, transparent 50% 100%);
}

.nav {
    display: flex;
    gap: 21px;
    margin-left: 8px;
}
.nav a {
    text-decoration: none;
    font-size: 14.5px;
    color: var(--g70);
    padding: 4px 0;
    border-bottom: 1px solid transparent;
}
.nav a:hover {
    color: var(--ink);
}
.nav a[aria-current] {
    color: var(--ink);
    border-bottom-color: var(--ink);
}

.mast-act {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}
.mast-act .signin {
    font-size: 14.5px;
    text-decoration: none;
    color: var(--g70);
}
.mast-act .signin:hover {
    color: var(--ink);
}

.navtoggle {
    display: none;
    margin-left: auto;
    background: none;
    border: 1px solid var(--g15);
    font: inherit;
    font-size: 13px;
    padding: 6px 11px;
    cursor: pointer;
    color: var(--ink);
}

/* ---------------------------------------------------------------- buttons */

.btn {
    display: inline-block;
    background: var(--ink);
    color: var(--paper);
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 500;
    padding: 11px 20px;
    border: 1px solid var(--ink);
    transition: background 0.15s, color 0.15s;
}
.btn:hover {
    background: transparent;
    color: var(--ink);
}
.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--g30);
}
.btn-ghost:hover {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}
.btn-sm {
    padding: 8px 15px;
    font-size: 13.5px;
}
.btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ---------------------------------------------------------------- bands */

.band {
    padding: 76px 0;
    border-top: 1px solid var(--g15);
}
.band-tight {
    padding: 52px 0;
}
.band-head {
    max-width: 700px;
    margin-bottom: 44px;
}
.band-head h2 {
    font-size: 36px;
    margin-bottom: 14px;
}
.band-head .lede {
    margin: 0;
}

/* An index number set in the left margin, like a technical manual. Collapses
   into the flow below 1080px rather than crowding the heading. */
.band-idx {
    position: relative;
}
.band-idx > .wrap > .band-head::before {
    content: attr(data-idx);
    position: absolute;
    margin-left: -62px;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--g30);
    letter-spacing: 0;
}

/* ---------------------------------------------------------------- hero */

.hero {
    padding: 58px 0 0;
}
.hero h1 {
    font-size: clamp(38px, 4.9vw, 60px);
    letter-spacing: -0.038em;
    max-width: 17ch;
    margin-bottom: 22px;
}
.hero .lede {
    max-width: 62ch;
    font-size: 19px;
    margin-bottom: 28px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 46px;
    align-items: start;
    margin-top: 54px;
}

/* Grid and flex children default to min-width:auto, so a wide code block or a
   long unbroken string forces its track wider than the viewport rather than
   scrolling inside its own overflow box. This is the single most common cause
   of a page that scrolls sideways on a phone. */
.hero-grid > *,
.docs > *,
.surface > *,
.chan-full > *,
.grid > *,
.plan,
.doc section,
.codeblock {
    min-width: 0;
}

.pagehead {
    padding: 66px 0 0;
}
.pagehead h1 {
    font-size: clamp(34px, 4.4vw, 52px);
    max-width: 19ch;
    margin-bottom: 18px;
}
.pagehead .lede {
    max-width: 64ch;
}

/* ---------------------------------------------------------------- stats */

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 46px;
    border-top: 1px solid var(--g15);
    padding: 22px 0 0;
    margin-top: 54px;
}
.stat b {
    display: block;
    font-family: var(--mono);
    font-size: 25px;
    font-weight: 500;
    letter-spacing: -0.05em;
    line-height: 1.1;
}
.stat span {
    font-size: 13px;
    color: var(--g50);
}

/* ---------------------------------------------------------------- console */

.console {
    border: 1px solid var(--ink);
    background: var(--paper-2);
}
.console-bar {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px;
    border-bottom: 1px solid var(--g15);
    font-family: var(--mono);
    font-size: calc(11px * var(--mono-fs) * 1.14);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--g50);
}
.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--live);
    flex: none;
}
@media (prefers-reduced-motion: no-preference) {
    .dot {
        animation: pulse 3.4s ease-in-out infinite;
    }
}
@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.32;
    }
}
.console-id {
    margin-left: auto;
    font-weight: 400;
    color: var(--g30);
    text-transform: none;
    letter-spacing: 0;
}

.console-view {
    padding: 22px 18px 16px;
    min-height: 232px;
}
.console-item {
    display: none;
}
.console-item.is-on {
    display: block;
}
@media (prefers-reduced-motion: no-preference) {
    .console-item.is-on {
        animation: fadein 0.5s ease both;
    }
}
@keyframes fadein {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
}
.console-item h3 {
    font-size: 22px;
    line-height: 1.2;
    margin-bottom: 10px;
}
.console-item p {
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--g70);
    margin-bottom: 0;
}

.console-raw {
    display: none;
    margin: 0;
    padding: 18px;
    background: var(--ink);
    color: #e8e7e3;
    font-family: var(--mono);
    font-size: calc(12px * var(--mono-fs));
    line-height: 1.75;
    overflow-x: auto;
    min-height: 232px;
}
.console.is-raw .console-view {
    display: none;
}
.console.is-raw .console-raw.is-on {
    display: block;
}

.console-foot {
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid var(--g15);
    padding: 10px 14px;
}
.console-toggle {
    margin-left: auto;
    background: none;
    border: 1px solid var(--g15);
    font-family: var(--mono);
    font-size: calc(11px * var(--mono-fs) * 1.1);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--g50);
    padding: 5px 10px;
    cursor: pointer;
}
.console-toggle:hover {
    color: var(--ink);
    border-color: var(--g30);
}

/* the calibration readout — the site's signature component */
.cal {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 17px;
    font-family: var(--mono);
    font-size: calc(11.5px * var(--mono-fs) * 1.06);
    color: var(--g50);
    letter-spacing: -0.02em;
}
.cal b {
    font-weight: 500;
    color: var(--ink);
}
.console-view .cal {
    border-top: 1px solid var(--g15);
    margin-top: 16px;
    padding-top: 12px;
}

/* ---------------------------------------------------------------- code */

.code {
    margin: 0;
    padding: 18px 20px;
    background: var(--ink);
    color: #e8e7e3;
    font-family: var(--mono);
    font-size: calc(12px * var(--mono-fs));
    line-height: 1.8;
    overflow-x: auto;
}
.code .k {
    color: #9fb4c9;
}
.code .s {
    color: #c9c08e;
}
.code .n {
    color: #a8c69a;
}
.code .c {
    color: #767b7f;
}
.codeblock {
    position: relative;
}
.codeblock .label {
    font-family: var(--mono);
    font-size: calc(11px * var(--mono-fs) * 1.1);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--g50);
    margin-bottom: 9px;
}
.copy {
    position: absolute;
    top: 9px;
    right: 9px;
    background: transparent;
    border: 1px solid #3a3e42;
    color: #9aa0a5;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 8px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s;
}
.codeblock:hover .copy,
.copy:focus {
    opacity: 1;
}
.copy:hover {
    color: #e8e7e3;
    border-color: #6b7075;
}

/* ---------------------------------------------------------------- grids */

.grid {
    display: grid;
    gap: 1px;
    background: var(--g15);
    border: 1px solid var(--g15);
}
.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}
.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}
.grid > * {
    background: var(--paper);
    padding: 28px 26px 30px;
}

.numbered h3 {
    font-size: 20px;
    margin-bottom: 10px;
}
.numbered p {
    font-size: 14.5px;
    color: var(--g70);
    margin: 0;
}
.numbered .n {
    display: block;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--g30);
    margin-bottom: 16px;
    letter-spacing: 0;
}

/* ---------------------------------------------------------------- channels */

.chans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px 26px;
}
.chan {
    text-decoration: none;
    display: block;
}
.chan figure {
    margin: 0 0 14px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--g08);
}
.chan img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.chan:hover img {
    transform: scale(1.035);
}
.chan-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 7px;
}
.chan-head h3 {
    font-size: 20px;
}
.chan-head .count {
    margin-left: auto;
    font-family: var(--mono);
    font-size: calc(11px * var(--mono-fs) * 1.1);
    color: var(--g30);
    letter-spacing: -0.02em;
}
.chan p {
    font-size: 14px;
    color: var(--g70);
    margin: 0;
}

/* channel detail sections on channels.html */
.chan-full {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 48px;
    align-items: start;
    padding: 62px 0;
    border-top: 1px solid var(--g15);
    scroll-margin-top: calc(var(--mast-h) + 20px);
}
.chan-full figure.shot {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--g08);
}
.chan-full figure.shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.chan-full h2 {
    font-size: 32px;
    margin-bottom: 14px;
}
.chan-full .meta {
    font-family: var(--mono);
    font-size: calc(11.5px * var(--mono-fs) * 1.06);
    color: var(--g50);
    letter-spacing: -0.02em;
    margin: 18px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--g15);
}
.examples {
    display: grid;
    gap: 1px;
    background: var(--g15);
    border: 1px solid var(--g15);
}
.example {
    background: var(--paper-2);
    padding: 19px 20px 17px;
}
.example h4 {
    font-size: 16.5px;
    line-height: 1.28;
    margin-bottom: 7px;
}
.example p {
    font-size: 13.5px;
    color: var(--g70);
    margin-bottom: 12px;
    line-height: 1.5;
}

/* ---------------------------------------------------------------- figures */

figure.shot {
    margin: 0;
}
figure.shot img {
    width: 100%;
}
figcaption,
.credit {
    font-family: var(--mono);
    font-size: calc(10.5px * var(--mono-fs) * 1.1);
    letter-spacing: 0;
    color: var(--g30);
    margin-top: 8px;
}
.credit a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--g15);
}
.credit a:hover {
    color: var(--g50);
}

.bleed {
    margin-top: 56px;
    max-height: 460px;
    overflow: hidden;
}
.bleed img {
    width: 100%;
    height: 460px;
    object-fit: cover;
}
/* The credit under a full-bleed image is followed immediately by a section
   whose border-top is a hairline rule. Without this gap the two sit on the same
   line and the caption reads as if it were struck through. */
.bleed + .wrap > .credit {
    margin: 9px 0 20px;
}

/* ---------------------------------------------------------------- surfaces (tour) */

.surface {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 62px 0;
    border-top: 1px solid var(--g15);
}
.surface:nth-child(even) figure {
    order: 2;
}
.surface figure.shot {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--g08);
}
.surface figure.shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.surface figure.shot .credit {
    margin-top: 8px;
}
.surface h2 {
    font-size: 30px;
    margin-bottom: 14px;
    max-width: 17ch;
}
.surface p {
    color: var(--g70);
    max-width: 46ch;
}

/* ---------------------------------------------------------------- tables */

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
}
.table th {
    text-align: left;
    font-weight: 500;
    font-family: var(--mono);
    font-size: calc(11px * var(--mono-fs) * 1.12);
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--g50);
    padding: 0 14px 10px 0;
    border-bottom: 1px solid var(--g15);
}
.table td {
    padding: 13px 14px 13px 0;
    border-bottom: 1px solid var(--g08);
    vertical-align: top;
    color: var(--g70);
}
.table td:first-child {
    color: var(--ink);
    white-space: nowrap;
}
.table code,
.icode {
    font-family: var(--mono);
    font-size: calc(12.5px * var(--mono-fs));
    letter-spacing: -0.03em;
    background: var(--g08);
    padding: 1px 5px;
    color: var(--ink);
}

/* ---------------------------------------------------------------- pricing */

.plans {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--g15);
    border: 1px solid var(--g15);
}
.plan {
    background: var(--paper);
    padding: 30px 24px 28px;
    display: flex;
    flex-direction: column;
}
.plan.is-featured {
    background: var(--paper-2);
    box-shadow: inset 0 3px 0 var(--ink);
}
.plan h3 {
    font-size: 19px;
    margin-bottom: 12px;
}
.plan .price {
    font-family: var(--mono);
    font-size: 27px;
    font-weight: 500;
    letter-spacing: -0.06em;
    line-height: 1.1;
}
.plan .unit {
    font-size: 12.5px;
    color: var(--g50);
    margin-bottom: 16px;
}
.plan .summary {
    font-size: 13.5px;
    color: var(--g70);
    margin-bottom: 20px;
}
.plan ul {
    margin-bottom: 24px;
}
.plan li {
    font-size: 13.5px;
    color: var(--g70);
    padding: 6px 0 6px 17px;
    position: relative;
}
.plan li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 13px;
    width: 7px;
    height: 1px;
    background: var(--g30);
}
.plan .btn {
    margin-top: auto;
    text-align: center;
}

/* ---------------------------------------------------------------- docs */

.docs {
    display: grid;
    grid-template-columns: 196px minmax(0, 1fr);
    gap: 52px;
    align-items: start;
    padding: 46px 0 82px;
}
.docnav {
    position: sticky;
    top: calc(var(--mast-h) + 26px);
}
.docnav p {
    font-family: var(--mono);
    font-size: calc(10.5px * var(--mono-fs) * 1.12);
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--g30);
    margin: 0 0 10px;
}
.docnav a {
    display: block;
    font-size: 14px;
    color: var(--g50);
    text-decoration: none;
    padding: 5px 0 5px 12px;
    border-left: 1px solid var(--g15);
}
.docnav a:hover {
    color: var(--ink);
}
.docnav a.is-on {
    color: var(--ink);
    border-left-color: var(--ink);
}

.doc section {
    padding-bottom: 46px;
    scroll-margin-top: calc(var(--mast-h) + 20px);
}
.doc h2 {
    font-size: 26px;
    margin-bottom: 14px;
}
.doc h3 {
    font-size: 17px;
    margin: 30px 0 10px;
}
.doc p {
    color: var(--g70);
    max-width: 66ch;
}

/* ---------------------------------------------------------------- prose */

.prose h2 {
    font-size: 27px;
    margin: 44px 0 14px;
    scroll-margin-top: calc(var(--mast-h) + 20px);
}
.prose h2:first-child {
    margin-top: 0;
}
.prose p {
    color: var(--g70);
}
.prose ul {
    margin: 0 0 1em;
}
.prose li {
    color: var(--g70);
    padding: 5px 0 5px 18px;
    position: relative;
}
.prose li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15px;
    width: 8px;
    height: 1px;
    background: var(--g30);
}

.pull {
    border-left: 2px solid var(--ink);
    padding: 4px 0 4px 22px;
    margin: 30px 0;
    font-size: 20px;
    line-height: 1.4;
    letter-spacing: -0.02em;
    max-width: 34ch;
}

/* ---------------------------------------------------------------- cta */

.cta {
    border-top: 1px solid var(--g15);
    padding: 72px 0;
}
.cta-in {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}
.cta h2 {
    font-size: 32px;
    max-width: 18ch;
    flex: 1 1 340px;
}
.cta p {
    color: var(--g70);
    max-width: 42ch;
    flex: 1 1 300px;
    margin: 0;
}

/* ---------------------------------------------------------------- footer */

.foot {
    border-top: 1px solid var(--ink);
    padding: 56px 0 40px;
}
.foot-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 34px;
}
.foot h4 {
    font-family: var(--mono);
    font-size: calc(10.5px * var(--mono-fs) * 1.14);
    font-weight: 500;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--g30);
    margin-bottom: 13px;
}
.foot li a {
    display: block;
    font-size: 14px;
    color: var(--g70);
    text-decoration: none;
    padding: 4px 0;
}
.foot li a:hover {
    color: var(--ink);
}
.foot-brand p {
    font-size: 13px;
    color: var(--g50);
    margin: 14px 0 0;
    max-width: 34ch;
}
.foot-legal {
    border-top: 1px solid var(--g15);
    margin-top: 44px;
    padding-top: 20px;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: var(--g30);
}
.foot-legal p {
    margin: 0;
    max-width: 78ch;
}

/* ---------------------------------------------------------------- 404 */

.notfound {
    padding: 110px 0 130px;
}
.notfound h1 {
    font-size: clamp(38px, 5vw, 58px);
    max-width: 14ch;
    margin-bottom: 20px;
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1080px) {
    .band-idx > .wrap > .band-head::before {
        position: static;
        display: block;
        margin: 0 0 8px;
    }
}

@media (max-width: 960px) {
    .nav,
    .mast-act {
        display: none;
    }
    .navtoggle {
        display: block;
    }
    .mast.is-open .nav {
        display: flex;
        position: absolute;
        top: var(--mast-h);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--g15);
        padding: 8px var(--gut) 18px;
        margin: 0;
    }
    .mast.is-open .nav a {
        padding: 11px 0;
        font-size: 16px;
        border-bottom: 1px solid var(--g08);
    }

    .hero-grid,
    .surface,
    .chan-full,
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .surface:nth-child(even) figure {
        order: 0;
    }
    .grid-3,
    .chans {
        grid-template-columns: repeat(2, 1fr);
    }
    .plans {
        grid-template-columns: repeat(2, 1fr);
    }
    .docs {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .docnav {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 4px 16px;
        border-bottom: 1px solid var(--g15);
        padding-bottom: 14px;
    }
    .docnav p {
        width: 100%;
    }
    .docnav a {
        border-left: 0;
        padding: 3px 0;
    }
    .docnav a.is-on {
        border-left: 0;
        text-decoration: underline;
    }
    .foot-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 15.5px;
    }
    .band {
        padding: 52px 0;
    }
    .hero {
        padding: 46px 0 0;
    }
    .pagehead {
        padding: 42px 0 0;
    }
    .grid-3,
    .chans,
    .plans {
        grid-template-columns: 1fr;
    }
    .stats {
        gap: 26px 34px;
    }
    .bleed img {
        height: 260px;
    }
    .foot-grid {
        grid-template-columns: 1fr;
    }
    .cta {
        padding: 52px 0;
    }
}

@media print {
    .mast,
    .cta,
    .console-toggle,
    .copy {
        display: none;
    }
}
