/* =========================================================================
   Answr — shared stylesheet
   Dark, high-contrast, one accent ramp (indigo → teal). No framework.
   ========================================================================= */

:root {
  --bg:         #08090d;
  --bg-2:       #0d1017;
  --panel:      #12161f;
  --panel-2:    #171c27;
  --line:       #232a38;
  --line-soft:  #1a202b;

  --text:       #eef1f6;
  --text-2:     #b6bdcc;
  --muted:      #7f8798;

  --accent:     #6c8cff;
  --accent-2:   #56d1c4;
  --accent-dim: #2c3560;

  --ok:         #3ecf8e;
  --warn:       #ffcc66;
  --danger:     #e5484d;

  --radius:     14px;
  --radius-sm:  9px;
  --maxw:       1120px;

  --shadow:     0 18px 50px -12px rgba(0, 0, 0, .7);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ambient glow behind the hero */
body::before {
  content: "";
  position: fixed; inset: -30% -10% auto -10%; height: 70vh;
  background:
    radial-gradient(60% 60% at 22% 10%, rgba(108, 140, 255, .17), transparent 70%),
    radial-gradient(50% 50% at 82% 0%,  rgba(86, 209, 196, .12), transparent 70%);
  pointer-events: none; z-index: 0;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; position: relative; z-index: 1; }

h1, h2, h3 { letter-spacing: -0.022em; line-height: 1.18; margin: 0; font-weight: 660; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.06rem; }
p  { margin: 0; }

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

.muted  { color: var(--muted); }
.text-2 { color: var(--text-2); }
.small  { font-size: .875rem; }
.xsmall { font-size: .78rem; }
.center { text-align: center; }
.hidden { display: none !important; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .95rem;
  cursor: pointer; text-decoration: none;
  transition: transform .13s ease, filter .13s ease, background .13s ease, border-color .13s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #7f7bff);
  color: #06070b;
  box-shadow: 0 8px 24px -8px rgba(108, 140, 255, .65);
}
.btn-primary:hover { filter: brightness(1.09); }

.btn-outline { background: transparent; color: var(--text); border-color: var(--line); }
.btn-outline:hover { background: var(--panel-2); border-color: #33405a; }

.btn-block { display: flex; width: 100%; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 9, 13, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 64px; }

.logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.08rem; color: var(--text); letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 27px; height: 27px; border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center;
  color: #08090d; font-weight: 800; font-size: .84rem;
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--text-2); font-size: .92rem; font-weight: 500; }
.nav a:hover { color: var(--text); text-decoration: none; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; color: var(--text); padding: 7px 10px; cursor: pointer; }

/* ---------- hero ---------- */
.hero { padding: clamp(52px, 8vw, 92px) 0 clamp(40px, 6vw, 70px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 62px); align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 13px 5px 8px; border-radius: 999px;
  background: rgba(108, 140, 255, .1);
  border: 1px solid rgba(108, 140, 255, .27);
  color: #a9bcff; font-size: .8rem; font-weight: 550;
  margin-bottom: 20px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 9px var(--accent-2); }

.hero h1 .grad {
  background: linear-gradient(100deg, var(--accent) 5%, var(--accent-2) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin-top: 20px; font-size: clamp(1rem, 1.6vw, 1.14rem); color: var(--text-2); max-width: 34em; }

.hero-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

.hero-meta { display: flex; align-items: center; gap: 18px; margin-top: 22px; flex-wrap: wrap; color: var(--muted); font-size: .85rem; }
.hero-meta .tick { color: var(--accent-2); font-weight: 700; }

/* live signup indicator — only rendered when the API reports a real count > 0 */
#liveSignups {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 20px; padding: 7px 14px;
  border-radius: 999px;
  background: rgba(62, 207, 142, .08);
  border: 1px solid rgba(62, 207, 142, .26);
  color: #8fe6bd; font-size: .855rem; font-weight: 550;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); position: relative; flex: none; }
.pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--ok); opacity: .55;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }

/* ---------- demo mockup ---------- */
.mock {
  background: linear-gradient(180deg, var(--panel) 0%, #0e1219 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mock-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .015);
}
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a3140; display: block; }
.mock-title { font-size: .78rem; color: var(--muted); margin-left: 6px; }
.mock-key { margin-left: auto; font-size: .7rem; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 2px 7px; font-family: ui-monospace, Consolas, monospace; }

.mock-body { padding: 18px; display: grid; gap: 14px; }

.mock-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin-bottom: 7px; font-weight: 600; }

.mock-q {
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 13px 15px;
  font-size: .94rem; color: var(--text-2);
  position: relative;
}
.mock-q .scanline {
  position: absolute; left: 0; right: 0; height: 2px; top: 0;
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
  animation: scan 3.4s ease-in-out infinite;
  border-radius: 2px;
}
@keyframes scan { 0%, 100% { top: 4%; opacity: 0; } 12% { opacity: 1; } 50% { top: 92%; opacity: 1; } 62% { opacity: 0; } }

.mock-a {
  background: rgba(86, 209, 196, .06);
  border: 1px solid rgba(86, 209, 196, .24);
  border-left: 3px solid var(--accent-2);
  border-radius: var(--radius-sm); padding: 13px 15px;
}
.mock-a .val { font-size: 1.22rem; font-weight: 680; color: #a5efe5; font-family: ui-monospace, Consolas, monospace; }

.mock-steps { display: grid; gap: 9px; }
.mock-step { display: flex; gap: 11px; align-items: flex-start; font-size: .865rem; color: var(--text-2); }
.mock-step .n {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-dim); color: #c3cdff;
  display: grid; place-items: center; font-size: .7rem; font-weight: 700;
  margin-top: 1px;
}
.mock-foot { display: flex; align-items: center; gap: 7px; font-size: .74rem; color: var(--muted); border-top: 1px solid var(--line-soft); padding-top: 12px; }

/* ---------- sections ---------- */
section { padding: clamp(56px, 7vw, 92px) 0; position: relative; z-index: 1; }
.sec-head { max-width: 40em; margin: 0 auto clamp(34px, 4vw, 52px); text-align: center; }
.sec-head p { margin-top: 14px; color: var(--text-2); }
.kicker {
  display: block; font-size: .76rem; font-weight: 680; letter-spacing: .13em;
  text-transform: uppercase; color: var(--accent-2); margin-bottom: 12px;
}

.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); border: 0; margin: 0; }

/* ---------- comparison ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); padding: 26px;
}
.compare-card.win {
  border-color: rgba(108, 140, 255, .42);
  background: linear-gradient(165deg, rgba(108, 140, 255, .09), var(--panel) 55%);
  box-shadow: 0 0 0 1px rgba(108, 140, 255, .1), var(--shadow);
}
.compare-card h3 { display: flex; align-items: center; gap: 9px; margin-bottom: 5px; }
.compare-card .sub { font-size: .84rem; color: var(--muted); margin-bottom: 20px; }
.cmp-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.cmp-list li { display: flex; gap: 11px; align-items: flex-start; font-size: .92rem; color: var(--text-2); }
.ic { flex: none; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; font-size: .68rem; font-weight: 800; margin-top: 2px; }
.ic-yes { background: rgba(62, 207, 142, .16); color: var(--ok); }
.ic-no  { background: rgba(229, 72, 77, .15); color: var(--danger); }

.cost-callout {
  margin-top: 30px; padding: 20px 24px;
  border: 1px dashed rgba(86, 209, 196, .3);
  border-radius: var(--radius);
  background: rgba(86, 209, 196, .045);
  text-align: center; color: var(--text-2); font-size: .95rem;
}
.cost-callout strong { color: var(--accent-2); }

/* ---------- steps ---------- */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); padding: 28px 24px; position: relative;
}
.step-card .num {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #08090d; display: grid; place-items: center;
  font-weight: 780; font-size: .95rem; margin-bottom: 16px;
}
.step-card h3 { margin-bottom: 8px; }
.step-card p { color: var(--text-2); font-size: .92rem; }

/* ---------- pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.plan {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); padding: 30px 26px;
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
}
.plan.popular {
  border-color: rgba(108, 140, 255, .5);
  background: linear-gradient(170deg, rgba(108, 140, 255, .1), var(--panel) 48%);
  box-shadow: var(--shadow);
}
@media (min-width: 861px) { .plan.popular { transform: scale(1.035); } }

.plan-tag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #08090d; font-size: .7rem; font-weight: 750; letter-spacing: .06em;
  text-transform: uppercase; padding: 4px 13px; border-radius: 999px;
  white-space: nowrap;
}
.plan-name { font-size: 1.05rem; font-weight: 660; }
.plan-price { display: flex; align-items: baseline; gap: 5px; }
.plan-price .amt { font-size: 2.5rem; font-weight: 700; letter-spacing: -.03em; }
.plan-price .per { color: var(--muted); font-size: .9rem; }
.plan-note { font-size: .82rem; color: var(--accent-2); margin-top: -10px; min-height: 1.2em; }
.plan-feats { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; flex: 1; }
.plan-feats li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--text-2); }
.plan-feats .ic-yes { margin-top: 2px; }

.pay-error {
  margin-top: 18px; padding: 12px 16px; border-radius: var(--radius-sm);
  background: rgba(229, 72, 77, .1); border: 1px solid rgba(229, 72, 77, .3);
  color: #ff9ea1; font-size: .88rem;
}

.price-foot { margin-top: 26px; text-align: center; color: var(--muted); font-size: .85rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--panel); overflow: hidden;
}
.faq details[open] { border-color: #2e3849; }
.faq summary {
  cursor: pointer; padding: 17px 22px; font-weight: 580; font-size: .97rem;
  list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; font-weight: 400; flex: none; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .ans { padding: 0 22px 19px; color: var(--text-2); font-size: .92rem; }
.faq .ans p + p { margin-top: 11px; }

/* ---------- CTA band ---------- */
.cta-band {
  border: 1px solid rgba(108, 140, 255, .3);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(108, 140, 255, .13), rgba(86, 209, 196, .07));
  padding: clamp(34px, 5vw, 54px); text-align: center;
}
.cta-band p { margin: 14px auto 26px; color: var(--text-2); max-width: 32em; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line-soft); padding: 44px 0 34px; background: var(--bg-2); position: relative; z-index: 1; }
.foot-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; }
.foot-links a { color: var(--text-2); font-size: .88rem; }
.foot-bottom { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .82rem; }

/* =========================================================================
   Sub-pages (success / support / legal)
   ========================================================================= */

.page { padding: clamp(46px, 7vw, 76px) 0 clamp(56px, 8vw, 90px); min-height: 62vh; }
.page-narrow { max-width: 760px; margin: 0 auto; }

.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); padding: clamp(24px, 4vw, 38px);
}

.notice {
  border-radius: var(--radius-sm); padding: 15px 18px; font-size: .9rem;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text-2);
}
.notice-warn { border-color: rgba(255, 204, 102, .34); background: rgba(255, 204, 102, .07); color: #ffe0a3; }
.notice-ok   { border-color: rgba(62, 207, 142, .34);  background: rgba(62, 207, 142, .07);  color: #a4ecc9; }
.notice-err  { border-color: rgba(229, 72, 77, .34);   background: rgba(229, 72, 77, .08);   color: #ff9ea1; }

.keybox {
  display: flex; gap: 10px; align-items: stretch; margin: 20px 0 8px; flex-wrap: wrap;
}
.keybox code {
  flex: 1 1 300px; min-width: 0;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 15px 17px;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 1.05rem; letter-spacing: .05em; color: var(--accent-2);
  display: flex; align-items: center; word-break: break-all;
}

.field { display: block; margin-bottom: 16px; }
.field .label { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 7px; font-weight: 600; }
input[type="text"], input[type="email"] {
  width: 100%; padding: 13px 15px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-family: ui-monospace, Consolas, monospace; letter-spacing: .04em;
  outline: none;
}
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(108, 140, 255, .17); }

.steps-num { padding-left: 20px; margin: 0; color: var(--text-2); }
.steps-num li { margin-bottom: 10px; }

.spinner-lg {
  width: 30px; height: 30px; margin: 6px auto 16px;
  border: 3px solid var(--line); border-top-color: var(--accent);
  border-radius: 50%; animation: spin .75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* legal pages */
.legal h2 { font-size: 1.25rem; margin: 34px 0 12px; }
.legal h2:first-of-type { margin-top: 6px; }
.legal p, .legal li { color: var(--text-2); font-size: .945rem; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 7px; }
.legal .todo {
  color: var(--warn); font-weight: 600;
  background: rgba(255, 204, 102, .09); border-radius: 4px; padding: 1px 6px;
}

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .steps3 { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .pricing { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .compare { grid-template-columns: 1fr; }
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 8px 22px 16px;
  }
  .nav.open a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .nav.open .btn { margin-top: 12px; }
  .nav-toggle { display: block; }
}

@media (max-width: 520px) {
  .foot-grid { flex-direction: column; gap: 22px; }
  .hero-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
