:root {
  --green:        #22C55E;
  --green-dark:   #16A34A;
  --cream:        #F5F1E8;
  --cream-2:      #EFE9DA;
  --white:        #FFFFFF;
  --ink:          #111827;
  --ink-2:        #1F2937;
  --muted:        #4B5563;
  --muted-2:      #6B7280;
  --yellow:       #FEF08A;
  --yellow-2:     #FDE047;
  --blue:         #3B82F6;
  --amber:        #F59E0B;
  --red:          #EF4444;
  --border:       #E5E7EB;
  --shadow-card:  0 4px 20px rgba(0,0,0,.06);
  --shadow-cta:   0 6px 18px rgba(34,197,94,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink-2);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; }
.muted { color: var(--muted); }

.page-bg {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(245,241,232,.86) 0%, rgba(245,241,232,.93) 45%, var(--cream-2) 100%),
    url('../images/background.webp') center top / cover no-repeat fixed,
    var(--cream);
}
@supports (-webkit-touch-callout: none) {          /* iOS: background-attachment fixed is broken */
  .page-bg { background-attachment: scroll; }
}

/* ---------- Header */
.site-header { max-width: 1100px; margin: 0 auto; padding: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 20px; }
.brand-text small { color: var(--muted); font-size: 12px; }

main { max-width: 1100px; margin: 0 auto; padding: 0 16px 40px; }

/* ---------- Hero */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 24px;
  padding: 24px 0 8px;
}
.hero-title {
  font-family: 'Caveat', cursive; font-weight: 700;
  font-size: clamp(48px, 8vw, 84px); margin: 0 0 12px; color: var(--ink);
}
.hero-pill {
  display: inline-block; background: var(--yellow); color: #1E3A8A;
  font-weight: 600; font-size: clamp(16px, 2.4vw, 20px);
  padding: 10px 18px; border-radius: 14px; margin: 0 0 24px;
}
.hero-joe { display: block; width: 100%; max-width: 400px; justify-self: center; }
.hero-joe img { width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(0,0,0,.14)); }

/* ---------- Buttons */
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none; text-align: center;
  font: 600 16px/1.2 'Poppins', sans-serif; padding: 15px 26px; border-radius: 999px;
  transition: transform .15s ease, background .15s ease;
}
.btn-cta { background: var(--green); color: var(--white); box-shadow: var(--shadow-cta); }
.btn-cta:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-cta:disabled { opacity: .6; cursor: default; transform: none; }
.btn-block { width: 100%; }

/* ---------- Benefits */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0 40px; }
.benefit { background: #FEFEFF; border-radius: 22px; box-shadow: var(--shadow-card); overflow: hidden; text-align: center; padding-bottom: 22px; }
.benefit-pink { background: #FEF6F6; }
.benefit img { width: 100%; aspect-ratio: 800 / 383; object-fit: cover; }
.benefit h3 { color: #1E3A8A; font-size: clamp(20px, 2.3vw, 24px); font-weight: 700; margin: 6px 18px 6px; }
.benefit p { color: #1E3A8A; margin: 0 18px; font-size: 16px; }

/* ---------- Form */
.form-section { display: flex; justify-content: center; margin-bottom: 48px; scroll-margin-top: 16px; }
.form-card, .success-card {
  width: 100%; max-width: 520px; background: var(--white); border-radius: 24px;
  padding: 28px 24px; box-shadow: var(--shadow-card);
}
.form-card h2 { margin: 0 0 6px; font-size: 26px; text-align: center; }
.form-sub { text-align: center; color: var(--muted); margin: 0 0 20px; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--ink); }
.field input, .phone-row select {
  width: 100%; font: 16px 'Poppins', sans-serif; color: var(--ink);
  padding: 13px 14px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--white);
}
.field input:focus, .phone-row select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
.phone-row { display: flex; gap: 8px; }
.phone-row select { width: auto; flex: 0 0 auto; }
.phone-row input { flex: 1; min-width: 0; }
.invalid { border-color: var(--red) !important; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 6px 0 18px; }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--green); }
.reassure { text-align: center; font-size: 13px; color: var(--muted-2); margin: 14px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; font-size: 14px; }
.alert-error { background: #FEE2E2; color: #7F1D1D; }
.alert-success { background: #DCFCE7; color: #14532D; }
.legal-todo { background: #FEF3C7; color: #92400E; padding: 10px 12px; border-radius: 10px; font-size: 14px; }

.success-card { background: #F0F7FF; max-width: 720px; }
.success-grid { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: center; }
.success-joe { width: 100%; filter: drop-shadow(0 10px 18px rgba(0,0,0,.12)); }
.success-hint-title {
  font-family: 'Poppins', 'Inter', sans-serif; color: #1E3A8A; font-size: 28px;
  background: #DBEAFE; display: inline-block; padding: 8px 20px; border-radius: 14px; margin: 0 0 14px;
}
.success-main { color: #1E3A8A; font-weight: 600; font-size: 17px; margin: 0 0 10px; }
.success-mail { margin: 0 0 14px; color: var(--muted); word-break: break-all; }
.success-mail:empty { display: none; }
.success-info { display: flex; gap: 12px; align-items: center; background: #EEF4FF; border-radius: 14px; padding: 12px 14px; color: #1E3A8A; font-weight: 500; }
.info-i { flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-family: Georgia, serif; }

/* ---------- Partners / rewards */
.partners, .how { text-align: center; margin-bottom: 48px; }
.partners h2, .how h2 { font-size: 26px; margin-bottom: 4px; }
.partner-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 20px; }
.tile {
  height: 84px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: #F8FAFC; border: 1px solid #E2E8F0; font-weight: 700; font-size: 18px; padding: 8px;
}
.tile img { max-height: 44px; width: auto; }
.tile-amazon span { color: #111; font-family: Arial, sans-serif; letter-spacing: -.5px; font-size: 22px; }
.tile-bank { gap: 6px; }
.tile-bank img { width: 36px; height: auto; }
.tile-bank span { color: #1A1F71; font-size: 14px; line-height: 1.15; text-align: left; }
.tile-netflix span { color: #E50914; letter-spacing: 1px; }
.tile-ikea { background: #0058A3; border-color: #0058A3; }
.tile-ikea span { color: #FFDB00; font-size: 22px; letter-spacing: 1px; }
.tile-spotify span { color: #1DB954; }
.tile-more { background: #F0FDF4; border-color: #86EFAC; }
.tile-more span { color: #15803D; }

.how-steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how-steps li { background: var(--white); border-radius: 20px; padding: 20px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 6px; }
.how-steps strong { color: var(--ink); }
.how-steps span { color: var(--muted); font-size: 14px; }

/* ---------- Footer */
.site-footer { text-align: center; padding: 24px 16px 40px; color: var(--muted-2); font-size: 14px; }
.footer-joe { margin: 0 auto 8px; width: 64px; border-radius: 50%; }
.site-footer a { color: var(--muted); }

/* ---------- Legal pages */
.legal { max-width: 780px; background: var(--white); border-radius: 20px; padding: 28px 24px; box-shadow: var(--shadow-card); margin-bottom: 40px; }
.legal h1 { margin-top: 0; }
.legal h2 { font-size: 20px; margin-top: 28px; }

/* ---------- Responsive */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; gap: 8px; padding-top: 8px; }
  .hero-joe { max-width: 240px; grid-row: 1; }
  .benefits { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
  .how-steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .success-grid { grid-template-columns: 1fr; text-align: center; }
  .success-joe { max-width: 150px; margin: 0 auto; }
  .success-info { text-align: left; }
  .brand-text small { display: none; }
}
@media (max-width: 420px) {
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .form-card, .success-card { padding: 22px 16px; }
  .hero-pill { font-size: 15px; }
}
