/* MoneyBack marketing site — mobile-first
   Design tokens (BUILD_BRIEF): navy #0B1526, bg #F7F9FC, accent #2F6FED,
   green #16A34A, amber #D97706, red #DC2626, slate #334155, borders #E2E8F0 */

:root {
  --navy: #0B1526;
  --navy-soft: #14233c;
  --bg: #F7F9FC;
  --card: #ffffff;
  --accent: #2F6FED;
  --accent-dark: #1f56c4;
  --green: #16A34A;
  --amber: #D97706;
  --red: #DC2626;
  --text: #334155;
  --text-dark: #0B1526;
  --muted: #64748b;
  --border: #E2E8F0;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(11, 21, 38, 0.06);
}

* { box-sizing: border-box; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
}

h1, h2, h3 { color: var(--text-dark); line-height: 1.2; margin: 0 0 0.6em; }

p { margin: 0 0 1em; }

a { color: var(--accent); }

img { max-width: 100%; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.brand { display: flex; flex-direction: column; text-decoration: none; color: #fff; margin-right: auto; }
.brand-name { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand-name .back { color: #7db3ff; }
.brand-sub { font-size: 0.68rem; color: #9fb3d1; letter-spacing: 0.02em; }
.site-nav { display: none; gap: 18px; }
.site-nav a { color: #dbe6f7; text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-toggle {
  background: transparent;
  border: 1px solid #3b5178;
  color: #dbe6f7;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.lang-toggle:hover { border-color: #7db3ff; color: #fff; }
.btn-login {
  display: none;
  color: #dbe6f7;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 8px 10px;
}
.btn {
  display: inline-block;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius);
  padding: 14px 24px;
  text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-small { padding: 10px 18px; font-size: 0.92rem; }
.btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.35); }
.btn-ghost:hover { background: rgba(255,255,255,0.2); }
.btn-google {
  background: #fff;
  color: var(--text-dark);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}
.btn-block { width: 100%; display: block; }

/* mobile nav */
.mobile-nav { background: var(--navy-soft); display: flex; gap: 4px; overflow-x: auto; padding: 8px 20px; }
.mobile-nav a { color: #dbe6f7; text-decoration: none; font-size: 0.9rem; padding: 8px 10px; white-space: nowrap; }

/* ---------- hero ---------- */
.hero { background: var(--navy); color: #fff; padding: 48px 0 56px; }
.hero h1 { color: #fff; font-size: 2rem; letter-spacing: -0.02em; margin-bottom: 0.5em; }
.hero .sub { color: #c4d3ec; font-size: 1.05rem; max-width: 620px; margin-bottom: 1.4em; }
.hero-ctas { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
.hero-points { margin-top: 22px; display: flex; flex-direction: column; gap: 8px; }
.hero-points span { color: #9fb3d1; font-size: 0.92rem; }
.hero-points .tick { color: var(--green); font-weight: 800; margin-right: 6px; }

/* ---------- sections ---------- */
.section { padding: 44px 0; }
.section-head { max-width: 680px; margin-bottom: 26px; }
.section-head h2 { font-size: 1.6rem; }
.section-head .sub { color: var(--muted); }
.section-dark { background: var(--navy); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .sub, .section-dark p { color: #c4d3ec; }

/* ---------- checker ---------- */
.checker-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  max-width: 640px;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
.field select, .field input[type="date"], .field input[type="email"], .field input[type="password"], .field input[type="text"] {
  width: 100%;
  padding: 13px 14px;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text-dark);
  font-family: inherit;
}
.field .hint { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }
.checker-result { margin-top: 20px; border-top: 1px solid var(--border); padding-top: 20px; display: none; }
.checker-result.show { display: block; }
.days-badge {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 10px 18px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.days-badge.ok { background: #e8f7ee; color: var(--green); }
.days-badge.warn { background: #fdf3e3; color: var(--amber); }
.days-badge.urgent { background: #fdeaea; color: var(--red); }
.days-badge.info { background: #eaf1fe; color: var(--accent-dark); }
.return-steps { margin: 12px 0 0; padding-left: 22px; }
.return-steps li { margin-bottom: 8px; }
.policy-note { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font-size: 0.92rem; margin-top: 14px; }

/* ---------- features ---------- */
.features-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.feature-card .icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: #eaf1fe;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.feature-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.feature-card p { font-size: 0.92rem; color: var(--muted); margin: 0; }

/* ---------- pricing ---------- */
.trial-callout {
  background: #eaf1fe;
  border: 1px solid #c9dbfd;
  color: var(--text-dark);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
  font-weight: 600;
}
.trial-callout strong { color: var(--accent-dark); }
.price-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; }
.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  position: relative;
}
.price-card.highlight { border: 2px solid var(--accent); }
.price-flag {
  position: absolute; top: -14px; left: 24px;
  background: var(--green); color: #fff;
  font-size: 0.8rem; font-weight: 700;
  padding: 4px 14px; border-radius: 999px;
}
.price-amount { font-size: 2.6rem; font-weight: 800; color: var(--text-dark); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.price-per { color: var(--muted); font-size: 1rem; }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 22px; }
.price-card ul li { padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.price-card ul li:last-child { border-bottom: 0; }
.price-card ul .tick { color: var(--green); font-weight: 800; margin-right: 8px; }

/* comparison table */
.compare-wrap { overflow-x: auto; }
table.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.92rem;
  min-width: 560px;
}
table.compare th, table.compare td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
table.compare thead th { background: var(--navy); color: #fff; }
table.compare tbody tr:last-child th, table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare tbody th { color: var(--text-dark); font-weight: 600; background: var(--bg); }
.fine-print { font-size: 0.85rem; color: var(--muted); margin-top: 12px; }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 14px; counter-reset: step; }
.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px 22px 76px;
  position: relative;
}
.step-card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 20px; top: 20px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.step-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step-card p { font-size: 0.93rem; color: var(--muted); margin: 0; }

/* ---------- pledge / privacy ---------- */
.pledge-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.pledge-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
}
.pledge-card h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.pledge-card .pledge-icon {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  background: #e8f7ee; display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
}
.pledge-card p { font-size: 0.93rem; color: var(--muted); margin: 8px 0 0; }
.plain-box {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 20px; margin-top: 18px;
}
.plain-box h3 { font-size: 1.05rem; }

/* ---------- auth ---------- */
.auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 22px;
  max-width: 440px;
  margin: 0 auto;
}
.auth-card h1 { font-size: 1.5rem; text-align: center; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: 0.93rem; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.85rem; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-note {
  display: none;
  background: #fdf3e3; border: 1px solid #f3d9a8; color: #8a5a00;
  border-radius: 10px; padding: 12px 14px; font-size: 0.9rem; margin-top: 14px;
}
.auth-note.show { display: block; }
.auth-error {
  display: none;
  background: #fdeaea; border: 1px solid #f5b8b8; color: var(--red);
  border-radius: 10px; padding: 12px 14px; font-size: 0.9rem; margin-bottom: 14px;
}
.auth-error.show { display: block; }
.auth-switch { text-align: center; margin-top: 18px; font-size: 0.93rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #fff; padding: 48px 0; text-align: center; }
.cta-band h2 { color: #fff; font-size: 1.7rem; }
.cta-band p { color: #c4d3ec; }
.cta-band .fine { color: #9fb3d1; font-size: 0.88rem; margin-top: 12px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #9fb3d1; padding: 36px 0 28px; font-size: 0.9rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.footer-brand { color: #fff; font-weight: 800; font-size: 1.1rem; }
.footer-brand .back { color: #7db3ff; }
.footer-sub { font-size: 0.72rem; letter-spacing: 0.02em; margin-bottom: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 18px; }
.footer-links a { color: #c4d3ec; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-pledge { margin-bottom: 18px; }
.footer-legal { font-size: 0.8rem; color: #6e84a6; }

/* ---------- desktop ---------- */
@media (min-width: 720px) {
  .hero { padding: 72px 0 80px; }
  .hero h1 { font-size: 2.9rem; max-width: 700px; }
  .hero .sub { font-size: 1.15rem; }
  .hero-ctas { flex-direction: row; max-width: none; }
  .hero-points { flex-direction: row; gap: 24px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(2, 1fr); max-width: 820px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .pledge-grid { grid-template-columns: repeat(2, 1fr); }
  .site-nav { display: flex; }
  .btn-login { display: inline-block; }
  .mobile-nav { display: none; }
}
@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 3.4rem; }
}

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border: 1px solid #e2e8f0; border-radius: 10px; margin-bottom: 10px; background: #fff; }
.faq-item summary { cursor: pointer; padding: 16px 18px; font-weight: 600; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--navy); font-size: 1.2rem; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 18px 16px; margin: 0; color: #475569; }

/* Legal pages */
.legal-body h3 { margin-top: 28px; }
.legal-body p, .legal-body li { color: #475569; }
.legal-body ul { padding-left: 20px; }
.auth-terms { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; font-size: 0.92rem; color: #475569; }
.auth-terms input { margin-top: 4px; }
.forgot-row { text-align: right; margin: -6px 0 14px; }
.forgot-row a { font-size: 0.92rem; }
.reset-box { display: none; margin-top: 14px; }
.reset-box.show { display: block; }
.auth-ok { display: none; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; border-radius: 8px; padding: 12px 14px; margin-bottom: 14px; }
.auth-ok.show { display: block; }

/* Hero mockup */
.hero-mockup { margin-top: 32px; text-align: center; }
.hero-mockup img { max-width: 340px; width: 100%; border-radius: 24px; box-shadow: 0 24px 60px rgba(2, 6, 23, 0.35); }

/* Tool cards (linked feature cards) */
.tool-card { text-decoration: none; color: inherit; display: block; }
.tool-card:hover { border-color: var(--navy); }
.tool-card h3 { color: var(--navy); }
.example-row { text-align: center; margin-top: 10px; }
.example-row a { font-size: 0.92rem; }
