/*
 * RekAi marketing site.
 *
 * The palette is lifted from the app itself (mobile/src/theme.ts) rather than
 * chosen again here — a visitor who downloads after reading this page should
 * recognise what opens. Same background, same accent, same surfaces.
 */

:root {
  /* Tells the browser to render native controls — select menus, scrollbars,
     form focus rings — in their dark variants. Without it a dark page gets a
     white dropdown. */
  color-scheme: dark;

  --bg: #0b0d12;
  --surface: #141822;
  --raised: #1c2230;
  --border: #272e3d;
  --text: #f2f5fa;
  --muted: #8b95a9;
  --accent: #7c5cff;
  --accent-soft: #2a2247;
  --danger: #ff5c7a;
  --work: #31d0aa;
  --gold: #f5c451;

  --container: 1120px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.6rem, 1.35rem + 1.2vw, 2.25rem);
  --step-3: clamp(2.1rem, 1.6rem + 2.4vw, 3.5rem);
  --step-4: clamp(2.6rem, 1.8rem + 3.6vw, 4.5rem);
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 800;
}

p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
  font-weight: 700;
}
.skip:focus { left: 0; }

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 18, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--border); }

.site-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  font-size: 1.1rem;
}
.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: var(--step--1);
  font-weight: 600;
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--text); }

@media (max-width: 760px) {
  .site-nav { display: none; }
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: var(--step--1);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #8f73ff; }
.btn-ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--muted); }
/* The only irreversible button on the site, and the only one that looks it. */
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #ff7590; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.signin-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* A button that has to sit inside a sentence, so it is styled as the link it
   behaves like rather than dropped in as a button that breaks the line. */
.linklike {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
}

/* Store badges. Built here rather than pulled from a CDN so the page has no
   third-party requests; swap in Apple's and Google's official artwork before
   launch if you want to follow their brand guidelines to the letter. */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px 11px 18px;
  border-radius: 12px;
  background: var(--text);
  color: #0b0d12;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.store-badge:hover { transform: translateY(-2px); opacity: 0.92; }
.store-badge svg { width: 24px; height: 24px; flex: none; fill: currentColor; }
.store-badge span { display: block; line-height: 1.15; }
.store-badge .small {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  opacity: 0.72;
  font-weight: 700;
}
.store-badge .big { font-size: 1.02rem; font-weight: 800; letter-spacing: -0.01em; }

/* -------------------------------------------------------------- sections */

section { padding-block: clamp(64px, 9vw, 120px); }

.eyebrow {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-head { max-width: 620px; margin-bottom: 52px; }
.section-head h2 { font-size: var(--step-2); }
.section-head p {
  color: var(--muted);
  font-size: var(--step-1);
  margin-top: 16px;
  line-height: 1.5;
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(48px, 7vw, 88px);
}
.hero::before {
  content: '';
  position: absolute;
  inset: -40% 0 auto -10%;
  height: 780px;
  background:
    radial-gradient(48% 46% at 22% 34%, rgba(124, 92, 255, 0.28), transparent 68%),
    radial-gradient(38% 40% at 78% 18%, rgba(49, 208, 170, 0.14), transparent 70%);
  pointer-events: none;
}
.hero > .container { position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  /* Capped a little under --step-4 so "remembers you." fits the column and the
     headline sits in two lines instead of stranding "you." on a third. */
  font-size: clamp(2.6rem, 1.8rem + 3vw, 4rem);
  max-width: 15ch;
  text-wrap: balance;
}
.hero .lede {
  color: var(--muted);
  font-size: var(--step-1);
  margin-top: 22px;
  max-width: 44ch;
  line-height: 1.5;
}
/* Both ways in, straight under the headline: text the coach, or download.
   They used to sit below the paragraph, which put the store badges at the
   very bottom of a phone screen and the texting number two screens down. */
.hero-cta { margin-top: 26px; max-width: 34rem; }
.hero-text-btn {
  font-size: var(--step-0);
  padding: 15px 24px;
  box-shadow: 0 10px 30px -10px rgba(124, 92, 255, 0.7);
}
.hero-text-btn svg { width: 20px; height: 20px; flex: none; }
.hero-text-btn .nowrap { white-space: nowrap; }
@media (max-width: 380px) { .hero-text-btn { font-size: 0.94rem; padding: 14px 16px; gap: 8px; } }
.hero-fine {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}
.hero-fine a { color: var(--muted); }
/* The QR code beside the text button, for a visitor on a computer, whose
   phone is the thing that sends the text. */
.hero-cta { max-width: 40rem; }
.hero-text-row { display: flex; align-items: center; gap: 20px; }
.hero-text-main { flex: 1; min-width: 0; }
.hero-qr { margin: 0; flex: none; text-align: center; }
.hero-qr img { display: block; width: 112px; height: 112px; background: #fff; border-radius: 12px; padding: 7px; }
.hero-qr figcaption { margin-top: 6px; color: var(--muted); font-size: 0.72rem; font-weight: 600; }
@media (max-width: 760px) { .hero-qr { display: none; } }
.hero .stores { margin-top: 18px; }
.hero .lede { margin-top: 28px; }

.hero-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: var(--step--1);
}

/* On a phone: the text button full width, the two badges side by side, and
   less air above the headline, so all three land on the first screen. */
@media (max-width: 760px) {
  .hero { padding-top: 28px; }
  .hero h1 { font-size: clamp(2.1rem, 1.5rem + 3vw, 2.6rem); }
  .hero-cta { margin-top: 20px; }
  .hero-text-btn { width: 100%; }
  .hero-stores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-stores .store-badge { padding: 10px 12px; gap: 9px; justify-content: center; }
  .hero-stores .store-badge .big { font-size: 0.95rem; }
  .hero-stores .store-badge .small { font-size: 0.58rem; letter-spacing: 0.04em; white-space: nowrap; }
}

/* Maya, in front of the app she runs. The art points right, so it is
   mirrored to point at the buttons in the left column. */
.hero-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.coach-bubble {
  position: relative;
  z-index: 3;
  margin: 0;
  max-width: 21rem;
  padding: 14px 18px;
  background: var(--raised);
  border: 1px solid var(--accent);
  border-radius: 18px;
  box-shadow: 0 18px 40px -18px rgba(124, 92, 255, 0.6);
  font-size: var(--step-0);
  line-height: 1.45;
}
.coach-bubble strong { color: var(--text); white-space: nowrap; }
/* The tail, towards her face. */
.coach-bubble::after {
  content: '';
  position: absolute;
  left: 62%;
  bottom: -9px;
  width: 16px;
  height: 16px;
  background: var(--raised);
  border-right: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  transform: rotate(45deg);
}
.hero-coach {
  position: relative;
  z-index: 2;
  display: block;
  height: clamp(420px, 40vw, 540px);
  width: auto;
  margin-top: 14px;
  margin-left: clamp(0px, 4vw, 56px);
  transform: scaleX(-1);
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55));
}
.hero-stage .hero-phone {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 40px;
  transform: rotate(7deg);
  opacity: 0.55;
}
.hero-stage .phone-lg { width: clamp(170px, 16vw, 210px); }

@media (max-width: 900px) {
  /* One column, and the coach goes straight under the buttons rather than
     after the paragraph, so she is on the first screen with them. */
  .hero-grid { grid-template-columns: 1fr; row-gap: 0; }
  .hero-copy { display: contents; }
  .hero-stage { order: 1; margin-top: 28px; align-items: center; }
  .hero .lede { order: 2; }
  .hero h1 { max-width: none; }
  .coach-bubble { max-width: 24rem; }
  .hero-coach { height: clamp(340px, 70vw, 480px); margin-left: 0; margin-right: 34%; }
  .hero-stage .phone-lg { width: clamp(130px, 30vw, 190px); }
  .hero-stage .hero-phone { right: 4%; bottom: 20px; }
}

/* ----------------------------------------------------------- phone frame */

.phone {
  position: relative;
  width: min(300px, 76vw);
  aspect-ratio: 1320 / 2868;
  border-radius: 46px;
  padding: 9px;
  background: linear-gradient(160deg, #3a4258, #171b25 42%, #0d1016);
  box-shadow:
    0 2px 2px rgba(255, 255, 255, 0.07) inset,
    0 40px 80px -24px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}
/* No drawn notch: every screenshot already contains the device's own Dynamic
   Island, and a second one painted on top reads as a rendering fault. */
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 38px;
  background: var(--bg);
}
.phone-lg { width: min(340px, 82vw); }

/* ------------------------------------------------------------ trust strip */

.trust {
  border-block: 1px solid var(--border);
  padding-block: 28px;
}
.trust ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 44px;
  justify-content: center;
  color: var(--muted);
  font-size: var(--step--1);
  font-weight: 600;
}
.trust li { display: flex; align-items: center; gap: 10px; }
.trust li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--work);
  flex: none;
}

/* ----------------------------------------------------------------- steps */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  counter-reset: step;
}
.step {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.step::before {
  counter-increment: step;
  content: '0' counter(step);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 18px;
}
.step h3 { font-size: var(--step-1); }
.step p { color: var(--muted); margin-top: 12px; font-size: 0.96rem; }

/* -------------------------------------------------------------- features */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.feature + .feature { margin-top: clamp(64px, 9vw, 120px); }
.feature:nth-child(even) .feature-media { order: -1; }
.feature-media { display: flex; justify-content: center; }
.feature h3 { font-size: var(--step-2); }
.feature .body { color: var(--muted); margin-top: 18px; font-size: var(--step-1); line-height: 1.5; }

.points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.points li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.97rem;
}
.points li::before {
  content: '';
  margin-top: 8px;
  width: 14px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-media { order: 0; }
}

/* ---------------------------------------------------------------- memory */

/*
 * The "it remembers you" story, drawn with the app's own pieces — chat
 * bubbles, chips, a profile card — rather than an illustration. Every line in
 * it is what the app really says, so the picture cannot promise something the
 * product does not do.
 */
.memory {
  position: relative;
  overflow: hidden;
}
.memory::before {
  content: '';
  position: absolute;
  inset: 10% -10% auto;
  height: 520px;
  background: radial-gradient(40% 50% at 50% 50%, rgba(124, 92, 255, 0.16), transparent 70%);
  pointer-events: none;
}
.memory > .container { position: relative; }

.memory-story {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px;
  align-items: stretch;
}

.memory-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px 20px;
}
/* The arrow between panels: what was said becomes what is kept becomes how
   the next session opens. */
.memory-panel + .memory-panel::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 50%;
  width: 24px;
  height: 2px;
  background: var(--accent);
}
.memory-panel + .memory-panel::after {
  content: '';
  position: absolute;
  left: -16px;
  top: calc(50% - 5px);
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: rotate(45deg);
}

.memory-panel-card {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: 0 30px 60px -30px rgba(124, 92, 255, 0.55);
}

.memory-day {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.memory-panel-card .memory-day { color: var(--accent); }

.bubble {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.4;
}
.bubble-coach {
  align-self: flex-start;
  background: var(--raised);
  border-bottom-left-radius: 6px;
}
.bubble-you {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 6px;
}

.memory-card {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.memory-card li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  background: rgba(11, 13, 18, 0.45);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.memory-key { color: var(--muted); font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.memory-value { font-weight: 700; font-size: 0.92rem; text-align: right; }
.memory-value-care { color: var(--gold); }

.memory-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}
.chip-same {
  border-color: var(--work);
  color: var(--work);
  background: rgba(49, 208, 170, 0.1);
}

.memory-caption {
  margin-top: auto;
  padding-top: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}
.memory-panel-card .memory-caption { color: var(--text); }

.memory-points { margin-top: 56px; }

@media (max-width: 900px) {
  .memory-story { grid-template-columns: 1fr; gap: 40px; max-width: 460px; margin-inline: auto; }
  /* Stacked, the arrow points down. */
  .memory-panel + .memory-panel::before {
    left: calc(50% - 1px);
    top: -32px;
    width: 2px;
    height: 22px;
  }
  .memory-panel + .memory-panel::after {
    left: calc(50% - 5px);
    top: -16px;
    transform: rotate(135deg);
  }
}

/* --------------------------------------------------------------- honesty */

.honesty {
  background: var(--surface);
  border-block: 1px solid var(--border);
}
/* Two by two rather than auto-fit: four items across a 1080px container wrap
   three-then-one, which reads as a mistake rather than a layout. */
.honesty-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 44px;
  margin-top: 44px;
}
@media (max-width: 700px) {
  .honesty-grid { grid-template-columns: 1fr; }
}
.honesty-grid h3 { font-size: var(--step-1); }
.honesty-grid p { color: var(--muted); margin-top: 10px; font-size: 0.96rem; }
.honesty-grid > div { border-left: 2px solid var(--border); padding-left: 22px; }

/* --------------------------------------------------------------- pricing */

.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.plans { display: grid; gap: 16px; }
.plan {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px 26px;
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.plan.is-featured { border-color: var(--accent); background: var(--accent-soft); }
.plan h3 { font-size: var(--step-1); }
.plan .price { margin-left: auto; font-size: var(--step-1); font-weight: 800; }
.plan .note { flex-basis: 100%; color: var(--muted); font-size: 0.92rem; }
.tag {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--work);
  text-transform: uppercase;
}
.pricing-smallprint,
.smallprint { color: var(--muted); font-size: var(--step--1); margin-top: 22px; }

@media (max-width: 860px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-media { order: -1; display: flex; justify-content: center; }
}

/* ------------------------------------------------------------------- faq */

.faq { display: grid; gap: 2px; max-width: 800px; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 0 22px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  margin-left: auto;
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
}
.faq details[open] summary::after { content: '\2212'; }
.faq details p { color: var(--muted); padding-bottom: 22px; font-size: 0.97rem; }

/* --------------------------------------------------------------- contact */

.contact { background: var(--surface); border-top: 1px solid var(--border); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 72px);
}
.contact-grid aside p { color: var(--muted); margin-top: 16px; }
.contact-grid aside a { color: var(--text); }

form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: var(--step--1); font-weight: 700; }
.field input,
.field textarea,
.field select {
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  width: 100%;
  transition: border-color 0.15s ease;
}
.field input:hover,
.field textarea:hover,
.field select:hover { border-color: #333c50; }
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--accent); outline: none; }
.field textarea { min-height: 150px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* The honeypot. Off-screen rather than display:none, because some bots skip
   anything explicitly hidden and fill everything else. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  font-size: var(--step--1);
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: none;
}
.form-status.is-shown { display: block; }
.form-status.is-ok { border-color: var(--work); color: var(--work); }
.form-status.is-error { border-color: #ff5c7a; color: #ff5c7a; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 48px;
  color: var(--muted);
  font-size: var(--step--1);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  align-items: center;
}
.footer-grid nav { display: flex; flex-wrap: wrap; gap: 24px; margin-left: auto; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.footer-legal { flex-basis: 100%; margin-top: 8px; line-height: 1.7; }

/* ------------------------------------------------------------ legal pages */

.legal { padding-block: clamp(48px, 7vw, 88px); }
.legal .container { max-width: 760px; }
.legal h1 { font-size: var(--step-3); }
.legal .updated { color: var(--muted); margin-top: 14px; font-size: var(--step--1); }
.legal h2 {
  font-size: var(--step-1);
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.legal h3 { font-size: 1.05rem; margin-top: 28px; }
.legal p, .legal li { color: #c3cbda; margin-top: 14px; }
.legal ul { padding-left: 22px; }
.legal li { margin-top: 10px; }
.legal a { color: var(--accent); }
.legal strong { color: var(--text); }

.callout {
  border: 1px solid var(--gold);
  background: rgba(245, 196, 81, 0.07);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-top: 28px;
}
.callout p { color: var(--gold); margin-top: 0; font-size: 0.94rem; }

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-top: 32px;
}
.toc ol { margin: 10px 0 0; padding-left: 20px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--text); }

/* Text the coach ------------------------------------------------------- */
.text-coach { padding: 48px 0; }
.text-coach-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  background: linear-gradient(135deg, var(--accent-soft), var(--surface));
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.text-coach h2 { margin: 6px 0 12px; font-size: var(--step-2); }
.text-coach .lede { margin: 0 0 20px; color: var(--muted); max-width: 52ch; }
.text-coach .lede strong { color: var(--text); white-space: nowrap; }
.text-coach-fine { margin: 14px 0 0; color: var(--muted); font-size: var(--step--1); line-height: 1.5; max-width: 60ch; }
.text-coach-fine a { color: var(--muted); }
/* Maya texting, standing in the card's left edge. */
.text-coach-grid { grid-template-columns: auto 1fr auto; }
.text-coach-maya {
  display: block;
  height: 400px;
  width: auto;
  margin: -110px 0 -37px -4px;
  align-self: end;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
}
.text-coach-qr { margin: 0; text-align: center; }
.text-coach-qr img { display: block; width: 180px; height: 180px; background: #fff; border-radius: var(--radius); padding: 10px; }
.text-coach-qr figcaption { margin-top: 8px; color: var(--muted); font-size: var(--step--1); }
/* A phone cannot scan its own screen; the button is the way in there. */
@media (max-width: 760px) {
  .text-coach-grid { grid-template-columns: 1fr; padding: 24px; }
  .text-coach-qr { display: none; }
  .text-coach-maya { display: none; }
  .text-coach-btn { width: 100%; text-align: center; }
}
