/* hph.css: Holiday Payday Help. Rebuilt 1:1 from the Lovable design.
   Externalised: ModSecurity rejects inline <style>. */

:root {
  --background: oklch(98.5% .014 85);
  --foreground: oklch(26% .035 155);
  --card: oklch(100% 0 0);
  --primary: oklch(45% .11 152);
  --primary-fg: oklch(98% .012 85);
  --secondary: oklch(94% .03 150);
  --secondary-fg: oklch(32% .06 152);
  --muted-fg: oklch(50% .022 152);
  --accent: oklch(91% .09 85);
  --accent-fg: oklch(33% .07 60);
  --cranberry: oklch(55% .19 25);
  --border: oklch(90% .02 110);
  --ring: oklch(45% .11 152);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Karla", system-ui, sans-serif;
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / .25);
  --shadow-primary: 0 10px 15px -3px oklch(45% .11 152 / .25), 0 4px 6px -4px oklch(45% .11 152 / .25);
}

*, *::before, *::after { box-sizing: border-box; border: 0 solid var(--border); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: var(--font-body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-size: inherit; font-weight: inherit; }
ul { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; }
[id] { scroll-margin-top: 80px; }
.font-display { font-family: var(--font-display); }
.muted { color: var(--muted-fg); }

/* icons: Lucide SVGs used as masks so they take the text colour */
.ic { display: inline-block; flex: none; width: 20px; height: 20px; background-color: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.ic-sm { width: 16px; height: 16px; }
.ic-lg { width: 24px; height: 24px; }
.i-tree { --i: url("../img/hph/ic-tree-pine.svg"); }
.i-cal { --i: url("../img/hph/ic-calendar-heart.svg"); }
.i-shield { --i: url("../img/hph/ic-shield-check.svg"); }
.i-check { --i: url("../img/hph/ic-circle-check.svg"); }
.i-clock { --i: url("../img/hph/ic-clock.svg"); }
.i-gift { --i: url("../img/hph/ic-gift.svg"); }
.i-heart { --i: url("../img/hph/ic-heart-handshake.svg"); }
.i-house { --i: url("../img/hph/ic-house.svg"); }
.i-truck { --i: url("../img/hph/ic-truck.svg"); }
.i-snow { --i: url("../img/hph/ic-snowflake.svg"); }
.i-chev { --i: url("../img/hph/ic-chevron-down.svg"); }

.wrap { max-width: 1152px; margin: 0 auto; padding: 0 16px; }
.wrap-3xl { max-width: 768px; margin: 0 auto; padding: 0 16px; }
.sec { padding: 80px 0; }
.sec-tint { background: oklch(94% .03 150 / .6); }
.h2 { font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: -0.025em; }
.center { text-align: center; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--background); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.head-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 8px; }
.brand-mark { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 12px; background: var(--primary); color: var(--primary-fg); }
.brand-name { font-family: var(--font-display); font-size: 18px; line-height: 28px; font-weight: 600; letter-spacing: -0.025em; }
.nav { display: none; align-items: center; gap: 24px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted-fg); }
.nav a:hover { color: var(--foreground); }
.pill { border-radius: 9999px; background: var(--primary); color: var(--primary-fg); padding: 8px 20px; font-size: 14px; line-height: 20px; font-weight: 600; transition: opacity .15s; }
.pill:hover { opacity: .9; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-grid { display: grid; align-items: center; gap: 48px; padding-top: 64px; padding-bottom: 64px; }
.chip { display: inline-flex; align-items: center; gap: 8px; border-radius: 9999px; padding: 6px 16px; font-size: 14px; line-height: 20px; font-weight: 600; }
.chip-accent { background: var(--accent); color: var(--accent-fg); margin-bottom: 16px; }
.chip-secondary { background: var(--secondary); color: var(--secondary-fg); margin-bottom: 12px; }
.hero h1 { font-size: 36px; line-height: 1.25; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
.lede { margin-top: 20px; max-width: 448px; font-size: 18px; line-height: 28px; color: var(--muted-fg); }
.lede strong { color: var(--foreground); }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.btn-main { display: inline-block; border-radius: 9999px; background: var(--primary); color: var(--primary-fg); padding: 14px 32px; font-size: 16px; line-height: 24px; font-weight: 600; box-shadow: var(--shadow-primary); transition: transform .15s; }
.btn-main:hover { transform: translateY(-2px); }
.reassure { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; color: var(--muted-fg); }
.stats { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; border-top: 1px solid var(--border); padding-top: 32px; }
.stat-n { font-family: var(--font-display); font-size: 24px; line-height: 32px; font-weight: 700; color: var(--primary); }
.stat-l { font-size: 14px; line-height: 20px; color: var(--muted-fg); }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-2xl); }
.toast { position: absolute; left: -20px; bottom: -20px; border-radius: 16px; background: var(--card); padding: 16px; box-shadow: var(--shadow-xl); animation: float-slow 6s ease-in-out infinite; }
.toast-row { display: flex; align-items: center; gap: 12px; }
.toast-ic { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 9999px; background: var(--accent); color: var(--accent-fg); }
.toast-t { font-size: 14px; line-height: 20px; font-weight: 600; }
.toast-s { font-size: 12px; line-height: 16px; color: var(--muted-fg); }
@keyframes float-slow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } html { scroll-behavior: auto; } }

/* ---------- steps ---------- */
.sub { margin: 12px auto 0; max-width: 576px; text-align: center; color: var(--muted-fg); }
.steps { margin-top: 48px; display: grid; gap: 24px; }
.step { border-radius: 16px; background: var(--card); padding: 32px; box-shadow: var(--shadow-sm); transition: box-shadow .15s; }
.step:hover { box-shadow: var(--shadow-md); }
.step-ic { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 20px; border-radius: 12px; background: oklch(45% .11 152 / .1); color: var(--primary); }
.step h3 { font-size: 20px; line-height: 28px; font-weight: 600; }
.step p { margin-top: 8px; color: var(--muted-fg); }

/* ---------- covers ---------- */
.covers-grid { display: grid; align-items: center; gap: 48px; }
.covers-media { position: relative; order: 2; }
.covers-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-xl); }
.spend { display: none; position: absolute; right: -16px; top: -16px; border-radius: 16px; background: var(--card); padding: 16px 20px; box-shadow: var(--shadow-xl); }
.spend-n { font-family: var(--font-display); font-size: 24px; line-height: 32px; font-weight: 700; color: var(--cranberry); }
.spend-l { font-size: 12px; line-height: 16px; color: var(--muted-fg); }
.covers-copy { order: 1; }
.covers-copy .h2 { text-wrap: balance; }
.covers-copy > p.muted { margin-top: 12px; }
.covers-list { margin-top: 32px; display: grid; gap: 20px; }
.covers-list li { display: flex; gap: 16px; }
.cov-ic { display: flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: oklch(55% .19 25 / .1); color: var(--cranberry); }
.cov-t { font-weight: 600; }
.cov-d { font-size: 14px; line-height: 20px; color: var(--muted-fg); }

/* ---------- form ---------- */
.form-card { border: 1px solid var(--border); border-radius: 24px; background: var(--card); padding: 32px; box-shadow: var(--shadow-xl); }
.form-card > p.muted { margin-top: 8px; }
.rf { margin-top: 32px; display: grid; gap: 20px; }
.rf-label { display: block; margin-bottom: 8px; font-size: 14px; line-height: 20px; font-weight: 600; }
.amounts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.amt { border: 1px solid var(--border); border-radius: 12px; padding: 10px 8px; font-size: 14px; line-height: 20px; font-weight: 600; background: var(--background); transition: background-color .15s, border-color .15s, color .15s; }
.amt:hover { border-color: oklch(45% .11 152 / .5); }
.amt.is-on { border-color: var(--primary); background: var(--primary); color: var(--primary-fg); }
.rf-grid { display: grid; gap: 20px; }
.rf-field label { display: block; margin-bottom: 6px; font-size: 14px; line-height: 20px; font-weight: 600; }
.rf-field input { width: 100%; border: 1px solid var(--border); border-radius: 12px; background: var(--background); padding: 12px 16px; outline: none; }
.rf-field input::placeholder { color: var(--muted-fg); opacity: .7; }
.rf-field input:focus { box-shadow: 0 0 0 2px var(--ring); }
.rf-field input.has-error { border-color: var(--cranberry); }
.rf-err { margin-top: 6px; font-size: 13px; line-height: 18px; color: var(--cranberry); }
.rf-err:empty { display: none; }
.rf-alert { border-radius: 12px; background: oklch(55% .19 25 / .1); color: var(--cranberry); padding: 12px 16px; font-size: 14px; font-weight: 600; }
.rf-submit { width: 100%; border-radius: 12px; background: var(--primary); color: var(--primary-fg); padding: 16px; font-size: 18px; line-height: 28px; font-weight: 600; box-shadow: var(--shadow-primary); transition: transform .15s; }
.rf-submit:hover { transform: translateY(-2px); }
.rf-submit:disabled { opacity: .7; cursor: wait; transform: none; }
.rf-note { text-align: center; font-size: 12px; line-height: 1.625; color: var(--muted-fg); }
.rf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done { text-align: center; padding: 16px 0; }
.done-ic { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 9999px; background: var(--accent); color: var(--accent-fg); }
.done p.muted { margin-top: 8px; }

/* ---------- FAQ ---------- */
.faq { margin-top: 40px; display: grid; gap: 12px; }
.faq-item { border-radius: 16px; background: var(--card); box-shadow: var(--shadow-sm), 0 0 0 1px var(--border); }
.faq-q { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; text-align: left; font-weight: 600; }
.faq-q .ic { color: var(--muted-fg); transition: transform .2s; }
.faq-q[aria-expanded="true"] .ic { transform: rotate(180deg); }
.faq-a { padding: 0 24px 20px; color: var(--muted-fg); }
.faq-a[hidden] { display: none; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--border); padding: 48px 0; }
.foot-brand { display: flex; align-items: center; gap: 8px; }
.foot-mark { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; background: var(--primary); color: var(--primary-fg); }
.foot-name { font-family: var(--font-display); font-weight: 600; }
.foot-legal { margin-top: 24px; max-width: 768px; font-size: 12px; line-height: 1.625; color: var(--muted-fg); }
.foot-copy { margin-top: 16px; font-size: 12px; line-height: 16px; color: var(--muted-fg); }
.foot-links { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: var(--muted-fg); }
.foot-links a:hover { color: var(--foreground); }

/* ---------- breakpoints (Tailwind sm 640 / md 768) ---------- */
@media (min-width: 640px) {
  .rf-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .nav { display: flex; }
  .hero-grid { grid-template-columns: 1fr 1fr; padding-top: 96px; padding-bottom: 96px; }
  .hero h1 { font-size: 60px; }
  .h2 { font-size: 36px; line-height: 40px; }
  .form-card .h2 { font-size: 30px; line-height: 36px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .covers-grid { grid-template-columns: 1fr 1fr; }
  .covers-media { order: 1; }
  .covers-copy { order: 2; }
  .spend { display: block; }
  .form-card { padding: 48px; }
}
@media (max-width: 480px) {
  .toast { left: -8px; }
  .form-card { padding: 24px 16px; }
  .amounts { gap: 6px; }
  .amt { padding: 10px 2px; font-size: 13px; }
}
