/* Athlate homepage — butter-yellow field, ink-black text/buttons, one orange accent.
   Orange never fills a button, per the app's own design rule. */

:root {
  --yellow: #FFF3D2;
  --yellow-deep: #F7E7B8;
  --ink: #26200E;
  --ink-soft: #55503f;
  --orange: #C96908;
  --line: #E7D9A9;
  --white: #FFFDF6;
  --radius: 14px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
main > section, #download { scroll-margin-top: 84px; }
body {
  margin: 0;
  background: var(--yellow);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-family: 'Lora', Georgia, serif; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 243, 210, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.wordmark,
.brand {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.wordmark {
  font-size: 20px;
  color: var(--ink);
}
.wordmark.small { font-size: 16px; }
/* .brand: the "athlate" wordmark set inline inside a serif headline --
   matches the lowercase grotesque-sans logo lettering used on the
   generated cast's clothing, so the word reads as the same mark
   wherever it shows up on the page. */
.brand { font-weight: 700; }
.nav-cta { display: flex; gap: 8px; }
.nav .wordmark { padding: 8px 0; }
.badge-small .badge-label { display: inline; }
/* Log in: leads to the web app. Outlined, never filled -- the two store
   badges are the loud action in this bar, this one sits under them. */
.nav-login {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid rgba(38, 32, 14, 0.28);
  border-radius: 10px;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.nav-login:hover { background: rgba(38, 32, 14, 0.06); border-color: rgba(38, 32, 14, 0.45); }

/* ---------- badges (download buttons: ink fill, never orange) ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--yellow);
  border-radius: 10px;
  white-space: nowrap;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.badge:hover { transform: translateY(-1px); opacity: 0.92; }
.badge-small { padding: 8px 14px; font-size: 13px; font-weight: 600; }
.badge-large { padding: 12px 20px; }
.badge-large span { display: flex; flex-direction: column; line-height: 1.15; font-weight: 700; font-size: 16px; }
.badge-large small { font-weight: 400; font-size: 11px; opacity: 0.8; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 28%;
  z-index: 0;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg,
    rgba(38, 32, 14, 0.88) 0%,
    rgba(38, 32, 14, 0.72) 32%,
    rgba(38, 32, 14, 0.28) 58%,
    rgba(38, 32, 14, 0) 78%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 96px 24px;
}
.hero-copy { max-width: 560px; }
.hero-copy .eyebrow { margin-bottom: 6px; }
#hero1Copy { margin-top: 40px; max-width: 520px; }
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}
.hero h1, .hero .hero-h {
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1.03;
  color: var(--white);
}
.hero .lead {
  margin-top: 24px;
  font-size: 18px;
  color: rgba(255, 253, 246, 0.86);
  max-width: 46ch;
}
/* ---------- hero 2 (secondary statement band) ---------- */
.hero-secondary { min-height: 640px; }
.hero-secondary .hero-photo { object-position: center 32%; }
.hero-secondary .hero-copy { max-width: 620px; }

.phone-frame {
  border-radius: 32px;
  overflow: hidden;
  border: 6px solid var(--ink);
  box-shadow: 0 24px 60px rgba(38, 32, 14, 0.25);
  background: var(--white);
  max-width: 280px;
}

/* ---------- journey ---------- */
.journey { padding: 96px 0 110px; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.journey h2 { font-size: clamp(28px, 4vw, 40px); text-align: center; }
.section-lead {
  text-align: center;
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 52ch;
  margin: 16px auto 0;
}
.journey-bouquet {
  margin-top: 80px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
}
.journey-phone {
  width: 250px;
  margin: 0 -10px;
  position: relative;
  z-index: var(--z);
}
.journey-phone-tilt {
  transform: rotate(var(--r));
  transition: transform 0.25s ease;
}
.journey-phone:hover .journey-phone-tilt { transform: rotate(0deg) scale(1.03); }
.journey-phone .phone-frame {
  max-width: 250px;
  border-width: 5px;
  box-shadow: 0 26px 50px rgba(38, 32, 14, 0.22);
}
.journey-label {
  text-align: center;
  margin-top: 26px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.journey-text {
  text-align: center;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 220px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- introducing rhythm ---------- */
.introducing {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  padding: 170px 0;
}
.introducing-sun-wash {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 82% 50%, rgba(255, 205, 100, 0.4) 0%, rgba(201, 105, 8, 0.22) 30%, rgba(38, 32, 14, 0) 62%);
}
.introducing-sunburst {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -50%);
  z-index: 0;
  mix-blend-mode: screen;
}
.introducing-visual {
  position: absolute;
  right: 9%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  width: 220px;
  pointer-events: none;
}
.introducing-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 400px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid var(--orange);
  box-shadow: 0 0 70px 12px rgba(201, 105, 8, 0.5), 0 0 140px 50px rgba(201, 105, 8, 0.22);
  animation: ring-pulse 2.8s ease-in-out infinite;
}
.introducing-phone {
  position: relative;
  z-index: 1;
  width: 100%;
  display: block;
  border-radius: 36px;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
}
.introducing-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg,
    rgba(38, 32, 14, 0.94) 0%,
    rgba(38, 32, 14, 0.75) 30%,
    rgba(38, 32, 14, 0.25) 56%,
    rgba(38, 32, 14, 0.55) 100%);
}
.introducing-inner {
  position: relative;
  z-index: 2;
  max-width: 620px;
}
.introducing h2 {
  color: var(--yellow);
  font-size: clamp(36px, 5.5vw, 60px);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.pulse-mark { width: 84px; height: 26px; flex-shrink: 0; overflow: visible; }
.pulse-line {
  fill: none;
  stroke: var(--orange);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
  filter: drop-shadow(0 0 6px rgba(201, 105, 8, 0.55));
}
.pulse-dot {
  fill: var(--yellow);
  filter: drop-shadow(0 0 5px rgba(255, 243, 210, 0.9));
}
@keyframes ring-pulse {
  0%, 100% { box-shadow: 0 0 70px 12px rgba(201, 105, 8, 0.5), 0 0 140px 50px rgba(201, 105, 8, 0.22); }
  50% { box-shadow: 0 0 92px 20px rgba(201, 105, 8, 0.66), 0 0 172px 62px rgba(201, 105, 8, 0.3); }
}
.introducing .eyebrow { color: var(--orange); margin-bottom: 12px; }
.introducing p { font-size: 18px; color: rgba(255, 253, 246, 0.86); margin-bottom: 16px; }
.introducing p:last-child { margin-bottom: 0; }

/* ---------- capability / guided use ---------- */
.capability { padding: 110px 0; }
.capability-inner { max-width: 1040px; }
.capability h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px; }
.capability .section-lead { margin: 0; text-align: left; max-width: 56ch; }
.capability-intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 56px;
}
.capability-photo {
  border-radius: var(--radius);
  width: 100%;
  box-shadow: 0 20px 48px rgba(38, 32, 14, 0.16);
}
.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.capability-card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.capability-card h3 { font-size: 17px; margin-bottom: 8px; }
.capability-card p { font-size: 15px; color: var(--ink-soft); }

/* ---------- whoever your level ---------- */
.levels { padding: 110px 0; overflow: hidden; background: var(--orange); }
.levels h2 { font-size: clamp(28px, 4vw, 40px); text-align: left; color: var(--white); max-width: 640px; }
.level-mosaic {
  margin-top: 56px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 0 24px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.level-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.level-tile {
  position: relative;
  height: 210px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(38, 32, 14, 0.22);
}
.level-tile img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; }
/* cascade: column 1 sits highest, each column after it starts a little lower,
   so the wall reads top-left down toward bottom-right rather than a flat grid.
   Each column is its own flex stack, so the offset just shifts the whole
   column down -- it never eats into an individual tile's own height. */
.level-col-2 { margin-top: 44px; }
.level-col-3 { margin-top: 88px; }
.level-col-4 { margin-top: 132px; }
.level-col-5 { margin-top: 176px; }

/* ---------- community ---------- */
.community {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-bottom: 0;
}
.community-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
}
.community-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg,
    rgba(38, 32, 14, 0.93) 0%,
    rgba(38, 32, 14, 0.86) 42%,
    rgba(38, 32, 14, 0.62) 66%,
    rgba(38, 32, 14, 0.22) 88%,
    rgba(38, 32, 14, 0.06) 100%);
}
.community-inner {
  position: relative;
  z-index: 2;
  padding: 64px 24px 72px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.community h2 { font-size: clamp(28px, 4vw, 40px); color: var(--white); }
.community .section-lead { color: rgba(255, 253, 246, 0.86); margin-top: 14px; }
.community .cta-row { justify-content: center; margin-top: 32px; }

/* ---------- legal pages ---------- */
.legal { padding: 56px 0 112px; }
.legal-wrap { max-width: 720px; }
.legal .eyebrow { color: var(--orange); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); margin-top: 10px; }
.legal-updated { color: var(--ink-soft); margin: 10px 0 40px; font-size: 14px; }
.legal-body h2 { font-size: 20px; margin: 36px 0 12px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 16px; margin: 24px 0 8px; font-weight: 700; }
.legal-body p { margin-bottom: 16px; color: var(--ink-soft); line-height: 1.7; }
.legal-body ul { margin: 0 0 16px; padding-left: 20px; color: var(--ink-soft); line-height: 1.7; }
.legal-body li { margin-bottom: 6px; }
.legal-body a { color: var(--orange); text-decoration: underline; }
.legal-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 36px; }
.legal-cta {
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: var(--yellow);
  border-radius: 10px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.legal-cta:hover { transform: translateY(-1px); opacity: 0.92; }
.legal-cta.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.legal-note {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 16px;
}
.legal-note p { margin-bottom: 0; }
.legal-note p + p { margin-top: 10px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 32px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--ink-soft);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 2px 20px; }
.footer-links a { display: inline-block; padding: 10px 0; }
.footer-links a:hover { color: var(--ink); }

/* ---------- responsive ----------
   Ordered widest to narrowest on purpose. Equal-specificity rules are
   resolved by source order, so a narrow block placed before a wide one
   gets overridden by it (that is how the phone grid ended up two-up). */

/* the phone fan still fits, just tighter */
@media (max-width: 1119px) {
  .journey-phone { width: 220px; margin: 0 -8px; }
  .journey-phone .phone-frame { max-width: 220px; }
  .journey-text { max-width: 200px; }
}

@media (max-width: 1023px) {
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .journey-phone { width: 200px; margin: 0 -6px; }
  .journey-phone .phone-frame { max-width: 200px; }
  .journey-text { max-width: 190px; }
}

/* below this the rotated fan pushes past the viewport: two rows of two, straightened */
@media (max-width: 940px) {
  .journey-bouquet { display: grid; grid-template-columns: repeat(2, minmax(0, 240px)); justify-content: center; gap: 56px 32px; margin-top: 64px; }
  .journey-phone { width: 240px; margin: 0; }
  .journey-phone .phone-frame { max-width: 240px; }
  .journey-phone-tilt,
  .journey-phone:hover .journey-phone-tilt { transform: none; }
  .journey-text { max-width: 240px; }
}

@media (max-width: 860px) {
  .capability-grid { grid-template-columns: 1fr; gap: 20px; }
  .capability-inner { max-width: none; }
  .capability-intro { grid-template-columns: 1fr; gap: 32px; }
  .level-mosaic { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 130px; gap: 8px; padding: 0 20px; }
  .level-col { display: contents; }
  .level-tile { height: auto; margin-top: 0 !important; }
  .levels h2 { max-width: none; }
  .community { min-height: 560px; }
  .community-inner { padding: 48px 24px 44px; }
  .hero { min-height: 640px; }
  .hero-photo { object-position: 70% 25%; }
  .hero-scrim {
    background: linear-gradient(180deg,
      rgba(38, 32, 14, 0.35) 0%,
      rgba(38, 32, 14, 0.78) 55%,
      rgba(38, 32, 14, 0.92) 100%);
  }
  .hero-inner { padding: 48px 24px 56px; display: flex; align-items: flex-end; min-height: 640px; }
  .hero-copy { max-width: none; }
  .cta-row { justify-content: center; }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-links { justify-content: center; }
}

/* phones: the four screens become one swipeable row, next card peeking */
@media (max-width: 700px) {
  .journey-bouquet {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
    margin: 56px -24px 0;
    padding: 0 24px 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .journey-bouquet::-webkit-scrollbar { display: none; }
  .journey-phone { flex: 0 0 76%; width: auto; margin: 0; scroll-snap-align: center; }
  .journey-phone .phone-frame { max-width: 100%; }
  .journey-text { max-width: 100%; }

  .level-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; padding: 0 20px; }
}

/* the two store buttons stop fitting in the bar: icons only */
@media (max-width: 430px) {
  .badge-small .badge-label { display: none; }
  .badge-small { padding: 11px; }
  .nav-cta { gap: 8px; }
  .nav-login { padding: 7px 11px; }
}

/* a phone held sideways should not get a 640px hero on a 390px screen */
@media (max-width: 940px) and (orientation: landscape) {
  .hero, .hero-inner { min-height: 460px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important; }
}
