/* YouCoach marketing site — served at /site/ (review) and at the root of
   youcoach.co.za (see backend/src/app/site.py). Reuses the app's brand
   tokens from /css/tokens.css; the cream "market" palette matches the
   app's own signed-out landing (app.css .market-*). No inline styles —
   the CSP forbids them. */
:root {
  --site-bg: #F6F3EC;
  --site-bg-alt: #EFEAE0;
  --site-hair: #E4DFD1;
  --site-ink: var(--yc-body, #002C42);
  --site-mute: #55585C;
  --site-subtle: #8A8D90;
  --site-surface: #FFFFFF;
  --site-serif: "Fraunces", "Iowan Old Style", "Palatino", Georgia, serif;
  --site-font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --site-shadow: 0 4px 12px rgba(0, 44, 66, 0.12);
  --site-shadow-sm: 0 1px 2px rgba(0, 44, 66, 0.08);
  --site-max: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --site-bg: #14161A;
    --site-bg-alt: #1C1F24;
    --site-hair: #2C3037;
    --site-ink: #E8EEF1;
    --site-mute: rgba(232, 238, 241, 0.68);
    --site-subtle: rgba(232, 238, 241, 0.45);
    --site-surface: #1F2328;
    --site-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    --site-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--site-bg);
  color: var(--site-ink);
  font-family: var(--site-font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: var(--site-max); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 11px 20px;
  font-weight: 600; font-size: 0.95rem; font-family: inherit;
  text-decoration: none; border: 0; cursor: pointer;
}
.btn-orange {
  background: var(--yc-orange, #FFAD16); color: #002C42;
  border-radius: 12px; font-weight: 700;
  box-shadow: 0 8px 16px -8px rgba(255, 173, 22, 0.5);
}
.btn-teal { background: var(--yc-teal-dark, #20809F); color: #fff; }
.btn-ghost { background: transparent; color: var(--site-ink); border: 1px solid var(--site-hair); }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn:focus-visible, .role button:focus-visible, .burger:focus-visible, .form input:focus-visible, .form textarea:focus-visible {
  outline: 2px solid var(--yc-orange, #FFAD16); outline-offset: 2px;
}

/* ── Nav ─────────────────────────────────────────────────────────── */
.nav {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 24px; background: var(--site-bg);
  position: sticky; top: 0; z-index: 5;
}
.nav-brand img { height: 40px; display: block; }
.nav-links { display: flex; gap: 22px; margin-left: 12px; font-weight: 500; font-size: 0.95rem; }
.nav-links a { text-decoration: none; color: var(--site-mute); }
.nav-links a.is-on { color: var(--site-ink); font-weight: 600; }
.nav-cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.burger {
  display: none; margin-left: auto; width: 40px; height: 40px;
  border-radius: 12px; border: 1px solid var(--site-hair);
  background: var(--site-surface); align-items: center; justify-content: center; cursor: pointer;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--site-ink); box-shadow: 0 -6px 0 var(--site-ink), 0 6px 0 var(--site-ink); }
.nav-menu {
  display: none; position: absolute; left: 16px; right: 16px; top: calc(100% + 4px);
  background: var(--site-surface); border: 1px solid var(--site-hair); border-radius: 18px;
  padding: 8px; box-shadow: var(--site-shadow); flex-direction: column;
}
.nav-menu a { padding: 12px 14px; border-radius: 12px; text-decoration: none; font-weight: 500; }
.nav-menu a:hover { background: var(--site-bg); }
.nav.is-open .nav-menu { display: flex; }
@media (max-width: 760px) {
  /* #115 — on mobile the whole header CTA group is hidden (Log in lives
     in the burger menu, "Get started" is the hero's primary button), so
     the header no longer duplicates the hero's Get started. */
  .nav-links, .nav-cta { display: none; }
  .burger { display: inline-flex; }
}

/* ── Hero ────────────────────────────────────────────────────────── */
.hero { padding: 56px 24px 48px; }
.hero-grid {
  max-width: var(--site-max); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
}
.kicker {
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700; color: var(--yc-teal-dark, #20809F); margin: 0 0 14px;
}
.h1 {
  font-family: var(--site-serif); font-weight: 500;
  font-size: clamp(40px, 5.2vw, 64px); line-height: 1.02; letter-spacing: -0.025em;
  margin: 0 0 16px; text-wrap: balance;
}
.h1 em, .h2 em { font-style: italic; font-weight: 400; color: var(--yc-teal-dark, #20809F); }
.sub { font-size: 1.05rem; line-height: 1.55; max-width: 46ch; margin: 0 0 24px; color: var(--site-mute); }

.role {
  display: inline-flex; position: relative;
  background: var(--site-surface); border: 1px solid var(--site-hair);
  border-radius: 999px; padding: 4px; margin-bottom: 14px;
}
.role-slider {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  background: var(--yc-teal, #56B6C1); border-radius: 999px;
  transition: transform 220ms cubic-bezier(0.3, 0, 0, 1), background 220ms;
}
.role[data-role="coach"] .role-slider { transform: translateX(100%); background: var(--yc-teal-dark, #20809F); }
.role button {
  position: relative; z-index: 1; border: 0; background: transparent;
  font: inherit; font-weight: 600; font-size: 0.85rem; padding: 10px 18px;
  border-radius: 999px; color: var(--site-mute); cursor: pointer;
}
.role button.is-on { color: #fff; }
.role-note { margin: 0 0 18px; font-size: 0.95rem; color: var(--site-mute); }
.role-note b { color: var(--site-ink); font-weight: 600; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.fine { font-size: 0.78rem; color: var(--site-mute); display: block; }
.hero-art { display: flex; justify-content: center; align-items: center; }

/* Role switching — <body data-role> hides the other persona's blocks. */
body[data-role="client"] .for-coach, body[data-role="coach"] .for-client { display: none !important; }
.for-client, .for-coach { animation: site-fade 280ms ease; }
@keyframes site-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .for-client, .for-coach { animation: none; } html { scroll-behavior: auto; } }

/* Teal preview card */
.pv {
  width: 100%; max-width: 560px; position: relative; overflow: hidden;
  background: var(--yc-teal, #56B6C1); border-radius: 24px; padding: 22px 20px 20px; color: #fff;
  box-shadow: 0 20px 40px -20px rgba(32, 128, 159, 0.4);
}
.pv::after {
  content: ""; position: absolute; right: -60px; top: -40px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 173, 22, 0.35), transparent 70%);
}
.pv > * { position: relative; }
.pv-coach { background: var(--yc-teal-dark, #20809F); }
.pv-coach::after { background: radial-gradient(circle, rgba(86, 182, 193, 0.45), transparent 70%); }
.pv-hi { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; opacity: 0.9; margin-bottom: 4px; }
.pv-day { font-family: var(--site-serif); font-weight: 500; font-size: 1.35rem; margin-bottom: 14px; }
.pv-ping {
  background: rgba(255, 255, 255, 0.28); border-radius: 14px; padding: 10px 12px;
  display: flex; gap: 10px; align-items: center; font-size: 0.85rem;
}
.pv-av {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: #FFD9B5; color: #7A4A00; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem;
}
.pv-name { font-size: 0.72rem; font-weight: 600; opacity: 0.9; }

/* Routine card — mirrors the client Home routine card */
.rc { background: #fff; color: #002C42; border-radius: 18px; padding: 16px 16px 6px; margin-bottom: 12px; box-shadow: var(--site-shadow-sm); }
.rc-head { display: flex; align-items: center; gap: 8px; }
.rc-ico { font-size: 1rem; line-height: 1; }
.rc-title { font-weight: 700; font-size: 1rem; }
.rc-sub { font-size: 0.8rem; color: #55585C; margin: 2px 0 12px; }
.rc-sub--right { margin: 0 0 0 auto; }
.rc-tip { background: #F1F3F5; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; margin-bottom: 10px; }
.rc-tip b { font-size: 0.85rem; font-weight: 700; }
.rc-tip span { font-size: 0.78rem; color: #55585C; line-height: 1.4; }
.rc-bar { height: 6px; border-radius: 999px; background: #E6EAEC; overflow: hidden; margin-bottom: 6px; }
.rc-bar i { display: block; height: 100%; width: 66%; background: var(--yc-teal-dark, #20809F); border-radius: inherit; }
.rc-row { display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-top: 1px solid #EEF1F3; font-size: 0.95rem; }
.rc-row:first-of-type { border-top: 0; }
.rc-chk {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid #7CC48C; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; font-size: 0.72rem; color: #fff;
}
.rc-row.done .rc-chk { background: #5BA974; border-color: #5BA974; }
.rc-row.done .rc-t { color: #55585C; text-decoration: line-through; }
.rc-t { flex: 1; min-width: 0; }
.rc-tm { font-size: 0.8rem; color: #8A8D90; }

/* Coach client list card */
.cl-row { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-top: 1px solid #EEF1F3; font-size: 0.92rem; }
.cl-row:first-of-type { border-top: 0; }
.cl-av {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; color: #fff;
  background: var(--yc-teal-dark, #20809F); display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.75rem;
}
.cl-av--mind { background: var(--yc-cat-mind, #8B6FB8); }
.cl-av--soul { background: var(--yc-cat-soul, #5BA974); }
.cl-av--other { background: var(--yc-cat-other, #8A9AA3); }
.cl-n { flex: 1; min-width: 0; display: flex; flex-direction: column; font-weight: 600; }
.cl-n small { font-weight: 400; font-size: 0.75rem; color: #55585C; }
.pill { border-radius: 999px; padding: 3px 10px; font-size: 0.72rem; font-weight: 600; white-space: nowrap; }
.pill-ok { background: #DFEFE3; color: #2F7A48; }
.pill-warn { background: #FFF1D6; color: #8A5A00; }
.pill-off { background: #FBE7E7; color: #B23B3B; }

@media (max-width: 760px) {
  .hero { padding: 28px 20px 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .pv { max-width: none; }
}

/* ── Sections ────────────────────────────────────────────────────── */
.sec { padding: 56px 24px; }
.sec-k { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--yc-teal-dark, #20809F); margin: 0 0 10px; }
.h2 {
  font-family: var(--site-serif); font-weight: 500;
  font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; letter-spacing: -0.02em;
  margin: 0 0 12px; text-wrap: balance;
}
.lead { font-size: 1rem; line-height: 1.55; color: var(--site-mute); max-width: 56ch; margin: 0 0 28px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--site-surface); border: 1px solid var(--site-hair); border-radius: 20px;
  padding: 22px; display: flex; flex-direction: column; gap: 10px;
}
.disc { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.disc img { width: 26px; height: 26px; }
.disc-body  { background: color-mix(in srgb, var(--yc-cat-body, #40A2AF) 15%, white); }
.disc-mind  { background: color-mix(in srgb, var(--yc-cat-mind, #8B6FB8) 15%, white); }
.disc-soul  { background: color-mix(in srgb, var(--yc-cat-soul, #5BA974) 15%, white); }
.disc-other { background: color-mix(in srgb, var(--yc-cat-other, #8A9AA3) 15%, white); }
.card h3 { margin: 0; font-size: 1.05rem; font-weight: 700; }
.card p { margin: 0; font-size: 0.92rem; line-height: 1.5; color: var(--site-mute); }
.card .more { margin-top: auto; font-size: 0.85rem; font-weight: 600; color: var(--yc-teal-dark, #20809F); text-decoration: none; }

/* Coach / client band */
.band { background: var(--yc-teal-dark, #20809F); color: #fff; margin: 0 24px; border-radius: 24px; }
.band .sec-k { color: #FFE7BF; }
.band .h2 { color: #fff; }
.band .h2 em { color: #FFE7BF; }
.band .lead { color: rgba(255, 255, 255, 0.75); }
.band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.dash { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 18px; padding: 16px; }
.dash .cl { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.9rem; }
.dash .cl:first-child { border-top: 0; }
.dash .cav { width: 32px; height: 32px; border-radius: 50%; background: var(--yc-teal, #56B6C1); color: #0F2740; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; }
.dash .n { flex: 1; }
.dash .tm { font-size: 0.8rem; opacity: 0.7; }
.chk-w { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 0.7rem; flex-shrink: 0; }
.chk-w.done { background: #fff; color: var(--yc-teal-dark, #20809F); }
@media (max-width: 760px) { .band { margin: 0 16px; } .band-grid { grid-template-columns: 1fr; } }

/* Blog teaser */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr; } }
.post {
  background: var(--site-surface); border: 1px solid var(--site-hair); border-radius: 20px;
  padding: 20px; text-decoration: none; display: flex; flex-direction: column; gap: 8px;
}
.post .d { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--site-subtle); font-weight: 600; }
.post h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.post p { margin: 0; font-size: 0.9rem; color: var(--site-mute); line-height: 1.5; }
.post .by { margin-top: auto; font-size: 0.8rem; color: var(--site-subtle); }
.posts-more { margin: 20px 0 0; }

/* Contact strip */
.strip { background: var(--site-bg-alt); }
.strip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 760px) { .strip-grid { grid-template-columns: 1fr; } }
.form {
  background: var(--site-surface); border-radius: 20px; padding: 20px;
  display: flex; flex-direction: column; gap: 10px; box-shadow: var(--site-shadow-sm);
}
.form label { font-size: 0.78rem; font-weight: 600; color: var(--site-mute); }
.form input, .form textarea {
  width: 100%; font: inherit; font-size: 0.95rem;
  border: 1px solid var(--site-hair); background: var(--site-surface); color: var(--site-ink);
  border-radius: 999px; padding: 10px 16px;
}
.form textarea { border-radius: 16px; min-height: 90px; resize: vertical; }
.form-status { font-size: 0.85rem; color: var(--site-mute); min-height: 1.2em; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Footer */
.foot { padding: 32px 24px; border-top: 1px solid var(--site-hair); font-size: 0.85rem; color: var(--site-mute); background: var(--site-bg); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.foot a { text-decoration: none; }
.foot img { height: 22px; }
.foot .sp { margin-left: auto; }
@media (max-width: 600px) { .foot .sp { margin-left: 0; } }
