/* ============================================================================
   Brain Unlock — marketing site
   Warm, calm, premium iOS-utility aesthetic: cream paper, indigo + gold
   accents from the app, SF-family type, real app UI recreated in CSS.
   No JS. No external fonts. No tracking.
   ========================================================================== */

:root {
  /* Warm neutrals */
  --ink: #241e18;
  --ink-soft: #5e574e;
  --ink-faint: #8c857a;
  --cream: #fbfaf7;
  --cream-2: #f4eee3;
  --paper: #ffffff;
  --line: #ece5d8;
  --line-strong: #ddd4c4;

  /* Brand accents (from the app) */
  --indigo: #4f46e5;
  --indigo-deep: #4338ca;
  --indigo-tint: #eef2ff;
  --gold: #f59e0b;
  --gold-soft: #fdf1d6;
  --success: #16a34a;
  --success-tint: #e7f6ec;

  /* Warm dark band */
  --espresso: #211c16;
  --espresso-2: #2c261d;
  --espresso-line: rgba(255, 250, 240, 0.12);

  --maxw: 1140px;
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --r-xl: 36px;
  --pill: 999px;

  --sans: -apple-system, "SF Pro Display", "SF Pro Text", system-ui, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;

  --shadow-sm: 0 2px 6px rgba(46, 34, 16, 0.06);
  --shadow: 0 22px 48px -26px rgba(46, 34, 16, 0.38);
  --shadow-lg: 0 50px 90px -36px rgba(46, 34, 16, 0.5);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.08; font-weight: 700; }
h2 { font-size: clamp(1.7rem, 1.1rem + 2.6vw, 2.75rem); }
h3 { font-size: 1.18rem; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 0.85rem;
}
.kicker-light { color: var(--gold); }

/* ───────────────────────────── Nav ───────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.85rem clamp(1.1rem, 4vw, 2.5rem);
  background: rgba(251, 250, 247, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; letter-spacing: -0.02em; }
.brand-icon { border-radius: 9px; box-shadow: var(--shadow-sm); }
.brand-name { font-size: 1.06rem; }
.nav-links { display: flex; gap: clamp(0.9rem, 2.5vw, 1.9rem); align-items: center; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); transition: color 0.18s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[href^="#"] { display: none; }
@media (min-width: 620px) { .nav-links a[href^="#"] { display: inline; } }

/* ───────────────────────────── Buttons / chips ───────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--pill);
  font-size: 0.98rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary { background: var(--indigo); color: #fff; box-shadow: 0 14px 30px -12px rgba(79, 70, 229, 0.6); }
.btn-primary:hover { transform: translateY(-2px); background: var(--indigo-deep); }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--ink-faint); }
.btn-soon { cursor: default; }
.btn-soon:hover { transform: none; background: var(--indigo); }
.soon-tag { font-style: normal; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; background: rgba(255, 255, 255, 0.22); padding: 0.12rem 0.45rem; border-radius: var(--pill); }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.7rem; }
.cta-center { justify-content: center; }

.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.7rem; }
.chips li {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.42rem 0.85rem;
  border-radius: var(--pill);
  box-shadow: var(--shadow-sm);
}

/* ───────────────────────────── Hero ──────────────────────────── */
.hero { position: relative; max-width: var(--maxw); margin: 0 auto; padding: clamp(2.5rem, 6vw, 5rem) clamp(1.1rem, 4vw, 2.5rem) clamp(3rem, 7vw, 5.5rem); overflow: hidden; }
.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 560px;
  background:
    radial-gradient(40% 60% at 78% 18%, rgba(79, 70, 229, 0.16), transparent 70%),
    radial-gradient(38% 55% at 12% 30%, rgba(245, 158, 11, 0.14), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 3.5rem);
  align-items: center;
}
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.4rem 0.85rem;
  border-radius: var(--pill);
  box-shadow: var(--shadow-sm);
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px var(--success-tint); }

.hero h1 {
  font-size: clamp(2.5rem, 1.2rem + 5.6vw, 4.4rem);
  margin: 1.1rem 0 0;
  letter-spacing: -0.035em;
}
.lede { font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem); color: var(--ink-soft); margin-top: 1.1rem; max-width: 33ch; }

/* ── iPhone mockups ── */
.hero-stage { position: relative; display: flex; justify-content: center; align-items: center; min-height: 540px; }
.phone {
  width: 256px;
  aspect-ratio: 256 / 532;
  background: #0d0b09;
  border-radius: 46px;
  padding: 9px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}
.phone .screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; display: flex; flex-direction: column; }
.phone::before {
  content: "";
  position: absolute;
  top: 17px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 22px; border-radius: var(--pill);
  background: #0d0b09; z-index: 3;
}
.phone-front { position: relative; z-index: 2; }
.phone-back {
  position: absolute;
  z-index: 1;
  transform: translate(58px, -42px) rotate(7deg) scale(0.9);
  filter: saturate(0.92);
  opacity: 0.96;
}
@media (max-width: 560px) {
  .hero-stage { min-height: 0; }
  .phone { width: min(74vw, 252px); }
  .phone-back { display: none; }
}

/* Thinking-Check screen (recreates the app) */
.screen-check { background: var(--cream); padding: 46px 16px 18px; gap: 12px; }
.check-top { display: flex; align-items: center; justify-content: space-between; }
.check-eyebrow { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.check-progress { font-size: 0.7rem; font-weight: 800; color: var(--indigo); background: var(--indigo-tint); border: 1px solid rgba(79, 70, 229, 0.25); padding: 0.16rem 0.5rem; border-radius: var(--pill); }
.check-bar { height: 5px; border-radius: var(--pill); background: var(--line); overflow: hidden; }
.check-bar span { display: block; width: 40%; height: 100%; background: var(--indigo); border-radius: var(--pill); }
.tag-row { display: flex; gap: 6px; }
.tag { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.04em; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line); padding: 0.2rem 0.5rem; border-radius: var(--pill); }
.tag-cat { color: var(--indigo); background: var(--indigo-tint); border-color: rgba(79, 70, 229, 0.25); }
.q-card {
  background: var(--paper);
  border: 2.5px solid var(--indigo);
  border-radius: 22px;
  padding: 16px 14px 18px;
  box-shadow: 5px 5px 0 0 var(--indigo);
  margin-top: 2px;
}
.q-label { font-size: 0.56rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-faint); }
.q-text { font-size: 1.32rem; font-weight: 800; letter-spacing: -0.02em; margin-top: 6px; }
.answers { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.ans {
  display: flex; align-items: center; gap: 10px;
  font: inherit; font-size: 0.92rem; font-weight: 700; color: var(--ink);
  text-align: left;
  background: var(--paper);
  border: 2.5px solid var(--indigo);
  border-radius: var(--pill);
  padding: 7px 8px;
  box-shadow: 0 5px 12px -8px rgba(46, 34, 16, 0.4);
}
.ans .bub { width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: #1c1c1e; display: grid; place-items: center; font-size: 0.78rem; font-weight: 800; flex: none; }
.ans-correct { border-color: var(--success); background: var(--success-tint); color: #0f7a3d; }
.ans-correct .bub { background: var(--success); color: #fff; }

/* Shield screen (back phone) */
.screen-shield { background: var(--cream-2); align-items: center; justify-content: center; text-align: center; padding: 26px 20px; gap: 4px; }
.shield-glyph { width: 70px; height: 70px; border-radius: 22px; background: var(--indigo-tint); color: var(--indigo); display: grid; place-items: center; margin-bottom: 12px; }
.shield-title { font-size: 1.15rem; font-weight: 800; }
.shield-sub { font-size: 0.78rem; color: var(--ink-soft); margin-top: 6px; }
.shield-btn { margin-top: 16px; font-size: 0.82rem; font-weight: 700; color: #fff; background: var(--indigo); padding: 0.55rem 1.4rem; border-radius: var(--pill); }

/* ───────────────────────────── Sections ──────────────────────── */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 7vw, 5.5rem) clamp(1.1rem, 4vw, 2.5rem); }
.section-soft { max-width: none; background: var(--cream-2); border-block: 1px solid var(--line); }
.section-soft > * { max-width: var(--maxw); margin-inline: auto; }
.section-head { max-width: 40rem; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section-head p { color: var(--ink-soft); margin-top: 0.9rem; font-size: 1.05rem; }

/* Flow */
.flow { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 560px) { .flow { grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px) { .flow { grid-template-columns: repeat(4, 1fr); } }
.flow-step { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem 1.3rem 1.4rem; box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s; }
.flow-step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.flow-ix { position: absolute; top: 1.2rem; right: 1.3rem; font-size: 0.8rem; font-weight: 800; color: var(--line-strong); }
.flow-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--indigo-tint); color: var(--indigo); margin-bottom: 1rem; }
.flow-ic svg { width: 24px; height: 24px; }
.flow-step h3 { margin-bottom: 0.4rem; }
.flow-step p { font-size: 0.95rem; color: var(--ink-soft); }

/* Challenges */
.challenge-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 620px) { .challenge-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .challenge-grid { grid-template-columns: repeat(4, 1fr); } }
.ch-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.1rem 1.1rem 1.4rem; box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s; }
.ch-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ch-art { height: 116px; border-radius: var(--r); background: var(--cream); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 1rem; overflow: hidden; }
.ch-card h3 { margin-bottom: 0.4rem; }
.ch-card p { font-size: 0.92rem; color: var(--ink-soft); }
/* challenge art bits */
.ch-pill { font-size: 1.05rem; font-weight: 800; color: var(--ink); background: var(--paper); border: 2px solid var(--indigo); border-radius: var(--pill); padding: 0.35rem 0.9rem; box-shadow: 3px 3px 0 0 var(--indigo); }
.ch-art-think { flex-direction: column; }
.ch-dots { display: flex; gap: 6px; margin-top: 12px; }
.ch-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.ch-dots i.on { background: var(--success); }
.setcard { width: 34px; height: 50px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.setcard svg { width: 20px; height: 20px; }
.ch-art-path { padding: 8px 12px; }
.ch-art-memory { display: grid; grid-template-columns: repeat(3, 26px); grid-auto-rows: 26px; gap: 7px; }
.mtile { border-radius: 7px; background: var(--paper); border: 1px solid var(--line); }
.mtile.on { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }

/* Why (warm dark band) */
.why { max-width: none; background: var(--espresso); color: #f6f1e8; }
.why-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: clamp(1.6rem, 4vw, 3rem); }
@media (min-width: 880px) { .why-inner { grid-template-columns: 0.9fr 1.1fr; align-items: start; } }
.why-head h2 { color: #fdfbf6; }
.why-head p { color: rgba(246, 241, 232, 0.72); margin-top: 1rem; font-size: 1.05rem; }
.why-list { display: grid; gap: 0.7rem; }
.why-list li { background: var(--espresso-2); border: 1px solid var(--espresso-line); border-radius: var(--r); padding: 1.05rem 1.2rem; font-size: 0.97rem; color: rgba(246, 241, 232, 0.78); }
.why-list strong { display: block; color: #fdfbf6; font-weight: 700; margin-bottom: 0.2rem; }

/* Trust */
.trust { display: grid; grid-template-columns: 1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
@media (min-width: 860px) { .trust { grid-template-columns: 0.85fr 1.15fr; } }
.trust-head p { color: var(--ink-soft); margin-top: 0.9rem; font-size: 1.05rem; }
.trust-links { display: flex; gap: 0.7rem; margin-top: 1.4rem; flex-wrap: wrap; }
.trust-list { display: grid; grid-template-columns: 1fr; gap: 0.7rem; }
@media (min-width: 560px) { .trust-list { grid-template-columns: 1fr 1fr; } }
.trust-list li { display: flex; align-items: center; gap: 0.7rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 0.9rem 1rem; font-size: 0.95rem; font-weight: 500; box-shadow: var(--shadow-sm); }
.trust-list svg { width: 20px; height: 20px; flex: none; color: var(--success); background: var(--success-tint); border-radius: 50%; padding: 3px; }

/* Closing */
.closing { text-align: center; }
.closing-icon { margin: 0 auto 1.2rem; border-radius: 20px; box-shadow: var(--shadow); }
.closing p { color: var(--ink-soft); margin-top: 0.8rem; font-size: 1.08rem; }

/* ───────────────────────────── Footer ────────────────────────── */
.footer { max-width: var(--maxw); margin: 0 auto; padding: 2.2rem clamp(1.1rem, 4vw, 2.5rem) 2.6rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.8rem; }
.footer-brand { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; }
.footer-brand img { border-radius: 7px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.footer-links a { font-size: 0.92rem; color: var(--ink-soft); transition: color 0.18s; }
.footer-links a:hover { color: var(--ink); }
.footer-copy { font-size: 0.85rem; color: var(--ink-faint); margin-left: auto; }

/* ───────────────────────────── Legal pages ───────────────────── */
.legal { max-width: 46rem; margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) clamp(1.1rem, 4vw, 2rem) 4rem; }
.legal .updated { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--indigo); margin: 0 0 0.7rem; }
.legal h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 2.9rem); letter-spacing: -0.03em; }
.legal .lead { font-size: 1.12rem; color: var(--ink-soft); margin: 1rem 0 2.2rem; }
.legal h2 { font-size: 1.3rem; margin: 2rem 0 0.6rem; }
.legal p { color: var(--ink-soft); margin: 0.6rem 0; }
.legal ul { display: grid; gap: 0.5rem; margin: 0.8rem 0; }
.legal ul li { position: relative; padding-left: 1.3rem; color: var(--ink-soft); }
.legal ul li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.legal a { color: var(--indigo); font-weight: 600; }
.legal a:hover { text-decoration: underline; }
.support-callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem 1.5rem; margin: 1.6rem 0; box-shadow: var(--shadow-sm); }
.support-callout h2 { margin: 0.2rem 0 0; color: var(--indigo); }
.support-callout p { margin-top: 0.5rem; }
.mini-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }

/* ───────────────────────────── Motion ────────────────────────── */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.reveal { animation: rise 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both; animation-delay: var(--d, 0ms); }
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
  html { scroll-behavior: auto; }
  .btn:hover, .flow-step:hover, .ch-card:hover { transform: none; }
}
