/* ────────────────────────────────────────────────────────────────────────
   pacr.life — site styles · acid system
   Tokens come from /brand-acid/tokens.css (link it before this file).
   Component recipes lifted from brand-acid/design-system/index.html.
   ──────────────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px; /* sticky nav height */
}

body {
  margin: 0;
  background: var(--pitch);
  color: var(--paper);
  font: 400 var(--text-body)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
[hidden] { display: none !important; }

::selection { background: var(--acid); color: var(--ink); }
:focus-visible { outline: 2px solid var(--acid); outline-offset: 2px; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

/* ── type recipes ──────────────────────────────────────────────────── */

.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 0.9;
  margin: 0;
}
.skew {
  display: inline-block;
  transform: skewX(-6deg);
  padding-right: 0.08em; /* keep the italic terminal from clipping */
}

.mono-label {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.mono-label--acid { color: var(--acid); }
.t-paper { color: var(--paper); }
.t-acid { color: var(--acid); }

.tape {
  display: inline-block;
  padding: 4px 10px 3px;
  background: var(--acid);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  clip-path: polygon(2% 0, 98% 0, 100% 50%, 98% 100%, 2% 100%, 0 50%);
}
/* ink on flare, not paper — paper fails AA at tape size (2.99:1) */
.tape--flare { background: var(--flare); color: var(--ink); }
.tape--ink { background: var(--ink); color: var(--acid); }

.stripes {
  height: 10px;
  background-image: repeating-linear-gradient(-98deg, var(--acid) 0 6px, transparent 6px 12px);
}

/* ── buttons & links ───────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--acid);
  color: var(--ink);
  border: 0;
  border-radius: var(--radius-none);
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--acid-pressed); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn--sm { font-size: 18px; padding: 10px 14px; }
.btn--full { width: 100%; justify-content: space-between; }

.link-quiet {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 3px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.link-quiet:hover { color: var(--acid); border-color: var(--acid); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--acid);
  color: var(--ink);
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
}
.skip:focus { left: 0; }

/* ── nav ───────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--pitch);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
}
.nav-wordmark { display: inline-flex; }
.nav-wordmark img {
  /* 42px box → 32px visible glyphs (svg carries ~24% internal padding);
     the negative margin cancels the left pad so the mark sits flush */
  height: 42px;
  width: auto;
  margin-left: -26px;
}
.nav-links { display: flex; align-items: center; gap: 24px; }

/* ── hero ──────────────────────────────────────────────────────────── */

.hero { padding: clamp(56px, 10vh, 112px) 0 clamp(56px, 8vw, 88px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(28px, 3.5vw, 56px);
  align-items: stretch;
}
.hero-eyebrow { margin: 0 0 22px; display: block; }
.hero-logo {
  /* --w = glyph width target, sized to match the headline's rendered width
     (≈4.74em of the h1 size). The wordmark svg carries internal padding —
     glyphs span x 226–974 of 1200 — so oversize by 1.606 and pull left/top
     to align the visible letters with the text edge. */
  --w: clamp(240px, 38vw, 455px);
  width: calc(var(--w) * 1.606);
  max-width: none; /* the oversize + negative margins do the cropping */
  height: auto;
  margin: calc(var(--w) * -0.063) 0 8px calc(var(--w) * -0.303);
}
.hero-h1 {
  font-size: clamp(46px, 7.5vw, 84px); /* sized to stay 2 lines beside the photo */
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--acid);
}
.hero-sub {
  margin: 26px 0 0;
  font-size: 18px;
  line-height: 1.6;
  max-width: 44ch;
}
.hero-ctas {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-meta { display: block; margin-top: 40px; }

.hero-photo { margin: 0; display: flex; flex-direction: column; }
.photo {
  position: relative;
  flex: 1 1 auto;       /* fill the hero height (matches the copy column) */
  min-height: 380px;
  border: 1px solid var(--hairline);
  overflow: hidden;
}
.photo picture { display: block; width: 100%; height: 100%; }
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 50%; /* bias to the group so no runner is cropped */
  display: block;
}
/* tactical corners — cream HUD frame over the photo (handoff: use sparingly) */
.photo::before, .photo::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  z-index: 1;
}
.photo::before {
  top: 8px; left: 8px;
  border-top: 2px solid var(--paper);
  border-left: 2px solid var(--paper);
}
.photo::after {
  bottom: 8px; right: 8px;
  border-bottom: 2px solid var(--paper);
  border-right: 2px solid var(--paper);
}
.ph-scrim-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--pitch); /* solid ink scrim behind text on photos */
  padding: 8px 12px;
}
.photo-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
}

/* ── sections ──────────────────────────────────────────────────────── */

.section {
  border-top: 1px solid var(--hairline);
  padding: clamp(64px, 9vw, 96px) 0;
}
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .mono-label { display: block; margin-bottom: 16px; }
.section-h { font-size: clamp(40px, 6vw, 64px); }
.section-lead {
  margin: 20px 0 0;
  max-width: 56ch;
  color: var(--dim);
  font-size: 17px;
}

/* ── what pacr is ──────────────────────────────────────────────────── */

.three-up {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
}
.three-up article { border-top: 1px solid var(--hairline); padding-top: 18px; }
.point-num { display: block; }
.three-up h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 0.9;
  font-size: 26px;
  margin: 12px 0 10px;
}
.three-up p {
  margin: 0;
  color: var(--dim);
  font-size: 15.5px;
  line-height: 1.65;
}

/* ── the runs / cities ─────────────────────────────────────────────── */

.cities {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--hairline);
}
.city {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: 0;
  border-top: 1px solid var(--hairline);
  padding: 18px 4px;
  text-align: left;
  transition: padding-left 0.18s ease;
}
.city:hover { padding-left: 16px; }
.city:hover .city-name { color: var(--acid); }
.city-name {
  font-size: clamp(34px, 5vw, 52px);
  transition: color 0.15s ease;
}
.city-status { white-space: nowrap; }
.city-status--active { color: var(--acid); }
.cities-note { margin: 16px 0 0; font-size: 13.5px; color: var(--dim); }

/* ── app preview ───────────────────────────────────────────────────── */

.phones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 64px);
  max-width: 880px;
}
.phone-fig { margin: 0; }
.phone {
  aspect-ratio: 9 / 19.5; /* exact frame per handoff §7 — swap inner for real shot */
  width: min(100%, 300px);
  border: 1px solid var(--hairline);
  background: var(--deep);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ph-kicker { margin-top: 10px; }
.ph-workout { font-size: clamp(34px, 4vw, 42px); }
.ph-note {
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: var(--dim);
}
.ph-cta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--acid);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 18px;
  letter-spacing: -0.01em;
  padding: 12px 14px;
}
.ph-cta--ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--hairline);
}
.phone-fig figcaption {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--dim);
  max-width: 34ch;
}

/* ── social proof (the one cream section) ──────────────────────────── */

.section--paper {
  background: var(--paper);
  color: var(--ink);
  border-top: 0;
}
.section--paper .section-lead { color: var(--dim-ink); }
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 48px);
}
.quotes blockquote {
  margin: 0;
  border-top: 1px solid var(--hairline-ink);
  padding-top: 18px;
}
.quotes p {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 500;
}
.quotes cite {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim-ink);
}

/* ── early access ──────────────────────────────────────────────────── */

.section--deep { background: var(--deep); }
.early-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

/* ── forms ─────────────────────────────────────────────────────────── */

.field { display: block; margin-bottom: 18px; }
.field-label {
  display: block;
  font: 500 13px/1 var(--font-body);
  color: var(--dim);
  margin-bottom: 8px;
}
.input {
  width: 100%;
  background: var(--pitch);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-none);
  color: var(--paper);
  padding: 12px 14px;
  font: 400 16px var(--font-body);
}
.input:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: -1px;
  border-color: var(--acid);
}
select.input {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23F2EFE6' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.seg { display: flex; gap: 8px; }
.seg label { flex: 1; }
.seg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.seg span {
  display: block;
  text-align: center;
  padding: 11px 8px;
  border: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.seg input:checked + span {
  background: var(--acid);
  color: var(--ink);
  border-color: var(--acid);
  font-weight: 700;
}
.seg input:focus-visible + span {
  outline: 2px solid var(--acid);
  outline-offset: 2px;
}

.hp { position: absolute; left: -9999px; width: 0; height: 0; opacity: 0; }
.form-fine { margin: 12px 0 0; font-size: 12.5px; color: var(--dim); }
.form-error { margin: 0 0 12px; font-size: 14px; color: var(--flare); }
.form-success h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 0.9;
  font-size: 30px;
  margin: 10px 0 12px;
}
.form-success p { margin: 0; color: var(--dim); font-size: 15px; line-height: 1.6; }

/* ── email-OTP club step ───────────────────────────────────────────── */
.field-opt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-left: 6px;
}
.otp-lead { margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: var(--dim); }
.otp-email { color: var(--paper); }
.otp-input {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 26px;
  letter-spacing: 0.6em;
  text-indent: 0.6em; /* offset trailing letter-spacing so digits stay centered */
  padding-block: 14px;
}
.otp-input::placeholder { letter-spacing: 0.3em; }
.otp-actions { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; }
.form-note { margin: 0 0 12px; font-size: 13.5px; color: var(--acid); }
button.link-quiet { background: none; border: 0; border-bottom: 1px solid var(--hairline); padding: 0 0 3px; cursor: pointer; }

/* ── club dialog ───────────────────────────────────────────────────── */

dialog.dialog {
  background: var(--pitch);
  color: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-none);
  padding: 0;
  width: min(92vw, 480px);
  max-height: min(92dvh, 760px);
  overflow-y: auto;
}
dialog.dialog::backdrop { background: rgba(10, 11, 8, 0.72); }
.dialog-inner { padding: 24px 24px 28px; }
.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.dialog-x {
  background: none;
  border: 1px solid var(--hairline);
  color: var(--dim);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 14px;
  line-height: 1;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.dialog-x:hover { color: var(--paper); border-color: var(--paper); }
.dialog-h { font-size: clamp(30px, 7vw, 38px); margin: 0 0 22px; }

/* ── footer ────────────────────────────────────────────────────────── */

.footer { border-top: 1px solid var(--hairline); }
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  padding: 48px 0 0;
}
.footer-brand img { height: 24px; width: auto; }
.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 40px 0 28px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ── responsive ────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .hero-photo { max-width: 520px; display: block; }
  .photo { aspect-ratio: 3 / 2; flex: none; min-height: 0; }
  .early-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .three-up { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .phones { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .nav-links .link-quiet { display: none; }
  .hero-ctas { gap: 20px; }
  .city { padding-block: 14px; }
  .seg { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
