:root {
    --ink: #142033;
    --navy: #0c2340;
    --navy-2: #163454;
    --paper: #f3efe6;
    --paper-2: #fffdf8;
    --teal: #0f766e;
    --teal-ink: #084840;
    --sand: #e7d7b8;
    --line: #e2d8c8;
    --warn-bg: #fff6e8;
    --warn-line: #e4c48a;
    --danger: #8f2d2d;
    --ok: #1f6b45;
    --muted: #5c6b7a;
    --shadow: 0 18px 50px rgba(12, 35, 64, 0.14);
    --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
    --sans: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 1.05rem;
    line-height: 1.5;
}
main { flex: 1; }
img { max-width: 100%; height: auto; }
a { color: var(--teal-ink); }
h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 0 0.6rem; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 0.8rem; }
h3 { font-size: 1.3rem; margin: 0 0 0.4rem; }
p { margin: 0 0 0.8rem; }

.skip {
    position: absolute;
    left: 0.5rem;
    top: -4rem;
    background: white;
    padding: 0.4rem 0.7rem;
    z-index: 5;
}
.skip:focus { top: 0.5rem; }

.wrap { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.narrow { width: min(720px, calc(100% - 2rem)); }

.site-header {
    background: var(--navy);
    color: #f4efe6;
    position: sticky;
    top: 0;
    z-index: 4;
}
.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4.2rem;
}
.brand {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    color: inherit;
    text-decoration: none;
}
.brand svg { width: 2rem; height: 2rem; flex: none; }
.brand strong { display: block; font-size: 1rem; letter-spacing: 0.01em; }
.brand small { display: block; color: #c9d4e0; font-size: 0.78rem; }
.header-cta, .header-nav a, .linkish {
    color: #f4efe6;
    text-decoration: none;
}
.header-cta {
    border: 1px solid rgba(244, 239, 230, 0.45);
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    white-space: nowrap;
}
.header-nav { display: flex; gap: 1rem; align-items: center; }
.header-nav form { margin: 0; }
.linkish {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.hero {
    position: relative;
    isolation: isolate;
    color: #f7f3ea;
    padding: 2.2rem 0 2.6rem;
    overflow: hidden;
}
.hero-photo, .hero-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}
.hero-photo img { object-fit: cover; object-position: center 40%; }
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(12, 35, 64, 0.82) 0%, rgba(12, 35, 64, 0.62) 45%, rgba(12, 35, 64, 0.86) 100%);
}
.hero h1, .hero .lede { color: #f7f3ea; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
.hero-grid { display: grid; gap: 1.6rem; }
.hero-copy { order: 2; }
.hero-product { order: 1; margin: 0; text-align: center; }
.hero-product img {
    width: min(56vw, 240px);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    background: white;
}
.hero-product figcaption { font-size: 0.82rem; color: #d5deea; margin-top: 0.5rem; }
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    color: #9ee6c4;
    margin-bottom: 0.7rem;
}
.lede { font-size: 1.08rem; max-width: 38rem; color: #e6ecf3; }
.hero-actions { display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; margin-top: 1.3rem; }
.hero-note { font-size: 0.92rem; color: #d5deea; }
.fine { color: var(--muted); font-size: 0.92rem; }

.button, button, .header-cta {
    font: inherit;
}
.button, button[type="submit"] {
    display: inline-block;
    background: var(--teal);
    color: white;
    text-decoration: none;
    border: 0;
    border-radius: 999px;
    padding: 0.75rem 1.15rem;
    min-height: 3rem;
    cursor: pointer;
    font-weight: 600;
}
.button:hover, button[type="submit"]:hover { background: var(--teal-ink); }
.button-lg { font-size: 1.1rem; padding: 0.95rem 1.6rem; min-height: 3.4rem; }
.hero-actions .button-lg { width: 100%; text-align: center; }

.urgency { background: var(--teal); color: white; }
.urgency-grid { display: grid; gap: 0.1rem; padding: 0.9rem 0; }
.urgency-grid div { padding: 0.45rem 0; }
.urgency-grid div + div { border-top: 1px solid rgba(255, 255, 255, 0.25); }
.urgency strong { display: block; font-size: 1.02rem; }
.urgency span { display: block; font-size: 0.9rem; color: #d9f3ee; }

.ten { background: var(--paper-2); }
.ten-grid { display: grid; gap: 1rem; align-items: center; }
.ten-number {
    font-family: var(--serif);
    color: var(--navy);
    line-height: 0.85;
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}
.ten-digits { font-size: clamp(6rem, 28vw, 13rem); letter-spacing: -0.06em; font-weight: 700; }
.ten-word { font-size: clamp(1.6rem, 6vw, 2.6rem); color: var(--teal); letter-spacing: 0.02em; }
.ten-points { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.5rem; }
.ten-points li {
    background: var(--paper);
    border-radius: 0.7rem;
    padding: 0.6rem 0.8rem;
}

.proven, .closer {
    position: relative;
    isolation: isolate;
    color: #f7f3ea;
    overflow: hidden;
}
.proven-photo, .closer-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}
.proven-photo { object-position: center 35%; }
.proven::before, .closer::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(12, 35, 64, 0.78);
}
.closer::before { background: rgba(8, 72, 64, 0.72); }
.proven-copy, .closer-copy { padding: 3rem 1rem; }
.proven h2, .closer h2 { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
.proven p, .closer p { color: #e6ecf3; max-width: 40rem; }
.closer-copy { text-align: center; }
.closer-copy p { margin-inline: auto; margin-bottom: 1.2rem; }

.load-list { list-style: none; padding: 0; margin: 0.8rem 0 0; display: grid; gap: 0.7rem; }
.load-list li {
    padding: 0.2rem 0 0.2rem 1rem;
    border-left: 3px solid var(--teal);
}
.loads-photo { margin: 0; }
.loads-photo img { border-radius: 1rem; border: 1px solid var(--line); background: white; display: block; }

.section { padding: 2.6rem 0; }
.section-lead { color: var(--muted); max-width: 42rem; }
.split { display: grid; gap: 1.4rem; align-items: start; }
.caption { color: var(--muted); font-size: 0.9rem; }
.specs { margin: 0; }
.specs > div {
    display: grid;
    grid-template-columns: 8.5rem 1fr;
    gap: 0.6rem;
    padding: 0.7rem 0;
    border-top: 1px solid var(--line);
}
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
.spec-links { margin-top: 1rem; }

.warranty { background: var(--navy); color: #f4efe6; }
.warranty h2, .warranty p { color: #f4efe6; }
.warranty .fine { color: #c9d4e0; }
.warranty .fine a { color: #9ee6c4; }
.warranty-grid { display: grid; gap: 1rem; align-items: center; }
.warranty-big {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-family: var(--serif);
    color: #9ee6c4;
}
.warranty-years { font-size: clamp(5rem, 22vw, 9rem); line-height: 0.85; font-weight: 700; letter-spacing: -0.05em; }
.warranty-label { font-size: clamp(1.1rem, 4vw, 1.6rem); max-width: 9rem; line-height: 1.1; }
.plain { padding-left: 1.1rem; }
.plain li { margin: 0.4rem 0; }

.steps-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.8rem;
    counter-reset: step;
}
.steps-list li {
    background: white;
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    padding: 0.9rem 1rem 0.9rem 3.4rem;
    position: relative;
}
.steps-list li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0.9rem;
    top: 0.9rem;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    background: var(--navy);
    color: #f4efe6;
    display: grid;
    place-items: center;
    font-size: 0.9rem;
}
.steps-list strong { display: block; }
.steps-list span { color: var(--muted); }

.specs-section { padding-top: 1.2rem; }
.specs-details {
    background: white;
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    padding: 0.4rem 1rem;
}
.specs-details summary {
    cursor: pointer;
    list-style: none;
    padding: 0.7rem 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.2rem 0.8rem;
}
.specs-details summary::-webkit-details-marker { display: none; }
.specs-details summary::after {
    content: "+";
    margin-left: auto;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--teal);
}
.specs-details[open] summary::after { content: "−"; }
.specs-details summary h2 { font-size: 1.4rem; margin: 0; }
.specs-details summary span { color: var(--muted); font-size: 0.92rem; }
.specs-details .specs { margin-top: 0.4rem; }

.modal {
    border: 0;
    border-radius: 1.1rem;
    padding: 1.2rem 1.2rem 1.4rem;
    width: min(32rem, calc(100% - 1.5rem));
    max-height: calc(100dvh - 1.5rem);
    background: white;
    color: var(--ink);
    box-shadow: var(--shadow);
    overscroll-behavior: contain;
}
.modal::backdrop { background: rgba(12, 35, 64, 0.62); backdrop-filter: blur(2px); }
.modal:not([open]) { display: none; }
.modal:target { display: block; position: fixed; top: 0.75rem; left: 50%; transform: translateX(-50%); margin: 0; z-index: 20; overflow: auto; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.modal-head h2 { font-size: 1.6rem; margin: 0; }
.modal-head form { margin: 0; }
.modal-close {
    background: var(--paper);
    border: 0;
    border-radius: 50%;
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: var(--ink);
}
.modal-lead { color: var(--muted); margin: 0.4rem 0 1rem; font-size: 0.98rem; }
.reserve-form .button-lg { width: 100%; text-align: center; margin-top: 0.3rem; }

.sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
    background: rgba(12, 35, 64, 0.96);
    color: #d5deea;
    font-size: 0.9rem;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
}
.sticky-cta strong { color: white; font-size: 1.05rem; }
.sticky-cta .button { flex: none; padding: 0.6rem 1.2rem; min-height: 2.7rem; }
body:has(.sticky-cta) main { padding-bottom: 4.2rem; }

.field { margin: 0 0 0.9rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
    width: 100%;
    font: inherit;
    font-size: 1rem;
    padding: 0.75rem 0.8rem;
    min-height: 3rem;
    border-radius: 0.6rem;
    border: 1px solid #cabbab;
    background: var(--paper-2);
    color: var(--ink);
}
.field textarea { resize: vertical; }
.fields { display: grid; gap: 0.8rem; }
.check label { display: flex; gap: 0.6rem; font-weight: 400; align-items: flex-start; }
.check input { width: 1.35rem; height: 1.35rem; margin-top: 0.15rem; flex: none; min-height: 0; }
.check label span { font-size: 0.95rem; }
.field-error, .form-error { color: var(--danger); margin: 0.3rem 0 0; }
.form-error {
    background: #fdecec;
    border: 1px solid #f0c2c2;
    border-radius: 0.6rem;
    padding: 0.7rem 0.8rem;
}
.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.receipt .reference {
    font-family: var(--serif);
    font-size: 2.4rem;
    letter-spacing: 0.04em;
    margin: 0.2rem 0 0.8rem;
}
.prose h2 { font-size: 1.4rem; margin-top: 1.4rem; }

.site-footer {
    background: var(--navy);
    color: #d5deea;
    padding: 1.6rem 0 2rem;
}
.site-footer a { color: #f4efe6; }
.footer-grid { display: grid; gap: 1rem; }
.footer-grid div:last-child { display: flex; flex-direction: column; gap: 0.3rem; }

.admin-head, .stat-row { display: grid; gap: 0.8rem; }
.stat-row { grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); margin: 1rem 0 1.2rem; }
.stat {
    display: block;
    background: white;
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    padding: 0.7rem 0.8rem;
    text-decoration: none;
    color: inherit;
}
.stat strong { display: block; font-family: var(--serif); font-size: 1.6rem; }
.stat span, .stat small { display: block; color: var(--muted); }
.stat.is-on { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.flash {
    background: #e7f6ee;
    color: var(--ok);
    border-radius: 0.6rem;
    padding: 0.6rem 0.8rem;
}
.table-scroll { overflow-x: auto; background: white; border: 1px solid var(--line); border-radius: 0.8rem; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { text-align: left; vertical-align: top; padding: 0.7rem; border-bottom: 1px solid var(--line); }
th { font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
td input, td select { font: inherit; padding: 0.35rem 0.4rem; width: 6.5rem; }
td .note { color: var(--muted); margin-top: 0.35rem; }
code { font-size: 0.85rem; }
table button[type="submit"] { min-height: 2.2rem; padding: 0.35rem 0.8rem; }

:focus-visible {
    outline: 3px solid #0f766e;
    outline-offset: 2px;
}

@media (max-width: 460px) {
    .brand small { display: none; }
    .header-cta { font-size: 0.92rem; padding: 0.4rem 0.65rem; }
    .fields { grid-template-columns: 1fr 1fr; }
    .modal {
        width: 100%;
        max-width: none;
        max-height: 100dvh;
        height: 100dvh;
        border-radius: 0;
        margin: 0;
        padding-bottom: 2.5rem;
    }
}

@media (min-width: 800px) {
    .hero { padding: 4.5rem 0 5rem; }
    .hero-grid { grid-template-columns: 1.25fr 0.75fr; align-items: center; gap: 3rem; }
    .hero-copy { order: 1; }
    .hero-product { order: 2; }
    .hero-product img { width: 100%; max-width: 380px; }
    .hero-actions { flex-direction: row; align-items: center; gap: 1rem; }
    .hero-actions .button-lg { width: auto; }
    .urgency-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding: 1.1rem 0; }
    .urgency-grid div + div { border-top: 0; border-left: 1px solid rgba(255, 255, 255, 0.25); padding-left: 1.5rem; }
    .ten-grid { grid-template-columns: 0.8fr 1.2fr; gap: 2.5rem; }
    .ten-number { flex-direction: column; align-items: flex-start; gap: 0; }
    .ten-points { grid-template-columns: 1fr 1fr; }
    .proven-copy, .closer-copy { padding: 5rem 1rem; }
    .split { grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; }
    .warranty-grid { grid-template-columns: auto 1fr; gap: 3rem; }
    .fields { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 2fr 1fr; }
    .admin-head { grid-template-columns: 1fr auto; align-items: end; }
    .sticky-cta { display: none; }
    body:has(.sticky-cta) main { padding-bottom: 0; }
}
