/* RepMax site chrome + components.
 *
 * Layout and component styles shared by every page. Tokens live in brand.css
 * and nothing here may introduce a raw color — if you need a new one, add it
 * there as a variable first.
 *
 * Written mobile-first: every base rule targets a ~390px iPhone, which is
 * where essentially all traffic lands (Instagram/TikTok bio link). Desktop is
 * layered on at min-width breakpoints.
 */

/* ---------------------------------------------------------------- header --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--scrim);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease;
}
.site-header[data-stuck='true'] { border-bottom-color: var(--border); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-family: var(--font-brand);
  font-size: 19px;
  letter-spacing: 0.4px;
  line-height: 1;
}
.wordmark:hover { text-decoration: none; }
.wordmark img { width: 26px; height: 26px; display: block; }

.site-header .btn { padding: 10px 18px; font-size: 14.5px; }

/* ------------------------------------------------------------------ hero --- */

.hero {
  position: relative;
  padding: 44px 0 8px;
}
/* Accent bloom behind the headline — pure CSS, no image payload.
 * Width is 100vw capped at 760px and centred on the viewport (the .wrap is
 * itself centred), so it never adds horizontal scroll and never shows a hard
 * clipped edge. */
.hero::before {
  content: '';
  position: absolute;
  top: -190px;
  left: 50%;
  width: 100vw;
  max-width: 760px;
  height: 480px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--accent-glow), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  padding: 7px 14px 7px 11px;
  border: 1px solid var(--accent-edge);
  background: var(--accent-wash);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--text);
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-wash);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(52px, 15.5vw, 88px);
  line-height: 0.9;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 0 18px;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  font-size: 17.5px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 34ch;
  margin: 0 0 26px;
}
.hero__lede strong { color: var(--text); font-weight: 600; }

.cta-stack { display: flex; flex-direction: column; gap: 10px; }

/* Apple glyph + two-line label, the way the real badge reads. */
.btn-store { padding: 15px 26px; }
.btn-store svg { width: 20px; height: 24px; flex: none; }
.btn-store span { display: block; text-align: left; line-height: 1.15; }
.btn-store span small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  opacity: 0.78;
}

.cta-note {
  margin: 14px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-faint);
}
.cta-note a { color: var(--text-muted); text-decoration: underline; }

/* ------------------------------------------------------------ proof row --- */

.proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.proof li {
  background: var(--surface);
  padding: 16px 12px;
  text-align: center;
}
.proof b {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: 0.5px;
}
.proof span {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --------------------------------------------------------------- section --- */

.section { padding: 62px 0 0; }

.section__head { margin-bottom: 26px; }
.section__head h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 8.4vw, 46px);
  line-height: 1.02;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 0 10px;
  text-wrap: balance;
}
.section__head p {
  margin: 0;
  color: var(--text-muted);
  max-width: 46ch;
  font-size: 16.5px;
}
.section__label {
  display: block;
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent-text);
}

/* -------------------------------------------------------------- features --- */

.features { display: grid; gap: 14px; }

.feature {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
}
.feature h3 {
  margin: 0 0 7px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.1px;
}
.feature p { margin: 0; color: var(--text-muted); font-size: 15.5px; line-height: 1.55; }

.feature__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--accent-wash);
  border: 1px solid var(--accent-edge);
  color: var(--accent);
}
.feature__icon svg { width: 20px; height: 20px; }

/* The lead card carries the gradient edge so the grid has a clear entry point. */
.feature--lead {
  background:
    linear-gradient(180deg, var(--accent-wash), transparent 58%),
    var(--surface);
  border-color: var(--accent-edge);
}

.feature__list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
  font-size: 15px;
  color: var(--text-muted);
}
.feature__list li { display: flex; gap: 10px; align-items: flex-start; }
.feature__list li::before {
  content: '';
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ------------------------------------------------------------- shotstrip --- */

.shots {
  display: flex;
  gap: 14px;
  margin: 26px 0 0;
  padding: 4px var(--gutter) 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  /* Bleed to the screen edges on mobile so the strip reads as scrollable. */
  margin-inline: calc(-1 * var(--gutter));
  scrollbar-width: none;
}
.shots::-webkit-scrollbar { display: none; }

.shot {
  flex: none;
  width: 196px;
  scroll-snap-align: center;
}
.phone {
  position: relative;
  aspect-ratio: 9 / 19.5;
  border-radius: 30px;
  padding: 7px;
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lift);
}
.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, var(--fill-subtle), transparent 45%),
    var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone__screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Shown until a real screenshot replaces it. Intentionally quiet. */
.phone__placeholder {
  padding: 9px 14px;
  border: 1px dashed var(--border-strong);
  border-radius: 999px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.4px;
  line-height: 1.5;
  color: var(--text-faint);
}
.shot figcaption {
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

/* ------------------------------------------------------------------ band --- */

.band {
  margin-top: 62px;
  padding: 36px 24px 38px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--accent-edge);
  background:
    radial-gradient(120% 130% at 50% 0%, var(--accent-wash), transparent 64%),
    var(--surface);
  text-align: center;
}
.band h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 9vw, 52px);
  line-height: 0.98;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.band p { margin: 0 auto 24px; color: var(--text-muted); max-width: 38ch; }
.band .cta-stack { align-items: stretch; }
.band .cta-note { text-align: center; }

/* ---------------------------------------------------------------- footer --- */

.site-footer {
  margin-top: 64px;
  padding: 30px 0 40px;
  border-top: 1px solid var(--border);
}
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: 20px;
  padding: 0;
  list-style: none;
}
.site-footer__nav a {
  color: var(--text-muted);
  font-size: 15.5px;
  font-weight: 500;
}
.site-footer__nav a:hover { color: var(--text); }
.site-footer small {
  display: block;
  color: var(--text-faint);
  font-size: 13.5px;
  line-height: 1.6;
}
.site-footer small + small { margin-top: 6px; }

/* ------------------------------------------------------------------ dock --- */
/* Persistent download bar on small screens. Revealed once the hero CTA
 * scrolls away, so it never competes with the hero's own button. */

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--scrim);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  transform: translateY(130%);
  transition: transform 220ms ease;
}
.dock[data-shown='true'] { transform: translateY(0); }
@media (min-width: 760px) { .dock { display: none; } }
/* Set on <body> of pages that render a dock, so it can never cover the last
 * line of the footer. Deliberately a class rather than :has() — no support
 * question, and only one page needs it. */
@media (max-width: 759px) { .has-dock { padding-bottom: 92px; } }

/* ----------------------------------------------------------------- legal --- */

.legal-hero { padding: 34px 0 0; }
.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 11vw, 62px);
  line-height: 0.98;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.legal-hero .updated {
  margin: 0;
  color: var(--text-faint);
  font-size: 14.5px;
}

.tldr {
  margin: 24px 0 0;
  padding: 20px 20px 6px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--fill-subtle);
}
.tldr h2 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent-text);
}
.tldr ul { margin: 0; padding: 0 0 0 2px; list-style: none; }
.tldr li {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.5;
}
.tldr li::before { content: '—'; color: var(--accent-text); flex: none; }

/* Anchor chips: a horizontally scrollable contents row on mobile. */
.toc {
  display: flex;
  gap: 8px;
  margin: 26px 0 0;
  padding: 2px var(--gutter) 6px;
  margin-inline: calc(-1 * var(--gutter));
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}
.toc::-webkit-scrollbar { display: none; }
.toc a {
  display: block;
  white-space: nowrap;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--fill-subtle);
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
}
.toc a:hover { color: var(--text); background: var(--fill-soft); text-decoration: none; }

.legal { padding-top: 8px; }
.legal section { scroll-margin-top: 76px; padding-top: 34px; }
.legal h2 {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin: 0 0 12px;
}
.legal h2 .num {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--accent-text);
  flex: none;
  transform: translateY(-1px);
}
.legal h3 {
  margin: 24px 0 8px;
  font-size: 16.5px;
  font-weight: 700;
}
.legal p, .legal li { color: var(--text-muted); font-size: 16px; }
.legal p { margin: 0 0 14px; }
.legal ul, .legal ol { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--text); font-weight: 600; }

.callout {
  margin: 0 0 14px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--accent-edge);
  background: var(--accent-wash);
}
.callout p { margin: 0; color: var(--text); font-size: 15.5px; }
.callout p + p { margin-top: 10px; }

/* Data inventory: cards on mobile, a real table from 700px up. */
.inventory { display: grid; gap: 12px; margin: 0 0 14px; }
.inventory__head { display: none; }
.inventory__row {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px 18px 14px;
}
.inventory__row h4 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.inventory__row dl { margin: 0; }
.inventory__row dt {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-faint);
}
.inventory__row dd {
  margin: 2px 0 10px;
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* -------------------------------------------------------------- support --- */

.support-grid { display: grid; gap: 14px; margin-top: 26px; }

.contact-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--accent-edge);
  background:
    linear-gradient(180deg, var(--accent-wash), transparent 62%),
    var(--surface);
  padding: 24px 22px;
}
.contact-card h2 { margin: 0 0 8px; font-size: 20px; font-weight: 700; }
.contact-card p { margin: 0 0 18px; color: var(--text-muted); font-size: 15.5px; }
.contact-card .email {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  word-break: break-all;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-decoration-color: var(--accent-text);
}

.feature .checklist, .contact-card .checklist { margin-top: 16px; }
.checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.checklist li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.5;
}
.checklist li::before {
  content: '';
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  border-radius: 5px;
  border: 1.5px solid var(--accent-edge);
  background: var(--accent-wash);
}

/* FAQ — native disclosure, no JS. */
.faq { display: grid; gap: 10px; margin-top: 20px; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 18px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.faq__body { padding: 0 18px 18px; }
.faq__body p { margin: 0 0 10px; color: var(--text-muted); font-size: 15.5px; line-height: 1.6; }
.faq__body p:last-child { margin-bottom: 0; }
.faq__body ol { margin: 0 0 10px; padding-left: 20px; color: var(--text-muted); font-size: 15.5px; }
.faq__body li { margin-bottom: 6px; }

/* ============================================================ breakpoints = */

@media (min-width: 560px) {
  .cta-stack { flex-direction: row; flex-wrap: wrap; }
  .cta-stack .btn { flex: none; }
  .shot { width: 214px; }
}

@media (min-width: 700px) {
  /* Inventory becomes a true three-column table. */
  .inventory {
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
  }
  .inventory__row {
    display: grid;
    grid-template-columns: 0.8fr 1.15fr 1.15fr;
    gap: 18px;
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;
    padding: 18px 20px;
  }
  .inventory__row:first-child { border-top: 0; }

  .inventory__head {
    display: grid;
    grid-template-columns: 0.8fr 1.15fr 1.15fr;
    gap: 18px;
    padding: 13px 20px;
    background: var(--fill-subtle);
  }
  .inventory__head span {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-faint);
  }
  .inventory__row h4 { grid-column: 1; margin: 0; }
  .inventory__row dl { display: contents; }
  .inventory__row dt {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .inventory__row dd { margin: 0; }
}

@media (min-width: 760px) {
  .site-header__inner { height: 72px; }
  .wordmark { font-size: 21px; }
  .wordmark img { width: 30px; height: 30px; }

  .hero { padding: 76px 0 14px; }
  .hero__lede { font-size: 19px; max-width: 46ch; }
  .proof { margin-top: 48px; }
  .proof b { font-size: 32px; }

  .section { padding: 92px 0 0; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature { padding: 28px 26px; }
  .feature--lead { grid-column: span 2; }
  .feature--lead .feature__list { grid-template-columns: repeat(2, 1fr); }

  .band { margin-top: 92px; padding: 56px 40px 58px; }
  .site-footer { margin-top: 92px; padding: 36px 0 56px; }

  .legal-hero { padding: 54px 0 0; }
  .legal section { padding-top: 44px; }
  .support-grid { grid-template-columns: repeat(2, 1fr); }
  .support-grid > .contact-card { grid-column: span 2; }
}

@media (min-width: 1000px) {
  .hero { padding: 96px 0 20px; }
  .hero::before { left: 30%; top: -150px; }
  .hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
  }
  .hero__grid .shots {
    margin: 0;
    padding: 18px 0;
    overflow: visible;
  }
  .hero__grid .shot { width: auto; }
  .hero__grid .shot:nth-child(n + 3) { display: none; }
  .hero__grid .shot:nth-child(2) { transform: translateY(26px) scale(0.94); }
}
