/* TrainFlow marketing site — same "Modernist" design tokens as the mobile app and admin portal
   (mobile/src/theme/tokens.ts), so trainflow.saacademy.net reads as the same product. */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;600;800&display=swap');

:root {
  --color-bg: #f3f2f2;
  --color-surface: #ffffff;
  --color-text: #201e1d;
  --color-accent: #ec3013;
  --color-accent-100: #fff2ef;
  --color-accent-600: #dd2b0f;
  --color-divider: color-mix(in srgb, #201e1d 40%, transparent);
  --font-heading: 'Archivo', system-ui, sans-serif;
  --font-body: 'Archivo', system-ui, sans-serif;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

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

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

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

.eyebrow {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.hr {
  height: 2px;
  background: var(--color-divider);
  border: none;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 26px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  border: 2px solid transparent;
  cursor: pointer;
}

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

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

.btn-outline {
  border-color: var(--color-text);
  color: var(--color-text);
}

.btn-outline:hover {
  background: var(--color-accent-100);
}

.btn-white {
  background: #fff;
  color: var(--color-accent);
}

.btn-white:hover {
  background: var(--color-accent-100);
}

.btn-outline-white {
  border-color: #fff;
  color: #fff;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* — header — */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--color-bg);
  border-bottom: 2px solid var(--color-divider);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand span {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.site-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
}

.site-nav a:not(.btn) {
  font-size: 14px;
  font-weight: 600;
}

.site-nav a:not(.btn):hover {
  color: var(--color-accent);
}

.site-nav .btn {
  height: 44px;
  padding: 0 20px;
  font-size: 14px;
  letter-spacing: 0.02em;
}

/* — hero — */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: end;
  padding: 76px 0 0;
}

.hero h1 {
  margin: 22px 0 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 76px;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.hero p {
  margin: 28px 0 0;
  max-width: 520px;
  font-size: 17px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--color-text) 72%, transparent);
  text-wrap: pretty;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-top: 36px;
}

.hero-fineprint {
  margin-top: 20px;
  font-size: 14px;
  color: color-mix(in srgb, var(--color-text) 58%, transparent);
}

.hero-shot {
  border: 2px solid var(--color-divider);
  background: #fff;
  padding: 18px;
}

/* — stats bar — */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 30px 24px 30px 0;
}

.stat:not(:first-child) {
  padding-left: 24px;
}

.stat:not(:last-child) {
  border-right: 2px solid var(--color-divider);
}

.stat-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 44px;
  letter-spacing: -0.035em;
}

.stat-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
  margin-top: 8px;
}

/* — section heading — */
.section {
  padding: 88px 0 0;
}

.section h2 {
  margin: 18px 0 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 44px;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.section-intro {
  margin: 18px 0 0;
  max-width: 600px;
  font-size: 16px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}

/* — features — */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 34px;
}

.feature {
  padding: 28px 28px 28px 0;
}

.feature:nth-child(2n) {
  padding-left: 28px;
}

.feature:nth-child(-n + 2) {
  border-bottom: 2px solid var(--color-divider);
}

.feature:nth-child(2n + 1):not(:last-child) {
  border-right: 2px solid var(--color-divider);
}

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

.feature-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 23px;
  letter-spacing: -0.02em;
  margin-top: 20px;
}

.feature-body {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
  text-wrap: pretty;
}

/* — screens grid — */
.screens-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  background: var(--color-divider);
  margin-top: 40px;
}

.screen-card {
  background: #fff;
  padding: 22px 22px 26px;
  min-width: 0;
}

.screen-card img {
  border-radius: 2px;
}

.screen-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  margin-top: 20px;
}

.screen-body {
  font-size: 14px;
  line-height: 1.55;
  color: color-mix(in srgb, var(--color-text) 62%, transparent);
  margin-top: 6px;
  text-wrap: pretty;
}

.screen-cta {
  background: var(--color-accent);
  color: #fff;
  padding: 34px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.screen-cta-headline {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.screen-cta .btn {
  align-self: flex-start;
  margin-top: 32px;
  height: 52px;
  padding: 0 24px;
  font-size: 15px;
}

/* — calories — */
.calories-layout {
  display: grid;
  grid-template-columns: 1fr minmax(0, 0.72fr);
  gap: 56px;
  align-items: start;
  padding: 56px 0;
}

.cal-math {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 32px;
}

.cal-stat {
  padding: 22px 20px 22px 0;
}

.cal-stat:not(:first-child) {
  padding-left: 20px;
}

.cal-stat:not(:last-child) {
  border-right: 2px solid var(--color-divider);
}

.cal-stat-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.03em;
}

.cal-stat-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
  margin-top: 6px;
}

.cal-example {
  font-size: 13px;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
  margin-top: 14px;
}

.cal-shot {
  border: 2px solid var(--color-divider);
  background: #fff;
  padding: 18px;
  display: flex;
  justify-content: center;
}

.cal-shot img {
  max-height: 560px;
  width: auto;
}

/* — get the app — */
.get-panel {
  background: var(--color-accent);
  color: #fff;
  padding: 66px 48px;
}

.get-panel .eyebrow {
  color: #fff;
  opacity: 0.8;
}

.get-panel h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 62px;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-top: 22px;
  max-width: 760px;
}

.get-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-top: 40px;
}

.get-ctas .btn {
  height: 58px;
  padding: 0 28px;
}

/* — footer — */
.site-footer {
  padding: 56px 0 72px;
  display: flex;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-brand {
  flex: 1;
  min-width: 260px;
}

.footer-brand .brand {
  margin-bottom: 12px;
}

.footer-brand p {
  margin: 0;
  font-size: 14px;
  color: color-mix(in srgb, var(--color-text) 58%, transparent);
}

.footer-cols {
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
}

.footer-col-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 50%, transparent);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 14px;
}

.footer-links a {
  font-size: 14px;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
}

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

.copyright {
  padding: 22px 0 56px;
  font-size: 13px;
  color: color-mix(in srgb, var(--color-text) 50%, transparent);
}

/* — legal pages (privacy, terms) — */
.legal-notice {
  margin-top: 28px;
  padding: 18px 22px;
  background: var(--color-accent-100);
  border: 2px solid var(--color-accent);
  font-size: 14px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--color-text) 85%, transparent);
}

.legal-body {
  max-width: 760px;
  padding-bottom: 96px;
}

.legal-body h3 {
  margin: 40px 0 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.legal-body p,
.legal-body li {
  font-size: 16px;
  line-height: 1.65;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
}

.legal-body p {
  margin: 14px 0 0;
}

.legal-body ul {
  margin: 14px 0 0;
  padding-left: 22px;
}

.legal-body li + li {
  margin-top: 8px;
}

.legal-body strong {
  color: var(--color-text);
}

/* — responsive — */
@media (max-width: 860px) {
  .wrap {
    padding: 0 22px;
  }
  .site-nav {
    gap: 18px;
  }
  .site-nav a:not(.btn) {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }
  .hero h1 {
    font-size: 48px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(2n) {
    border-right: none;
  }
  .stat:nth-child(n + 3) {
    border-top: 2px solid var(--color-divider);
    padding-top: 24px;
  }
  .section h2 {
    font-size: 32px;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .feature:nth-child(2n) {
    padding-left: 0;
  }
  .feature:nth-child(2n + 1) {
    border-right: none;
  }
  .feature:not(:last-child) {
    border-bottom: 2px solid var(--color-divider);
  }
  .screens-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .calories-layout {
    grid-template-columns: 1fr;
  }
  .cal-shot img {
    max-height: 420px;
  }
  .get-panel h2 {
    font-size: 38px;
  }
}

@media (max-width: 560px) {
  .screens-grid {
    grid-template-columns: 1fr;
  }
  .cal-math {
    grid-template-columns: 1fr;
  }
  .cal-stat {
    padding: 16px 0;
  }
  .cal-stat:not(:first-child) {
    padding-left: 0;
    border-top: 2px solid var(--color-divider);
    border-right: none;
  }
}
