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

:root {
  --navy:   #1e3a5f;
  --navy-d: #152c47;
  --amber:  #f59e0b;
  --amber-d:#d97706;
  --teal:   #0ab4c8;
  --teal-d: #0896a8;
  --text:   #1a202c;
  --muted:  #4a5568;
  --light:  #f8fafc;
  --border: #e2e8f0;
  --white:  #ffffff;
  --font:   -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ── */
nav.topnav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-icon { width: 34px; height: 34px; display: block; }
.logo span { color: var(--teal); }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.nav-links a:hover { color: var(--navy); }
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  border: none;
}
.btn-primary {
  background: var(--amber);
  color: var(--navy-d);
}
.btn-primary:hover { background: var(--amber-d); transform: translateY(-1px); }
.btn-large { padding: 14px 32px; font-size: 1rem; }
@media (max-width: 560px) {
  .nav-links a.nav-plain { display: none; }
}

/* ── Hero ── */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 72px 0 64px;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 56px;
}
.hero-text { flex: 1; }
.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin: 0 0 20px;
}
.hero h1 em { color: var(--amber); font-style: normal; }
.hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #a8bdd4;
  max-width: 520px;
  margin: 0 0 32px;
  line-height: 1.7;
}
.hero-sub {
  font-size: 0.85rem;
  color: #6b8aaa;
  margin-top: 14px;
}
.hero-mascot {
  flex-shrink: 0;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 2px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-mascot img { width: 88%; display: block; }
@media (max-width: 860px) {
  .hero-inner { flex-direction: column; text-align: center; gap: 32px; }
  .hero-mascot { width: 180px; height: 180px; order: -1; }
  .hero p { max-width: 100%; margin-left: auto; margin-right: auto; }
}

/* ── Trust bar ── */
.trust-bar {
  background: var(--light);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.trust-items {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 40px;
}
.trust-item {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.trust-item::before {
  content: '✓';
  color: var(--amber);
  font-weight: 700;
}

/* ── Section base ── */
section { padding: 72px 0; }
.section-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--amber);
  margin-bottom: 12px;
}
h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--navy);
  margin-bottom: 16px;
}
.lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.7;
}

/* ── Problem ── */
.problem { background: var(--white); }
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 48px;
  align-items: start;
}
.problem-list { list-style: none; }
.problem-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.97rem;
  color: var(--text);
  line-height: 1.5;
}
.problem-list li:first-child { border-top: 1px solid var(--border); }
.problem-list li::before {
  content: '→';
  color: var(--amber);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.problem-callout {
  background: var(--navy);
  color: var(--white);
  border-radius: 12px;
  padding: 36px;
}
.problem-callout p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #c8d8e8;
}
.problem-callout strong { color: var(--white); }
.problem-callout .attribution {
  margin-top: 20px;
  font-size: 0.85rem;
  color: #6b8aaa;
  font-style: italic;
}

/* ── How it works ── */
.how { background: var(--light); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px 28px;
}
.step-num {
  width: 44px;
  height: 44px;
  background: var(--amber);
  color: var(--navy-d);
  font-weight: 800;
  font-size: 1.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.step p { font-size: 0.92rem; color: var(--muted); line-height: 1.65; }

/* ── Results ── */
.results { background: var(--white); }
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.result-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.result-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--amber);
}
.result-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 16px;
}
.result-stat {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
}
.result-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.result-card p { font-size: 0.9rem; color: var(--text); line-height: 1.6; }

/* ── Math ── */
.math-section { background: var(--navy); color: var(--white); }
.math-section h2 { color: var(--white); }
.math-section .lead { color: #a8bdd4; max-width: 100%; }
.math-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
  align-items: center;
}
.math-table { width: 100%; border-collapse: collapse; }
.math-table tr { border-bottom: 1px solid rgba(255,255,255,0.1); }
.math-table td { padding: 14px 0; font-size: 0.95rem; }
.math-table td:first-child { color: #a8bdd4; }
.math-table td:last-child { text-align: right; font-weight: 600; color: var(--white); }
.math-table .total td { color: var(--amber); font-size: 1rem; font-weight: 700; border-bottom: none; }
.math-note {
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 28px;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #c8d8e8;
}
.math-note strong { color: var(--white); display: block; font-size: 1.1rem; margin-bottom: 10px; }

/* ── About ── */
.about { background: var(--light); }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  align-items: center;
}
.about h2 { margin-bottom: 20px; }
.about p { color: var(--muted); line-height: 1.8; margin-bottom: 14px; font-size: 0.97rem; }
.about p:last-child { margin-bottom: 0; }
.about-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
}
.about-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--light);
  border: 2px solid var(--border);
  margin: 0 auto 20px;
  display: block;
  object-fit: cover;
}
.about-name { font-weight: 700; font-size: 1.05rem; color: var(--navy); margin-bottom: 2px; }
.about-tagline { font-size: 0.7rem; font-weight: 700; letter-spacing: 2px; color: var(--amber); margin-bottom: 6px; }
.about-title { font-size: 0.85rem; color: var(--muted); margin-bottom: 20px; }
.about-stats { display: flex; justify-content: space-around; padding-top: 20px; border-top: 1px solid var(--border); }
.about-stat-num { font-size: 1.5rem; font-weight: 800; color: var(--navy); display: block; }
.about-stat-label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* ── Contact ── */
.contact { background: var(--white); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact h2 { margin-bottom: 16px; }
.contact .lead { margin-bottom: 28px; }
.contact-bullets { list-style: none; }
.contact-bullets li {
  display: flex;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--muted);
  padding: 8px 0;
}
.contact-bullets li::before { content: '✓'; color: var(--amber); font-weight: 700; flex-shrink: 0; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(30,58,95,0.08);
}
.form-group textarea { height: 120px; resize: vertical; }
.honeypot { display: none; }
.form-note { font-size: 0.78rem; color: var(--muted); margin-top: 10px; }

/* ── Phone CTA ── */
.phone-cta {
  margin-top: 36px;
  padding: 24px;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.phone-cta-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 8px;
}
.phone-number {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
  transition: color 0.15s;
}
.phone-number:hover { color: var(--amber); }
.phone-desc {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 16px;
}
.call-preview {
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.call-preview-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 10px;
}
.call-preview-list {
  list-style: none;
  margin: 0 0 12px;
}
.call-preview-list li {
  font-size: 0.82rem;
  color: var(--text);
  padding: 5px 0;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px dotted var(--border);
  line-height: 1.4;
}
.call-preview-list li:last-child { border-bottom: none; }
.call-preview-list li span {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.call-preview-footer {
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
  margin: 0;
}
.alert {
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.alert-success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.alert-error   { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }

/* ── Static pages (about, faq, contact, privacy, terms) ── */
.page {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.page h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 10px;
}
.page .updated { font-size: 0.85rem; color: var(--muted); margin-bottom: 36px; }
.page .intro { font-size: 1.05rem; color: var(--muted); line-height: 1.7; margin-bottom: 36px; }
.page h2 {
  font-size: 1.35rem;
  margin: 2.2em 0 0.6em;
}
.page p { margin: 0 0 1em; }
.page ul, .page ol { margin: 0 0 1.2em 1.3em; }
.page li { margin-bottom: 0.5em; }
.page a { color: var(--teal-d); font-weight: 600; text-decoration: none; }
.page a:hover { text-decoration: underline; }

/* FAQ accordion (no JS — native details/summary) */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 4px 18px;
  background: var(--white);
}
.faq-item summary {
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  padding: 12px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--amber); font-weight: 800; flex-shrink: 0; }
.faq-item[open] summary::after { content: '–'; }
.faq-item .faq-a { padding: 0 0 16px; color: var(--muted); }
.faq-item .faq-a p { margin: 0 0 0.8em; }
.faq-item .faq-a p:last-child { margin-bottom: 0; }

/* CTA box on static pages */
.cta-box {
  background: var(--navy);
  color: var(--white);
  border-radius: 12px;
  padding: 36px 32px;
  margin-top: 56px;
  text-align: center;
}
.cta-box h2 { color: var(--white); margin: 0 0 8px; font-size: 1.4rem; }
.cta-box p { color: #a8bdd4; margin: 0 0 22px; }

/* Contact page cards */
.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 36px 0 8px;
}
.contact-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 26px;
  background: var(--light);
}
.contact-card .label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 8px;
}
.contact-card .big {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
  margin-bottom: 8px;
  word-break: break-word;
}
.contact-card .big:hover { color: var(--amber); }
.contact-card p { font-size: 0.85rem; color: var(--muted); margin: 0; }
@media (max-width: 640px) {
  .contact-cards { grid-template-columns: 1fr; }
}

/* ── Footer ── */
footer {
  background: var(--navy-d);
  color: #6b8aaa;
  padding: 32px 0;
  text-align: center;
  font-size: 0.82rem;
}
footer a { color: #6b8aaa; text-decoration: none; }
footer a:hover { color: var(--white); }
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: 14px;
  font-weight: 600;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .problem-grid,
  .steps,
  .results-grid,
  .math-grid,
  .about-inner,
  .contact-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 56px 0 48px; }
  section { padding: 52px 0; }
}
