/* ==========================================================================
   MOUNTPILOT  —  Design System
   Brand:  Precision-piloted TV installation
   Voice:  Confident, technical, calm-under-pressure
   Visual: HUD/instrument aesthetic — crosshairs, readouts, registration marks
   ========================================================================== */

/* -----  1. TOKENS  ------------------------------------------------------- */
:root {
    /* Palette — graphite / bone / acid lime / steel (no blue, no orange) */
    --graphite:     #1a1c1e;
    --graphite-2:   #25282b;
    --graphite-3:   #2f3236;
    --steel:        #6f7378;
    --steel-2:      #9aa0a4;
    --bone:         #e8e6e1;
    --bone-2:       #d8d4cd;
    --bone-warm:    #f1eee8;
    --paper:        #f6f4ef;
    --acid:         #c4d82e;          /* Lime-acid accent (NOT blue, NOT orange) */
    --acid-deep:    #8fa01c;
    --acid-pale:    #e7ec9e;
    --line:         rgba(26,28,30,0.12);
    --line-dim:     rgba(26,28,30,0.06);
    --line-on-dark: rgba(232,230,225,0.16);

    /* Type — geometric sans + tech sans + tech mono */
    --font-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body:    "IBM Plex Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono:    "IBM Plex Mono", "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

    --t-mega:    clamp(3.5rem, 9vw + 1rem, 9rem);
    --t-display: clamp(2.5rem, 6vw + 1rem, 5.5rem);
    --t-h1:      clamp(2rem, 4.5vw + 0.5rem, 3.75rem);
    --t-h2:      clamp(1.5rem, 2.5vw + 0.5rem, 2.5rem);
    --t-h3:      clamp(1.25rem, 1.5vw + 0.5rem, 1.625rem);
    --t-h4:      clamp(1.0625rem, 0.5vw + 0.85rem, 1.25rem);
    --t-body:    1rem;
    --t-small:   0.875rem;
    --t-micro:   0.6875rem;

    /* Spacing scale */
    --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;

    --max-w: 1320px;
    --gutter: 28px;

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --dur: 240ms;
}

/* -----  2. RESET + BASE  ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body {
    background: var(--bone);
    color: var(--graphite);
    font-family: var(--font-body);
    font-size: var(--t-body);
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--acid); color: var(--graphite); }

/* -----  3. TYPOGRAPHY  --------------------------------------------------- */
.mega {
    font-family: var(--font-display);
    font-size: var(--t-mega);
    font-weight: 500;
    line-height: 0.86;
    letter-spacing: -0.045em;
}
.display {
    font-family: var(--font-display);
    font-size: var(--t-display);
    font-weight: 500;
    line-height: 0.92;
    letter-spacing: -0.035em;
}
h1, .h1 { font-family: var(--font-display); font-size: var(--t-h1); font-weight: 500; line-height: 0.98; letter-spacing: -0.025em; }
h2, .h2 { font-family: var(--font-display); font-size: var(--t-h2); font-weight: 500; line-height: 1.05; letter-spacing: -0.02em; }
h3, .h3 { font-family: var(--font-display); font-size: var(--t-h3); font-weight: 500; line-height: 1.15; letter-spacing: -0.015em; }
h4, .h4 { font-family: var(--font-body); font-size: var(--t-h4); font-weight: 600; line-height: 1.3; letter-spacing: -0.005em; }

.readout {
    font-family: var(--font-mono);
    font-size: var(--t-micro);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--steel);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.readout::before {
    content: "▸";
    color: var(--acid-deep);
}
.readout--strong { color: var(--graphite); }
.readout--strong::before { color: var(--acid-deep); }

.coord {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    color: var(--steel);
}

.lede {
    font-size: 1.125rem;
    line-height: 1.55;
    color: var(--graphite-2);
    font-weight: 400;
}
.lede-lg { font-size: 1.25rem; line-height: 1.5; color: var(--graphite); }

.small { font-size: var(--t-small); }
.micro { font-size: var(--t-micro); letter-spacing: 0.06em; }
.mono  { font-family: var(--font-mono); }
.muted { color: var(--steel); }
.accent { color: var(--acid-deep); }

/* -----  4. LAYOUT  ------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.section {
    padding-top: var(--s-9);
    padding-bottom: var(--s-9);
    position: relative;
}
@media (max-width: 768px) {
    .section { padding-top: var(--s-8); padding-bottom: var(--s-8); }
}
.section--tight   { padding-top: var(--s-7); padding-bottom: var(--s-7); }
.section--dark    { background: var(--graphite); color: var(--bone); }
.section--dark .readout { color: var(--steel-2); }
.section--dark .readout::before { color: var(--acid); }
.section--dark .lede { color: rgba(232,230,225,0.78); }
.section--paper   { background: var(--paper); }
.section--bone-warm { background: var(--bone-warm); }

/* -----  5. CROSSHAIR / REGISTRATION MARK  ------------------------------ */
/* The signature decorative motif — replaces localmounting's postal stamp. */
.reticle {
    width: 96px;
    height: 96px;
    position: relative;
    flex-shrink: 0;
    color: var(--graphite);
}
.reticle::before,
.reticle::after {
    content: "";
    position: absolute;
    background: currentColor;
}
.reticle::before {
    left: 50%; top: 0; bottom: 0;
    width: 1px;
    transform: translateX(-50%);
}
.reticle::after {
    top: 50%; left: 0; right: 0;
    height: 1px;
    transform: translateY(-50%);
}
.reticle__ring {
    position: absolute;
    inset: 18%;
    border: 1px solid currentColor;
    border-radius: 50%;
}
.reticle__ring::before {
    content: "";
    position: absolute;
    inset: 28%;
    border: 1px solid currentColor;
    border-radius: 50%;
}
.reticle__lbl {
    position: absolute;
    top: -22px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--acid-deep);
}

/* Corner registration marks for cards */
.regmark {
    position: relative;
    padding: var(--s-6);
}
.regmark::before, .regmark::after,
.regmark > .regmark__br::before, .regmark > .regmark__br::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border: 1px solid var(--line);
    background: transparent;
}
.regmark::before { top: 0; left: 0; border-right: none; border-bottom: none; }
.regmark::after  { top: 0; right: 0; border-left: none; border-bottom: none; }

.regmark > .regmark__br { display: contents; }
.regmark > .regmark__br::before { bottom: 0; left: 0; border-right: none; border-top: none; }
.regmark > .regmark__br::after  { bottom: 0; right: 0; border-left: none; border-top: none; }

/* -----  6. BUTTONS  ----------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 28px;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 0;
    border: 1px solid transparent;
    transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }
.btn .arr { font-family: var(--font-body); font-size: 1rem; }

.btn--primary {
    background: var(--graphite);
    color: var(--bone);
    border-color: var(--graphite);
}
.btn--primary:hover { background: var(--acid); color: var(--graphite); border-color: var(--acid); }

.btn--secondary {
    background: var(--acid);
    color: var(--graphite);
    border-color: var(--acid);
}
.btn--secondary:hover { background: var(--graphite); color: var(--acid); border-color: var(--graphite); }

.btn--outline {
    background: transparent;
    color: var(--graphite);
    border-color: var(--graphite);
}
.btn--outline:hover { background: var(--graphite); color: var(--bone); }
.section--dark .btn--outline { color: var(--bone); border-color: var(--bone); }
.section--dark .btn--outline:hover { background: var(--bone); color: var(--graphite); }

.btn--ghost {
    padding: 8px 0;
    background: none;
    border: none;
    border-bottom: 1px solid currentColor;
    color: var(--graphite);
}
.btn--ghost:hover { color: var(--acid-deep); }

/* -----  7. TAGS / CHIPS  ----------------------------------------------- */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: transparent;
    color: var(--graphite);
    border: 1px solid var(--line);
}
.chip--solid { background: var(--graphite); color: var(--bone); border-color: var(--graphite); }
.chip--acid  { background: var(--acid); color: var(--graphite); border-color: var(--acid); }
.chip--dot::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--acid-deep);
    display: inline-block;
}

/* -----  8. PANELS / CARDS  --------------------------------------------- */
.panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 0;
    padding: var(--s-6);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.panel:hover { transform: translateY(-2px); border-color: var(--graphite); }
.panel__hdr {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: var(--s-4);
    margin-bottom: var(--s-5);
    border-bottom: 1px solid var(--line);
}
.panel__id {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    color: var(--acid-deep);
    text-transform: uppercase;
}
.panel__num {
    font-family: var(--font-display);
    font-size: 1.625rem;
    line-height: 1;
    color: var(--graphite);
    font-weight: 500;
}
.panel__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.1;
    color: var(--graphite);
    margin-bottom: var(--s-4);
    letter-spacing: -0.02em;
}
.panel__body {
    color: var(--graphite-2);
    font-size: 0.9375rem;
    line-height: 1.6;
    flex: 1;
    margin-bottom: var(--s-5);
}
.panel__foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--s-4);
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--steel);
}

/* Service row — alternating zig-zag pattern (replaces localmounting's grid) */
.service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-7);
    align-items: center;
    padding: var(--s-7) 0;
    border-top: 1px solid var(--line);
}
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row--rev > *:first-child { order: 2; }
@media (max-width: 768px) {
    .service-row { grid-template-columns: 1fr; gap: var(--s-5); }
    .service-row--rev > *:first-child { order: initial; }
}

.service-row__id {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    color: var(--acid-deep);
    text-transform: uppercase;
    margin-bottom: var(--s-4);
}
.service-row__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.025em;
    margin-bottom: var(--s-4);
}
.service-row__body { color: var(--graphite-2); line-height: 1.65; max-width: 50ch; }
.service-row__meta {
    display: flex;
    gap: var(--s-5);
    margin-top: var(--s-5);
    padding-top: var(--s-5);
    border-top: 1px solid var(--line);
}
.service-row__meta dt { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.15em; color: var(--steel); text-transform: uppercase; margin-bottom: 4px; }
.service-row__meta dd { font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; }

.service-row__visual {
    aspect-ratio: 4 / 3;
    background: var(--graphite);
    color: var(--bone);
    padding: var(--s-6);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.service-row__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(232,230,225,0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(232,230,225,0.06) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

/* Procedure step — horizontal approach */
.procedure {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) { .procedure { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .procedure { grid-template-columns: 1fr; } }

.procedure__step {
    padding: var(--s-6) var(--s-5);
    border-right: 1px solid var(--line);
    position: relative;
    background: transparent;
    transition: background var(--dur) var(--ease);
}
.procedure__step:hover { background: rgba(196,216,46,0.06); }
.procedure__step:last-child { border-right: none; }
@media (max-width: 900px) {
    .procedure__step { border-bottom: 1px solid var(--line); }
    .procedure__step:nth-child(2n) { border-right: none; }
    .procedure__step:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 560px) {
    .procedure__step { border-right: none; border-bottom: 1px solid var(--line); }
    .procedure__step:last-child { border-bottom: none; }
}

.procedure__id {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    color: var(--acid-deep);
    text-transform: uppercase;
    margin-bottom: var(--s-4);
}
.procedure__num {
    font-family: var(--font-display);
    font-size: 4rem;
    line-height: 1;
    font-weight: 500;
    letter-spacing: -0.04em;
    color: var(--graphite);
    margin-bottom: var(--s-4);
}
.procedure__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: var(--s-3);
    letter-spacing: -0.015em;
}
.procedure__body { color: var(--graphite-2); font-size: 0.9375rem; line-height: 1.55; }

/* Stat strip — inline horizontal */
.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--line-on-dark);
    border-bottom: 1px solid var(--line-on-dark);
}
@media (max-width: 900px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }

.stat-strip__cell {
    padding: var(--s-6) var(--s-5);
    border-right: 1px solid var(--line-on-dark);
}
.stat-strip__cell:last-child { border-right: none; }
@media (max-width: 900px) {
    .stat-strip__cell:nth-child(2n) { border-right: none; }
    .stat-strip__cell:nth-child(-n+2) { border-bottom: 1px solid var(--line-on-dark); }
}

.stat-strip__id {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    color: var(--acid);
    text-transform: uppercase;
    margin-bottom: var(--s-3);
}
.stat-strip__num {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4vw + 0.5rem, 3.5rem);
    line-height: 1;
    font-weight: 500;
    letter-spacing: -0.035em;
    color: var(--bone);
    margin-bottom: var(--s-3);
}
.stat-strip__note { color: rgba(232,230,225,0.7); font-size: 0.875rem; line-height: 1.5; }

/* Tier card */
.tier {
    background: var(--paper);
    border: 1px solid var(--line);
    padding: var(--s-7) var(--s-6);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.tier:hover { transform: translateY(-2px); border-color: var(--graphite); }
.tier--feature {
    background: var(--graphite);
    color: var(--bone);
    border-color: var(--graphite);
}
.tier__id { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.18em; color: var(--acid-deep); text-transform: uppercase; margin-bottom: var(--s-3); }
.tier--feature .tier__id { color: var(--acid); }
.tier__name { font-family: var(--font-display); font-size: 1.75rem; font-weight: 500; margin-bottom: var(--s-3); letter-spacing: -0.02em; line-height: 1; }
.tier__price { font-family: var(--font-display); font-size: 2.5rem; font-weight: 500; line-height: 1; margin-bottom: var(--s-2); letter-spacing: -0.03em; }
.tier__price small { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 400; color: var(--steel); letter-spacing: 0.12em; text-transform: uppercase; }
.tier--feature .tier__price small { color: var(--steel-2); }
.tier__sub { color: var(--graphite-2); font-size: 0.9375rem; padding-bottom: var(--s-5); margin-bottom: var(--s-5); border-bottom: 1px solid var(--line); line-height: 1.5; }
.tier--feature .tier__sub { color: rgba(232,230,225,0.7); border-color: var(--line-on-dark); }
.tier__inc { flex: 1; margin-bottom: var(--s-5); }
.tier__inc li {
    padding: var(--s-3) 0 var(--s-3) 28px;
    position: relative;
    font-size: 0.9375rem;
    line-height: 1.4;
    color: var(--graphite-2);
    border-bottom: 1px solid var(--line);
}
.tier--feature .tier__inc li { color: rgba(232,230,225,0.85); border-color: var(--line-on-dark); }
.tier__inc li:last-child { border-bottom: none; }
.tier__inc li::before {
    content: "+";
    position: absolute;
    left: 0;
    font-family: var(--font-mono);
    color: var(--acid-deep);
    font-weight: 600;
}
.tier--feature .tier__inc li::before { color: var(--acid); }

/* Transmission (testimonial) */
.transmission {
    border-top: 1px solid var(--line);
    padding-top: var(--s-5);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.transmission__hdr {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--s-5);
}
.transmission__id { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.15em; color: var(--acid-deep); text-transform: uppercase; }
.transmission__seq { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--steel); letter-spacing: 0.12em; }
.transmission__body {
    font-family: var(--font-display);
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 400;
    letter-spacing: -0.015em;
    color: var(--graphite);
    margin-bottom: var(--s-5);
    flex: 1;
}
.transmission__sig {
    padding-top: var(--s-4);
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.transmission__sig strong { font-weight: 600; color: var(--graphite); font-size: 0.9375rem; }
.transmission__sig span { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.12em; color: var(--steel); }

/* Checkpoint (FAQ) */
.checkpoint {
    border-bottom: 1px solid var(--line);
}
.checkpoint summary {
    list-style: none;
    cursor: pointer;
    padding: var(--s-5) 0;
    display: grid;
    grid-template-columns: 60px 1fr 32px;
    gap: var(--s-4);
    align-items: baseline;
    transition: color var(--dur) var(--ease);
}
.checkpoint summary::-webkit-details-marker { display: none; }
.checkpoint summary:hover { color: var(--acid-deep); }
.checkpoint__id {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    color: var(--acid-deep);
    text-transform: uppercase;
    padding-top: 6px;
}
.checkpoint__q {
    font-family: var(--font-display);
    font-size: 1.1875rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--graphite);
    letter-spacing: -0.015em;
}
.checkpoint__toggle {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    color: var(--graphite);
    text-align: right;
    transition: transform var(--dur) var(--ease);
}
.checkpoint[open] .checkpoint__toggle { transform: rotate(45deg); }
.checkpoint__a {
    padding: 0 0 var(--s-5) calc(60px + var(--s-4));
    color: var(--graphite-2);
    line-height: 1.65;
    max-width: 70ch;
}

/* CTA panel */
.cta-cell {
    background: var(--graphite);
    color: var(--bone);
    padding: var(--s-9) var(--s-7);
    position: relative;
    overflow: hidden;
}
@media (max-width: 700px) { .cta-cell { padding: var(--s-7) var(--s-5); } }
.cta-cell::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(232,230,225,0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(232,230,225,0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}
.cta-cell__inner { position: relative; z-index: 1; }

/* -----  9. FORMS  ------------------------------------------------------- */
.form { display: grid; gap: var(--s-5); }
.form__row { display: grid; gap: var(--s-5); grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--acid-deep);
    font-weight: 500;
}
.field input,
.field textarea,
.field select {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 0;
    padding: 14px 16px;
    font-size: 1rem;
    color: var(--graphite);
    width: 100%;
    font-family: var(--font-body);
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: var(--graphite);
    background: var(--bone-warm);
}
.field textarea { resize: vertical; min-height: 140px; }

/* -----  10. HEADER + NAV  ---------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bone);
    border-bottom: 1px solid transparent;
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.site-header.is-scrolled {
    border-bottom-color: var(--line);
    background: rgba(232,230,225,0.95);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    gap: var(--s-5);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--graphite);
}
.brand__mark { width: 32px; height: 32px; flex-shrink: 0; }
.brand__name {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1;
}
.brand__sub {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.18em;
    color: var(--acid-deep);
    font-weight: 500;
    margin-top: 3px;
    text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: var(--s-6); }
.nav a {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--graphite-2);
    padding: 8px 0;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    position: relative;
    transition: color var(--dur) var(--ease);
}
.nav a:hover { color: var(--graphite); }
.nav a.is-active { color: var(--graphite); }
.nav a.is-active::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    bottom: 0;
    height: 2px;
    background: var(--acid);
}

.header-cta { display: flex; align-items: center; gap: var(--s-3); }
.menu-btn {
    display: none;
    width: 44px; height: 44px;
    border: 1px solid var(--line);
    align-items: center;
    justify-content: center;
}
.menu-btn span {
    display: block;
    width: 18px;
    height: 1px;
    background: var(--graphite);
    position: relative;
}
.menu-btn span::before, .menu-btn span::after {
    content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--graphite);
}
.menu-btn span::before { top: -6px; }
.menu-btn span::after  { top: 6px; }

@media (max-width: 980px) {
    .nav, .header-cta .btn:not(.btn--menu-fallback) { display: none; }
    .menu-btn { display: flex; }
    .header-cta .chip { display: none; }
}

.mobile-menu {
    position: fixed; inset: 0;
    background: var(--bone);
    z-index: 100;
    padding: var(--s-7) var(--gutter);
    display: none;
    flex-direction: column;
    overflow-y: auto;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--s-8);
}
.mobile-menu__close {
    width: 44px; height: 44px;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.mobile-menu nav { display: flex; flex-direction: column; gap: var(--s-3); }
.mobile-menu nav a {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--graphite);
    line-height: 1;
    border-bottom: 1px solid var(--line);
    padding: var(--s-4) 0;
    letter-spacing: -0.02em;
}
.mobile-menu nav a.is-active { color: var(--acid-deep); }
.mobile-menu__foot { margin-top: auto; padding-top: var(--s-7); }

/* -----  11. HERO (mountpilot style — centered, mega numerics)  --------- */
.hero {
    padding: var(--s-9) 0 var(--s-8);
    position: relative;
    overflow: hidden;
}
.hero__top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: var(--s-6);
    margin-bottom: var(--s-7);
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
    gap: var(--s-4);
}
.hero__coords { display: flex; gap: var(--s-6); }
.hero__coords > div { display: flex; flex-direction: column; gap: 4px; }
.hero__coords dt { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.18em; color: var(--steel); text-transform: uppercase; }
.hero__coords dd { font-family: var(--font-mono); font-size: 0.9375rem; color: var(--graphite); letter-spacing: 0.06em; }

.hero__lockup {
    text-align: left;
    margin-bottom: var(--s-7);
    position: relative;
}
.hero__lockup h1 {
    font-family: var(--font-display);
    font-size: var(--t-mega);
    line-height: 0.88;
    font-weight: 500;
    letter-spacing: -0.04em;
    margin-bottom: var(--s-5);
    max-width: 16ch;
}
.hero__lockup h1 em {
    font-style: italic;
    font-weight: 400;
    color: var(--acid-deep);
}

.hero__bottom {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--s-7);
    align-items: end;
    padding-top: var(--s-5);
    border-top: 1px solid var(--line);
}
@media (max-width: 900px) { .hero__bottom { grid-template-columns: 1fr; } }

.hero__lede { color: var(--graphite-2); font-size: 1.1875rem; line-height: 1.5; max-width: 52ch; }
.hero__ctas { display: flex; gap: var(--s-3); flex-wrap: wrap; }

/* -----  12. PAGE HEAD (inner pages)  ----------------------------------- */
.page-head {
    padding: var(--s-8) 0 var(--s-7);
    border-bottom: 1px solid var(--line);
    position: relative;
}
.page-head__top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--s-6);
    flex-wrap: wrap;
    gap: var(--s-3);
}
.page-head__crumb {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--steel);
}
.page-head__crumb a { color: var(--graphite-2); }
.page-head__crumb a:hover { color: var(--acid-deep); }
.page-head__id { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.18em; color: var(--acid-deep); text-transform: uppercase; }
.page-head__grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--s-7);
    align-items: end;
}
@media (max-width: 768px) { .page-head__grid { grid-template-columns: 1fr; } }
.page-head h1 {
    font-size: clamp(2.5rem, 5vw + 0.5rem, 4.5rem);
    line-height: 1;
    margin-bottom: var(--s-4);
    max-width: 18ch;
    letter-spacing: -0.035em;
}
.page-head h1 em { color: var(--acid-deep); font-style: italic; font-weight: 400; }
.page-head__lede { max-width: 55ch; color: var(--graphite-2); font-size: 1.0625rem; }

/* -----  13. SECTION HEAD  ---------------------------------------------- */
.sec-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-7);
    align-items: end;
    margin-bottom: var(--s-7);
}
@media (max-width: 768px) { .sec-head { grid-template-columns: 1fr; gap: var(--s-5); } }
.sec-head__id {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--acid-deep);
    margin-bottom: var(--s-4);
    padding-bottom: var(--s-3);
    border-bottom: 1px solid var(--acid-deep);
    display: inline-block;
}
.section--dark .sec-head__id { color: var(--acid); border-color: var(--acid); }
.sec-head__title { max-width: 16ch; }
.sec-head__lede { color: var(--graphite-2); line-height: 1.6; }
.section--dark .sec-head__lede { color: rgba(232,230,225,0.78); }

/* -----  14. FOOTER  ----------------------------------------------------- */
.site-footer {
    background: var(--graphite);
    color: var(--bone);
    padding-top: var(--s-9);
    padding-bottom: var(--s-5);
    position: relative;
    overflow: hidden;
}
.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(232,230,225,0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(232,230,225,0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at top, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at top, black 30%, transparent 75%);
}
.site-footer > * { position: relative; z-index: 1; }

.footer-call {
    padding-bottom: var(--s-8);
    border-bottom: 1px solid var(--line-on-dark);
    margin-bottom: var(--s-8);
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--s-7);
    align-items: end;
}
@media (max-width: 800px) { .footer-call { grid-template-columns: 1fr; } }
.footer-call h2 { color: var(--bone); max-width: 14ch; }
.footer-call h2 em { color: var(--acid); font-style: italic; font-weight: 400; }
.footer-call p { color: rgba(232,230,225,0.7); max-width: 40ch; margin-top: var(--s-4); line-height: 1.55; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--s-6);
    margin-bottom: var(--s-7);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-7); } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--acid);
    margin-bottom: var(--s-4);
    font-weight: 500;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
    color: rgba(232,230,225,0.78);
    font-size: 0.9375rem;
    transition: color var(--dur) var(--ease);
}
.footer-col a:hover { color: var(--bone); }
.footer-col p { color: rgba(232,230,225,0.7); line-height: 1.55; font-size: 0.9375rem; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--s-5);
    padding-top: var(--s-5);
    border-top: 1px solid var(--line-on-dark);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    color: rgba(232,230,225,0.55);
    text-transform: uppercase;
    flex-wrap: wrap;
}
.footer-bottom__legal { display: flex; gap: var(--s-5); flex-wrap: wrap; }

/* -----  15. PROSE (legal pages)  --------------------------------------- */
.prose {
    max-width: 70ch;
    color: var(--graphite-2);
    line-height: 1.7;
}
.prose h2 {
    font-size: 1.625rem;
    margin-top: var(--s-7);
    margin-bottom: var(--s-4);
    color: var(--graphite);
    letter-spacing: -0.02em;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
    font-size: 1.1875rem;
    font-family: var(--font-body);
    font-weight: 600;
    margin-top: var(--s-5);
    margin-bottom: var(--s-3);
    color: var(--graphite);
    letter-spacing: 0;
}
.prose p { margin-bottom: var(--s-4); }
.prose ul { margin: 0 0 var(--s-4) 0; padding-left: 0; }
.prose ul li {
    padding: 6px 0 6px 24px;
    position: relative;
    list-style: none;
}
.prose ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    top: 7px;
    color: var(--acid-deep);
    font-family: var(--font-mono);
    font-size: 0.875rem;
}
.prose strong { color: var(--graphite); font-weight: 600; }
.prose a {
    color: var(--acid-deep);
    border-bottom: 1px solid rgba(143,160,28,0.35);
    transition: border-color var(--dur) var(--ease);
}
.prose a:hover { border-color: var(--acid-deep); }

.legal-grid {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: var(--s-8);
}
@media (max-width: 900px) {
    .legal-grid { grid-template-columns: 1fr; }
    .prose-toc { position: static; }
}
.prose-toc {
    background: var(--paper);
    border: 1px solid var(--line);
    padding: var(--s-5);
    position: sticky;
    top: 96px;
}
.prose-toc h4 {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--acid-deep);
    margin-bottom: var(--s-4);
    font-weight: 500;
}
.prose-toc ol {
    counter-reset: toc;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.prose-toc ol li { counter-increment: toc; font-size: 0.875rem; }
.prose-toc ol li::before {
    content: counter(toc, decimal-leading-zero) " ";
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--steel);
    letter-spacing: 0.1em;
    margin-right: 6px;
}
.prose-toc a { color: var(--graphite-2); transition: color var(--dur) var(--ease); }
.prose-toc a:hover { color: var(--graphite); }

/* -----  16. UTILITY  --------------------------------------------------- */
.rule { height: 1px; background: var(--line); width: 100%; border: 0; margin: var(--s-6) 0; }
.text-center { text-align: center; }
.mt-3 { margin-top: var(--s-3); } .mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); } .mt-7 { margin-top: var(--s-7); } .mt-8 { margin-top: var(--s-8); }
.mb-4 { margin-bottom: var(--s-4); } .mb-5 { margin-bottom: var(--s-5); } .mb-6 { margin-bottom: var(--s-6); }
.hidden-md { display: initial; }
@media (max-width: 768px) { .hidden-md { display: none; } }

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}
