/* Earn Haus home page — member-app brand.
   Tokens mirror the design system (tokens/colors.css, radii.css, effects.css, typography.css). */
:root {
  --eh-yellow: #FFEE01;
  --eh-green: #1F9D57;
  --eh-green-hover: #15793F;
  --eh-green-text: #137A41;
  --eh-green-link: #1F7957;
  --eh-green-tint: rgba(31, 157, 87, 0.12);
  --eh-green-border: rgba(31, 157, 87, 0.28);
  --eh-green-pill: #28a745;
  --eh-green-join: #209C6A;
  --eh-amber: #E8A93A;
  --eh-n-900: #191C20;
  --eh-n-800: #2A2E35;
  --eh-n-600: #5B6470;
  --eh-n-500: #878F9A;
  --eh-n-300: #D8DBE2;
  --eh-n-200: #E8EAEF;
  --eh-n-150: #F0F1F5;
  --eh-n-100: #F5F6F8;
  --eh-n-75: #F7F8FA;
  --jet: #313335;
  --grad-offer: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  --grad-in-progress: linear-gradient(135deg, #8ecbff, #5ca9ff);
  --grad-router: linear-gradient(135deg, #1d4ed8, #4f46e5);
  --grad-targeted: linear-gradient(135deg, #16a34a, #0d9488);
  --font-app: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --shadow-survey-hover: 0 4px 16px rgba(0, 0, 0, 0.13);
  --shadow-tile: 0 .125rem .25rem rgba(0, 0, 0, .075);
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(56px, 8vw, 100px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.hp { margin: 0; background: #fff; color: var(--eh-n-900); font-family: var(--font-app); -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; min-height: 100vh; }
.hp main a { color: var(--eh-green-link); }
.hp main a:hover { color: var(--eh-green-hover); }
.hp main img { max-width: 100%; }
.hp main { flex: 1 0 auto; }
.hp h1, .hp h2, .hp h3 { margin: 0; }
.hp main p { margin: 0; }

/* ---------- Layout ---------- */
.hp-wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.hp-section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.hp-band { background: var(--eh-n-75); border-top: 1px solid var(--eh-n-150); border-bottom: 1px solid var(--eh-n-150); }
.hp-split { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-bottom: clamp(56px, 8vw, 80px); }
.hp-split > .hp-copy { max-width: 560px; }
@media (min-width: 992px) {
  .hp-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hp-split--flip > :first-child { order: 2; }
}
.hp-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.hp-grid--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.hp-grid--feed {
  gap: 12px;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, calc((100% - 36px) / 4));
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
  scrollbar-color: var(--eh-n-300) transparent;
  scrollbar-width: thin;
  padding-bottom: 12px;
}
.hp-grid--feed:focus-visible { outline: 3px solid var(--eh-green-border); outline-offset: 4px; }
.hp-grid--feed::-webkit-scrollbar { height: 8px; }
.hp-grid--feed::-webkit-scrollbar-track { background: transparent; }
.hp-grid--feed::-webkit-scrollbar-thumb { background: var(--eh-n-300); border-radius: 999px; }
@media (max-width: 767.98px) {
  .hp-grid--feed { grid-auto-columns: minmax(250px, 85%); }
}
.hp-grid--steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

/* ---------- Type ---------- */
.hp-eyebrow { font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--eh-n-600); }
.hp-eyebrow--green { color: var(--eh-green-text); }
.hp-h1 { font-size: clamp(2.25rem, 5.4vw, 3.5rem); line-height: 1.05; font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
.hp-h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; }
.hp-lede { font-size: clamp(1rem, 1.5vw, 1.1875rem); line-height: 1.5; color: var(--eh-n-600); text-wrap: pretty; }
.hp-body { font-size: .9375rem; line-height: 1.55; color: var(--eh-n-600); text-wrap: pretty; }
.hp-strong { font-size: 1.0625rem; line-height: 1.5; font-weight: 600; color: var(--eh-n-900); }
.hp-meta { font-size: .84375rem; color: var(--eh-n-600); }
.hp-money { font-weight: 800; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.hp-green { color: var(--eh-green); }
.hp-copy { display: flex; flex-direction: column; gap: 18px; }
.hp-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.hp-head > div { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }

/* ---------- Buttons (.eh-btn) ---------- */
.hp-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4375rem; border: 1px solid transparent; font: 700 1rem/1.2 var(--font-app); padding: .625rem 1rem; border-radius: 9px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s ease-in-out, border-color .15s ease-in-out; }
.hp-btn--lg { padding: .8125rem 1.375rem; border-radius: 11px; }
.hp-btn--block { display: flex; width: 100%; }
.hp .hp-btn--green { background: var(--eh-green); border-color: var(--eh-green); color: #fff; }
.hp .hp-btn--green:hover { background: var(--eh-green-hover); border-color: var(--eh-green-hover); color: #fff; }
.hp .hp-btn--ghost { background: #fff; border-color: var(--eh-n-200); color: var(--eh-n-900); }
.hp .hp-btn--ghost:hover { background: var(--eh-n-75); border-color: var(--eh-n-300); color: var(--eh-n-900); }
.hp-btn[disabled] { opacity: .76; cursor: wait; }

/* ---------- Header ---------- */
.hp-header { background: var(--eh-yellow); }
.hp-header .hp-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.hp-logo img { width: auto; height: 40px; display: block; }
.hp-nav { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.hp .hp-nav__link { color: var(--eh-n-900); font-weight: 700; font-size: .9375rem; text-decoration: none; padding: 8px 10px; }
.hp .hp-nav__link:hover { color: var(--eh-n-900); text-decoration: underline; }
@media (max-width: 420px) { .hp-logo img { height: 32px; } .hp-nav { gap: 4px; } .hp .hp-nav__link { padding: 8px 6px; } }

/* ---------- Trust strip ---------- */
.hp-trust { background: var(--eh-n-75); border-bottom: 1px solid var(--eh-n-150); }
.hp-trust .hp-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 8px 24px; padding-top: 12px; padding-bottom: 12px; font-size: .84375rem; font-weight: 600; color: var(--eh-n-600); }
.hp-trust__item { display: flex; align-items: center; gap: 8px; }
.hp-trust__item i { font-size: 1rem; color: var(--eh-n-900); }
.hp-trust__item .bi-cash-stack { color: var(--eh-green); }

/* ---------- Hero ---------- */
.hp-hero { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(40px, 6vw, 72px); }
@media (min-width: 992px) { .hp-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.hp-hero__copy { display: flex; flex-direction: column; gap: 22px; max-width: 600px; }
.hp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hp-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--eh-n-200); border-radius: 999px; font-size: .875rem; font-weight: 600; white-space: nowrap; flex: none; }
.hp-chip--green { border-color: var(--eh-green-border); background: var(--eh-green-tint); color: var(--eh-green-text); font-weight: 700; }

.hp-tp { height: 150px; max-width: 100%; }
.hp-tp img { width: 360px; max-width: 100%; height: auto; display: block; }

/* Signup / welcome card */
.hp-card-hero { background: #fff linear-gradient(115deg, #fff 55%, rgba(31, 157, 87, .07)); border: 1px solid var(--eh-n-200); border-radius: 16px; padding: clamp(24px, 3.2vw, 36px); display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 24px; }
.hp-card-hero__title { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.025em; }
.hp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hp-stat { background: var(--eh-n-100); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.hp-stat__value { font-size: 1.3125rem; font-weight: 800; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.hp-card-hero__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hp-marks { display: flex; gap: 6px; align-items: center; }
.hp-mark { width: 40px; height: 26px; border-radius: 6px; display: grid; place-items: center; color: #fff; font-size: .875rem; flex: none; }
.hp-mark img { width: 100%; height: 100%; display: block; }
.hp-mark--bank { background: var(--eh-n-800); }
.hp-mark--gift { background: var(--eh-amber); }
.hp-mark--lg { width: 48px; height: 31px; border-radius: 7px; }
.hp-opps { display: flex; align-items: center; gap: 14px; background: var(--eh-n-100); border-radius: 12px; padding: 16px 18px; }
.hp-opps__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--eh-green); color: #fff; display: grid; place-items: center; font-size: 1.25rem; flex: none; }
.hp-opps__count { font-size: clamp(1.75rem, 3.4vw, 2.25rem); line-height: 1; font-weight: 800; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }

/* signed-in / signed-out visibility: toggled by home.js via body[data-auth] */
body[data-auth="in"] .hp-only-out, body[data-auth="out"] .hp-only-in, body:not([data-auth]) .hp-only-in { display: none !important; }

/* ---------- Opportunity cards ---------- */
.hp-subhead { display: flex; align-items: center; gap: 8px; font-size: 1.0625rem; font-weight: 700; margin-bottom: 14px; }
.hp-block { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 44px); }

.hp-game { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--eh-n-200); border-radius: 15px; overflow: hidden; text-decoration: none; color: inherit; text-align: left; font: inherit; padding: 0; cursor: pointer; transition: box-shadow .15s ease-in-out, transform .15s ease-in-out; }
.hp .hp-game { color: inherit; }
.hp-game:hover { box-shadow: var(--shadow-survey-hover); transform: translateY(-2px); }
.hp-game__media { position: relative; aspect-ratio: 2 / 1; background: var(--eh-n-100); }
.hp-game__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hp-payout-pill { position: absolute; left: 12px; bottom: 12px; background: var(--eh-green-pill); color: #fff; border-radius: 20px; padding: 4px 12px; font-size: 1rem; font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.hp-game__body { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.hp-game__icon { width: 44px; height: 44px; border-radius: 11px; object-fit: cover; flex: none; }
.hp-game__title { font-size: 1.0625rem; font-weight: 700; line-height: 1.25; }
.hp-game__body > div { flex: 1; min-width: 0; }
.hp-game__body .bi-chevron-right { color: var(--eh-n-500); }
.hp-platforms { display: flex; gap: 8px; align-items: center; font-size: .84375rem; color: var(--eh-n-600); margin-top: 2px; }

/* OfferCard + SurveyCard (member-app offer wall) */
.hp-tile { background: #fff; border-radius: 10px; box-shadow: var(--shadow-tile); overflow: hidden; display: block; text-decoration: none; color: inherit; border: 0; padding: 0; font: inherit; text-align: left; cursor: pointer; transition: box-shadow .15s ease-in-out, transform .15s ease-in-out; }
.hp .hp-tile { color: inherit; }
.hp-tile:hover { box-shadow: var(--shadow-survey-hover); transform: translateY(-2px); }
.hp-tile__band { position: relative; height: 93px; background: var(--grad-offer); }
.hp-tile__band--router { background: var(--grad-router); }
.hp-tile__band--targeted { background: var(--grad-targeted); }
.hp-tile__band--progress { background: var(--grad-in-progress); }
.hp-tile__iconrow { position: absolute; left: 12px; right: 12px; bottom: 10px; display: flex; align-items: center; gap: 10px; }
.hp-tile__icon { width: 60px; height: 60px; min-width: 60px; border-radius: 13px; object-fit: cover; border: 2px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .2); }
.hp-tile__pill { background: var(--eh-green-pill); color: #fff; border-radius: 20px; padding: 3px 10px; font-size: .95rem; font-weight: 700; white-space: nowrap; }
.hp-tile__payout { position: absolute; left: 16px; bottom: 12px; color: #fff; font-size: 1.85rem; font-weight: 800; line-height: 1; white-space: nowrap; }
.hp-tile__body { padding: .65rem .8rem .75rem; }
.hp-tile__title { font-size: .95rem; font-weight: 700; line-height: 1.3; margin: 0 0 .3rem; color: var(--eh-n-900); }
.hp-tile__meta { font-size: .82rem; color: var(--eh-n-600); display: flex; gap: .4rem; }

.hp-empty { grid-column: 1 / -1; padding: 24px; border: 1px dashed var(--eh-n-300); border-radius: 15px; color: var(--eh-n-600); font-size: .9375rem; text-align: center; background: #fff; }
.hp-skeleton { border-radius: 15px; background: var(--eh-n-100); min-height: 150px; }
.hp-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

/* ---------- Reward feed ---------- */
.hp-feed-card { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 16px 18px; border: 1px solid var(--eh-n-200); border-radius: 15px; background: #fff; scroll-snap-align: start; }
.hp-feed-card__copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.hp-feed-card__amount { font-size: clamp(1.625rem, 2.6vw, 2rem); line-height: 1; font-weight: 800; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; color: var(--eh-green); }
.hp-feed-card__method { font-size: .875rem; font-weight: 700; }
.hp-feed-card .hp-mark { align-self: flex-start; }

/* ---------- Steps ---------- */
.hp-step { border: 1px solid var(--eh-n-200); border-radius: 15px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.hp-step--money { border-color: var(--eh-green-border); background: var(--eh-green-tint); }
.hp-step__top { display: flex; align-items: center; justify-content: space-between; }
.hp-step__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--eh-n-100); display: grid; place-items: center; font-size: 1.25rem; }
.hp-step--money .hp-step__icon { background: var(--eh-green); color: #fff; }
.hp-step__num { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.035em; color: var(--eh-n-300); line-height: 1; }
.hp-step--money .hp-step__num { color: var(--eh-green-border); }
.hp-step__title { font-size: 1.1875rem; font-weight: 800; }
.hp-step--money .hp-body { color: var(--eh-n-800); }

/* ---------- Lists ---------- */
.hp-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hp-checks li { display: flex; gap: 10px; font-size: .9375rem; line-height: 1.45; }
.hp-checks i { color: var(--eh-green); font-size: 1.1rem; }

.hp-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; display: block; }
.hp-panel { background: var(--eh-n-75); border: 1px solid var(--eh-n-150); border-radius: 16px; padding: clamp(16px, 2.4vw, 24px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

/* Payment options (.eh-payment-option) */
.hp-payopts { border: 1px solid var(--eh-n-200); border-radius: 16px; padding: clamp(16px, 2.4vw, 24px); display: flex; flex-direction: column; gap: 10px; }
.hp-payopt { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px; min-height: 112px; border: 2px solid #edf0f3; border-radius: 8px; background: #fff; }
.hp-payopt--selected { border-color: var(--eh-green-join); background: #f3fbf7; }
.hp-payopt__icon { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; }
.hp-payopt__copy { display: grid; gap: 6px; min-width: 0; }
.hp-payopt__name { font-weight: 800; line-height: 1.25; color: #171b20; }
.hp-payopt__desc { font-size: .95rem; line-height: 1.35; color: #5f6875; }
.hp-payopt__timing { font-size: .85rem; color: #77808b; margin-top: 4px; }
.hp-radio { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #cfd5dc; position: relative; }
.hp-payopt--selected .hp-radio { border-color: var(--eh-green-join); }
.hp-payopt--selected .hp-radio::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--eh-green-join); }

/* Rewards ledger */
.hp-ledger { border: 1px solid var(--eh-n-200); border-radius: 15px; overflow: hidden; }
.hp-ledger__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; }
.hp-ledger__row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--eh-n-150); }
.hp-ledger__row > div { flex: 1; min-width: 0; }
.hp-ledger__row .hp-mark { width: 44px; height: 28px; }

/* Features */
.hp-feature { background: #fff; border: 1px solid var(--eh-n-200); border-radius: 15px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.hp-feature i { font-size: 1.5rem; }
.hp-feature__title { font-size: 1.0625rem; font-weight: 700; }

/* Reviews */
.hp-review { border: 1px solid var(--eh-n-200); border-radius: 15px; padding: 20px; display: flex; flex-direction: column; gap: 12px; margin: 0; }
.hp-stars { display: flex; gap: 3px; color: var(--eh-amber); font-size: 1rem; }
.hp-review blockquote { margin: 0; font-size: .9375rem; line-height: 1.5; color: var(--eh-n-600); text-wrap: pretty; }
.hp-review figcaption { margin-top: auto; font-size: .84375rem; font-weight: 600; color: var(--eh-n-500); }
.hp-center { display: flex; justify-content: center; }
.hp-deferred-control { margin-top: 16px; }
.hp-deferred-control [hidden] { display: none; }

/* FAQ */
.hp-faq { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 56px); align-items: flex-start; padding-bottom: var(--section-y); }
.hp-faq__intro { flex: 1 1 280px; max-width: 400px; display: flex; flex-direction: column; gap: 10px; }
.hp-faq__list { flex: 2 1 480px; min-width: 0; border: 1px solid var(--eh-n-200); border-radius: 15px; overflow: hidden; }
.hp-faq__item + .hp-faq__item { border-top: 1px solid var(--eh-n-150); }
.hp-faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-size: 1rem; font-weight: 700; }
.hp-faq__item summary::-webkit-details-marker { display: none; }
.hp-faq__item summary:hover { background: var(--eh-n-75); }
.hp-faq__item summary i { color: var(--eh-n-600); transition: transform .18s ease; }
.hp-faq__item[open] summary i { transform: rotate(90deg); }
.hp-faq__item p { padding: 0 20px 20px; }

/* Final CTA */
.hp-final { padding-bottom: var(--section-y); }
.hp-final__panel { background: var(--eh-yellow); border-radius: 20px; padding: clamp(32px, 6vw, 72px) clamp(24px, 5vw, 64px); display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
@media (min-width: 992px) { .hp-final__panel { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.hp-final__title { font-size: clamp(1.875rem, 4vw, 2.75rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; }
.hp-final__panel .hp-strong { color: var(--eh-n-800); font-weight: 400; max-width: 520px; margin-top: 14px; }
.hp-final__actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; min-width: 0; max-width: 100%; }
.hp-final__actions .hp-tp img { mix-blend-mode: multiply; }
