:root {
  --ink: #07110f;
  --paper: #f4f5ef;
  --mint: #67f5c6;
  --acid: #dfff5b;
  --muted: #6d7874;
  --line: rgba(7, 17, 15, 0.16);
  --panel: rgba(255, 255, 255, 0.68);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Manrope", sans-serif; font-size: 16px; line-height: 1.6; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.grid-bg { position: fixed; inset: 0; pointer-events: none; opacity: 0.38; background-image: linear-gradient(rgba(7,17,15,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(7,17,15,.055) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to bottom, black, transparent 85%); }

.nav { height: 82px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; letter-spacing: -0.03em; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--ink); background: var(--mint); font-size: 18px; }
.nav-link { text-decoration: none; font-weight: 700; font-size: .9rem; }
.nav-link span { margin-left: 8px; }

.hero { min-height: 710px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; position: relative; padding: 88px 0 72px; }
.eyebrow, .mono { font-family: "DM Mono", monospace; text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; font-weight: 500; }
.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: #00b77b; box-shadow: 0 0 0 5px rgba(0,183,123,.12); }
.hero h1 { margin: 30px 0 24px; font-size: clamp(3rem, 7.8vw, 6.6rem); line-height: .96; letter-spacing: -.075em; font-weight: 600; }
.hero h1 em { font-family: Georgia, serif; font-weight: 400; color: #146f59; }
.hero-copy { max-width: 670px; margin: 0 auto; color: #4d5a56; font-size: 1.08rem; }
.audit-box { width: min(820px, 100%); margin-top: 46px; padding: 10px; background: #fff; border: 1px solid rgba(7,17,15,.2); box-shadow: 0 22px 55px rgba(14,52,42,.12); text-align: left; }
.audit-box > label { display: block; padding: 3px 8px 8px; font-family: "DM Mono", monospace; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.input-row { display: flex; align-items: center; min-height: 62px; background: #f5f6f1; border: 1px solid transparent; }
.input-row:focus-within { border-color: #249875; box-shadow: 0 0 0 3px rgba(36,152,117,.12); }
.protocol { padding-left: 18px; color: var(--muted); }
.input-row input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; padding: 16px 8px; font-size: 1rem; }
.input-row button { align-self: stretch; min-width: 190px; border: 0; color: white; background: var(--ink); padding: 0 22px; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: space-between; transition: background .2s, transform .2s; }
.input-row button:hover { background: #164d3f; }
.input-row button:active { transform: scale(.985); }
.input-row button:disabled { cursor: wait; opacity: .72; }
.button-arrow { color: var(--mint); font-size: 1.25rem; }
.form-message { margin: 8px 8px 0; color: var(--muted); font-size: .8rem; }
.form-message.error { color: #a52626; }
.trust-row { margin-top: 24px; display: flex; gap: 28px; color: var(--muted); font-family: "DM Mono", monospace; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.trust-row span::before { content: "✓"; color: #087d5c; margin-right: 6px; }

.hidden { display: none !important; }
.results { position: relative; margin-bottom: 100px; padding: clamp(28px, 5vw, 60px); background: var(--ink); color: #f7fbf9; border-radius: 4px; overflow: hidden; box-shadow: 0 30px 80px rgba(7,17,15,.2); }
#loading { min-height: 350px; display: flex; flex-direction: column; justify-content: center; }
.scan-line { position: absolute; left: 0; right: 0; height: 2px; top: 0; background: linear-gradient(90deg, transparent, var(--mint), transparent); animation: scan 2.4s ease-in-out infinite; }
@keyframes scan { 0% { transform: translateY(0); opacity: .3; } 50% { transform: translateY(348px); opacity: 1; } 100% { transform: translateY(0); opacity: .3; } }
#loading .mono, .results .mono { color: var(--mint); }
#loading h2 { font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -.05em; margin: 8px 0 28px; }
.loading-steps { display: flex; flex-wrap: wrap; gap: 8px; }
.loading-steps span { padding: 8px 12px; border: 1px solid rgba(255,255,255,.15); color: #9aaba5; font-size: .8rem; }
.loading-steps .active { border-color: var(--mint); color: var(--mint); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.results-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.results h2 { margin: 7px 0 4px; font-size: clamp(2.1rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -.06em; }
.tested-url { color: #96a8a2; margin: 10px 0 0; word-break: break-all; }
.ghost-button { border: 1px solid rgba(255,255,255,.25); background: transparent; color: white; padding: 11px 15px; cursor: pointer; white-space: nowrap; }
.score-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 45px 0 34px; }
.score-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); padding: 20px; }
.score-card strong { display: block; font-size: 3rem; line-height: 1; letter-spacing: -.06em; }
.score-card span { display: block; margin-top: 12px; color: #aebbb7; font-size: .8rem; }
.score-card.good strong { color: var(--mint); }
.score-card.mid strong { color: var(--acid); }
.score-card.low strong { color: #ff8a72; }
.findings-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, .7fr); gap: 12px; }
.findings-panel, .priority-card { border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); padding: 24px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: 16px; }
.panel-head h3, .priority-card h3 { margin: 0; }
.count-pill { padding: 4px 9px; border-radius: 99px; color: var(--ink); background: var(--acid); font-family: "DM Mono", monospace; font-size: .7rem; }
.finding { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; padding: 17px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.finding:last-child { border-bottom: 0; }
.finding-index { color: var(--mint); font-family: "DM Mono", monospace; font-size: .75rem; }
.finding h4 { margin: 0 0 3px; font-size: .95rem; }
.finding p { margin: 0; color: #aab7b3; font-size: .82rem; line-height: 1.45; }
.saving { color: var(--acid); font-family: "DM Mono", monospace; font-size: .7rem; white-space: nowrap; }
.priority-card { background: var(--mint); color: var(--ink); }
.priority-card .mono { color: #116d55; }
.priority-card h3 { font-size: 1.65rem; line-height: 1.12; letter-spacing: -.04em; margin: 18px 0 12px; }
.priority-card p:not(.mono) { font-size: .9rem; }
.text-link { display: flex; justify-content: space-between; border-top: 1px solid rgba(7,17,15,.22); margin-top: 24px; padding-top: 16px; text-decoration: none; font-weight: 800; }
.data-note { margin: 22px 0 0; color: #879892; font-size: .75rem; }

.proof { padding: 90px 0 110px; border-top: 1px solid var(--line); position: relative; }
.section-number { position: absolute; top: 95px; right: 0; font: 400 clamp(5rem, 14vw, 12rem)/.75 Georgia, serif; color: rgba(7,17,15,.06); }
.proof-copy { position: relative; }
.proof-copy .mono { color: #147256; }
.proof h2 { max-width: 880px; margin: 18px 0 60px; font-size: clamp(2.2rem, 5vw, 4.8rem); line-height: 1.05; letter-spacing: -.06em; font-weight: 600; }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.proof-grid article { padding: 28px 28px 0 0; }
.proof-grid article + article { border-left: 1px solid var(--line); padding-left: 28px; }
.proof-grid article > span { font-family: "DM Mono", monospace; color: #168967; font-size: .75rem; }
.proof-grid h3 { margin: 30px 0 8px; font-size: 1.3rem; }
.proof-grid p { margin: 0; color: var(--muted); font-size: .93rem; }

.offer { margin-bottom: 100px; background: #dfff5b; display: grid; grid-template-columns: 1.45fr .55fr; }
.offer-main { padding: clamp(32px, 6vw, 72px); }
.offer-main h2 { margin: 18px 0; font-size: clamp(2.3rem, 5vw, 4.5rem); line-height: 1.02; letter-spacing: -.065em; }
.offer-main > p:not(.mono) { max-width: 680px; }
.offer-main ul { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 11px; }
.offer-main li { font-weight: 600; }
.offer-main li span { margin-right: 9px; }
.price-card { background: var(--ink); color: white; padding: 36px; display: flex; flex-direction: column; justify-content: center; }
.price-label { color: var(--mint); font-family: "DM Mono", monospace; text-transform: uppercase; font-size: .72rem; letter-spacing: .1em; }
.price { font-size: clamp(4.8rem, 8vw, 7rem); font-weight: 700; line-height: 1; letter-spacing: -.08em; margin: 20px 0 12px; }
.price sup { font-size: 1.8rem; vertical-align: top; line-height: 2; }
.price-card p { color: #aebbb7; }
.buy-button { margin-top: 18px; border: 0; min-height: 58px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; color: var(--ink); background: var(--mint); font-weight: 800; cursor: pointer; }
.price-card small { margin-top: 12px; color: #83938e; }

.footer { min-height: 120px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; font-size: .8rem; color: var(--muted); }
.footer p:nth-child(2) { text-align: center; }
.footer p:last-child { text-align: right; }

dialog { width: min(500px, calc(100% - 32px)); border: 0; padding: 40px; color: var(--ink); background: var(--paper); box-shadow: 0 30px 100px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(7,17,15,.78); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; top: 12px; right: 14px; border: 0; background: transparent; font-size: 1.8rem; cursor: pointer; }
dialog h2 { font-size: 2rem; line-height: 1.1; letter-spacing: -.04em; }
.dialog-action { width: 100%; min-height: 52px; margin-top: 14px; border: 0; background: var(--ink); color: white; cursor: pointer; font-weight: 700; }

@media (max-width: 800px) {
  .hero { min-height: auto; padding-top: 90px; }
  .input-row { align-items: stretch; flex-wrap: wrap; }
  .protocol { display: flex; align-items: center; }
  .input-row input { width: calc(100% - 78px); }
  .input-row button { min-width: 100%; min-height: 56px; }
  .trust-row { gap: 12px; flex-direction: column; align-items: flex-start; }
  .score-grid { grid-template-columns: repeat(2, 1fr); }
  .findings-layout, .offer { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-grid article { padding: 24px 0; border-bottom: 1px solid var(--line); }
  .proof-grid article + article { border-left: 0; padding-left: 0; }
  .proof-grid h3 { margin-top: 14px; }
  .footer { grid-template-columns: 1fr; gap: 12px; padding: 32px 0; }
  .footer p, .footer p:nth-child(2), .footer p:last-child { margin: 0; text-align: left; }
}

@media (max-width: 520px) {
  .shell { width: min(100% - 24px, 1180px); }
  .nav { height: 70px; }
  .nav-link { font-size: .78rem; }
  .hero { align-items: stretch; text-align: left; padding: 70px 0 55px; }
  .hero h1 { font-size: 3.1rem; }
  .audit-box { margin-top: 34px; }
  .results { width: 100%; border-radius: 0; padding: 28px 18px; }
  .results-head { align-items: flex-start; flex-direction: column; }
  .score-card { padding: 15px; }
  .score-card strong { font-size: 2.45rem; }
  .finding { grid-template-columns: 22px 1fr; }
  .saving { grid-column: 2; }
  .offer { width: 100%; margin-bottom: 40px; }
  .price-card { padding: 32px 24px; }
}

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