/* ============================================================
   Score Guardians — shared.css  (2026 futuristic restyle)
   Concept: "Three guardians, one shield" — a live credit-
   monitoring console. Obsidian base, holographic aqua→violet→
   magenta signature, telemetry-style mono readouts.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* base */
  --obsidian: #06070d;
  --panel:    #0c0f1d;
  --panel-2:  #11152a;
  --line:     rgba(255,255,255,0.08);
  --line-2:   rgba(255,255,255,0.14);

  /* holographic signature */
  --aqua:    #2ff3c8;
  --violet:  #8a7bff;
  --magenta: #ff6ad5;
  --gold:    #ffd166;
  --grad:    linear-gradient(100deg, var(--aqua) 0%, var(--violet) 55%, var(--magenta) 100%);
  --grad-soft: linear-gradient(100deg, rgba(47,243,200,0.16), rgba(138,123,255,0.16) 55%, rgba(255,106,213,0.16));

  /* text */
  --ink:    #f1f4ff;
  --muted:  #8b94b4;
  --muted-2: #616c8f;

  /* type */
  --display: 'Space Grotesk', sans-serif;
  --body:    'Inter', sans-serif;
  --mono:    'JetBrains Mono', monospace;

  --radius: 16px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--obsidian);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Ambient console grid + glow */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 500px at 78% -5%, rgba(138,123,255,0.16), transparent 60%),
    radial-gradient(800px 520px at 10% 8%, rgba(47,243,200,0.12), transparent 60%),
    linear-gradient(transparent 0 96%, rgba(255,255,255,0.025) 96%) 0 0 / 100% 46px,
    linear-gradient(90deg, transparent 0 96%, rgba(255,255,255,0.025) 96%) 0 0 / 46px 100%;
}
.bg-noise::after {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--aqua); text-decoration: none; }
img { max-width: 100%; display: block; }

/* ============================================================
   TYPE SCALE
   ============================================================ */
h1, h2, h3, h4, h5 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; }
.eyebrow {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--aqua);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ''; width: 22px; height: 1px; background: var(--aqua); opacity: 0.7;
}
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn { display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: var(--display); font-weight: 600; font-size: 0.95rem;
  padding: 13px 24px; border-radius: 10px; border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn-primary { position: relative; color: #04130f; background: var(--grad); box-shadow: 0 8px 30px -10px rgba(47,243,200,0.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(138,123,255,0.7); }
.btn-ghost { color: var(--ink); border-color: var(--line-2); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--aqua); color: var(--aqua); background: rgba(47,243,200,0.06); }
.btn-lg { font-size: 1rem; padding: 16px 30px; }
.btn-block { width: 100%; justify-content: center; }

/* ============================================================
   NAV
   ============================================================ */
#sg-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(18px, 5vw, 48px); height: 70px;
  background: rgba(6,7,13,0.72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
#sg-nav .logo { display: flex; align-items: center; gap: 10px; }
#sg-nav .logo img { height: 30px; width: auto; }
#sg-nav .logo b { font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: var(--muted); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-right .btn { padding: 9px 18px; font-size: 0.88rem; }
.nav-burger { display: none; background: none; border: none; color: var(--ink); font-size: 1.5rem; cursor: pointer; }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.wrap { max-width: var(--maxw); margin: 0 auto; width: 100%; }
section { position: relative; z-index: 1; padding: clamp(72px, 10vw, 116px) clamp(18px, 5vw, 48px); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 16px 0 14px; }
.section-head p { color: var(--muted); font-size: 1.06rem; font-weight: 300; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Glass panel */
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border: 1px solid var(--line); border-radius: var(--radius);
  position: relative; overflow: hidden;
}
.glass::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 1px; background: var(--grad-soft); opacity: 0.9; }

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.page-hero { position: relative; z-index: 1; padding: 132px clamp(18px,5vw,48px) 48px; text-align: center; }
.page-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); margin: 16px auto 16px; max-width: 16ch; }
.page-hero p { color: var(--muted); font-size: 1.05rem; font-weight: 300; max-width: 620px; margin: 0 auto; }

/* ============================================================
   ACCORDION (FAQ)
   ============================================================ */
.faq-groups { display: flex; flex-direction: column; gap: 40px; }
.faq-group > h3 { font-size: 1.15rem; color: var(--ink); margin-bottom: 6px; font-family: var(--mono); font-weight: 500; letter-spacing: 0.04em; }
.accordion { display: flex; flex-direction: column; }
.ac-item { border-bottom: 1px solid var(--line); }
.ac-item:first-child { border-top: 1px solid var(--line); }
.ac-btn { width: 100%; background: none; border: none; cursor: pointer; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 4px; }
.ac-q { font-family: var(--display); font-weight: 600; font-size: 1.02rem; color: var(--ink); transition: color 0.2s; }
.ac-btn:hover .ac-q { color: var(--aqua); }
.ac-icon { flex-shrink: 0; width: 22px; height: 22px; position: relative; }
.ac-icon::before, .ac-icon::after { content: ''; position: absolute; background: var(--aqua); transition: transform 0.3s var(--ease); }
.ac-icon::before { top: 10px; left: 3px; width: 16px; height: 2px; }
.ac-icon::after  { top: 3px; left: 10px; width: 2px; height: 16px; }
.ac-item.open .ac-icon::after { transform: scaleY(0); }
.ac-body { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.ac-body-inner { padding: 0 4px 22px; color: var(--muted); font-size: 0.95rem; line-height: 1.75; }
.ac-body-inner p { margin-bottom: 12px; }
.ac-body-inner p:last-child { margin-bottom: 0; }
.ac-body-inner ul { margin: 8px 0 12px 20px; }
.ac-body-inner li { margin-bottom: 6px; }

/* ============================================================
   LEGAL / LONGFORM CONTENT
   ============================================================ */
.legal { max-width: 820px; margin: 0 auto; padding: 0 clamp(18px,5vw,48px) 110px; position: relative; z-index: 1; }
.legal h2 { font-size: 1.45rem; margin: 40px 0 14px; }
.legal h3 { font-size: 1.1rem; margin: 26px 0 10px; color: var(--aqua); font-family: var(--mono); font-weight: 500; }
.legal p, .legal li { color: var(--muted); font-size: 0.96rem; line-height: 1.8; margin-bottom: 14px; }
.legal ul, .legal ol { margin: 0 0 16px 22px; }
.legal strong { color: var(--ink); }
.legal .updated { font-family: var(--mono); font-size: 0.8rem; color: var(--muted-2); }
.legal .callout { background: var(--panel-2); border: 1px solid var(--line); border-left: 3px solid var(--aqua);
  border-radius: 10px; padding: 16px 20px; margin: 0 0 22px; }
.legal .callout p { margin: 0; color: var(--ink); font-size: 0.92rem; }

/* ============================================================
   COMPLIANCE DISCLOSURE BLOCKS
   ============================================================ */
.disclosure {
  font-size: 0.78rem; line-height: 1.6; color: var(--muted-2);
  border: 1px dashed var(--line-2); border-radius: 10px; padding: 14px 16px;
}
.disclosure strong { color: var(--muted); }
.rosca {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 20px; text-align: left; font-size: 0.85rem; color: var(--muted); line-height: 1.65;
}
.rosca b { color: var(--ink); }

/* ============================================================
   FOOTER (rendered by nav.js — holds required disclosures)
   ============================================================ */
footer { position: relative; z-index: 1; background: #04050a; border-top: 1px solid var(--line); padding: 64px clamp(18px,5vw,48px) 34px; }
.foot-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.foot-brand .logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.foot-brand .logo img { height: 28px; }
.foot-brand .logo b { font-family: var(--display); font-weight: 700; }
.foot-brand p { color: var(--muted); font-size: 0.85rem; max-width: 260px; }
.foot-col h5 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); margin-bottom: 16px; font-weight: 500; }
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.foot-col a { color: var(--muted); font-size: 0.88rem; transition: color 0.2s; }
.foot-col a:hover { color: var(--aqua); }
.foot-legal { max-width: var(--maxw); margin: 44px auto 0; border-top: 1px solid var(--line); padding-top: 26px;
  display: flex; flex-direction: column; gap: 14px; }
.foot-disclaimer { color: var(--muted-2); font-size: 0.76rem; line-height: 1.7; }
.foot-disclaimer b { color: var(--muted); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.foot-bottom span { color: var(--muted-2); font-size: 0.76rem; }
.foot-bottom .foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-bottom .foot-links a { color: var(--muted-2); font-size: 0.76rem; }
.foot-bottom .foot-links a:hover { color: var(--ink); }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  background: rgba(255,255,255,0.04); border: 1px solid var(--line-2); border-radius: 10px;
  color: var(--ink); font-family: var(--body); font-size: 0.95rem; padding: 13px 15px; width: 100%; transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(47,243,200,0.14); }
.field textarea { resize: vertical; min-height: 130px; }
.field select option { background: var(--panel); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ============================================================
   SHARED COMPONENTS (used across home + interior pages)
   ============================================================ */

/* Feature cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 30px 26px; transition: transform 0.3s var(--ease), border-color 0.3s; }
.feature:hover { transform: translateY(-5px); border-color: var(--line-2); }
.feature .ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 22px;
  background: var(--grad-soft); border: 1px solid var(--line-2); margin-bottom: 18px; }
.feature h3 { font-size: 1.12rem; margin-bottom: 9px; }
.feature p { color: var(--muted); font-size: 0.92rem; line-height: 1.65; }

/* Stat row */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--obsidian); padding: 28px 22px; text-align: center; }
.stat .num { font-family: var(--mono); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--ink); letter-spacing: -0.02em; }
.stat .lbl { color: var(--muted); font-size: 0.8rem; margin-top: 6px; }

/* Numbered steps (legitimate sequence: enroll → verify → monitor) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { padding: 30px 26px; }
.step .idx { font-family: var(--mono); font-size: 0.82rem; color: var(--aqua); letter-spacing: 0.1em; }
.step h3 { font-size: 1.1rem; margin: 14px 0 9px; }
.step p { color: var(--muted); font-size: 0.92rem; line-height: 1.65; }

/* Pricing / plan cards (rendered by plans.js) */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan-card { padding: 32px 28px; display: flex; flex-direction: column; }
.plan-featured { border-color: rgba(47,243,200,0.4); box-shadow: 0 30px 80px -40px rgba(47,243,200,0.5); }
.plan-badge { align-self: flex-start; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 100px; background: var(--grad-soft); border: 1px solid var(--line-2); color: var(--ink); margin-bottom: 18px; }
.plan-name { font-size: 1.4rem; }
.plan-tag { color: var(--muted); font-size: 0.9rem; margin: 8px 0 20px; min-height: 40px; }
.plan-price { font-family: var(--display); font-weight: 700; font-size: 3.4rem; line-height: 1; letter-spacing: -0.03em; }
.plan-cur { font-size: 1.5rem; vertical-align: super; margin-right: 2px; }
.plan-cents { font-size: 1.5rem; }
.plan-price.plan-soon { font-size: 1.7rem; color: var(--muted); }
.plan-per { color: var(--muted-2); font-size: 0.82rem; margin: 6px 0 22px; }
.plan-feats { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; flex: 1; }
.plan-feats li { position: relative; padding-left: 26px; color: var(--ink); font-size: 0.9rem; }
.plan-feats li::before { content: ''; position: absolute; left: 0; top: 6px; width: 14px; height: 8px;
  border-left: 2px solid var(--aqua); border-bottom: 2px solid var(--aqua); transform: rotate(-45deg); }

/* Compare table */
.compare { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare th, .compare td { padding: 15px 18px; text-align: center; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.compare th { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.compare th.us, .compare td.us { background: rgba(47,243,200,0.05); color: var(--ink); }
.compare td:first-child, .compare th:first-child { text-align: left; color: var(--ink); }
.compare tr:last-child td { border-bottom: none; }
.compare .yes { color: var(--aqua); font-weight: 700; }
.compare .no { color: var(--muted-2); }

/* CTA band */
.cta-band { text-align: center; padding: clamp(40px, 6vw, 64px); }
.cta-band h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 14px; }
.cta-band p { color: var(--muted); max-width: 540px; margin: 0 auto 28px; }

/* ============================================================
   MOTION
   ============================================================ */
@keyframes pulse { 0%,100%{ opacity: 1; transform: scale(1);} 50%{ opacity: 0.35; transform: scale(0.7);} }
@keyframes floatUp { from { opacity: 0; transform: translateY(26px);} to { opacity: 1; transform: translateY(0);} }
@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes ring { from { stroke-dashoffset: var(--len); } }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
    position: fixed; top: 70px; left: 0; right: 0; background: rgba(6,7,13,0.98);
    padding: 24px clamp(18px,5vw,48px); border-bottom: 1px solid var(--line); }
  .nav-burger { display: block; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .row-2 { grid-template-columns: 1fr; }
  .card-grid, .steps, .plan-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr; }
  .nav-right .btn-ghost { display: none; }
  .stats { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

:focus-visible { outline: 2px solid var(--aqua); outline-offset: 2px; border-radius: 4px; }
