/* Homepage (comparison hub) and /how-we-compare/. Wide-theme tokens only;
   rows and dividers, no cards (see deals/UI_UX_GUARDRAILS.md). */

.home-main { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.home-intro { padding: 40px 0 28px; }
.home-intro-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--w-ink);
  background: #F2F4F7; padding: 4px 12px; border-radius: 20px;
  margin-bottom: 16px;
}
.home-intro-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--jrs-green);
  box-shadow: 0 0 0 2px rgba(52, 139, 39, 0.2);
}
.home-intro h1 { margin: 0; font-size: clamp(28px, 4vw, 38px); line-height: 1.18; font-weight: 700; letter-spacing: -0.02em; max-width: 800px; color: var(--w-ink); }
.home-meta { margin: 12px 0 0; color: var(--w-ink-70); font-size: 15px; }

.home-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; align-items: center; }
.home-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 6px;
  background: var(--w-accent); color: #fff;
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: background 0.15s ease;
}
.home-btn-primary:hover, .home-btn-primary:focus-visible {
  background: var(--w-accent-strong);
  color: #fff;
}
.home-btn-primary svg { width: 16px; height: 16px; }

.home-btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: 6px;
  background: #fff; border: 1px solid #D0D5DD; color: var(--w-ink);
  font-size: 15px; font-weight: 500; text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.home-btn-secondary:hover, .home-btn-secondary:focus-visible {
  border-color: var(--w-ink);
  background: #F9FAFB;
  color: var(--w-ink);
}
.home-btn-secondary svg { width: 15px; height: 15px; color: var(--w-ink-70); }

.home-hero-quicklinks {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  margin-top: 18px; font-size: 13px; color: var(--w-ink-70);
}
.home-quicklinks-label { font-weight: 500; color: var(--w-ink-70); }
.home-hero-quicklinks a {
  color: var(--w-ink); text-decoration: underline; text-decoration-color: #D0D5DD; text-underline-offset: 3px;
}
.home-hero-quicklinks a:hover, .home-hero-quicklinks a:focus-visible {
  color: var(--w-accent-strong); text-decoration-color: var(--w-accent-strong);
}

.home-calc {
  border: 1px solid var(--w-border);
  border-radius: 8px;
  background: #FAFBFC;
  padding: 24px 28px;
  display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: stretch;
  margin: 20px 0 24px;
  scroll-margin-top: 24px;
}
.home-calc-inputs {
  flex: 1 1 320px; min-width: 0;
  display: flex; flex-direction: column; justify-content: center;
}
.home-calc-result {
  flex: 1 1 340px; min-width: 0;
  background: #FFFFFF;
  border: 1px solid var(--w-border);
  border-radius: 6px;
  padding: 18px 20px;
  display: flex; flex-direction: column; justify-content: center;
}
.home-calc h2, .home-section h2 { margin: 0 0 12px; font-size: 20px; font-weight: 600; }
.home-calc h2 { font-size: 18px; margin-bottom: 8px; }
.home-calc-fields { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.home-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--w-ink-70); }
.home-money {
  display: flex; align-items: center; height: 44px; padding: 0 12px;
  border: 1px solid #C9CED6; border-radius: 6px; background: #fff; color: var(--w-ink); font-size: 16px;
}
.home-money:focus-within { border-color: var(--w-ink); box-shadow: 0 0 0 1px var(--w-ink); }
.home-money input { border: 0; outline: none; width: 72px; padding: 0 6px; font: inherit; font-size: 16px; background: transparent; color: var(--w-ink); }
.home-field select {
  height: 44px; min-width: 160px; padding: 0 12px; font: inherit; font-size: 16px;
  border: 1px solid #C9CED6; border-radius: 6px; background: #fff; color: var(--w-ink);
}
.home-field select:focus-visible { outline: none; border-color: var(--w-ink); box-shadow: 0 0 0 1px var(--w-ink); }
.home-note { margin: 10px 0 0; font-size: 13px; color: var(--w-ink-70); }
.home-calc-result p { margin: 0; }
.home-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; color: var(--w-ink-70); }
.home-plan { margin-top: 4px !important; font-size: 16px; }
.home-price-line { margin-top: 2px !important; font-size: 14px; color: var(--w-ink-70); }
.home-figure { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-top: 10px; }
.home-first-year { font-size: 14px; color: var(--w-ink-70); }
.home-first-year strong, .home-row-price strong { color: var(--w-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.home-first-year strong { font-size: 24px; }
.home-save { font-size: 15px; font-weight: 600; color: var(--jrs-green-strong); }
.home-save.is-neutral { font-weight: 400; color: var(--w-ink-70); }
.home-calc-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 12px; }
.home-more { display: inline-block; font-size: 14px; font-weight: 600; color: var(--w-accent-strong); text-decoration: none; }
.home-more:hover, .home-more:focus-visible { text-decoration: underline; }
.home-calc-deals-link { font-size: 14px; font-weight: 500; color: var(--w-ink-70); text-decoration: none; }
.home-calc-deals-link:hover, .home-calc-deals-link:focus-visible { color: var(--w-ink); text-decoration: underline; }

.home-section { padding: 36px 0 8px; }
.home-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 2px; }
.home-section-head h2 { margin: 0; }
.home-section-head p, .home-sub { margin: 4px 0 0; font-size: 14px; color: var(--w-ink-70); }
.home-sub { margin-top: 6px; font-size: 15px; }
.home-section-head a, .home-link-strong { font-size: 14.5px; font-weight: 600; color: var(--w-accent-strong); text-decoration: none; }
.home-section-head a:hover, .home-section-head a:focus-visible { text-decoration: underline; }

.home-rows {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.home-row {
  display: grid;
  grid-template-columns: 140px 1fr auto 32px;
  align-items: center;
  gap: 16px 20px;
  padding: 14px 18px;
  background: #FFFFFF;
  border: 1px solid var(--w-border);
  border-radius: 8px;
  color: var(--w-ink);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.home-row:hover, .home-row:focus-visible {
  border-color: #C9CED6;
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.06);
  transform: translateY(-1px);
}
.home-row-tier {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.home-tier-badge, .home-row-tier b {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--w-ink);
  background: #F2F4F7;
  padding: 3px 8px;
  border-radius: 5px;
  width: fit-content;
  line-height: 1.2;
}
.home-row:hover .home-tier-badge, .home-row:hover .home-row-tier b {
  background: #EAECEF;
}
.home-tier-count, .home-row-tier span {
  font-size: 12px;
  color: var(--w-ink-70);
  padding-left: 2px;
}
.home-row-plan {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.home-plan-head, .home-row-plan > span:first-child {
  font-size: 15px;
  color: var(--w-ink);
  line-height: 1.35;
}
.home-provider-name, .home-row-plan strong {
  font-weight: 700;
  color: var(--w-ink);
}
.home-plan-dot {
  margin: 0 6px;
  color: #98A2B3;
  font-weight: normal;
}
.home-plan-name {
  color: var(--w-ink);
  font-weight: 500;
}
.home-plan-pricing, .home-row-plan > span:last-child {
  font-size: 13.5px;
  color: var(--w-ink-70);
  line-height: 1.35;
}
.home-row-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}
.home-price-caption {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--w-ink-70);
}
.home-price-val, .home-row-price strong {
  font-size: 20px;
  font-weight: 700;
  color: var(--w-ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.home-row-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #F8F9FA;
  border: 1px solid var(--w-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--w-ink-70);
  font-size: 14px;
  transition: all 0.15s ease;
}
.home-row:hover .home-row-arrow {
  background: var(--w-accent);
  border-color: var(--w-accent);
  color: #FFFFFF;
  transform: translateX(2px);
}

.home-rows-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 20px; padding: 18px 0 8px; border-bottom: 1px solid var(--w-border);
}
.home-rows-footer-text { font-size: 14px; color: var(--w-ink-70); }
.home-btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 38px; padding: 0 16px; border-radius: 6px;
  border: 1px solid var(--w-ink); background: transparent;
  color: var(--w-ink); font-size: 14px; font-weight: 600; text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.home-btn-outline:hover, .home-btn-outline:focus-visible {
  background: var(--w-ink); color: #fff;
}

/* Deals Feature Spotlight */
.home-deals-spotlight { padding: 40px 0 16px; }
.home-spotlight-card {
  border: 1px solid var(--w-border); border-radius: 8px; background: #FAFBFC;
  padding: clamp(24px, 3.5vw, 36px);
}
.home-spotlight-badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--w-accent); background: rgba(204, 55, 0, 0.08);
  padding: 4px 10px; border-radius: 4px; margin-bottom: 12px;
}
.home-spotlight-head h2 { margin: 0 0 10px; font-size: clamp(20px, 2.5vw, 24px); font-weight: 700; letter-spacing: -0.015em; color: var(--w-ink); }
.home-spotlight-head p { margin: 0 0 28px; font-size: 15px; color: var(--w-ink-70); max-width: 760px; line-height: 1.6; }
.home-spotlight-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px 32px;
}
.home-spotlight-item {
  border-top: 2px solid var(--w-ink); padding-top: 16px;
}
.home-spotlight-icon {
  width: 28px; height: 28px; color: var(--w-accent); margin-bottom: 10px;
}
.home-spotlight-icon svg { width: 100%; height: 100%; }
.home-spotlight-item h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; color: var(--w-ink); }
.home-spotlight-item p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--w-ink-70); }
.home-spotlight-footer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px;
  margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--w-border);
}
.home-link-subtle {
  font-size: 14px; font-weight: 500; color: var(--w-ink-70); text-decoration: underline; text-decoration-color: #D0D5DD; text-underline-offset: 3px;
}
.home-link-subtle:hover, .home-link-subtle:focus-visible {
  color: var(--w-ink); text-decoration-color: var(--w-ink);
}

/* Latest Price Changes */
.home-change {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  align-items: center;
  gap: 14px 18px;
  padding: 12px 16px;
  background: #FFFFFF;
  border: 1px solid var(--w-border);
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 14.5px;
  transition: border-color 0.15s ease;
}
.home-change:hover {
  border-color: #D0D5DD;
}
.home-change-date, .home-change time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--w-ink-70);
  background: #F2F4F7;
  padding: 4px 8px;
  border-radius: 4px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.home-change-plan, .home-change > span:nth-child(2) {
  min-width: 0;
  color: var(--w-ink);
}
.home-change-provider, .home-change a {
  color: var(--w-ink);
  text-decoration: none;
  font-weight: 700;
}
.home-change-provider:hover, .home-change a:hover {
  color: var(--w-accent-strong);
  text-decoration: underline;
}
.home-change-dot {
  margin: 0 4px;
  color: #98A2B3;
}
.home-change-name {
  color: var(--w-ink-70);
  font-size: 14px;
}
.home-change-badges, .home-change-diff, .home-change > span:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
  justify-content: flex-end;
  font-variant-numeric: tabular-nums;
}
.home-change-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 13px;
  line-height: 1.35;
}
.home-change-pill.is-drop {
  background: #EDF7EE;
  color: #1E6615;
  border: 1px solid #CDE7CF;
}
.home-change-pill.is-rise {
  background: #F8F9FA;
  color: #344054;
  border: 1px solid #E4E7EC;
}
.home-pill-badge {
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.home-change-pill.is-drop .home-pill-badge {
  color: var(--jrs-green-strong);
}
.home-change-pill.is-rise .home-pill-badge {
  color: var(--w-ink-70);
}
.home-pill-math {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.home-pill-math del {
  color: #8591A5;
  text-decoration: line-through;
  font-size: 12px;
}
.home-pill-math strong {
  font-weight: 700;
}
.home-change-pill.is-drop .home-pill-math strong {
  color: #1E6615;
}
.home-change-pill.is-rise .home-pill-math strong {
  color: #101828;
}
.home-pill-tail {
  color: #667085;
  font-size: 11.5px;
}

.home-providers { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; font-size: 15px; }
.home-providers a { color: var(--w-ink); text-decoration: underline; text-decoration-color: #C9CED6; text-underline-offset: 3px; padding: 6px 0; }
.home-providers a.home-link-strong { color: var(--w-accent-strong); text-decoration: none; }

.home-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px 32px; margin-top: 14px; }
.home-trust div { border-top: 2px solid var(--w-ink); padding-top: 12px; }
.home-trust h3 { margin: 0; font-size: 16px; font-weight: 600; }
.home-trust p { margin: 6px 0 0; font-size: 15px; color: var(--w-ink-70); }

.home-pm {
  margin: 40px 0 0; padding: 20px 0;
  border-top: 1px solid var(--w-border); border-bottom: 1px solid var(--w-border);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
}
.home-pm h2 { margin: 0; font-size: 17px; font-weight: 600; }
.home-pm p { margin: 4px 0 0; font-size: 15px; color: var(--w-ink-70); }
.home-pm a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--w-ink); border-radius: 6px; color: var(--w-ink); text-decoration: none; font-size: 15px; font-weight: 600;
}
.home-pm a:hover, .home-pm a:focus-visible { background: var(--w-ink); color: #fff; }

/* How we compare */
.hwc { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-start; padding-bottom: 48px; }
.hwc article { flex: 999 1 560px; min-width: 0; max-width: 700px; line-height: 1.65; }
.hwc h1 { margin: 16px 0 0; font-size: 30px; line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; }
.hwc-byline { margin: 10px 0 0; font-size: 14px; color: var(--w-ink-70); }
.hwc-lede { margin: 20px 0 0; font-size: 17px; }
.hwc section { margin-top: 32px; border-top: 1px solid var(--w-border); padding-top: 20px; scroll-margin-top: 24px; }
.hwc h2 { margin: 0; font-size: 20px; font-weight: 600; }
.hwc ul { margin: 10px 0 0; padding-left: 20px; }
.hwc li + li { margin-top: 6px; }
.hwc-example { margin-top: 14px; background: #F7F8FA; border-radius: 6px; padding: 16px 18px; font-variant-numeric: tabular-nums; }
.hwc-example p { margin: 0; }
.hwc-example p:first-child { font-size: 14px; color: var(--w-ink-70); }
.hwc aside { flex: 1 1 220px; min-width: 0; padding-top: 72px; }
.hwc aside p { margin: 0; font-size: 13px; font-weight: 600; color: var(--w-ink-70); }
.hwc aside nav { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; font-size: 15px; }
.hwc aside a { color: var(--w-ink); text-decoration: none; padding: 6px 0; }
.hwc aside a:hover { color: var(--w-accent-strong); }
@media (max-width: 860px) { .hwc aside { display: none; } }

/* site.css sets Playfair on h1–h3; the comparison pages use Plus Jakarta. */
.home-main h1, .home-main h2, .home-main h3 { font-family: 'Plus Jakarta Sans', -apple-system, sans-serif; }
.home-change a { color: var(--w-ink); text-decoration: none; }
.home-change a:hover, .home-change a:focus-visible { color: var(--w-accent-strong); text-decoration: underline; }

@media (max-width: 680px) {
  .home-intro { padding: 28px 0 20px; }
  .home-hero-actions { flex-direction: column; align-items: stretch; }
  .home-btn-primary, .home-btn-secondary { justify-content: center; width: 100%; }
  .home-calc { padding: 18px 16px; gap: 18px; }
  .home-spotlight-card { padding: 20px 16px; }
  .home-spotlight-footer { flex-direction: column; align-items: stretch; text-align: center; }
  .home-spotlight-footer .home-btn-primary { width: 100%; justify-content: center; }
  .home-rows-footer { flex-direction: column; align-items: stretch; gap: 10px; }
  .home-btn-outline { width: 100%; justify-content: center; }

  .home-row {
    grid-template-columns: 1fr auto;
    gap: 10px 14px;
    padding: 12px 14px;
  }
  .home-row-tier {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  .home-row-plan {
    grid-column: 1 / 3;
  }
  .home-plan-head, .home-row-plan > span:first-child {
    white-space: normal;
  }
  .home-row-price {
    align-items: flex-end;
  }
  .home-row-arrow {
    display: none;
  }

  .home-change {
    grid-template-columns: auto 1fr;
    gap: 8px 12px;
    padding: 10px 12px;
  }
  .home-change-date, .home-change time {
    grid-column: 1 / 2;
  }
  .home-change-plan, .home-change > span:nth-child(2) {
    grid-column: 2 / 3;
    font-size: 14px;
  }
  .home-change-badges, .home-change-diff, .home-change > span:last-child {
    grid-column: 1 / 3;
    justify-content: flex-start;
  }
}
