/* LiftTracker site — minimal, native-feel, dark-mode first-class.
   Shared by all pages: / (landing), /privacy/, /support/. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --accent: #34c759;
  --card: #f5f5f7;
  --rule: rgba(0, 0, 0, 0.08);
  --badge-stroke: transparent;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0d10;
    --fg: #f4f5f7;
    --muted: #9aa0a8;
    --accent: #30d158;
    --card: #17181c;
    --rule: rgba(255, 255, 255, 0.1);
    --badge-stroke: rgba(255, 255, 255, 0.3);
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.wordmark {
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2.5rem;
}
.wordmark a { color: var(--muted); text-decoration: none; }
.wordmark a:hover { color: var(--fg); }

/* ---------- Landing page ---------- */

.landing main {
  max-width: 68rem;
  padding-top: 1rem;
}

.nav {
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.4rem 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-decoration: none;
}
.nav-cta {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--rule);
  border-radius: 980px;
  background: var(--card);
}
.nav-cta:hover { border-color: var(--accent); }

/* Hero */
.hero {
  display: grid;
  gap: 3rem;
  align-items: center;
  text-align: center;
  padding: 3rem 0 4rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
}
.hero .tagline {
  margin-top: 1rem;
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 550;
  color: var(--accent);
}
.hero .lede {
  margin-top: 0.9rem;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  color: var(--muted);
  max-width: 30rem;
  margin-left: auto;
  margin-right: auto;
}
.store { margin-top: 2.25rem; }
.cta-note {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.cta-note a { color: var(--accent); text-decoration: none; }
.cta-note a:hover { text-decoration: underline; }

.badge-link { display: inline-block; transition: transform 0.15s ease; }
.badge-link:hover { transform: scale(1.03); }
.appstore { height: 52px; width: auto; display: block; }
.appstore .badge-bg { stroke: var(--badge-stroke); }
.appstore text { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif; }

@media (min-width: 920px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    text-align: left;
    padding-top: 4rem;
  }
  .hero .lede { margin-left: 0; }
}

/* Phone mockup — fixed dark, like the gym */
.hero-visual { text-align: center; }
.visual-note {
  margin-top: 1.1rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.phone {
  width: min(320px, 84vw);
  margin: 0 auto;
  background: #050607;
  border-radius: 52px;
  padding: 11px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35), 0 6px 18px rgba(0, 0, 0, 0.18);
  text-align: left;
}
.screen {
  position: relative;
  background: #0b0c0f;
  border-radius: 42px;
  padding: 12px 18px 10px;
  color: #f4f5f7;
  overflow: hidden;
}
.ph-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  padding: 2px 8px 0;
}
.ph-island {
  width: 84px;
  height: 24px;
  background: #000;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.ph-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding: 0 6px;
  text-align: center;
}
.ph-chev { width: 9px; height: 16px; color: #9aa0a8; }
.ph-counter { font-size: 15px; font-weight: 600; }
.ph-workout { font-size: 12px; color: #9aa0a8; margin-top: 1px; }
.ph-exname {
  text-align: center;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 24px;
}
.ph-note {
  text-align: center;
  font-size: 12.5px;
  color: #9aa0a8;
  margin-top: 3px;
}
.ph-weight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 2px 0;
}
.ph-steps { display: flex; flex-direction: column; gap: 10px; }
.ph-step {
  width: 46px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #17181c;
  border-radius: 13px;
  font-size: 15px;
  font-weight: 600;
  color: #e8e9ec;
}
.ph-big { text-align: center; }
.ph-number {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ph-unit { font-size: 12px; color: #9aa0a8; margin-top: 4px; }
.ph-pillrow { text-align: center; margin-top: 20px; }
.ph-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #17181c;
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 14px;
  font-weight: 600;
}
.ph-pill svg { color: #9aa0a8; }
.ph-rpe {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 8px 0;
  font-size: 14px;
  color: #9aa0a8;
  font-variant-numeric: tabular-nums;
}
.ph-rpe-x { font-size: 13px; }
.ph-rpe-sel {
  color: #30d158;
  font-size: 19px;
  font-weight: 700;
}
.ph-rpe-labels {
  display: flex;
  justify-content: space-between;
  margin: 3px 8px 0;
  font-size: 10px;
  color: #6e737c;
}
.ph-log {
  margin-top: 20px;
  background: #30d158;
  color: #04240f;
  border-radius: 14px;
  padding: 13px 0;
  text-align: center;
  font-size: 15.5px;
  font-weight: 650;
}
.ph-quiet {
  display: flex;
  justify-content: center;
  gap: 34px;
  margin-top: 12px;
  font-size: 13px;
  color: #9aa0a8;
}
.ph-tabs {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 14px -18px 0;
  padding: 9px 10px 2px;
}
.ph-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 9.5px;
  color: #6e737c;
}
.ph-tab svg { width: 19px; height: 19px; fill: currentColor; }
.ph-tab.active { color: #30d158; }

/* Feature cards */
.features {
  display: grid;
  gap: 1rem;
  padding: 1rem 0 2rem;
}
@media (min-width: 780px) {
  .features { grid-template-columns: repeat(3, 1fr); }
}
.feature {
  background: var(--card);
  border-radius: 20px;
  padding: 1.5rem;
}
.feature h2 {
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-top: 1.1rem;
}
.feature p {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Feature fragments — small UI echoes, monochrome + accent */
.frag {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 0.9rem;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;
  font-size: 0.85rem;
}
.frag-center { flex-direction: row; align-items: center; justify-content: center; gap: 0.6rem; }
.frag-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 550;
}
.frag-row.done { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--rule); }
.frag-row.now { font-weight: 650; }
.frag-meta {
  margin-left: auto;
  color: var(--muted);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.frag-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.frag-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  flex: none;
}
.frag-dot.idle { border-color: var(--rule); }
.frag-chip {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 0.35rem 0.6rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.frag-bigcheck {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  margin: 0 0.3rem;
}
.frag-spark { width: 100%; max-width: 220px; height: auto; }

/* Closing CTA */
.closer {
  text-align: center;
  padding: 3.5rem 0 2rem;
}
.closer h2 {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
}
.closer .badge-link { margin: 0 auto; }
.closer .appstore { margin: 0 auto; }

/* ---------- Content pages (privacy, support) ---------- */
.page h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.page .lede { color: var(--muted); margin-bottom: 2rem; }
.page .updated {
  color: var(--muted);
  font-size: 0.95rem;
  margin: -0.25rem 0 2rem;
}
.page h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2.5rem 0 0.75rem;
}
.page p { margin-bottom: 1rem; }
.page ul { margin: 0 0 1rem 1.25rem; }
.page li { margin-bottom: 0.5rem; }
a { color: var(--accent); }
.page a { text-decoration: none; }
.page a:hover { text-decoration: underline; }

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--muted);
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--fg); text-decoration: underline; }
footer .links a { margin-right: 1rem; }
