/* =========================================================
   OpinioTap.com — Stylesheet
   Online Survey Panel
   Palette: Blue #2563EB · Purple #7C3AED · Green #10B981
   Fonts: Sora (display) · Plus Jakarta Sans (body)
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  --blue: #2563EB;
  --blue-600: #1d4ed8;
  --blue-50: #eff4ff;
  --purple: #7C3AED;
  --purple-50: #f4effe;
  --green: #10B981;
  --green-50: #e7faf3;

  --bg: #F8FAFC;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e6ebf3;

  --grad-primary: linear-gradient(120deg, #2563EB 0%, #7C3AED 100%);
  --grad-soft: linear-gradient(135deg, #eff4ff 0%, #f4effe 60%, #e7faf3 100%);
  --grad-accent: linear-gradient(120deg, #10B981 0%, #2563EB 100%);

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px -16px rgba(37, 99, 235, .25);
  --shadow-card: 0 10px 30px -12px rgba(15, 23, 42, .14);

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --container: 1180px;
  --header-h: 76px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--ink-soft);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: "Sora", system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding: 88px 0; position: relative; }
.section--tight { padding: 64px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Sora", sans-serif; font-weight: 600; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-50);
  padding: 7px 14px; border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.section-head { max-width: 660px; margin: 0 auto 54px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 16px; }
.section-head p { font-size: 1.08rem; color: var(--muted); }
.text-grad {
  background: var(--grad-primary);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: "Sora", sans-serif; font-weight: 600; font-size: .98rem;
  padding: 14px 26px; border-radius: var(--radius-pill);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--grad-primary); color: #fff; box-shadow: var(--shadow-lg); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 28px 64px -14px rgba(124, 58, 237, .42); }
.btn--ghost { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.btn--ghost:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cdd7e6; }
.btn--light { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.4); backdrop-filter: blur(6px); }
.btn--light:hover { background: rgba(255,255,255,.26); transform: translateY(-3px); }
.btn--white { background: #fff; color: var(--blue); box-shadow: var(--shadow-md); }
.btn--white:hover { transform: translateY(-3px); box-shadow: 0 26px 60px -18px rgba(0,0,0,.4); }
.btn--lg { padding: 17px 34px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  background: rgba(248, 250, 252, .8);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(255,255,255,.88); box-shadow: var(--shadow-sm); }
.nav { height: 100%; display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: "Sora", sans-serif; font-weight: 700; font-size: 1.28rem; color: var(--ink); letter-spacing: -.02em; }
.brand .logo-mark { width: 38px; height: 38px; flex: none; }
.brand b { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  font-family: "Sora", sans-serif; font-weight: 500; font-size: .95rem; color: var(--ink-soft);
  padding: 9px 14px; border-radius: var(--radius-pill); transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--blue); background: var(--blue-50); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 70px 0 90px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(circle at 1px 1px, rgba(37,99,235,.12) 1px, transparent 0) 0 0 / 26px 26px,
    var(--grad-soft);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; top: -180px; right: -160px;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(124,58,237,.20), transparent 62%);
  filter: blur(8px);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-copy h1 { font-size: clamp(2.3rem, 5vw, 3.5rem); margin-bottom: 20px; }
.hero-copy .lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 540px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.hchip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Sora", sans-serif; font-weight: 600; font-size: .9rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  padding: 9px 16px; border-radius: var(--radius-pill);
}
.hchip svg { width: 17px; height: 17px; color: var(--green); }
.hero-visual { position: relative; }
.hero-visual .float-badge {
  position: absolute; background: #fff; box-shadow: var(--shadow-card);
  border-radius: 16px; padding: 12px 16px; display: flex; align-items: center; gap: 10px;
  font-family: "Sora", sans-serif; font-weight: 600; font-size: .9rem; color: var(--ink);
}
.float-badge .dot { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.float-badge.b1 { top: 14px; left: -14px; animation: floaty 5s var(--ease) infinite; }
.float-badge.b2 { bottom: 36px; right: -10px; animation: floaty 6s var(--ease) infinite .8s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Trust strip ---------- */
.trust { background: var(--surface); border-block: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust-item { display: flex; align-items: center; gap: 14px; padding: 26px 8px; }
.trust-item .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--blue-50); }
.trust-item .ic svg { width: 26px; height: 26px; }
.trust-item h4 { font-size: 1.02rem; }
.trust-item p { font-size: .86rem; color: var(--muted); margin-top: 2px; }

/* ---------- How it works ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.steps::before {
  content: ""; position: absolute; top: 38px; left: 8%; right: 8%; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--green));
  border-radius: 3px; opacity: .35; z-index: 0;
}
.step { position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 20px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s; }
.step:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.step .step-ic { width: 78px; height: 78px; margin: 0 auto 16px; border-radius: 22px; display: grid; place-items: center; background: var(--grad-soft); position: relative; transition: transform .35s var(--ease); }
.step:hover .step-ic { transform: scale(1.06) rotate(-3deg); }
.step .step-ic svg { width: 38px; height: 38px; }
.step .step-no {
  position: absolute; top: -10px; right: -10px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--grad-primary); color: #fff; font-family: "Sora", sans-serif; font-weight: 700; font-size: .85rem;
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.step h4 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { font-size: .88rem; color: var(--muted); }

/* ---------- Why join (feature cards) ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
  position: relative; overflow: hidden;
}
.feature::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; transform: scaleX(0); transform-origin: left;
  background: var(--grad-primary); transition: transform .35s var(--ease);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: transparent; }
.feature:hover::after { transform: scaleX(1); }
.feature .f-ic { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; }
.feature .f-ic svg { width: 28px; height: 28px; }
.feature h3 { font-size: 1.18rem; margin-bottom: 9px; }
.feature p { font-size: .95rem; color: var(--muted); }

/* tints */
.tint-blue { background: var(--blue-50); color: var(--blue); }
.tint-purple { background: var(--purple-50); color: var(--purple); }
.tint-green { background: var(--green-50); color: var(--green); }

/* ---------- Rewards ---------- */
.rewards { background: var(--surface); }
.rewards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.rewards-copy h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 16px; }
.rewards-copy > p { font-size: 1.05rem; color: var(--muted); margin-bottom: 26px; }
.pay-methods { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.pay-card { display: flex; align-items: center; gap: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; flex: 1 1 200px; transition: transform .3s var(--ease), box-shadow .3s; }
.pay-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.pay-card .pay-logo { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.pay-card h4 { font-size: 1.05rem; }
.pay-card span { font-size: .82rem; color: var(--muted); }
.notice {
  display: flex; gap: 13px; align-items: flex-start;
  background: var(--green-50); border: 1px solid #b9efd8; color: #0b7a59;
  border-radius: var(--radius); padding: 16px 18px; font-size: .92rem; line-height: 1.55;
}
.notice svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }

/* ---------- Impact ---------- */
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.impact-card { border-radius: var(--radius-lg); padding: 28px 24px; color: #fff; position: relative; overflow: hidden; min-height: 200px; display: flex; flex-direction: column; justify-content: flex-end; box-shadow: var(--shadow-card); transition: transform .3s var(--ease); }
.impact-card:hover { transform: translateY(-6px); }
.impact-card .i-ic { position: absolute; top: 22px; left: 24px; width: 50px; height: 50px; border-radius: 14px; background: rgba(255,255,255,.18); display: grid; place-items: center; }
.impact-card .i-ic svg { width: 26px; height: 26px; }
.impact-card h3 { color: #fff; font-size: 1.2rem; margin-bottom: 6px; }
.impact-card p { color: rgba(255,255,255,.86); font-size: .9rem; }
.impact-card.c1 { background: linear-gradient(150deg, #2563EB, #1e40af); }
.impact-card.c2 { background: linear-gradient(150deg, #7C3AED, #5b21b6); }
.impact-card.c3 { background: linear-gradient(150deg, #10B981, #047857); }
.impact-card.c4 { background: linear-gradient(150deg, #0ea5e9, #2563EB); }
.impact-card::after { content: ""; position: absolute; bottom: -40px; right: -40px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,.08); }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--surface); }
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.t-card { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 28px 28px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; overflow: hidden; }
.t-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.t-quote-mark { position: absolute; top: 8px; right: 22px; font-family: "Sora", serif; font-size: 5rem; line-height: 1; color: var(--blue); opacity: .12; font-weight: 800; }
.t-card blockquote { position: relative; font-size: 1.04rem; color: var(--ink-soft); margin-bottom: 22px; font-style: normal; }
.t-author { display: flex; align-items: center; gap: 12px; }
.t-avatar { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff; flex: none; }
.t-avatar svg { width: 22px; height: 22px; }
.t-author .ro { font-family: "Sora", sans-serif; font-weight: 600; color: var(--ink); font-size: .9rem; }
.t-disclaimer { text-align: center; font-size: .82rem; color: var(--muted); margin-top: 28px; max-width: 620px; margin-inline: auto; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 860px; margin-inline: auto; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.faq-item.open { box-shadow: var(--shadow-card); border-color: #cdd7e6; }
.faq-q { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-family: "Sora", sans-serif; font-weight: 600; font-size: 1.02rem; color: var(--ink); }
.faq-q .chev { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--blue-50); display: grid; place-items: center; transition: transform .3s var(--ease), background .3s; }
.faq-q .chev svg { width: 16px; height: 16px; color: var(--blue); }
.faq-item.open .chev { transform: rotate(180deg); background: var(--grad-primary); }
.faq-item.open .chev svg { color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a-inner { padding: 0 24px 22px; color: var(--muted); font-size: .96rem; }

/* ---------- CTA banner ---------- */
.cta-banner { position: relative; overflow: hidden; }
.cta-card {
  background: var(--grad-primary); border-radius: var(--radius-lg); padding: 64px 40px; text-align: center;
  color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.cta-card::before { content: ""; position: absolute; top: -80px; left: -60px; width: 300px; height: 300px; border-radius: 50%; background: rgba(16,185,129,.3); filter: blur(10px); }
.cta-card::after { content: ""; position: absolute; bottom: -100px; right: -60px; width: 340px; height: 340px; border-radius: 50%; background: rgba(255,255,255,.12); }
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 14px; }
.cta-card p { color: rgba(255,255,255,.9); font-size: 1.12rem; max-width: 560px; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1424; color: #aab6c9; padding: 64px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.09); }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: .92rem; max-width: 300px; color: #8493a8; }
.footer-col h5 { color: #fff; font-family: "Sora", sans-serif; font-size: .95rem; margin-bottom: 16px; }
.footer-col a { display: block; font-size: .92rem; padding: 5px 0; color: #aab6c9; transition: color .2s, padding-left .2s; }
.footer-col a:hover { color: #fff; padding-left: 4px; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: background .25s, transform .25s; }
.socials a:hover { background: var(--grad-primary); transform: translateY(-3px); }
.socials svg { width: 19px; height: 19px; color: #fff; }
.footer-bottom { padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: .85rem; color: #76859b; }
.footer-bottom .mini-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Page hero (sub pages) ---------- */
.page-hero { background: var(--grad-soft); padding: 64px 0 56px; text-align: center; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; top: -120px; right: -80px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(37,99,235,.16), transparent 65%); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 12px; position: relative; }
.page-hero p { color: var(--muted); font-size: 1.08rem; max-width: 620px; margin-inline: auto; position: relative; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 16px; position: relative; }
.breadcrumb a { color: var(--blue); }

/* ---------- Legal / prose ---------- */
.prose { max-width: 820px; margin-inline: auto; }
.prose .updated { font-size: .85rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 7px 16px; display: inline-block; margin-bottom: 36px; }
.prose h2 { font-size: 1.5rem; margin: 38px 0 12px; padding-top: 8px; }
.prose h3 { font-size: 1.12rem; margin: 24px 0 8px; color: var(--ink); }
.prose p { margin-bottom: 14px; }
.prose ul.bullets { list-style: none; margin: 0 0 18px; padding: 0; }
.prose ul.bullets li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.prose ul.bullets li::before { content: ""; position: absolute; left: 0; top: 9px; width: 9px; height: 9px; border-radius: 3px; background: var(--grad-primary); }
.prose .callout { background: var(--blue-50); border: 1px solid #cfe0ff; border-radius: var(--radius); padding: 18px 22px; margin: 22px 0; font-size: .95rem; color: var(--ink-soft); }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 36px; box-shadow: var(--shadow-sm); }
.toc h4 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { columns: 2; column-gap: 30px; padding-left: 18px; font-size: .92rem; }
.toc a { color: var(--blue-600); }
.toc a:hover { text-decoration: underline; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px; align-items: start; }
.contact-info .info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; box-shadow: var(--shadow-sm); display: flex; gap: 15px; align-items: flex-start; }
.contact-info .info-card .ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.contact-info .info-card h4 { font-size: 1.02rem; margin-bottom: 3px; }
.contact-info .info-card p, .contact-info .info-card a { font-size: .92rem; color: var(--muted); }
.contact-info .info-card a:hover { color: var(--blue); }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-card); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: "Sora", sans-serif; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 16px; font-size: .98rem; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.field textarea { resize: vertical; min-height: 130px; }
.field .err { color: #dc2626; font-size: .82rem; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid textarea { border-color: #dc2626; }
.field.invalid .err { display: block; }
.form-success { display: none; background: var(--green-50); border: 1px solid #b9efd8; color: #0b7a59; border-radius: var(--radius); padding: 16px 20px; margin-bottom: 18px; font-size: .95rem; align-items: center; gap: 10px; }
.form-success.show { display: flex; }
.form-success svg { width: 22px; height: 22px; flex: none; }

/* ============================================================
   ANIMATED HERO MOCKUP (inbox → survey → completed)
   ============================================================ */
.app-mock {
  position: relative; width: 100%; max-width: 480px; margin-inline: auto;
  background: #fff; border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.app-bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--grad-primary); }
.app-dots { display: flex; gap: 6px; }
.app-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.55); }
.app-title { font-family: "Sora", sans-serif; font-weight: 700; color: #fff; font-size: .95rem; }
.app-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: "Sora", sans-serif; font-size: .78rem; font-weight: 600; color: #fff; background: rgba(255,255,255,.2); padding: 4px 12px; border-radius: 999px; }
.app-live i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; animation: pulseDot 1.6s ease-in-out infinite; }
@keyframes pulseDot { 0%,100% { box-shadow: 0 0 0 0 rgba(52,211,153,.6); } 50% { box-shadow: 0 0 0 5px rgba(52,211,153,0); } }

.app-window { position: relative; height: 340px; overflow: hidden; background: var(--bg); }
.reel { display: flex; width: 300%; height: 100%; animation: reelCycle 12s cubic-bezier(.7,0,.3,1) infinite; }
.screen { width: 33.333%; height: 100%; padding: 22px; display: flex; flex-direction: column; }
@keyframes reelCycle {
  0%, 27%   { transform: translateX(0); }
  33%, 60%  { transform: translateX(-33.333%); }
  66%, 93%  { transform: translateX(-66.666%); }
  100%      { transform: translateX(0); }
}

.scr-head { display: flex; align-items: center; gap: 8px; font-family: "Sora", sans-serif; font-weight: 700; color: var(--ink); font-size: .95rem; margin-bottom: 16px; }
.scr-head svg { width: 20px; height: 20px; color: var(--blue); }

/* Inbox screen */
.screen-inbox { position: relative; }
.mail-row { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.mail-row .ava { width: 38px; height: 38px; border-radius: 11px; flex: none; }
.ava.g1 { background: #dbe6fb; } .ava.g2 { background: #e9def9; } .ava.g3 { background: #d6f3e7; }
.ava.brand { background: var(--grad-primary); display: grid; place-items: center; } .ava.brand svg { width: 19px; height: 19px; }
.mail-lines { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.mail-lines b { height: 9px; width: 60%; background: #cfd8e6; border-radius: 5px; font-size: 0; }
.mail-lines i { height: 7px; width: 40%; background: #e2e8f2; border-radius: 4px; font-size: 0; }
.mail-row.invite { border-color: transparent; box-shadow: 0 10px 24px -12px rgba(37,99,235,.4); background: linear-gradient(120deg, #eff4ff, #f4effe); animation: inviteIn 12s ease-in-out infinite; }
.mail-row.invite .mail-lines b { width: auto; height: auto; font-size: .9rem; font-family: "Sora", sans-serif; font-weight: 700; color: var(--ink); background: none; }
.mail-row.invite .mail-lines i { width: auto; height: auto; font-size: .76rem; font-style: normal; color: var(--muted); background: none; }
.badge-new { font-family: "Sora", sans-serif; font-size: .68rem; font-weight: 700; color: #fff; background: var(--green); padding: 3px 9px; border-radius: 999px; flex: none; }
@keyframes inviteIn {
  0% { opacity: 0; transform: translateY(-14px) scale(.96); }
  6%, 27% { opacity: 1; transform: none; }
  33%, 100% { opacity: 1; transform: none; }
}
.tap-ring { position: absolute; top: 96px; left: 30px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--blue); opacity: 0; animation: tapRing 12s ease-out infinite; }
@keyframes tapRing { 0%,18% { opacity: 0; transform: scale(.4); } 22% { opacity: .8; transform: scale(.6); } 30% { opacity: 0; transform: scale(1.6); } 100% { opacity: 0; } }

/* Survey screen */
.screen-survey .scr-head { justify-content: space-between; }
.q-count { font-size: .8rem; color: var(--muted); font-weight: 600; }
.scr-progress { width: 110px; height: 7px; background: #e2e8f2; border-radius: 4px; overflow: hidden; }
.scr-bar { display: block; height: 100%; width: 40%; background: var(--grad-accent); border-radius: 4px; animation: barFill 12s ease-in-out infinite; }
@keyframes barFill { 0%,33% { width: 25%; } 52% { width: 60%; } 60%,100% { width: 60%; } }
.q-text { font-family: "Sora", sans-serif; font-weight: 600; color: var(--ink); font-size: 1rem; margin-bottom: 16px; }
.opt { height: 44px; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 10px; position: relative; }
.opt.sel { border-color: var(--blue); background: var(--blue-50); animation: optSelect 12s ease-in-out infinite; }
.opt-radio { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--blue); }
.opt.sel .opt-radio { background: var(--blue); box-shadow: inset 0 0 0 3px #fff; }
@keyframes optSelect { 0%,42% { border-color: var(--line); background: #fff; } 48%,60% { border-color: var(--blue); background: var(--blue-50); } 66%,100% { border-color: var(--line); background: #fff; } }
.opt-next { margin-top: auto; align-self: stretch; background: var(--grad-primary); color: #fff; font-family: "Sora", sans-serif; font-weight: 600; padding: 13px; border-radius: 12px; font-size: .92rem; }

/* Completed screen */
.screen-done { align-items: center; justify-content: center; text-align: center; position: relative; }
.done-check { width: 84px; height: 84px; border-radius: 50%; background: var(--grad-accent); display: grid; place-items: center; margin-bottom: 18px; animation: checkPop 12s cubic-bezier(.34,1.56,.64,1) infinite; }
.done-check svg { width: 42px; height: 42px; }
@keyframes checkPop { 0%,66% { transform: scale(0); opacity: 0; } 72% { transform: scale(1.15); opacity: 1; } 78%,93% { transform: scale(1); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.screen-done h4 { font-size: 1.3rem; margin-bottom: 6px; }
.screen-done p { color: var(--muted); font-size: .92rem; }
.confetti { position: absolute; width: 9px; height: 9px; border-radius: 2px; opacity: 0; animation: confPop 12s ease-out infinite; }
.confetti.c1 { top: 30%; left: 22%; background: var(--blue); }
.confetti.c2 { top: 24%; left: 70%; background: var(--purple); }
.confetti.c3 { top: 60%; left: 18%; background: var(--green); }
.confetti.c4 { top: 64%; left: 78%; background: #0ea5e9; }
.confetti.c5 { top: 20%; left: 48%; background: #fbbf24; }
@keyframes confPop { 0%,67% { opacity: 0; transform: translateY(10px) scale(.4); } 74% { opacity: 1; transform: translateY(-14px) scale(1); } 90%,100% { opacity: 0; transform: translateY(-26px) scale(.8); } }

/* ============================================================
   ANIMATED REWARD MOCKUP
   ============================================================ */
.reward-mock { position: relative; width: 100%; max-width: 420px; margin-inline: auto; padding: 30px 0; min-height: 360px; display: grid; place-items: center; }
.reward-phone { position: relative; width: 220px; height: 320px; background: #fff; border-radius: 30px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; z-index: 2; }
.reward-phone-bar { height: 74px; background: var(--grad-primary); display: grid; place-items: center; }
.notch { width: 70px; height: 7px; border-radius: 4px; background: rgba(255,255,255,.5); }
.reward-screen { padding: 18px 16px; position: relative; }
.reward-notif { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 12px; box-shadow: 0 12px 28px -10px rgba(37,99,235,.4); border: 1px solid var(--line); margin-bottom: 16px; animation: notifIn 6s ease-in-out infinite; }
.rn-ic { width: 38px; height: 38px; border-radius: 11px; background: var(--grad-accent); display: grid; place-items: center; flex: none; } .rn-ic svg { width: 20px; height: 20px; }
.rn-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.rn-text b { font-family: "Sora", sans-serif; font-size: .82rem; color: var(--ink); }
.rn-text i { font-style: normal; font-size: .72rem; color: var(--muted); }
.rn-check { width: 26px; height: 26px; border-radius: 50%; background: var(--green); display: grid; place-items: center; flex: none; } .rn-check svg { width: 15px; height: 15px; }
@keyframes notifIn { 0% { opacity: 0; transform: translateY(-18px); } 14%,86% { opacity: 1; transform: none; } 100% { opacity: 1; transform: none; } }
.reward-voucher { display: flex; align-items: center; gap: 12px; background: var(--grad-primary); border-radius: 16px; padding: 18px 16px; position: relative; overflow: hidden; }
.reward-voucher::after { content: ""; position: absolute; right: -20px; bottom: -20px; width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,.12); }
.rv-gift { width: 44px; height: 44px; border-radius: 13px; background: rgba(255,255,255,.2); display: grid; place-items: center; flex: none; } .rv-gift svg { width: 24px; height: 24px; }
.rv-lines { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.rv-lines b { height: 11px; width: 80%; background: rgba(255,255,255,.85); border-radius: 5px; }
.rv-lines i { height: 8px; width: 55%; background: rgba(255,255,255,.5); border-radius: 4px; }
.wallet-badge { position: absolute; font-family: "Sora", sans-serif; font-weight: 700; font-size: .82rem; color: var(--ink); background: #fff; box-shadow: var(--shadow-card); padding: 9px 16px; border-radius: 999px; z-index: 3; }
.wallet-badge.wb1 { top: 40px; left: 0; color: var(--green); animation: floaty 5s var(--ease) infinite; }
.wallet-badge.wb2 { bottom: 56px; right: 0; color: var(--blue); animation: floaty 6s var(--ease) infinite .8s; }
.spark { position: absolute; border-radius: 50%; opacity: .5; }
.spark.s1 { width: 14px; height: 14px; background: var(--purple); top: 20px; right: 40px; animation: floaty 4.5s var(--ease) infinite; }
.spark.s2 { width: 9px; height: 9px; background: var(--green); bottom: 30px; left: 50px; animation: floaty 5.5s var(--ease) infinite .4s; }
.spark.s3 { width: 11px; height: 11px; background: #0ea5e9; top: 120px; right: 18px; animation: floaty 6s var(--ease) infinite .9s; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 520px; margin-inline: auto; }
  .rewards-grid, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .features-grid, .t-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .nav-links { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px; background: #fff; padding: 18px; box-shadow: var(--shadow-md); border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: transform .35s var(--ease); margin-left: 0; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 14px; }
  .nav-cta { margin: 6px 0 0; }
  .nav-cta .btn { width: 100%; }
  .nav-toggle { display: block; }
  .toc ol { columns: 1; }
}
@media (max-width: 540px) {
  .features-grid, .t-grid, .impact-grid, .steps, .trust-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-card { padding: 46px 24px; }
  .hero-stats { gap: 22px; }
  .form-card { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  /* Freeze the mockups on a clear, visible state */
  .reel { animation: none; transform: translateX(0); }
  .mail-row.invite { opacity: 1; transform: none; }
  .tap-ring, .confetti, .spark { display: none; }
  .reward-notif { opacity: 1; transform: none; }
  .scr-bar { width: 60%; }
}
