/* ============================================================
   One Mile a Day — marketing site styles
   Brand: white, black, accent #FF1F44
   ============================================================ */
:root {
  --brand: #FF1F44;
  --brand-dark: #d9122f;
  --black: #0b0b0c;
  --ink: #141416;
  --muted: #6b6b73;
  --line: #e9e9ee;
  --white: #ffffff;
  --soft: #f6f6f8;
  --radius: 14px;
  --maxw: 1200px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Archivo", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s ease, box-shadow .3s ease, color .3s ease;
  color: var(--white);
}
.site-header.solid,
.site-header.light {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  color: var(--black);
  box-shadow: 0 1px 0 var(--line);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; letter-spacing: -.02em; font-size: 20px; }
.logo img { height: 46px; width: auto; }
.logo .logo-light { display: none; }
.site-header.solid .logo .logo-dark, .site-header.light .logo .logo-dark { display: none; }
.site-header.solid .logo .logo-light, .site-header.light .logo .logo-light { display: block; }
.site-footer .logo img { height: 52px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand); color: var(--white);
  display: grid; place-items: center; font-size: 15px; font-weight: 900;
}
.nav { display: flex; align-items: center; gap: 34px; font-weight: 600; font-size: 15px; }
.nav a { position: relative; padding: 6px 0; opacity: .9; }
.nav a:hover, .nav a.active { opacity: 1; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav .nav-cta {
  background: var(--brand); color: var(--white); padding: 10px 20px; border-radius: 999px; opacity: 1;
}
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { background: var(--brand-dark); }
.menu-toggle { display: none; background: none; border: 0; color: inherit; padding: 8px; cursor: pointer; }

@media (max-width: 720px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--white); color: var(--black);
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav.open { max-height: 320px; }
  .nav a { padding: 16px 24px; border-top: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav .nav-cta { margin: 12px 24px 16px; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 34px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 15px; letter-spacing: .02em; text-transform: uppercase;
  cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  font-family: var(--font);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: var(--white); box-shadow: 0 10px 24px rgba(255,31,68,.28); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { border-color: var(--black); color: var(--black); background: transparent; }
.btn-outline:hover { background: var(--black); color: var(--white); }
.btn-outline-light { border-color: var(--white); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--black); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100vh; min-height: 560px; overflow: hidden;
  background: var(--black); color: var(--white);
}
.hero-media, .hero video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-media {
  background:
    linear-gradient(135deg, #1a0a0e 0%, #3a0b16 45%, #0b0b0c 100%);
  background-size: cover; background-position: center;
}
.hero-media[data-img="hero"] { background-position: 58% 40%; }
.hero-media.slides { animation: none; background-image: none !important; }
.hero-media .slide {
  position: absolute; inset: 0; background-size: cover; background-position: center 40%;
  opacity: 0; transition: opacity 1.6s ease; animation: kenburns 14s ease-in-out infinite alternate;
}
.hero-media .slide.on { opacity: 1; }
/* keep the runner in frame on phones */
.hero-media .slide:nth-child(1) { background-position: 58% 40%; }
.hero-media .slide:nth-child(2) { background-position: 48% 40%; }
.hero-media .slide:nth-child(3) { background-position: 38% 40%; }
.trio-img[data-img="trio3"] { background-position: 52% center; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.05) 40%, rgba(0,0,0,.75) 100%);
}
.hero-text {
  position: absolute; left: 0; right: 0; bottom: 9vh; z-index: 2; text-align: center; padding: 0 24px;
}
.hero-eyebrow {
  display: inline-block; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; font-size: clamp(15px, 1.6vw, 19px);
  opacity: 0; animation: fadeUp 1s .6s ease forwards;
}
.hero h1 {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(56px, 11vw, 160px); line-height: .9; letter-spacing: -.03em;
  margin: 14px 0 0; opacity: 0; animation: fadeUp 1.4s 1s ease forwards;
}
.hero h1 .accent { color: var(--brand); }
.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; z-index: 2; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.7); border-radius: 20px;
  opacity: 0; animation: fadeIn 1s 2.2s forwards;
}
.scroll-cue::before {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: var(--white); border-radius: 2px; animation: scrollDot 1.6s infinite;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 110px 0; }
.section-tight { padding: 70px 0; }
.eyebrow {
  color: var(--brand); font-weight: 800; letter-spacing: .25em; text-transform: uppercase; font-size: 12px;
}
.section-title {
  font-family: var(--display); font-weight: 900; letter-spacing: -.03em; line-height: 1.02;
  font-size: clamp(36px, 5vw, 60px); margin: 12px 0 18px;
}
.eyebrow-lg { font-size: 16px; letter-spacing: .3em; display: inline-block; margin-bottom: 14px; }
.section-lead { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 auto; }
.center { text-align: center; }

.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.cta-band { padding: 56px 0; border-bottom: 1px solid var(--line); }

/* Image trio */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.trio figure {
  margin: 0; position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background-size: cover; background-position: center;
}
.trio figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.65)); }
.trio figure:hover .trio-img { transform: scale(1.06); }
.trio-img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .8s ease; }
.trio figcaption {
  position: absolute; left: 22px; bottom: 20px; z-index: 2; color: var(--white);
  font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.01em;
}
.trio figcaption small { display: block; font-family: var(--font); font-weight: 500; font-size: 13px; opacity: .8; letter-spacing: 0; }
@media (max-width: 860px) {
  .trio { grid-template-columns: 1fr; }
  .trio figure { aspect-ratio: 16 / 11; }
}

/* Benefits */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 40px; margin-top: 64px; text-align: left; }
.benefit { display: flex; gap: 20px; align-items: flex-start; }
.benefit-icon { flex: 0 0 72px; height: 72px; transition: transform .25s ease; }
.benefit-icon img { width: 72px; height: 72px; object-fit: contain; }
.benefit:hover .benefit-icon { transform: translateY(-4px) rotate(-4deg); }
.benefit h3 { font-family: var(--display); font-size: 20px; margin: 4px 0 6px; letter-spacing: -.01em; }
.benefit p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 960px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .benefits { grid-template-columns: 1fr; gap: 32px; } }

/* Big image banner */
.banner {
  position: relative; min-height: 640px; display: flex; flex-direction: column; justify-content: space-between;
  align-items: center; text-align: center; color: var(--white); padding: 90px 24px;
  background: #1a0a0e; background-size: cover; background-position: center; background-attachment: fixed; overflow: hidden;
}
.banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.25) 50%, rgba(0,0,0,.65)); }
.banner > * { position: relative; z-index: 1; }
.banner-top { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; line-height: .95; font-size: clamp(40px, 7vw, 96px); margin: 0; }
.banner-top .num { color: var(--brand); }
.banner-bottom { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .18em; font-size: clamp(16px, 2.2vw, 24px); margin: 0; }
.banner-bottom span { color: var(--brand); }
@media (max-width: 860px) { .banner { background-attachment: scroll; min-height: 520px; } }

/* Footer */
.site-footer { background: var(--black); color: rgba(255,255,255,.7); padding: 60px 0 40px; font-size: 14px; }
.site-footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.site-footer .logo { color: var(--white); }
.site-footer nav { display: flex; gap: 24px; }
.site-footer nav a:hover { color: var(--white); }
.site-footer .legal { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; }

/* ---------- Page hero (about) ---------- */
.page-hero {
  padding: 180px 0 100px; background: var(--black); color: var(--white); text-align: center;
  background-size: cover; background-position: center; position: relative;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.page-hero > * { position: relative; }

/* ---------- Auth pages ---------- */
.auth-wrap {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
}
.auth-side {
  position: relative; background: var(--black); background-size: cover; background-position: center; color: var(--white);
  display: flex; align-items: flex-end; padding: 56px;
}
.auth-side::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.75)); }
.auth-side > div { position: relative; }
.auth-side h2 { font-family: var(--display); font-weight: 900; font-size: 52px; line-height: .95; text-transform: uppercase; letter-spacing: -.02em; margin: 0 0 12px; }
.auth-side h2 span { color: var(--brand); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 120px 24px 60px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-family: var(--display); font-weight: 900; font-size: 40px; letter-spacing: -.03em; margin: 0 0 6px; }
.auth-card .sub { color: var(--muted); margin: 0 0 32px; }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.field input, .field select {
  width: 100%; padding: 14px 16px; font-size: 16px; font-family: var(--font);
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23141416' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(255,31,68,.12); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 420px) { .field-row { grid-template-columns: 1fr; } }

.chip-group { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.chip-group input { position: absolute; opacity: 0; pointer-events: none; }
.chip-group label {
  margin: 0; text-align: center; padding: 12px 6px; border: 1.5px solid var(--line); border-radius: 12px;
  font-weight: 600; font-size: 14px; cursor: pointer; transition: all .2s ease;
}
.chip-group input:checked + label { border-color: var(--brand); background: rgba(255,31,68,.08); color: var(--brand); }
.chip-group input:focus-visible + label { box-shadow: 0 0 0 4px rgba(255,31,68,.15); }
@media (max-width: 420px) { .chip-group { grid-template-columns: repeat(2, 1fr); } }

.form-error { color: var(--brand-dark); background: rgba(255,31,68,.08); padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 18px; display: none; }
.form-error.show { display: block; }

.divider { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; margin: 26px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.new-user {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%;
  padding: 14px; border: 1.5px dashed var(--line); border-radius: 12px; font-weight: 700; transition: all .2s ease;
}
.new-user:hover { border-color: var(--brand); color: var(--brand); }
.new-user .plus { width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: var(--white); display: grid; place-items: center; font-size: 20px; line-height: 1; }
.text-link { color: var(--brand); font-weight: 600; }
.small { font-size: 13px; color: var(--muted); }

/* About header: on wide screens show the runner's face, not just the shoulders */
@media (min-width: 768px) { .page-hero[data-img="about"] { background-position: center 22%; } }

/* ---------- Signup: username + 18+ ---------- */
.at-input { display: flex; align-items: center; border: 1.5px solid var(--line, #e6e6ea); border-radius: 12px; overflow: hidden; background: #fff; }
.at-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(255,31,68,.12); }
.at-input span { padding: 0 2px 0 14px; font-weight: 800; color: var(--muted, #75757e); }
.field .at-input input { border: 0 !important; box-shadow: none !important; padding-left: 4px; }
.field-note { font-size: 13px; color: var(--muted, #75757e); margin: 6px 0 0; }
.field-note.good { color: #18a058; font-weight: 600; }
.field-note.bad { color: var(--brand-dark, #d9122f); font-weight: 600; }
.chip-group.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 420px) { .chip-group.three { grid-template-columns: repeat(3, 1fr); } }
.check-row { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; margin: 6px 0 22px; cursor: pointer; line-height: 1.4; }
.check-row input { width: 22px; height: 22px; accent-color: var(--brand); flex: 0 0 auto; margin: 0; }
