/* Solo funnel styles. Mobile first.
 * Palette and fonts copied from css/aeo-rex-2026.css (the 2026 redesign,
 * taken from design_handoff_aeo_rex_site). Copied, not linked, so this
 * page stays one small stylesheet.
 * One action colour (--act), used only on buttons. */
:root {
  --bg: #f7f9fc;
  --paper: #fff;
  --alt: #f1f4f8;
  --ink: #1c2331;
  --body: #4a5568;
  --muted: #656f7d;
  --line: #e1e6ee;
  --line-2: #d5dce6;
  --act: #0d7590;       /* redesign --accent, 5.30:1 with white */
  --act-ink: #fff;
  --act-tint: #e6f7fc;
  --serif: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif; /* redesign --display */
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(18px, 5vw, 40px);
  --max: 680px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); }

:focus-visible { outline: 3px solid var(--act); outline-offset: 3px; }

/* Header: logo only, links home. No navigation. */
.solo-top {
  padding: 14px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.solo-logo {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.03em;
  text-decoration: none;
  color: var(--ink);
}

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.sec { padding-block: 40px; }
.sec + .sec { border-top: 1px solid var(--line); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.05;
  margin: 0 0 14px;
  text-wrap: pretty;
}
h1 { font-size: clamp(30px, 8vw, 50px); }
h2 { font-size: clamp(25px, 6vw, 36px); }
h3 { font-size: 21px; }
p { margin: 0 0 14px; color: var(--body); text-wrap: pretty; }
.small { font-size: 15px; color: var(--muted); }

/* Hero is kept short so the check sits within one scroll on a phone. */
.hero { padding-block: 28px 32px; }
.hero .sub { font-size: 19px; }

/* The one action colour. Thumb sized: at least 48px tall. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 24px;
  border: 0;
  border-radius: 8px;
  background: var(--act);
  color: var(--act-ink);
  font: 600 17px/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn-block { display: flex; width: 100%; }

/* Secondary actions are plain links, never a second button colour. */
.link-quiet {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--muted);
  font-size: 15px;
}

/* Check container (filled by check.js) */
.check {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 18px;
}

.check .card { display: block; }
.check h3 { font-size: clamp(22px, 5.6vw, 27px); margin-bottom: 18px; }
.check h3:focus { outline: none; }
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.progress {
  height: 6px;
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 16px;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--ink);
  transition: width .3s ease;
}

/* Answer options are choices, not actions: outlined, never the action colour. */
.opts { display: grid; gap: 10px; margin-bottom: 6px; }
.opt {
  min-height: 56px;
  padding: 12px 16px;
  text-align: left;
  font: 500 17px/1.3 var(--sans);
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--line-2);
  border-radius: 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.opt:hover { border-color: var(--muted); }
.opt.is-picked { border-color: var(--ink); background: var(--alt); }
.check .link-quiet {
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--sans);
  text-decoration: underline;
  cursor: pointer;
}
.stack { margin-bottom: 6px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  font: 400 17px/1.3 var(--sans); /* 16px+ stops iOS zooming in */
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--line-2);
  border-radius: 12px;
}
.field input:focus { border-color: var(--ink); outline: none; }
/* Checkbox row: the whole row is the tap target, at least 48px tall. */
.tick {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-height: 48px;
  padding: 10px 0;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--body);
  cursor: pointer;
}
.tick input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--ink);
}
.field-error { color: #a4262c; font-size: 15px; min-height: 0; margin: 0 0 10px; }
.field-error:empty { display: none; }

/* Honeypot: off screen, not display:none (some bots skip hidden fields). */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Result page */
.score-num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(72px, 22vw, 120px);
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--ink);
  margin: 0 0 8px;
}
.score-of { font-size: .32em; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.band span {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--alt);
  border: 1px solid var(--line-2);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
ol.gaps { list-style: none; counter-reset: gap; padding: 0; margin: 0 0 16px; }
ol.gaps li {
  counter-increment: gap;
  position: relative;
  padding: 16px 0 16px 44px;
  border-top: 1px solid var(--line);
}
ol.gaps li::before {
  content: counter(gap);
  position: absolute;
  left: 0;
  top: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  line-height: 30px;
  text-align: center;
}
ol.gaps strong { display: block; font-size: 18px; color: var(--ink); }
ol.gaps span { display: block; color: var(--body); }
#together { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.waitlist-form { margin-top: 4px; }
.done { font-weight: 600; color: var(--ink); }
#in-inbox { margin-top: 14px; }
[hidden] { display: none !important; }

/* Hero chat (decorative) */
.chat {
  margin-top: 22px;
  padding: 14px 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: opacity .4s ease;
}
.chat.is-fading { opacity: 0; }
.chat-head {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.msg {
  margin: 0 0 8px;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 16px;
  line-height: 1.4;
  max-width: 88%;
  min-height: 1.4em;
}
.msg-user { margin-left: auto; background: var(--alt); color: var(--ink); border-bottom-right-radius: 4px; }
.msg-bot { background: var(--ink); color: #fff; border-bottom-left-radius: 4px; }
.msg-bot strong { color: #fff; }
.msg-bot.is-thinking::after { content: "..."; letter-spacing: .15em; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .3; } }

.hero-video {
  width: 100%;
  margin-top: 18px;
  border-radius: 14px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--alt);
}

/* Scroll reveals: only sections below the fold, only when motion.js runs. */
.reveal.is-pending { opacity: 0; transform: translateY(16px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .3s ease, transform .3s ease; }

/* Before and after card */
.flip { perspective: 800px; margin: 18px 0 4px; max-width: 320px; }
.flip-inner {
  position: relative;
  height: 96px;
  transform-style: preserve-3d;
  transition: transform .6s ease;
}
.flip.is-flipped .flip-inner { transform: rotateY(180deg); }
.flip-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 18px;
  border-radius: 14px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.flip-face span { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.flip-face strong { font-family: var(--serif); font-size: 24px; letter-spacing: -.02em; }
.flip-front { background: var(--alt); border: 1px solid var(--line-2); color: var(--muted); }
.flip-front strong { color: var(--body); }
.flip-back { background: var(--ink); color: #aab6c8; transform: rotateY(180deg); }
.flip-back strong { color: #fff; }
.flip-note { margin-top: 0; }

/* About */
.portrait { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 16px; }
.intro { margin: 20px 0 0; }
.intro video { width: 100%; border-radius: 14px; background: var(--ink); }

/* FAQ: tap to open */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 12px 0;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; padding-left: 12px; font-size: 22px; color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; }

ul.ticks { padding-left: 1.2em; margin: 0 0 14px; color: var(--body); }
ul.ticks li { margin-bottom: 6px; }

.faq dt { font-weight: 600; margin-top: 18px; }
.faq dd { margin: 6px 0 0; color: var(--body); }

.solo-foot {
  padding: 28px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}
.solo-foot a { color: var(--muted); }

@media (min-width: 720px) {
  body { font-size: 18px; }
  .sec { padding-block: 64px; }
  .hero { padding-block: 56px 48px; }
  .check { padding: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Before and after shown side by side, no flip. */
  .flip-inner { height: auto; transform: none; display: grid; gap: 8px; }
  .flip-face { position: static; min-height: 80px; backface-visibility: visible; transform: none; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Launch list forms: hidden unless the page opens on #join-pack or #join-together. */
.join { display: none; }
.join:target { display: block; }
.join .check p { margin-bottom: 16px; }
.join + .sec { border-top: 1px solid var(--line); }
