/* ============================================================
   Wise Cheddar — styles.css
   Fonts: DM Sans (body), DM Serif Display (headings)
   ============================================================ */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #f5f6f8;
  --surface:      #ffffff;
  --border:       #e8eaed;
  --border-light: #f0f1f4;
  --navy:         #1a2535;
  --slate:        #2c3e55;
  --muted:        #6b7a90;
  --muted-light:  #9aa5b8;
  --accent:       #3b82f6;
  --accent-dark:  #2563eb;
  --accent-light: #eff6ff;
  --green:        #059669;
  --green-light:  #ecfdf5;
  --amber:        #d97706;
  --amber-light:  #fffbeb;
  /* Dashboard surface (intentionally darker for contrast) */
  --dash-bg:      #1e2d42;
  --dash-card:    #253447;
  --dash-border:  #334360;
  --dash-text:    #e2e8f0;
  --dash-muted:   #94a3b8;

  --radius-sm:    6px;
  --radius:       12px;
  --radius-lg:    18px;
  --shadow-sm:    0 1px 3px rgba(26,37,53,.06), 0 1px 2px rgba(26,37,53,.04);
  --shadow:       0 4px 12px rgba(26,37,53,.08), 0 1px 3px rgba(26,37,53,.06);
  --shadow-lg:    0 12px 40px rgba(26,37,53,.12), 0 4px 12px rgba(26,37,53,.08);

  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-display: 'DM Serif Display', Georgia, serif;

  --max-w:        1160px;
  --nav-h:        68px;
}

html { scroll-behavior: auto; } /* JS handles smooth scroll */
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--navy);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Utilities ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  transition: background .15s, box-shadow .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 3px rgba(59,130,246,.3);
}
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 4px 12px rgba(59,130,246,.35); }

.btn-secondary {
  background: var(--surface);
  color: var(--navy);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: #c8ccd4; box-shadow: var(--shadow); }

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.45);
}
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); }

.btn-lg { padding: 17px 30px; font-size: 16px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,246,248,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
  height: var(--nav-h);
}
.nav--scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 32px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--navy);
  flex-shrink: 0;
}
.nav__logo-icon {
  width: 34px;
  height: 34px;
  background: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav__link {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--muted);
  font-weight: 450;
  transition: color .15s, background .15s;
}
.nav__link:hover { color: var(--navy); background: var(--border-light); }
.nav__cta { margin-left: 8px; }

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 96px;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-light);
  color: var(--accent-dark);
  border: 1px solid #bfdbfe;
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}
.hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.12;
  color: var(--navy);
  margin-bottom: 20px;
}
.hero__headline em {
  font-style: normal;
  color: var(--accent);
}
.hero__sub {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hero__trust {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 13px;
  color: var(--muted);
}
.hero__trust-dot { width: 4px; height: 4px; background: var(--muted-light); border-radius: 50%; }

/* ---------- Dashboard mockup ---------- */
.hero__visual {
  position: relative;
}
.dashboard {
  background: var(--dash-bg);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.06);
  font-size: 13px;
}
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.dash-title {
  color: var(--dash-text);
  font-weight: 600;
  font-size: 14px;
}
.dash-badge {
  background: rgba(59,130,246,.2);
  color: #93c5fd;
  border-radius: 100px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 500;
}
.dash-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.dash-card {
  background: var(--dash-card);
  border: 1px solid var(--dash-border);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.dash-card__label {
  color: var(--dash-muted);
  font-size: 11px;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.dash-card__value {
  color: var(--dash-text);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}
.dash-card__value--green { color: #34d399; }
.dash-card__sub {
  color: var(--dash-muted);
  font-size: 11px;
  margin-top: 3px;
}
.dash-bills {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dash-bill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--dash-card);
  border: 1px solid var(--dash-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.dash-bill__left { display: flex; align-items: center; gap: 10px; }
.dash-bill__icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.dash-bill__name { color: var(--dash-text); font-size: 13px; font-weight: 500; }
.dash-bill__due  { color: var(--dash-muted); font-size: 11px; }
.dash-bill__amount { color: var(--dash-text); font-weight: 600; }
.dash-bill__flag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 500;
}
.dash-bill__flag--amber { background: rgba(217,119,6,.2); color: #fbbf24; }
.dash-bill__flag--green { background: rgba(5,150,105,.2); color: #34d399; }
.dash-bill__flag--blue  { background: rgba(59,130,246,.2); color: #93c5fd; }

/* ---------- Problem section ---------- */
.problem { background: var(--surface); }
.problem__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.problem__stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.stat-card__icon {
  font-size: 28px;
  flex-shrink: 0;
  margin-top: 2px;
}
.stat-card__number {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-card__label { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ---------- How it works ---------- */
.how { background: var(--bg); }
.how__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
}
.step__num {
  width: 36px;
  height: 36px;
  background: var(--accent-light);
  color: var(--accent-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 20px;
}
.step__icon { font-size: 28px; margin-bottom: 12px; }
.step__title {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 10px;
}
.step__desc { color: var(--muted); font-size: 15px; line-height: 1.65; }
.step__connector {
  position: absolute;
  top: 52px;
  right: -18px;
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-light);
  font-size: 18px;
  z-index: 1;
}

/* ---------- Alert examples ---------- */
.alerts { background: var(--surface); }
.alerts__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.alert-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.alert-card__type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 4px 10px;
  border-radius: 100px;
}
.alert-card__type--amber { background: var(--amber-light); color: var(--amber); }
.alert-card__type--green { background: var(--green-light); color: var(--green); }
.alert-card__type--blue  { background: var(--accent-light); color: var(--accent-dark); }
.alert-card__headline {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.35;
}
.alert-card__body { color: var(--muted); font-size: 14px; line-height: 1.65; margin-bottom: 16px; }
.alert-card__action { font-size: 13px; font-weight: 500; color: var(--accent); }

/* ---------- Pricing ---------- */
.pricing { background: var(--bg); }
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
  align-items: start;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
}
.price-card--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow);
}
.price-card__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}
.price-card__name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.price-card__amount {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
}
.price-card__amount sup { font-size: 20px; vertical-align: super; }
.price-card__amount span { font-size: 15px; font-family: var(--font-body); color: var(--muted); }
.price-card__desc { color: var(--muted); font-size: 14px; margin-bottom: 24px; line-height: 1.55; }
.price-card__divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.price-card__features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.price-card__feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--slate);
}
.price-card__feature::before {
  content: '✓';
  color: var(--green);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 1px;
}
.price-card__feature--muted { color: var(--muted); }
.price-card__feature--muted::before { content: '—'; color: var(--muted-light); }
.price-card .btn { width: 100%; justify-content: center; }

/* ---------- Guarantee strip ---------- */
.guarantee {
  background: var(--navy);
  padding: 56px 0;
}
.guarantee__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.guarantee__text { color: rgba(255,255,255,.9); max-width: 600px; }
.guarantee__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 8px;
}
.guarantee__headline {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.25;
  margin-bottom: 10px;
}
.guarantee__sub { font-size: 15px; color: rgba(255,255,255,.65); line-height: 1.6; }

/* ---------- Quiz CTA ---------- */
.quiz { background: var(--accent-light); border-top: 1px solid #bfdbfe; border-bottom: 1px solid #bfdbfe; }
.quiz__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.quiz__text { max-width: 560px; }
.quiz__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 10px;
}
.quiz__headline {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.25;
}
.quiz__sub { color: var(--muted); font-size: 15px; line-height: 1.65; }
.quiz__items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.quiz__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 14px;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
}
.quiz__item-icon { font-size: 16px; }

/* ---------- FAQ ---------- */
.faq { background: var(--surface); }
.faq__list {
  max-width: 720px;
  margin: 56px auto 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  gap: 16px;
  transition: background .15s;
}
.faq-question:hover { background: var(--border-light); }
.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--muted);
  transition: transform .25s;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer__inner {
  padding: 0 24px 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* ---------- Footer CTA ---------- */
.footer-cta {
  background: var(--navy);
  padding: 96px 0;
  text-align: center;
}
.footer-cta__headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.2;
}
.footer-cta__sub {
  color: rgba(255,255,255,.6);
  font-size: 17px;
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.65;
}
.footer-cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-cta__trust {
  margin-top: 20px;
  color: rgba(255,255,255,.4);
  font-size: 13px;
}

/* ---------- Footer ---------- */
.footer {
  background: #111827;
  padding: 48px 0 32px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer__brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  color: #fff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer__brand-icon {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.footer__tagline { color: #6b7280; font-size: 14px; line-height: 1.6; max-width: 220px; }
.footer__col-title { color: #9ca3af; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.footer__links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__link { color: #6b7280; font-size: 14px; transition: color .15s; }
.footer__link:hover { color: #d1d5db; }
.footer__bottom {
  border-top: 1px solid #1f2937;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__copy { color: #4b5563; font-size: 13px; }
.footer__legal { display: flex; gap: 20px; }
.footer__legal-link { color: #4b5563; font-size: 13px; transition: color .15s; }
.footer__legal-link:hover { color: #9ca3af; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { order: -1; }
  .problem__inner { grid-template-columns: 1fr; gap: 48px; }
  .how__steps { grid-template-columns: 1fr; gap: 16px; }
  .step__connector { display: none; }
  .alerts__grid { grid-template-columns: 1fr; }
  .pricing__grid { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; }
  .guarantee__inner { flex-direction: column; text-align: center; }
  .quiz__inner { flex-direction: column; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .hero { padding: 48px 0 64px; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
