/* caddyapp.golf landing page — layout/components only. Shared tokens live in styles.css. */

:root {
  --fairway: #092918;
  --night: #0E1012;
  --pine-ink: #062011;
  --cream-text: #EFEBE0;
  --cream-deep: #EEE9DE;
  --screen: #121415;
  --card-green: #121F19;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body.landing { background: var(--night); }
body.landing main { overflow-x: clip; }

/* Display type (Bebas) */
.display {
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin: 0;
  color: inherit; /* neutralize styles.css's h1,h2,.display color */
}

.eyebrow-l {
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 15px;
  margin: 0 0 12px;
}

/* Coming-soon note (revealed by JS, announced via aria-live) */
.coming-soon {
  min-height: 1.4em;
  margin: 12px 0 0;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease-out;
}
.coming-soon.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .coming-soon { transition: none; }
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100dvh;
  min-height: 760px;
  position: relative;
  overflow: hidden;
}
.hero__panel {
  display: flex;
  flex-direction: column;
  padding: 32px clamp(20px, 1.6vw, 40px) 0;
}
.hero__panel--app { background: var(--paper); color: var(--pine-ink); }
.hero__panel--live { background: var(--fairway); color: var(--cream-text); }

.hero__logo { color: var(--pine-ink); display: inline-block; }
.wordmark { display: block; width: 96px; height: 58px; fill: currentColor; }

.hero__nav {
  display: flex;
  justify-content: flex-end;
  gap: clamp(16px, 2.5vw, 40px);
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: 17px;
  letter-spacing: 0.12em;
}
.hero__nav a {
  color: var(--cream-text);
  text-decoration: none;
  padding-bottom: 6px;
}
.hero__nav a.is-active { border-bottom: 3px solid var(--green); }
.hero__nav a:hover { border-bottom: 3px solid var(--green); }

.hero__copy { margin-top: clamp(32px, 6vh, 72px); }
.hero__panel--app .hero__copy { padding-left: clamp(16px, 7.5vw, 130px); }
.hero__panel--live .hero__copy { padding-left: clamp(16px, 9.5vw, 170px); }

.hero__title { font-size: clamp(56px, 7.2vw, 128px); max-width: 7em; }
.hero__panel--app .hero__title { max-width: 4.6em; }
.hero__panel--live .hero__title { color: var(--cream-text); }

.hero__sub {
  max-width: 26em;
  margin: 10px 0 28px;                     /* half the old title→sub gap */
  font-size: clamp(15px, 1.25vw, 19px);    /* ~1px smaller */
  line-height: 1.5;
}
.hero__panel--app .hero__sub { color: var(--slate); }
.hero__panel--live .hero__sub { color: color-mix(in srgb, var(--cream-text) 75%, transparent); }

.hero__panel--app .coming-soon { color: var(--slate); }
.hero__panel--live .coming-soon { color: color-mix(in srgb, var(--cream-text) 75%, transparent); }

.hero .btn {
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: 19px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 9px 48px;                       /* half-height, more compact — lifts the phone */
}

.hero .cta { margin-bottom: 56px; }

.hero__bar {
  position: absolute;
  inset: auto 0 0 0;
  height: 40px;
  background: var(--night);
  z-index: 3;
}

/* ---------- Phone device frame ---------- */
.phone {
  width: min(360px, 82%);
  margin: clamp(-36px, -3vh, -16px) auto -60px; /* pulled up against the CTA; bottom bleeds behind the hero bar */
  background: #0B0D0C;
  border-radius: 56px;
  padding: 14px;
  box-shadow: 0 32px 80px rgb(0 0 0 / 0.35);
  position: relative;
  z-index: 1;
}
@media (min-width: 901px) {
  /* tightened so both phones clear the crop line at the fixed hero height */
  .hero__copy { margin-top: clamp(24px, 4vh, 56px); }
  .hero__sub { margin-bottom: 20px; }
  .hero .cta { margin-bottom: 40px; }
  .phone { margin-top: -52px; }
}
.phone__screen {
  background: var(--screen);
  border-radius: 44px;
  padding: 14px 18px 22px;
  color: #F2F0E9;
  font-family: "Inter", sans-serif;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1080 / 2346; /* real iPhone 17 Pro Max screen — both phones share it so they're identical height */
}
.phone__status {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  padding: 2px 8px 10px;
}
.phone__status-glyphs { letter-spacing: 2px; font-size: 11px; }
/* Real-screenshot fill (left phone): the shot carries its own status bar + island, so no padding/CSS chrome */
.phone__screen--photo { padding: 0; }
.phone__shot { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
/* Right phone (CSS scorecard) flows as a column so it fills the shared screen height:
   status pinned top, the counter floats in the middle, note + hole strip settle at the bottom. */
.phone__screen:not(.phone__screen--photo) { display: flex; flex-direction: column; }
.phone__screen:not(.phone__screen--photo) .live-counter { flex: 1 1 auto; align-content: center; }
.phone__island {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 84px; height: 22px;
  border-radius: 999px;
  background: #000;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}


/* ---------- Screen B: Caddy Live scorecard ---------- */
.live-head {
  display: grid; grid-template-columns: 24px 1fr 24px;
  align-items: center; text-align: center; margin-top: 8px;
}
.live-head__x, .live-head__gear { color: #9AA09B; font-size: 15px; }
.live-head__course { display: grid; gap: 3px; }
.live-head__name { font-size: 18px; color: #FFF; }
.live-head__meta { font-size: 11px; color: #9AA09B; }

.live-chips { display: flex; justify-content: center; gap: 16px; margin: 24px 0 16px; }
.live-chip {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: #1A1D1B; color: #E8E5DC;
  font-size: 13px; font-weight: 700;
  border: 2px solid transparent;
}
.live-chip.is-active { border-color: var(--green); color: var(--green); }

.live-counter {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; justify-items: center;
  padding: 22px 10px;
}
.live-counter__btn {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--green); color: var(--green);
  font-size: 24px;
}
.live-counter__num {
  display: grid; justify-items: center;
  width: 138px; height: 138px; border-radius: 50%;
  background: #1A1D1B; align-content: center;
}
.live-counter__num .display { font-size: 68px; color: #FFF; line-height: 1; }
.live-counter__hint { font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: #9AA09B; margin-top: 4px; }

.live-note {
  border: 1px solid #2C302D; border-radius: 999px;
  text-align: center; padding: 14px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: #F2F0E9; margin: 8px 2px 22px;
}

.live-strip { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.live-strip td { text-align: center; padding: 8px 2px; color: #C9C6BD; }
.live-strip td:first-child { text-align: left; color: #E8E5DC; text-transform: uppercase; font-size: 10px; letter-spacing: 0.06em; font-weight: 700; }
.live-strip__head td { color: #C9C6BD; font-weight: 700; }
.live-strip__head td:first-child { color: #E8E5DC; }
.live-strip td.is-now { background: var(--green); color: var(--deep-fairway); font-weight: 700; }
.live-strip tr:first-child td.is-now { border-radius: 6px 6px 0 0; }
.live-strip tr:last-child td.is-now { border-radius: 0 0 6px 6px; }

/* ---------- Bands (shared) ---------- */
.band { position: relative; }
.band__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(48px, 8vh, 96px) clamp(24px, 5vw, 80px);
}
.band__title { font-size: clamp(36px, 4vw, 64px); }
.band__sub { font-size: clamp(15px, 1.2vw, 18px); line-height: 1.6; margin: 20px 0 0; }

/* ---------- Band 1: manifesto ---------- */
.band--manifesto { background: var(--fairway); color: var(--cream-text); border-top: 2px solid var(--green); }
.band__caret { position: absolute; top: -1px; left: 50%; transform: translateX(-50%); width: 24px; height: 10px; }
.band__inner--manifesto {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.band--manifesto .band__sub { color: color-mix(in srgb, var(--cream-text) 75%, transparent); }

.scored { position: relative; display: inline-block; }
.squiggle { position: absolute; left: 0; bottom: -0.12em; width: 100%; height: 0.14em; }

.wordmark--emboss {
  width: clamp(180px, 22vw, 330px);
  height: auto; aspect-ratio: 5225 / 3125;
  color: #0B3320; /* slightly lighter than --fairway */
  filter: drop-shadow(1px 2px 1px rgb(0 0 0 / 0.45)) drop-shadow(-1px -1px 1px rgb(255 255 255 / 0.05));
}

/* ---------- Band 2: season ---------- */
.band--season { background: var(--cream-deep); color: var(--pine-ink); }
.band--season__eyebrow { color: var(--pine); }
.band--season .band__sub { color: var(--slate); }

.band__inner--split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}

.band__link {
  display: inline-block;
  margin-top: 24px;
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: 17px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
}
.band__link:hover { color: var(--pine); }

.tilt { transform: rotate(-4deg); }
.tilt--standings { margin-right: clamp(-260px, -14vw, -100px); }

.standings {
  background: var(--card-green);
  border-radius: 18px;
  padding: clamp(20px, 3vw, 36px) clamp(24px, 3.5vw, 48px);
  box-shadow: 0 30px 70px rgb(0 0 0 / 0.35);
  color: #E8E5DC;
}
.standings__head {
  display: flex; justify-content: space-between;
  font-family: "Bebas Neue", sans-serif;
  text-transform: uppercase; letter-spacing: 0.12em;
  font-size: clamp(14px, 1.3vw, 18px);
  color: var(--green);
  margin-bottom: 18px;
}
.standings__head span:last-child { color: #9AA09B; }
.standings__row {
  display: grid;
  grid-template-columns: 1.2em 44px 1fr auto;
  gap: 16px; align-items: center;
  padding: 14px 0;
  border-top: 1px solid rgb(255 255 255 / 0.07);
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.standings__mono {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: #E8E5DC; color: var(--card-green);
  font-size: 16px;
}
.standings__row span:last-child { color: var(--green); font-family: "Bebas Neue", sans-serif; font-size: clamp(20px, 2vw, 30px); }

/* ---------- Band 3: Caddy Live ---------- */
.band--live { background: var(--night); color: var(--cream-text); }
.band--live__eyebrow { color: var(--green); }
.band--live .band__sub { color: color-mix(in srgb, var(--cream-text) 70%, transparent); }
.band--live .band__link { color: var(--green); }

.tilt--card { transform: rotate(-3deg); margin-right: clamp(-260px, -14vw, -100px); }

.scorecard {
  background: var(--screen);
  border: 1px solid rgb(255 255 255 / 0.06);
  border-radius: 18px;
  padding: clamp(40px, 7vw, 96px) clamp(24px, 3vw, 44px); /* tuned for ~84% vertical fill at 1440 without ballooning at 700-1000px */
  box-shadow: 0 30px 70px rgb(0 0 0 / 0.5);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(32px, 5vw, 52px) clamp(20px, 3vw, 48px);
  align-items: center;
}
.scorecard__hole-num { font-size: clamp(26px, 2.6vw, 40px); color: #FFF; }
.scorecard__par { color: #9AA09B; text-transform: uppercase; letter-spacing: 0.1em; font-size: 13px; margin: 4px 0 0; }
.scorecard__counter { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 3vw, 48px); }
.scorecard__num {
  display: grid; place-items: center;
  width: clamp(90px, 9vw, 130px); height: clamp(90px, 9vw, 130px);
  border: 1.5px solid color-mix(in srgb, var(--green) 70%, transparent); border-radius: 50%;
  font-size: clamp(48px, 5vw, 72px); color: #FFF;
}
.scorecard .live-counter__btn {
  width: clamp(40px, 4vw, 56px); height: clamp(40px, 4vw, 56px);
  border: 1.5px solid color-mix(in srgb, var(--green) 70%, transparent);
}
.scorecard__next {
  grid-column: 1 / -1;
  border: 1px solid color-mix(in srgb, var(--green) 60%, transparent);
  border-radius: 999px;
  text-align: center;
  padding: 14px;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.12em; text-transform: uppercase;
  font-size: 16px;
}

/* ---------- Footer ---------- */
.footer { background: var(--night); color: var(--cream-text); border-top: 1px solid rgb(255 255 255 / 0.08); }
.footer__inner {
  max-width: 1240px; margin: 0 auto;
  padding: 28px clamp(24px, 5vw, 80px);
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
.wordmark--footer { width: 72px; height: 44px; color: var(--cream-text); }
.footer__right { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); }
.footer__nav {
  display: flex; gap: clamp(16px, 3vw, 40px);
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.12em; text-transform: uppercase; font-size: 14px;
  color: color-mix(in srgb, var(--cream-text) 70%, transparent);
}
.footer__nav a { color: inherit; text-decoration: none; }
.footer__nav a:hover { color: var(--green); }
.footer__copy {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.12em; text-transform: uppercase;
  font-size: 14px;
  color: color-mix(in srgb, var(--cream-text) 70%, transparent);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  /* hero becomes a flex column so the pinned bar can flow after both panels */
  .hero { display: flex; flex-direction: column; height: auto; min-height: 0; }
  .hero__panel--app { order: 1; }
  .hero__panel--live { order: 2; }
  .hero__bar { position: static; order: 3; }
  .hero__panel { padding-bottom: 0; }
  .hero__nav { justify-content: flex-start; flex-wrap: wrap; margin-top: 20px; }
  .hero__nav a { padding-top: 8px; }
  .hero__panel--app .hero__copy,
  .hero__panel--live .hero__copy { padding-left: 0; }
  .phone { margin-bottom: 0; width: min(320px, 88%); }

  .band__inner--manifesto { grid-template-columns: 1fr; }
  .wordmark--emboss { display: none; }

  .band__inner--split { grid-template-columns: 1fr; }
  .tilt { transform: rotate(-2deg); margin: 8px 0 0; }
  .band__link { padding: 12px 0; }

  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__nav a { padding: 15px 0; display: inline-block; }
}
