/* Shared stylesheet for the TrackReps SEO landing-page cluster.
   Visual language mirrors the homepage: dark background, Reps blue accent,
   rounded phone frames, real app screenshots, store badges. */

:root {
  --bg: #131925;
  --bg-soft: #1a212e;
  --panel: rgba(12, 16, 20, 0.36);
  --panel-strong: rgba(12, 16, 20, 0.5);
  --text: #f5f7fa;
  --muted: rgba(255, 255, 255, 0.68);
  --muted-strong: rgba(255, 255, 255, 0.82);
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.07);
  --accent: #2f9bf2;
  --accent-text: #8ed2ff;
  --accent-strong: #74c2ff;
  --success: #8cd990;
  --warn: #ffd181;
  --content-rail: 860px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(circle at top center, rgba(47, 155, 242, 0.12), transparent 30rem),
    linear-gradient(180deg, #171e2b 0%, #131925 42%, #101623 100%);
  overflow-x: hidden;
}

a {
  color: #74c2ff;
  text-decoration: none;
}

a:hover { color: #a6d8ff; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid #8ed2ff;
  outline-offset: 3px;
  border-radius: 10px;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.narrow {
  max-width: 760px;
  margin: 0 auto;
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.85rem 1.5rem;
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.nav.scrolled {
  background: rgba(23, 28, 34, 0.88);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  border: 0;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.button:hover {
  color: #fff;
  background: #268ee0;
  transform: translateY(-1px);
}

.button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.nav-cta {
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  font-weight: 650;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
}

.nav-cta svg {
  width: 16px;
  height: 16px;
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* ---------- Download modal ---------- */

body.download-open { overflow: hidden; }

.download-overlay[hidden] { display: none; }

.download-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.download-scrim {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 14, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.download-dialog {
  position: relative;
  width: calc(100vw - 2rem);
  max-width: 540px;
  padding: 1.55rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(23, 28, 34, 0.98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  outline: none;
}

.download-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  font: inherit;
  font-size: 1.25rem;
  line-height: 1;
}

.download-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.download-dialog h2 {
  margin: 0 2.6rem 0.35rem 0;
  color: #fff;
  font-size: 1.55rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.download-dialog p {
  max-width: none;
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.download-panel-content {
  display: grid;
  grid-template-columns: 148px 1fr;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.25rem;
  width: 100%;
}

.download-qr {
  display: grid;
  place-items: center;
  width: 148px;
  height: 148px;
  padding: 0.72rem;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
}

.download-qr img {
  display: block;
  width: 100%;
  height: 100%;
}

.download-panel-actions {
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
}

/* ---------- Store badges ---------- */

.store-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
}

.store-badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  border-radius: 11px;
}

.store-badge-link:focus-visible {
  outline: 2px solid #8ed2ff;
  outline-offset: 4px;
}

.store-badge-link img {
  display: block;
  max-width: none;
}

.store-badge-link.app-store { overflow: hidden; }

.store-badge-link.app-store img {
  width: auto;
  height: 52px;
}

.store-badge-link.google-play {
  width: 175px;
  overflow: hidden;
}

.store-badge-link.google-play img {
  width: auto;
  height: 77px;
}

.hero-platform {
  margin-top: 0.78rem;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}

/* ---------- Phone frame ---------- */

.phone {
  position: relative;
  width: 100%;
  max-width: 352px;
  margin: 0 auto;
  padding: 9px;
  border-radius: 44px;
  background: linear-gradient(155deg, #313a45, #11151a 62%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 34px 64px -22px rgba(0, 0, 0, 0.7), 0 10px 24px -12px rgba(0, 0, 0, 0.6);
}

.phone::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 23px;
  border-radius: 999px;
  background: #05070a;
  z-index: 2;
}

.phone::after {
  content: "";
  position: absolute;
  bottom: 17px;
  left: 50%;
  transform: translateX(-50%);
  width: 116px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  z-index: 2;
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1206 / 2655;
  border-radius: 36px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 7.7rem 0 2.4rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center 17%, rgba(47, 155, 242, 0.1), transparent 22rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.01), transparent 60%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 2.5rem;
}

.hero-copy { max-width: 560px; }

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.05rem, 4.6vw, 3.15rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.headline-accent { color: var(--accent-strong); }

.no-break { white-space: nowrap; }

.hero .subtext {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.03rem;
}

.hero .store-actions { justify-content: flex-start; }

.hero-media {
  display: flex;
  justify-content: center;
}

.hero-media .phone { max-width: 330px; }

.hero-secondary-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.95rem;
  font-weight: 650;
}

/* Compact checkmark grid used inside a hero (free-workout-tracker). */
.hero-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 1.1rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.hero-checklist li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--muted-strong);
  font-size: 0.93rem;
  line-height: 1.5;
}

.hero-checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 800;
}

/* ---------- Sections ---------- */

section { padding: 3.4rem 0; }

.section-title {
  font-size: clamp(1.75rem, 3.6vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 0.55rem;
  color: rgba(255, 255, 255, 0.95);
  text-wrap: balance;
}

.section-subtitle {
  max-width: 740px;
  margin: 0 auto 1.8rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.67);
  font-size: 0.98rem;
}

.section-note {
  max-width: 720px;
  margin: 1.1rem auto 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.82rem;
}

/* ---------- Showcase (copy + phone) ---------- */

.capability-section { padding: 2.85rem 0; }

.capability-section .section-subtitle { margin-bottom: 1.3rem; }

.showcase {
  max-width: 1020px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 3rem;
}

.showcase.reverse .showcase-media { order: 2; }
.showcase.reverse .showcase-body { order: 1; }

.showcase-body .section-title,
.showcase-body .section-subtitle {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.showcase-body .section-subtitle {
  max-width: 460px;
  margin-bottom: 1.45rem;
}

.feature-grid {
  max-width: var(--content-rail);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.4rem;
}

.showcase-body .feature-grid {
  max-width: none;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.feature-item {
  border-top: 1px solid var(--line-soft);
  padding-top: 0.72rem;
  text-align: left;
}

.feature-item h3 {
  margin-bottom: 0.18rem;
  font-size: 1rem;
  line-height: 1.35;
}

.feature-item p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

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

.check-panel {
  max-width: var(--content-rail);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 1.45rem 1.5rem 1.55rem;
}

.check-panel h3 {
  margin-bottom: 0.9rem;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1.6rem;
  padding: 0;
  list-style: none;
}

.check-grid li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--muted-strong);
  font-size: 0.96rem;
  line-height: 1.55;
}

.check-grid li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 800;
}

.check-grid li strong {
  color: rgba(255, 255, 255, 0.94);
  font-weight: 700;
}

/* ---------- Numbered steps ---------- */

.steps-list {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 1.3rem;
  display: grid;
  gap: 0.75rem;
}

.steps-list li {
  position: relative;
  counter-increment: step;
  padding: 0 0 0 2.55rem;
  color: var(--muted-strong);
  font-size: 0.98rem;
  line-height: 1.6;
}

.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  border: 1px solid rgba(142, 210, 255, 0.4);
  background: rgba(47, 155, 242, 0.12);
  color: var(--accent-text);
  font-size: 0.85rem;
  font-weight: 800;
}

/* ---------- Comparison / decision tables ---------- */

.swipe-note {
  display: none;
  margin-bottom: 0.8rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.82rem;
}

.table-wrap {
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(12, 16, 20, 0.36);
  overflow: hidden;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.93rem;
}

.compare-table th,
.compare-table td {
  padding: 0.9rem 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  vertical-align: top;
  text-align: left;
}

.compare-table thead th {
  color: rgba(255, 255, 255, 0.82);
  background: rgba(10, 13, 17, 0.7);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.compare-table thead th:first-child { width: 26%; }

.compare-table tbody th {
  color: #fff;
  font-weight: 700;
  text-align: left;
}

/* The value columns are wider than the visible area on phones, so the whole
   table scrolls; a sticky label column would keep them permanently clipped. */

.compare-table tbody td { color: var(--muted-strong); }

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: 0; }

.reps-col,
.reps-cell { background: rgba(47, 155, 242, 0.08); }

.status {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.status.free { color: var(--success); }
.status.paid { color: var(--warn); }

/* ---------- Field lists (transfer page) ---------- */

.field-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 1.3rem 1.4rem 1.4rem;
}

.field-panel h3 {
  margin-bottom: 0.35rem;
  font-size: 1.08rem;
}

.field-panel .field-intro {
  margin-bottom: 0.9rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.field-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 1.4rem;
  padding: 0;
  list-style: none;
}

.field-columns li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--muted-strong);
  font-size: 0.93rem;
  line-height: 1.5;
}

.field-columns li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 800;
}

.field-note {
  margin-top: 0.9rem;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.86rem;
  line-height: 1.55;
}

.field-panel-grid {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
  align-items: start;
}

/* ---------- FAQ ---------- */

.faq-section {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(12, 16, 20, 0.16);
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.faq-item {
  border-top: 1px solid var(--line-soft);
  padding-top: 0.85rem;
}

.faq-item h3 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.faq-item p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

/* ---------- Developer note ---------- */

.dev-note { padding-top: 2.7rem; }

.dev-note-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 14px;
  padding: 1.45rem 1.3rem 1.5rem;
}

.dev-note-inner h2 {
  margin-bottom: 0.75rem;
  font-size: 1.42rem;
}

.dev-note-inner p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.signature {
  margin-top: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  font-style: italic;
}

/* ---------- Final CTA ---------- */

.final-cta {
  text-align: center;
  padding: 3.7rem 0 4.3rem;
}

.final-cta h2 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.95rem, 4.6vw, 3rem);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.final-cta p {
  max-width: 620px;
  margin: 0 auto 1.7rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.98rem;
}

/* ---------- Competitor sources / disclaimer ---------- */

.sources-block {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.4rem 0 0.2rem;
  border-top: 1px solid var(--line-soft);
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.82rem;
  line-height: 1.65;
}

.sources-block p { margin-bottom: 0.5rem; }

.sources-block a {
  color: rgba(142, 210, 255, 0.62);
}

.sources-block a:hover { color: #a6d8ff; }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line-soft);
  padding: 1.95rem 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.95rem 1.3rem;
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.56);
  transition: color 0.2s ease;
}

.footer-links a:hover { color: #8fd1ff; }

/* Quiet second footer row linking every guide page; keeps the cluster
   crawlable from anywhere without a dedicated on-page section. */
.footer-guides {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1rem;
  max-width: 720px;
  margin: 0 auto 0.9rem;
}

.footer-guides a {
  color: rgba(255, 255, 255, 0.36);
  font-size: 0.78rem;
  transition: color 0.2s ease;
}

.footer-guides a:hover { color: #8fd1ff; }

/* ---------- Animations ---------- */

.fade-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .swipe-note { display: block; }
}

@media (max-width: 920px) {
  .capability-section { padding: 2.5rem 0; }

  .feature-grid {
    max-width: 640px;
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .field-panel-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .hero { text-align: center; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-copy {
    max-width: 600px;
    margin: 0 auto;
  }

  .hero .store-actions { justify-content: center; }

  .hero-media {
    order: 2;
    margin-top: 0.5rem;
  }

  .hero-checklist {
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }

  .showcase {
    grid-template-columns: 1fr;
    gap: 1.7rem;
    max-width: 560px;
  }

  .showcase-media,
  .showcase.reverse .showcase-media { order: 2; }

  .showcase-body,
  .showcase.reverse .showcase-body { order: 1; }

  .showcase-body .section-title,
  .showcase-body .section-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .showcase-body .feature-grid {
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 720px) {
  .nav { padding: 0.8rem 1rem; }

  .nav-inner { gap: 0.8rem; }

  .nav-cta {
    padding: 0.48rem 0.84rem;
    font-size: 0.82rem;
  }

  .hero { padding-top: 7.2rem; }

  .hero .subtext { font-size: 0.99rem; }

  .hero .store-actions,
  .final-cta .store-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .store-badge-link { align-self: center; }

  .download-dialog { padding: 1.35rem; }

  .download-panel-content {
    display: flex;
    flex-direction: column;
    justify-items: center;
    gap: 1rem;
  }

  .download-dialog h2,
  .download-dialog p { text-align: center; }

  .download-panel-actions { align-items: center; }

  section { padding: 2.9rem 0; }

  .check-grid { grid-template-columns: 1fr; }

  .check-panel { padding: 1.2rem 1.15rem 1.3rem; }
}

@media (max-width: 640px) {

  .field-columns { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .brand-name { display: none; }

  .hero h1 { font-size: clamp(1.85rem, 8.4vw, 2.4rem); }

  .hero-checklist { grid-template-columns: 1fr; }

  .dev-note-inner { padding: 1.2rem 1rem 1.3rem; }
}
