/* Bindingstone design system
 *
 * Software studio. Not editorial, not contractor-paper.
 * - Brand: rotated 4-square diamond, blue #0066FF, deep navy surface #0a1530.
 * - Type pair: Inter (brand font, present in all archived logo files)
 *   plus IBM Plex Mono for code-like accents.
 * - Hero polarity: dark by default. Sections alternate dark / light.
 * - Section openings use a small rotated blue square (mini-diamond),
 *   NOT the editorial hairline-bar + uppercase eyebrow used on the
 *   contractor client sites. Distinct visual signature.
 */

:root {
    /* Palette (brand) */
    --blue:         #0066FF;
    --blue-hi:      #338CFF;
    --blue-lo:      #0047B3;
    --navy:         #0a1530;       /* deep brand surface */
    --navy-deep:    #060d1f;
    --navy-card:    #0f1a36;
    --navy-rule:    #1c2a4a;
    --navy-rule-hi: #506595;       /* 3.15:1 on navy -- meets WCAG 1.4.11 for ghost-button borders */

    --paper:        #FAFAF7;
    --paper-card:   #FFFFFF;
    --paper-sunk:   #F1F2F4;
    --ink:          #0a1530;       /* matches navy so ink-on-paper and ink-on-navy share a tone */
    --ink-soft:     #1A2540;
    --muted:        #4A5468;
    --muted-2:      #6B7385;
    --rule:         #E2E4EA;
    --rule-strong:  #C9CCD5;

    --warm:         #B8541C;       /* CTA orange retained, complements navy */
    --warm-deep:    #8A3D12;

    --ok:           #1A8556;
    --danger:       #8B1E1E;

    --on-navy:      #DDE3F0;       /* 14.1:1 on navy */
    --on-navy-mid:  #95A3C2;       /* 7.19:1 on navy */
    --on-navy-dim:  #8696B8;       /* 5.25:1 on navy -- bumped from #5F6E91 (3.60) to clear AA on legal + footer text */

    /* Type */
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    /* Spacing */
    --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
    --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

    --wrap-w: 1200px;
    --wrap-narrow: 760px;

    --r-1: 4px; --r-2: 8px; --r-3: 14px;

    --shadow-sm: 0 1px 2px rgba(10,21,48,0.04), 0 1px 3px rgba(10,21,48,0.05);
    --shadow-md: 0 4px 12px rgba(10,21,48,0.07), 0 2px 4px rgba(10,21,48,0.04);
    --shadow-lg: 0 24px 48px rgba(10,21,48,0.08), 0 8px 16px rgba(10,21,48,0.05);
    --shadow-glow: 0 0 0 1px rgba(0,102,255,0.5), 0 12px 32px rgba(0,102,255,0.18);
}

/* Base
   ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16.5px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "cv11", "ss01", "ss03";
}
img, svg { max-width: 100%; height: auto; display: block; }
a {
    color: var(--blue);
    text-decoration-color: rgba(0,102,255,0.35);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: text-decoration-color 120ms ease, color 120ms ease;
}
a:hover { color: var(--blue-lo); text-decoration-color: var(--blue); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--sans);
    color: var(--ink);
    letter-spacing: -0.018em;
    margin: 0 0 var(--s-4) 0;
}
h1 { font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.022em; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 0.78rem; font-weight: 600; line-height: 1.3; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

p { margin: 0 0 var(--s-4) 0; }
p:last-child { margin-bottom: 0; }
.mono { font-family: var(--mono); font-feature-settings: "tnum" on, "zero" on; }
::selection { background: var(--blue); color: #FFFFFF; }

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--navy); color: var(--paper);
    padding: 8px 14px; z-index: 1000; border-radius: 0 0 var(--r-1) 0;
}
.skip-link:focus { left: 0; }

/* Layout helpers
   -------------- */
.wrap { max-width: var(--wrap-w); margin: 0 auto; padding: 0 var(--s-5); }
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding: var(--s-9) 0; }
.section--tight { padding: var(--s-8) 0; }

.section--navy {
    background: var(--navy);
    color: var(--on-navy);
    position: relative;
}
.section--navy h1, .section--navy h2, .section--navy h3 { color: #FFFFFF; }
.section--navy h4 { color: var(--on-navy-mid); }
/* :not(.btn) -- so the dark-mode link color does not override .btn--primary's
   white text. Without this, primary buttons inside a navy section render their
   text as blue-hi on a blue background and look washed out. */
.section--navy a:not(.btn) { color: var(--blue-hi); text-decoration-color: rgba(51,140,255,0.35); }
.section--navy a:not(.btn):hover { color: #FFFFFF; text-decoration-color: var(--blue-hi); }

.section--sunk { background: var(--paper-sunk); }

/* Section opener
   -------------- */
/* Replaces the editorial hairline-bar eyebrow used on the contractor sites.
   A small rotated blue square (mini-diamond) sits to the left of a lowercase
   mono label. Echoes the logo geometry; distinct from the eyebrow rhythm
   used on Amber's site. */
.sect-tag {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: var(--s-5);
    letter-spacing: 0.01em;
    text-transform: none;
}
.sect-tag::before {
    content: "";
    display: inline-block;
    width: 8px; height: 8px;
    background: var(--blue);
    transform: rotate(45deg);
    flex-shrink: 0;
}
.section--navy .sect-tag { color: var(--on-navy-mid); }

.section__head { max-width: 760px; margin-bottom: var(--s-7); }
.section__head p.lede { font-size: 1.15rem; color: var(--muted); margin: 0; max-width: 640px; }
.section--navy .section__head p.lede { color: var(--on-navy-mid); }

/* Diamond corner motif (architectural mark used in section corners) */
.corner-mark {
    width: 14px; height: 14px;
    background: var(--blue);
    transform: rotate(45deg);
    display: inline-block;
}

/* Header
   ------ */
.head {
    position: sticky; top: 0; z-index: 50;
    background: rgba(10, 21, 48, 0.94);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--navy-rule);
    color: var(--on-navy);
}
.head__inner {
    max-width: var(--wrap-w);
    margin: 0 auto;
    padding: var(--s-3) var(--s-5);
    display: flex; align-items: center; gap: var(--s-5);
    min-height: 64px;
}
.head__name {
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 12px;
    color: #FFFFFF;
}
.head__name:hover { color: #FFFFFF; }
.head__logo { width: 32px; height: 32px; flex-shrink: 0; }
.head__wordmark-group { display: flex; flex-direction: column; line-height: 1.1; }
.head__wordmark { font-weight: 700; font-size: 1rem; color: #FFFFFF; letter-spacing: -0.015em; }
.head__wordmark__sub {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--on-navy-mid);
    margin-top: 2px;
    letter-spacing: 0.01em;
}

.head__nav {
    margin-left: auto;
    display: flex; align-items: center; gap: var(--s-5);
}
.head__nav > a:not(.head__cta) {
    color: var(--on-navy);
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 500;
    padding: 8px 4px;
    position: relative;
}
.head__nav > a:not(.head__cta)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 4px;
    height: 1px; background: var(--blue); transform: scaleX(0); transform-origin: left;
    transition: transform 160ms ease;
}
.head__nav > a:not(.head__cta):hover { color: #FFFFFF; }
.head__nav > a:not(.head__cta):hover::after { transform: scaleX(1); }
.head__nav > a.active:not(.head__cta) { color: #FFFFFF; }
.head__nav > a.active:not(.head__cta)::after { transform: scaleX(1); }

.head__hamburger {
    display: none;
    margin-left: auto;
    width: 40px; height: 40px;
    background: transparent;
    border: 1px solid var(--navy-rule-hi);
    border-radius: var(--r-1);
    position: relative;
    cursor: pointer;
}
.head__hamburger__bar {
    display: block;
    position: absolute;
    left: 50%; top: 50%;
    width: 18px; height: 1.5px;
    background: var(--on-navy);
    transform: translate(-50%, -50%);
    transition: transform 180ms ease, opacity 180ms ease;
}
.head__hamburger__bar:nth-child(1) { transform: translate(-50%, calc(-50% - 6px)); }
.head__hamburger__bar:nth-child(3) { transform: translate(-50%, calc(-50% + 6px)); }
.head__hamburger[aria-expanded="true"] .head__hamburger__bar:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.head__hamburger[aria-expanded="true"] .head__hamburger__bar:nth-child(2) { opacity: 0; }
.head__hamburger[aria-expanded="true"] .head__hamburger__bar:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

/* Mobile nav drawer + scrim
   -------------------------
   The drawer is always in the DOM so its transform-based slide-in
   animation actually plays. data-state="closed"/"open" drives visibility;
   aria-hidden carries the equivalent signal for screen readers. */

.head__scrim {
    position: fixed; inset: 0;
    background: rgba(6, 13, 31, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
    z-index: 49;
}
.head__scrim[data-state="open"] {
    opacity: 1;
    pointer-events: auto;
}

.head__drawer {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(380px, 88vw);
    background: var(--navy);
    border-left: 1px solid var(--navy-rule);
    transform: translateX(100%);
    transition: transform 240ms cubic-bezier(.2,.7,.3,1);
    z-index: 51;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    color: var(--on-navy);
    visibility: hidden;
    box-shadow: -16px 0 32px rgba(0,0,0,0.25);
}
.head__drawer[data-state="open"] {
    transform: translateX(0);
    visibility: visible;
}

.head__drawer__inner {
    display: flex; flex-direction: column;
    min-height: 100%;
    padding: 0;
}

/* Drawer head: logo + close button. Visually sits in its own band. */
.head__drawer__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: var(--s-4) var(--s-5);
    border-bottom: 1px solid var(--navy-rule);
}
.head__drawer__brand {
    display: inline-flex; align-items: center; gap: 10px;
    color: #FFFFFF; text-decoration: none;
}
.head__drawer__brand__logo { width: 28px; height: 28px; flex-shrink: 0; }
.head__drawer__brand__name { font-weight: 700; font-size: 0.98rem; letter-spacing: -0.012em; }
.head__drawer__close {
    appearance: none;
    background: transparent;
    border: 1px solid var(--navy-rule-hi);
    color: var(--on-navy);
    width: 36px; height: 36px;
    border-radius: var(--r-1);
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: border-color 140ms ease, color 140ms ease;
}
.head__drawer__close:hover { border-color: var(--blue-hi); color: #FFFFFF; }
.head__drawer__close svg { width: 16px; height: 16px; }

/* Primary nav list */
.head__drawer__nav {
    display: flex; flex-direction: column;
    padding: var(--s-3) var(--s-5);
    flex-grow: 1;
}
.head__drawer__link {
    text-decoration: none;
    color: var(--on-navy);
    padding: 14px 0;
    border-bottom: 1px solid var(--navy-rule);
    font-size: 1.05rem;
    font-weight: 500;
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    transition: color 140ms ease;
}
.head__drawer__link:last-of-type { border-bottom: none; }
.head__drawer__link:hover,
.head__drawer__link.active { color: var(--blue-hi); }
.head__drawer__link__arrow { font-family: var(--mono); color: var(--on-navy-dim); }

.head__drawer__section-label {
    font-family: var(--mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--on-navy-dim);
    padding: var(--s-4) 0 var(--s-2);
}

/* CTA footer pinned to bottom */
.head__drawer__cta {
    padding: var(--s-5);
    border-top: 1px solid var(--navy-rule);
    display: flex; flex-direction: column;
    gap: var(--s-3);
    background: var(--navy-deep);
}
.head__drawer__cta .btn { width: 100%; justify-content: center; }
.head__drawer__contact {
    display: flex; flex-direction: column; gap: 4px;
    font-family: var(--mono); font-size: 0.85rem;
    color: var(--on-navy-mid);
    margin-top: var(--s-2);
}
.head__drawer__contact a { color: var(--on-navy-mid); text-decoration: none; }
.head__drawer__contact a:hover { color: var(--blue-hi); }

/* Buttons
   ------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: -0.005em;
    padding: 12px 20px;
    border-radius: var(--r-1);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    transition: background 140ms ease, color 140ms ease, border-color 140ms ease, transform 80ms ease, box-shadow 140ms ease;
}
.btn:active { transform: translateY(1px); }
.btn__arrow { font-family: var(--mono); font-weight: 500; transition: transform 140ms ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--primary {
    background: var(--blue);
    color: #FFFFFF;
    border-color: var(--blue);
}
.btn--primary:hover { background: var(--blue-lo); border-color: var(--blue-lo); color: #FFFFFF; }

.btn--warm {
    background: var(--warm);
    color: #FFFFFF;
    border-color: var(--warm);
}
.btn--warm:hover { background: var(--warm-deep); border-color: var(--warm-deep); color: #FFFFFF; }

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

.btn--ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--rule-strong);
}
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.section--navy .btn--ghost { color: var(--on-navy); border-color: var(--navy-rule-hi); }
.section--navy .btn--ghost:hover { color: #FFFFFF; border-color: var(--blue-hi); }

.btn--lg { padding: 16px 26px; font-size: 1.02rem; }
.btn--sm { padding: 8px 14px; font-size: 0.85rem; }

/* Hero (WaaS landing) -- DARK, distinct from contractor-paper heroes
   ----------------------------------------------------------------- */
.hero {
    background: var(--navy);
    color: var(--on-navy);
    padding: var(--s-10) 0 var(--s-9);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px, 60px 60px;
    pointer-events: none;
}
.hero__inner { position: relative; }

.hero__eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--on-navy-mid);
    margin-bottom: var(--s-6);
}
.hero__eyebrow__dot {
    width: 7px; height: 7px;
    background: var(--blue);
    transform: rotate(45deg);
}

.hero h1 {
    color: #FFFFFF;
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
    max-width: 980px;
    margin-bottom: var(--s-5);
    font-weight: 700;
}
.hero h1 .accent { color: var(--blue-hi); }

.hero__lede {
    font-size: clamp(1.05rem, 1.55vw, 1.2rem);
    color: var(--on-navy-mid);
    max-width: 680px;
    margin-bottom: var(--s-6);
}
.hero__lede strong { color: #FFFFFF; font-weight: 600; }

.hero__ctas { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-6); }
.hero__legal { font-size: 0.85rem; color: var(--on-navy-dim); font-family: var(--mono); }

.hero__stamp {
    margin-top: var(--s-7);
    display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6);
    align-items: center;
    padding-top: var(--s-5);
    border-top: 1px solid var(--navy-rule);
}
.hero__stamp__item {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.85rem;
    color: var(--on-navy-mid);
    font-family: var(--mono);
}
.hero__stamp__item svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--blue-hi); }

/* Cards
   ----- */
.cards {
    display: grid;
    gap: var(--s-5);
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
    background: var(--paper-card);
    border: 1px solid var(--rule);
    border-radius: var(--r-2);
    padding: var(--s-5);
    transition: border-color 140ms ease, box-shadow 140ms ease;
}
.card:hover { border-color: var(--rule-strong); box-shadow: var(--shadow-md); }
.card__k {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--blue);
    margin-bottom: var(--s-3);
    letter-spacing: 0;
}
.card h3 { font-size: 1.15rem; margin-bottom: var(--s-3); }
.card p { color: var(--muted); margin: 0; }

.section--navy .card { background: var(--navy-card); border-color: var(--navy-rule); }
.section--navy .card:hover { border-color: var(--navy-rule-hi); box-shadow: none; }
.section--navy .card__k { color: var(--blue-hi); }
.section--navy .card p { color: var(--on-navy-mid); }
.section--navy .card h3 { color: #FFFFFF; }

/* Pain list (friend-tone problem block)
   ------------------------------------- */
.painlist {
    display: grid; gap: var(--s-4);
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    margin-top: var(--s-6);
}
.painlist__item {
    display: flex; gap: 14px;
    padding: var(--s-4) 0;
    border-top: 1px solid var(--rule);
    align-items: flex-start;
}
.painlist__item::before {
    content: "";
    display: inline-block;
    width: 8px; height: 8px;
    background: var(--blue);
    margin-top: 9px;
    flex-shrink: 0;
    transform: rotate(45deg);
}
.painlist__item p { margin: 0; color: var(--ink); font-size: 1rem; }

/* Case studies
   ------------ */
.cases { display: grid; gap: var(--s-5); grid-template-columns: 1fr 1fr; margin-top: var(--s-7); }
@media (max-width: 800px) { .cases { grid-template-columns: 1fr; } }
.case {
    background: var(--paper-card);
    border: 1px solid var(--rule);
    border-radius: var(--r-3);
    padding: var(--s-6);
}
.case__client {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--mono);
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: var(--s-4);
}
.case__client__dot { width: 8px; height: 8px; background: var(--blue); transform: rotate(45deg); }
.case__h { font-size: 1.35rem; font-weight: 700; line-height: 1.25; margin-bottom: var(--s-4); letter-spacing: -0.018em; }
.case__body { color: var(--muted); margin-bottom: var(--s-5); }
.case__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); padding-top: var(--s-5); border-top: 1px solid var(--rule); }
.case__stat__n { font-family: var(--mono); font-size: 1.5rem; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.case__stat__l { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.case__link { font-family: var(--mono); font-size: 0.85rem; color: var(--blue); display: inline-block; margin-top: var(--s-4); }

/* Pricing - spec-sheet flavor, big mono numerics
   --------------------------------------------- */
.pricing { max-width: 600px; margin: var(--s-7) auto 0; }
.pricing__card {
    background: var(--navy);
    color: var(--on-navy);
    border: 1px solid var(--navy-rule);
    border-radius: var(--r-3);
    padding: var(--s-7);
}
.pricing__name {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--blue-hi);
    margin-bottom: var(--s-3);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.pricing__row { display: flex; align-items: baseline; gap: 12px; margin-bottom: var(--s-3); }
.pricing__amount {
    font-family: var(--mono);
    font-size: 4.5rem;
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1;
    color: #FFFFFF;
}
.pricing__per { font-family: var(--mono); font-size: 1rem; color: var(--on-navy-mid); }
.pricing__sub { font-family: var(--mono); font-size: 0.85rem; color: var(--on-navy-mid); margin-bottom: var(--s-6); }
.pricing__list { list-style: none; padding: 0; margin: 0 0 var(--s-6); display: flex; flex-direction: column; gap: 10px; }
.pricing__list li {
    display: flex; gap: 12px; align-items: flex-start;
    font-size: 0.98rem;
    line-height: 1.45;
    color: var(--on-navy);
}
.pricing__list li::before {
    content: "+";
    color: var(--blue-hi);
    font-family: var(--mono);
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 1px;
}
.pricing__list--out li::before { content: "\2212"; color: var(--on-navy-dim); }
.pricing__anchor {
    margin-top: var(--s-4);
    padding-top: var(--s-4);
    border-top: 1px dashed var(--navy-rule-hi);
    font-family: var(--mono);
    font-size: 0.82rem;
    color: var(--on-navy-mid);
}
.pricing__card .btn--primary { width: 100%; justify-content: center; }

/* ROI calculator
   --------------
   Pure-HTML interactive on /waas/. Inputs + computed outputs.
   Math runs in an inline script; CSS just lays it out cleanly. */
.roi {
    margin-top: var(--s-6);
    border: 1px solid var(--rule);
    border-radius: var(--r-3);
    background: var(--paper-card);
    overflow: hidden;
}
.roi__inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--paper-sunk);
    border-bottom: 1px solid var(--rule);
}
@media (max-width: 560px) { .roi__inputs { grid-template-columns: 1fr; } }
.roi__input {
    display: flex; flex-direction: column; gap: 6px;
    padding: var(--s-5);
    border-right: 1px solid var(--rule);
}
.roi__inputs > .roi__input:last-child { border-right: none; }
@media (max-width: 560px) {
    .roi__input { border-right: none; border-bottom: 1px solid var(--rule); }
    .roi__inputs > .roi__input:last-child { border-bottom: none; }
}
.roi__input__k {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.roi__input__wrap {
    display: inline-flex; align-items: center;
    background: var(--paper-card);
    border: 1px solid var(--rule-strong);
    border-radius: var(--r-1);
    transition: border-color 120ms ease, box-shadow 120ms ease;
}
.roi__input__wrap:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,102,255,0.12); }
.roi__input__prefix, .roi__input__suffix {
    font-family: var(--mono);
    color: var(--muted);
    padding: 0 10px;
    font-size: 1.05rem;
}
.roi__input__wrap input {
    font-family: var(--mono);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--ink);
    padding: 12px 6px;
    background: transparent;
    border: none;
    width: 100%;
    min-width: 0;
    appearance: textfield;
    -moz-appearance: textfield;
    outline: none;
}
.roi__input__wrap input::-webkit-outer-spin-button,
.roi__input__wrap input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.roi__results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}
@media (max-width: 720px) { .roi__results { grid-template-columns: 1fr; } }
.roi__result {
    padding: var(--s-6) var(--s-5);
    border-right: 1px solid var(--rule);
    text-align: center;
}
.roi__results > .roi__result:last-child { border-right: none; }
@media (max-width: 720px) {
    .roi__result { border-right: none; border-bottom: 1px solid var(--rule); }
    .roi__results > .roi__result:last-child { border-bottom: none; }
}
.roi__result__n {
    font-family: var(--mono);
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--blue);
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 8px;
}
.roi__result__l {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.45;
}
.roi__note {
    padding: var(--s-4) var(--s-5);
    background: var(--paper-sunk);
    border-top: 1px solid var(--rule);
    font-family: var(--mono);
    font-size: 0.82rem;
    color: var(--muted);
    margin: 0;
}

/* Compare table - terminal-ish, with mono labels
   --------------------------------------------- */
.compare {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    border: 1px solid var(--rule);
    border-radius: var(--r-2);
    overflow: hidden;
    margin-top: var(--s-6);
    background: var(--paper-card);
}
.compare__h {
    padding: var(--s-4) var(--s-5);
    border-bottom: 1px solid var(--rule);
    background: var(--paper-sunk);
    font-family: var(--mono);
    font-size: 0.82rem;
    color: var(--muted);
}
.compare__h--us {
    background: var(--navy);
    color: #FFFFFF;
}
.compare__row { display: contents; }
.compare__cell { padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--rule); font-size: 0.95rem; }
.compare__cell--us { background: rgba(0,102,255,0.05); font-weight: 500; }
.compare__cell--lbl { font-family: var(--mono); color: var(--muted); font-size: 0.85rem; }
.compare__row:last-of-type .compare__cell { border-bottom: none; }
@media (max-width: 720px) { .compare { grid-template-columns: 1fr; } .compare__cell--lbl { background: var(--paper-sunk); } }

/* Matrix illustration
   ------------------ */
.matrix {
    margin-top: var(--s-7);
    border: 1px solid var(--navy-rule);
    background: var(--navy-card);
    border-radius: var(--r-2);
    overflow: hidden;
}
.matrix__head {
    padding: var(--s-4) var(--s-5);
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid var(--navy-rule);
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--on-navy-mid);
}
.matrix__body {
    display: grid;
    grid-template-columns: 160px repeat(5, 1fr);
    font-family: var(--mono);
    font-size: 0.82rem;
}
.matrix__cell {
    padding: 10px 14px;
    border-right: 1px solid var(--navy-rule);
    border-bottom: 1px solid var(--navy-rule);
    color: var(--on-navy-mid);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.matrix__cell:last-child { border-right: none; }
.matrix__cell--svc { color: #FFFFFF; font-weight: 500; background: rgba(0,0,0,0.2); }
.matrix__cell--city { color: var(--blue-hi); background: rgba(0,102,255,0.08); font-weight: 500; }
.matrix__cell--ok { color: var(--blue-hi); text-align: center; }
.matrix__body > .matrix__cell:nth-last-child(-n+6) { border-bottom: none; }
@media (max-width: 720px) {
    .matrix__body { grid-template-columns: 110px repeat(3, 1fr); font-size: 0.75rem; }
    .matrix__body > .matrix__cell:nth-last-child(-n+4) { border-bottom: none; }
    .matrix__body > .matrix__cell:nth-last-child(-n+6):not(:nth-last-child(-n+4)) { border-bottom: 1px solid var(--navy-rule); }
}

/* FAQ
   --- */
.faq { display: flex; flex-direction: column; gap: 0; margin-top: var(--s-6); }
.faq__item { border-top: 1px solid var(--rule); padding: var(--s-5) 0; }
.faq__item:last-child { border-bottom: 1px solid var(--rule); }
.faq__q { font-size: 1.1rem; font-weight: 600; margin: 0 0 var(--s-3); letter-spacing: -0.012em; }
.faq__a { color: var(--muted); margin: 0; }

/* CTA strip
   --------- */
.cta-strip {
    margin-top: var(--s-9);
    padding: var(--s-8) var(--s-7);
    background: var(--navy);
    color: #FFFFFF;
    border-radius: var(--r-3);
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--s-7); flex-wrap: wrap;
}
.cta-strip h2 { color: #FFFFFF; margin: 0 0 8px; max-width: 540px; }
.cta-strip p { color: var(--on-navy-mid); margin: 0; max-width: 540px; }

/* Trust band - dense, mono, anchored
   ---------------------------------- */
.trust {
    padding: var(--s-7) 0;
    background: var(--paper-sunk);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}
.trust__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--s-5) var(--s-7);
}
.trust__item { display: flex; align-items: flex-start; gap: 12px; }
.trust__icon {
    width: 32px; height: 32px;
    background: var(--paper-card);
    border: 1px solid var(--rule);
    border-radius: var(--r-1);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--blue);
    flex-shrink: 0;
}
.trust__icon svg { width: 16px; height: 16px; }
.trust__k { font-weight: 600; font-size: 0.95rem; margin: 0 0 2px; color: var(--ink); }
.trust__v { font-size: 0.85rem; color: var(--muted); margin: 0; font-family: var(--mono); }

/* Lead form
   --------- */
.leadform { display: flex; flex-direction: column; gap: var(--s-4); }
.leadform__row { display: flex; flex-direction: column; gap: var(--s-2); }
.leadform__row--split { flex-direction: row; gap: var(--s-4); }
.leadform__row--split > * { flex: 1; }
@media (max-width: 600px) { .leadform__row--split { flex-direction: column; } }
.leadform__label { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; }
.leadform__label__k { font-weight: 500; color: var(--ink); }
.leadform__label__hint { color: var(--muted); font-weight: 400; font-size: 0.85rem; margin-left: 4px; }
.leadform__input {
    font-family: var(--sans);
    font-size: 1rem;
    padding: 11px 13px;
    background: var(--paper-card);
    border: 1px solid var(--rule-strong);
    border-radius: var(--r-1);
    color: var(--ink);
    transition: border-color 120ms ease, box-shadow 120ms ease;
}
.leadform__input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,102,255,0.16); }
.leadform__input::placeholder { color: var(--muted-2); }
textarea.leadform__input { min-height: 96px; resize: vertical; font-family: var(--sans); }
.leadform__honeypot { position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden; }
.leadform__submit { margin-top: var(--s-3); display: flex; flex-direction: column; gap: var(--s-3); }
.leadform__legal { font-size: 0.85rem; color: var(--muted); margin: 0; font-family: var(--mono); }

/* Home hero - navy, distinct from contractor-paper heroes
   ------------------------------------------------------ */
.home-hero {
    background: var(--navy);
    color: var(--on-navy);
    padding: var(--s-10) 0 var(--s-9);
    position: relative;
    overflow: hidden;
}
.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px, 60px 60px;
    pointer-events: none;
}
.home-hero .wrap { position: relative; }
.home-hero h1 { color: #FFFFFF; font-size: clamp(2.6rem, 5.5vw, 4.4rem); max-width: 920px; margin-bottom: var(--s-5); }
.home-hero h1 .accent { color: var(--blue-hi); }
.home-hero p.lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--on-navy-mid); max-width: 620px; margin-bottom: var(--s-6); }
.home-hero .hero__ctas { margin-bottom: 0; }

.divisions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); margin-top: var(--s-7); }
@media (max-width: 720px) { .divisions { grid-template-columns: 1fr; } }
.division {
    background: var(--paper-card);
    border: 1px solid var(--rule);
    border-radius: var(--r-3);
    padding: var(--s-6);
    text-decoration: none;
    color: var(--ink);
    transition: border-color 140ms ease, box-shadow 140ms ease;
}
.division:hover { border-color: var(--rule-strong); box-shadow: var(--shadow-md); color: var(--ink); }
.division__k { font-family: var(--mono); font-size: 0.78rem; color: var(--blue); margin-bottom: var(--s-3); }
.division h2 { font-size: 1.5rem; margin-bottom: var(--s-3); }
.division p { color: var(--muted); margin: 0 0 var(--s-4); }
.division__arrow { font-family: var(--mono); color: var(--blue); font-size: 0.92rem; }

/* Footer
   ------ */
.foot {
    background: var(--navy-deep);
    color: var(--on-navy-mid);
    padding: var(--s-9) 0 var(--s-5);
    margin-top: var(--s-10);
    border-top: 1px solid var(--navy-rule);
}
.foot__inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: var(--s-7);
}
@media (max-width: 840px) { .foot__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot__inner { grid-template-columns: 1fr; } }
.foot__logo { width: 190px; height: auto; margin-bottom: var(--s-4); }
.foot__addr { color: var(--on-navy-mid); font-size: 0.9rem; margin: 0 0 var(--s-4); line-height: 1.6; }
.foot__stamp {
    display: flex; flex-direction: column; gap: 4px;
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--on-navy-dim);
}
.foot__col h4 { color: #FFFFFF; margin-bottom: var(--s-4); font-size: 0.78rem; }
.foot__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.foot__col a { color: var(--on-navy-mid); text-decoration: none; font-size: 0.9rem; }
.foot__col a:hover { color: var(--blue-hi); }
.foot__legal {
    margin-top: var(--s-8);
    padding-top: var(--s-5);
    border-top: 1px solid var(--navy-rule);
    display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap;
    font-family: var(--mono);
    font-size: 0.82rem;
    color: var(--on-navy-dim);
}

/* Long-form prose
   --------------- */
.prose { max-width: var(--wrap-narrow); }
.prose h1 { font-size: clamp(2rem, 3.5vw, 2.8rem); margin-bottom: var(--s-3); }
.prose h2 { font-size: 1.4rem; margin-top: var(--s-7); margin-bottom: var(--s-3); }
.prose h3 { font-size: 1.1rem; margin-top: var(--s-5); margin-bottom: var(--s-2); }
.prose p, .prose ul, .prose ol { color: var(--ink); line-height: 1.65; margin-bottom: var(--s-4); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: 6px; }
.prose__meta { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); margin-bottom: var(--s-6); }

/* Calendly embed
   -------------- */
.calendly { min-height: 720px; background: var(--paper-card); border: 1px solid var(--rule); border-radius: var(--r-2); }

/* Responsive nav switch
   --------------------- */
@media (max-width: 820px) {
    .head__nav { display: none; }
    .head__hamburger { display: inline-flex; }
}
@media (min-width: 821px) {
    .head__drawer { display: none; }
    .head__scrim { display: none; }
}

/* Reduced motion
   -------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
