/* ─────────────────────────────────────────────────────────────────────
 * Simplify Money — new homepage component styles
 * Component-scoped only. No global resets. Depends on --sm-* tokens
 * already in style.css :root block.
 * ───────────────────────────────────────────────────────────────────── */

html { scroll-behavior: smooth; }

/* ── Section wrappers ─────────────────────────────────────────────── */
.section   { padding: 96px 0; }
.section--tight { padding: 56px 0; }
.section--ink   { background: var(--sm-teal-900); }

/* ── Eyebrow label ───────────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  color: var(--sm-gold-300);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* ── New CTA buttons — scoped to our modifiers only ─────────────── */
/* Base styles only apply when a btn-- modifier is present */
.btn.btn--gold, .btn.btn--white, .btn.btn--ghost {
  display: inline-flex; align-items: center; gap: 10px;
  border: 0; border-radius: var(--r-pill);
  font-family: var(--ff-body); font-weight: 500;
  padding: 14px 26px; font-size: 15px;
  cursor: pointer; text-decoration: none;
  transition: background .25s ease, color .25s ease, transform .15s ease;
  white-space: nowrap; line-height: 1.2; box-shadow: none;
}
.btn.btn--lg { padding: 18px 32px; font-size: 16px; }
.btn.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--gold  { background: var(--sm-gold-500) !important; color: var(--sm-teal-ink) !important; }
.btn--gold:hover  { background: var(--sm-text-hi) !important; color: var(--sm-teal-ink) !important; }
.btn--white { background: var(--sm-text-hi) !important;  color: var(--sm-teal-ink) !important; }
.btn--white:hover { background: var(--sm-gold-300) !important; }
.btn--ghost { background: transparent !important; color: var(--sm-text-hi) !important; border: 1px solid rgba(255,255,255,.18) !important; }
.btn--ghost:hover { border-color: var(--sm-gold-300) !important; color: var(--sm-gold-300) !important; }

/* ── Section heading block ───────────────────────────────────────── */
.section-head { text-align: center; max-width: 820px; margin: 0 auto 56px; }
.section-head__title {
  font-family: var(--ff-head);
  font-size: clamp(28px, 4vw, 48px); font-weight: 700; line-height: 1.15;
  margin: 0 0 14px; letter-spacing: -.02em;
  color: var(--sm-text-hi);
}
.section-head__sub {
  font-size: 17px; color: var(--sm-text-mid);
  margin: 0; line-height: 1.5;
}

/* ── Stat strip (hero) ──────────────────────────────────────────── */
.stat-strip {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin: 0 auto; max-width: 980px;
}
.stat-chip {
  display: inline-flex; align-items: baseline; gap: 8px;
  background: rgba(8,39,57,.6);
  border: 1px solid rgba(255,198,49,.35);
  padding: 14px 22px; border-radius: var(--r-pill);
  font-size: 14px; color: var(--sm-text-hi);
}
.stat-chip__num { color: var(--sm-gold-300); font-weight: 700; font-size: 17px; font-family: var(--ff-head); }
.stat-chip__label { color: var(--sm-text-mid); }

/* ── Master Your Money split layout ─────────────────────────────── */
.split {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px;
  align-items: center; max-width: 1180px; margin: 0 auto;
}
.split__copy h2 {
  font-family: var(--ff-head); font-size: clamp(28px, 3.5vw, 44px); font-weight: 700;
  margin: 0 0 18px; line-height: 1.15; letter-spacing: -.02em;
  color: var(--sm-text-hi);
}
.split__copy p {
  color: var(--sm-text-mid); font-size: 16.5px; line-height: 1.55;
  margin: 0 0 24px; max-width: 540px;
}

/* ── Phone viz ───────────────────────────────────────────────────── */
.split__viz {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  display: flex; align-items: center; justify-content: center;
}
.split__viz::before {
  content: ""; position: absolute; inset: -10% -5%;
  background: radial-gradient(ellipse at center, rgba(255,198,49,.16), transparent 65%);
  pointer-events: none;
}
.viz-phone {
  position: relative;
  width: 75%; max-width: 320px;
  background: linear-gradient(180deg, #082739 0%, #061e2f 100%);
  border-radius: 32px;
  padding: 22px 18px 24px;
  box-shadow:
    0 30px 60px rgba(0,0,0,.45),
    0 0 0 1px rgba(255,198,49,.18),
    inset 0 1px 0 rgba(255,255,255,.06);
  z-index: 2;
}
.viz-phone__notch {
  width: 80px; height: 6px; border-radius: 4px;
  background: rgba(255,255,255,.12);
  margin: 0 auto 18px;
}
.viz-phone__head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.viz-phone__avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #ECB622, #BD7629);
  display: flex; align-items: center; justify-content: center;
  color: var(--sm-teal-ink); font-weight: 800; font-family: var(--ff-head);
  font-size: 17px; flex-shrink: 0;
}
.viz-phone__name { font-family: var(--ff-head); font-size: 14px; font-weight: 700; color: var(--sm-text-hi); line-height: 1.1; }
.viz-phone__status {
  font-size: 11px; color: var(--sm-text-lo); margin-top: 2px;
  display: inline-flex; align-items: center; gap: 6px;
}
.viz-phone__status span {
  width: 6px; height: 6px; border-radius: 50%;
  background: #3FB67C; box-shadow: 0 0 0 2px rgba(63,182,124,.22);
  flex-shrink: 0;
}
.viz-phone__bubble {
  font-size: 12.5px; line-height: 1.45; padding: 10px 14px;
  border-radius: 16px; margin-bottom: 8px; max-width: 92%;
}
.viz-phone__bubble--user {
  background: rgba(255,198,49,.12); color: var(--sm-gold-300);
  border: 1px solid rgba(255,198,49,.22);
  border-bottom-right-radius: 6px; margin-left: auto;
}
.viz-phone__bubble--ai {
  background: rgba(255,255,255,.04); color: var(--sm-text-hi);
  border: 1px solid rgba(255,255,255,.06);
  border-bottom-left-radius: 6px;
}
.viz-phone__actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.viz-phone__cta, .viz-phone__alt {
  border: 0; padding: 8px 14px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; font-family: var(--ff-body); cursor: pointer;
}
.viz-phone__cta { background: var(--sm-gold-500); color: var(--sm-teal-ink); }
.viz-phone__alt { background: rgba(255,255,255,.06); color: var(--sm-text-mid); }

/* Floating Money Health card */
.viz-score {
  position: absolute; top: -2%; left: -4%;
  background: #ffffff; color: #0e0d0d;
  border-radius: 18px; padding: 14px 16px 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,.3);
  z-index: 3; min-width: 150px; transform: rotate(-3deg);
}
.viz-score__label { font-size: 9.5px; font-weight: 700; letter-spacing: .14em; color: #464646; margin-bottom: 6px; }
.viz-score__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.viz-score__num { font-family: var(--ff-head); font-size: 30px; font-weight: 700; color: #0e0d0d; line-height: 1; }
.viz-score__num span { font-size: 13px; color: #464646; font-weight: 500; }
.viz-score__ring { width: 40px; height: 40px; }
.viz-score__delta { margin-top: 8px; font-size: 11px; color: #2fb67c; font-weight: 600; }

/* Floating allocation card */
.viz-alloc {
  position: absolute; bottom: -6%; right: -6%;
  background: #ffffff; color: #0e0d0d;
  border-radius: 18px; padding: 12px 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,.3);
  z-index: 3; width: 180px; transform: rotate(3deg);
}
.viz-alloc__row {
  display: grid; grid-template-columns: 50px 1fr auto;
  align-items: center; gap: 8px;
  font-size: 11.5px; color: #464646; margin-bottom: 8px;
}
.viz-alloc__row:last-child { margin-bottom: 0; }
.viz-alloc__row b { font-family: var(--ff-head); font-size: 13px; font-weight: 700; color: #0e0d0d; justify-self: end; }
.viz-alloc__bar { height: 6px; border-radius: 3px; background: rgba(8,39,57,.08); overflow: hidden; }
.viz-alloc__bar span { display: block; height: 100%; background: var(--sm-gold-500); border-radius: 3px; }

/* ── Product tiles ───────────────────────────────────────────────── */
.tile-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 1180px; margin: 0 auto;
}
.tile {
  background: var(--sm-teal-500); border-radius: var(--r-32);
  padding: 36px 30px 32px;
  display: flex; flex-direction: column;
  transition: background .3s ease; min-height: 360px;
}
.tile:hover { background: var(--sm-teal-400); }
.tile__img { width: 84px; height: 84px; object-fit: contain; margin-bottom: 22px; display: block; }
.tile__viz { width: 84px; height: 84px; margin-bottom: 22px; display: flex; align-items: center; justify-content: center; }
.tile__viz svg { width: 100%; height: 100%; }
.tile__h { font-family: var(--ff-head); font-size: 22px; font-weight: 700; margin: 0 0 6px; line-height: 1.25; color: var(--sm-text-hi); }
.tile__sub { color: var(--sm-gold-300); font-size: 14px; font-weight: 600; margin: 0 0 12px; }
.tile__body { color: var(--sm-text-mid); font-size: 14.5px; line-height: 1.55; margin: 0; }

/* ── Four things — pillar cards ──────────────────────────────────── */
.pillars-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  max-width: 1100px; margin: 0 auto;
}
.pillar-card {
  background: var(--sm-teal-500); border-radius: var(--r-32);
  padding: 36px 32px; transition: background .3s ease, transform .3s ease;
}
.pillar-card:hover { background: var(--sm-teal-400); transform: translateY(-2px); }
.pillar-card__num { font-family: var(--ff-head); font-size: 13px; font-weight: 700; color: var(--sm-gold-300); letter-spacing: .12em; margin-bottom: 16px; display: block; }
.pillar-card__h { font-family: var(--ff-head); font-size: 24px; font-weight: 700; margin: 0 0 8px; line-height: 1.25; color: var(--sm-text-hi); }
.pillar-card__lead { color: var(--sm-gold-300); font-size: 14px; font-weight: 600; margin: 0 0 12px; }
.pillar-card__body { color: var(--sm-text-mid); font-size: 14.5px; line-height: 1.55; margin: 0; }

/* ── Coming Soon section ─────────────────────────────────────────── */
@keyframes sm-pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

.coming-section { position: relative; padding: 96px 0; }
.coming-section::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center top, rgba(255,198,49,.08), transparent 55%);
  pointer-events: none;
}
.coming-section > .container { position: relative; }
.coming-stamp {
  display: flex; align-items: center; justify-content: center;
  gap: 28px; margin: 0 0 14px;
}
.coming-stamp__rule {
  flex: 1 1 60px; min-width: 40px; max-width: 140px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,198,49,.6) 70%, var(--sm-gold-300));
}
.coming-stamp__rule:last-child {
  background: linear-gradient(270deg, transparent, rgba(255,198,49,.6) 70%, var(--sm-gold-300));
}
.coming-stamp__label {
  font-family: var(--ff-head);
  font-size: clamp(32px, 4.2vw, 52px); font-weight: 800;
  color: var(--sm-gold-300); letter-spacing: .12em;
  text-transform: uppercase; margin: 0; line-height: 1;
  white-space: nowrap; text-shadow: 0 0 40px rgba(255,198,49,.18);
}
.coming-stamp__sub {
  text-align: center; color: var(--sm-text-mid);
  font-size: 16px; margin: 0 0 48px; letter-spacing: .02em;
}
.coming-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  max-width: 1100px; margin: 0 auto;
}
.coming-card {
  background: linear-gradient(180deg, #0a4f70 0%, #083855 100%);
  border: 1px solid rgba(255,198,49,.25); border-radius: var(--r-32);
  padding: 36px 32px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color .3s, transform .3s;
}
.coming-card:hover { border-color: var(--sm-gold-300); transform: translateY(-2px); }
.coming-card__pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,198,49,.14); color: var(--sm-gold-300);
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  padding: 6px 12px; border-radius: var(--r-pill);
  text-transform: uppercase; align-self: flex-start;
}
.coming-card__pill::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--sm-gold-300); animation: sm-pulse 1.6s ease-in-out infinite;
}
.coming-card__h { font-family: var(--ff-head); font-size: 26px; font-weight: 700; margin: 0; line-height: 1.2; color: var(--sm-text-hi); }
.coming-card__body { color: var(--sm-text-mid); font-size: 15px; line-height: 1.55; margin: 0; }

/* ── Comparison table ────────────────────────────────────────────── */
.compare-wrap {
  max-width: 1040px; margin: 0 auto;
  background: var(--sm-teal-500); border-radius: var(--r-32);
  overflow: hidden; box-shadow: 0 4px 8px rgba(0,0,0,.10);
}
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; }
.compare-table th,
.compare-table td { text-align: left; padding: 18px 26px; border-bottom: 1px solid rgba(255,255,255,.06); }
.compare-table thead th {
  background: var(--sm-teal-850); color: var(--sm-text-mid);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
}
.compare-table thead th.us { color: var(--sm-gold-300); background: var(--sm-teal-900); }
.compare-table tbody td:first-child { color: var(--sm-text-hi); font-weight: 600; width: 30%; }
.compare-table tbody td.them { color: var(--sm-text-lo); }
.compare-table tbody td.us { color: var(--sm-text-hi); font-weight: 600; background: rgba(236,182,34,.05); }
.compare-table tbody td.us::before { content: "✓"; color: var(--sm-gold-300); font-weight: 700; margin-right: 10px; }
.compare-table tbody td.them.x::before { content: "✕"; color: #e05455; font-size: 18px; font-weight: 700; opacity: .85; display: inline-block; }
.compare-table tbody tr:last-child td { border-bottom: 0; }

/* ── Testimonials ────────────────────────────────────────────────── */
.testimonials { background: var(--sm-teal-850); padding: 80px 0; }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  max-width: 1180px; margin: 0 auto;
}
.review-card {
  background: var(--sm-teal-500); border-radius: var(--r-20);
  padding: 28px 26px; display: flex; flex-direction: column; gap: 14px;
}
.review-card__stars { color: var(--sm-gold-300); font-size: 18px; letter-spacing: 2px; }
.review-card__body { color: var(--sm-text-mid); font-size: 14.5px; line-height: 1.6; margin: 0; }
.review-card__who { color: var(--sm-text-hi); font-size: 13px; font-weight: 600; }
.review-card__who span { color: var(--sm-text-lo); font-weight: 400; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split__viz { display: none; }
  .tile-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .coming-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .compare-wrap { overflow-x: auto; }
  .section, .coming-section { padding: 64px 0; }
}
