/* The home page. Same palette and type as the coach dashboard (coach/coach.css); the legal pages' style.css copies
   these tokens and the header/footer rules, so keep them in step. */
:root {
  --bg: #F5F8FF;
  --bg-2: #EAF0FD;
  --card: #FFFFFF;
  --ink: #121A33;
  --muted: #414B66;
  --line: #DDE5F5;
  --accent: #0057D9;
  --accent-2: #2DB4F5;
  /* Focus rings and the headline's gradient end: the pale blue is too faint on the light page (under 3:1). */
  --focus: #0057D9;
  --accent-deep: #0A6FC2;
  --lime: #C6F432;
  --midnight: #10152E;
  --shadow: 0 1px 2px rgba(18, 26, 51, .05), 0 12px 32px -12px rgba(18, 26, 51, .18);
  --phone-shadow: 0 30px 60px -20px rgba(16, 21, 46, .45);
  --radius: 20px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1022;
    --bg-2: #10162C;
    --card: #151C36;
    --ink: #EEF1FA;
    --muted: #A9B2CC;
    --line: #26304F;
    --accent: #8CB2FF;
    --focus: #2DB4F5;
    --accent-deep: #2DB4F5;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
    --phone-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .1);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.fine { color: var(--muted); font-size: 14px; margin: 12px 0 0; }

/* Header */
.nav {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 20px; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand img { border-radius: 9px; }
.brand b { color: var(--accent); }
@media (prefers-color-scheme: dark) { .brand img { box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); } }
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav nav a:not(.btn):hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px;
  padding: 10px 18px; font-family: inherit; font-weight: 700; font-size: 15px; line-height: 1.6; text-decoration: none; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .65; cursor: progress; transform: none; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }
.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 999px; }
.btn.big { padding: 14px 24px; font-size: 16px; }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 12px 28px -12px rgba(0, 87, 217, .6); }
@media (prefers-color-scheme: dark) { .btn.primary { color: var(--midnight); } }
.btn.ghost { color: var(--ink); border-color: var(--line); background: var(--card); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.lime { background: var(--lime); color: var(--midnight); box-shadow: 0 10px 30px -10px rgba(198, 244, 50, .6); }
.btn.ghost-light { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn.ghost-light:hover { border-color: #fff; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.cta.center { justify-content: center; }

/* Hero */
.hero {
  position: relative; overflow: hidden; padding: 72px 0 40px;
  background:
    radial-gradient(900px 420px at 85% 10%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 70%),
    radial-gradient(700px 380px at 10% 100%, color-mix(in srgb, var(--lime) 18%, transparent), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 800; color: var(--accent); margin: 0 0 12px; }
h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -.035em; margin: 0; font-weight: 800; }
h1 em {
  font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 19px; color: var(--muted); max-width: 560px; margin: 20px 0 0; }
.hero-art { position: relative; height: 560px; }
.phone {
  display: block; border-radius: 34px; border: 6px solid var(--midnight); background: var(--midnight);
  box-shadow: var(--phone-shadow); box-sizing: content-box; aspect-ratio: 1 / 2; object-fit: cover; object-position: top;
}
.hero-art .phone { position: absolute; width: 250px; }
.hero-art .front { right: 32%; top: 20px; z-index: 2; transform: rotate(-4deg); }
.hero-art .back { right: 4%; top: 70px; transform: rotate(5deg); opacity: .96; }

/* Strip */
.strip { padding: 8px 0 32px; }
/* The card is the .wrap itself, so it takes the 20px page gutter as margin, or it touches the screen edges below 1200px. */
.strip-grid {
  width: calc(100% - 40px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.strip-grid b { display: block; font-size: 22px; letter-spacing: -.02em; }
.strip-grid span { color: var(--muted); font-size: 15px; }

/* Sections */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-2); }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 24px; font-weight: 800; }
h3 { font-size: 19px; margin: 0 0 6px; letter-spacing: -.01em; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse .shots { order: 2; }
/* flex-start, and content-box on .phone: the screenshots are exactly 1:2, so any stretch crops them. */
.shots { display: flex; gap: 20px; justify-content: center; align-items: flex-start; }
.shots .phone { width: calc(50% - 22px); max-width: 250px; }
.shots .phone:nth-child(2) { margin-top: 48px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.ticks li { position: relative; padding-left: 36px; color: var(--muted); }
.ticks li b { color: var(--ink); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 24px; height: 24px; border-radius: 8px;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2310152e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* Steps */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.steps span {
  /* A soft tint, not a white-on-gradient chip: white on the pale blue end fell under 3:1 (and in dark mode). */
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 14px;
  background: color-mix(in srgb, var(--accent) 12%, var(--card)); color: var(--accent); font-weight: 800;
}
.steps p { color: var(--muted); margin: 0; }

/* Pricing */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; align-items: stretch; }
.price { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.price p { color: var(--muted); margin: 0; }
.price .amount { font-size: 40px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); margin: 8px 0 12px; }
.price .amount small { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price.featured {
  background: var(--midnight); color: #fff; border-color: transparent; transform: translateY(-8px);
  box-shadow: 0 30px 60px -24px rgba(16, 21, 46, .55);
}
.price.featured p, .price.featured .amount small { color: #B9C2DE; }
.price.featured .amount { color: #fff; }
/* In dark mode midnight is the page color, so the featured plan gets its own lift. */
@media (prefers-color-scheme: dark) {
  .price.featured {
    background: linear-gradient(160deg, #1D2A5C, #141B3D 60%); border-color: color-mix(in srgb, var(--accent) 45%, transparent);
    box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7), 0 0 0 1px rgba(140, 178, 255, .12);
  }
  .closer { border-top: 1px solid var(--line); }
}
.tag {
  position: absolute; top: -12px; left: 28px; background: var(--lime); color: var(--midnight); font-size: 12px;
  font-weight: 800; text-transform: uppercase; letter-spacing: .08em; border-radius: 999px; padding: 4px 12px;
}

/* Closer */
.closer {
  padding: 88px 0; text-align: center; color: #fff;
  background: radial-gradient(800px 400px at 50% 0%, rgba(45, 180, 245, .35), transparent 70%), var(--midnight);
}
.closer h2 { color: #fff; }
.closer p { color: #B9C2DE; font-size: 18px; margin: 0; }

/* Footer */
.foot { padding: 40px 0 48px; border-top: 1px solid var(--line); background: var(--bg-2); }
.foot-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-grid > div { max-width: 380px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; align-content: flex-start; max-width: 560px; }
.foot nav a { color: var(--muted); font-size: 14px; text-decoration: none; }
.foot nav a:hover, .foot nav a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; }
/* In dark mode bg-2 is nearly the early-access band's midnight; the page's deepest color lets the footer step back. */
@media (prefers-color-scheme: dark) { .foot { background: var(--bg); } }

/* Smaller screens */
@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .shots { order: 0; }
  .hero-art { height: 460px; }
  .hero-art .phone { width: 210px; }
  .hero-art .front { right: auto; left: 50%; margin-left: -190px; }
  .hero-art .back { right: auto; left: 50%; margin-left: -10px; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .price.featured { transform: none; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }
  .hero-copy .cta { justify-content: center; }
  .shots .phone { width: 40%; }
}
@media (max-width: 760px) {
  .steps, .prices { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav nav a:not(.btn) { display: none; }
  .hero { padding: 48px 0 24px; }
  .lead { font-size: 17px; }
  .hero-copy { text-align: left; }
  .hero-copy .cta { justify-content: flex-start; }
  .hero-art { height: 380px; }
  .hero-art .phone { width: 170px; border-radius: 26px; border-width: 5px; }
  .hero-art .front { margin-left: -160px; }
  .hero-art .back { margin-left: -10px; }
  /* 2x2, not one long column: minmax(0, 1fr) so a long word can't push the page wider than 360px. */
  .strip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; padding: 20px; }
  .strip-grid b { font-size: 19px; }
  .strip-grid span { font-size: 14px; line-height: 1.5; }
  .section, .closer { padding: 64px 0; }
  .shots .phone { width: calc(50% - 20px); border-radius: 24px; border-width: 5px; }
}
@media (max-width: 380px) {
  .hero-art { height: 330px; }
  .hero-art .phone { width: 148px; }
  .hero-art .front { margin-left: -146px; }
  .hero-art .back { margin-left: -4px; }
  .nav { padding: 10px 16px; }
  .brand { font-size: 18px; }
}

/* Early access form, on the dark closing band */
.ea {
  max-width: 640px; margin: 32px auto 8px; text-align: left; background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 24px;
}
.ea label { display: block; font-size: 14px; font-weight: 600; color: #DCE3F5; margin-bottom: 14px; }
.ea input:not([type=radio]), .ea textarea {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-size: 16px; color: #fff;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); border-radius: 12px; padding: 12px 14px;
}
.ea textarea { resize: vertical; }
.ea input::placeholder, .ea textarea::placeholder { color: #8C96B5; }
.ea input:focus, .ea textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.ea-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.ea-role { border: 0; padding: 0; margin: 0 0 14px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.ea-role legend { font-size: 14px; font-weight: 600; color: #DCE3F5; padding: 0; margin-bottom: 6px; width: 100%; }
.ea-role label {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 10px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .05); font-size: 15px; color: #fff;
}
.ea-role label:has(input:checked) { background: var(--lime); color: var(--midnight); border-color: var(--lime); }
.ea-role input { accent-color: var(--midnight); margin: 0; }
/* Keyboard focus rings the whole pill, not just the small radio inside it. */
@supports selector(:has(a)) {
  .ea-role label:has(input:focus-visible) { outline: 3px solid var(--accent-2); outline-offset: 2px; }
  .ea-role input:focus { outline: none; }
}
.ea .opt { font-weight: 500; color: #8C96B5; }
.ea .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ea-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.closer .ea-msg { margin: 0; color: #FFB4AB; font-size: 15px; }
.closer .ea-msg.ok { color: var(--lime); }
.closer .ea-fine { color: #8C96B5; font-size: 13px; margin: 14px 0 0; }
.ea-fine a { color: #DCE3F5; }
.closer .cta { margin-top: 20px; }
.closer .cta + p { margin-top: 24px; }
@media (max-width: 640px) { .ea-row { grid-template-columns: 1fr; } .ea { padding: 18px; } }

/* Phone header: the links go, but there's still a way in for coaches and for early access. */
.xs-only { display: none; }
@media (max-width: 420px) {
  .nav { gap: 8px; padding: 10px 16px; }
  .nav nav { gap: 8px; }
  .nav .btn { padding: 8px 12px; font-size: 14px; }
  .xs-hide { display: none; }
  .xs-only { display: inline; }
}

/* On the dark early-access band, the page's blue focus ring disappears: use the light blue there. */
.closer a:focus-visible, .closer .btn:focus-visible, .closer input:focus, .closer textarea:focus { outline-color: var(--accent-2); }
