:root {
  --bg-1: #0f172a;
  --bg-2: #1e293b;
  --card: #16213a;
  --line: #334155;
  --text: #f8fafc;
  --muted: #94a3b8;
  --blue: #2563eb;
  --blue-soft: #bfdbfe;
  --green: #22c55e;
  --lime: #84cc16;
  --yellow: #eab308;
  --orange: #f97316;
  --red: #ef4444;
}

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

html {
  background: linear-gradient(150deg, var(--bg-1) 0%, #14224e 100%) fixed;
  min-height: 100%;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  min-height: 100vh;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { letter-spacing: -0.02em; }

.wrap { max-width: 860px; margin: 0 auto; padding: 48px 20px 80px; }

.brand {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 42px;
}
.brand-left { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand .logo { width: 30px; height: 30px; flex-shrink: 0; }
.wordmark {
  font-weight: 700; font-size: 16px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text); white-space: nowrap;
}
.wordmark em { font-style: normal; color: var(--green); }
.brand-tool {
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); font-weight: 500; white-space: nowrap;
}
.badge-gold {
  font-size: 11.5px; letter-spacing: 1.5px; text-transform: uppercase;
  font-weight: 700; color: var(--yellow);
  border: 1px solid #eab30866; background: #eab30818;
  border-radius: 999px; padding: 6px 14px; white-space: nowrap;
}

.badge-member {
  position: relative; overflow: hidden;
  font-size: 11.5px; letter-spacing: 1.5px; text-transform: uppercase;
  font-weight: 800; color: #241a02;
  background: linear-gradient(135deg, #f8d968, #eab308 55%, #d99e06);
  border: 1px solid #f8d968; border-radius: 999px; padding: 7px 15px;
  white-space: nowrap; box-shadow: 0 0 18px #eab30855;
}
.badge-member::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 40%;
  left: -60%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, #ffffff88, transparent);
  animation: badge-shine 3.2s ease-in-out infinite;
}
@keyframes badge-shine {
  0% { left: -60%; }
  45%, 100% { left: 130%; }
}

.member-note {
  display: flex; align-items: center; gap: 10px;
  margin: -14px 0 30px; padding: 12px 16px; max-width: 640px;
  background: linear-gradient(135deg, #eab30819, #22c55e12);
  border: 1px solid #eab30855; border-radius: 12px;
  font-size: 14px; color: #fde68a; font-weight: 400; line-height: 1.5;
}
.member-note .mn-star { color: var(--yellow); font-size: 16px; flex-shrink: 0; }

h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 700; line-height: 1.15; margin-bottom: 14px; }
.sub { color: var(--muted); font-size: 18px; font-weight: 300; margin-bottom: 36px; max-width: 560px; }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 26px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; }
@media (max-width: 720px) { .form-row { grid-template-columns: 1fr; } }

.field { position: relative; }
.field label {
  display: block; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.field input {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg-1);
  color: var(--text); font-family: inherit; font-size: 16px; outline: none;
}
.field input:focus { border-color: var(--blue); }

.suggestions {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 20;
  background: var(--bg-1); border: 1px solid var(--line); border-radius: 12px;
  margin-top: 6px; overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,.45);
}
.suggestions button {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; padding: 12px 16px; background: none; border: none;
  color: var(--text); font-family: inherit; font-size: 15px; cursor: pointer; text-align: left;
}
.suggestions button:hover, .suggestions button.active { background: var(--card); }
.suggestions .type { font-size: 11px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }

.go {
  align-self: end; padding: 14px 26px; border-radius: 12px; border: none;
  background: var(--blue); color: #fff; font-family: inherit; font-weight: 600;
  font-size: 16px; cursor: pointer; transition: transform .1s, background .2s;
  white-space: nowrap;
}
.go:hover { background: #1e40af; }
.go:active { transform: scale(.98); }
.go:disabled { opacity: .55; cursor: wait; }

.error { color: var(--red); margin-top: 14px; font-size: 15px; }
.notice { color: var(--yellow); margin-top: 14px; font-size: 15px; }

/* ---- results ---- */
.result { margin-top: 34px; animation: rise .5s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; } }

.result-head { text-align: center; margin-bottom: 8px; }
.result-head h2 { font-size: 26px; font-weight: 600; }
.result-head .place { color: var(--muted); font-weight: 300; margin-top: 4px; }
.cached-tag { font-size: 12px; color: var(--muted); margin-top: 6px; }

.dial-wrap { display: flex; justify-content: center; margin: 10px 0 6px; }
.dial { position: relative; width: 240px; height: 240px; }
.dial svg { transform: rotate(135deg); }
.dial circle { fill: none; stroke-width: 20; stroke-linecap: round; }
.dial .track { stroke: var(--line); }
.dial .fill { transition: stroke-dashoffset 1.4s cubic-bezier(.22,1,.36,1); }
.dial-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.dial-center .num { font-size: 64px; font-weight: 700; line-height: 1; }
.dial-center .lbl { font-size: 15px; color: var(--muted); margin-top: 2px; }
.grade-big { font-size: 22px; font-weight: 700; margin-top: 6px; }

.factors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 26px 0; }
@media (max-width: 720px) { .factors { grid-template-columns: repeat(2, 1fr); } }
.factor {
  position: relative;
  background: var(--bg-1); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 14px; text-align: center;
}
.factor-info {
  position: absolute; top: 7px; right: 7px;
  width: 17px; height: 17px; border-radius: 50%;
  border: 1px solid var(--muted); color: var(--muted);
  font-size: 11px; line-height: 15px; text-align: center;
  cursor: help; font-family: Georgia, 'Times New Roman', serif; font-style: italic;
  outline: none; user-select: none;
}
.factor-info .tip {
  display: none; position: absolute; z-index: 40;
  top: 24px; right: -4px; width: 230px; max-width: 62vw;
  background: #0b1220; border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 13px; font-size: 12.5px; line-height: 1.5;
  font-family: 'Inter', sans-serif; font-style: normal; font-weight: 300;
  color: var(--text); text-align: left; box-shadow: 0 14px 34px rgba(0,0,0,.55);
}
.factor-info:hover .tip, .factor-info:focus .tip { display: block; }
.factor .fg { font-size: 34px; font-weight: 700; }
.factor .fl { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.3; }

.locked-zone { position: relative; }
.blurred { filter: blur(7px); pointer-events: none; user-select: none; }
.gate {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  z-index: 5;
}
.gate-card {
  background: var(--card); border: 1px solid var(--blue); border-radius: 16px;
  padding: 26px; max-width: 420px; width: 92%; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.gate-card h3 { font-size: 20px; margin-bottom: 8px; }
.gate-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }
.gate-card form { display: flex; gap: 8px; }
.gate-card input {
  flex: 1; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-1); color: var(--text); font-family: inherit; font-size: 15px; outline: none;
}
.gate-card input:focus { border-color: var(--blue); }

.verdict {
  background: linear-gradient(135deg, #22c55e1c 0%, #16a34a0d 55%, #22c55e14 100%);
  border: 1px solid #22c55e33;
  border-radius: 6px; padding: 20px 22px; font-size: 16px; line-height: 1.65;
  font-weight: 300; margin-bottom: 24px;
}

.stats h4 { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 500; font-size: 12.5px; text-transform: uppercase; letter-spacing: 1px; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
th.num { text-align: right; }

.money-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 720px) { .money-tiles { grid-template-columns: 1fr; } }
.money-tile {
  background: var(--bg-1); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 16px; text-align: center;
}
.money-tile .mv { font-size: 24px; font-weight: 700; color: var(--green); }
.money-tile .ml { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.tile-note { font-size: 12.5px; color: var(--muted); margin-top: 8px; font-weight: 300; }

.money-tile .mo { font-size: 14px; color: var(--muted); font-weight: 500; }

.synth { display: flex; flex-direction: column; gap: 18px; }
.synth-row { }
.synth-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.synth-top .sl { font-size: 15px; font-weight: 600; }
.synth-top .sg { font-size: 18px; font-weight: 700; }
.synth-bar {
  height: 10px; border-radius: 999px; background: var(--bg-1);
  border: 1px solid var(--line); overflow: hidden;
}
.synth-fill {
  height: 100%; width: 0; border-radius: 999px;
  transition: width 1.2s cubic-bezier(.22,1,.36,1);
}
.synth-take { font-size: 13.5px; color: var(--muted); margin-top: 7px; font-weight: 300; }

.signals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 720px) { .signals { grid-template-columns: 1fr; } }
.signal {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--bg-1); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 16px; font-size: 14.5px;
}
.signal span { color: var(--muted); }
.signal strong { font-weight: 600; white-space: nowrap; }

.raw-data {
  margin-top: 6px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg-1); padding: 0 18px;
}
.raw-data summary {
  cursor: pointer; padding: 14px 0; font-size: 14px; color: var(--blue-soft);
  font-weight: 500; list-style-position: inside;
}
.raw-data[open] { padding-bottom: 16px; }
.raw-data .stats h4:first-child { margin-top: 6px; }

.subniche-box {
  background: var(--bg-1); border: 1px solid var(--line); border-radius: 12px;
  padding: 4px 18px 16px; margin-bottom: 18px;
}
.sn-sub { font-size: 13.5px; color: var(--muted); font-weight: 300; line-height: 1.55; margin: 2px 0 14px; }
.sn-member-tag { color: var(--yellow); font-size: 11px; letter-spacing: 1px; margin-left: 8px; }
.subniche-box .go { font-size: 14.5px; padding: 12px 20px; }
.sn-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 11px 2px; border-bottom: 1px solid var(--line);
}
.sn-row:last-child { border-bottom: none; }
.sn-kw { font-weight: 600; font-size: 15px; text-transform: capitalize; }
.sn-meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.sn-low { color: var(--green); } .sn-med { color: var(--yellow); } .sn-high { color: var(--orange); }
.sn-score {
  flex-shrink: 0; padding: 9px 16px; border-radius: 9px; background: var(--blue);
  color: #fff; font-weight: 600; font-size: 13px; text-decoration: none; white-space: nowrap;
}

.serp-shot {
  display: block; max-width: 100%; margin: 4px 0 6px;
  border: 1px solid var(--line); border-radius: 8px;
}

.next-step {
  margin-top: 30px; text-align: center; position: relative;
  background: linear-gradient(145deg, #1e3a8a55, #22c55e22);
  border: 2px solid var(--green); border-radius: 18px; padding: 38px 26px 28px;
  box-shadow: 0 0 50px #22c55e2e;
}
.ns-kicker {
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--green); font-weight: 700; margin-bottom: 10px;
}
.next-step h3 { font-size: clamp(24px, 3.5vw, 30px); margin-bottom: 12px; }
.next-step p { color: #cbd5e1; font-size: 16px; line-height: 1.65; max-width: 540px; margin: 0 auto 22px; font-weight: 300; }
.cta-skool {
  display: inline-block; padding: 18px 44px; border-radius: 14px;
  background: var(--green); color: #052e16; font-weight: 700; text-decoration: none;
  font-size: 19px; animation: pulse 2.2s ease-in-out infinite;
  transition: transform .12s;
}
.cta-skool:hover { transform: scale(1.04); animation-play-state: paused; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 #22c55e66; }
  50% { box-shadow: 0 0 0 14px #22c55e00; }
}
.cta-urgency { margin-top: 12px; font-size: 14px; color: var(--green); font-weight: 500; }

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; text-align: left; }
@media (max-width: 720px) { .quotes { grid-template-columns: 1fr; } }
.quote {
  background: var(--bg-1); border: 1px solid var(--line); border-radius: 12px; padding: 16px;
}
.quote p { font-size: 13.5px; color: var(--text); line-height: 1.55; margin: 0 0 10px; max-width: none; font-weight: 300; }
.quote .qn { font-size: 12px; color: var(--muted); font-weight: 500; }

.share {
  display: flex; gap: 10px; align-items: center; margin-top: 28px;
  background: var(--bg-1); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
.share input { flex: 1; background: none; border: none; color: var(--muted); font-family: inherit; font-size: 14px; outline: none; }
.share button {
  padding: 9px 16px; border-radius: 9px; border: none; background: var(--blue);
  color: #fff; font-family: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer;
}

.cta-again { text-align: center; margin-top: 30px; }
.cta-again a {
  display: inline-block; padding: 14px 28px; border-radius: 12px;
  background: var(--green); color: #052e16; font-weight: 700; text-decoration: none; font-size: 16px;
}

.foot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 60px; font-weight: 300; }
.foot a { color: var(--blue-soft); text-decoration: none; }

.fallback-note { font-size: 13px; color: var(--yellow); margin-top: 10px; text-align: center; }
