/* Public pages. The one loud element is the hero readout: a run of the real
   product, played once. Everything around it stays disciplined. */

/* ——— hero ——— */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy .display { margin-bottom: 24px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 14px; }
.hero-actions .btn { padding: 0 18px; }
.hero-note { font-size: .95rem; color: var(--steel); }

/* the readout: a lab instrument, not a card */
.readout {
    margin: 0; background: var(--ink); color: #dfe5ea; border-radius: 10px;
    padding: 22px 22px 18px; box-shadow: 0 24px 48px -28px rgba(21, 32, 43, .55);
}
.readout-head { display: flex; align-items: center; gap: 10px; font-weight: 700; font-stretch: 112%; color: #fff; margin-bottom: 18px; }
.readout-head svg { width: 22px; height: 22px; }
.readout-model { margin-left: auto; font-weight: 500; font-stretch: 100%; font-size: .85rem; color: #9aa7b2; }

.readout-meter { margin-bottom: 16px; }
.meter-label { font-size: .85rem; color: #9aa7b2; }
.meter-track { position: relative; height: 12px; background: #2a3846; border-radius: 6px; margin: 8px 0 6px; }
.meter-fill {
    position: absolute; inset: 0 auto 0 0; width: 100%; border-radius: 6px;
    background: linear-gradient(90deg, #8fb3cf 0 66.6%, var(--breach) 66.6%);
    transform-origin: left; transform: scaleX(1);
    animation: fill 3.6s cubic-bezier(.4, 0, .2, 1) .3s both;
}
@keyframes fill {
    0% { transform: scaleX(0); background-size: 100%; }
    55% { transform: scaleX(.66); }
    70% { transform: scaleX(.66); }
    100% { transform: scaleX(1); }
}
.meter-ceiling { position: absolute; left: var(--at); top: -6px; bottom: -6px; width: 2px; background: var(--signal); z-index: 1; }
.meter-ceiling span { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: .75rem; color: var(--signal); }
.meter-scale { display: flex; justify-content: space-between; font-size: .78rem; color: #7f8d99; font-variant-numeric: tabular-nums; }

.readout-turns { list-style: none; margin: 0; padding: 0; border-top: 1px solid #2a3846; }
.turn {
    display: grid; grid-template-columns: 3.6em minmax(0, 1fr); gap: 2px 10px; align-items: baseline;
    padding: 9px 0; border-bottom: 1px solid #2a3846; font-size: .9rem;
    animation: appear .35s ease-out both; animation-delay: calc(.45s + var(--i) * .55s);
}
.turn code { background: #22303d; color: #e8eef3; padding: 1px 6px; font-size: .82rem; justify-self: start; overflow-wrap: anywhere; }
.turn-what { grid-column: 2; }
.turn-n { color: #7f8d99; font-variant-numeric: tabular-nums; }
.turn-what { color: #b9c4cd; }
.turn.breach code { background: var(--breach); color: #fff; }
.turn.breach .turn-what { color: #ff9aa8; font-weight: 600; }
.readout-verdict {
    margin: 14px 0 0; font-weight: 700; color: #fff; max-width: none;
    animation: appear .35s ease-out both; animation-delay: calc(.45s + var(--i) * .55s);
}
@keyframes appear { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ——— what we test ——— */
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.family { border-top: 4px solid var(--ink); padding-top: 20px; }
.family-security { border-top-color: var(--breach); }
.checks { list-style: none; padding: 0; margin: 16px 0 0; }
.checks li { position: relative; padding: 7px 0 7px 26px; border-bottom: 1px solid var(--rule); }
.checks li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 12px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }

/* ——— steps (a real sequence) ——— */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.steps li { counter-increment: step; }
.steps li::before {
    content: counter(step); display: block; font-size: 3rem; font-weight: 850; font-stretch: 125%;
    line-height: 1; margin-bottom: 14px; color: var(--ink);
    -webkit-text-stroke: 0; padding-bottom: 12px; border-bottom: 1px solid var(--rule);
}

/* ——— access scale: from no access to inside their walls ——— */
.access-scale { margin-bottom: 20px; }
.access-axis {
    display: flex; justify-content: space-between; font-size: .85rem; font-weight: 600; color: var(--steel);
    padding-bottom: 10px; margin-bottom: 0; position: relative;
}
.access-axis::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; border-radius: 3px;
    background: linear-gradient(90deg, var(--pass), var(--signal) 55%, var(--ink));
}
.access-modes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.access-modes li { padding: 20px 18px 8px 0; border-right: 1px solid var(--rule); }
.access-modes li + li { padding-left: 18px; }
.access-modes li:last-child { border-right: 0; }
.access-modes h3 { font-size: 1.05rem; }
.access-modes p { font-size: .95rem; color: #34414c; }

/* ——— report sample ——— */
.report-sample { background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: clamp(20px, 3vw, 36px); }
.report-tag { font-size: .85rem; color: var(--steel); margin-bottom: 12px; }
.table-scroll { overflow-x: auto; }
.report-sample td { font-variant-numeric: tabular-nums; font-weight: 600; }
.report-sample td.ok { color: var(--pass); }
.report-sample td.bad { color: var(--breach); }
.report-quote { margin: 28px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--breach); }
.report-quote p { font-size: 1.15rem; font-weight: 600; margin-bottom: 6px; }
.report-quote footer { font-size: .9rem; color: var(--steel); }
.report-reco { background: var(--paper); border-radius: 8px; padding: 18px 20px; }
.report-reco p:last-child { margin-bottom: 0; }

/* ——— pricing ——— */
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.offer { background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 26px; display: flex; flex-direction: column; }
.offer.featured { border: 2px solid var(--ink); box-shadow: 0 0 0 4px var(--signal); }
.offer .price { font-size: 2rem; font-weight: 850; font-stretch: 120%; margin: 4px 0 10px; }
.offer .checks { margin: 4px 0 24px; font-size: .95rem; }
.offer .btn { margin-top: auto; }
.followup { margin-top: 28px; padding: 16px 20px; border: 1px dashed #9aa6b0; border-radius: 8px; max-width: none; }

/* ——— FAQ ——— */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; }
.faq details { border-bottom: 1px solid var(--rule); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 500; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: #34414c; }

/* ——— closing ——— */
.closing { background: var(--ink); color: #fff; padding: clamp(48px, 8vw, 96px) 0; }
.closing-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.closing h2 { margin: 0; max-width: 22ch; }
.closing .btn { background: var(--signal); color: var(--ink); border-color: var(--signal); }
.closing .btn:hover { background: #ffd42e; }

/* ——— inner pages ——— */
.page-hero { padding: clamp(40px, 7vw, 80px) 0 clamp(24px, 4vw, 40px); }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); max-width: 20ch; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; max-width: 68ch; }
.prose li { margin-bottom: .4em; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); }

@media (max-width: 900px) {
    .hero-grid, .two-col, .faq, .split { grid-template-columns: 1fr; }
    .steps, .offers { grid-template-columns: 1fr; }
    .access-modes { grid-template-columns: 1fr 1fr; }
    .access-modes li { border-right: 0; padding-left: 0 !important; border-bottom: 1px solid var(--rule); }
}
@media (max-width: 560px) {
    .access-modes { grid-template-columns: 1fr; }
    .turn { grid-template-columns: 3em minmax(0, 1fr); }
}

/* the demo video, under "how a crash test works" */
.demo { margin: clamp(32px, 5vw, 56px) 0 0; scroll-margin-top: 24px; }
.demo video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; background: var(--ink); border-radius: 12px; box-shadow: 0 18px 50px rgba(21, 32, 43, .18); }
.demo figcaption { margin-top: 12px; color: var(--steel); font-size: .92rem; }
