/* Unitrack landing — design spec v2 (docs/landing/BRIEF.md §3). One font, flat, no shadows or gradients on content. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; }
img { display: block; max-width: 100%; height: auto; }

:root {
  color-scheme: light dark;
  --bg: #F0EEE9;
  --surface: #FFFFFF;
  --ink: #101214;
  --ink-2: #63686D;
  --line: rgba(16, 18, 20, 0.12);
  --coach: #08706C;
  --copper: #B5652F;
  --copper-text: #8C4718;
  --night: #0E1013;
  --night-surface: #1B1D1F;
  --night-ink: #F2F3F5;
  --night-ink-2: #9AA0A6;
  --night-line: rgba(242, 243, 245, 0.14);

  --push-bg: #F4E6DB;    --push-ink: #8C4718;
  --plan-bg: #EAE8E3;    --plan-ink: #3A3B3D;
  --light-bg: #F1EADF;   --light-ink: #6F5A34;
  --rest-bg: #E8ECEE;    --rest-ink: #4C5A62;

  --gutter: 20px;
  --max: 1200px;
  --font: 'Geist', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1013;
    --surface: #1B1D1F;
    --ink: #F2F3F5;
    --ink-2: #9AA0A6;
    --line: rgba(242, 243, 245, 0.14);
    --coach: #5FE0D9;
    --copper-text: #E0A77E;
    --push-bg: #33241A;   --push-ink: #EBB28A;
    --plan-bg: #26272A;   --plan-ink: #D3D5D8;
    --light-bg: #2E271D;  --light-ink: #DCC69E;
    --rest-bg: #222A2F;   --rest-ink: #B4C4CD;
  }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: #fff; color: #101214; padding: 10px 14px; border-radius: 12px; }

/* ---------- type ---------- */
.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow.copper { color: var(--copper-text); }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(36px, 9.4vw, 72px); }
h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; }
.lead { margin: 16px 0 0; font-size: clamp(18px, 2.1vw, 21px); color: var(--ink-2); max-width: 38em; }

section { padding: 88px 0; }
.rule { border-top: 1px solid var(--line); }

/* ---------- header + hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 980px);
  display: flex;
  flex-direction: column;
  color: #F2F3F5;
  background: #0E1013;
  overflow: hidden;
  padding: 0;
}
.hero picture, .hero .photo { position: absolute; inset: 0; }
.hero .photo { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero::after {
  /* keeps small text readable over the photo; flat scrim, not a decorative gradient */
  content: ""; position: absolute; inset: 0; background: rgba(14, 16, 19, 0.28);
}
.hero > * { position: relative; z-index: 1; }
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 20px; padding-bottom: 20px;
}
.wordmark { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; text-decoration: none; }
.wordmark i { font-style: normal; color: var(--copper); }
.toplink {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px;
  text-decoration: none; font-size: 17px;
}
.hero-body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 56px; }
.hero h1 { font-size: clamp(64px, 17vw, 168px); letter-spacing: -0.055em; line-height: 0.92; max-width: 8.5em; }
.hero .sub { margin: 32px 0 0; font-size: clamp(19px, 2.3vw, 24px); line-height: 1.4; max-width: 22em; }
.hero .support { margin: 14px 0 0; font-size: 16px; color: rgba(242, 243, 245, 0.78); max-width: 26em; }
.store { margin: 32px 0 0; font-size: 17px; }
.store a { display: inline-block; }
.store img { height: 48px; width: auto; }
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 18px; min-height: 56px; padding: 0 30px;
  background: #F2F3F5; color: #101214; border-radius: 999px;
  font-size: 20px; font-weight: 700; letter-spacing: -0.01em; text-decoration: none;
}
.cta svg { width: 20px; height: 20px; }
.cta-note { margin: 10px 0 0; font-size: 16px; color: rgba(242, 243, 245, 0.85); }

/* ---------- proof ---------- */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.step { position: relative; padding-left: 52px; }
.step::before {
  content: ""; position: absolute; left: 7px; top: 10px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--copper);
}
.step:not(:last-child)::after {
  content: ""; position: absolute; left: 11px; top: 26px; bottom: -40px; width: 2px; background: var(--copper); opacity: 0.45;
}
.step .num { position: absolute; left: 24px; top: 2px; font-size: 14px; font-weight: 600; color: var(--copper-text); }
.step p { margin: 6px 0 0; color: var(--ink-2); font-size: 17px; }
.shot {
  margin: 20px 0 0; border-radius: 16px; overflow: hidden; background: var(--surface);
  max-width: 420px;
}
.shot img { width: 100%; }

/* ---------- day states ---------- */
.states { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
.state { border-radius: 16px; padding: 18px 16px 20px; }
.state h3 { font-size: 20px; }
.state p { margin: 6px 0 0; font-size: 16px; line-height: 1.4; }
.state.push { background: var(--push-bg); color: var(--push-ink); }
.state.plan { background: var(--plan-bg); color: var(--plan-ink); }
.state.lighter { background: var(--light-bg); color: var(--light-ink); }
.state.rest { background: var(--rest-bg); color: var(--rest-ink); }
.statement { margin: 48px 0 0; font-size: clamp(30px, 5vw, 44px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }

/* ---------- logging ---------- */
.log-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 40px; align-items: start; }
.phone {
  border-radius: 32px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); max-width: 360px;
}
.activity { align-self: center; border-radius: 24px; overflow: hidden; width: 100%; max-width: 420px; }
.log-copy h2 + h2 { margin-top: 8px; }

/* ---------- progress (always dark) ---------- */
.night { background: var(--night); color: var(--night-ink); }
.night .lead { color: var(--night-ink-2); }
.progress-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.progress-shot { border-radius: 24px; overflow: hidden; width: 100%; max-width: 460px; }

/* ---------- import / cycle / faq ---------- */
.stack > * + * { margin-top: 0; }
.block { padding: 40px 0; }
.block + .block { border-top: 1px solid var(--line); }
.block h2 { font-size: clamp(34px, 7vw, 56px); }

.faq { margin-top: 32px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 14px 0; cursor: pointer; list-style: none;
  font-size: 19px; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 16px; height: 16px;
  background:
    linear-gradient(currentColor, currentColor) center / 16px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 16px no-repeat;
}
.faq details[open] summary::after { background: linear-gradient(currentColor, currentColor) center / 16px 2px no-repeat; }
.faq .answer { margin: 0 0 20px; color: var(--ink-2); max-width: 40em; }

/* ---------- closing + footer ---------- */
.closing { position: relative; overflow: hidden; background: #0E1013; color: #F2F3F5; padding: 96px 0 88px; }
.closing .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 85% 50%; }
.closing::after { content: ""; position: absolute; inset: 0; background: rgba(14, 16, 19, 0.45); }
.closing .wrap { position: relative; z-index: 1; }
.closing h2 { font-size: clamp(56px, 13vw, 120px); letter-spacing: -0.05em; line-height: 0.95; max-width: 6em; }
.closing .store { margin-top: 24px; }
.closing .follow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 4px; font-size: 18px; text-decoration: none; }
.closing .follow svg, .toplink svg { width: 18px; height: 18px; }

footer { background: #0E1013; color: #F2F3F5; padding: 32px 0 44px; }
footer .wordmark { font-size: 24px; }
footer .tag { margin: 4px 0 0; color: #9AA0A6; font-size: 16px; }
footer nav { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 16px; }
footer nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 17px; }
footer nav a:hover, .toplink:hover, .follow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- plain pages (support) ---------- */
.page-top { background: #0E1013; color: #F2F3F5; }
.page { padding: 64px 0 96px; }
.page h1 { font-size: clamp(48px, 11vw, 88px); letter-spacing: -0.045em; }
.page .lead a { color: var(--ink); font-weight: 600; }
.page ul { margin: 16px 0 0; padding-left: 1.2em; color: var(--ink-2); }
.page li + li { margin-top: 6px; }
.mail {
  display: inline-flex; align-items: center; min-height: 56px; margin-top: 28px; padding: 0 26px;
  border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 19px; font-weight: 600; text-decoration: none;
}

/* ---------- wider screens ---------- */
@media (min-width: 768px) {
  :root { --gutter: 40px; }
  section { padding: 120px 0; }
  .hero .photo { object-position: 60% 50%; }
  .hero-body { padding-bottom: 88px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .step { padding-left: 0; padding-top: 44px; }
  .step::before { left: 0; top: 0; }
  .step:not(:last-child)::after { left: 18px; right: -32px; top: 4px; bottom: auto; width: auto; height: 2px; }
  .step .num { left: 0; top: 16px; }
  .states { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .state { padding: 22px 20px 26px; min-height: 150px; }
  .log-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
  .log-copy { grid-column: 1 / -1; }
  .progress-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
  .cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
  .cols .block + .block { border-top: 0; }
  footer .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
  footer nav { margin-top: 0; }
}
@media (min-width: 1100px) {
  .log-grid { grid-template-columns: 360px 420px; justify-content: start; gap: 64px; align-items: center; }
}
