/* ===================================================
   STRUCTTECH — REVENUE LEAK SCAN — SHARED STYLES
   =================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #080c18;
  --bg-card:     #0d1326;
  --bg-input:    #111827;
  --border:      #1a2744;
  --border-hl:   #2563eb;
  --blue:        #2563eb;
  --blue-hl:     #3b82f6;
  --orange:      #f97316;
  --orange-hl:   #fb923c;
  --white:       #f8fafc;
  --muted:       #64748b;
  --gray:        #94a3b8;
  --green:       #22c55e;
  --red:         #ef4444;
  --yellow:      #f59e0b;
  --font-head:   'Bebas Neue', Impact, sans-serif;
  --font-body:   'DM Sans', 'Inter', sans-serif;
  --font-mono:   'DM Mono', 'Courier New', monospace;
}

html, body { height: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--white);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-head); letter-spacing: 0.02em; line-height: 1.1; }
p { line-height: 1.6; }
a { color: var(--blue-hl); text-decoration: none; }

/* ── LOGO ── */
.st-logo {
  font-family: var(--font-head);
  font-size: 16px;
  letter-spacing: 0.15em;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
}
.st-logo .slash { color: var(--blue); }
.st-logo .sub   { color: var(--orange); font-size: 13px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  padding: 18px 32px;
}
.btn-full { width: 100%; max-width: 460px; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-hl); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(249,115,22,0.3); }
.btn-orange:active { transform: translateY(0); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-hl); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--gray);
  border: 1px solid var(--border);
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 6px;
}
.btn-ghost:hover { border-color: var(--blue-hl); color: var(--white); }

/* ── BADGES ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid;
}
.badge-blue   { color: var(--blue-hl);  border-color: #1d3a7a; background: #0a1529; }
.badge-orange { color: var(--orange);   border-color: #7c3a0a; background: #150a02; }
.badge-red    { color: var(--red);      border-color: #7a1d1d; background: #150303; }
.badge-yellow { color: var(--yellow);   border-color: #7a5a0a; background: #150f02; }
.badge-green  { color: var(--green);    border-color: #1d7a3a; background: #021508; }

/* ── TRUST PILLS ── */
.trust-pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.trust-pill {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 12px;
}
.trust-pill .ck { color: var(--green); }

/* ── PROGRESS BAR ── */
.prog-wrap { width: 100%; background: var(--border); border-radius: 4px; height: 4px; overflow: hidden; }
.prog-fill { height: 100%; background: var(--orange); border-radius: 4px; transition: width 0.4s ease; }

/* ── ANSWER BUTTONS ── */
.answer-grid { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 560px; margin: 0 auto; }
.answer-btn {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer; text-align: left;
  transition: all 0.12s ease;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px; line-height: 1.4;
  width: 100%; min-height: 58px;
  -webkit-tap-highlight-color: transparent;
}
.answer-btn:hover  { border-color: var(--blue-hl); background: #0e1c36; }
.answer-btn.sel    { border-color: var(--orange); background: #1a0d02; }
.answer-letter {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--border);
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--gray);
  flex-shrink: 0; transition: all 0.12s ease;
}
.answer-btn:hover .answer-letter, .answer-btn.sel .answer-letter { background: var(--orange); color: #fff; }

/* ── LEAK CARDS ── */
.leak-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 18px; display: flex; align-items: flex-start; gap: 14px;
  width: 100%;
}
.leak-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.leak-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; color: var(--white); }
.leak-body  { font-size: 13px; color: var(--gray); line-height: 1.5; }
.leak-card.locked .leak-body { filter: blur(5px); user-select: none; color: var(--gray); }
.lock-label { font-size: 11px; color: var(--muted); margin-top: 4px; font-style: italic; }

/* ── EMAIL FORM ── */
.email-form { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 460px; }
.email-form input {
  width: 100%;
  background: var(--bg-input); border: 2px solid var(--border); border-radius: 8px;
  color: var(--white); font-family: var(--font-body); font-size: 16px;
  padding: 14px 16px; outline: none; transition: border-color 0.15s;
}
.email-form input:focus { border-color: var(--blue-hl); }
.email-form input::placeholder { color: var(--muted); }

/* ── SCORE RING ── */
.score-ring-wrap { display: flex; flex-direction: column; align-items: center; }
.score-ring { position: relative; width: 160px; height: 160px; }
.score-ring svg { transform: rotate(-90deg); }
.ring-bg   { fill: none; stroke: var(--border); stroke-width: 14; }
.ring-fill { fill: none; stroke-width: 14; stroke-linecap: round; transition: stroke-dashoffset 1.6s cubic-bezier(.4,0,.2,1); }
.ring-text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 46px; line-height: 1;
}
.ring-sub { font-family: var(--font-mono); font-size: 9px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px; }

/* ── STAT BOXES ── */
.stat-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 460px; }
.stat-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 16px; text-align: center; }
.stat-box-val { font-family: var(--font-head); font-size: 28px; line-height: 1; }
.stat-box-lbl { font-size: 11px; color: var(--muted); margin-top: 4px; font-family: var(--font-mono); letter-spacing: 0.06em; }

/* ── DIVIDER ── */
.div { width: 100%; height: 1px; background: var(--border); margin: 24px 0; }

/* ── PAGE SHELL ── */
.page {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center;
  padding: 24px 20px 60px;
}
.page-hd {
  width: 100%; max-width: 640px;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px;
}
.page-bd {
  flex: 1; width: 100%; max-width: 640px;
  display: flex; flex-direction: column; align-items: center;
  gap: 20px;
}

/* ── TEXT UTILS ── */
.text-orange { color: var(--orange); }
.text-blue   { color: var(--blue-hl); }
.text-muted  { color: var(--muted); }
.text-green  { color: var(--green); }
.text-red    { color: var(--red); }
.text-center { text-align: center; }
.w-full      { width: 100%; }
.max-460     { max-width: 460px; width: 100%; }

/* ── HOOK PAGE SPECIFIC ── */
.hook-shell {
  min-height: 100vh; display: flex; flex-direction: column; padding: 24px 24px 40px;
  position: relative; overflow: hidden;
}
.hook-shell::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(37,99,235,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
}
.hook-shell::after {
  content: ''; position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 400px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(249,115,22,0.07) 0%, transparent 70%);
}
.hook-hd { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.hook-content {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 22px; position: relative; z-index: 1; padding: 20px 0;
}
.hook-headline { font-size: clamp(44px, 11vw, 72px); max-width: 680px; }
.hook-sub { font-size: clamp(15px, 3.5vw, 18px); color: var(--gray); max-width: 480px; line-height: 1.65; }
.hook-ft { text-align: center; position: relative; z-index: 1; }
.hook-ft p { font-size: 12px; color: var(--muted); }

/* ── BRIDGE / GENERATING ── */
.gen-bar-wrap { width: 100%; max-width: 380px; background: var(--border); border-radius: 4px; height: 6px; overflow: hidden; }
.gen-bar { height: 100%; background: linear-gradient(90deg, var(--blue), var(--orange)); border-radius: 4px; transition: width 1s linear; }

.stat-row { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-num { font-family: var(--font-head); font-size: 36px; color: var(--orange); }
.stat-lbl { font-size: 12px; color: var(--muted); font-family: var(--font-mono); letter-spacing: 0.05em; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.45; } }
.anim-up   { animation: fadeUp  0.4s ease forwards; }
.anim-in   { animation: slideIn 0.3s ease forwards; }
.anim-pulse { animation: pulse 1.8s ease infinite; }

/* ── RESPONSIVE ── */
@media (min-width: 600px) {
  .stat-boxes { max-width: 500px; }
  .hook-headline { font-size: clamp(52px, 9vw, 80px); }
}
