/* OpinionWorld — landing & public pages. Design system "MeinungsWelt-Joe", mobile-first, centred column. */
: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;
    --radius-lg:    22px;
    --radius-md:    14px;
    --radius-sm:    10px;
    --shadow-card:  0 4px 20px rgba(0,0,0,.06);
    --shadow-cta:   0 6px 18px rgba(34,197,94,.35);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100%; }
html { scroll-behavior: smooth; }
img, svg { max-width: 100%; height: auto; }
img { display: block; }

body {
    margin: 0;
    font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--ink-2);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    background-color: var(--cream);
    background-image:
        linear-gradient(180deg, rgba(245,241,232,.55) 0%, rgba(245,241,232,.70) 100%),
        url('../images/background.webp'), url('../images/background.jpg');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
}
@supports (-webkit-touch-callout: none) {          /* iOS ignores fixed backgrounds */
    body { background-attachment: scroll; }
}
a { color: var(--blue); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }

/* ---------- Page container (mobile-first centred column) */
.page, .page-bg {
    max-width: 580px;
    margin: 0 auto;
    padding: 18px 14px 0;
}
main { display: block; }

/* ---------- Header / logo */
.site-header { padding: 2px 0 6px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { width: 40px; height: 40px; flex: 0 0 40px; }
.logo-icon img { width: 40px; height: 40px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-title { font-weight: 700; font-size: 19px; color: var(--ink); }
.logo-subtitle { font-size: 12px; color: var(--muted); }

/* ---------- Hero: 2 columns even on mobile */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    margin: 8px 0 14px;
}
.hero-title {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 62px;
    line-height: .95;
    color: var(--blue);
    margin: 0 0 12px;
}
.hero-line { display: block; }
.hero-subtitle { margin: 0 0 14px; font-size: 15px; font-weight: 600; color: #1E3A8A; line-height: 1.55; }
.hero-subtitle span {
    background: linear-gradient(transparent 8%, var(--yellow) 8%, var(--yellow) 92%, transparent 92%);
    box-decoration-break: clone; -webkit-box-decoration-break: clone;
    padding: 1px 4px;
}
.hero-cta {
    display: inline-block; text-decoration: none; font-weight: 600; font-size: 14px;
    color: var(--white); background: var(--green); padding: 10px 16px; border-radius: 999px;
    box-shadow: var(--shadow-cta);
}
.hero-cta:hover { background: var(--green-dark); }
.hero-mascot { justify-self: center; width: 100%; max-width: 250px; }
.mascot-hero { width: 100%; filter: drop-shadow(0 14px 24px rgba(0,0,0,.14)); }

/* ---------- Benefits: 3 columns even on mobile */
.benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 18px;
}
.benefit-card {
    margin: 0;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
.benefit-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

/* ---------- Form section */
.form-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 24px 18px 20px;
    margin-bottom: 22px;
    scroll-margin-top: 12px;
}
.form-title { font-size: 26px; font-weight: 700; color: var(--ink); text-align: center; margin: 0 0 6px; }
.form-subtitle { font-size: 14.5px; color: var(--muted); text-align: center; margin: 0 0 18px; }
.lead-form { display: flex; flex-direction: column; gap: 12px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field {
    display: flex; align-items: center; gap: 10px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0 14px;
    min-height: 52px;
    transition: border-color .15s, box-shadow .15s;
}
.field:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
.field-icon { color: var(--muted-2); display: flex; flex: 0 0 auto; }
.field input {
    flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
    font: 16px 'Poppins', sans-serif; color: var(--ink); padding: 14px 0;
}
.field input::placeholder { color: var(--muted-2); }
.field.invalid, .field:has(input.invalid) { border-color: var(--red); }
input.invalid { border-color: var(--red); }
.tel-prefix {
    display: flex; align-items: center; gap: 4px;
    padding-right: 10px; border-right: 1.5px solid var(--border);
}
.flag-za svg { display: block; border-radius: 2px; }
.flag-za[hidden] { display: none; }
.tel-prefix select {
    border: 0; background: transparent; font: 600 15px 'Poppins', sans-serif; color: var(--ink);
    padding: 12px 0; outline: 0; cursor: pointer;
}
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--green); }
.consent.invalid span, .consent input.invalid + span { color: var(--red); }

.cta-button {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; border: 0; cursor: pointer;
    background: var(--green); color: var(--white);
    font: 700 16px 'Poppins', sans-serif; letter-spacing: .2px;
    padding: 16px 20px; border-radius: 999px;
    box-shadow: var(--shadow-cta);
    transition: background .15s, transform .15s;
}
.cta-button:hover { background: var(--green-dark); transform: translateY(-1px); }
.cta-button:disabled { opacity: .65; cursor: default; transform: none; }
.cta-button .arrow { font-size: 18px; }
.btn { display: inline-block; text-decoration: none; text-align: center; font: 600 15px 'Poppins', sans-serif; padding: 13px 22px; border-radius: 999px; border: 0; cursor: pointer; }
.btn-cta { background: var(--green); color: var(--white); box-shadow: var(--shadow-cta); }
.btn-cta:hover { background: var(--green-dark); }

.reassure { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 14px; font-size: 12.5px; color: var(--muted-2); text-align: center; }

.alert { padding: 11px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; 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: var(--radius-sm); font-size: 14px; }

/* ---------- Success ("Almost there") */
.success-card { background: #F0F7FF; border-radius: var(--radius-md); padding: 18px 14px; }
.success-grid { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; align-items: center; }
.success-joe { width: 100%; filter: drop-shadow(0 8px 14px rgba(0,0,0,.12)); }
.success-hint-title {
    font-family: 'Poppins', 'Inter', sans-serif; color: #1E3A8A; font-size: 22px;
    background: #DBEAFE; display: inline-block; padding: 6px 16px; border-radius: 12px; margin: 0 0 10px;
}
.success-main { color: #1E3A8A; font-weight: 600; font-size: 15px; margin: 0 0 10px; }
.success-mail { margin: 0 0 12px; color: var(--muted); word-break: break-all; font-size: 14px; }
.success-info { display: flex; gap: 10px; align-items: center; background: #EEF4FF; border-radius: 12px; padding: 10px 12px; color: #1E3A8A; font-weight: 500; font-size: 13.5px; }
.info-i { flex: 0 0 28px; height: 28px; 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: 22px; }
.partners-title { font-size: 20px; font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.partners-sub { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.partners-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.partner-tile {
    height: 64px; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center; gap: 5px;
    background: #F8FAFC; border: 1px solid #E2E8F0; box-shadow: var(--shadow-card);
    font-weight: 700; font-size: 15px; padding: 6px; overflow: hidden;
}
.tile-amazon span { color: #111; font-family: Arial, sans-serif; letter-spacing: -.5px; font-size: 18px; }
.tile-bank img { width: 26px; flex: 0 0 26px; }
.tile-bank span { color: #1A1F71; font-size: 11.5px; line-height: 1.15; text-align: left; }
.tile-netflix span { color: #E50914; letter-spacing: 1px; font-size: 14px; }
.tile-gift { background: #FEF08A; border-color: #FDE047; }
.tile-gift span { color: #854D0E; font-size: 14px; }
.tile-spotify span { color: #1DB954; font-size: 14px; }
.tile-more { background: #F0FDF4; border-color: #86EFAC; }
.tile-more span { color: #15803D; font-size: 14px; }

.how-steps { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.how-steps li { background: var(--white); border-radius: var(--radius-md); padding: 14px 16px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 2px; text-align: left; }
.how-steps strong { color: var(--ink); font-size: 15px; }
.how-steps span { color: var(--muted); font-size: 13.5px; }

/* ---------- Footer */
.site-footer { text-align: center; padding: 12px 0 34px; color: var(--muted-2); font-size: 13px; }
.footer-joe { margin: 0 auto 6px; width: 56px; height: 56px; border-radius: 50%; }
.site-footer a { color: var(--muted); }
.site-footer p { margin: 6px 0 0; }

/* ---------- Legal pages */
.legal { background: var(--white); border-radius: var(--radius-lg); padding: 22px 18px; box-shadow: var(--shadow-card); margin: 8px 0 22px; font-size: 14.5px; }
.legal h1 { margin-top: 0; font-size: 24px; }
.legal h2 { font-size: 18px; margin-top: 24px; }
.legal h3 { font-size: 16px; }

/* ---------- Small phones */
@media (max-width: 420px) {
    .hero-title { font-size: 54px; }
    .hero-subtitle { font-size: 13.5px; }
    .hero-cta { font-size: 13px; padding: 9px 13px; }
    .benefits { gap: 7px; }
    .form-section { padding: 20px 14px 18px; }
    .form-title { font-size: 23px; }
    .success-grid { grid-template-columns: 84px minmax(0, 1fr); gap: 10px; }
    .success-hint-title { font-size: 19px; }
    .logo-subtitle { font-size: 11px; }
}
@media (max-width: 350px) {
    .hero-title { font-size: 46px; }
    .partner-tile span { font-size: 12px; }
}
/* ---------- Wider screens: partners on one row */
@media (min-width: 560px) {
    .partners-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .partner-tile { height: 70px; }
    .tile-bank { flex-direction: column; gap: 2px; }
    .tile-bank span { text-align: center; font-size: 10.5px; }
}
