/* =========================================================
   My Opinion Panel — Core Styles (style.css)
   Design system: variables, reset, typography, layout,
   header, footer, hero, sections
   ========================================================= */

:root {
  /* Brand */
  --brand: #059669;
  --brand-600: #047857;
  --brand-700: #065f46;
  --brand-400: #34d399;
  --brand-soft: #ecfdf5;
  --brand-soft-2: #d1fae5;

  /* Reward accent */
  --gold: #f59e0b;
  --gold-soft: #fef3c7;

  /* Ink / neutrals */
  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e6eaf0;
  --bg: #ffffff;
  --bg-soft: #f7faf9;
  --bg-soft-2: #f1f6f4;

  /* Effects */
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 2px 8px rgba(15, 23, 42, .05);
  --shadow: 0 8px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .12);
  --shadow-brand: 0 14px 34px rgba(5, 150, 105, .28);

  --maxw: 1180px;
  --header-h: 74px;

  --font-head: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { margin: 0 0 1rem; color: var(--ink-2); }

a { color: var(--brand-600); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--brand-700); }

img { max-width: 100%; display: block; }

ul { margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid rgba(5, 150, 105, .45);
  outline-offset: 2px;
  border-radius: 6px;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.section-soft { background: var(--bg-soft); }
.section-tint { background: linear-gradient(180deg, #ffffff 0%, var(--brand-soft) 100%); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head);
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-600);
  background: var(--brand-soft);
  border: 1px solid var(--brand-soft-2);
  padding: 7px 14px; border-radius: 999px;
  margin-bottom: 18px;
}

.section-head { max-width: 680px; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.lead { font-size: 1.18rem; color: var(--muted); }

.text-accent { color: var(--brand-600); }
.text-gold { color: var(--gold); }
.muted { color: var(--muted); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; color:#fff; }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

.site-header .container { max-width: 1440px; padding: 0 24px; }

.nav {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: nowrap; width: 100%;
}

.brand { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
.brand svg { width: 32px; height: 32px; }
.brand-text { font-family: var(--font-head); font-weight: 800; font-size: .98rem; line-height: 1; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.brand-text b { color: var(--brand-600); font-weight: 800; }

.nav-links {
  display: flex; align-items: center; flex-wrap: nowrap; white-space: nowrap;
  gap: clamp(10px, 1.35vw, 26px); list-style: none; margin: 0;
}
.nav-links a {
  color: var(--ink-2); font-weight: 600; font-size: .9rem; white-space: nowrap;
  display: inline-flex; align-items: center;
  padding: 6px 0; border-radius: 8px; position: relative;
  transition: color .18s ease;
}
.nav-links a:hover { color: var(--brand-700); }
.nav-links a.active { color: var(--brand-700); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--brand); border-radius: 2px;
}

.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-actions .auth-actions { display: flex; align-items: center; gap: 8px; }
.nav-actions .btn { padding: 8px 13px; font-size: .82rem; white-space: nowrap; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: #fff; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center;
  color: var(--ink);
}
.nav-toggle svg { width: 24px; height: 24px; }

.mobile-drawer { display: none; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: #0b1220; color: #cbd5e1; padding: 68px 0 26px; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.footer-brand .brand-text { color: #fff; }
.footer-brand .brand-text b { color: var(--brand-400); }
.footer-brand p { color: #94a3b8; max-width: 300px; margin-top: 16px; font-size: .95rem; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: #94a3b8; font-size: .95rem; }
.footer-col a:hover { color: var(--brand-400); }

.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06); color: #cbd5e1; transition: background .2s ease, color .2s ease, transform .2s ease;
}
.footer-social a:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }

.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: #94a3b8; font-size: .88rem;
}
.footer-bottom a { color: #cbd5e1; }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; padding: 64px 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 480px at 88% -10%, var(--brand-soft) 0%, transparent 60%),
    radial-gradient(700px 420px at -5% 10%, #fff7e6 0%, transparent 55%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero h1 .hl { color: var(--brand-600); }
.hero-sub { font-size: 1.18rem; color: var(--muted); max-width: 540px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }

.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted); font-size: .93rem; font-weight: 600; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 18px; height: 18px; color: var(--brand); }

.hero-visual { position: relative; }
.hero-visual .hero-img {
  width: 100%; border-radius: var(--radius-lg); background: #fff;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}

/* Floating flow chips over the hero */
.flow-strip {
  margin-top: 34px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.flow-chip {
  display: inline-flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line);
  padding: 10px 15px; border-radius: 999px; font-weight: 700; font-size: .92rem; box-shadow: var(--shadow-sm);
  font-family: var(--font-head);
}
.flow-chip svg { width: 18px; height: 18px; color: var(--brand); }
.flow-arrow { color: var(--muted-2); }
.flow-arrow svg { width: 18px; height: 18px; }

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

/* =========================================================
   GRIDS
   ========================================================= */
.grid { display: grid; gap: 22px; }
.grid > * { min-width: 0; }
.hero-grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--brand-700), var(--brand) 60%, var(--brand-400));
  color: #fff; border-radius: var(--radius-lg); padding: 54px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-brand);
}
.cta-band::after {
  content:""; position:absolute; right:-60px; top:-60px; width:280px; height:280px; border-radius:50%;
  background: rgba(255,255,255,.12);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 560px; }
.cta-band .btn-primary { background: #fff; color: var(--brand-700); }
.cta-band .btn-primary:hover { background: #f0fdf4; }
.cta-band .btn-ghost-light { border-color: rgba(255,255,255,.5); color:#fff; }

/* Page header (interior pages) */
.page-hero { padding: 56px 0 44px; background: linear-gradient(180deg, var(--brand-soft) 0%, #fff 100%); }
.page-hero .eyebrow { background:#fff; }
.page-hero h1 { margin-bottom: 14px; }
.page-hero p { max-width: 640px; color: var(--muted); font-size: 1.1rem; }

/* Disclaimer note */
.note {
  background: var(--gold-soft); border: 1px solid #fde68a; color: #92400e;
  border-radius: var(--radius-sm); padding: 14px 18px; font-size: .92rem; display: flex; gap: 10px;
}
.note svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--gold); }
.sample-tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--gold); background: var(--gold-soft); padding: 3px 9px; border-radius: 999px;
}

.placeholder {
  color: var(--brand-700); background: var(--brand-soft); border: 1px dashed var(--brand-400);
  padding: 1px 8px; border-radius: 7px; font-weight: 700; font-size: .95em;
}
