/* LeakFix — Raycast-inspired midnight cockpit (Refero style tokens) */
:root {
  --void: #040506;
  --ink: #07080a;
  --obsidian: #111214;
  --graphite: #1b1c1e;
  --slate: #2f3031;
  --iron: #454647;
  --smoke: #6a6b6c;
  --ash: #9c9c9d;
  --mist: #e6e6e6;
  --white: #ffffff;
  --coral: #ff6363;
  --ember: #452324;
  --info: #56c2ff;
  --ok: #59d499;
  --warn: #f5c542;
  --border: #363739;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --key-shadow: rgba(255,255,255,0.05) 0 1px 0 0 inset, rgba(255,255,255,0.22) 0 0 0 1px, rgba(0,0,0,0.25) 0 -1px 0 0 inset;
  --radius: 16px;
  --radius-sm: 8px;
  --max: 1120px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--void); color: var(--white); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--ash); text-decoration: none; }
a:hover { color: var(--white); }
img { max-width: 100%; }
code, .mono { font-family: var(--mono); font-size: 0.92em; }

.wrap { width: min(100% - 32px, var(--max)); margin: 0 auto; }
.section { padding: 96px 0; }
.section.tight { padding: 64px 0; }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--smoke); }

/* Nav */
.nav {
  position: sticky; top: 16px; z-index: 50;
  width: min(100% - 24px, var(--max)); margin: 16px auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 16px;
  background: rgba(7,8,10,0.65); backdrop-filter: blur(48px); -webkit-backdrop-filter: blur(48px);
  border: 1px solid var(--border); border-radius: 999px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 500; font-size: 14px; }
.brand-mark {
  width: 18px; height: 18px; border-radius: 4px;
  background: linear-gradient(135deg, var(--coral), #ff8f8f);
  box-shadow: 0 0 0 1px rgba(255,99,99,0.35);
}
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a { padding: 8px 12px; font-size: 13px; color: var(--ash); border-radius: 999px; }
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.04); }
.nav-cta { display: inline-flex; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500;
  border: 0; cursor: pointer; transition: transform .12s ease, background .12s ease, color .12s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--mist); color: var(--iron); }
.btn-primary:hover { background: var(--white); color: #111; }
.btn-ghost { background: transparent; color: var(--ash); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--white); border-color: #555; }
.btn-coral { background: var(--coral); color: #1a0505; }
.btn-coral:hover { filter: brightness(1.05); }
.btn-lg { padding: 14px 18px; font-size: 15px; }
.btn[disabled], .btn.is-loading { opacity: .55; pointer-events: none; }

/* Hero */
.hero { position: relative; padding: 96px 0 64px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: -10% -10% auto -10%; height: 70%; pointer-events: none;
  background:
    radial-gradient(60% 80% at 70% 20%, rgba(255,99,99,0.22), transparent 60%),
    radial-gradient(50% 70% at 20% 30%, rgba(4,63,150,0.55), transparent 65%),
    radial-gradient(40% 50% at 50% 80%, rgba(2,25,59,0.5), transparent 70%);
  filter: blur(8px);
}
.hero-inner { position: relative; text-align: center; max-width: 820px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(36px, 6vw, 56px); font-weight: 400; letter-spacing: 0.22px;
  line-height: 1.12; margin: 16px 0 16px; color: var(--white);
}
.hero .lead { color: var(--ash); font-size: 17px; max-width: 540px; margin: 0 auto 32px; line-height: 1.55; }
.badge-ai {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ember); color: #ffb4b4; border: 1px solid rgba(255,99,99,0.35);
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 500;
}

/* Scan box */
.scan-box {
  background: var(--ink); box-shadow: var(--key-shadow); border-radius: 20px;
  padding: 8px; max-width: 680px; margin: 0 auto;
}
.scan-row { display: flex; gap: 8px; flex-wrap: wrap; }
.scan-row input[type=url], .scan-row input[type=text], .scan-row input[type=email] {
  flex: 1 1 220px; min-width: 0;
  background: var(--obsidian); color: var(--white); border: 0; border-radius: var(--radius-sm);
  padding: 14px 16px; font-size: 15px; outline: none;
}
.scan-row input::placeholder { color: var(--smoke); }
.scan-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 8px 4px; flex-wrap: wrap; }
.consent { display: flex; align-items: flex-start; gap: 8px; color: var(--ash); font-size: 13px; text-align: left; }
.consent input { margin-top: 3px; accent-color: var(--coral); }
.scan-error { color: var(--coral); font-size: 13px; margin: 8px 8px 0; text-align: left; min-height: 1.2em; }
.scan-status { color: var(--ash); font-size: 13px; margin: 8px 8px 0; text-align: left; }

/* Cards / grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 800px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero { padding-top: 64px; }
  .section { padding: 64px 0; }
}
.card {
  background: var(--ink); border-radius: var(--radius); padding: 24px; box-shadow: var(--key-shadow);
}
.card h3 { margin: 12px 0 8px; font-size: 18px; font-weight: 500; }
.card p { margin: 0; color: var(--ash); font-size: 15px; line-height: 1.55; }
.icon-circle {
  width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center;
  background: var(--obsidian); color: var(--mist); font-size: 18px;
  box-shadow: inset 0 0 0 1px var(--border);
}

/* Sample findings */
.finding {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start;
  padding: 16px; border-radius: 12px; background: var(--obsidian);
  box-shadow: inset 0 0 0 1px var(--border);
}
.finding + .finding { margin-top: 10px; }
.sev {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 6px; font-weight: 500; white-space: nowrap;
}
.sev-critical { background: rgba(255,99,99,0.15); color: #ff8f8f; }
.sev-high { background: rgba(245,197,66,0.12); color: #f5c542; }
.sev-medium { background: rgba(86,194,255,0.12); color: #56c2ff; }
.sev-low, .sev-info { background: rgba(255,255,255,0.06); color: var(--ash); }
.finding h4 { margin: 0 0 4px; font-size: 15px; font-weight: 500; }
.finding p { margin: 0; color: var(--smoke); font-size: 13px; }
.blurred {
  filter: blur(5px); user-select: none; pointer-events: none;
  background: var(--graphite); border-radius: 8px; padding: 10px 12px; color: var(--ash); font-size: 13px;
}

/* Pricing */
.price-card { text-align: left; position: relative; }
.price-card.featured { box-shadow: var(--key-shadow), 0 0 0 1px rgba(255,99,99,0.35); }
.price { font-size: 40px; font-weight: 500; letter-spacing: -0.5px; margin: 8px 0; }
.price span { font-size: 15px; color: var(--ash); font-weight: 400; }
.price-card ul { list-style: none; padding: 0; margin: 16px 0 24px; }
.price-card li { padding: 8px 0; color: var(--ash); font-size: 14px; border-top: 1px solid rgba(255,255,255,0.04); }
.price-card li::before { content: "✓ "; color: var(--ok); }

/* FAQ */
.faq details {
  background: var(--ink); box-shadow: var(--key-shadow); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--smoke); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ash); margin: 12px 0 0; font-size: 15px; line-height: 1.55; }

/* Guarantee strip */
.guarantee {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  background: var(--ember); border: 1px solid rgba(255,99,99,0.3);
  border-radius: var(--radius); padding: 20px 24px;
}
.guarantee strong { color: #ffb4b4; }

/* Footer */
.footer {
  border-top: 1px solid rgba(255,255,255,0.06); padding: 40px 0 64px; color: var(--smoke); font-size: 13px;
}
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer a { color: var(--ash); margin-right: 14px; }
.footer .meta { font-family: var(--mono); font-size: 12px; color: var(--smoke); }

/* Report page */
.report-hero { padding: 48px 0 24px; }
.score-ring {
  width: 88px; height: 88px; border-radius: 999px; display: grid; place-items: center;
  background: conic-gradient(var(--ok) calc(var(--p) * 1%), var(--graphite) 0);
  box-shadow: var(--key-shadow);
}
.score-ring > span {
  width: 68px; height: 68px; border-radius: 999px; background: var(--ink);
  display: grid; place-items: center; font-size: 22px; font-weight: 500;
}
.report-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--ash); font-size: 13px; margin-top: 8px; }
.report-meta .pill {
  background: var(--graphite); padding: 4px 10px; border-radius: 999px; font-family: var(--mono); font-size: 12px;
}
.unlock-panel {
  background: linear-gradient(180deg, rgba(255,99,99,0.08), transparent 60%), var(--ink);
  box-shadow: var(--key-shadow); border-radius: 20px; padding: 24px; margin: 24px 0;
}
.unlock-panel h2 { margin: 0 0 8px; font-size: 22px; font-weight: 500; }
.fix-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.fix-row input {
  flex: 1 1 200px; background: var(--obsidian); border: 0; border-radius: var(--radius-sm);
  color: var(--white); padding: 12px 14px; font-size: 14px;
}
.fix-code {
  background: var(--obsidian); border-radius: 12px; padding: 14px 16px; margin-top: 10px;
  color: var(--mist); font-family: var(--mono); font-size: 12.5px; white-space: pre-wrap; line-height: 1.5;
  box-shadow: inset 0 0 0 1px var(--border); position: relative;
}
.copy-btn { position: absolute; top: 8px; right: 8px; }
.finding-full { background: var(--ink); box-shadow: var(--key-shadow); border-radius: 16px; padding: 20px; margin-bottom: 12px; }
.finding-full header { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.muted { color: var(--smoke); }
.hr { height: 1px; background: rgba(255,255,255,0.06); border: 0; margin: 32px 0; }
.prose { max-width: 720px; }
.prose h1 { font-size: 32px; font-weight: 500; margin: 0 0 16px; }
.prose h2 { font-size: 20px; font-weight: 500; margin: 32px 0 8px; }
.prose p, .prose li { color: var(--ash); line-height: 1.6; }
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--mist); color: var(--iron); padding: 10px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 500; box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.toast.show { opacity: 1; }

/* Focus + selection polish */
:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
::selection { background: rgba(255,99,99,0.35); color: #fff; }
.btn-primary:focus-visible { outline-color: var(--white); }
@media (max-width: 520px) {
  .scan-row { flex-direction: column; }
  .scan-row .btn { width: 100%; }
  .nav { padding-left: 12px; }
  .price { font-size: 32px; }
}
