/* =========================================================
   WorthChex homepage
   ========================================================= */
.home-page { background: #fff; }

.hp { --hp-brand: #635bff; --hp-ink: #14162b; --hp-muted: #5f677a; --hp-line: #e7e8f0; --hp-soft: #f7f7fc; }
.hp-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.hp-narrow { max-width: 820px; }

/* ---------- Hero ---------- */
.hp-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 24px 72px;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(99, 91, 255, .16), transparent 60%),
    radial-gradient(700px 380px at -10% 110%, rgba(37, 99, 235, .10), transparent 60%),
    linear-gradient(180deg, #fafaff, #f4f4fd);
  border-bottom: 1px solid var(--hp-line);
}
.hp-hero-inner { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; }
.hp-badge { display: inline-block; padding: 7px 13px; border: 1px solid #dcd9ff; border-radius: 999px; background: #fff; color: #4f46e5; font-size: 12px; font-weight: 750; letter-spacing: .3px; }
.hp-hero h1 { margin: 20px 0 0; color: var(--hp-ink); font-size: clamp(40px, 5.4vw, 64px); font-weight: 800; line-height: 1.02; letter-spacing: -2.4px; }
.hp-hero h1 span { display: block; background: linear-gradient(90deg, #6d28d9, #4f46e5 45%, #2563eb); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hp-lead { max-width: 560px; margin: 22px 0 0; color: var(--hp-muted); font-size: 18px; line-height: 1.6; }
.hp-ticks { margin: 24px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 26px; }
.hp-ticks li { display: flex; align-items: center; gap: 8px; color: #2b3045; font-size: 14.5px; font-weight: 650; }
.hp-ticks svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: #ecebff; color: #4f46e5; flex: 0 0 20px; }
.hp-chips { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.hp-chips a { padding: 9px 14px; border: 1px solid var(--hp-line); border-radius: 999px; background: #fff; color: var(--hp-ink); font-size: 14px; font-weight: 650; text-decoration: none; transition: border-color .15s, color .15s, transform .15s; }
.hp-chips a:hover { border-color: #c9c5ff; color: #4f46e5; transform: translateY(-1px); }

/* ---------- Quick take-home card ---------- */
.hp-quick { position: relative; padding: 26px; border: 1px solid #e3e2f5; border-radius: 22px; background: #fff; box-shadow: 0 30px 70px rgba(41, 37, 120, .14), 0 2px 6px rgba(20, 22, 43, .04); }
.hp-quick-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.hp-quick h2 { margin: 0; color: var(--hp-ink); font-size: 20px; font-weight: 800; letter-spacing: -.4px; }
.hp-quick-head span { padding: 4px 9px; border-radius: 8px; background: #f1f0ff; color: #4f46e5; font-size: 12px; font-weight: 750; }
.hp-quick label { display: block; margin: 0 0 6px; color: #3a4054; font-size: 13px; font-weight: 700; }
.hp-money { display: flex; align-items: center; border: 1.5px solid #dcdce8; border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.hp-money:focus-within { border-color: var(--hp-brand); box-shadow: 0 0 0 4px rgba(99, 91, 255, .14); }
.hp-money span { padding-left: 14px; color: #8a90a2; font-size: 20px; font-weight: 700; }
.hp-money input { width: 100%; min-width: 0; padding: 12px 12px 12px 6px; border: 0; outline: 0; background: transparent; color: var(--hp-ink); font: inherit; font-size: 22px; font-weight: 800; }
.hp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.hp-row select { width: 100%; padding: 10px 12px; border: 1.5px solid #dcdce8; border-radius: 12px; background: #fff; color: var(--hp-ink); font: inherit; font-size: 14px; font-weight: 600; }
.hp-row select:focus { outline: 0; border-color: var(--hp-brand); box-shadow: 0 0 0 4px rgba(99, 91, 255, .14); }
.hp-result { margin-top: 18px; padding: 18px; border-radius: 16px; background: linear-gradient(135deg, #f6f5ff, #eef4ff); }
.hp-result-label { color: #4f46e5; font-size: 12px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.hp-result strong { display: block; margin: 4px 0 2px; color: var(--hp-ink); font-size: 40px; font-weight: 800; letter-spacing: -1.4px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hp-split { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--hp-muted); font-size: 14px; }
.hp-split b { color: var(--hp-ink); font-variant-numeric: tabular-nums; }
.hp-bar { display: flex; height: 10px; margin: 14px 0 10px; overflow: hidden; border-radius: 99px; background: #dfe0ec; }
.hp-bar i { display: block; height: 100%; transition: width .25s ease; }
#hp-bar-net, .k-net { background: #635bff; }
#hp-bar-tax, .k-tax { background: #f59e0b; }
#hp-bar-ni, .k-ni { background: #10b981; }
#hp-bar-sl, .k-sl { background: #ec4899; }
.hp-legend { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--hp-muted); font-size: 13px; }
.hp-legend li { display: flex; align-items: center; gap: 6px; }
.hp-legend li[hidden] { display: none; }
.hp-legend i { width: 9px; height: 9px; border-radius: 3px; }
.hp-legend b { color: var(--hp-ink); font-variant-numeric: tabular-nums; }
.hp-cta { display: block; margin-top: 16px; padding: 13px 16px; border-radius: 12px; background: var(--hp-brand); color: #fff; font-size: 15px; font-weight: 750; text-align: center; text-decoration: none; transition: background .15s; }
.hp-cta:hover { background: #4f46e5; }
.hp-note { margin: 10px 0 0; color: #8a90a2; font-size: 12px; text-align: center; }

/* ---------- Sections ---------- */
.hp-section { padding: 80px 0; }
.hp-alt { background: var(--hp-soft); border-top: 1px solid var(--hp-line); border-bottom: 1px solid var(--hp-line); }
.hp-head { max-width: 720px; margin-bottom: 34px; }
.hp-head .step { color: #4f46e5; font-size: 12px; font-weight: 800; letter-spacing: 1.4px; }
.hp-head h2 { margin: 10px 0 0; color: var(--hp-ink); font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -1.2px; line-height: 1.1; }
.hp-head p { margin: 12px 0 0; color: var(--hp-muted); font-size: 17px; line-height: 1.6; }
.hp-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.hp-more { color: #4f46e5; font-size: 15px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.hp-more:hover { text-decoration: underline; }

/* Quick answers */
.hp-answers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hp-answer { display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--hp-line); border-radius: 18px; background: #fff; text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.hp-answer:hover { transform: translateY(-3px); border-color: #d6d3ff; box-shadow: 0 18px 40px rgba(41, 37, 120, .09); }
.hp-answer > span { color: #3a4054; font-size: 14.5px; font-weight: 700; }
.hp-answer strong { margin-top: 8px; color: var(--hp-ink); font-size: 34px; font-weight: 800; letter-spacing: -1.2px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hp-answer small { margin-top: 4px; color: var(--hp-muted); font-size: 13.5px; }
.hp-answer em { margin-top: 16px; color: #4f46e5; font-size: 13.5px; font-style: normal; font-weight: 750; }

/* Calculators */
.hp .hp-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; max-width: none; }
.hp .hp-tools .tool-card { min-height: 0; padding: 20px; }
.hp .hp-tool-all { background: #f1f0ff; border-color: #dcd9ff; }

/* Guides */
.hp-guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hp-guide { display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--hp-line); border-left: 4px solid var(--hp-brand); border-radius: 14px; background: #fff; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.hp-guide:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(41, 37, 120, .08); }
.hp-tag { color: #4f46e5; font-size: 11px; font-weight: 800; letter-spacing: 1.2px; }
.hp-guide strong { color: var(--hp-ink); font-size: 18px; font-weight: 800; letter-spacing: -.3px; line-height: 1.3; }
.hp-guide > span:last-child { color: var(--hp-muted); font-size: 14.5px; line-height: 1.55; }

/* Why */
.hp-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hp-why article { padding: 24px; border: 1px solid var(--hp-line); border-radius: 18px; background: #fff; }
.hp-why h3 { margin: 0 0 8px; color: var(--hp-ink); font-size: 18px; font-weight: 800; }
.hp-why p { margin: 0; color: var(--hp-muted); font-size: 15px; line-height: 1.6; }
.hp-why a { color: #4f46e5; font-weight: 650; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hp-hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hp-hero-copy { text-align: center; }
  .hp-lead { margin-left: auto; margin-right: auto; }
  .hp-ticks, .hp-chips { justify-content: center; }
  .hp-ticks { grid-template-columns: repeat(2, max-content); }
  .hp-quick { max-width: 560px; width: 100%; margin: 0 auto; }
  .hp .hp-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hp-answers, .hp-guides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .hp-hero { padding: 36px 16px 44px; }
  .hp-hero h1 { font-size: clamp(34px, 10vw, 44px); letter-spacing: -1.6px; }
  .hp-lead { font-size: 16px; }
  .hp-ticks { grid-template-columns: 1fr 1fr; gap: 10px 12px; text-align: left; }
  .hp-ticks li { font-size: 13.5px; align-items: flex-start; }
  .hp-chips { margin-top: 22px; }
  .hp-quick { padding: 20px 18px; border-radius: 18px; }
  .hp-result strong { font-size: 36px; }
  .hp-wrap { padding: 0 16px; }
  .hp-section { padding: 56px 0; }
  .hp-head-row { flex-direction: column; align-items: flex-start; }
  .hp-guides, .hp-why { grid-template-columns: 1fr; }
  .hp .hp-tools { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hp .hp-tools .tool-card { padding: 16px; }
  .hp .hp-tools .tool-card > span:last-child { display: none; }
  .hp-chips { display: none; }
  .hp-row { grid-template-columns: 1.4fr 1fr; gap: 10px; }
  .hp-row select { padding: 10px 6px; font-size: 13px; }
  .hp-answers { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hp-answer { padding: 14px; border-radius: 14px; }
  .hp-answer > span { font-size: 12.5px; line-height: 1.35; }
  .hp-answer strong { margin-top: 6px; font-size: 24px; letter-spacing: -.8px; }
  .hp-answer small { font-size: 12px; line-height: 1.35; }
  .hp-answer em { margin-top: 10px; font-size: 12.5px; }
  .hp .hp-tools .tool-card { flex-direction: row; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; }
  .hp .hp-tools .tool-card .tool-card-icon { margin: 0; flex: 0 0 34px; width: 34px; height: 34px; }
  .hp .hp-tools .tool-card strong { font-size: 14px; line-height: 1.25; }
  .hp-guide { padding: 16px 18px; }
  .hp-guide strong { font-size: 16.5px; }
}
@media (max-width: 360px) {
  .hp-row, .hp-answers { grid-template-columns: 1fr; }
  .hp-ticks { grid-template-columns: 1fr; }
}
