/* Athlete Suite website. Brand: Kody Deep #375373, Kody Blue #97B5D8, Red Hat Display / Red Hat Text. */
@font-face { font-family: 'RHD Black'; src: url('/fonts/RedHatDisplay-BlackItalic.ttf') format('truetype'); font-style: italic; font-weight: 900; font-display: swap; }
@font-face { font-family: 'RHD'; src: url('/fonts/RedHatDisplay-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'RHT'; src: url('/fonts/RedHatText-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'RHT'; src: url('/fonts/RedHatText-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'RHT'; src: url('/fonts/RedHatText-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }

:root {
  --deep: #375373;
  --deep-2: #2c4560;
  --blue: #97B5D8;
  --ink: #101828;
  --slate: #5A6680;
  --mist: #EEF1F5;
  --line: #E3E7EE;
  --white: #FFFFFF;
  --green: #067647;
  --green-tint: #ECFDF3;
  --red: #B42318;
  --red-tint: #FEF3F2;
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: 'RHT', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--deep); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--deep); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- header and footer ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter);
  max-width: 1240px; margin: 0 auto; width: 100%;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 57px; height: auto; }
.wordmark { font-family: 'RHD Black', 'RHD', sans-serif; font-style: italic; font-weight: 900; font-size: 21px; letter-spacing: 1px; color: var(--deep); line-height: 1; white-space: nowrap; }
.wordmark b { color: var(--deep); font-weight: 900; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.nav a { font-family: 'RHT'; font-weight: 600; font-size: 15px; color: var(--slate); text-decoration: none; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--ink); }
.nav .btn { color: #fff; }

.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px;
  padding: 18px var(--gutter); max-width: 1240px; margin: 0 auto; width: 100%;
  font-size: 13px; color: var(--slate);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { color: var(--slate); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1.5px solid var(--deep);
  background: var(--deep); color: #fff; font-family: 'RHD'; font-weight: 700; font-size: 16px;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--deep-2); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--deep); border-color: var(--line); }
.btn.ghost:hover { background: var(--mist); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- home ---------- */
.home main { width: 100%; overflow-x: clip; }
.hero-wrap {
  max-width: 1240px; margin: 0 auto; padding: clamp(12px, 3vh, 40px) var(--gutter) clamp(40px, 7vh, 88px);
  display: grid; grid-template-columns: 1.18fr .82fr; gap: 24px 48px; align-items: center;
  min-height: min(calc(100svh - 96px), 860px);
}
.hero-copy { padding: 8px 0; }
.eyebrow { font-family: 'RHT'; font-weight: 600; font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--deep); margin: 0 0 14px; }
h1.hero {
  font-family: 'RHD Black', 'RHD', sans-serif; font-style: italic; font-weight: 900;
  font-size: clamp(46px, 7vw, 96px); line-height: .95; letter-spacing: -.5px; margin: 0 0 22px; color: var(--ink);
}
h1.hero em { font-style: italic; color: var(--deep); display: block; }
.lead { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.5; color: var(--slate); max-width: 30em; margin: 0 0 28px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ctas.center { justify-content: center; }
.fine { font-size: 14px; color: var(--slate); margin: 18px 0 0; }

/* iPhone frame around a real app screenshot */
.device {
  --w: 300px; margin: 0; width: var(--w); flex: none; position: relative;
  padding: calc(var(--w) * .035); border-radius: calc(var(--w) * .165);
  background: linear-gradient(145deg, #1d2633, #0b111b 45%, #141c28);
  box-shadow: 0 0 0 1px rgba(16,24,40,.12), inset 0 0 0 1.5px rgba(255,255,255,.08), 0 40px 70px -30px rgba(16,24,40,.45), 0 18px 30px -18px rgba(16,24,40,.25);
}
.device::before, .device::after { content: ''; position: absolute; width: 3px; border-radius: 2px; background: #0b111b; }
.device::before { left: -3px; top: 22%; height: 8%; box-shadow: 0 calc(var(--w) * .14) 0 #0b111b; }
.device::after { right: -3px; top: 28%; height: 13%; }
.device-screen { position: relative; border-radius: calc(var(--w) * .13); overflow: hidden; background: #fdfdfd; }
.device-screen img { display: block; width: 100%; height: auto; }
/* room for the home indicator so the tab labels aren't cut by the corner */
.device-screen::after { content: ''; display: block; height: calc(var(--w) * .07); background: #fff; background-image: linear-gradient(#101828, #101828); background-size: 36% calc(var(--w) * .014); background-position: 50% 62%; background-repeat: no-repeat; }
.sb { position: relative; padding-top: 11.4%; color: #101828; }
.sb-time { position: absolute; left: 13%; top: 50%; transform: translateY(-18%); font: 600 calc(var(--w) * .047)/1 -apple-system, 'SF Pro Text', 'RHT', sans-serif; letter-spacing: -.2px; }
.sb-island { position: absolute; left: 50%; top: 22%; width: 31%; height: 52%; margin-left: -15.5%; border-radius: 99px; background: #0b111b; }
.sb-icons { position: absolute; right: 9%; top: 50%; width: 19%; transform: translateY(-15%); fill: currentColor; }

.stage { position: relative; display: flex; justify-content: center; align-items: center; min-height: 560px; }
.stage::before {
  content: ''; position: absolute; width: 118%; aspect-ratio: 1; left: -9%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, #e9f0f8 0%, #f4f7fb 45%, rgba(255,255,255,0) 70%);
}
.stage .device.front { --w: clamp(250px, 22vw, 306px); z-index: 2; transform: translateX(14%); }
.stage .device.back { --w: clamp(220px, 19vw, 266px); position: absolute; left: 4%; top: 50%; transform: translateY(-56%) rotate(-4deg); z-index: 1; filter: saturate(.92); }
.stage .device.back { box-shadow: 0 0 0 1px rgba(16,24,40,.1), 0 30px 50px -28px rgba(16,24,40,.4); }

/* sections */
.tour, .what, .closer { max-width: 1240px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--gutter) 0; }
.section-h { font-family: 'RHD Black', 'RHD'; font-style: italic; font-weight: 900; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.05; letter-spacing: -.3px; margin: 0 0 10px; color: var(--ink); }
.section-sub { color: var(--slate); font-size: 18px; margin: 0 0 36px; max-width: 36em; }
.tour { border-top: 1px solid var(--line); }
.tour-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.shot { display: flex; flex-direction: column; align-items: center; text-align: center; }
.shot .device { --w: min(100%, 250px); }
.shot h3 { font-family: 'RHD'; font-size: 18px; margin: 22px 0 4px; color: var(--ink); }
.shot p { margin: 0; color: var(--slate); font-size: 15px; line-height: 1.45; max-width: 18em; }
.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.feature svg { width: 26px; height: 26px; flex: none; color: var(--deep); margin-top: 2px; }
.feature h3 { margin: 0; font-family: 'RHD'; font-size: 17px; line-height: 1.25; color: var(--ink); }
.feature p { margin: 4px 0 0; font-size: 15px; line-height: 1.45; color: var(--slate); }
.closer { text-align: center; padding-bottom: clamp(56px, 8vw, 96px); }
.closer .section-sub { margin-left: auto; margin-right: auto; margin-bottom: 26px; }
.home .foot { border-top: 1px solid var(--line); }

/* ---------- inner pages ---------- */
.page { min-height: 100vh; display: flex; flex-direction: column; }
.page main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: clamp(20px, 4vw, 48px) var(--gutter) 64px; }
.page h1 { font-family: 'RHD Black', 'RHD'; font-style: italic; font-weight: 900; font-size: clamp(36px, 5vw, 56px); line-height: 1.02; margin: 0 0 12px; }
.page .intro { font-size: 19px; color: var(--slate); max-width: 40em; margin: 0 0 36px; }
h2 { font-family: 'RHD'; font-size: 24px; line-height: 1.25; margin: 40px 0 10px; }
h3 { font-family: 'RHD'; font-size: 18px; margin: 24px 0 6px; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 6px; background: #fff; }
.plan.mid { border-color: var(--deep); box-shadow: 0 18px 40px -24px rgba(55,83,115,.55); }
.plan .size { font-weight: 600; font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--deep); }
.plan .price { font-family: 'RHD'; font-size: 46px; line-height: 1.05; margin: 6px 0 0; }
.plan .price small { font-family: 'RHT'; font-size: 16px; font-weight: 500; color: var(--slate); }
.plan .per { color: var(--slate); font-size: 15px; margin: 0 0 14px; }
.plan .btn { margin-top: auto; }
.plan .fprice { margin: -8px 0 14px; font-size: 15px; color: var(--green); }
.plan .fprice strong { font-weight: 700; }

/* ---------- founding program ---------- */
.founding { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 26px; padding: 26px 28px; border-radius: var(--radius); background: var(--deep); color: #fff; }
.founding h2 { margin: 10px 0 6px; font-family: 'RHD'; font-size: 28px; line-height: 1.15; }
.founding p { margin: 0; max-width: 640px; color: rgba(255,255,255,.86); font-size: 16px; line-height: 1.5; }
.founding strong { color: #fff; }
.founding .tag { display: inline-block; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: 13px; font-weight: 600; letter-spacing: .3px; }
.founding .btn { flex: none; background: #fff; color: var(--deep); }
.founding-note { margin: -6px 0 22px; padding: 12px 16px; border-radius: 12px; background: var(--mist); color: var(--deep); font-size: 15px; font-weight: 600; }

/* ---------- demo ---------- */
.demo { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 44px; align-items: start; }
.demo video { width: 100%; height: auto; max-height: 82vh; aspect-ratio: 9 / 16; object-fit: contain; border-radius: 22px; background: #0E1116; display: block; }
.demo-side h3 { margin: 4px 0 12px; font-family: 'RHD'; font-size: 20px; }
.demo-side ol { margin: 0 0 22px; padding-left: 20px; color: var(--slate); font-size: 16px; line-height: 1.5; }
.demo-side li { margin-bottom: 8px; }
.demo-side li strong { color: var(--ink); }
.included { margin-top: 36px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 32px; padding: 0; list-style: none; }
.included li { display: flex; gap: 10px; align-items: flex-start; }
.included li::before { content: ''; flex: none; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.5L13 6.6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.note { background: var(--mist); border-radius: 14px; padding: 18px 20px; margin-top: 28px; }
.note p { margin: 0; }
.note p + p { margin-top: 8px; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details summary { cursor: pointer; font-family: 'RHD'; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; color: var(--deep); font-size: 22px; line-height: 1; }
details[open] summary::after { content: '–'; }
details p, details ol, details ul { color: var(--slate); margin: 10px 0 0; }

/* forms */
.split { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: start; }
form { display: grid; gap: 16px; }
.seg { margin: 0; padding: 0; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.seg label { text-align: center; padding: 12px 8px; font-weight: 600; cursor: pointer; color: var(--slate); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg input:checked + span { color: #fff; }
.seg label:has(input:checked) { background: var(--deep); color: #fff; }
.seg label:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: -3px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; }
.field .opt { font-weight: 400; color: var(--slate); }
input[type='text'], input[type='email'], select, textarea {
  font: inherit; color: var(--ink); width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; min-height: 50px;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--deep); box-shadow: 0 0 0 3px rgba(151,181,216,.45); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { border-radius: 12px; padding: 14px 16px; font-weight: 500; }
.msg.ok { background: var(--green-tint); color: var(--green); }
.msg.err { background: var(--red-tint); color: var(--red); }
.aside { background: var(--mist); border-radius: var(--radius); padding: 24px; }
.aside h3 { margin-top: 0; }
.aside p { margin: 6px 0 0; color: var(--slate); }

/* legal */
.doc { max-width: 760px; }
.doc .updated { color: var(--slate); font-size: 15px; margin: -4px 0 28px; }
.doc p, .doc li { color: #2b3446; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 12px 0; }
.doc th, .doc td { text-align: left; border-bottom: 1px solid var(--line); padding: 8px 10px 8px 0; vertical-align: top; }
.doc th { font-family: 'RHD'; }

/* ---------- smaller screens ---------- */
@media (max-width: 980px) {
  .demo { grid-template-columns: minmax(0, 360px) 1fr; gap: 30px; }
  .hero-wrap { grid-template-columns: 1fr; min-height: 0; gap: 8px; text-align: left; }
  .stage { min-height: 0; padding: 28px 0 8px; }
  .stage .device.front { --w: min(62vw, 290px); transform: translateX(16%); }
  .stage .device.back { --w: min(52vw, 248px); left: max(2%, calc(50% - min(62vw, 290px) * .78)); }
  .tour-row { grid-template-columns: repeat(4, minmax(210px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
  .tour-row::-webkit-scrollbar { display: none; }
  .shot { scroll-snap-align: center; }
  .features { grid-template-columns: 1fr 1fr; gap: 10px; }
  .plans { grid-template-columns: 1fr; max-width: 460px; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .founding { flex-direction: column; align-items: flex-start; padding: 22px; }
  .demo { grid-template-columns: 1fr; gap: 26px; }
  .demo video { max-height: 78vh; margin: 0 auto; }
  body { font-size: 16px; }
  .top { padding-top: 14px; padding-bottom: 10px; }
  .brand img { width: 46px; }
  .wordmark { font-size: 17px; }
  .nav a:not(.btn):not(.signin) { display: none; }
  .nav .btn { min-height: 38px; padding: 0 14px; font-size: 14px; }
  .eyebrow { font-size: 11px; letter-spacing: 1.4px; margin-bottom: 10px; }
  .eyebrow span { display: block; height: 0; overflow: hidden; }
  h1.hero { font-size: clamp(46px, 14.5vw, 60px); }
  h1.hero { margin-bottom: 14px; }
  .lead { margin-bottom: 18px; }
  .ctas .btn { flex: 1; }
  .fine { margin-top: 12px; font-size: 13px; }
  .features { grid-template-columns: 1fr; }
  .feature { padding: 16px; }
  .section-sub { font-size: 16px; margin-bottom: 26px; }
  .tour-row { grid-template-columns: repeat(4, 72vw); gap: 20px; }
  .foot { justify-content: center; text-align: center; padding-top: 12px; }
  .two { grid-template-columns: 1fr; }
  .included { grid-template-columns: 1fr; }
}
/* small phones (iPhone SE) */
@media (max-width: 640px) and (max-height: 700px) {
  h1.hero { font-size: 46px; margin-bottom: 10px; }
  .lead { font-size: 15px; margin-bottom: 14px; }
  .ctas .btn { min-height: 44px; padding: 0 12px; }
}
/* short laptop screens: the hero still fits above the fold */
@media (min-width: 981px) and (max-height: 760px) {
  h1.hero { font-size: clamp(44px, 6vw, 74px); }
  .lead { margin-bottom: 18px; }
  .stage .device.front { --w: 250px; }
  .stage .device.back { --w: 216px; }
  .stage { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
