/* TakeBackMyAccount — shared design system. Premium dark security aesthetic. */

:root {
  --bg: #0a0e17;
  --surface: #121826;
  --surface-2: #0e1420;
  --border: #1f2a3d;
  --border-soft: #182032;
  --text: #e8edf5;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --cyan: #22d3ee;
  --cyan-dim: #155e6e;
  --amber: #fbbf24;
  --red: #f87171;
  --green: #34d399;
  --radius: 14px;
  --max: 1080px;
  --max-narrow: 760px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 1.05rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { margin: 0 0 1.1em; color: var(--text); }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header (NOT sticky — scrolls away) ---------- */
.site-header {
  border-bottom: 1px solid var(--border-soft);
  background: var(--surface-2);
}
.site-header .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--text); }
.brand .dot { color: var(--cyan); }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.nav a { color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.nav a:hover { color: var(--cyan); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem);
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(34, 211, 238, 0.10), transparent 60%),
    radial-gradient(700px 380px at 10% 0%, rgba(34, 211, 238, 0.06), transparent 60%);
  border-bottom: 1px solid var(--border-soft);
}
.kicker {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.1rem;
}
.hero h1 { margin-bottom: 1.1rem; max-width: 18ch; }
.hero h1 .accent { color: var(--cyan); }
.hero .sub { color: var(--muted); font-size: clamp(1.05rem, 2.4vw, 1.3rem); max-width: 56ch; margin-bottom: 2rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 1.5rem; color: var(--muted-2); font-size: 0.92rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.95rem 2rem;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn-primary {
  background: var(--cyan);
  color: #06222b;
  box-shadow: 0 8px 28px rgba(34, 211, 238, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(34, 211, 238, 0.32); text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); text-decoration: none; }
.btn-large { font-size: 1.15rem; padding: 1.1rem 2.6rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-alt { background: var(--surface-2); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.section h2 { margin-bottom: 0.6rem; }
.section .lede { color: var(--muted); max-width: 62ch; margin-bottom: 2.2rem; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: rgba(34, 211, 238, 0.12); color: var(--cyan);
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.1rem;
  margin-bottom: 1rem;
}
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: 0.98rem; margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Diagnostic ---------- */
.diag {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(1.5rem, 4vw, 2.75rem);
}
.q { margin-bottom: 2.25rem; }
.q:last-of-type { margin-bottom: 1rem; }
.q-title { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.15rem; margin-bottom: 0.35rem; }
.q-hint { color: var(--muted-2); font-size: 0.92rem; margin-bottom: 1rem; }
.opts { display: grid; gap: 0.75rem; }
.opts.two-col { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .opts.two-col { grid-template-columns: 1fr; } }
.opt {
  display: flex; align-items: flex-start; gap: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.95rem 1.1rem;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
  background: var(--surface-2);
}
.opt:hover { border-color: var(--cyan-dim); }
.opt.selected { border-color: var(--cyan); background: rgba(34, 211, 238, 0.07); }
.opt input { accent-color: var(--cyan); margin-top: 0.3rem; flex-shrink: 0; width: 1.05rem; height: 1.05rem; }
.opt .opt-label { font-weight: 600; }
.opt .opt-desc { display: block; color: var(--muted); font-weight: 400; font-size: 0.9rem; margin-top: 0.15rem; }
.diag-actions { margin-top: 1.75rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* Results render IN PLACE below. Never auto-scroll to them. */
#diag-results { margin-top: 2.25rem; }
.result-empty { display: none; }

.verdict-band {
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.75rem;
  border: 1px solid;
}
.verdict-band .verdict-label { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.3rem; margin-bottom: 0.35rem; }
.verdict-band p { margin: 0; color: var(--text); font-size: 0.98rem; }
.verdict-strong { background: rgba(52, 211, 153, 0.08); border-color: rgba(52, 211, 153, 0.4); }
.verdict-strong .verdict-label { color: var(--green); }
.verdict-uphill { background: rgba(251, 191, 36, 0.08); border-color: rgba(251, 191, 36, 0.4); }
.verdict-uphill .verdict-label { color: var(--amber); }
.verdict-lost { background: rgba(248, 113, 113, 0.08); border-color: rgba(248, 113, 113, 0.4); }
.verdict-lost .verdict-label { color: var(--red); }

.deadline-warn {
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.07);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
}
.deadline-warn strong { color: var(--amber); font-family: "Space Grotesk", sans-serif; }
.deadline-warn p { margin: 0.4rem 0 0; font-size: 0.97rem; }

.plan-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
}
.plan-card h3 { color: var(--cyan); margin-bottom: 0.9rem; }
.plan-card ol, .plan-card ul { margin: 0 0 0.4rem 1.25rem; color: var(--text); }
.plan-card li { margin-bottom: 0.65rem; }
.plan-card li::marker { color: var(--cyan); }
.plan-card .note { color: var(--muted); font-size: 0.93rem; margin: 0.6rem 0 0; }
.plan-card code {
  background: rgba(34, 211, 238, 0.08); color: var(--cyan);
  padding: 0.1em 0.45em; border-radius: 6px; font-size: 0.9em;
}
.template-box {
  background: #0b1220;
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.4rem;
  font-size: 0.95rem;
  color: var(--text);
  white-space: pre-wrap;
  margin-top: 0.75rem;
}
.copy-hint { color: var(--muted-2); font-size: 0.85rem; margin-top: 0.5rem; }

.tag {
  display: inline-block;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.25rem 0.7rem; border-radius: 999px;
  border: 1px solid var(--cyan-dim); color: var(--cyan);
  margin-bottom: 0.9rem;
}

/* ---------- Kit lock panels ---------- */
.kit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (max-width: 760px) { .kit-grid { grid-template-columns: 1fr; } }
.lock-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.6rem;
  position: relative;
}
.lock-panel h3 { margin-bottom: 0.5rem; }
.lock-panel p { color: var(--muted); font-size: 0.97rem; margin-bottom: 1.1rem; }
.lock-label {
  display: inline-block;
  font-size: 0.82rem; font-weight: 600; color: var(--amber);
  border: 1px solid rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.07);
  padding: 0.35rem 0.85rem; border-radius: 999px;
}
.platform-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.1rem; }
.chip {
  font-size: 0.82rem; font-weight: 500; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 0.25rem 0.8rem;
  background: var(--surface-2);
}

/* ---------- Buy section ---------- */
.buy-box {
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.06), rgba(34, 211, 238, 0.02));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}
.buy-box .price { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: clamp(2.6rem, 6vw, 4rem); color: var(--text); }
.buy-box .price-note { color: var(--muted); margin-bottom: 1.75rem; }
.buy-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid var(--border); border-radius: 12px;
  margin-bottom: 0.9rem; background: var(--surface); overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 1.15rem 1.4rem;
  font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.05rem;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--cyan); }
.faq-item .faq-body { padding: 0 1.4rem 1.4rem; color: var(--muted); }
.faq-item .faq-body p { color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border-soft); background: var(--surface-2); padding: 3rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { margin-bottom: 0.9rem; color: var(--text); font-size: 0.95rem; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-grid a { color: var(--muted); font-size: 0.93rem; }
.footer-grid a:hover { color: var(--cyan); }
.footer-brand { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.1rem; margin-bottom: 0.6rem; }
.footer-brand .dot { color: var(--cyan); }
.footer-tagline { color: var(--muted-2); font-size: 0.92rem; max-width: 34ch; }
.footer-bottom { border-top: 1px solid var(--border-soft); padding-top: 1.5rem; color: var(--muted-2); font-size: 0.85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Kit page ---------- */
.kit-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-bottom: 1px solid var(--border-soft); }
.kit-hero .paid-note {
  display: inline-block; margin-top: 1.25rem;
  border: 1px solid rgba(52, 211, 153, 0.45); background: rgba(52, 211, 153, 0.07);
  color: var(--green); font-weight: 600; font-size: 0.95rem;
  padding: 0.6rem 1.2rem; border-radius: 999px;
}
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem 1.75rem; margin-bottom: 2.5rem; }
.toc h3 { margin-bottom: 0.75rem; }
.toc ol { margin-left: 1.25rem; color: var(--muted); }
.toc li { margin-bottom: 0.35rem; }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--cyan); }

.playbook {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 2rem;
}
.playbook h2 { margin-bottom: 0.4rem; }
.playbook .form-link {
  display: inline-block; margin: 0.75rem 0 1.5rem;
  font-family: "Space Grotesk", sans-serif; font-weight: 600;
  border: 1px solid var(--cyan-dim); border-radius: 10px; padding: 0.7rem 1.3rem;
  background: rgba(34, 211, 238, 0.07);
}
.playbook .form-link:hover { text-decoration: none; border-color: var(--cyan); }
.playbook h3 { color: var(--cyan); margin: 1.75rem 0 0.75rem; font-size: 1.1rem; }
.playbook ol, .playbook ul { margin: 0 0 0.6rem 1.25rem; }
.playbook li { margin-bottom: 0.6rem; }
.playbook .deadline { color: var(--amber); }
.gotcha {
  border-left: 3px solid var(--amber);
  background: rgba(251, 191, 36, 0.05);
  padding: 1rem 1.25rem; border-radius: 0 10px 10px 0;
  margin-bottom: 0.9rem;
}
.gotcha p { margin: 0; font-size: 0.95rem; }
.gotcha strong { color: var(--amber); }
.rules-list { counter-reset: rule; }
.rule-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); padding: 1.4rem 1.6rem; margin-bottom: 1rem;
}
.rule-card h3 { margin-bottom: 0.4rem; }
.rule-card h3 .n { color: var(--cyan); margin-right: 0.5rem; }
.rule-card p { color: var(--muted); margin: 0; font-size: 0.97rem; }

.checklist { list-style: none; margin-left: 0 !important; }
.checklist li { padding-left: 2rem; position: relative; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.42em;
  width: 0.95em; height: 0.95em; border: 2px solid var(--cyan);
  border-radius: 4px;
}

hr.soft { border: none; border-top: 1px solid var(--border-soft); margin: 2.5rem 0; }

/* Articles list on homepage */
.article-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
@media (max-width: 640px) { .article-links { grid-template-columns: 1fr; } }
.article-link {
  display: block; border: 1px solid var(--border); border-radius: 10px;
  padding: 1.1rem 1.3rem; background: var(--surface-2); color: var(--text);
}
.article-link:hover { border-color: var(--cyan); text-decoration: none; }
.article-link strong { font-family: "Space Grotesk", sans-serif; }
.article-link span { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 0.2rem; }
