/* ============================================================================
   CashCactus — "Small tasks, real gift cards."
   Warm, friendly desert theme. Sand cream canvas, cactus green, terracotta,
   sunny yellow + prickly-pear pink pops. Rounded everything, organic blobs,
   gentle shadows, paper/dotted texture. Display: Fredoka. Body: Nunito.
   ========================================================================== */

/* ----------------------------------------------------------------- Tokens */
:root {
  /* Palette */
  --sand:        #FBF3E4;
  --sand-deep:   #F6E8CF;
  --sand-line:   #EBD9B8;
  --cactus:      #2F855A;
  --cactus-dark: #21603F;
  --cactus-soft: #E4F1E8;
  --terra:       #E07A5F;
  --terra-dark:  #C85D42;
  --sunny:       #F4C152;
  --sunny-deep:  #E7A930;
  --pear:        #E86A92;
  --ink:         #2B2118;
  --ink-soft:    #6C5F4E;
  --white:       #FFFDF8;

  /* Roles */
  --bg:          var(--sand);
  --surface:     var(--white);
  --text:        var(--ink);
  --muted:       var(--ink-soft);
  --primary:     var(--cactus);
  --primary-ink: #F3FBF6;

  /* Radii */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 30px;
  --r-xl: 42px;
  --r-pill: 999px;

  /* Shadows — warm, soft */
  --sh-sm: 0 2px 8px rgba(74, 52, 28, 0.08);
  --sh-md: 0 12px 28px -12px rgba(74, 52, 28, 0.24);
  --sh-lg: 0 30px 60px -24px rgba(74, 52, 28, 0.35);
  --sh-inset: inset 0 -4px 0 rgba(74, 52, 28, 0.10);

  /* Rings */
  --ring: 0 0 0 4px rgba(47, 133, 90, 0.28);

  /* Type */
  --font-display: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, Segoe UI, sans-serif;

  /* Layout */
  --maxw: 1160px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  /* Paper + dotted texture, painted with layered gradients (no images) */
  background-image:
    radial-gradient(rgba(47, 133, 90, 0.06) 1.4px, transparent 1.6px),
    radial-gradient(rgba(224, 122, 95, 0.05) 1.4px, transparent 1.6px),
    radial-gradient(120% 120% at 50% -10%, var(--sand-deep) 0%, var(--sand) 46%, var(--sand) 100%);
  background-size: 24px 24px, 24px 24px, 100% 100%;
  background-position: 0 0, 12px 12px, 0 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--cactus-dark); text-decoration-color: rgba(47,133,90,0.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.35rem, 1.6rem + 3.6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem); }
p { margin: 0 0 1rem; }

/* --------------------------------------------------------- Layout helpers */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 2rem + 7vw, 6.5rem); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 5vw, 4.5rem); }
.center { text-align: center; }
.lead { font-size: clamp(1.08rem, 1rem + 0.5vw, 1.3rem); color: var(--muted); max-width: 60ch; }
.center .lead { margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--terra-dark);
  background: rgba(224, 122, 95, 0.14);
  padding: 0.42em 0.95em; border-radius: var(--r-pill);
}
.eyebrow::before { content: ""; width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--terra); }

/* ------------------------------------------------------------- Buttons */
.btn {
  --btn-bg: var(--cactus);
  --btn-ink: var(--primary-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  line-height: 1; text-decoration: none; cursor: pointer;
  padding: 0.92em 1.5em; border: none; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-ink);
  box-shadow: var(--sh-md), var(--sh-inset);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s var(--ease);
}
.btn:hover { transform: translateY(-2px) rotate(-0.4deg); box-shadow: var(--sh-lg), var(--sh-inset); }
.btn:active { transform: translateY(0); }
.btn--lg { font-size: 1.12rem; padding: 1.05em 1.9em; }
.btn--block { width: 100%; }
.btn--terra { --btn-bg: var(--terra); --btn-ink: #fff; }
.btn--sunny { --btn-bg: var(--sunny); --btn-ink: var(--ink); }
.btn--ghost {
  --btn-bg: transparent; --btn-ink: var(--cactus-dark);
  box-shadow: inset 0 0 0 2.5px rgba(47,133,90,0.35);
}
.btn--ghost:hover { background: var(--cactus-soft); box-shadow: inset 0 0 0 2.5px var(--cactus); }

/* --------------------------------------------------------------- Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 243, 228, 0.82);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1.5px solid var(--sand-line);
}
.nav {
  display: flex; align-items: center; gap: 1rem;
  min-height: 70px;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.4rem;
  color: var(--ink); text-decoration: none; margin-right: auto;
}
.brand:hover { text-decoration: none; }
.brand svg { width: 40px; height: 46px; flex: none; }
.brand b { color: var(--cactus); }

.nav-links {
  display: flex; align-items: center; gap: 0.35rem; list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
  color: var(--ink); text-decoration: none;
  padding: 0.5em 0.85em; border-radius: var(--r-pill);
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease);
}
.nav-links a:hover { background: var(--cactus-soft); color: var(--cactus-dark); }
.nav-links a[aria-current="page"] { background: var(--sunny); color: var(--ink); }
.nav-links .nav-cta { margin-left: 0.4rem; }
.nav-links .nav-cta a {
  background: var(--cactus); color: var(--primary-ink);
  box-shadow: var(--sh-sm), var(--sh-inset);
  padding: 0.6em 1.15em;
}
.nav-links .nav-cta a:hover { background: var(--cactus-dark); color: #fff; transform: translateY(-1px); }

.nav-toggle {
  display: none; margin-left: auto;
  width: 46px; height: 46px; border: none; cursor: pointer;
  background: var(--surface); border-radius: 14px;
  box-shadow: var(--sh-sm); color: var(--ink);
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------------------------------------------------------------- Footer */
.site-footer {
  background:
    radial-gradient(140% 120% at 50% 0%, rgba(47,133,90,0.10), transparent 55%),
    var(--sand-deep);
  border-top: 1.5px solid var(--sand-line);
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4rem);
  margin-top: 2rem;
}
.footer-grid {
  display: grid; gap: 2rem clamp(1.5rem, 5vw, 4rem);
  grid-template-columns: 1.5fr 1fr 1fr;
  align-items: start;
}
.footer-brand .brand { font-size: 1.5rem; margin-bottom: 0.75rem; }
.footer-brand p { color: var(--muted); max-width: 38ch; margin-bottom: 0; }
.footer-col h4 {
  font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--terra-dark); margin-bottom: 0.9rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-col a { color: var(--ink); text-decoration: none; font-weight: 600; }
.footer-col a:hover { color: var(--cactus-dark); text-decoration: underline; }
.footer-bottom {
  margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1.5px dashed var(--sand-line);
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; align-items: center;
  justify-content: space-between; color: var(--muted); font-size: 0.9rem;
}
.footer-bottom .disclaimer { max-width: 62ch; }

/* ----------------------------------------------------------------- Hero */
.hero { position: relative; padding-block: clamp(2.5rem, 1.5rem + 6vw, 5.5rem); overflow: hidden; }
.hero-grid {
  display: grid; align-items: center; gap: clamp(2rem, 4vw, 4rem);
  grid-template-columns: 1.05fr 0.95fr;
}
.hero h1 { margin-bottom: 0.55rem; }
.hero h1 .hl { color: var(--cactus); position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: 0.06em; height: 0.32em;
  background: var(--sunny); border-radius: var(--r-pill); z-index: -1; opacity: 0.85;
}
.hero .lead { margin-bottom: 1.6rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-trust {
  margin-top: 1.8rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.4rem;
  color: var(--muted); font-weight: 600; font-size: 0.95rem;
}
.hero-trust .stars { color: var(--sunny-deep); letter-spacing: 1px; }
.hero-trust b { color: var(--ink); }

.hero-art { position: relative; display: grid; place-items: center; }
.hero-blob {
  position: absolute; inset: -8% -4% -8% -4%; z-index: 0;
  filter: drop-shadow(var(--sh-lg));
}
.hero-mascot { position: relative; z-index: 1; width: min(400px, 82%); }
.hero-mascot svg { width: 100%; height: auto; }

.coin-chip {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.45em;
  background: var(--surface); color: var(--ink);
  font-family: var(--font-display); font-weight: 600; font-size: 0.92rem;
  padding: 0.55em 0.9em; border-radius: var(--r-pill);
  box-shadow: var(--sh-md);
}
.coin-chip .dot { width: 1.4em; height: 1.4em; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 0.8em; }
.coin-chip--1 { top: 8%; left: -2%; }
.coin-chip--1 .dot { background: var(--terra); }
.coin-chip--2 { bottom: 12%; right: -4%; }
.coin-chip--2 .dot { background: var(--pear); }
.coin-chip--3 { bottom: 40%; left: -8%; }
.coin-chip--3 .dot { background: var(--sunny-deep); }
@media (min-width: 640px) { .coin-chip--3 { left: -6%; } }

/* -------------------------------------------------------- Section dressing */
.zig { position: relative; }
.zig--tint {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(224,122,95,0.10), transparent 50%),
    radial-gradient(120% 90% at 0% 100%, rgba(47,133,90,0.10), transparent 50%),
    var(--sand-deep);
  border-block: 1.5px solid var(--sand-line);
}
.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 1rem + 3vw, 3.25rem); }
.center.section-head, .section-head.center { margin-inline: auto; }

/* Decorative blob divider (organic) */
.blob-mini { position: absolute; z-index: 0; opacity: 0.5; pointer-events: none; }

/* --------------------------------------------------------- How-it-works cards */
.steps {
  display: grid; gap: clamp(1.2rem, 2.5vw, 1.8rem);
  grid-template-columns: repeat(3, 1fr);
  counter-reset: step;
}
.step {
  position: relative; background: var(--surface);
  border: 1.5px solid var(--sand-line); border-radius: var(--r-lg);
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.2rem); box-shadow: var(--sh-md);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.step:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.step .step-num {
  counter-increment: step;
  position: absolute; top: -18px; right: 22px;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: #fff;
  box-shadow: var(--sh-sm);
}
.step .step-num::after { content: counter(step); }
.step:nth-child(1) .step-num { background: var(--cactus); }
.step:nth-child(2) .step-num { background: var(--terra); }
.step:nth-child(3) .step-num { background: var(--pear); }
.step .step-ico {
  width: 62px; height: 62px; border-radius: 18px; margin-bottom: 1rem;
  display: grid; place-items: center; color: #fff;
}
.step:nth-child(1) .step-ico { background: linear-gradient(150deg, #38a169, var(--cactus)); }
.step:nth-child(2) .step-ico { background: linear-gradient(150deg, #ef9276, var(--terra)); }
.step:nth-child(3) .step-ico { background: linear-gradient(150deg, #f2839f, var(--pear)); }
.step .step-ico svg { width: 34px; height: 34px; }
.step h3 { margin-bottom: 0.35rem; }
.step p { color: var(--muted); margin-bottom: 0; }

/* ------------------------------------------------------------- Offer grid */
.offer-grid {
  display: grid; gap: clamp(1rem, 2vw, 1.4rem);
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.offer {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1.5px solid var(--sand-line);
  border-radius: var(--r-md); padding: 1.35rem; box-shadow: var(--sh-sm);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.offer:hover { transform: translateY(-4px) rotate(-0.5deg); box-shadow: var(--sh-md); }
.offer .offer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.9rem; }
.offer .offer-ico {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff;
}
.offer .offer-ico svg { width: 26px; height: 26px; }
.offer .pay {
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  color: var(--cactus-dark); background: var(--cactus-soft);
  padding: 0.28em 0.7em; border-radius: var(--r-pill);
}
.offer h3 { font-size: 1.12rem; margin-bottom: 0.15rem; }
.offer p { color: var(--muted); font-size: 0.94rem; margin-bottom: 0; }
.offer:nth-child(4n+1) .offer-ico { background: var(--cactus); }
.offer:nth-child(4n+2) .offer-ico { background: var(--terra); }
.offer:nth-child(4n+3) .offer-ico { background: var(--pear); }
.offer:nth-child(4n+4) .offer-ico { background: var(--sunny-deep); }

/* --------------------------------------------------------------- Payouts */
.payouts { display: grid; gap: clamp(1rem, 2vw, 1.4rem); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.payout {
  background: var(--surface); border: 1.5px solid var(--sand-line);
  border-radius: var(--r-lg); padding: clamp(1.4rem, 1rem + 1.5vw, 2rem);
  box-shadow: var(--sh-md);
}
.payout .chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }
.tag {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-weight: 700; font-size: 0.86rem; color: var(--ink);
  background: var(--sand-deep); border: 1.5px solid var(--sand-line);
  padding: 0.4em 0.8em; border-radius: var(--r-pill);
}
.tag .swatch { width: 0.75em; height: 0.75em; border-radius: 50%; }
.payout h3 { display: flex; align-items: center; gap: 0.5rem; }
.payout .p-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.payout p { color: var(--muted); margin-bottom: 0; }

/* ------------------------------------------------------------ Testimonials */
.testi-grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.testi {
  background: var(--surface); border: 1.5px solid var(--sand-line);
  border-radius: var(--r-lg); padding: clamp(1.4rem, 1rem + 1.5vw, 1.9rem);
  box-shadow: var(--sh-md); position: relative;
}
.testi p { font-size: 1.05rem; }
.testi .who { display: flex; align-items: center; gap: 0.75rem; margin-top: 1rem; }
.testi .face { width: 46px; height: 46px; border-radius: 50%; flex: none; box-shadow: var(--sh-sm); }
.testi .who b { display: block; font-family: var(--font-display); }
.testi .who span { color: var(--muted); font-size: 0.9rem; }
.testi .stars { color: var(--sunny-deep); letter-spacing: 1px; font-size: 1.05rem; }

/* ------------------------------------------------------------- Stat band */
.stat-band {
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  background: linear-gradient(135deg, var(--cactus), var(--cactus-dark));
  color: #fff; border-radius: var(--r-xl); padding: clamp(1.6rem, 1rem + 3vw, 2.8rem);
  box-shadow: var(--sh-lg); text-align: center;
}
.stat b { font-family: var(--font-display); font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.8rem); display: block; line-height: 1; }
.stat span { color: rgba(255,255,255,0.85); font-weight: 600; font-size: 0.95rem; }

/* ------------------------------------------------------------- CTA banner */
.cta-banner {
  position: relative; overflow: hidden; text-align: center;
  background:
    radial-gradient(90% 120% at 15% 0%, rgba(244,193,82,0.35), transparent 55%),
    radial-gradient(90% 120% at 100% 100%, rgba(232,106,146,0.30), transparent 55%),
    var(--surface);
  border: 1.5px solid var(--sand-line); border-radius: var(--r-xl);
  padding: clamp(2.2rem, 1.5rem + 4vw, 4rem) clamp(1.4rem, 1rem + 3vw, 3rem);
  box-shadow: var(--sh-lg);
}
.cta-banner h2 { margin-bottom: 0.5rem; }
.cta-banner p { margin-inline: auto; max-width: 48ch; }
.cta-banner .hero-cta { justify-content: center; margin-top: 1.5rem; }

/* ------------------------------------------------------------------ FAQ */
.faq { max-width: 780px; margin-inline: auto; display: grid; gap: 0.9rem; }
.acc {
  background: var(--surface); border: 1.5px solid var(--sand-line);
  border-radius: var(--r-md); box-shadow: var(--sh-sm); overflow: hidden;
}
.acc-trigger {
  width: 100%; text-align: left; cursor: pointer;
  display: flex; align-items: center; gap: 1rem; justify-content: space-between;
  font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--ink);
  background: transparent; border: none; padding: 1.15rem 1.35rem;
}
.acc-trigger:hover { color: var(--cactus-dark); }
.acc-trigger .chev {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--cactus-soft); color: var(--cactus-dark);
  display: grid; place-items: center; transition: transform 0.25s var(--ease), background-color 0.2s var(--ease);
}
.acc-trigger .chev svg { width: 16px; height: 16px; }
.acc-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); background: var(--sunny); color: var(--ink); }
.acc-panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s var(--ease);
}
.acc-panel[hidden] { display: grid; }
.acc-panel > div { overflow: hidden; }
.acc-panel[data-open="true"] { grid-template-rows: 1fr; }
.acc-panel p { color: var(--muted); margin: 0 1.35rem 1.25rem; }

/* ------------------------------------------------------------------ Forms */
.auth {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}
.auth-aside {
  background:
    radial-gradient(100% 100% at 100% 0%, rgba(244,193,82,0.28), transparent 55%),
    linear-gradient(160deg, var(--cactus), var(--cactus-dark));
  color: #fff; border-radius: var(--r-xl); padding: clamp(1.8rem, 1.2rem + 3vw, 3rem);
  box-shadow: var(--sh-lg); position: relative; overflow: hidden;
}
.auth-aside h2 { color: #fff; }
.auth-aside p { color: rgba(255,255,255,0.9); }
.auth-aside .mascot-mini { width: 130px; margin-bottom: 1rem; }
.auth-aside ul { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.auth-aside li { display: flex; align-items: flex-start; gap: 0.6rem; font-weight: 600; }
.auth-aside li svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--sunny); }

.card {
  background: var(--surface); border: 1.5px solid var(--sand-line);
  border-radius: var(--r-xl); padding: clamp(1.6rem, 1.1rem + 2.5vw, 2.75rem);
  box-shadow: var(--sh-lg);
}
.card h1 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.3rem); }
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; }
.field .hint { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.field input,
.field select {
  font-family: var(--font-body); font-size: 1.02rem; color: var(--ink);
  background: var(--sand); border: 2px solid var(--sand-line); border-radius: var(--r-sm);
  padding: 0.82em 1em; width: 100%; transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease), background-color 0.16s var(--ease);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B2118' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9em center; background-size: 20px; padding-right: 2.6em; }
.field input::placeholder { color: #a99b84; }
.field input:hover, .field select:hover { border-color: #d9c39c; }
.field input:focus, .field select:focus { outline: none; border-color: var(--cactus); background: var(--white); box-shadow: var(--ring); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--terra-dark); background: #fdeee9; }

.check {
  display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start;
  font-weight: 600; font-size: 0.96rem; cursor: pointer;
}
.check input { appearance: none; -webkit-appearance: none; margin: 0; flex: none;
  width: 26px; height: 26px; border: 2px solid var(--sand-line); border-radius: 8px; background: var(--sand);
  cursor: pointer; position: relative; transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease); }
.check input:hover { border-color: #d9c39c; }
.check input:checked { background: var(--cactus); border-color: var(--cactus); }
.check input:checked::after { content: ""; position: absolute; inset: 0; background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 16px no-repeat; }
.check input:focus-visible { outline: none; box-shadow: var(--ring); }
.check a { color: var(--cactus-dark); font-weight: 700; }

.error-msg {
  color: var(--terra-dark); font-size: 0.85rem; font-weight: 700;
  display: none; align-items: center; gap: 0.35em;
}
.error-msg::before { content: "▲"; font-size: 0.7em; }
.field.invalid .error-msg, .check.invalid .error-msg { display: flex; }
.check.invalid .error-msg { grid-column: 1 / -1; }

.form-foot { color: var(--muted); font-size: 0.95rem; text-align: center; margin: 0; }
.form-foot a { font-weight: 700; }

/* Confirmation panel (replaces the form) */
.confirm {
  text-align: center; display: grid; gap: 0.9rem; justify-items: center;
  animation: pop 0.5s var(--ease) both;
}
.confirm .seal {
  width: 92px; height: 92px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #4cbb84, var(--cactus));
  display: grid; place-items: center; color: #fff; box-shadow: var(--sh-md);
}
.confirm .seal svg { width: 46px; height: 46px; }
.confirm h2 { margin: 0; }
.confirm p { color: var(--muted); max-width: 46ch; margin: 0 auto; }
.confirm .echo { color: var(--cactus-dark); font-weight: 800; }
.confirm .btn { margin-top: 0.6rem; }

/* ------------------------------------------------------------- Legal pages */
.legal { max-width: 820px; margin-inline: auto; }
.legal .card { padding: clamp(1.6rem, 1.2rem + 3vw, 3.25rem); }
.legal h1 { margin-bottom: 0.25rem; }
.legal .updated { color: var(--muted); font-weight: 700; margin-bottom: 2rem; }
.legal h2 { font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.7rem); margin-top: 2.2rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: 0.5rem; }
.legal .toc {
  background: var(--sand-deep); border: 1.5px solid var(--sand-line);
  border-radius: var(--r-md); padding: 1.2rem 1.4rem; margin-bottom: 2rem;
}
.legal .toc h4 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; color: var(--terra-dark); margin: 0 0 0.6rem; }
.legal .toc ol { margin: 0; padding-left: 1.2rem; columns: 2; gap: 1rem; }
.legal .toc a { font-weight: 700; color: var(--cactus-dark); text-decoration: none; }
.legal .toc a:hover { text-decoration: underline; }

/* ------------------------------------------------------ Page-load reveal */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { opacity: 0; transform: translateY(22px); }
  body.ready [data-reveal] {
    animation: reveal 0.7s var(--ease) forwards;
    animation-delay: calc(var(--i, 0) * 90ms);
  }
}
@keyframes reveal { to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: scale(0.94); } 100% { opacity: 1; transform: none; } }
@keyframes float-y { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: no-preference) {
  .hero-mascot { animation: float-y 6s ease-in-out infinite; }
  .coin-chip { animation: float-y 5s ease-in-out infinite; }
  .coin-chip--2 { animation-delay: -1.5s; }
  .coin-chip--3 { animation-delay: -3s; }
}

/* ----------------------------------------------------------- Focus states */
:focus-visible { outline: 3px solid var(--cactus); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible { outline-offset: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--cactus); color: #fff; padding: 0.7em 1.1em; border-radius: 12px;
  font-family: var(--font-display); font-weight: 600; text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------------------------------------------------------------- Utility */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }

/* -------------------------------------------------------------- Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-cta, .hero-trust { justify-content: center; }
  .hero-art { order: -1; }
  .hero-mascot { width: min(320px, 66%); }
  .steps { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .auth { grid-template-columns: 1fr; }
  .auth-aside { order: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 10px);
    flex-direction: column; align-items: stretch; gap: 0.3rem;
    background: var(--surface); border: 1.5px solid var(--sand-line);
    border-radius: var(--r-md); padding: 0.7rem; box-shadow: var(--sh-lg);
    display: none;
  }
  .nav-links.open { display: flex; animation: pop 0.22s var(--ease) both; }
  .nav-links a { padding: 0.75em 1em; }
  .nav-links .nav-cta { margin-left: 0; }
  .nav-links .nav-cta a { text-align: center; }
  .legal .toc ol { columns: 1; }
}

@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
