/* ========== MARKETING PAGES (/, /coach, signed-in client on web) ==========
   Follows Branding/LockingIn-Brand-Guidelines.pdf: Ink and surfaces carry the
   page, lime is one signal per view, SF Pro for words and SF Pro Rounded for
   numbers. The logo is the app icon, never redrawn and never a wordmark. */

.lp {
  min-height: 100vh;
  background: var(--surface-0);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.lp a { text-decoration: none; }
.lp a:not(.lp-btn) { color: inherit; }

/* ---- type ---- */
.lp-label {
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
  margin: 0 0 var(--space-sm);
}
.lp-label-muted { color: var(--text-secondary); }

.lp-display {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0 0 var(--space-lg);
}
.lp-display-md {
  font-size: var(--fs-hero-md);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.lp-headline {
  font-family: var(--font-display);
  font-size: var(--fs-headline);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-md);
}

.lp-lede {
  font-size: var(--fs-lede);
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 34em;
  margin: 0 0 var(--space-xl);
}

.lp-body {
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}
.lp-body-lg { font-size: var(--fs-lg); }
.lp-body strong { color: var(--text-primary); font-weight: 600; }

.lp-caption {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  margin: var(--space-sm) 0 0;
}

.lp-num {
  font-family: var(--font-rounded);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}
.lp-num-xl { font-size: var(--fs-number-xl); line-height: 1; letter-spacing: -0.01em; }
.lp-num-lg { font-size: var(--fs-3xl); }

/* ---- nav ---- */
.lp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--space-md) var(--space-md);
}

.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.lp-brand-icon { width: 32px; height: 32px; display: block; }
.lp-brand-tag {
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--text-secondary);
}

.lp-nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.lp-nav-link {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  transition: color var(--dur-fast);
}
.lp-nav-link:hover { color: var(--text-primary); }

@media (max-width: 599px) {
  .lp-hide-sm { display: none; }
}

/* ---- buttons ---- */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--space-lg);
  border-radius: var(--radius-control);
  font: inherit;
  font-size: var(--fs-base);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.lp-btn-sm { min-height: 36px; padding: 0 var(--space-md); font-size: var(--fs-md); }
.lp-btn-primary { background: var(--lime); color: var(--text-on-lime); }
.lp-btn-primary:hover { background: var(--lime-hover); }
.lp-btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--hairline-strong);
}
.lp-btn-ghost:hover { background: var(--fill-soft); }

.lp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.lp-actions-center { justify-content: center; }

/* ---- store badges (official artwork, unmodified, equal heights) ---- */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
}
.store-badges-center { justify-content: center; }
.store-badge { display: block; line-height: 0; }
.store-badge img { height: 48px; width: auto; display: block; }

/* ---- notice ---- */
.lp-notice {
  max-width: 1120px;
  margin: 0 auto var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-control);
  background: var(--surface-2);
  border: 1px solid var(--hairline-strong);
  font-size: var(--fs-base);
}
.lp-notice.is-hidden { display: none; }

/* ---- hero ---- */
.lp-hero {
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-md) var(--space-2xl);
}
@media (min-width: 900px) {
  .lp-hero { grid-template-columns: 1.15fr 1fr; padding-top: 5rem; padding-bottom: 5rem; }
  .lp-hero-solo { grid-template-columns: minmax(0, 760px); }
}

/* ---- phone ---- */
.lp-hero-visual { display: flex; justify-content: center; }

.lp-phone {
  width: min(320px, 100%);
  padding: 10px;
  border-radius: 48px;
  background: var(--surface-3);
  border: 1px solid var(--hairline-strong);
}
.lp-phone-screen {
  border-radius: 38px;
  background: var(--surface-0);
  padding: var(--space-2xl) var(--space-lg) var(--space-lg);
  display: flex;
  flex-direction: column;
  min-height: 560px;
}
.lp-phone-title {
  font-size: var(--fs-2xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-xl);
}
.lp-phone-set {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
}
.lp-phone-unit {
  font-family: var(--font-rounded);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--text-secondary);
}
.lp-phone-x {
  font-size: var(--fs-3xl);
  color: var(--text-secondary);
  padding: 0 var(--space-2xs);
}
.lp-phone-stat,
.lp-phone-rest {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-card);
  background: var(--surface-2);
}
.lp-phone-stat { margin-top: var(--space-xl); }
.lp-phone-stat .lp-label,
.lp-phone-rest .lp-label { margin: 0; }
.lp-phone-cta {
  margin-top: auto;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-control);
  background: var(--lime);
  color: var(--text-on-lime);
  font-weight: 600;
  font-size: var(--fs-lg);
}

/* ---- sections ---- */
.lp-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-md);
  border-top: 1px solid var(--hairline);
}

.lp-grid {
  display: grid;
  gap: var(--space-md);
}
@media (min-width: 640px) { .lp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .lp-grid { grid-template-columns: repeat(4, 1fr); }
  .lp-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.lp-card {
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
}
.lp-card .lp-label { color: var(--text-secondary); }
.lp-card-title {
  font-size: var(--fs-xl);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 var(--space-xs);
}

.lp-split {
  display: grid;
  gap: var(--space-xl);
  align-items: end;
}
.lp-split .lp-body { max-width: 36em; }
@media (min-width: 900px) {
  .lp-split { grid-template-columns: 1.4fr 1fr; padding-top: 4rem; padding-bottom: 4rem; }
  .lp-split .lp-actions { justify-content: flex-end; }
}

.lp-final {
  text-align: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.lp-final .lp-body { margin-bottom: var(--space-xl); }
.lp-final-icon { display: block; margin: 0 auto var(--space-lg); }

/* ---- footer ---- */
.lp-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md) var(--space-2xl);
  border-top: 1px solid var(--hairline);
}
.lp-footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.lp-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 600;
}
.lp-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-lg);
  font-size: var(--fs-md);
}
.lp-footer-links a { color: var(--text-secondary); transition: color var(--dur-fast); }
.lp-footer-links a:hover { color: var(--text-primary); }
.lp-legal {
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--text-secondary);
  margin: var(--space-lg) 0 0;
  max-width: 60em;
}

/* ---- signed-in client on the web ---- */
.lp-centered {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-md);
}
.lp-app-only {
  max-width: 440px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}
.lp-app-only .lp-headline { font-size: var(--fs-3xl); margin: var(--space-xs) 0 0; }
.lp-app-only .lp-body { margin-bottom: var(--space-xs); }
.lp-app-only .lp-btn { margin-top: var(--space-lg); }

/* Initial hidden state; JS shows these with an inline display, which wins. */
.lp.is-hidden { display: none; }

.lp-hero-copy { min-width: 0; }

/* ---- /app ---- */
.lp-get {
  max-width: 560px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-md) 4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lp-get-icon { width: 128px; height: 128px; display: block; margin-bottom: var(--space-xl); }
.lp-get .lp-body { margin-bottom: var(--space-xl); }
.lp-get .store-badge img { height: 56px; }
.lp-get .store-badge-secondary { opacity: 0.6; }
.lp-get .store-badge-secondary img { height: 44px; }
.lp-get-qr {
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lp-get-qr img {
  display: block;
  padding: var(--space-sm);
  background: var(--text-primary);
  border-radius: var(--radius-card);
  box-sizing: content-box;
}
.lp-get > .lp-caption:last-child { margin-top: var(--space-xl); max-width: 30em; }
