/* ============================================
   SpinBetter App India — Core Stylesheet
   ============================================ */

:root {
  /* Extracted from brand screenshots */
  --bg-0: #061912;          /* deepest green-black */
  --bg-1: #0b2620;          /* card surface */
  --bg-2: #0f332a;          /* raised surface */
  --bg-3: #154236;          /* border / hairline */
  --ink: #eaf3ec;           /* primary text */
  --ink-dim: #9db4a6;       /* secondary text */
  --ink-faint: #607b6e;     /* tertiary / meta */

  --acid: #d3fb4c;          /* primary CTA, lime accent */
  --acid-deep: #a8d030;
  --magenta: #c06bff;       /* secondary accent */
  --magenta-deep: #8a3ee0;
  --gold: #ffd76a;          /* highlight */
  --danger: #ff6b6b;

  --ring: rgba(211, 251, 76, 0.35);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --maxw: 1180px;
  --pad: clamp(16px, 3vw, 28px);

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Atmospheric background — subtle radial glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(800px 500px at 10% -10%, rgba(192, 107, 255, 0.08), transparent 60%),
    radial-gradient(900px 600px at 110% 0%, rgba(211, 251, 76, 0.06), transparent 60%),
    radial-gradient(600px 400px at 50% 110%, rgba(192, 107, 255, 0.05), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

main, header, footer { position: relative; z-index: 1; }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 2em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); margin-top: 1.6em; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }
a { color: var(--acid); text-decoration: none; border-bottom: 1px dashed rgba(211,251,76,0.35); transition: color .18s, border-color .18s; }
a:hover { color: #fff; border-bottom-color: #fff; }

ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.35em; }

strong { color: #fff; font-weight: 700; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg-2); padding: 2px 6px; border-radius: 4px; font-size: 0.92em; }

/* Layout container */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(6, 25, 18, 0.72);
  border-bottom: 1px solid var(--bg-3);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  border: 0;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--acid); }
.brand-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--acid) 0%, #7ed957 100%);
  display: grid; place-items: center;
  color: #0b2620; font-weight: 900; font-size: 1.1rem;
  box-shadow: 0 0 0 2px rgba(211,251,76,0.15);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--ink-dim);
  border: 0;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background .18s, color .18s;
}
.nav-links a:hover, .nav-links a.active {
  color: #fff;
  background: var(--bg-2);
}
.nav-cta { margin-left: 8px; }

.hamburger {
  display: none;
  width: 42px; height: 42px;
  background: var(--bg-2);
  border: 1px solid var(--bg-3);
  border-radius: 10px;
  cursor: pointer;
  align-items: center; justify-content: center;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  position: relative;
}
.hamburger span::before, .hamburger span::after {
  content: ""; position: absolute; left: 0;
  width: 18px; height: 2px; background: var(--ink);
}
.hamburger span::before { top: -6px; }
.hamburger span::after { top: 6px; }

/* Mobile nav drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: var(--bg-1);
  border-bottom: 1px solid var(--bg-3);
  padding: 20px var(--pad);
  z-index: 49;
}
.mobile-drawer a {
  display: block;
  padding: 12px 0;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid var(--bg-3);
  font-weight: 500;
}
.mobile-drawer a:last-child { border-bottom: 0; }

#menu-toggle { display: none; }
#menu-toggle:checked ~ .mobile-drawer { display: block; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .12s, box-shadow .18s, background .18s, color .18s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--acid);
  color: #061912;
  box-shadow: 0 6px 0 var(--acid-deep), 0 12px 24px rgba(211,251,76,0.15);
  border: 0;
}
.btn-primary:hover {
  transform: translateY(-1px);
  color: #061912;
  box-shadow: 0 7px 0 var(--acid-deep), 0 14px 28px rgba(211,251,76,0.22);
}
.btn-primary:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--acid-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--bg-3);
}
.btn-ghost:hover { border-color: var(--acid); color: var(--acid); background: rgba(211,251,76,0.04); }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }

/* ===== Hero ===== */
.hero {
  padding: 56px 0 40px;
  position: relative;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--acid);
  padding: 6px 12px;
  border: 1px solid rgba(211,251,76,0.3);
  border-radius: 100px;
  background: rgba(211,251,76,0.06);
  margin-bottom: 20px;
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 10px var(--acid); }

.hero h1 { margin-bottom: 18px; }
.hero h1 .highlight {
  background: linear-gradient(100deg, var(--acid) 0%, #8ee865 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  font-size: 1.12rem;
  color: var(--ink-dim);
  margin-bottom: 32px;
  max-width: 560px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-meta {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--bg-3);
  flex-wrap: wrap;
}
.hero-meta-item strong { display: block; font-size: 1.6rem; font-family: var(--font-display); color: var(--acid); line-height: 1; margin-bottom: 4px; }
.hero-meta-item span { font-size: 0.85rem; color: var(--ink-faint); }

.hero-visual {
  position: relative;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(211,251,76,0.08), rgba(192,107,255,0.04));
  border: 1px solid var(--bg-3);
}
.hero-visual img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
}

/* ===== Quick verdict box ===== */
.verdict {
  margin: 32px 0 48px;
  padding: 32px;
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
  border: 1px solid var(--bg-3);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 180px 1fr 1fr;
  gap: 32px;
  position: relative;
  overflow: hidden;
}
.verdict::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--acid), var(--magenta), var(--acid));
}
.verdict-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  border-radius: var(--radius);
  background: radial-gradient(circle at center, rgba(211,251,76,0.12), transparent 70%);
}
.verdict-score .num { font-family: var(--font-display); font-size: 3.8rem; font-weight: 800; line-height: 1; color: var(--acid); }
.verdict-score .num sup { font-size: 1.4rem; color: var(--ink-dim); }
.verdict-score .stars { color: var(--gold); letter-spacing: 3px; margin: 8px 0 4px; }
.verdict-score small { color: var(--ink-faint); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; }
.verdict-list h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-faint); margin-top: 0; margin-bottom: 14px; }
.verdict-list ul { list-style: none; padding: 0; margin: 0; }
.verdict-list li { padding-left: 26px; position: relative; margin-bottom: 10px; font-size: 0.95rem; color: var(--ink); }
.verdict-list.pros li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--acid); color: #061912; font-weight: 900; font-size: 11px;
  display: grid; place-items: center;
}
.verdict-list.cons li::before {
  content: "−"; position: absolute; left: 0; top: 0;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--magenta); color: #fff; font-weight: 900; font-size: 13px;
  display: grid; place-items: center;
}

/* ===== Content sections ===== */
article.content {
  padding: 24px 0 48px;
}
article.content > section { margin-bottom: 8px; }
article.content p, article.content li { font-size: 1.02rem; }

/* Figures */
figure {
  margin: 28px auto;
  text-align: center;
}
figure img {
  width: 90%;
  height: auto;
  max-width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--bg-3);
  display: block;
  margin: 0 auto;
}
figure.mobile-shot img {
  width: 50%;
  max-width: 300px;
}
figcaption {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--ink-faint);
  font-style: italic;
}

/* ===== Info cards grid ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 28px 0;
}
.card {
  padding: 24px;
  background: var(--bg-1);
  border: 1px solid var(--bg-3);
  border-radius: var(--radius);
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: rgba(211,251,76,0.4); transform: translateY(-2px); }
.card h4 { margin-top: 0; margin-bottom: 10px; color: var(--acid); }
.card p { margin: 0; color: var(--ink-dim); font-size: 0.95rem; }
.card-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--acid);
  padding: 2px 10px;
  border: 1px solid rgba(211,251,76,0.3);
  border-radius: 100px;
  margin-bottom: 12px;
}

/* ===== Tables ===== */
.table-wrap { overflow-x: auto; margin: 24px 0; border-radius: var(--radius); border: 1px solid var(--bg-3); }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--bg-1);
  min-width: 540px;
}
table.data th, table.data td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--bg-3);
}
table.data th {
  background: var(--bg-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--acid);
}
table.data tr:last-child td { border-bottom: 0; }
table.data td strong { color: #fff; }

/* ===== Steps ===== */
ol.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
  margin: 24px 0;
}
ol.steps > li {
  counter-increment: step;
  padding: 20px 20px 20px 72px;
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--bg-3);
  border-radius: var(--radius);
  margin-bottom: 14px;
}
ol.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 20px; top: 18px;
  width: 36px; height: 36px;
  background: var(--acid);
  color: #061912;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 10px;
  display: grid; place-items: center;
}
ol.steps > li h4 { margin: 0 0 6px; color: #fff; }
ol.steps > li p { margin: 0; color: var(--ink-dim); }
ol.steps > li p:last-child { margin-bottom: 0; }

/* ===== Callouts ===== */
.callout {
  padding: 20px 24px;
  border-radius: var(--radius);
  margin: 28px 0;
  border-left: 4px solid var(--acid);
  background: linear-gradient(90deg, rgba(211,251,76,0.08) 0%, transparent 100%);
}
.callout h4 { margin: 0 0 6px; color: var(--acid); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.callout p { margin: 0; color: var(--ink); }
.callout.warn { border-left-color: var(--magenta); background: linear-gradient(90deg, rgba(192,107,255,0.08) 0%, transparent 100%); }
.callout.warn h4 { color: var(--magenta); }

/* ===== Promo code box ===== */
.promo-box {
  margin: 32px 0;
  padding: 28px;
  background:
    radial-gradient(circle at 20% 50%, rgba(192,107,255,0.15), transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(211,251,76,0.12), transparent 50%),
    var(--bg-1);
  border: 1px solid var(--bg-3);
  border-radius: var(--radius-lg);
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}
.promo-box .promo-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin-bottom: 6px;
  font-weight: 600;
}
.promo-box .promo-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #fff;
}
.promo-box .promo-sub { color: var(--ink-dim); font-size: 0.95rem; margin: 0; }
.promo-code-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 12px 18px;
  background: #061912;
  border: 1px dashed var(--acid);
  border-radius: 12px;
}
.promo-code-chip .code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--acid);
  letter-spacing: 0.1em;
}
.copy-btn {
  background: var(--acid);
  color: #061912;
  border: 0;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background .18s;
}
.copy-btn:hover { background: #e6ff6a; }
.copy-btn.copied { background: var(--magenta); color: #fff; }

/* ===== FAQ (CSS-only accordion) ===== */
.faq { margin: 28px 0; }
.faq-item {
  border: 1px solid var(--bg-3);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--bg-1);
}
.faq-item summary {
  padding: 18px 20px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  transition: background .15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--acid);
  transition: transform .2s;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] summary { background: var(--bg-2); }
.faq-item-body { padding: 0 20px 20px; color: var(--ink-dim); font-size: 0.98rem; }
.faq-item-body p:last-child { margin-bottom: 0; }

/* ===== CTA section ===== */
.cta-section {
  margin: 48px 0;
  padding: 40px 32px;
  background:
    linear-gradient(135deg, rgba(192,107,255,0.1) 0%, rgba(211,251,76,0.08) 100%),
    var(--bg-1);
  border: 1px solid var(--bg-3);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before, .cta-section::after {
  content: "";
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  pointer-events: none;
}
.cta-section::before { background: var(--acid); top: -80px; left: -60px; }
.cta-section::after { background: var(--magenta); bottom: -80px; right: -60px; }
.cta-section > * { position: relative; z-index: 1; }
.cta-section h3 { margin-top: 0; margin-bottom: 10px; font-size: 1.6rem; }
.cta-section p { color: var(--ink-dim); margin-bottom: 22px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  padding: 18px 0 0;
  font-size: 0.85rem;
  color: var(--ink-faint);
}
.breadcrumbs a { color: var(--ink-dim); border: 0; }
.breadcrumbs a:hover { color: var(--acid); }
.breadcrumbs span { margin: 0 8px; color: var(--ink-faint); }

/* ===== Feature highlight rows ===== */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  margin: 40px 0;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-row figure { margin: 0; }

/* ===== Footer ===== */
.site-footer {
  margin-top: 80px;
  padding: 48px 0 24px;
  background: var(--bg-1);
  border-top: 1px solid var(--bg-3);
  color: var(--ink-dim);
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-col h5 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin: 0 0 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--ink-dim); border: 0; }
.footer-col a:hover { color: var(--acid); }
.footer-disclaimer {
  padding-top: 24px;
  border-top: 1px solid var(--bg-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--ink-faint);
}
.age-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--magenta);
  color: var(--magenta);
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.8rem;
}

/* ===== Utilities ===== */
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--acid);
  margin-bottom: 8px;
}
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.split-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.center-text { text-align: center; }
.mt-2 { margin-top: 32px; }
.mb-2 { margin-bottom: 32px; }

/* ===== E-E-A-T simple pages ===== */
.eeat-page { padding: 32px 0 48px; max-width: 820px; }
.eeat-page h1 { margin-bottom: 12px; }
.eeat-page .page-meta { color: var(--ink-faint); font-size: 0.88rem; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--bg-3); }
.eeat-page h2 { font-size: 1.4rem; }

/* ===== 404 ===== */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
}
.error-page .big { font-family: var(--font-display); font-size: clamp(6rem, 18vw, 12rem); font-weight: 800; color: var(--acid); line-height: 1; margin: 0; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: inline-flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .verdict { grid-template-columns: 1fr; text-align: left; }
  .verdict-score { flex-direction: row; justify-content: flex-start; text-align: left; gap: 18px; padding: 18px; }
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split-2, .split-3 { grid-template-columns: 1fr; }
  figure img { width: 100%; }
  figure.mobile-shot img { width: 65%; }
}
@media (max-width: 520px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  .verdict { padding: 20px; }
  .promo-box { padding: 20px; gap: 16px; }
  .promo-code-chip .code { font-size: 1.1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-section { padding: 28px 20px; }
  figure.mobile-shot img { width: 80%; }
}

/* Focus states */
:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
}
