/* ============================================================
 * hangtime.bar — HangTime ink + red, dark-locked.
 * Tokens mirror the app: HangBrand.swift + docs/brand/hangtime/ in
 * movebook-ios are the source of truth. Change there first.
 * Static on purpose: a challenge link must render instantly on
 * a phone; there is no account, no backend, no JS framework.
 * ============================================================ */

@font-face { font-family: 'Space Mono'; font-weight: 400; font-display: swap; src: url('/fonts/SpaceMono-400.woff2') format('woff2'); }
@font-face { font-family: 'Space Mono'; font-weight: 700; font-display: swap; src: url('/fonts/SpaceMono-700.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 600; font-display: swap; src: url('/fonts/SpaceGrotesk-600.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 700; font-display: swap; src: url('/fonts/SpaceGrotesk-700.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 400; font-display: swap; src: url('/fonts/HankenGrotesk-400.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 600; font-display: swap; src: url('/fonts/HankenGrotesk-600.woff2') format('woff2'); }

:root {
  --bg:     #0b0b0d;   /* hangtime ink */
  --text:   #f3f0ec;   /* hangtime paper */
  --dim:    #9c9a96;
  --faint:  #6a6864;
  --line:   #2b2a28;
  --red:    #e4322b;   /* accent, same hex both schemes */
  --red-press: #f0554e;
  --red-soft:  #2a100f;
  --mono:    'Space Mono', ui-monospace, monospace;
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body:    'Hanken Grotesk', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { color-scheme: dark; }

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background:
    radial-gradient(60% 42% at 50% 108%, rgba(228, 50, 43, 0.14), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  text-align: center;
  padding: 28px 24px 40px;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  width: 100%;
  max-width: 520px;
}

/* ── Logo lockup ─────────────────────────────────────────── */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.logo .word {
  font-family: var(--display);
  font-weight: 700;
  font-size: 31px;
  letter-spacing: -0.02em;
}
.logo .word em { font-style: normal; color: var(--red); }

/* ── The dial ────────────────────────────────────────────── */

.dial {
  position: relative;
  width: min(272px, 68vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.dial svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.dial .track  { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 6; }
.dial .fill   {
  fill: none;
  stroke: var(--red);
  stroke-width: 6;
  stroke-linecap: round;
  filter: drop-shadow(0 0 14px rgba(228, 50, 43, 0.35));
}
.dial .inner { display: grid; gap: 7px; }
.time {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(44px, 13vw, 58px);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.dial-label {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--red);
}
.dial-hint {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  color: var(--faint);
}

.breathe { animation: breathe 4.2s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.022); }
}

/* ── Type ────────────────────────────────────────────────── */

.kicker {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--red);
  text-transform: uppercase;
  /* The hero kicker runs long — break into two centered lines on
     phones instead of overflowing. */
  text-wrap: balance;
  line-height: 1.6;
}
h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 9vw, 46px);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.sub { color: var(--dim); font-size: 16.5px; line-height: 1.55; max-width: 40ch; }

/* ── Buttons ─────────────────────────────────────────────── */

.ctas { display: flex; flex-direction: column; gap: 12px; align-items: center; width: 100%; }
.btn {
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-radius: 14px;
  padding: 15px 30px;
  width: min(320px, 100%);
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--red); color: #fff7f6; }
.btn-primary:hover { background: var(--red-press); color: #fff7f6; }
.btn-ghost {
  color: var(--dim);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover { color: var(--text); }
.soon {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--faint);
}

/* The one honest line about Pro. Kills the "where's the catch" suspicion
 * without turning the page into a pricing table. */
.fine {
  font-size: 13px;
  line-height: 1.5;
  color: var(--dim);
  max-width: 380px;
}

/* ── Feature chips (landing) ─────────────────────────────── */

.feats {
  display: grid;
  gap: 10px;
  width: 100%;
  list-style: none;
  text-align: left;
}
.feats li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.02);
}
.feats .k {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--red);
  white-space: nowrap;
  /* Fixed label column (sized to HANDS-FREE) so every row's text starts
     at the same x. */
  flex: 0 0 88px;
}
.feats .v { color: var(--dim); font-size: 14.5px; line-height: 1.45; }

/* ── Demo video (landing) ────────────────────────────────── */

.demo {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
/* Same width as the dial so the page keeps one visual rhythm. */
.phone {
  width: min(272px, 68vw);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.phone video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 23px;
}

/* ── Why / science block (landing) ───────────────────────── */

.why {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.why-h {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 7vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.why-cards { margin-top: 4px; }
/* The science rows carry more text than the feature chips, so let them
   stack label-over-body on narrow screens rather than crushing the value. */
.why-cards .v { font-size: 14px; line-height: 1.5; }
.why-note { max-width: 42ch; }
.why-note a { color: var(--red); text-decoration: none; white-space: nowrap; }
.why-note a:hover { color: var(--red-press); }

/* The headline number. This is the hook — give it room to land. */
.stat {
  width: 100%;
  border: 1px solid var(--red-soft);
  border-radius: 16px;
  padding: 24px 22px;
  background:
    radial-gradient(80% 120% at 50% -10%, rgba(228, 50, 43, 0.12), transparent 70%),
    rgba(255, 255, 255, 0.02);
}
.stat-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(56px, 18vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--red);
  text-shadow: 0 0 26px rgba(228, 50, 43, 0.35);
}
.stat-body {
  margin-top: 10px;
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.5;
  max-width: 34ch;
  margin-inline: auto;
}
.stat-body strong { color: var(--red-press); font-weight: 600; }
.stat-cite {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--faint);
}
.stat-cite em { font-style: italic; color: var(--dim); }

/* Benchmark strip — "how long should you hang?" */
.bench { width: 100%; }
.bench-h {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.bench-rows { width: 100%; border-collapse: collapse; }
.bench-rows td {
  padding: 11px 8px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.bench-rows tr:last-child td { border-bottom: none; }
.bench-rows .bench-lvl {
  text-align: left;
  font-family: var(--body);
  font-weight: 400;
  font-size: 13.5px;
  color: var(--dim);
}
.bench-rows td span {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--faint);
  margin-left: 4px;
}

/* ── Footer ──────────────────────────────────────────────── */

footer {
  margin-top: 34px;
  font-size: 13px;
  color: var(--faint);
}
footer a { color: var(--dim); text-decoration: none; }
footer a:hover { color: var(--text); }

/* ── Staggered load reveal ───────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: reveal 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: calc(var(--d, 0) * 120ms);
}
@keyframes reveal { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .breathe { animation: none; }
}
