/* ============================================================
   Today's Fit — marketing site styles
   Layers on top of colors_and_type.css (import that FIRST).
   ============================================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

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

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,246,239,0.82);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand .mark { width: 32px; height: 32px; border-radius: 9px; }
.brand .name { font-family: var(--font-serif); font-weight: 500; font-size: 22px; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-family: var(--font-sans); font-weight: 500; font-size: 15px; color: var(--ink-2); transition: color var(--dur) var(--ease); }
.nav-links a:hover { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: var(--r-chip);
  font-family: var(--font-sans); font-weight: 600; font-size: 16px;
  cursor: pointer; border: none; transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); box-shadow: 0 8px 22px rgba(184,85,58,0.28); }
.btn-ghost { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--oat); }
.btn-sm { height: 44px; padding: 0 20px; font-size: 15px; }

/* App Store badge (text-based, on-brand) */
.appstore {
  display: inline-flex; align-items: center; gap: 11px;
  height: 56px; padding: 0 22px; border-radius: 13px;
  background: var(--ink); color: #fff; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.appstore:hover { transform: translateY(-1px); box-shadow: var(--shadow-hero); }
.appstore svg { width: 23px; height: 23px; flex: none; }
.appstore > span { display: flex; flex-direction: column; justify-content: center; }
.appstore .as-top { display: block; font-family: var(--font-sans); font-weight: 400; font-size: 11px; letter-spacing: 0.01em; color: var(--on-dark-2); line-height: 1.2; }
.appstore .as-big { display: block; font-family: var(--font-sans); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; line-height: 1.15; margin-top: 1px; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: var(--font-mono); font-weight: 500; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.eyebrow.muted { color: var(--ink-3); }

/* ---------- Hero ---------- */
.hero { padding: 76px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 0.86fr; gap: 40px; align-items: center; }
.hero h1 {
  font-family: var(--font-sans); font-weight: 700; font-size: 66px; line-height: 1.02;
  letter-spacing: -0.028em; margin: 18px 0 0; text-wrap: balance;
}
.hero h1 .ac { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent); }
.hero .lede { font-family: var(--font-sans); font-size: 20px; line-height: 1.5; color: var(--ink-2); margin: 22px 0 0; max-width: 30ch; }
.hero .cta { display: flex; align-items: center; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.hero .micro { font-family: var(--font-sans); font-size: 14px; color: var(--ink-3); margin-top: 18px; }

/* ---------- Phone mockup ---------- */
.phone {
  position: relative; width: 300px; border-radius: 46px; background: #1a1714;
  padding: 11px; box-shadow: var(--shadow-hero); margin: 0 auto;
}
.phone::after { /* dynamic island */
  content: ""; position: absolute; top: 24px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 27px; border-radius: 18px; background: #000; z-index: 3;
}
.phone .screen { border-radius: 36px; overflow: hidden; background: var(--bg); aspect-ratio: 1206/2622; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.phone.tilt { transform: rotate(2deg); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-head { max-width: 640px; }
.section-head h2 {
  font-family: var(--font-sans); font-weight: 700; font-size: 44px; line-height: 1.08;
  letter-spacing: -0.022em; margin: 14px 0 0; text-wrap: balance;
}
.section-head h2 .ac { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent); }
.section-head p { font-family: var(--font-sans); font-size: 18px; line-height: 1.55; color: var(--ink-2); margin: 18px 0 0; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px; box-shadow: var(--shadow-card); }
.step .num { font-family: var(--font-mono); font-weight: 600; font-size: 13px; color: var(--accent); letter-spacing: 0.1em; }
.step .ic { width: 46px; height: 46px; border-radius: 13px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; margin: 18px 0 16px; }
.step .ic svg { width: 24px; height: 24px; color: var(--accent); }
.step h3 { font-family: var(--font-sans); font-weight: 700; font-size: 21px; margin: 0; letter-spacing: -0.01em; }
.step p { font-family: var(--font-sans); font-size: 15.5px; line-height: 1.5; color: var(--ink-2); margin: 9px 0 0; }

/* alternating feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 64px 0; }
.feature.flip .feat-media { order: 2; }
.feature .feat-copy h2 { font-family: var(--font-sans); font-weight: 700; font-size: 38px; line-height: 1.1; letter-spacing: -0.02em; margin: 14px 0 0; }
.feature .feat-copy h2 .ac { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent); }
.feature .feat-copy p { font-family: var(--font-sans); font-size: 17.5px; line-height: 1.56; color: var(--ink-2); margin: 16px 0 0; }
.feat-list { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.feat-list li { display: flex; align-items: flex-start; gap: 11px; font-family: var(--font-sans); font-size: 16px; color: var(--ink); }
.feat-list .dot { width: 20px; height: 20px; border-radius: 999px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; flex: none; margin-top: 1px; }
.feat-list .dot svg { width: 12px; height: 12px; color: var(--accent); }
.feat-media { display: flex; justify-content: center; }

/* dark band */
.band { background: var(--ink); color: var(--on-dark); border-radius: 32px; }
.band .wrap-inner { padding: 72px 56px; }
.band .eyebrow { color: var(--mustard); }
.band h2 { font-family: var(--font-sans); font-weight: 700; font-size: 40px; line-height: 1.12; letter-spacing: -0.02em; margin: 16px 0 0; color: #fff; max-width: 18ch; }
.band h2 .ac { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent-soft); }
.band p { font-family: var(--font-sans); font-size: 18px; line-height: 1.55; color: var(--on-dark-2); margin: 18px 0 0; max-width: 52ch; }
.band-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 40px; margin-top: 48px; }
.band-grid .bi h4 { font-family: var(--font-sans); font-weight: 600; font-size: 18px; margin: 0 0 6px; color: #fff; display: flex; align-items: center; gap: 9px; }
.band-grid .bi h4 svg { width: 19px; height: 19px; color: var(--mustard); }
.band-grid .bi p { font-size: 15.5px; margin: 0; color: var(--on-dark-2); }

/* final CTA */
.cta-final { text-align: center; padding: 96px 0; }
.cta-final h2 { font-family: var(--font-sans); font-weight: 700; font-size: 52px; line-height: 1.05; letter-spacing: -0.025em; margin: 16px 0 0; }
.cta-final h2 .ac { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent); }
.cta-final p { font-family: var(--font-sans); font-size: 19px; color: var(--ink-2); margin: 18px 0 30px; }
.cta-final .badges { display: flex; justify-content: center; gap: 16px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 52px 0 64px; }
.footer .wrap { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer .brand .name { font-size: 20px; }
.footer .tag { font-family: var(--font-sans); font-size: 14px; color: var(--ink-3); margin: 14px 0 0; max-width: 32ch; }
.footer-cols { display: flex; gap: 64px; }
.footer-cols h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; }
.footer-cols a { display: block; font-family: var(--font-sans); font-size: 15px; color: var(--ink-2); margin-bottom: 10px; transition: color var(--dur) var(--ease); }
.footer-cols a:hover { color: var(--accent); }
.footer .legal { font-family: var(--font-sans); font-size: 13px; color: var(--ink-3); margin-top: 40px; width: 100%; }

/* ---------- Article (about / privacy) ---------- */
.article { padding: 64px 0 40px; }
.article .wrap { max-width: 760px; }
.article h1 { font-family: var(--font-sans); font-weight: 700; font-size: 52px; line-height: 1.04; letter-spacing: -0.025em; margin: 16px 0 0; }
.article h1 .ac { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent); }
.article .lede { font-family: var(--font-sans); font-size: 20px; line-height: 1.5; color: var(--ink-2); margin: 22px 0 0; }
.article h2 { font-family: var(--font-sans); font-weight: 700; font-size: 26px; letter-spacing: -0.015em; margin: 48px 0 0; }
.article h3 { font-family: var(--font-sans); font-weight: 600; font-size: 19px; margin: 28px 0 0; }
.article p, .article li { font-family: var(--font-sans); font-size: 17px; line-height: 1.62; color: var(--ink); }
.article p { margin: 14px 0 0; }
.article ul { margin: 14px 0 0; padding-left: 22px; }
.article li { margin-bottom: 8px; }
.article .updated { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.article .callout { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; margin-top: 28px; box-shadow: var(--shadow-card); }
.article .callout p { margin: 0; font-size: 16px; color: var(--ink-2); }
.article .support-card h2 { margin: 0 0 12px; }
.article .support-card p + p { margin-top: 10px; }
.article a:not(.brand):not(.btn):not(.appstore) { color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* responsive */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 12px; }
  .hero h1 { font-size: 50px; }
  .hero .phone-col { display: flex; justify-content: center; margin-top: 24px; }
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip .feat-media { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .band-grid { grid-template-columns: 1fr; gap: 28px; }
  .nav-links { display: none; }
  .footer-cols { gap: 40px; }
}
