/* Storefront styling.
 *
 * Separate from style.css on purpose: the console and the administration
 * screen are tools, and dressing a tool up costs its user time. This is a
 * shop, and it has to earn a click from someone who has never heard of us.
 *
 * Still no framework and no CDN. Everything here is one file the server owns,
 * which is also what keeps the pages fast on the phone of someone standing in
 * front of a builder's quote.
 */

:root {
    --ink: #0c1a2b;
    --ink-soft: #47596d;
    --paper: #ffffff;
    --cream: #f5f7fa;
    --line: #e2e8f0;
    --brand: #12406e;
    --brand-bright: #1c6fbb;
    --accent: #0d9b74;
    --accent-soft: #e6f6f1;
    --alert: #c8412f;
    --alert-soft: #fdedea;
    --warn: #b47605;
    --warn-soft: #fdf4e3;
    --shadow: 0 1px 2px rgba(12, 26, 43, .05), 0 12px 32px -12px rgba(12, 26, 43, .18);
    --shadow-lift: 0 2px 4px rgba(12, 26, 43, .06), 0 24px 48px -16px rgba(12, 26, 43, .28);
    --radius: 14px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --ink: #eef2f7;
        --ink-soft: #9fb0c4;
        --paper: #131b26;
        --cream: #0d141d;
        --line: #24303f;
        --brand: #8dc2f2;
        --brand-bright: #6bb0ee;
        --accent: #3fcda1;
        --accent-soft: #0f2b25;
        --alert: #ff8a78;
        --alert-soft: #2c1714;
        --warn: #e8b45c;
        --warn-soft: #2a2113;
        --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .6);
        --shadow-lift: 0 2px 4px rgba(0, 0, 0, .5), 0 24px 48px -16px rgba(0, 0, 0, .7);
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(30px, 5.2vw, 52px); font-weight: 700; }
h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 650; }
p { margin: 0; }
a { color: var(--brand-bright); }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.stack > * + * { margin-top: 16px; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--ink-soft); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }
.center { text-align: center; margin-inline: auto; }

/* --- header ------------------------------------------------------------ */

.site-head {
    position: sticky; top: 0; z-index: 20;
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 22px; height: 66px; }
.brand {
    display: flex; align-items: center; gap: 9px;
    font-weight: 700; letter-spacing: .01em; color: var(--ink); text-decoration: none;
    font-size: 17px;
}
.brand .mark {
    width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
    background: linear-gradient(140deg, var(--brand-bright), var(--accent));
    color: #fff; font-size: 14px; font-weight: 800;
}
.site-head nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.site-head nav a {
    color: var(--ink-soft); text-decoration: none; font-size: 15px;
    padding: 8px 12px; border-radius: 9px;
}
.site-head nav a:hover { color: var(--ink); background: var(--cream); }
.site-head nav a.on { color: var(--brand-bright); }
/* The call to action is a button first: the nav rule above is more specific
   than .btn, and would otherwise repaint its label in the nav's own ink. */
.site-head nav a.btn { color: #fff; padding: 10px 16px; }
.site-head nav a.btn:hover { background: var(--brand-bright); color: #fff; }
@media (max-width: 640px) { .site-head nav a.hide-sm { display: none; } }

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

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
    padding: 13px 22px; border-radius: 11px; border: 1px solid transparent;
    background: var(--brand-bright); color: #fff;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: none; }
.btn:disabled { opacity: .55; cursor: progress; transform: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--paper); }
.btn.buy { background: var(--accent); font-size: 17px; padding: 15px 26px; }
.btn.block { width: 100%; }

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

.hero {
    position: relative; overflow: hidden;
    padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
    background:
        radial-gradient(120% 90% at 12% -10%, color-mix(in srgb, var(--brand-bright) 16%, transparent), transparent 60%),
        radial-gradient(90% 80% at 92% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 55%),
        var(--paper);
    border-bottom: 1px solid var(--line);
}
.hero-grid {
    display: grid; gap: clamp(32px, 5vw, 56px);
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
    color: var(--accent); background: var(--accent-soft);
    padding: 6px 12px; border-radius: 999px;
}
.hero h1 .hl {
    background: linear-gradient(180deg, transparent 64%, color-mix(in srgb, var(--accent) 32%, transparent) 64%);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

/* --- search ------------------------------------------------------------ */

.search {
    display: flex; gap: 8px; flex-wrap: wrap;
    background: var(--paper); padding: 8px; border-radius: 14px;
    border: 1px solid var(--line); box-shadow: var(--shadow);
}
.search input {
    flex: 1 1 240px; min-width: 0; font: inherit; color: var(--ink);
    background: transparent; border: 0; padding: 12px 14px;
}
.search input:focus { outline: none; }
.search input::placeholder { color: color-mix(in srgb, var(--ink-soft) 75%, transparent); }
.search .postal { flex: 0 1 118px; border-left: 1px solid var(--line); }

.field {
    width: 100%; font: inherit; color: var(--ink); background: var(--paper);
    border: 1px solid var(--line); border-radius: 10px; padding: 12px 13px;
}
.field:focus { outline: 2px solid var(--brand-bright); outline-offset: -1px; }
.field::placeholder { color: color-mix(in srgb, var(--ink-soft) 70%, transparent); }
label.field-label { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; }

/* --- report mock (the locked teaser) ----------------------------------- */

.mock {
    background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
    box-shadow: var(--shadow-lift); overflow: hidden;
}
.mock-head {
    padding: 16px 18px; border-bottom: 1px solid var(--line);
    display: flex; align-items: center; gap: 12px;
}
.mock-body { padding: 18px; position: relative; }
.mock-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 14px;
}
.mock-row:last-child { border-bottom: 0; }
.mock-locked { position: relative; }
.mock-locked .mock-row { filter: blur(4px); opacity: .55; user-select: none; }
.mock-veil {
    position: absolute; inset: 0; display: grid; place-content: center; justify-items: center;
    gap: 8px; text-align: center; padding: 12px;
}
.mock-veil .lock {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    background: var(--accent); color: #fff; font-size: 18px;
}

/* --- cards and sections ------------------------------------------------ */

section.band { padding: clamp(48px, 7vw, 88px) 0; }
section.band.paper { background: var(--paper); border-block: 1px solid var(--line); }

.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
    background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 24px;
}
.card.raised { box-shadow: var(--shadow); }

/* The two doors of the landing page. */
.door {
    display: flex; flex-direction: column; gap: 14px;
    background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
    padding: 28px; text-decoration: none; color: inherit;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.door:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: transparent; }
.door .icon {
    width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
    font-size: 21px; background: var(--cream);
}
.door.primary { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.door .go { margin-top: auto; font-weight: 650; color: var(--brand-bright); }

.step { display: flex; gap: 16px; align-items: flex-start; }
.step .num {
    flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%;
    display: grid; place-items: center; font-weight: 700; font-size: 15px;
    background: var(--brand-bright); color: #fff;
}

.stat { display: flex; flex-direction: column; gap: 2px; }
.stat b { font-size: clamp(24px, 3vw, 32px); font-weight: 750; letter-spacing: -.02em; }

/* --- price ------------------------------------------------------------- */

.price-card {
    background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
    box-shadow: var(--shadow-lift); padding: 32px; max-width: 460px;
}
.price {
    display: flex; align-items: baseline; gap: 8px;
    font-size: clamp(38px, 6vw, 52px); font-weight: 750; letter-spacing: -.03em;
}
.price small { font-size: 16px; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.ticks li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.ticks li.no::before { content: "—"; color: var(--ink-soft); }

/* --- badges, results, report ------------------------------------------- */

.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600;
}
.badge.ok { background: var(--accent-soft); color: var(--accent); }
.badge.bad { background: var(--alert-soft); color: var(--alert); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.flat { background: var(--cream); color: var(--ink-soft); }

.hit {
    display: flex; gap: 14px; align-items: center; width: 100%; text-align: left;
    background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
    padding: 16px 18px; cursor: pointer; font: inherit; color: inherit;
    transition: border-color .12s ease, box-shadow .12s ease;
}
.hit:hover { border-color: var(--brand-bright); box-shadow: var(--shadow); }
.hit .who { min-width: 0; }
.hit .name { font-weight: 650; overflow-wrap: anywhere; }
.hit .go { margin-left: auto; color: var(--brand-bright); font-weight: 650; white-space: nowrap; }

.rows { display: grid; gap: 10px; }
.kv { display: grid; grid-template-columns: 190px 1fr; gap: 10px; font-size: 15px; }
.kv dt { color: var(--ink-soft); }
.kv dd { margin: 0; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 8px; } }

.scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.data th, table.data td {
    text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line);
    vertical-align: top;
}
table.data th {
    font-size: 12px; text-transform: uppercase; letter-spacing: .05em;
    color: var(--ink-soft); font-weight: 650; white-space: nowrap;
}
table.data tr:last-child td { border-bottom: 0; }

.notice {
    padding: 14px 16px; border-radius: 12px; font-size: 15px;
    border: 1px solid var(--line); background: var(--paper);
}
.notice.bad { background: var(--alert-soft); border-color: color-mix(in srgb, var(--alert) 35%, transparent); }
.notice.ok { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.notice.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }

.faq details {
    background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px;
}
.faq summary { cursor: pointer; font-weight: 650; padding: 14px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--ink-soft); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 16px; color: var(--ink-soft); }

.site-foot {
    background: var(--paper); border-top: 1px solid var(--line);
    padding: 40px 0; font-size: 14px; color: var(--ink-soft);
}
.site-foot a { color: var(--ink-soft); }
.site-foot .cols { display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
/* Footer links are one per line: inline anchors inside a stacked column run
   together into a sentence, which is how they first shipped. */
.site-foot .cols a:not(.brand) { display: block; }

.spin { display: inline-block; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .spin { animation: none; }
    .btn:hover, .door:hover { transform: none; }
}
