/* TrackIron — Forge Iron */
:root {
  --bg: #0e0c0a;
  --bg-elevated: #151210;
  --surface: #1c1814;
  --surface-2: #241f1a;
  --text: #f3ebe2;
  --muted: #9a8f84;
  --accent: #e8a14a;
  --accent-hover: #f0b45e;
  --accent-deep: #c47a28;
  --border: rgba(243, 235, 226, 0.08);
  --border-strong: rgba(232, 161, 74, 0.28);
  --forge-warm: rgba(232, 161, 74, 0.12);
  --forge-ember: rgba(180, 70, 20, 0.18);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 4px;
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --nav-h: 4rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* ——— Atmosphere ——— */
.forge-bg {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, var(--forge-ember), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, var(--forge-warm), transparent 50%),
    linear-gradient(165deg, #161310 0%, var(--bg) 45%, #0a0908 100%);
}

.forge-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 180px;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* ——— Nav (TrackIron logo lockup: white Track + grey Iron) ——— */
.site-nav {
  --ti-font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ti-track: #ffffff;
  --ti-iron: #a8a8ae;

  position: sticky;
  top: 0;
  z-index: 50;
  height: auto;
  min-height: var(--nav-h);
  padding: 0.65rem 0;
  display: flex;
  align-items: center;
  font-family: var(--ti-font);
  backdrop-filter: blur(14px);
  background: rgba(34, 43, 50, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-nav .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--ti-font);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
}

.brand-name {
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}

.brand-track {
  color: var(--ti-track, #fff);
  -webkit-text-fill-color: var(--ti-track, #fff);
}

.brand-iron {
  color: var(--ti-iron, #a8a8ae);
  -webkit-text-fill-color: var(--ti-iron, #a8a8ae);
}

.nav-cta {
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  font-family: var(--ti-font);
}

.site-nav .btn-ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.site-nav .btn-ghost:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  order: 3;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.15rem;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  color: #a8a8ae;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--ti-font);
  white-space: nowrap;
  transition: color 160ms var(--ease-out);
}

.nav-links a:hover {
  color: #fff;
}

@media (min-width: 900px) {
  .site-nav {
    height: var(--nav-h);
    padding: 0;
  }

  .site-nav .container {
    flex-wrap: nowrap;
  }

  .nav-links {
    order: 0;
    width: auto;
    margin-left: auto;
    margin-right: 1.25rem;
    gap: 1.35rem;
    overflow: visible;
    padding-bottom: 0;
  }

  .nav-links a {
    font-size: 0.92rem;
  }

  .nav-cta {
    padding: 0.85rem 1.35rem;
    font-size: 0.95rem;
  }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 160ms var(--ease-out),
    background-color 160ms var(--ease-out),
    border-color 160ms var(--ease-out),
    color 160ms var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: #1a1208;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-lg {
  padding: 1rem 1.6rem;
  font-size: 1.05rem;
}

.play-logo {
  flex-shrink: 0;
  display: block;
}

.play-badge {
  display: inline-block;
  line-height: 0;
  transition: transform 160ms var(--ease-out), opacity 160ms var(--ease-out);
}

.play-badge:hover {
  opacity: 0.92;
}

.play-badge:active {
  transform: scale(0.97);
}

.play-badge img {
  width: 180px;
  height: auto;
  display: block;
}

.play-badge-lg img,
.hero-actions .play-badge img {
  width: 200px;
}

/* ——— Hero ——— */
.hero {
  min-height: calc(100svh - 5.5rem);
  display: grid;
  align-items: center;
  padding: 2.5rem 0 3.5rem;
  /* Do not set overflow — overflow-x:clip makes overflow-y clip too and cuts glyph descenders */
}

@media (min-width: 900px) {
  .hero {
    min-height: calc(100svh - var(--nav-h));
  }
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: end;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 3rem;
  }
}

.hero-brand {
  --ti-track: #ffffff;
  --ti-iron: #a8a8ae;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1.1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0 0 1.15rem;
  max-width: 18ch;
  color: var(--text);
}

.hero-line {
  display: block;
  /* Extra room so double-story descenders (g, y) never collide with the next line */
  padding-bottom: 0.2em;
}

.hero-line + .hero-line {
  margin-top: 0.1em;
}

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

.hero-sub {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 34ch;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.hero-qr {
  display: none;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-qr img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  background: #f5efe6;
  padding: 4px;
}

@media (min-width: 900px) {
  .hero-qr {
    display: inline-flex;
  }
}

.hero-platform {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-proof {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.01em;
}

.built-for {
  text-align: center;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.built-for-inner {
  max-width: 44rem;
  margin-inline: auto;
}

.built-for h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 0.85rem;
}

.built-for .lead {
  margin-inline: auto;
  margin-bottom: 2rem;
}

.built-points {
  display: grid;
  gap: 1.25rem;
  text-align: left;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 800px) {
  .built-points {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
}

.built-points li {
  border-top: 2px solid var(--accent);
  padding-top: 0.85rem;
}

.built-points strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.built-points span {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 12% 18% auto;
  height: 55%;
  background: radial-gradient(ellipse at center, rgba(232, 161, 74, 0.28), transparent 70%);
  filter: blur(8px);
  z-index: 0;
  pointer-events: none;
}

.phone-frame {
  position: relative;
  z-index: 1;
  width: min(100%, 280px);
  border-radius: 1.75rem;
  padding: 0.55rem;
  background: linear-gradient(160deg, #3a322a, #1a1612);
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(232, 161, 74, 0.18),
    0 0 40px rgba(232, 161, 74, 0.12);
  border: 1px solid rgba(243, 235, 226, 0.14);
}

@media (min-width: 900px) {
  .phone-frame {
    width: min(100%, 320px);
  }

  .hero-visual {
    justify-content: flex-end;
  }
}

.phone-frame img {
  width: 100%;
  border-radius: 1.3rem;
  aspect-ratio: 1080 / 2392;
  object-fit: cover;
  background: #000;
}

/* ——— Differentiator strip ——— */
.strip {
  border-block: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 1.35rem 0;
}

.strip-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.strip-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.strip-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ——— Feature sections ——— */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-elevated);
}

.feature {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .feature.reverse .feature-copy {
    order: 2;
  }

  .feature.reverse .feature-media {
    order: 1;
  }
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.feature h2,
.section-head h2,
.closer h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 0 0 0.85rem;
  overflow: visible;
  padding-bottom: 0.06em;
}

.lead {
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 40ch;
}

.bullets {
  display: grid;
  gap: 0.75rem;
}

.bullets li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--text);
  font-size: 1rem;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--accent);
  border-radius: 1px;
  transform: rotate(45deg);
}

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

.feature-media .phone-frame {
  width: min(100%, 260px);
}

@media (min-width: 900px) {
  .feature-media .phone-frame {
    width: min(100%, 280px);
  }
}

.mid-cta {
  margin-top: 3rem;
  text-align: center;
}

/* Privacy band — text only, no card stack */
.privacy {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}

.privacy .lead {
  margin-inline: auto;
}

.privacy-points {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
  text-align: left;
}

@media (min-width: 700px) {
  .privacy-points {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.privacy-points h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}

.privacy-points p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Reviews */
.reviews {
  border-block: 1px solid var(--border);
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-head .lead {
  margin-inline: auto;
}

.faq-contact {
  margin: 0.85rem 0 0;
  font-size: 0.98rem;
  color: var(--muted);
}

.faq-contact a {
  color: var(--accent);
  font-weight: 600;
}

.faq-contact a:hover {
  color: var(--accent-hover);
}

.quote-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .quote-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.quote {
  border-top: 2px solid var(--accent);
  padding-top: 1.25rem;
}

.quote blockquote {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text);
}

.quote cite {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--muted);
}

/* How it works */
.steps {
  display: grid;
  gap: 2rem;
  counter-reset: step;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.step {
  counter-increment: step;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* SEO content block */
.seo-block {
  max-width: 42rem;
  margin-inline: auto;
}

.seo-block h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 0 0 1rem;
}

.seo-block p {
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 1.02rem;
}

.seo-block p:last-child {
  margin-bottom: 0;
}

.seo-block strong {
  color: var(--text);
  font-weight: 600;
}

/* FAQ */
.faq-list {
  max-width: 40rem;
  margin: 0 auto;
  display: grid;
  gap: 0.5rem;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
}

.faq-item summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0.75rem 0 0.35rem;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 42ch;
}

/* Closer */
.closer {
  text-align: center;
  padding: 5.5rem 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, var(--forge-ember), transparent 60%),
    var(--bg);
}

.closer .lead {
  margin-inline: auto;
}

.closer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.closer-qr {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.closer-qr img {
  width: 96px;
  height: 96px;
  border-radius: var(--radius);
  background: #f5efe6;
  padding: 5px;
}

@media (min-width: 900px) {
  .closer-qr {
    display: flex;
  }
}

/* Mobile sticky download */
.sticky-download {
  display: none;
}

@media (max-width: 899px) {
  .sticky-download {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    background: rgba(14, 12, 10, 0.92);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
  }

  .sticky-download-btn {
    width: 100%;
  }

  body {
    padding-bottom: 5.5rem;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  background: var(--bg-elevated);
}

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

.footer-links a {
  color: var(--muted);
  transition: color 160ms var(--ease-out);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-meta {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.footer-meta p {
  margin: 0.35rem 0;
}

/* ——— Guides ——— */
.guide-main {
  padding: calc(var(--nav-h) + 2.5rem) 0 4rem;
}

.guide-article {
  max-width: 40rem;
  margin-inline: auto;
}

.guide-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.guide-article h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0 0 0.85rem;
}

.guide-lede {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 2rem;
  line-height: 1.55;
}

.guide-article h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.65rem;
}

.guide-article p {
  margin: 0 0 1rem;
  color: var(--text);
}

.guide-article ol,
.guide-article ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  list-style: disc;
  color: var(--muted);
}

.guide-article ol {
  list-style: decimal;
}

.guide-article li {
  margin: 0.4rem 0;
  padding-left: 0.25rem;
  line-height: 1.55;
}

.guide-article li strong {
  color: var(--text);
}

.guide-cta {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.guide-cta p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.guide-cta .play-badge {
  display: inline-flex;
  justify-content: center;
}

.guide-nav {
  margin: 2rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.guide-nav a {
  color: var(--accent);
}

.guide-nav a:hover {
  color: var(--accent-hover);
}

.guide-hub-list {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0 0;
  list-style: none;
  padding: 0;
}

.guide-hub-list a {
  display: block;
  border-top: 2px solid var(--accent);
  padding-top: 0.85rem;
  transition: color 160ms var(--ease-out);
}

.guide-hub-list a:hover {
  color: var(--accent);
}

.guide-hub-list h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.guide-hub-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

/* ——— Motion (opacity-only on copy to avoid GPU layers clipping descenders) ——— */
html.has-motion .reveal {
  opacity: 0;
  transition: opacity 700ms var(--ease-out);
}

html.has-motion .reveal.is-visible {
  opacity: 1;
}

html.has-motion .hero-visual.reveal {
  transform: translateY(20px);
  transition:
    opacity 900ms var(--ease-out),
    transform 900ms var(--ease-out);
}

html.has-motion .hero-visual.reveal.is-visible {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.has-motion .reveal,
  html.has-motion .hero-visual.reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .btn:active {
    transition: none;
    transform: none;
  }
}
