/* onev1.app: brand colors and type from docs/design.md */
:root {
  --champagne: #e6e5dd;
  --surface: #f4f3ee;
  --raised: #fbfaf7;
  --indigo: #29273a;
  --muted: #5d5b6b;
  --accent: #ef340f;
  --accent-ink: #bd2808;
  --azure: #a4c2cf;
  --display: 'Anton', Impact, sans-serif;
  --heading: 'Helvetica Neue Condensed', 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --radius: 0; /* square corners, to match the logo */
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--champagne);
  color: var(--indigo);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent-ink); font-weight: 700; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { margin: 0 0 12px; line-height: 1.05; text-transform: uppercase; }
h1 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 7vw, 76px); letter-spacing: 0.5px; }
h2 { font-family: var(--heading); font-weight: 700; font-size: clamp(24px, 3.2vw, 32px); letter-spacing: 1px; }
h3 { font-family: var(--heading); font-weight: 700; font-size: 22px; letter-spacing: 1px; }

p { margin: 0 0 16px; }

.lead { font-size: 20px; max-width: 640px; }

.eyebrow {
  margin-bottom: 12px;
  color: var(--accent-ink);
  font-family: var(--heading);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--champagne); border-bottom: 1px solid rgba(41, 39, 58, 0.08); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand img { display: block; width: 110px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--indigo); text-decoration: none; font-family: var(--heading); font-size: 18px; letter-spacing: 1px; text-transform: uppercase; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--accent-ink); }

/* Buttons */
.button {
  display: inline-block;
  padding: 14px 24px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-family: var(--heading);
  font-size: 19px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
}
.button:hover { background: var(--accent-ink); }
.button.small { padding: 9px 16px; font-size: 16px; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.soon { padding: 12px 18px; border-radius: var(--radius); background: var(--azure); font-weight: 700; }

/* Store buttons (old site style) */
.stores { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.store { display: flex; align-items: stretch; min-width: 220px; border-radius: var(--radius); background: var(--accent); color: #fff; font-weight: 400; text-decoration: none; }
a.store:hover { background: var(--accent-ink); }
.store-icon { display: flex; align-items: center; justify-content: center; width: 76px; border-right: 1.5px solid rgba(255, 255, 255, 0.9); }
.store-text { display: flex; flex-direction: column; justify-content: center; padding: 16px 24px; line-height: 1.2; }
.store-text strong { font-size: 21px; font-weight: 500; }
.store-text span { font-size: 15px; }
.soon-store { cursor: default; }

/* Sections */
.hero { padding: 72px 0 56px; }
.hero.small { padding: 56px 0 40px; background: var(--azure); }
.hero.small .eyebrow { color: var(--indigo); }
.hero.small a { color: var(--indigo); }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 40px; }
/* Homepage photo under the headline */
/* Homepage photo. Wide screens: the photo fills the hero and the copy sits in the open sky
   on the left (the first hoop starts just right of center, so the copy stays left of center).
   Narrower screens: copy on the photo's sky color, photo below, its top edge blended in. */
.hero-with-photo { position: relative; padding-bottom: 0; background: linear-gradient(#739cb0, #7fa6ba); overflow: hidden; }
.hero-with-photo .eyebrow { color: var(--indigo); }
.hero-copy { position: relative; z-index: 1; max-width: 760px; }
.hero-photo { display: block; width: 100%; height: 340px; object-fit: cover; object-position: 80% bottom; margin-top: -30px; -webkit-mask-image: linear-gradient(transparent, #000 22%); mask-image: linear-gradient(transparent, #000 22%); }
@media (min-width: 1001px) {
  .hero-with-photo { display: flex; align-items: flex-start; min-height: clamp(560px, 50vw, 900px); padding-top: clamp(64px, 7vw, 120px); }
  .hero-with-photo .wrap { width: 100%; }
  .hero-copy { max-width: 500px; }
  .hero-with-photo h1 { font-size: clamp(48px, 4.6vw, 72px); }
  .hero-photo { position: absolute; inset: 0; height: 100%; margin: 0; object-position: center bottom; -webkit-mask-image: none; mask-image: none; }
}
/* Contact: the same photo hero on a dark photo (fence and trees), with light text */
.hero-dark { background: #3f4632; color: var(--champagne); }
.hero-dark h1, .hero-dark .eyebrow, .hero-dark a { color: #fff; }
.hero-dark .hero-photo { object-position: right bottom; -webkit-mask-image: linear-gradient(transparent, #000 30%); mask-image: linear-gradient(transparent, #000 30%); }
.hero-dark + .section { padding-top: 48px; }
@media (min-width: 1001px) {
  .hero-dark { min-height: clamp(400px, 33.5vw, 640px); padding-top: clamp(56px, 5.5vw, 96px); }
  .hero-dark::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25, 28, 18, 0.55), rgba(25, 28, 18, 0) 55%); }
  .hero-dark .hero-photo { -webkit-mask-image: none; mask-image: none; }
}
/* About: photo hero (billboard top right) and a left-aligned story */
.hero-about { background: #45443a; }
.hero-about::after { background: linear-gradient(90deg, rgba(25, 26, 20, 0.65), rgba(25, 26, 20, 0) 60%) !important; }
.about-body { padding-top: 40px; }
.about-intro.about-family { margin-bottom: 40px; }
.about-family h2.first { margin-top: 0; }
.fam-art { width: 100%; max-width: 288px; height: auto; justify-self: center; }
.about-body .prose, .about-body .lead { max-width: none; }
.about-body .lead { color: var(--accent); font-size: 20px; font-weight: 700; line-height: 1.45; }
.sign-off.intro { margin-top: 0; line-height: 1.25; }
.hero-icon { justify-self: center; width: 300px; border-radius: 64px; box-shadow: 0 24px 60px rgba(41, 39, 58, 0.18); }

.section { padding: 48px 0; }
.band { background: var(--indigo); color: var(--champagne); }
.band h2 { color: #fff; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.card { padding: 28px; border-radius: var(--radius); background: var(--raised); }
.card p { margin: 0; color: var(--muted); }
.step { display: block; margin-bottom: 8px; color: var(--accent); font-family: var(--display); font-size: 40px; line-height: 1; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

.prose { max-width: 760px; }
.prose h2 { margin-top: 32px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.legal h2 { font-size: 22px; }
.sign-off { margin-top: 24px; font-family: var(--heading); font-weight: 700; font-size: 24px; letter-spacing: 0.5px; text-transform: uppercase; }
.pull { margin: 40px 0; padding: 24px 0; border-top: 3px solid var(--accent); border-bottom: 3px solid var(--accent); font-family: var(--display); font-size: clamp(28px, 4vw, 40px); line-height: 1.15; text-transform: uppercase; }

.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 0 0 32px; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }

.downloads { padding-left: 22px; }

.job { padding: 32px; border-radius: var(--radius); background: var(--raised); }
.job-head { margin-bottom: 20px; }
.meta { color: var(--accent-ink); font-weight: 700; }

.fine-print { margin-top: 24px; color: var(--muted); font-size: 15px; }

.contact { background: var(--azure); text-align: center; }
.contact .lead { margin: 0 auto 24px; }

/* Footer */
.site-footer { padding: 48px 0 32px; background: var(--indigo); color: var(--champagne); }
.site-footer .footer-logo { display: block; width: 160px; height: auto; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.tagline { margin-top: 12px; font-family: var(--heading); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.footer-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 32px; }
.footer-nav a, .fine a { color: var(--champagne); font-weight: 400; text-decoration: none; }
.footer-nav a:hover, .fine a:hover { text-decoration: underline; }
.fine { margin-top: 32px; font-size: 14px; opacity: 0.8; }

/* Badges (match the app's badge tiles) */
.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 24px 0 0; padding: 0; list-style: none; }
/* Perks: a white section with an orange heading */
.perks { background: var(--raised); }
.perks h2 { color: var(--accent); }
.badge { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 24px 12px; border-radius: var(--radius); background: var(--champagne); text-align: center; }
.badge-icon { font-size: 44px; line-height: 1.1; }
.badge strong { font-family: var(--heading); font-size: 20px; letter-spacing: 1px; text-transform: uppercase; }
.badge span:last-child { color: var(--muted); font-size: 15px; line-height: 1.35; }

.ratings { padding-top: 48px; }
.ratings .lead { max-width: 760px; }

/* "Got a league or a regular run?" box */
.bring-run { padding-bottom: 0; }
.bring-box { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 36px; background: var(--raised); border-left: 6px solid var(--accent); }
.bring-box p:last-child { margin-bottom: 0; color: var(--muted); }
.bring-box .button { flex-shrink: 0; }
.open-role { margin-top: 32px; }
.open-role .lead { margin-bottom: 0; color: var(--indigo); }

/* Contact page */
.start-here { background: var(--azure); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1000px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.contact-card { display: flex; flex-direction: column; padding: 28px; background: var(--raised); color: var(--indigo); font-weight: 400; text-decoration: none; border-top: 4px solid transparent; }
.contact-card:hover { border-top-color: var(--accent); }
.contact-card p { flex: 1; margin-bottom: 16px; color: var(--muted); }
.contact-card .go { color: var(--accent-ink); font-family: var(--heading); font-size: 17px; letter-spacing: 1px; text-transform: uppercase; }

/* Founder photo on About: beside the story on wide screens, above it on phones */
.founder-photo { float: right; width: 300px; margin: 6px 0 20px 32px; }
.founder-photo img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 58%; }
.founder-photo figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; font-style: italic; }
.sign-off { clear: both; }

/* Forms */
.onev1-form { display: grid; gap: 16px; max-width: 720px; }
.onev1-form label { display: grid; gap: 6px; font-family: var(--heading); font-weight: 700; font-size: 17px; letter-spacing: 0.5px; text-transform: uppercase; }
.onev1-form input, .onev1-form select, .onev1-form textarea { width: 100%; padding: 12px 14px; border: 1.5px solid rgba(41, 39, 58, 0.25); border-radius: var(--radius); background: #fff; color: var(--indigo); font: 400 17px/1.4 var(--body); text-transform: none; letter-spacing: 0; }
.onev1-form input:focus, .onev1-form select:focus, .onev1-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(239, 52, 15, 0.15); }
.onev1-form .optional { color: var(--muted); font-family: var(--body); font-weight: 400; font-size: 14px; text-transform: none; letter-spacing: 0; }
.onev1-form button { justify-self: start; border: 0; cursor: pointer; }
.onev1-form label.checkbox { display: flex; align-items: flex-start; gap: 10px; font: 400 15px/1.4 var(--body); text-transform: none; letter-spacing: 0; color: var(--muted); }
.onev1-form label.checkbox input { width: 20px; height: 20px; padding: 0; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.onev1-form label.checkbox a { color: inherit; }
.onev1-form button:disabled { opacity: 0.6; cursor: default; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-status { margin: 0; min-height: 1.5em; font-weight: 700; }
.form-status.ok { color: #2f6b3a; }
.form-status.error { color: var(--accent-ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-section { padding-top: 8px; }
.form-section .onev1-form { padding: 32px; background: var(--raised); }
.apply-title { margin-top: 28px; }

/* Phones */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .header-row { flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 12px 20px; }
  .nav { order: 3; width: 100%; margin: 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 6px 16px; }
  .nav a { font-size: 16px; }
  .hero { padding: 40px 0 32px; }
  .hero-grid, .two-col, .cards, .contact-grid { grid-template-columns: 1fr; }
  .hero-icon { width: 180px; border-radius: 40px; }
  .hero-with-photo { padding-bottom: 0; }
  .form-row { grid-template-columns: 1fr; }
  .form-section .onev1-form { padding: 20px; }
  .founder-photo { float: none; width: 100%; margin: 8px 0 20px; }
  .founder-photo img { aspect-ratio: 4 / 5; }
  .bring-box { flex-direction: column; align-items: flex-start; padding: 24px; }
  .hero-photo { height: 300px; }
  .hero-dark .hero-photo { height: 220px; object-position: 90% bottom; }
  .lead { font-size: 18px; }
  .badges { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .badge { padding: 18px 8px; }
  .badge-icon { font-size: 36px; }
}
.prose > h2:first-child { margin-top: 0; }

/* Keep "ONEv1" spelled right inside uppercase headings */
.brand-name { text-transform: none; }

/* Invite page: the note for people who already have the app. */
.lead.small-print { font-size: 15px; margin-top: 20px; opacity: 0.85; }

/* Run page (Share run links): run facts as chips, and what the app unlocks. */
.run-facts { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.run-facts li { background: var(--surface); color: var(--indigo); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 15px; }
.run-locked { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; gap: 6px; font-size: 16px; }

/* "We've built the stadium" cards: an app screenshot under each step, bottoms lined up. */
.cards .card { display: flex; flex-direction: column; }
.cards .card p { margin-bottom: 20px; }
.card-shot { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: contain; margin-top: auto; background: var(--champagne); border-radius: var(--radius); }

/* Homepage "Meet the app": intro copy beside two app screenshots in phone frames, on white. */
.app-intro { background: var(--raised); }
.app-intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.app-intro-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; font-size: 17px; }
.app-intro-points li { padding-left: 18px; border-left: 4px solid var(--accent); }
.phones { display: flex; justify-content: center; align-items: flex-start; gap: 24px; }
.phone { width: 46%; max-width: 260px; height: auto; border: 8px solid var(--indigo); border-radius: 36px; background: var(--indigo); box-shadow: 0 18px 40px rgba(41, 39, 58, 0.25); }
.phone-low { margin-top: 56px; }
@media (max-width: 760px) {
  .app-intro-grid { grid-template-columns: 1fr; gap: 32px; }
  .phones { gap: 14px; }
  .phone { border-width: 5px; border-radius: 24px; }
  .phone-low { margin-top: 32px; }
}

/* "Find your kind of competition": the "winner stays on" billboard photo behind a see-through white panel. */
.ratings-photo { padding: 72px 0; background: var(--indigo) url('/images/winner-stays-on.jpg') 70% center / cover no-repeat; }
.ratings-panel { max-width: 540px; padding: 32px 36px; background: rgba(251, 250, 247, 0.86); }
.ratings-panel h2 { margin-top: 0; }
.ratings-panel .lead:last-child { margin-bottom: 0; }
@media (max-width: 760px) {
  .ratings-photo { padding: 230px 0 40px; background-position: 74% top; background-size: auto 280px; background-color: var(--indigo); }
  .ratings-panel { padding: 24px 20px; background: var(--raised); }
}

/* "Coming soon" in place of store links until the new app is approved. */
.button.is-soon { background: var(--azure); color: var(--indigo); cursor: default; }

/* Footer email sign-up. */
.footer-signup { display: grid; gap: 8px; max-width: 360px; }
.footer-signup label { font-family: var(--heading); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.footer-signup-row { display: flex; gap: 8px; }
.footer-signup input { flex: 1; min-width: 0; padding: 10px 12px; border: 0; border-radius: var(--radius); background: var(--champagne); color: var(--indigo); font: 400 16px/1.4 var(--body); }
.footer-signup-status { margin: 0; font-size: 14px; opacity: 0.85; }
.footer-signup-status a { color: var(--champagne); }

/* About page opening: the intro beside a court page in a phone frame. */
.about-intro { display: grid; grid-template-columns: minmax(0, 760px) 288px; gap: 56px; align-items: center; margin-bottom: 8px; }
.about-phone { width: 100%; max-width: 200px; justify-self: center; }
@media (max-width: 860px) {
  .about-intro { grid-template-columns: 1fr; gap: 28px; }
  .about-phone { width: 60%; max-width: 240px; justify-self: center; }
}

/* About header: the gym photo, framed so the wall words ("know more ballers. play more ball.") stay in view. */
.hero-about .hero-photo { object-position: right 38%; }
@media (max-width: 760px) { .hero-about .hero-photo { object-position: 92% 35%; } }

/* Features page: each feature beside its screenshot, sides alternating, white and champagne bands. */
.feature:nth-of-type(even) { background: var(--raised); }
.feature-grid { display: grid; grid-template-columns: 1fr 260px; gap: 64px; align-items: center; }
.feature-flip .feature-grid { grid-template-columns: 260px 1fr; }
.feature-flip .feature-phone { order: -1; }
.feature-copy h2 { margin-top: 4px; }
.feature-phone { width: 100%; max-width: 260px; justify-self: center; }
@media (max-width: 760px) {
  .feature-grid, .feature-flip .feature-grid { grid-template-columns: 1fr; gap: 28px; }
  .feature-flip .feature-phone { order: 0; }
  .feature-phone { width: 62%; max-width: 230px; }
}

/* Features page: "Got an idea?" sits right under "Got a league…", with room before the footer. */
.bring-run + .feature-request { padding-top: 0; }
.feature-request { padding-bottom: 56px; }

/* Hype Team page (private, for friends helping ONEv1): prompt cards and the Airtable form. */
.hype-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.hype-card { background: var(--raised); padding: 20px 22px; border-top: 4px solid var(--accent); }
.hype-card h3 { margin: 0 0 10px; }
.hype-card ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 15px; line-height: 1.45; }
.hype-note { margin-top: 20px; opacity: 0.8; }
.hype-form { width: 100%; height: 1500px; border: 0; background: transparent; }

