/* FitTrack landing page. Same tokens as the app: one persimmon accent,
   neutral greys, Outfit. Cards 18px, buttons fully rounded. */

@font-face { font-family: Outfit; font-weight: 400; font-display: swap; src: url(fonts/Outfit_400Regular.ttf) format("truetype"); }
@font-face { font-family: Outfit; font-weight: 500; font-display: swap; src: url(fonts/Outfit_500Medium.ttf) format("truetype"); }
@font-face { font-family: Outfit; font-weight: 600; font-display: swap; src: url(fonts/Outfit_600SemiBold.ttf) format("truetype"); }
@font-face { font-family: Outfit; font-weight: 700; font-display: swap; src: url(fonts/Outfit_700Bold.ttf) format("truetype"); }

:root {
  --bg: #F4F4F2;
  --surface: #FDFDFC;
  --surface-alt: #EDEDEA;
  --border: #E2E2DE;
  --text: #18181B;
  --muted: #5E5E66;
  --accent: #D9531F;
  --accent-text: #FFF8F4;
  --accent-soft: #FBE6DB;
  --ink: #1C1C20;
  --ink-text: #F3F3F4;
  --shadow: 0 30px 60px -28px rgba(80, 45, 25, .35), 0 8px 20px -12px rgba(80, 45, 25, .18);
  --radius: 18px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E0E10;
    --surface: #18181B;
    --surface-alt: #232328;
    --border: #2C2C32;
    --text: #F3F3F4;
    --muted: #A6A6AF;
    --accent: #F0683A;
    --accent-text: #1A0E09;
    --accent-soft: #3A2219;
    --ink: #F3F3F4;
    --ink-text: #18181B;
    --shadow: 0 30px 60px -28px rgba(0, 0, 0, .8), 0 8px 20px -12px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 Outfit, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------------------------------------------------------------- nav */
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-weight: 700; font-size: 22px; letter-spacing: -0.03em; text-decoration: none; }
.logo span { color: var(--accent); }
.logo-sm { font-size: 18px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 999px;
  font: 600 17px/1 Outfit, system-ui, sans-serif; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), background-color .2s ease, border-color .2s ease;
}
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); min-height: 48px; padding: 0 20px; font-size: 15px; }
.btn-ghost:hover { background: var(--surface-alt); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.ico { width: 20px; height: 20px; fill: currentColor; flex: none; }
.ico-lg { width: 28px; height: 28px; color: var(--accent); }

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.hint { margin-top: 14px; font-size: 14px; color: var(--muted); max-width: 44ch; }

/* ---------------------------------------------------------------- hero */
.hero {
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px;
  padding-top: 40px; padding-bottom: 96px;
}
.hero h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.02; letter-spacing: -0.035em; max-width: 12ch; }
.lead { margin-top: 20px; font-size: 19px; color: var(--muted); max-width: 42ch; }

.hero-visual { display: flex; justify-content: center; }
.phone {
  width: min(310px, 78vw);
  padding: 10px; border-radius: 46px;
  background: #18181B;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, .08);
  transform: rotate(2.5deg);
}
.phone img { border-radius: 36px; }

/* ---------------------------------------------------------------- features (bento) */
.features { padding-bottom: 96px; }
.features h2 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 28px; }

.bento {
  display: grid; gap: 16px;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-areas:
    "search stats   stats"
    "search remind  privacy"
    "cal    cal     cal";
}
.cell {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 10px;
}
.cell h3 { font-size: 22px; line-height: 1.2; margin-top: 6px; }
.cell p { color: var(--muted); font-size: 16px; max-width: 40ch; }

.cell-search { grid-area: search; padding-bottom: 0; }
.cell-stats { grid-area: stats; flex-direction: row; align-items: stretch; gap: 24px; padding-right: 0; padding-bottom: 0; }
.cell-remind { grid-area: remind; background: var(--accent-soft); border-color: transparent; }
.cell-privacy { grid-area: privacy; background: var(--ink); color: var(--ink-text); border-color: transparent; }
.cell-privacy .ico-lg { color: var(--ink-text); }
.cell-privacy p { color: inherit; opacity: .72; }
.cell-calendar { grid-area: cal; flex-direction: row; align-items: stretch; gap: 32px; padding-right: 0; padding-bottom: 0; }
.cell-stats .cell-text, .cell-calendar .cell-text { flex: 1; padding-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }

/* Screenshots are real app captures, cropped by their container */
.shot { border-radius: 22px 22px 0 0; overflow: hidden; border: 1px solid var(--border); border-bottom: 0; background: var(--bg); }
.shot img { width: 100%; }
.shot-tall { margin-top: 18px; height: 430px; }
.shot-wide { flex: 0 0 52%; height: 280px; margin-top: 8px; border-radius: 22px 0 0 0; border-right: 0; }
.cell-calendar .shot-wide { flex-basis: 46%; height: 300px; }
.cell-calendar .shot-wide img { transform: translateY(-14.5%); }

.levels { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: auto 0 0; padding-top: 14px; }
.levels li { padding: 6px 12px; border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 500; }
.levels li:last-child { background: var(--accent); color: var(--accent-text); }

/* ---------------------------------------------------------------- final CTA */
.final {
  text-align: center; padding-top: 72px; padding-bottom: 72px;
  border-top: 1px solid var(--border);
}
.final h2 { font-size: clamp(30px, 3.6vw, 42px); }
.final .lead { margin-left: auto; margin-right: auto; }
.final .cta { justify-content: center; }
.platforms { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 20px; font-size: 15px; color: var(--muted); }
.platforms a { display: inline-flex; align-items: center; gap: 6px; color: var(--text); text-decoration: none; font-weight: 500; }
.platforms a:hover { color: var(--accent); }
.platforms .ico { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- footer */
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 28px; padding-bottom: 40px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
  .hero-visual.reveal { transform: translateY(40px) rotate(-2deg); transition-delay: .12s; }
  .hero-visual.reveal.in { transform: none; }
  .bento .reveal:nth-child(2) { transition-delay: .06s; }
  .bento .reveal:nth-child(3) { transition-delay: .12s; }
  .bento .reveal:nth-child(4) { transition-delay: .18s; }
}

/* ---------------------------------------------------------------- mobile */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 16px; padding-bottom: 64px; }
  .hero h1 { max-width: 14ch; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-areas: "search search" "stats stats" "remind privacy" "cal cal"; }
  .shot-tall { height: 360px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .lead { font-size: 17px; }
  .cta { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .nav .btn { width: auto; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "search" "stats" "remind" "privacy" "cal"; }
  .cell-stats, .cell-calendar { flex-direction: column; padding-right: 28px; gap: 10px; }
  .cell-stats .cell-text, .cell-calendar .cell-text { padding-bottom: 0; }
  .shot-wide, .cell-calendar .shot-wide { flex: none; height: 260px; border-radius: 22px 22px 0 0; border-right: 1px solid var(--border); }
  .features, .final { padding-bottom: 64px; }
}
