/* ==========================================================================
   Elevatic Studios - site styles
   One stylesheet for every page. Page-specific bits live at the bottom.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Brand: gold on near-black, taken straight from the Gym Track mark. */
  --gold:      #D4AF37;
  --gold-lt:   #F0D98A;
  --gold-dk:   #A8801F;

  --bg:        #0A0A0A;
  --bg-alt:    #0F0F0F;
  --card:      #141414;
  --card-hi:   #1B1B1B;

  /* Card borders are the secondary colour at 20% - the house style. */
  --line:      rgba(212, 175, 55, 0.20);
  --line-hi:   rgba(212, 175, 55, 0.45);
  --line-soft: rgba(255, 255, 255, 0.07);

  --text:      #FFFFFF;
  --muted:     #B0B0B0;
  --dim:       #6C6C6C;

  --radius:    18px;
  --radius-sm: 12px;
  --wrap:      1120px;
  --header-h:  68px;

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  --font-head: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --------------------------------------------------------------- reset -- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--gold);
  color: #000;
  padding: 12px 18px;
  border-radius: 0 0 10px 0;
  font-weight: 700;
}
.skip:focus { left: 0; }

.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
      overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ------------------------------------------------------------- layout --- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; }

.section { padding: 92px 0; }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line-soft); }

.eyebrow {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 4.4vw, 42px); }
.section-head p { color: var(--muted); margin-top: 16px; font-size: 17px; }

.gold-text {
  background: linear-gradient(100deg, var(--gold-lt), var(--gold) 45%, var(--gold-dk));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.header__bar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 15px;
  white-space: nowrap;
}
.brand__mark { width: 28px; height: 28px; flex: none; }
.brand__name { color: var(--text); }
.brand__name span { color: var(--dim); font-weight: 500; }

.nav { display: flex; align-items: center; gap: 6px; }

.nav a {
  padding: 9px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  transition: color .18s ease, background .18s ease;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav a[aria-current="page"] { color: var(--text); }

.nav .btn { margin-left: 8px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: background .18s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .22s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* -------------------------------------------------------------- buttons - */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease,
              background .18s ease, border-color .18s ease;
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold-lt), var(--gold) 55%, var(--gold-dk));
  color: #14100A;
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.18);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(212, 175, 55, 0.28); }

.btn--ghost { border-color: var(--line-hi); color: var(--text); background: transparent; }
.btn--ghost:hover { background: rgba(212, 175, 55, 0.08); transform: translateY(-2px); }

.btn--sm { padding: 10px 18px; font-size: 14px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Store buttons ---------------------------------------------------------- */

.stores { display: flex; flex-wrap: wrap; gap: 14px; }

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 18px;
  min-width: 210px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.store:hover { border-color: var(--line-hi); background: var(--card-hi); transform: translateY(-2px); }
.store svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.store b { display: block; font-family: var(--font-head); font-size: 15px; font-weight: 700; line-height: 1.25; }
.store small { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }

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

.hero {
  position: relative;
  padding: clamp(72px, 12vw, 132px) 0 clamp(64px, 9vw, 104px);
  overflow: hidden;
}

/* Soft gold bloom behind the headline. Purely decorative. */
.hero::before {
  content: "";
  position: absolute;
  top: -220px;
  left: 50%;
  width: min(1000px, 130vw);
  height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center,
              rgba(212, 175, 55, 0.16), rgba(212, 175, 55, 0.05) 45%, transparent 70%);
  pointer-events: none;
}

.hero__inner { position: relative; max-width: 780px; }

.hero h1 {
  font-size: clamp(38px, 7.2vw, 68px);
  margin-bottom: 22px;
}

.hero__lead {
  font-size: clamp(17px, 2.1vw, 20px);
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 34px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.05);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 26px;
}
.pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
}
.pill--quiet .dot { background: var(--dim); box-shadow: 0 0 0 4px rgba(108, 108, 108, 0.15); }

/* ---------------------------------------------------------------- cards - */

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid + .card { margin-top: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.card:hover { border-color: var(--line-hi); background: var(--card-hi); }

.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }

.card__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.10);
  border: 1px solid var(--line);
  margin-bottom: 18px;
  color: var(--gold);
}
.card__icon svg { width: 22px; height: 22px; }

/* App cards on the home page -------------------------------------------- */

.app-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  text-decoration: none;
  overflow: hidden;
}
.app-card:hover { transform: translateY(-3px); }

.app-card__top { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }

.app-card__icon {
  width: 66px; height: 66px; flex: none;
  border-radius: 16px;
  display: grid; place-items: center;
  background: #000;
  border: 1px solid var(--line);
  overflow: hidden;
}
.app-card__icon img { width: 78%; }
.app-card__icon svg { width: 52%; }

.app-card h3 { font-size: 25px; margin-bottom: 6px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.tag--quiet { color: var(--dim); }
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.app-card p { flex: 1; margin-bottom: 24px; }

.app-card__link {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.app-card__link svg { width: 15px; height: 15px; transition: transform .18s ease; }
.app-card:hover .app-card__link svg { transform: translateX(4px); }

/* Feature list ----------------------------------------------------------- */

.features { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }

.feature {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  padding: 24px;
}
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }
.feature__num {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

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

.cta {
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(212, 175, 55, 0.13), transparent 60%),
    var(--card);
  padding: clamp(34px, 6vw, 58px);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 22px;
}
.cta h2 { font-size: clamp(26px, 4vw, 38px); max-width: 18ch; }
.cta p { color: var(--muted); max-width: 46ch; }

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

.footer {
  border-top: 1px solid var(--line-soft);
  padding: 56px 0 40px;
  margin-top: 20px;
  background: var(--bg-alt);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
.footer__blurb { color: var(--dim); font-size: 15px; max-width: 34ch; margin-top: 16px; }

.footer h4 {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 16px;
}
.footer li + li { margin-top: 10px; }
.footer li a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  transition: color .16s ease;
}
.footer li a:hover { color: var(--gold); }

.footer__base {
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  color: var(--dim);
  font-size: 14px;
}

/* --------------------------------------------------- reveal on scroll --- */

/* Gated on .js (set by an inline script in each page's head) so that if the
   script never runs, none of this content is left invisible. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.in { opacity: 1; transform: none; }

/* ============================================ page: Gym Track =========== */

.product-hero { display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: center; }
.product-hero__art { display: grid; place-items: center; }
.product-hero__art img {
  width: 100%;
  max-width: 300px;
  filter: drop-shadow(0 24px 60px rgba(212, 175, 55, 0.20));
}
/* Inline mark next to the h1; only shown on narrow screens (see the 940px rules). */
.hero__mark { display: none; }

/* Three headline features under the store buttons. */
.spec {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 22px;
  padding: 26px 0 0;
  margin-top: 30px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.spec span { padding-left: 14px; border-left: 2px solid var(--gold); }
.spec b {
  display: block;
  font-family: var(--font-head);
  font-size: 16px;
  color: var(--text);
  margin-bottom: 3px;
}

/* Screenshots ------------------------------------------------------------ */

.shots {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.shot { margin: 0; }

/* A plain dark bezel: enough to read as a phone, not enough to fight the UI. */
.shot__frame {
  padding: 7px;
  border-radius: 26px;
  background: #000;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  transition: border-color .2s ease, transform .2s ease;
}
.shot:hover .shot__frame { border-color: var(--line-hi); transform: translateY(-3px); }
.shot__frame img { width: 100%; border-radius: 20px; }

.shot figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

/* Free vs Premium -------------------------------------------------------- */

.premium { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; align-items: start; }

.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 15.5px;
}
.compare th, .compare td { padding: 15px 22px; text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.03);
}
.compare tbody tr + tr td { border-top: 1px solid var(--line-soft); }
.compare td:nth-child(2) { color: var(--muted); }
.compare th:last-child, .compare td:last-child {
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold);
  font-weight: 600;
}
.compare thead th:last-child { color: var(--gold); }
.compare .no { color: var(--dim); font-weight: 400; }
.compare .ok svg { width: 18px; height: 18px; vertical-align: -3px; }

.compare-note { margin-top: 14px; font-size: 14px; color: var(--dim); }

/* Modes list inside a card ----------------------------------------------- */

.modes { margin-top: 18px; display: grid; gap: 10px; }
.modes li { display: flex; gap: 12px; font-size: 15px; color: var(--muted); }
.modes b { color: var(--text); font-weight: 600; white-space: nowrap; }

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

.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}
.faq details + details { border-top: 1px solid var(--line-soft); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 26px;
  font-weight: 600;
  font-size: 16.5px;
  transition: color .16s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-head);
  font-size: 22px;
  line-height: 1;
  color: var(--gold);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--gold-lt); }
.faq details p { padding: 0 26px 22px; color: var(--muted); font-size: 15.5px; max-width: 70ch; }

/* ============================================ page: what is next ======== */

.teaser { text-align: center; display: grid; justify-items: center; }
.teaser h1 { font-size: clamp(40px, 8vw, 76px); margin-bottom: 20px; }
.teaser__lead { font-size: clamp(17px, 2.2vw, 21px); color: var(--muted); max-width: 44ch; margin-bottom: 14px; }
.teaser__hint { color: var(--dim); max-width: 46ch; }

/* A deliberately unhelpful spec sheet. */
.speclist { margin-top: 20px; }
.speclist li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 22px;
  padding: 12px 0;
  font-size: 15px;
}
.speclist li + li { border-top: 1px solid var(--line-soft); }
.speclist .k { min-width: 108px; color: var(--dim); }
.speclist .v { font-weight: 600; }

.redacted {
  display: inline-block;
  border-radius: 6px;
  background: repeating-linear-gradient(
    -45deg,
    rgba(212, 175, 55, 0.22) 0 6px,
    rgba(212, 175, 55, 0.08) 6px 12px);
  border: 1px solid var(--line);
  color: transparent;
  user-select: none;
  padding: 0 6px;
}

/* ============================================ page: 404 / redirect ====== */

.centered {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  text-align: center;
  padding: 48px 24px;
}
.centered h1 { font-size: clamp(28px, 5vw, 38px); }
.centered p { color: var(--muted); max-width: 36ch; }
.centered img.logo { height: 104px; width: auto; }
.centered .stores { width: 100%; max-width: 340px; }
.centered .foot-note { color: var(--dim); font-size: 13px; }
.centered .foot-note a { color: var(--gold); }

/* ---------------------------------------------------------- responsive -- */

@media (max-width: 940px) {
  .product-hero { grid-template-columns: 1fr; gap: 36px; }
  /* The big logo gives way to a small mark beside the title. */
  .product-hero__art { display: none; }
  .hero h1 { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
  .hero__mark { display: block; height: 1.05em; width: auto; filter: drop-shadow(0 8px 20px rgba(212, 175, 55, 0.25)); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: repeat(3, 1fr); }
  .premium { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 24px 24px;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-soft);
  }
  .nav[hidden] { display: none; }
  .nav a { padding: 13px 14px; border-radius: var(--radius-sm); font-size: 16px; }
  .nav .btn { margin: 8px 0 0; }
  .nav-toggle { display: inline-flex; }
  .header { position: relative; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .section--tight { padding: 48px 0; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  /* On phones the screenshots become a swipeable strip. */
  .shots {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 4px 4px 12px;
    margin: 0 -4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .shot { flex: 0 0 62%; max-width: 250px; scroll-snap-align: start; }
  .compare th, .compare td { padding: 13px 12px; font-size: 14.5px; }
  .compare th:first-child, .compare td:first-child { padding-left: 16px; }
  .faq summary { padding: 18px 20px; font-size: 15.5px; }
  .faq details p { padding: 0 20px 20px; }
  .card, .app-card { padding: 24px; }
  .stores { flex-direction: column; }
  .spec { grid-template-columns: 1fr; gap: 14px; }
  .store { min-width: 0; width: 100%; }
  .btn-row .btn { flex: 1 1 auto; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .app-card__top { gap: 14px; }
  .app-card__icon { width: 56px; height: 56px; }
}

/* Respect people who ask for less motion. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
