/* Fightimer site — Corner Control V2 tokens (src/ui/tokens.ts is canonical). */

:root {
  --ink: #08090b;
  --surface: #11151a;
  --card: #171c22;
  --line: #2a313b;
  --line-strong: #3b4654;
  --bone: #f7f1e8;
  --steel: #8a929d;
  --steel-dim: #58616d;
  --work: #f04438;
  --rest: #22c55e;
  --command: #ff6a2a;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: 'Barlow', system-ui, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }

a { color: var(--bone); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--command); }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; border-radius: 2px; }

/* type voices */
.anton {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  line-height: 1.25; /* Anton ascenders clip below this */
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.kicker {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--command);
}
.label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--steel);
}

/* nav */
nav { border-bottom: 1px solid var(--line); }
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
nav .brand { font-size: 20px; color: var(--bone); text-decoration: none; }
nav .links { display: flex; gap: 24px; }
nav .links a {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 14px;
  letter-spacing: 2.4px; text-transform: uppercase; color: var(--steel); text-decoration: none;
}
nav .links a:hover, nav .links a[aria-current='page'] { color: var(--bone); }

/* hero */
.hero { padding: 72px 0 48px; }
.hero h1 { font-size: clamp(42px, 8vw, 76px); margin: 12px 0 20px; }
.hero p.lede { font-size: 19px; color: var(--steel); max-width: 34em; }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.slab {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 28px; border-radius: 8px; border: 0;
  background: var(--command); color: var(--ink); text-decoration: none;
  font-family: 'Barlow', sans-serif; font-weight: 700; font-size: 16px;
  letter-spacing: 1.6px; text-transform: uppercase; cursor: pointer;
}
.slab:hover { opacity: 0.88; }
.slab.static { background: var(--surface); color: var(--steel); border: 1.5px solid var(--line-strong); cursor: default; }
.ghost {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 24px; border-radius: 8px;
  border: 1.5px solid var(--line-strong); color: var(--steel); text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 15px;
  letter-spacing: 2.4px; text-transform: uppercase;
}
.ghost:hover { color: var(--bone); border-color: var(--steel); }

/* phase demo tiles — the ONLY place red/green appear (phase fields, §5) */
.phases { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 56px 0 8px; }
.phase-tile { border-radius: 12px; padding: 28px 24px 22px; color: var(--ink); }
.phase-tile.work { background: var(--work); }
.phase-tile.rest { background: var(--rest); }
.phase-tile .clock {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: clamp(48px, 9vw, 84px); line-height: 0.96; font-variant-numeric: tabular-nums;
}
.phase-tile .phase-word { font-family: 'Anton', sans-serif; font-size: 18px; letter-spacing: 4px; margin-top: 10px; }

/* sections */
section { padding: 40px 0; border-top: 1px solid var(--line); }
section h2 { font-size: clamp(28px, 5vw, 40px); margin: 10px 0 8px; }
section p.sub { color: var(--steel); max-width: 36em; }

.rows { margin-top: 20px; }
.row { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.row:last-child { border-bottom: 0; }
.row .tick { color: var(--command); font-weight: 700; flex: 0 0 auto; }
.row p { color: var(--steel); }
.row p strong { color: var(--bone); font-weight: 500; }

/* cards (pricing, presets, contact) */
.card {
  background: var(--card); border-radius: 0 0 12px 12px; border-top: 3px solid var(--command);
  padding: 24px; margin-top: 24px;
}
.card .price-row { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.card .price-row:last-of-type { border-bottom: 0; }
.card .price-row .amount { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 30px; }
.fineprint { color: var(--steel-dim); font-size: 14px; margin-top: 14px; }

/* preset cards (hub) */
.preset { background: var(--card); border-radius: 12px; padding: 24px; margin-top: 20px; }
.preset h3 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 28px; letter-spacing: 0.5px; }
.preset .tagline { color: var(--steel); margin-top: 2px; }
.preset .spec { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.preset .spec span { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--steel); }
.preset .spec span b { color: var(--bone); font-weight: 700; }
.preset details { margin-top: 16px; border-top: 1px solid var(--line); }
.preset summary {
  cursor: pointer; padding: 12px 0; list-style: none;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 14px;
  letter-spacing: 2.4px; text-transform: uppercase; color: var(--steel);
}
.preset summary:hover { color: var(--bone); }
.preset code.share {
  display: block; background: var(--ink); border: 1px solid var(--line); border-radius: 8px;
  padding: 14px; font-size: 12px; line-height: 1.5; word-break: break-all; color: var(--steel);
  max-height: 130px; overflow-y: auto;
}
.copy-btn { margin-top: 10px; }

/* FAQ (support) */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; min-height: 56px; display: flex; align-items: center; list-style: none;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 17px;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--bone);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; margin-left: auto; color: var(--steel); font-family: 'Barlow', sans-serif; font-weight: 700; font-size: 22px; }
.faq details[open] summary::after { content: '\2212'; }
.faq .answer { color: var(--steel); padding: 0 0 20px; max-width: 40em; }
.faq .answer strong { color: var(--bone); font-weight: 500; }

/* prose pages (privacy) */
.prose h2 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 22px; letter-spacing: 1.5px; text-transform: uppercase; margin: 36px 0 8px; }
.prose p, .prose li { color: var(--steel); max-width: 42em; }
.prose p strong { color: var(--bone); font-weight: 500; }
.prose ul { padding-left: 20px; margin-top: 8px; }
.prose li { margin-top: 6px; }

/* page header + footer */
.page-head { padding: 56px 0 8px; }
.page-head h1 { font-size: clamp(36px, 7vw, 56px); margin-top: 12px; }
.page-head p.sub { color: var(--steel); margin-top: 12px; max-width: 38em; }

footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 28px 0 48px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: baseline; }
footer .links { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--steel); text-decoration: none; }
footer a:hover { color: var(--bone); }
footer .copyright { color: var(--steel-dim); font-size: 13px; }

@media (max-width: 540px) {
  nav .links { gap: 14px; }
  .phases { grid-template-columns: 1fr; }
}
