/* v4 additions */
.hero__quip{font-style:italic;opacity:.85;margin-top:6px;}
.footer__tagline{display:block;font-style:italic;opacity:.85;margin:6px 0;max-width:42ch;}

/* ── App-accurate card effects (mirrors yourmove cardFx.tsx) ──────────
   Reward  = static rainbow ring + hue-cycling breathing glow (RainbowBorderGlow)
   Wild    = gold gleam border (rotating shine) + 1300ms gold pulse + 4° tilt
   Spark   = -4° lean (mirror of wildcard tilt)
   Rainbow keys and timings copied from src/components/effects/cardFx.tsx. */

@property --gcf-ang {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

/* One width for every showcase card, like the app's fixed card widths. */
:root { --gcf-w: 250px; }
.step__card, .ctcell__card { width: 100%; max-width: var(--gcf-w); margin-left: auto; margin-right: auto; }
.lock-overlay { max-width: var(--gcf-w); }

/* Reward: rainbow border ring (static, like RewardRainbowRing) */
.gcf--reward {
  border-color: transparent !important;
  background:
    linear-gradient(var(--card-dark), var(--card-dark)) padding-box,
    linear-gradient(135deg, #FF3B30, #FF9500, #FFCC00, #34C759, #007AFF, #5856D6, #AF52DE, #FF3B30) border-box;
  animation: gcf-rainbow-glow 5s linear infinite;
}
/* hue-cycling breathing glow (RainbowGlow: 5s hue loop + 1.4s pulse, merged) */
@keyframes gcf-rainbow-glow {
  0%   { box-shadow: 0 0 14px 2px rgba(255,59,48,.45); }
  14%  { box-shadow: 0 0 24px 4px rgba(255,149,0,.62); }
  28%  { box-shadow: 0 0 14px 2px rgba(255,204,0,.45); }
  42%  { box-shadow: 0 0 24px 4px rgba(52,199,89,.62); }
  57%  { box-shadow: 0 0 14px 2px rgba(0,122,255,.45); }
  71%  { box-shadow: 0 0 24px 4px rgba(88,86,214,.62); }
  85%  { box-shadow: 0 0 14px 2px rgba(175,82,222,.45); }
  100% { box-shadow: 0 0 14px 2px rgba(255,59,48,.45); }
}

/* Wildcard: gold gleam border — rotating white shine on gold (GleamBorder, 12s) */
.gcf--wild {
  border-color: transparent !important;
  background:
    linear-gradient(var(--card-dark), var(--card-dark)) padding-box,
    conic-gradient(from var(--gcf-ang),
      #C8962A 0%, #C8962A 42%, #FFFFFF 50%, #C8962A 58%, #C8962A 100%) border-box;
  animation: gcf-gleam-spin 12s linear infinite, gcf-gold-pulse 1.3s ease-in-out infinite alternate;
  transform: rotate(4deg);
}
@keyframes gcf-gleam-spin { to { --gcf-ang: 360deg; } }
@keyframes gcf-gold-pulse {
  from { box-shadow: 0 0 12px 2px rgba(200,150,42,.35); }
  to   { box-shadow: 0 0 26px 5px rgba(200,150,42,.75); }
}
.gcf--wild:hover { transform: translateY(-4px) rotate(4deg); }

/* Spark: question cards lean the other way */
.gcf--spark { transform: rotate(-4deg); }
.gcf--spark:hover { transform: translateY(-4px) rotate(-4deg); }

@media (prefers-reduced-motion: reduce) {
  .gcf--reward, .gcf--wild { animation: none; }
  .gcf--wild { box-shadow: 0 0 18px 3px rgba(200,150,42,.5); }
  .gcf--reward { box-shadow: 0 0 18px 3px rgba(175,82,222,.5); }
}

/* v3.css — shared layout for the v3 landing pages (her / him).
   Colors come from ../css/theme-her.css / theme-him.css (data-theme attr).
   Section order: hero → how → quiz → your cards → card types → privacy/get → FAQ.
   Card faces (.gcf) come from ../css/components/gallery.css; quiz UI from
   ../css/components/quiz.css. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --font-app: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --logo-flame: #E84040;
  --radius: 18px;
  --card-dark: #131110;
  --task-gold: #C8962A;
  --treat-purple: #9E4A9E;
  --spark-blue: #4A7EC8;
  --wild-red: #E84040;
}

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-app);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
.logo-dot { color: var(--logo-flame); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

em { font-style: italic; }
h1 em, h2 em { color: var(--accent); }

.muted { color: var(--text-secondary); }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-app); font-weight: 800; cursor: pointer;
  border: none; border-radius: 999px; text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--accent); color: var(--accent-on);
  font-size: 1.05rem; padding: 16px 34px;
  box-shadow: 0 8px 30px var(--accent-soft), 0 2px 8px rgba(0,0,0,.15);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px var(--accent-soft), 0 4px 12px rgba(0,0,0,.2); }
.btn-big { font-size: 1.15rem; padding: 19px 44px; }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border); padding: 14px 28px; font-size: .98rem;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* soft heartbeat on the main hero CTA */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 8px 30px var(--accent-soft), 0 0 0 0 var(--accent-soft); }
  50%       { box-shadow: 0 8px 30px var(--accent-soft), 0 0 0 14px rgba(0,0,0,0); }
}
.btn-pulse { animation: pulse-glow 2.6s ease-in-out infinite; }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.12rem; color: var(--text); letter-spacing: -0.01em; }
.nav__brand img { width: 32px; height: 32px; }
.nav__links { display: flex; align-items: center; gap: 22px; }
.nav__links a { color: var(--text-secondary); font-size: .92rem; font-weight: 600; }
.nav__links a:hover { color: var(--accent); }
.nav__cta { font-size: .88rem; padding: 10px 20px; color: #fff !important; }
.nav__switch { font-size: .85rem; color: var(--text-muted) !important; }
@media (max-width: 760px) { .nav__links a:not(.nav__cta) { display: none; } }

/* ── 1 · Hero ────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 64px 0 30px; overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 48px; align-items: center;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero__title {
  font-size: clamp(2.5rem, 5.2vw, 4.1rem);
  line-height: 1.04; letter-spacing: -0.025em; font-weight: 900;
  margin: 0 0 20px;
}
.hero__sub {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--text-secondary); max-width: 34em; margin: 0 0 28px;
}
.hero__sub strong { color: var(--text); }
.hero__cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 14px; }
.hero__cta-secondary { font-weight: 700; font-size: .95rem; color: var(--text-secondary); }
.hero__cta-secondary:hover { color: var(--accent); }
.hero__risk { font-size: .85rem; color: var(--text-muted); margin: 0 0 18px; }
.hero__risk span { white-space: nowrap; }
.hero__privacy-chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 10px 16px; font-size: .85rem; color: var(--text-secondary); max-width: 30em;
}
.hero__privacy-lock { width: 32px; height: 32px; object-fit: contain; flex-shrink: 0; }
.hero__privacy-text { font-size: .82rem; font-weight: 700; letter-spacing: .02em; }

.hero__img-cta {
  display: block; text-align: center; margin-top: 18px;
  font-weight: 700; font-size: .95rem; color: var(--text-secondary);
  transition: color .15s ease;
  position: relative; z-index: 2;
}
.hero__img-cta:hover { color: var(--accent); }

.hero__visual { position: relative; }
.hero__visual::before {
  content: ""; position: absolute; inset: -8%;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 70%);
  filter: blur(8px); z-index: 0;
}
.hero__visual img {
  position: relative; z-index: 1; border-radius: 28px;
  transform: rotate(2.5deg);
  box-shadow: var(--shadow-lg);
  transition: transform .5s ease;
}
.hero__visual:hover img { transform: rotate(0deg) scale(1.015); }

@media (max-width: 900px) {
  .hero { padding-top: 36px; }
  .hero__grid { grid-template-columns: 1fr; gap: 34px; }
  .hero__visual { max-width: 420px; margin: 0 auto; }
}

/* ── 2 · How it works ───────────────────────────────────────────────── */
.how { padding: 84px 0 70px; background: var(--bg-alt); }
.how__head { text-align: center; max-width: 620px; margin: 0 auto 54px; }
.eyebrow {
  font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.how__title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 900; letter-spacing: -0.02em; margin: 0 0 12px; }
.how__sub { color: var(--text-secondary); font-size: 1.08rem; margin: 0; }

.how__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step {
  position: relative; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px 26px; box-shadow: var(--shadow);
}
.step__num {
  position: absolute; top: -18px; left: 22px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: var(--accent-on);
  display: grid; place-items: center; font-weight: 900; font-size: 1.05rem;
  box-shadow: 0 4px 14px var(--accent-soft);
}
.step__title { font-size: 1.18rem; font-weight: 800; margin: 8px 0 8px; letter-spacing: -0.01em; }
.step__body { font-size: .95rem; color: var(--text-secondary); margin: 0 0 18px; }
@media (max-width: 900px) { .how__steps { grid-template-columns: 1fr; gap: 34px; } }

/* step example card — GameCard face (.gcf from gallery.css), uniform width */
.step__card { max-width: 290px; margin: 0 auto; }
.step__card .gcf { height: auto; }
.step:hover .step__card .gcf { transform: translateY(-4px) rotate(-1deg); }

/* locked / unlock interaction */
.lockwrap { position: relative; }
.lockwrap .step__card .gcf { filter: saturate(.55); }
.lock-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: rgba(10, 8, 8, .55); border-radius: 14px;
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  max-width: 290px; margin: 0 auto;
  transition: opacity .5s ease;
}
.lock-overlay .padlock { width: 44px; height: 44px; object-fit: contain; }
.lock-overlay .lock-label { color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.mechanic__done-btn {
  background: var(--task-gold); color: #131110;
  font-weight: 800; font-size: .88rem; border: none; border-radius: 999px;
  padding: 10px 22px; cursor: pointer;
  box-shadow: 0 4px 16px rgba(200,150,42,.45);
  transition: transform .15s ease;
}
.mechanic__done-btn:hover { transform: scale(1.05); }
.lockwrap.is-open .lock-overlay { opacity: 0; pointer-events: none; }
@keyframes unlock-pop {
  0% { transform: scale(1); } 40% { transform: scale(1.06) rotate(1.5deg); } 100% { transform: scale(1); }
}
.lockwrap.is-open .step__card .gcf {
  filter: none;
  animation: unlock-pop .6s ease;
  box-shadow: 0 0 0 3px var(--task-gold), 0 14px 40px rgba(200,150,42,.35);
}
.step__after { display: none; margin-top: 14px; font-size: .9rem; font-weight: 700; color: var(--accent); }
.lockwrap.is-open ~ .step__after, .step.is-open .step__after { display: block; }

.how__cta { text-align: center; margin-top: 52px; }
.how__cta .sub { display: block; margin-top: 12px; font-size: .85rem; color: var(--text-muted); }

/* ── Quiz + result cards sections ───────────────────────────────────── */
.quiz, .gallery { padding: 84px 0 70px; }
.quiz__head, .gallery__head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.quiz__head h2, .gallery__head h2, .ctypes__head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 900;
  letter-spacing: -0.02em; margin: 0 0 10px;
}

/* ── Card types ─────────────────────────────────────────────────────── */
.ctypes { padding: 84px 0 70px; background: var(--bg-alt); }
.ctypes__head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.ctgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ctcell {
  display: flex; flex-direction: column; gap: 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow);
}
.ctcell__tag {
  font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.ctcell__label { font-size: 1.18rem; font-weight: 900; letter-spacing: -0.01em; margin: 4px 0 8px; }
.ctcell__mark {
  font-size: .62em;
  font-weight: 900;
  vertical-align: super;
  line-height: 0;
  margin-left: 1px;
  color: var(--wild-red);
}
.ctcell__blurb { font-size: .9rem; color: var(--text-secondary); margin: 0; }
/* Line up the four example cards: uniform blurb block + a fixed, identical card
   height so every face starts and ends at the same line across the row. */
.ctcell__copy { min-height: 200px; }
.ctcell__card { margin-top: 0; }
.ctcell__card .gcf { width: 100%; box-sizing: border-box; height: 310px; }
.ctcell__note {
  margin: 10px auto 0;
  max-width: var(--gcf-w);
  text-align: center;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--wild-red);
}
.ctypes__warn {
  margin: 28px auto 0; max-width: 520px; text-align: center;
  background: var(--surface); border: 1.5px solid var(--wild-red); border-radius: 14px;
  padding: 14px 20px; font-size: .9rem; font-weight: 700;
}
@media (max-width: 960px) { .ctgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ctgrid { grid-template-columns: 1fr; } }

/* ── FAQ section (last before footer) ───────────────────────────────── */
.faqsec { padding: 70px 0 30px; }

/* ── The rest (privacy + get) ───────────────────────────────────────── */
.rest { padding: 84px 0 40px; }
.rest__head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.rest__title { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 900; letter-spacing: -0.02em; margin: 0 0 10px; }

.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 64px; }
.trust__item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 22px;
}
.trust__icon { margin-bottom: 10px; }
.trust__icon img { width: 34px; height: 34px; object-fit: contain; }
.trust__head { font-weight: 800; font-size: 1rem; margin: 0 0 6px; }
.trust__body { font-size: .9rem; color: var(--text-secondary); margin: 0; }
@media (max-width: 820px) { .trust { grid-template-columns: 1fr; } }

.faq { max-width: 720px; margin: 0 auto 64px; }
.faq h3 { text-align: center; font-size: 1.4rem; font-weight: 900; margin: 0 0 22px; }
.faq details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 0 20px; margin-bottom: 10px;
}
.faq summary {
  cursor: pointer; list-style: none; font-weight: 700; font-size: .98rem;
  padding: 16px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; font-weight: 400; color: var(--accent); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; font-size: .93rem; color: var(--text-secondary); }

/* founding offer */
.founding {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1.5px solid var(--accent);
  border-radius: 24px; padding: 46px 40px;
  text-align: center; box-shadow: var(--shadow-lg);
  margin-bottom: 56px;
}
.founding::before {
  content: ""; position: absolute; inset: -40% -20% auto;
  height: 80%; background: radial-gradient(closest-side, var(--accent-soft), transparent 75%);
  pointer-events: none;
}
.founding > * { position: relative; }
.founding__title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; letter-spacing: -0.02em; margin: 6px 0 10px; }
.founding__sub { color: var(--text-secondary); max-width: 36em; margin: 0 auto 26px; font-size: 1.02rem; }
.founding__cta-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin-bottom: 20px; }

.store-badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--text); color: var(--bg);
  border-radius: 12px; padding: 9px 18px;
}
.store-badge span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.store-tiny { font-size: .62rem; font-weight: 600; letter-spacing: .04em; }
.store-name { font-size: .95rem; font-weight: 800; }

.footer__signup { display: flex; gap: 8px; justify-content: center; max-width: 420px; margin: 0 auto; }
.footer__signup input {
  flex: 1; min-width: 0; border: 1.5px solid var(--border); border-radius: 999px;
  background: var(--bg); color: var(--text);
  padding: 12px 18px; font-family: var(--font-app); font-size: .95rem; outline: none;
}
.footer__signup input:focus { border-color: var(--accent); }
.footer__signup button {
  border: none; border-radius: 999px; background: var(--accent); color: var(--accent-on);
  font-weight: 800; font-size: .9rem; padding: 12px 22px; cursor: pointer; font-family: var(--font-app);
}
.signup-note { font-size: .8rem; color: var(--text-muted); margin-top: 10px; }

/* partner cross-link */
.cross {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 28px; margin-bottom: 64px;
}
.cross p { margin: 0; font-weight: 600; }
.cross__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* footer */
.footer { border-top: 1px solid var(--border); padding: 28px 0 90px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.footer__brand { display: flex; align-items: center; gap: 9px; font-weight: 900; }
.footer__brand img { width: 26px; height: 26px; }
.footer__legal, .footer__legal a { font-size: .82rem; color: var(--text-muted); }
.footer__legal a:hover { color: var(--accent); }

/* ── Sticky mobile CTA bar ──────────────────────────────────────────── */
.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  transform: translateY(110%); transition: transform .35s ease;
}
.stickybar.is-visible { transform: translateY(0); }
.stickybar__text { font-size: .85rem; font-weight: 700; }
.stickybar__text small { display: block; font-weight: 500; color: var(--text-muted); }
.stickybar .btn { padding: 12px 24px; font-size: .92rem; flex: none; }
@media (min-width: 901px) { .stickybar { display: none; } }

/* ── Scroll reveal ──────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn-pulse { animation: none; }
}
