/* ============================================================
   Slotted Golf — landing page
   Marketing twin of the iOS app's "Range Instrument" design
   system (DesignSystem.swift). Zero dependencies, system fonts.
   ============================================================ */

:root {
  /* Ink */
  --canvas: #0B120F;
  --panel: #131B17;
  --panel-elevated: #18221D;
  --hairline: rgba(255, 255, 255, 0.08);

  /* Bone */
  --bone: #F2EFE7;
  --bone-2: rgba(242, 239, 231, 0.55);
  --bone-3: rgba(242, 239, 231, 0.35);

  /* Accents — turf is for CTAs, live values, active states ONLY */
  --turf: #C8F135;
  --amber: #E8A13A;
  --danger: #E85D4A;
  --teal: #26E0B0;

  /* Type */
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --fs-display: 34px;
  --fs-body: 15px;
  --fs-micro: 11px;

  /* Shape + space */
  --r-panel: 20px;
  --r-cta: 16px;
  --pad-panel: 16px;
  --gutter: 20px;
  --row-pad: 12px;

  --maxw: 66rem;
  --pad: clamp(20px, 5vw, 48px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  background: var(--canvas);
  color: var(--bone);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

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

/* ---------- shared type ---------- */

/* The signature 11px letterspaced-caps micro-label (app spec §3.2). */
.micro,
.kicker {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.kicker {
  color: var(--bone-2);
  margin-bottom: 1rem;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h2 { font-size: var(--fs-display); }

h2 em, h1 em {
  font-style: normal;
  color: var(--teal);
}

.num { font-variant-numeric: tabular-nums; }

/* ---------- buttons + chips ---------- */

/* Primary CTA: 56px tall, turf fill, 16px radius, micro-label ink text. */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  font-family: var(--sans);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--canvas);
  background: var(--turf);
  border: 0;
  border-radius: var(--r-cta);
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.btn-cta:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-cta:active { opacity: 1; transform: none; }
.btn-cta:disabled { opacity: 0.4; cursor: default; transform: none; }

/* Chip: pill, panelElevated fill, hairline stroke (turf when active). */
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--row-pad) 18px;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bone-2);
  background: var(--panel-elevated);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.chip:hover { color: var(--turf); border-color: var(--turf); }

/* ---------- panel ---------- */

.panel {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-panel);
  padding: var(--pad-panel);
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 88svh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  overflow: hidden;
}

/* Decorative double-backslash brand motif, teal, faint. */
.hero-marks {
  position: absolute;
  inset: 0 0 44px 0; /* stop above the metric strip */
  pointer-events: none;
  overflow: hidden;
}
.hero-marks svg { width: 100%; height: 100%; }

.mark-stroke {
  stroke: var(--teal);
  stroke-width: 26;
  stroke-linecap: round;
  opacity: 0;
  animation: mark-in 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.mark-2 { animation-delay: 0.18s; }

@keyframes mark-in {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 0.09; transform: none; }
}

/* topbar */

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gutter);
  padding: var(--gutter) var(--pad);
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }

.brand-lockup { height: 22px; width: auto; }

/* hero body */

.hero-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 48px var(--pad) 64px;
}

.hero-lockup {
  height: clamp(44px, 8vw, 84px);
  width: auto;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(var(--fs-display), 7vw, 64px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.hero-title em { color: var(--teal); font-style: normal; }

.hero-sub {
  max-width: 34rem;
  margin-top: 20px;
  font-size: clamp(var(--fs-body), 1.6vw, 17px);
  color: var(--bone-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--row-pad);
  margin-top: 32px;
}

.hero-actions .btn-cta { min-width: 240px; }

/* load-in reveals */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.d1 { animation-delay: 0.08s; }
.d2 { animation-delay: 0.18s; }
.d3 { animation-delay: 0.3s; }
.d4 { animation-delay: 0.42s; }

@keyframes rise { to { opacity: 1; transform: none; } }

/* metric ticker */

.metric-strip {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--hairline);
  overflow: hidden;
  padding: 14px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.metric-track {
  display: flex;
  gap: 36px;
  width: max-content;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--bone-2);
  white-space: nowrap;
  animation: ticker 28s linear infinite;
}

.metric-track i {
  font-style: normal;
  color: var(--teal);
  font-size: 8px;
  align-self: center;
  opacity: 0.7;
}

@keyframes ticker { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .reveal, .mark-stroke { animation: none; opacity: 1; transform: none; }
  .mark-stroke { opacity: 0.09; }
  .metric-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */

.how {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(64px, 10vw, 120px) var(--pad);
}

.section-head { max-width: 40rem; margin-bottom: clamp(40px, 6vw, 64px); }

.section-lede {
  margin-top: 16px;
  color: var(--bone-2);
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}

.step {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-panel);
  padding: calc(var(--pad-panel) + 8px) var(--pad-panel) var(--pad-panel);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.step:hover { transform: translateY(-4px); border-color: rgba(200, 241, 53, 0.4); }

.step-icon { width: 44px; height: 44px; color: var(--teal); margin-bottom: 20px; }

/* Ghost rank numeral (app spec §5.4). */
.step-num {
  position: absolute;
  top: 10px;
  right: var(--pad-panel);
  font-size: 48px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--bone);
  opacity: 0.08;
  line-height: 1;
}

.step h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.step p { color: var(--bone-2); }

/* ============================================================
   WHAT YOU GET
   ============================================================ */

.get {
  border-top: 1px solid var(--hairline);
  background: var(--canvas);
}

.get-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(64px, 10vw, 120px) var(--pad);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.get-list {
  list-style: none;
  margin-top: 32px;
  display: grid;
  gap: 24px;
}

.get-list li {
  display: grid;
  gap: 4px;
  padding-left: 20px;
  border-left: 2px solid var(--teal);
}

.get-list strong {
  font-size: 17px;
  font-weight: 600;
}

.get-list span { color: var(--bone-2); }

/* fit card — a Panel, like the app's results screen */

.fit-card {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-panel);
  padding: var(--pad-panel);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}

.fit-card-tag {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--bone-2);
  margin-bottom: 16px;
}

.fit-row {
  display: grid;
  grid-template-columns: 4.2rem 1fr auto;
  align-items: center;
  gap: var(--row-pad);
  padding: var(--row-pad) 0;
  border-bottom: 1px solid var(--hairline);
}

.fit-label {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--bone-2);
}

.fit-band {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: var(--panel-elevated);
  box-shadow: inset 0 0 0 1px var(--hairline);
  overflow: hidden;
}

/* Live values render turf, per the accent rule. */
.fit-band i {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--lo);
  right: calc(100% - var(--hi));
  border-radius: 999px;
  background: var(--turf);
}

.fit-value {
  font-size: var(--fs-body);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--turf);
}

.fit-club {
  margin-top: 16px;
  padding: var(--pad-panel);
  border-radius: var(--r-cta);
  background: var(--panel-elevated);
  border: 1px solid var(--hairline);
  display: grid;
  gap: 2px;
}

.fit-club-label {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--teal);
}

.fit-club-name { font-size: 17px; font-weight: 600; }

.fit-club-note { font-size: 13px; color: var(--bone-2); }

/* ============================================================
   HONESTY
   ============================================================ */

.honesty {
  border-top: 1px solid var(--hairline);
  background: var(--panel);
}

.honesty-inner {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(64px, 10vw, 120px) var(--pad);
  text-align: center;
}

.honesty-mark {
  width: 44px;
  height: 44px;
  margin: 0 auto 20px;
  color: var(--teal);
}

.honesty-lede {
  margin-top: 20px;
  font-size: clamp(var(--fs-body), 1.8vw, 18px);
  line-height: 1.7;
  color: var(--bone-2);
}

.honesty-points {
  list-style: none;
  margin-top: 36px;
  display: grid;
  gap: var(--row-pad);
  text-align: left;
}

.honesty-points li {
  padding: var(--pad-panel);
  border-radius: var(--r-cta);
  background: var(--panel-elevated);
  border: 1px solid var(--hairline);
  color: var(--bone-2);
}

.honesty-points strong { color: var(--bone); font-weight: 600; }

/* ============================================================
   WAITLIST
   ============================================================ */

.waitlist {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
}

.waitlist-inner {
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(72px, 11vw, 128px) var(--pad);
  text-align: center;
}

.waitlist-sub {
  margin-top: 16px;
  color: var(--bone-2);
}

.wl-form {
  margin-top: 36px;
  display: flex;
  gap: var(--row-pad);
  justify-content: center;
}

.wl-input {
  flex: 1;
  min-width: 0;
  max-width: 22rem;
  min-height: 56px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--bone);
  background: var(--panel-elevated);
  border: 1px solid var(--hairline);
  border-radius: var(--r-cta);
  padding: 0 20px;
  outline: none;
  transition: border-color 0.2s ease;
}

.wl-input::placeholder { color: var(--bone-3); }

.wl-input:focus { border-color: var(--turf); }

.wl-btn { flex-shrink: 0; }

.wl-status {
  margin-top: 16px;
  min-height: 22px;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--turf);
}
.wl-status.error { color: var(--danger); }

.wl-note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--bone-3);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  border-top: 1px solid var(--hairline);
  background: var(--canvas);
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 36px var(--pad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--gutter);
}

.footer .brand-lockup { height: 18px; }

.footer-line {
  font-size: 13px;
  color: var(--bone-2);
}

.footer-line a {
  color: var(--teal);
  text-decoration-color: rgba(38, 224, 176, 0.35);
  transition: color 0.2s ease;
}
.footer-line a:hover { color: var(--turf); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 880px) {
  .get-grid { grid-template-columns: 1fr; }
  .fit-card { max-width: 30rem; }
}

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .wl-form { flex-direction: column; align-items: stretch; }
  .wl-input { max-width: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-cta { min-width: 0; }
  .hero-actions .chip { justify-content: center; }
}
