/* ═══════════════════════════════════════════════════════════════════
   BetaTesters.org — Design System v2
   Indigo/slate dark · electric-lime accent · Plus Jakarta Sans
═══════════════════════════════════════════════════════════════════ */

/* ── Design tokens ──────────────────────────────────────────────── */
:root {
  /* Palette */
  --indigo-950: #0c0c20;
  --indigo-900: #11112a;
  --indigo-800: #181840;
  --indigo-750: #1e1e52;
  --indigo-700: #252568;
  --indigo-600: #3535a0;
  --indigo-500: #4949c8;
  --indigo-400: #6b6bde;
  --indigo-300: #9090ea;
  --indigo-200: #b8b8f5;
  --indigo-100: #e4e4ff;

  --lime-400:   #b8ff00;
  --lime-500:   #9bdd00;
  --lime-600:   #7db800;

  --slate-600:  #3a3a5c;
  --slate-500:  #555575;
  --slate-400:  #8888aa;
  --slate-300:  #aaaac8;
  --slate-200:  #c8c8e0;
  --slate-100:  #eeeef8;

  --red-400:    #f87171;
  --red-500:    #ef4444;
  --green-400:  #4ade80;
  --green-500:  #22c55e;
  --amber-400:  #fbbf24;
  --amber-300:  #fcd34d;
  --white:      #ffffff;

  /* Semantic */
  --bg:          var(--indigo-950);
  --surface:     var(--indigo-900);
  --surface-2:   var(--indigo-800);
  --surface-3:   var(--indigo-750);
  --border:      rgba(107,107,222,.2);
  --border-2:    rgba(107,107,222,.12);
  --text:        #ddddf5;
  --text-muted:  var(--slate-400);
  --text-subtle: var(--slate-600);
  --accent:      var(--lime-400);
  --accent-dark: var(--lime-500);
  --brand:       var(--indigo-400);

  /* Radius */
  --r-xs: 4px;
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-2xl:32px;

  /* Shadows */
  --shadow-sm:   0 1px 2px rgba(0,0,0,.4);
  --shadow:      0 2px 8px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.03);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.03);
  --shadow-glow: 0 0 0 3px rgba(107,107,222,.25);
  --shadow-lime: 0 4px 20px rgba(184,255,0,.25);

  /* Typography */
  --font:   'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --mono:   'JetBrains Mono', 'Fira Code', monospace;

  /* Motion */
  --ease:   cubic-bezier(.4,0,.2,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --dur:    .16s;
  --dur-md: .24s;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* safety net against any stray element causing horizontal scroll */
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--indigo-200); }
button { font-family: var(--font); }

/* Focus ring */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

/* ── Navigation ────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(12,12,32,.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--dur-md) var(--ease);
}
.nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.4); }
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 24px;
  height: 62px;
  display: flex; align-items: center; gap: 8px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.05rem;
  color: var(--white); letter-spacing: -.025em;
  flex-shrink: 0;
  transition: opacity var(--dur) var(--ease);
}
.nav-logo:hover { opacity: .85; color: var(--white); }
.logo-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: var(--accent); color: var(--indigo-950);
  border-radius: var(--r-sm); font-weight: 900; font-size: 1rem;
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease-spring);
}
.nav-logo:hover .logo-icon { transform: rotate(-8deg) scale(1.05); }
.logo-text { display: flex; align-items: baseline; gap: 0; }
.logo-dot { color: var(--accent); }
.nav-links {
  margin-left: auto; display: flex; align-items: center; gap: 4px;
}
.nav-link {
  color: var(--slate-300); font-size: .9rem; font-weight: 500;
  padding: 6px 12px; border-radius: var(--r-sm);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,.06); }
.nav-link--active { color: var(--white) !important; }
.nav-link--admin { color: var(--accent) !important; }
.nav-link--admin:hover { color: var(--accent-dark) !important; }
.nav-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px; margin-left: auto; border-radius: var(--r-sm);
  width: 40px; height: 40px;
  transition: background var(--dur) var(--ease);
}
.nav-burger:hover { background: rgba(255,255,255,.06); }
.nav-burger span {
  display: block; width: 20px; height: 2px;
  background: var(--slate-200); border-radius: 2px;
  transition: transform var(--dur-md) var(--ease), opacity var(--dur) var(--ease);
  transform-origin: center;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile {
  display: none; flex-direction: column;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 8px 0 16px;
}
.nav-mobile a {
  display: block; padding: 12px 24px;
  color: var(--text); font-weight: 500; font-size: .95rem;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-mobile a:hover { color: var(--white); background: rgba(255,255,255,.04); }
.nav-mobile a[aria-current="page"] { color: var(--white); }
.nav-mobile .nav-mobile-admin { color: var(--accent); }
.nav-mobile .nav-mobile-cta {
  color: var(--indigo-950) !important; background: var(--accent);
  margin: 8px 16px 0; border-radius: var(--r-sm); text-align: center;
  font-weight: 700;
}
.nav-mobile .nav-mobile-cta:hover { background: var(--accent-dark); }
.nav-mobile .nav-mobile-signout { color: var(--slate-400); font-size: .875rem; }
.nav-mobile.open { display: flex; animation: slideDown var(--dur-md) var(--ease) both; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 22px; border-radius: var(--r);
  font-family: var(--font); font-size: .95rem; font-weight: 700;
  cursor: pointer; border: none; text-decoration: none;
  transition: all var(--dur) var(--ease);
  white-space: nowrap; letter-spacing: -.01em;
  position: relative; overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--dur) var(--ease);
}
.btn:hover::after { background: rgba(255,255,255,.06); }
.btn:active { transform: scale(.98); }

.btn--primary {
  background: var(--accent); color: var(--indigo-950);
  box-shadow: var(--shadow-lime);
}
.btn--primary:hover {
  background: var(--accent-dark); color: var(--indigo-950);
  box-shadow: 0 6px 24px rgba(184,255,0,.35);
  transform: translateY(-1px);
}
.btn--primary:hover::after { background: transparent; }
.btn--primary:active { transform: translateY(0) scale(.98); }

.btn--indigo {
  background: var(--indigo-600); color: var(--white);
  box-shadow: var(--shadow);
}
.btn--indigo:hover { background: var(--indigo-500); color: var(--white); transform: translateY(-1px); }

.btn--ghost {
  background: transparent; color: var(--slate-200);
  border: 1px solid var(--border);
}
.btn--ghost:hover { background: var(--surface-2); color: var(--white); border-color: var(--indigo-400); transform: translateY(-1px); }
.btn--ghost:active { transform: translateY(0) scale(.98); }

.btn--danger {
  background: rgba(239,68,68,.12); color: var(--red-400);
  border: 1px solid rgba(239,68,68,.25);
}
.btn--danger:hover { background: rgba(239,68,68,.2); color: #fca5a5; transform: translateY(-1px); }
.btn--danger:active { transform: translateY(0) scale(.98); }

.btn--xs  { padding: 4px 10px;  font-size: .78rem; border-radius: var(--r-sm); gap: 4px; }
.btn--sm  { padding: 7px 16px;  font-size: .875rem; border-radius: var(--r-sm); }
.btn--lg  { padding: 14px 32px; font-size: 1.05rem; border-radius: var(--r-lg); }
.btn--xl  { padding: 17px 40px; font-size: 1.1rem;  border-radius: var(--r-xl); }
.btn--full { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; cursor: not-allowed; }

/* ── Forms ─────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-label {
  font-size: .825rem; font-weight: 700;
  color: var(--slate-200); letter-spacing: .02em; text-transform: uppercase;
}
.form-label .opt { color: var(--text-muted); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: .8rem; }
.form-control {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text); border-radius: var(--r);
  padding: 12px 16px;
  font-family: var(--font); font-size: .975rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
  outline: none; width: 100%;
  -webkit-appearance: none;
}
.form-control::placeholder { color: var(--text-subtle); }
.form-control:hover { border-color: var(--indigo-400); }
.form-control:focus {
  border-color: var(--brand);
  background: var(--surface-3);
  box-shadow: var(--shadow-glow);
}
textarea.form-control { resize: vertical; min-height: 88px; line-height: 1.6; }
select.form-control { cursor: pointer; }

/* ── Alerts ────────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px; border-radius: var(--r);
  font-size: .9rem; font-weight: 500; line-height: 1.5;
  display: flex; align-items: flex-start; gap: 10px;
  animation: fadeIn var(--dur-md) var(--ease) both;
}
.alert::before { flex-shrink: 0; font-size: 1rem; line-height: 1.4; }
.alert--error {
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.25);
  color: #fca5a5;
}
.alert--error::before { content: '⚠'; }
.alert--success {
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.25);
  color: #86efac;
}
.alert--success::before { content: '✓'; }
.alert--info {
  background: rgba(107,107,222,.1);
  border: 1px solid rgba(107,107,222,.25);
  color: var(--indigo-200);
}
.alert--info::before { content: 'ℹ'; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Cards ─────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.card-body { padding: 24px; }

/* ── Badges ────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 99px;
  font-size: .72rem; font-weight: 700; letter-spacing: .03em;
  white-space: nowrap;
}
.badge--green  { background: rgba(34,197,94,.12);   color: #4ade80; border: 1px solid rgba(34,197,94,.2); }
.badge--amber  { background: rgba(251,191,36,.12);  color: #fcd34d; border: 1px solid rgba(251,191,36,.2); }
.badge--slate  { background: rgba(136,136,170,.1);  color: var(--slate-200); border: 1px solid var(--border); }
.badge--blue   { background: rgba(107,107,222,.12); color: var(--indigo-200); border: 1px solid rgba(107,107,222,.25); }
.badge--lime   { background: rgba(184,255,0,.1);    color: var(--accent); border: 1px solid rgba(184,255,0,.2); }

/* ── Stars ─────────────────────────────────────────────────────── */
.star-picker { display: flex; gap: 6px; }
.star-picker input[type=radio] { position: absolute; opacity: 0; width: 0; height: 0; }
.star-picker label {
  font-size: 2.4rem; cursor: pointer; color: var(--surface-3);
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease-spring);
  user-select: none; line-height: 1;
}
.star-picker label:hover { transform: scale(1.2); }
.star-active { color: var(--amber-400) !important; }
.stars-display { color: var(--amber-400); font-size: 1rem; letter-spacing: 2px; }

/* ── Project cards ─────────────────────────────────────────────── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 0;
  display: flex; flex-direction: column;
  transition: transform var(--dur-md) var(--ease),
              box-shadow var(--dur-md) var(--ease),
              border-color var(--dur-md) var(--ease);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--indigo-400);
}
.project-card:hover .project-card-cta { opacity: 1; }

/* Card header strip */
.project-card-header {
  padding: 22px 22px 0;
  display: flex; align-items: flex-start; gap: 14px;
}
.project-logo {
  width: 52px; height: 52px; border-radius: var(--r);
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800; color: var(--accent);
  overflow: hidden; flex-shrink: 0;
  transition: transform var(--dur) var(--ease-spring);
}
.project-card:hover .project-logo { transform: scale(1.05); }
.project-logo img { width: 100%; height: 100%; object-fit: cover; }
.project-meta { flex: 1; min-width: 0; }
.project-name {
  font-size: 1rem; font-weight: 800; color: var(--white);
  letter-spacing: -.02em; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.project-status-row {
  display: flex; align-items: center; gap: 6px; margin-top: 5px; flex-wrap: wrap;
}

/* Card body */
.project-card-body { padding: 14px 22px 0; flex: 1; }
.project-desc {
  font-size: .875rem; color: var(--text-muted); line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Reward strip */
.project-reward {
  margin: 14px 22px 0;
  display: flex; align-items: center; gap: 8px;
  background: rgba(184,255,0,.06);
  border: 1px solid rgba(184,255,0,.15);
  border-radius: var(--r);
  padding: 10px 14px;
}
.project-reward-icon { font-size: 1rem; flex-shrink: 0; }
.project-reward-text { font-size: .825rem; font-weight: 700; color: var(--accent); }

/* Card actions */
.project-card-actions {
  padding: 14px 22px 22px;
  display: flex; flex-direction: column; gap: 8px;
  margin-top: auto;
}
.project-card-actions .btn-row {
  display: flex; gap: 8px;
}
.project-card-actions .btn-row .btn { flex: 1; }

/* Submission count pill */
.submission-count {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .78rem; font-weight: 700; color: var(--green-400);
}
.submission-count::before {
  content: ''; display: block; width: 6px; height: 6px;
  background: var(--green-500); border-radius: 50%;
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  padding: 76px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 1000px 600px at 50% -10%, rgba(53,53,160,.45) 0%, transparent 65%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(184,255,0,.07); color: var(--accent);
  border: 1px solid rgba(184,255,0,.18);
  border-radius: 99px; padding: 5px 14px;
  font-size: .75rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: 28px;
  animation: fadeIn .5s var(--ease) .1s both;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.75); }
}
.hero-title {
  font-size: clamp(2.3rem, 6.5vw, 3.9rem);
  font-weight: 800; letter-spacing: -.045em; line-height: 1.1;
  color: var(--white); margin-bottom: 18px;
  animation: fadeIn .5s var(--ease) .2s both;
}
.hero-title em { color: var(--accent); font-style: normal; }
.hero-subtitle {
  font-size: 1.05rem; color: var(--text-muted); max-width: 480px;
  margin: 0 auto 32px; line-height: 1.65;
  animation: fadeIn .5s var(--ease) .3s both;
}
.hero-cta {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  animation: fadeIn .5s var(--ease) .4s both;
}
.hero-stats {
  display: flex; gap: 0; justify-content: center; flex-wrap: wrap;
  margin-top: 52px; padding-top: 32px;
  border-top: 1px solid var(--border);
  animation: fadeIn .5s var(--ease) .5s both;
}
.stat-item {
  text-align: center; padding: 0 36px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--white); letter-spacing: -.045em; }
.stat-label { font-size: .8rem; color: var(--text-muted); margin-top: 3px; font-weight: 500; }

/* ── Sections ──────────────────────────────────────────────────── */
.section { padding: 64px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section--cta-final { padding-top: 24px; padding-bottom: 8px; }
.section-label {
  font-size: .72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .12em; color: var(--accent); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.6rem, 3.6vw, 2.35rem); font-weight: 800;
  letter-spacing: -.04em; color: var(--white); margin-bottom: 14px; line-height: 1.2;
}
.section-sub {
  color: var(--text-muted); max-width: 520px; font-size: .975rem; line-height: 1.65;
}
.section--alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ── Benefits ──────────────────────────────────────────────────── */
.benefits-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px; margin-top: 36px;
}
.benefit-card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 22px;
  transition: border-color var(--dur) var(--ease), transform var(--dur-md) var(--ease);
}
.benefit-card:hover { border-color: var(--indigo-400); transform: translateY(-1px); }
.benefit-icon { font-size: 1.7rem; margin-bottom: 12px; display: block; }
.benefit-title { font-weight: 700; color: var(--white); margin-bottom: 6px; font-size: .925rem; }
.benefit-text { font-size: .85rem; color: var(--text-muted); line-height: 1.55; }

/* ── Steps ─────────────────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 0; margin-top: 36px; max-width: 560px; }
.step { display: flex; gap: 18px; position: relative; padding-bottom: 30px; }
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::before {
  content: ''; position: absolute; left: 19px; top: 46px; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--indigo-600), transparent);
}
.step-num {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface-2); border: 2px solid var(--indigo-500);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .875rem; color: var(--accent);
  position: relative; z-index: 1;
}
.step-text { padding-top: 8px; }
.step-text h3 { font-weight: 700; color: var(--white); margin-bottom: 5px; font-size: .975rem; }
.step-text p { color: var(--text-muted); font-size: .875rem; line-height: 1.55; }

/* ── FAQ ───────────────────────────────────────────────────────── */
.faq-list { margin-top: 32px; display: flex; flex-direction: column; gap: 8px; max-width: 680px; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--r);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease);
}
.faq-item:hover, .faq-item.open { border-color: var(--indigo-400); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 18px; cursor: pointer; font-weight: 600; font-size: .9rem;
  color: var(--white); background: var(--surface); user-select: none;
  transition: background var(--dur) var(--ease);
}
.faq-item.open .faq-q { background: var(--surface-2); }
.faq-arrow {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; flex-shrink: 0;
  transition: transform var(--dur-md) var(--ease), background var(--dur) var(--ease);
}
.faq-item.open .faq-arrow { transform: rotate(180deg); background: var(--surface-3); }
.faq-a {
  display: none; padding: 14px 18px 18px;
  background: var(--surface-2); color: var(--text-muted);
  font-size: .875rem; line-height: 1.6;
  border-top: 1px solid var(--border);
}
.faq-item.open .faq-a { display: block; animation: fadeIn var(--dur-md) var(--ease) both; }

/* ── Auth ──────────────────────────────────────────────────────── */
.auth-wrap { max-width: 420px; margin: 0 auto; padding: 56px 20px 80px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.auth-logo {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  margin-bottom: 32px; font-weight: 800; font-size: 1.15rem; color: var(--white);
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 20px;
  box-shadow: var(--shadow-lg);
  animation: fadeIn var(--dur-md) var(--ease) both;
}
.auth-title {
  font-size: 1.5rem; font-weight: 800; color: var(--white);
  letter-spacing: -.035em; text-align: center; line-height: 1.2;
}
.auth-sub { text-align: center; color: var(--text-muted); font-size: .9rem; margin-top: -8px; line-height: 1.5; }
.auth-footer { text-align: center; color: var(--text-muted); font-size: .9rem; }
.auth-footer a { color: var(--brand); font-weight: 600; }
.auth-footer a:hover { color: var(--indigo-200); }

/* Password toggle */
.input-group { position: relative; }
.input-group .form-control { padding-right: 48px; }
.pw-toggle {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--text-muted);
  font-size: 1rem; padding: 4px; border-radius: var(--r-xs);
  transition: color var(--dur) var(--ease);
}
.pw-toggle:hover { color: var(--text); }

/* ── Dashboard ─────────────────────────────────────────────────── */
.dash-header {
  padding: 36px 24px 0;
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.dash-header-left {}
.dash-welcome {
  font-size: 1.65rem; font-weight: 800; letter-spacing: -.04em; color: var(--white);
  line-height: 1.2;
}
.dash-sub { color: var(--text-muted); font-size: .925rem; margin-top: 6px; }
.dash-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.dash-section {
  padding: 28px 24px 80px; max-width: 1100px; margin: 0 auto;
}
.dash-section-title {
  font-size: .75rem; font-weight: 800; color: var(--slate-400);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 20px;
}
.empty-state {
  text-align: center; padding: 64px 24px;
  color: var(--text-muted);
  border: 1px dashed var(--border); border-radius: var(--r-xl);
  background: var(--surface);
}
.empty-state-icon { font-size: 2.8rem; margin-bottom: 16px; opacity: .6; display: block; }
.empty-state h3 { font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.empty-state p { max-width: 320px; margin: 0 auto; font-size: .9rem; line-height: 1.6; }

/* ── Feedback form ─────────────────────────────────────────────── */
.feedback-wrap { max-width: 620px; margin: 0 auto; padding: 36px 20px 80px; }
.feedback-header { margin-bottom: 28px; }
.feedback-header h1 { font-size: 1.4rem; font-weight: 800; color: var(--white); letter-spacing: -.03em; margin-bottom: 6px; }
.feedback-header p { color: var(--text-muted); font-size: .9rem; }

.project-context {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 16px 18px; margin-bottom: 24px;
}
.project-context-logo {
  width: 44px; height: 44px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 800; color: var(--accent);
  overflow: hidden; flex-shrink: 0;
}
.project-context-logo img { width: 100%; height: 100%; object-fit: cover; }
.project-context-info { flex: 1; min-width: 0; }
.project-context-name { font-weight: 700; color: var(--white); font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-context-desc { font-size: .8rem; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.feedback-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.feedback-section {
  padding: 24px;
  border-bottom: 1px solid var(--border-2);
}
.feedback-section:last-child { border-bottom: none; }
.feedback-question {
  font-size: .8rem; font-weight: 800; color: var(--slate-200);
  text-transform: uppercase; letter-spacing: .07em; margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.feedback-q-num {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .7rem; color: var(--accent); flex-shrink: 0;
}

/* Upload areas */
.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.upload-area {
  border: 2px dashed var(--border); border-radius: var(--r);
  padding: 18px 12px; text-align: center; cursor: pointer; position: relative;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.upload-area:hover { border-color: var(--indigo-400); background: rgba(107,107,222,.04); }
.upload-area.has-file { border-color: var(--green-500); border-style: solid; }
.upload-area input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-icon { font-size: 1.4rem; margin-bottom: 6px; display: block; }
.upload-label { font-size: .8rem; font-weight: 600; color: var(--slate-300); display: block; }
.upload-hint { font-size: .7rem; color: var(--text-subtle); margin-top: 3px; display: block; }
.upload-filename { font-size: .75rem; color: var(--green-400); margin-top: 4px; display: none; font-weight: 600; }
.upload-area.has-file .upload-filename { display: block; }
.upload-area.has-file .upload-label { color: var(--green-400); }

@media (max-width: 480px) { .upload-grid { grid-template-columns: 1fr; } }

/* ── Thank you ─────────────────────────────────────────────────── */
.thankyou-wrap {
  max-width: 560px; margin: 0 auto; padding: 40px 20px 72px;
  text-align: center; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
}
.thankyou-icon { font-size: 3.2rem; margin-bottom: 16px; display: block; animation: bounceIn .6s var(--ease-spring) both; }
@keyframes bounceIn {
  from { opacity: 0; transform: scale(.5); }
  to   { opacity: 1; transform: scale(1); }
}
.thankyou-title { font-size: 2rem; font-weight: 800; color: var(--white); letter-spacing: -.04em; margin-bottom: 10px; line-height: 1.1; }
.thankyou-sub { color: var(--text-muted); margin-bottom: 22px; line-height: 1.65; font-size: .95rem; max-width: 420px; }
.reward-reveal {
  background: linear-gradient(135deg, rgba(184,255,0,.07) 0%, rgba(107,107,222,.07) 100%);
  border: 1px solid rgba(184,255,0,.22);
  border-radius: var(--r-xl); padding: 24px 28px; margin-bottom: 20px; width: 100%;
  animation: fadeIn .5s var(--ease) .3s both;
}
.reward-reveal--claim { text-align: center; }
.reward-eyebrow {
  font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
  color: var(--accent); margin-bottom: 10px;
}
.reward-value { font-size: 1.35rem; font-weight: 800; color: var(--white); letter-spacing: -.03em; line-height: 1.25; }
.reward-note { margin-top: 12px; color: var(--text-muted); font-size: .875rem; line-height: 1.65; max-width: 36em; margin-left: auto; margin-right: auto; }
.reward-claim-cta {
  margin-top: 18px;
  box-shadow: var(--shadow-lime);
}

.website-reward-cta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 28px 32px; margin-bottom: 20px; width: 100%;
  text-align: left;
}
.website-reward-cta-eyebrow {
  font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
  color: var(--brand); margin-bottom: 10px;
}
.website-reward-cta-title { font-size: 1.2rem; font-weight: 800; color: var(--white); letter-spacing: -.02em; margin-bottom: 10px; }
.website-reward-cta-text { color: var(--text-muted); font-size: .875rem; line-height: 1.65; margin-bottom: 18px; }
.website-reward-cta-text strong { color: var(--text); }

/* ── Website Reward claim form ───────────────────────────────────── */
.wr-claim-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 20px 100px;
}
.wr-page-header {
  text-align: left;
  margin-bottom: 24px;
}
.wr-page-header h1 {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 3.5vw, 2rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.04em;
  line-height: 1.15;
}
.wr-page-header p {
  margin: 0;
  max-width: 40em;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
}
.wr-hero {
  text-align: center;
  margin-bottom: 28px;
  padding: 40px 36px 34px;
  border-radius: var(--r-2xl);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(184,255,0,.14), transparent 60%),
    linear-gradient(165deg, rgba(107,107,222,.16) 0%, rgba(17,17,42,.55) 55%, var(--surface) 100%);
  border: 1px solid rgba(184,255,0,.22);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(184,255,0,.05);
}
.wr-hero-badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(184,255,0,.14);
  border: 1px solid rgba(184,255,0,.35);
  color: var(--accent);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.wr-hero-title {
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.045em;
  line-height: 1.12;
  margin: 0 0 18px;
}
.wr-hero-lead {
  margin: 0 auto 14px;
  max-width: 36em;
  color: var(--slate-100);
  font-size: 1.08rem;
  line-height: 1.65;
  font-weight: 500;
}
.wr-hero-body {
  margin: 0 auto 12px;
  max-width: 38em;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}
.wr-hero-body strong { color: var(--accent); font-weight: 700; }
.wr-hero-body--final { margin-bottom: 0; color: var(--slate-300); }

.wr-value-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 24px;
}
.wr-value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.wr-value-card:hover {
  border-color: rgba(184,255,0,.28);
  transform: translateY(-1px);
}
.wr-value-icon {
  display: block;
  font-size: 1.55rem;
  margin-bottom: 12px;
  line-height: 1;
}
.wr-value-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.02em;
}
.wr-value-text {
  margin: 0;
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.65;
}
.wr-value-text strong { color: var(--accent); font-weight: 700; }

.wr-plan-card {
  margin-bottom: 32px;
  padding: 24px 26px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-sm);
}
.wr-plan-card--footer {
  margin-top: 24px;
  margin-bottom: 8px;
}
.wr-plan-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.wr-plan-card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--slate-100);
  letter-spacing: -.015em;
}
.wr-plan-price {
  margin: 0;
  font-size: .9rem;
  font-weight: 700;
  color: var(--slate-300);
  letter-spacing: -.01em;
}
.wr-plan-card-intro {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.6;
}
.wr-plan-card-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.wr-plan-card-list li {
  position: relative;
  padding: 7px 10px 7px 30px;
  border-radius: var(--r-sm);
  color: var(--slate-300);
  font-size: .875rem;
  line-height: 1.45;
}
.wr-plan-card-list li::before {
  content: '✓';
  position: absolute;
  left: 8px;
  top: 7px;
  color: var(--accent);
  font-weight: 800;
  font-size: .85rem;
}
.wr-plan-card-note {
  padding: 16px 16px 14px;
  border-radius: var(--r);
  background: rgba(184,255,0,.07);
  border: 1px solid rgba(184,255,0,.2);
}
.wr-plan-card-note-title {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 8px;
}
.wr-plan-card-note p {
  margin: 0 0 8px;
  color: var(--slate-200);
  font-size: .875rem;
  line-height: 1.6;
}
.wr-plan-card-note p:last-child { margin-bottom: 0; }
.wr-plan-card-note strong { color: var(--white); font-weight: 700; }

.wr-claim-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.wr-claim-card-head {
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--border-2);
  background: linear-gradient(180deg, rgba(107,107,222,.1), transparent);
}
.wr-claim-card-heading {
  margin: 0 0 8px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.025em;
}
.wr-claim-card-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: .925rem;
  line-height: 1.55;
}
.wr-claim-section {
  padding: 28px 32px 10px;
  border-bottom: 1px solid var(--border-2);
}
.wr-claim-section:last-child,
.wr-claim-section--consent {
  padding-bottom: 28px;
  border-bottom: none;
}
.wr-claim-section-title {
  font-size: .72rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .14em;
  margin: 0 0 18px;
}
.wr-claim-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 18px;
}
.wr-claim-field { margin-bottom: 18px; }
.wr-claim-field--full { grid-column: 1 / -1; }
.wr-claim-label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--slate-100);
  margin-bottom: 8px;
}
.wr-req { color: var(--red-400); font-weight: 700; }
.wr-claim-form .form-control {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text);
  padding: 13px 15px;
  font-size: .975rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.wr-claim-form .form-control:hover { border-color: rgba(107,107,222,.45); }
.wr-claim-form .form-control:focus {
  border-color: var(--indigo-400);
  box-shadow: var(--shadow-glow);
  outline: none;
}
.wr-claim-form .form-control::placeholder { color: var(--slate-500); }
.wr-claim-form textarea.form-control {
  min-height: 160px;
  resize: vertical;
  line-height: 1.6;
}
.wr-consent-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wr-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0;
  color: var(--text);
  font-size: .925rem;
  line-height: 1.55;
  cursor: pointer;
  padding: 12px 14px;
  border-radius: var(--r);
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border-2);
}
.wr-consent input[type=checkbox] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}
.wr-claim-actions {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.wr-claim-next-note {
  margin: 0;
  max-width: 440px;
  text-align: center;
  color: var(--text-muted);
  font-size: .925rem;
  line-height: 1.65;
}
.wr-claim-next-note strong { color: var(--white); font-weight: 700; }
.wr-claim-submit {
  min-width: min(100%, 440px);
  width: 100%;
  max-width: 440px;
  padding: 16px 28px;
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: var(--shadow-lime);
}
@media (min-width: 720px) {
  .wr-value-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .wr-plan-card-list { grid-template-columns: 1fr 1fr; }
  .wr-claim-grid { grid-template-columns: 1fr 1fr; }
  .wr-claim-field:nth-child(5):not(.wr-claim-field--full) {
    grid-column: 1 / 2;
  }
}
@media (max-width: 719px) {
  .wr-hero { padding: 28px 20px 24px; }
  .wr-plan-card { padding: 20px 18px; }
  .wr-claim-card-head,
  .wr-claim-section { padding-left: 18px; padding-right: 18px; }
  .wr-claim-section { padding-top: 22px; }
  .wr-claim-section:last-child,
  .wr-claim-section--consent { padding-bottom: 22px; }
  .thankyou-wrap { padding-top: 28px; }
  .reward-value { font-size: 1.2rem; }
}

/* ── Admin ─────────────────────────────────────────────────────── */
.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 32px 24px 80px; }
.admin-title { font-size: 1.5rem; font-weight: 800; color: var(--white); letter-spacing: -.035em; margin-bottom: 6px; }
.admin-subtitle { color: var(--text-muted); font-size: .9rem; margin-bottom: 24px; }
.admin-nav {
  display: flex; gap: 6px; margin-bottom: 28px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 6px;
}
.admin-nav a {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--r-sm);
  color: var(--text-muted); font-size: .875rem; font-weight: 600;
  transition: all var(--dur) var(--ease);
}
.admin-nav a:hover { color: var(--white); background: var(--surface-2); }
.admin-nav a.active { background: var(--surface-2); color: var(--white); }
.admin-stats {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px; margin-bottom: 28px;
}
.admin-stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 20px;
  transition: border-color var(--dur) var(--ease);
}
.admin-stat:hover { border-color: var(--indigo-400); }
.admin-stat-num { font-size: 2rem; font-weight: 800; color: var(--white); letter-spacing: -.045em; }
.admin-stat-label { font-size: .78rem; color: var(--text-muted); margin-top: 4px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.table-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; overflow-x: auto;
}
.data-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.data-table th {
  background: var(--surface-2); color: var(--slate-300); font-weight: 700;
  text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--border);
  font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap;
}
.data-table td { padding: 13px 16px; border-bottom: 1px solid var(--border-2); color: var(--text); vertical-align: middle; word-break: break-word; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr { transition: background var(--dur) var(--ease); }
.data-table tbody tr:hover td { background: rgba(255,255,255,.025); }

/* ── Reward badge (landing page) ────────────────────────────────── */
.reward-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(184,255,0,.08); color: var(--accent);
  border: 1px solid rgba(184,255,0,.2);
  border-radius: 99px; padding: 4px 12px;
  font-size: .78rem; font-weight: 700;
}

/* ── Utilities ─────────────────────────────────────────────────── */
.mt-2  { margin-top: 8px; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mb-4  { margin-bottom: 16px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--white); }
.inline-link { color: var(--brand); font-weight: 600; }
.inline-link:hover { color: var(--indigo-200); }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.divider { border: none; border-top: 1px solid var(--border); margin: 4px 0; }

/* ── Page wrapper (generic) ─────────────────────────────────────── */
.page-wrap { flex: 1; max-width: 520px; margin: 0 auto; width: 100%; padding: 40px 20px 80px; }
.page-wrap--wide { max-width: 1100px; }
.page-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -.035em; color: var(--white); margin-bottom: 6px; }
.page-sub { color: var(--text-muted); font-size: .925rem; margin-bottom: 28px; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 680px) {
  .hero { padding: 64px 20px 52px; }
  .hero-stats { gap: 0; }
  .stat-item { padding: 0 20px; }
  .section { padding: 44px 20px; }
  .section--cta-final { padding-top: 20px; padding-bottom: 6px; }
  .auth-card { padding: 28px 20px; }
  .auth-wrap { padding: 36px 20px 60px; }
  .dash-header { flex-direction: column; align-items: flex-start; gap: 14px; }
  .dash-header-left, .dash-actions { width: 100%; }
  /* Prevent iOS Safari's auto-zoom-on-focus, which triggers on any input
     with a computed font-size under 16px — a common mobile forms bug. */
  .form-control, textarea.form-control, select.form-control { font-size: 16px; }
  .project-grid { grid-template-columns: 1fr; }
  .feedback-section { padding: 20px; }
  .admin-nav { gap: 4px; }
}

@media (max-width: 420px) {
  .hero-title { letter-spacing: -.03em; }
  .stat-item { padding: 0 14px; }
  .stat-num { font-size: 1.7rem; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
}

/* ── Scroll-triggered animations ────────────────────────────────── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger children */
.project-grid .project-card:nth-child(2) { transition-delay: .06s; }
.project-grid .project-card:nth-child(3) { transition-delay: .12s; }
.project-grid .project-card:nth-child(4) { transition-delay: .18s; }
.project-grid .project-card:nth-child(5) { transition-delay: .24s; }
.project-grid .project-card:nth-child(6) { transition-delay: .30s; }
.benefits-grid .benefit-card:nth-child(2) { transition-delay: .07s; }
.benefits-grid .benefit-card:nth-child(3) { transition-delay: .14s; }
.benefits-grid .benefit-card:nth-child(4) { transition-delay: .21s; }

/* ═══════════════════════════════════════════════════════════════
   Legal pages
═══════════════════════════════════════════════════════════════ */
.legal-wrap {
  max-width: 760px; margin: 0 auto; padding: 48px 24px 96px;
}
.legal-header { margin-bottom: 40px; }
.legal-eyebrow {
  font-size: .72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .12em; color: var(--accent); margin-bottom: 12px;
}
.legal-title {
  font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 800;
  letter-spacing: -.04em; color: var(--white); margin-bottom: 12px;
  line-height: 1.1;
}
.legal-meta {
  font-size: .875rem; color: var(--text-muted); line-height: 1.6;
}

/* Table of contents */
.legal-toc {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px 28px; margin-bottom: 48px;
}
.legal-toc-title {
  font-size: .72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; color: var(--accent); margin-bottom: 14px;
}
.legal-toc-list {
  list-style: decimal; padding-left: 20px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 32px;
}
.legal-toc-list li { font-size: .875rem; color: var(--text-muted); }
.legal-toc-list a {
  color: var(--text-muted); transition: color var(--dur) var(--ease);
}
.legal-toc-list a:hover { color: var(--brand); }

@media (max-width: 560px) {
  .legal-toc-list { grid-template-columns: 1fr; }
}

/* Notice box */
.legal-notice {
  background: rgba(107,107,222,.08); border: 1px solid rgba(107,107,222,.2);
  border-radius: var(--r); padding: 16px 20px; margin-bottom: 40px;
  font-size: .9rem; color: var(--indigo-200); line-height: 1.65;
}
.legal-notice a { color: var(--brand); }

/* Body sections */
.legal-body { display: flex; flex-direction: column; gap: 0; }
.legal-body section {
  padding: 32px 0;
  border-bottom: 1px solid var(--border-2);
}
.legal-body section:last-child { border-bottom: none; }
.legal-body h2 {
  font-size: 1.2rem; font-weight: 800; color: var(--white);
  letter-spacing: -.025em; margin-bottom: 16px;
  scroll-margin-top: 80px;
}
.legal-body h3 {
  font-size: 1rem; font-weight: 700; color: var(--slate-200);
  margin: 20px 0 10px;
}
.legal-body p {
  font-size: .925rem; color: var(--text-muted); line-height: 1.75;
  margin-bottom: 12px;
}
.legal-body p:last-child { margin-bottom: 0; }
.legal-body ul, .legal-body ol {
  padding-left: 20px; margin-bottom: 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.legal-body li {
  font-size: .925rem; color: var(--text-muted); line-height: 1.7;
}
.legal-body li strong { color: var(--slate-200); }
.legal-body a { color: var(--brand); }
.legal-body a:hover { color: var(--indigo-200); }
.legal-body code {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-xs); padding: 1px 6px;
  font-family: var(--mono); font-size: .82rem; color: var(--accent);
}

/* Detail box (company info) */
.legal-detail-box {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 16px 20px; margin: 14px 0;
}
.legal-detail-box p { margin: 0; line-height: 1.8; }
.legal-detail-box a { color: var(--brand); }

/* Legal table */
.legal-table {
  width: 100%; border-collapse: collapse; font-size: .875rem;
  margin: 14px 0; border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--border);
}
.legal-table th {
  background: var(--surface-2); color: var(--slate-200); font-weight: 700;
  text-align: left; padding: 10px 14px; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 1px solid var(--border);
}
.legal-table td {
  padding: 11px 14px; border-bottom: 1px solid var(--border-2);
  color: var(--text-muted); vertical-align: top; line-height: 1.6;
}
.legal-table tr:last-child td { border-bottom: none; }
.legal-table code {
  background: var(--surface-3); border: 1px solid var(--border);
  border-radius: var(--r-xs); padding: 1px 6px;
  font-family: var(--mono); font-size: .8rem; color: var(--accent);
}

/* Inline preference button (Cookie Policy page) */
.legal-pref-btn {
  background: none; border: 1px solid var(--border);
  color: var(--brand); border-radius: var(--r-sm);
  padding: 2px 10px; font-family: var(--font); font-size: .875rem;
  cursor: pointer; font-weight: 600;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.legal-pref-btn:hover { background: var(--surface-2); color: var(--indigo-200); }

/* ═══════════════════════════════════════════════════════════════
   Footer — minimal single link row
═══════════════════════════════════════════════════════════════ */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--indigo-900);
}
.footer-inner {
  max-width: 1140px; margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: center;
}
.footer-links-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.footer-links-row a {
  font-size: .8rem; color: var(--text-muted);
  transition: color var(--dur) var(--ease);
  line-height: 1.3;
  text-decoration: none;
}
.footer-links-row a:hover { color: var(--white); }

@media (max-width: 540px) {
  .footer-inner { padding: 14px 20px; }
  .footer-links-row { gap: 20px 24px; }
}

/* ═══════════════════════════════════════════════════════════════
   Cookie consent banner — compact
═══════════════════════════════════════════════════════════════ */
.cookie-banner {
  position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 500;
  max-width: 720px; margin: 0 auto;
  padding: 14px 18px;
  background: var(--indigo-900);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  transform: translateY(calc(100% + 24px));
  transition: transform .35s var(--ease);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.cookie-banner-text {
  font-size: .825rem; color: var(--text-muted); line-height: 1.5;
  flex: 1; min-width: 200px;
}
.cookie-banner-text a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner-actions {
  display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; align-items: center;
}

@media (max-width: 680px) {
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 14px 16px; }
  .cookie-banner-inner { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions { flex-direction: column; align-items: stretch; justify-content: flex-start; }
  .cookie-banner-actions .btn { width: 100%; white-space: normal; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════════
   Cookie preferences modal
═══════════════════════════════════════════════════════════════ */
.cookie-modal-overlay {
  position: fixed; inset: 0; z-index: 600;
  background: rgba(0,0,0,.65);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; transition: opacity .3s var(--ease);
}
.cookie-modal-overlay[hidden] { display: none; }
.cookie-modal-overlay.visible { opacity: 1; }
.cookie-modal {
  background: var(--indigo-900); border: 1px solid var(--border);
  border-radius: var(--r-xl); width: 100%; max-width: 520px;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(.97);
  transition: transform .3s var(--ease-spring);
}
.cookie-modal-overlay.visible .cookie-modal { transform: translateY(0) scale(1); }
.cookie-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px; border-bottom: 1px solid var(--border);
}
.cookie-modal-header h2 { font-size: 1.1rem; font-weight: 800; color: var(--white); letter-spacing: -.02em; }
.cookie-modal-close {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 50%; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-muted); font-size: .75rem;
  transition: all var(--dur) var(--ease); flex-shrink: 0;
}
.cookie-modal-close:hover { background: var(--surface-3); color: var(--white); }
.cookie-modal-body { padding: 8px 0; }
.cookie-pref-row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px 24px; border-bottom: 1px solid var(--border-2);
}
.cookie-pref-row:last-child { border-bottom: none; }
.cookie-pref-info { flex: 1; min-width: 0; }
.cookie-pref-name { font-weight: 700; color: var(--white); font-size: .9rem; margin-bottom: 4px; }
.cookie-pref-desc { font-size: .8rem; color: var(--text-muted); line-height: 1.55; }

/* Toggle switch */
.cookie-toggle { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cookie-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.cookie-toggle-track {
  width: 44px; height: 24px; border-radius: 12px;
  background: var(--surface-3); border: 1px solid var(--border);
  position: relative; cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  flex-shrink: 0;
}
.cookie-toggle input:checked + .cookie-toggle-track {
  background: var(--accent); border-color: var(--accent);
}
.cookie-toggle-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--white);
  transition: transform var(--dur) var(--ease-spring);
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.cookie-toggle input:checked ~ .cookie-toggle-track .cookie-toggle-thumb,
.cookie-toggle input:checked + .cookie-toggle-track .cookie-toggle-thumb {
  transform: translateX(20px);
}
.cookie-toggle--locked { cursor: default; }
.cookie-toggle-label { font-size: .75rem; color: var(--text-muted); font-weight: 600; white-space: nowrap; }
.cookie-modal-footer {
  display: flex; gap: 10px; justify-content: flex-end;
  padding: 16px 24px; border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════════
   Registration consent line
═══════════════════════════════════════════════════════════════ */
.consent-line {
  font-size: .825rem; color: var(--text-muted); line-height: 1.6;
  padding: 12px 14px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.consent-line a { color: var(--brand); font-weight: 600; }
.consent-line a:hover { color: var(--indigo-200); }

/* ═══════════════════════════════════════════════════════════════
   Collaboration section (feedback form)
═══════════════════════════════════════════════════════════════ */
.collab-section {
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.collab-section-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-2);
}
.collab-title {
  font-size: 1rem; font-weight: 800; color: var(--white);
  letter-spacing: -.02em; margin-bottom: 10px;
}
.collab-intro {
  font-size: .875rem; color: var(--text-muted); line-height: 1.65;
  margin-bottom: 18px;
}
/* Custom checkbox */
.collab-checkbox-label {
  display: flex; align-items: flex-start; gap: 12px;
  cursor: pointer; user-select: none;
}
.collab-checkbox-label input[type=checkbox] {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.collab-checkbox-box {
  flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px;
  border-radius: var(--r-xs); border: 2px solid var(--border);
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.collab-checkbox-label input:checked + .collab-checkbox-box {
  background: var(--accent); border-color: var(--accent);
}
.collab-checkbox-label input:checked + .collab-checkbox-box::after {
  content: '✓'; font-size: .7rem; font-weight: 900; color: var(--indigo-950);
}
.collab-checkbox-text {
  font-size: .9rem; color: var(--text); line-height: 1.5;
}
.collab-checkbox-label:hover .collab-checkbox-box {
  border-color: var(--brand);
}
/* Fields revealed on checkbox check */
.collab-fields {
  padding: 24px;
  display: flex; flex-direction: column; gap: 20px;
  border-top: 1px solid var(--border-2);
  animation: fadeIn var(--dur-md) var(--ease) both;
}
.collab-fields[hidden] { display: none; }

/* Collab badge in admin */
.collab-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(184,255,0,.1); color: var(--accent);
  border: 1px solid rgba(184,255,0,.25);
  border-radius: 99px; padding: 3px 10px;
  font-size: .75rem; font-weight: 700; white-space: nowrap;
}

/* ── Beta Tester Reward highlight (landing page) ─────────────────── */
.reward-highlight-section { padding-top: 0; }
.reward-highlight {
  display: flex; align-items: flex-start; gap: 24px;
  background: linear-gradient(135deg, rgba(184,255,0,.07), rgba(107,107,222,.06));
  border: 1px solid rgba(184,255,0,.25);
  border-radius: var(--r-xl);
  padding: 32px;
}
.reward-highlight-icon {
  flex: 0 0 auto;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  background: rgba(184,255,0,.12);
  border: 1px solid rgba(184,255,0,.25);
  border-radius: var(--r-lg);
}
.reward-highlight-body h2 { margin-top: 4px; }
.reward-highlight-note {
  margin-top: 10px;
  font-size: .78rem;
  color: var(--text-muted);
  font-weight: 500;
}
@media (max-width: 680px) {
  .reward-highlight { flex-direction: column; padding: 20px 18px; gap: 0; }
  .reward-highlight-icon { display: none; } /* large standalone icon removed on mobile only */

  /* Badge acts as the section label on mobile: bigger, padded, centered */
  .reward-top-badge {
    display: flex; width: fit-content; margin: 0 auto 14px;
    font-size: .8rem; padding: 9px 18px;
  }

  .reward-headline.section-title { margin-bottom: 12px; }
}

/* ── Beta Tester Reward — redesigned landing page layout ─────────── */
.reward-top-badge { margin-bottom: 16px; }
.reward-headline.section-title { margin-top: 0; margin-bottom: 16px; }

.reward-value-chip {
  display: inline-flex; align-items: center;
  gap: 6px;
  background: rgba(184,255,0,.1);
  border: 1px solid rgba(184,255,0,.3);
  color: var(--accent);
  font-weight: 800; font-size: .9rem; letter-spacing: -.01em;
  padding: 9px 16px;
  border-radius: 99px;
  margin-bottom: 18px;
}

.reward-chip-row {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 20px;
}
.reward-chip-row .reward-value-chip { margin-bottom: 0; }

.reward-description.section-sub { margin-bottom: 20px; }

.reward-feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-bottom: 24px;
}
.reward-feature-grid--2col { grid-template-columns: repeat(2, 1fr); }
.reward-feature-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 12px;
}
.reward-feature-icon { font-size: 1.3rem; }
.reward-feature-text { font-size: .78rem; font-weight: 600; color: var(--text); line-height: 1.4; }

@media (max-width: 680px) {
  .reward-chip-row { gap: 8px; margin-bottom: 16px; }
  .reward-value-chip { margin-bottom: 14px; }
  .reward-description.section-sub { margin-bottom: 14px; }

  /* Compact cards instead of full-width stacked ones, so the feature
     row/grid stays short rather than taking a full screen of height. */
  .reward-feature-grid { gap: 8px; margin-bottom: 16px; }
  .reward-feature-card { padding: 10px 6px; gap: 4px; }
  .reward-feature-icon { font-size: 1.1rem; }
  .reward-feature-text { font-size: .68rem; line-height: 1.3; }
}

.reward-pricing-text {
  font-size: .9rem; color: var(--text); line-height: 1.8;
  margin-bottom: 6px;
}
.reward-pricing-text strong { color: var(--white); }

.reward-scope-note {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid rgba(184,255,0,.4);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  font-size: .78rem; color: var(--text-muted); line-height: 1.55;
}
.reward-scope-note-icon { flex: 0 0 auto; font-size: .9rem; line-height: 1.4; }
