/* AskLoot holding page, green design system (ported from the KeyScout prototype). Vanilla CSS. */
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #07080d; --bg2: #0e1018; --panel: #131623; --panel2: #1a1e2e; --line: #262b40;
  --text: #eef0ff; --muted: #8d93b3; --neon: #b6ff3b; --cyan: #22d3ee; --violet: #8b5cf6;
  --official: #22d3ee; --auth: #a78bfa; --grey: #c3cad9; --danger: #fb7185; --spons: #ff4fd8;
  --grad: linear-gradient(90deg, var(--neon), var(--cyan));
  --r: 14px;
  --maxw: 1240px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.5; }
body {
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(139, 92, 246, 0.14), transparent 60%),
    radial-gradient(700px 400px at 0% 10%, rgba(182, 255, 59, 0.08), transparent 60%),
    var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--neon); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, svg { display: block; }
button { font-family: inherit; cursor: pointer; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); font-weight: 500; }
.skip { position: absolute; left: -999px; top: 0; background: var(--neon); color: #0a0d02; padding: 8px 12px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { left: 12px; top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* Top bar */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(7, 8, 13, 0.78); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(38, 43, 64, 0.6); }
.topbar { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 22px; letter-spacing: -0.5px; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo img { width: 34px; height: 34px; border-radius: 9px; }
.logo-word span { color: var(--neon); }
.topnav { display: flex; gap: 22px; align-items: center; font-size: 14px; color: var(--muted); }
.topnav a { color: var(--muted); }
.topnav a:hover { color: var(--text); text-decoration: none; }

/* Buttons */
.btn-primary {
  background: var(--neon); color: #0a0d02; border: 0; border-radius: 12px; font-weight: 800; font-size: 16px;
  padding: 14px 20px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap;
  transition: transform 0.1s, box-shadow 0.2s;
}
.btn-primary:hover { box-shadow: 0 0 24px rgba(182, 255, 59, 0.5); text-decoration: none; color: #0a0d02; }
.btn-primary:active { transform: scale(0.97); }
.btn-primary.sm { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.topnav .btn-primary, .topnav .btn-primary:hover { color: #0a0d02; }
.kbd { font-size: 11px; font-weight: 700; background: rgba(0, 0, 0, 0.15); padding: 2px 6px; border-radius: 5px; }
.btn-ghost { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; font-weight: 600; font-size: 14px; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.btn-ghost:hover { border-color: #3b4262; background: var(--panel2); text-decoration: none; color: var(--text); }
.btn-disabled { background: var(--panel2); color: var(--muted); border: 1px dashed #3b4262; border-radius: 12px; font-weight: 700; font-size: 15px; padding: 13px 18px; display: flex; justify-content: center; cursor: not-allowed; }
.link-muted { background: none; border: 0; color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.link-muted:hover { color: var(--text); }

/* Hero */
.hero { position: relative; text-align: center; padding: 64px 0 40px; }
.hero-glow { position: absolute; inset: 0 15% auto; height: 320px; background: radial-gradient(closest-side, rgba(182, 255, 59, 0.12), transparent); filter: blur(20px); pointer-events: none; }
.hero > .container { position: relative; }
.eyebrow { display: inline-block; margin: 0 0 14px; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(182, 255, 59, 0.35); color: var(--neon); font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.eyebrow.plain { border: 0; padding: 0; }
h1 { font-size: clamp(34px, 5.4vw, 64px); line-height: 1.02; margin: 0 0 16px; font-weight: 900; letter-spacing: -2px; }
.neon { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { color: var(--muted); font-size: 17px; max-width: 620px; margin: 0 auto 32px; }

.prompt {
  position: relative; display: flex; align-items: center; gap: 10px; max-width: 820px; margin: 0 auto; background: var(--panel);
  border: 1.5px solid var(--line); border-radius: 18px; padding: 8px 8px 8px 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(182, 255, 59, 0);
}
.prompt:focus-within { border-color: var(--neon); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(182, 255, 59, 0.12), 0 0 40px rgba(182, 255, 59, 0.15); }
.prompt-icon { color: var(--neon); font-size: 20px; line-height: 1; }
.prompt input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text); font-size: 19px; padding: 14px 4px; font-family: inherit; }
.prompt input::placeholder { color: #5d6384; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 860px; margin: 18px auto 0; }
.chip { background: var(--bg2); border: 1px solid var(--line); color: #c9cdea; border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 500; }
.chip:hover { border-color: var(--neon); color: var(--text); }

.hero-row { display: flex; gap: 20px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.seg { display: inline-flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.seg button { background: transparent; border: 0; color: var(--muted); padding: 9px 14px; border-radius: 9px; font-weight: 700; font-size: 14px; }
.seg button.on { background: var(--panel2); color: var(--text); box-shadow: inset 0 0 0 1px #3b4262; }
.seg button[data-mode="grey"].on { color: var(--grey); }
.seg button[data-mode="official"].on { color: var(--official); }
.seg.sm button { padding: 6px 10px; font-size: 13px; }
.trust-strip { display: flex; justify-content: center; gap: 34px; margin-top: 40px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.trust-strip b { color: var(--text); }
.fine { color: #6f7596; font-size: 13px; margin: 14px 0 0; }

/* Mock reply */
.reply { max-width: 820px; margin: 16px auto 0; text-align: left; display: none; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 18px; background: linear-gradient(180deg, var(--panel), var(--bg2)); border: 1px solid var(--line); border-top: 3px solid var(--neon); }
.reply.show { display: flex; animation: fade 0.2s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.reply .avatar { flex: none; width: 36px; height: 36px; border-radius: 9px; }
.reply p { margin: 0 0 6px; color: #c9cdea; }
.reply .asked { color: var(--muted); font-size: 14px; word-break: break-word; }
.reply .asked .label { color: var(--neon); font-weight: 800; text-transform: uppercase; font-size: 11px; letter-spacing: 1.5px; margin-right: 8px; }
.reply .asked q { color: var(--text); }
.reply .soon { font-weight: 900; font-size: 20px; letter-spacing: -0.4px; color: var(--text); }
.reply .actions { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.reply .actions .btn-primary { padding: 10px 16px; font-size: 15px; }

/* Sections */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 28px; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 900; letter-spacing: -1px; line-height: 1.1; margin: 0 0 12px; }
.section-head p { color: var(--muted); margin: 0; font-size: 16px; }

/* Preview (example data) */
.preview { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.preview-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 18px; }
.summary-line { font-size: 15px; margin-bottom: 10px; }
.summary-label { color: var(--neon); font-weight: 800; text-transform: uppercase; font-size: 11px; letter-spacing: 1.5px; margin-right: 8px; }
.summary-line q { color: #c9cdea; }
.parsed { display: flex; flex-wrap: wrap; gap: 8px; }
.pchip { display: inline-flex; gap: 6px; align-items: center; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; font-size: 13px; }
.pchip i { font-style: normal; color: var(--muted); }
.example-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; color: var(--cyan); background: rgba(34, 211, 238, 0.08); border: 1px dashed rgba(34, 211, 238, 0.5); padding: 5px 12px; border-radius: 999px; letter-spacing: 0.3px; white-space: nowrap; }
.example-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.results-title { margin: 0 0 14px; font-size: 24px; font-weight: 900; letter-spacing: -0.5px; }
.answers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.acard { position: relative; background: linear-gradient(180deg, var(--panel), var(--bg2)); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.acard.k-cheap { border-top: 3px solid var(--neon); }
.acard.k-safe { border-top: 3px solid var(--auth); }
.acard.k-off { border-top: 3px solid var(--official); }
.acard-kind { font-size: 12px; font-weight: 900; letter-spacing: 1.6px; text-transform: uppercase; display: flex; justify-content: space-between; gap: 8px; }
.k-cheap .acard-kind { color: var(--neon); } .k-safe .acard-kind { color: var(--auth); } .k-off .acard-kind { color: var(--official); }
.acard-kind small { color: var(--muted); letter-spacing: 0; text-transform: none; font-weight: 600; }
.price { font-size: 38px; font-weight: 900; letter-spacing: -1px; line-height: 1; }
.price small { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: 0; margin-left: 6px; }
.save { font-size: 12px; color: var(--neon); font-weight: 700; }
.seller-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; font-size: 16px; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; border: 1px solid; letter-spacing: 0.3px; white-space: nowrap; }
.b-official { color: var(--official); border-color: rgba(34, 211, 238, 0.4); background: rgba(34, 211, 238, 0.08); }
.b-authorised { color: var(--auth); border-color: rgba(167, 139, 250, 0.4); background: rgba(167, 139, 250, 0.08); }
.b-grey { color: var(--grey); border-color: rgba(195, 202, 217, 0.4); background: rgba(195, 202, 217, 0.08); }
.b-neutral { color: #c9cdea; border-color: var(--line); background: var(--bg); }
.b-spons { color: #fff; border-color: var(--spons); background: var(--spons); }
.b-over { color: var(--danger); border-color: rgba(251, 113, 133, 0.4); }
.rating { font-size: 13px; color: var(--muted); }
.rating b { color: var(--text); }
.risk { font-size: 13px; color: #b9bedb; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; flex: 1; }
.risk b { color: var(--text); }
.fineprint { color: var(--muted); font-size: 12px; margin: 14px 0 0; }

/* Trust */
.trust-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
.trust-line { font-size: clamp(24px, 3vw, 34px); }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; color: var(--muted); }
.ticks li strong { color: var(--text); }
.ticks svg { flex: none; margin-top: 3px; color: var(--neon); }
.labels { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.labels h3 { margin: 0 0 4px; font-size: 17px; font-weight: 800; }
.labels > p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.label-row span:last-child { color: var(--muted); font-size: 14px; text-align: right; }

/* Waitlist */
.card-glass { background: linear-gradient(180deg, var(--panel), var(--bg2)); border: 1px solid var(--line); border-radius: 20px; }
.waitlist-card { max-width: 760px; margin: 0 auto; padding: 36px; text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.waitlist-card .sub { margin-bottom: 0; }
/* DOM order is email, consent, button (= Tab order). Desktop grid puts the button beside the email field. */
.waitlist-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; max-width: 540px; margin: 22px auto 0; }
.waitlist-form .input { grid-column: 1; grid-row: 1; }
.waitlist-form .btn-primary { grid-column: 2; grid-row: 1; }
.waitlist-form .consent { grid-column: 1 / -1; grid-row: 2; margin: 14px 0 0; }
.input { flex: 1; min-width: 0; font: inherit; font-size: 16px; color: var(--text); background: var(--bg2); border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px; }
.input:focus { border-color: var(--neon); outline: none; box-shadow: 0 0 0 4px rgba(182, 255, 59, 0.12); }
.form-note { color: #6f7596; font-size: 13px; margin: 12px 0 0; }
.form-msg { margin: 14px auto 0; max-width: 540px; font-size: 15px; min-height: 1.4em; }
.form-msg.ok { color: var(--neon); }
.form-msg.info { color: var(--cyan); }
.form-msg.err { color: var(--danger); }

/* About strip */
.about-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.about-strip p { color: var(--muted); }

/* Content pages */
.page { padding: 56px 0 72px; }
.page .container { max-width: 780px; }
.page h1 { font-size: clamp(32px, 4.4vw, 48px); letter-spacing: -1.5px; margin: 0 0 18px; }
.page h2 { font-size: 22px; letter-spacing: -0.5px; margin: 32px 0 8px; }
.page p, .page li { color: #c9cdea; }
.page .lead { font-size: 18px; color: var(--muted); }
.page .btn-primary { margin-top: 8px; }
.note { border: 1px dashed #3b4262; border-radius: 12px; padding: 14px 16px; color: var(--muted); background: rgba(255, 255, 255, 0.02); font-size: 14px; }
.contact-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin: 18px 0; }
.contact-card p { margin: 4px 0; }
.contact-card .email { font-size: 20px; font-weight: 800; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: #6f7596; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; }
.footer-grid .logo { font-size: 19px; }
.footer-grid .logo img { width: 28px; height: 28px; border-radius: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: flex-end; }
.footer-links a { color: var(--muted); }
.disclosure { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(38, 43, 64, 0.6); }
.disclosure p { margin: 0 0 6px; }

/* Responsive */
@media (max-width: 980px) {
  .answers { grid-template-columns: 1fr; }
  .trust-grid, .about-strip { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .topnav a:not(.btn-primary) { display: none; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .topbar { height: 60px; }
  .hero { padding: 36px 0 28px; }
  h1 { letter-spacing: -1.2px; }
  .sub { font-size: 16px; }
  .prompt { flex-wrap: wrap; padding: 10px 10px 10px 16px; }
  .prompt-icon { flex: 0 0 auto; }
  .prompt input { flex: 1 1 0; font-size: 17px; }
  .prompt .btn-primary { flex: 1 0 100%; }
  .btn-primary { justify-content: center; }
  .seg button { padding: 8px 9px; font-size: 13px; }
  .trust-strip { gap: 10px 22px; margin-top: 28px; }
  section { padding: 48px 0; }
  .preview { padding: 14px; }
  .waitlist-form { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
  .waitlist-form .input, .waitlist-form .consent, .waitlist-form .btn-primary { grid-column: 1; grid-row: auto; }
  .waitlist-form .consent { margin: 2px 0; }
  .waitlist-card { padding: 26px 18px; }
  .label-row { flex-direction: column; align-items: flex-start; }
  .label-row span:last-child { text-align: left; }
  .reply { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reply.show { animation: none; }
  .btn-primary { transition: none; }
}

/* Waitlist form (Worker endpoint /api/waitlist) */
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 14px auto 0; text-align: left; color: var(--muted); font-size: 14px; line-height: 1.45; cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--neon); cursor: pointer; }
.consent.invalid span { color: var(--danger); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-success { max-width: 540px; margin: 22px auto 0; padding: 18px 20px; border: 1.5px solid var(--neon); border-radius: 14px; background: rgba(182, 255, 59, 0.07); }
.form-success p { margin: 0; color: var(--text); }
.form-success p + p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.form-success .form-success-title { color: var(--neon); font-weight: 800; font-size: 18px; }
.waitlist-form[hidden], .form-success[hidden] { display: none !important; }
