/* Enduverse: the athlete app's public site. Dark, big type, the logo's teal. */
:root {
  --bg: #05080a;
  --bg-2: #0a1013;
  --surface: #0f171b;
  --surface-2: #142026;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f1f7f7;
  --muted: #9aacaf;
  --brand: #2ee6d3;
  --brand-2: #14b8a6;
  --brand-deep: #0b3b38;
  --on-brand: #021312;
  --radius: 28px;
  --wrap: 1200px;
  --gutter: 16px;
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gutter: 28px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.035em; line-height: 1; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--brand); color: var(--on-brand); padding: 10px 14px; border-radius: 10px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--brand); color: var(--on-brand);
  font-weight: 700; font-size: 16px; text-decoration: none; letter-spacing: -0.01em;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: 0 10px 30px -10px rgba(46, 230, 211, .55);
}
.btn:hover { transform: translateY(-1px); background: #5cf0e1; }
.btn-lg { min-height: 58px; padding: 0 28px; font-size: 17px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.22); }
.btn-ghost:hover { background: rgba(255,255,255,.06); }
.btn-dark { background: var(--bg); color: var(--text); box-shadow: none; }
.btn-dark:hover { background: #10191d; }
.link-quiet { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.link-quiet:hover { color: var(--text); }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 8, 10, .72);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.03em; }
.brand img { border-radius: 9px; }
.nav-links { display: none; gap: 26px; margin-left: 12px; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 16px; }
@media (min-width: 900px) { .nav-links { display: flex; } }
@media (max-width: 420px) { .nav-cta .link-quiet { display: none; } }

/* ---- hero ---- */
.hero { position: relative; padding: 48px 0 40px; overflow: hidden; }
.glow { position: absolute; pointer-events: none; filter: blur(80px); opacity: .55; border-radius: 50%; }
.glow-a { width: 720px; height: 720px; right: -220px; top: -160px; background: radial-gradient(circle, rgba(46,230,211,.55), rgba(46,230,211,0) 65%); }
.glow-b { width: 900px; height: 600px; left: 50%; top: 10%; transform: translateX(-50%); background: radial-gradient(circle, rgba(46,230,211,.35), rgba(46,230,211,0) 65%); }
.hero-in { position: relative; display: grid; gap: 40px; align-items: center; }
.eyebrow, .num {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand);
}
.hero h1 { margin-top: 16px; font-size: clamp(46px, 11vw, 104px); font-weight: 900; letter-spacing: -0.055em; line-height: .92; }
.hl { color: var(--brand); display: block; }
.lede { margin-top: 22px; font-size: clamp(18px, 2.2vw, 21px); color: #c9d6d8; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cta-row .btn { flex: 1 1 240px; }
@media (min-width: 720px) { .cta-row .btn { flex: 0 0 auto; } }
.cta-center { justify-content: center; }
.fine { margin-top: 16px; font-size: 14px; color: var(--muted); }

.hero-art { position: relative; height: min(140vw, 560px); max-width: 420px; width: 100%; margin: 0 auto; }
.hero-art .phone { position: absolute; width: min(60vw, 240px); }
.phone-front { left: 50%; top: 0; transform: translateX(-80%) rotate(-3deg); z-index: 2; }
.phone-back { left: 50%; top: 50px; transform: translateX(-14%) rotate(5deg); opacity: .85; }
.chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px; border-radius: 999px; background: rgba(15,23,27,.9);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.6), inset 0 0 0 1px var(--line); backdrop-filter: blur(8px);
}
.chip b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-size: 16px; font-weight: 800; }
.chip span { font-weight: 600; font-size: 15px; }
.chip-ready { left: 0; bottom: 70px; }
@media (min-width: 980px) {
  .hero { padding: 72px 0 56px; }
  .hero-in { grid-template-columns: 1.15fr 1fr; gap: 24px; }
  .hero-art { height: 640px; max-width: none; }
  .hero-art .phone { width: 290px; }
  .phone-front { transform: translateX(-62%) rotate(-3deg); }
  .phone-back { transform: translateX(-2%) rotate(5deg); }
  .chip-ready { left: -10px; bottom: 90px; }
}

.facts {
  list-style: none; margin: 56px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line);
  border-radius: 22px; overflow: hidden; border: 1px solid var(--line);
}
.facts li { background: var(--bg-2); padding: 20px 18px; display: flex; flex-direction: column; gap: 4px; }
.facts b { font-size: clamp(26px, 4vw, 36px); font-weight: 900; letter-spacing: -0.04em; color: var(--brand); line-height: 1.05; }
.facts span { color: var(--muted); font-size: 14px; line-height: 1.35; }
@media (min-width: 820px) { .facts { grid-template-columns: repeat(4, 1fr); } .facts li { padding: 26px 24px; } }

/* ---- phones ---- */
.phone {
  margin: 0; position: relative; aspect-ratio: 390 / 844; width: min(78vw, 320px);
  border-radius: 44px; padding: 9px; background: linear-gradient(160deg, #26343a, #0c1215 45%, #1c272c);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.07), inset 0 0 0 1px rgba(255,255,255,.06);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 36px; background: #0b1114; }

/* ---- feature sections ---- */
.feature { padding: 72px 0; border-top: 1px solid var(--line); }
.feature-in { display: grid; gap: 44px; align-items: center; justify-items: center; }
.feature-copy { max-width: 560px; justify-self: start; }
.feature h2, .more h2, .two h2, .pricing h2, .coaches h2, .faq h2, .final h2 {
  font-size: clamp(36px, 6.4vw, 68px); font-weight: 900; letter-spacing: -0.05em; line-height: .98; margin-top: 14px;
}
.feature-copy > p:not(.num) { margin-top: 20px; color: #c9d6d8; font-size: 18px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; color: #dbe6e7; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232ee6d3' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.duo { display: flex; justify-content: center; gap: 16px; width: 100%; }
.duo .phone { width: min(44vw, 290px); border-radius: 34px; padding: 7px; }
.duo .phone img { border-radius: 28px; }
.phone-offset { margin-top: 48px; }
@media (min-width: 980px) {
  .feature { padding: 110px 0; }
  .feature-in { grid-template-columns: 1fr 1fr; gap: 64px; }
  .feature-flip .feature-copy { order: 2; }
  .phone { width: 330px; }
  .duo .phone { width: 260px; }
}
.feature-band { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }

/* ---- the rest ---- */
.more { padding: 80px 0; border-top: 1px solid var(--line); }
.grid { margin-top: 40px; display: grid; grid-template-columns: 1fr; gap: 12px; }
.grid article { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.grid h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.grid p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
@media (min-width: 620px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .more { padding: 110px 0; } .grid { grid-template-columns: repeat(4, 1fr); } }

/* ---- two ways ---- */
.two { padding: 80px 0; border-top: 1px solid var(--line); }
.two-grid { margin-top: 40px; display: grid; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.card h3 { font-size: 30px; font-weight: 900; }
.card > p { margin-top: 14px; color: #c9d6d8; }
.card .ticks { margin-bottom: 28px; }
.card .btn { margin-top: auto; align-self: flex-start; }
.card-alt { background: linear-gradient(160deg, #0f2a28, var(--surface) 60%); border-color: rgba(46,230,211,.25); }
@media (min-width: 860px) { .two { padding: 110px 0; } .two-grid { grid-template-columns: 1fr 1fr; } .card { padding: 40px; } }

/* ---- pricing ---- */
.pricing { padding: 80px 0; border-top: 1px solid var(--line); }
.plans { margin-top: 40px; display: grid; gap: 16px; align-items: stretch; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.plan h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.price { margin-top: 14px; display: flex; align-items: baseline; gap: 8px; }
.price b { font-size: 48px; font-weight: 900; letter-spacing: -0.05em; line-height: 1; }
.price span { color: var(--muted); font-weight: 500; }
.plan-for { margin-top: 10px; color: var(--muted); }
.plan .ticks { margin-bottom: 28px; }
.plan .btn { margin-top: auto; }
.plan-pro { background: var(--brand); color: var(--on-brand); border-color: transparent; box-shadow: 0 30px 80px -30px rgba(46,230,211,.6); }
.plan-pro .price span, .plan-pro .plan-for { color: rgba(2,19,18,.7); }
.plan-pro .ticks li { color: var(--on-brand); font-weight: 500; }
.plan-pro .ticks li::before { background-color: rgba(2,19,18,.14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23021312' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }
.tag { position: absolute; top: 24px; right: 24px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; background: var(--on-brand); color: var(--brand); padding: 6px 10px; border-radius: 999px; }
@media (min-width: 960px) { .pricing { padding: 110px 0; } .plans { grid-template-columns: repeat(3, 1fr); } }

/* ---- coaches ---- */
.coaches { padding: 0 0 80px; }
.coaches-in {
  display: grid; gap: 28px; align-items: end;
  background: linear-gradient(135deg, var(--brand) 0%, #19c9b8 100%); color: var(--on-brand);
  border-radius: 36px; padding: 36px 24px; margin: 0 auto; max-width: calc(var(--wrap) - 2 * var(--gutter));
  width: calc(100% - 2 * var(--gutter));
}
.coaches .num { color: rgba(2,19,18,.7); }
.coaches p:not(.num) { margin-top: 16px; font-size: 18px; max-width: 40em; color: rgba(2,19,18,.82); }
@media (min-width: 900px) { .coaches-in { grid-template-columns: 1fr auto; padding: 56px; } }

/* ---- faq ---- */
.faq { padding: 80px 0; border-top: 1px solid var(--line); }
.faq-in { display: grid; gap: 32px; }
.qs { display: grid; gap: 10px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 0 22px; }
summary { cursor: pointer; list-style: none; padding: 20px 32px 20px 0; font-weight: 700; font-size: 18px; position: relative; letter-spacing: -0.01em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; color: var(--brand); }
details[open] summary::after { content: "–"; }
details p { padding: 0 0 22px; color: #c9d6d8; }
@media (min-width: 960px) { .faq { padding: 110px 0; } .faq-in { grid-template-columns: 1fr 1.6fr; } }

/* ---- final ---- */
.final { position: relative; overflow: hidden; padding: 100px 0 110px; border-top: 1px solid var(--line); text-align: center; }
.final-in { position: relative; display: flex; flex-direction: column; align-items: center; }
.final-in img { border-radius: 18px; }
.final h2 { margin-top: 24px; max-width: 12em; }

/* ---- footer ---- */
.foot { border-top: 1px solid var(--line); padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 15px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.foot .brand { color: var(--text); font-size: 17px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--text); }
.foot-in > p { margin-left: auto; }
@media (max-width: 640px) { .foot-in > p { margin-left: 0; width: 100%; } }

/* ---- reveal on scroll (only once JS is on) ---- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
