/* becomefighter.com. Same palette and type as the app, so the store link and the site feel like one thing. */

@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("/fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url("/fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }

:root {
  --night: #0b1424;
  --surface: #12203a;
  --line: #26385a;
  --bone: #eee8dc;
  --muted: #8e9ab0;
  --glove: #d7263d;
  --go: #39e07a;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 48px);
  --measure: 66ch;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--bone);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--glove); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--go); outline-offset: 3px; border-radius: 2px; }

/* ---------------------------------------------------------------- header and footer */

.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1120px; margin: 0 auto; padding: 18px var(--gutter);
}
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; text-decoration: none; font: 800 1.35rem/1 var(--display); letter-spacing: 0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.bar nav { display: flex; gap: 20px; font-weight: 500; font-size: 0.95rem; }
.bar nav a { text-decoration: none; color: var(--muted); }
.bar nav a:hover, .bar nav a[aria-current="page"] { color: var(--bone); }

.foot {
  max-width: 1120px; margin: 0 auto; padding: 40px var(--gutter) 56px;
  background: linear-gradient(var(--line), var(--line)) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  color: var(--muted); font-size: 0.9rem;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { text-decoration: none; }

/* ---------------------------------------------------------------- landing */

.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 48px;
  max-width: 1120px; margin: 0 auto; padding: 24px var(--gutter) 72px;
}
.hero h1 {
  margin: 0;
  font: 800 clamp(3.2rem, 8.5vw, 6.4rem)/0.88 var(--display);
  text-transform: uppercase; letter-spacing: -0.01em;
}
.hero h1 span { display: block; }
.hero .lede { max-width: 30ch; margin: 24px 0 0; font-size: 1.25rem; line-height: 1.45; color: var(--bone); }
.soon { margin: 28px 0 0; color: var(--muted); font-size: 0.95rem; }
.soon strong { color: var(--bone); font-weight: 500; }
.photo { position: relative; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: var(--surface); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06); border-radius: inherit; }

/* The caller: the one loud moment. What a round sounds like, set the way the app shows it. */
.caller { background: var(--glove); color: #fff; }
.caller-in { max-width: 1120px; margin: 0 auto; padding: 56px var(--gutter) 60px; }
.caller p { margin: 0; max-width: 46ch; font-size: 1.1rem; }
.calls {
  margin: 0 0 22px;
  font: 800 clamp(3rem, 8.6vw, 5.4rem)/0.95 var(--display); text-transform: uppercase;
}
.calls > span { display: inline-block; }
.calls .move { color: var(--night); }

.bill { max-width: 1120px; margin: 0 auto; padding: 80px var(--gutter) 56px; }
.bill h2 { margin: 0 0 8px; font: 800 clamp(2rem, 4.5vw, 3rem)/1 var(--display); text-transform: uppercase; }
.bill > p { margin: 0 0 40px; color: var(--muted); max-width: 52ch; }
.bill dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.bill dl div { padding: 22px 0 26px; border-top: 2px solid var(--line); }
.bill dl div:nth-child(-n+2) { border-top-color: var(--glove); }
.bill dt { font: 700 1.6rem/1.1 var(--display); text-transform: uppercase; }
.bill dd { margin: 8px 0 0; color: var(--muted); max-width: 44ch; }

.safety { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter) 72px; color: var(--muted); font-size: 0.95rem; }
.safety p { margin: 0; max-width: 70ch; }

/* ---------------------------------------------------------------- documents */

.doc { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: 32px var(--gutter) 72px; }
.doc h1 { margin: 0; font: 800 clamp(2.6rem, 7vw, 4rem)/0.95 var(--display); text-transform: uppercase; }
.doc .meta { margin: 12px 0 36px; color: var(--muted); font-size: 0.95rem; }
.doc h2 { margin: 44px 0 10px; font: 700 1.6rem/1.15 var(--display); }
.doc h3 { margin: 32px 0 6px; font: 700 1.35rem/1.2 var(--display); }
.doc p, .doc li { max-width: var(--measure); }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }
.doc .summary { margin: 0 0 8px; padding: 20px 22px; border-left: 4px solid var(--go); background: var(--surface); border-radius: 0 12px 12px 0; }
.doc .summary p { margin: 0; }
.doc .summary p + p { margin-top: 8px; }
.contact { font: 700 1.6rem/1.2 var(--display); }
.path { font-weight: 500; white-space: nowrap; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-bottom: 56px; }
  .photo { order: -1; border-radius: 16px; }
  .bill dl { grid-template-columns: 1fr; }
  .bill dl div:nth-child(2) { border-top-color: var(--line); }
  .bar nav { gap: 14px; font-size: 0.9rem; }
  .brand { font-size: 1.15rem; gap: 8px; }
  .brand img { width: 32px; height: 32px; }
}
@media (max-width: 480px) {
  .bar nav a.wide { display: none; }
}

/* ---------------------------------------------------------------- learn pages */

.learn { max-width: 1120px; margin: 0 auto; padding: 24px var(--gutter) 56px; }
.learn h2 { margin: 0 0 8px; font: 800 clamp(2rem, 4.5vw, 3rem)/1 var(--display); text-transform: uppercase; }
.learn > p { margin: 0 0 32px; color: var(--muted); max-width: 52ch; }
.learn .more { margin: 28px 0 0; font-weight: 500; color: var(--bone); }
.disc { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.disc li { padding: 18px 0 22px; border-top: 2px solid var(--line); }
.disc a, .disc b { display: block; font: 700 1.6rem/1.1 var(--display); text-transform: uppercase; }
.disc a { text-decoration-line: underline; }
.disc b { color: var(--muted); }
.disc span { display: block; margin-top: 6px; color: var(--muted); max-width: 34ch; }

.crumbs { margin: 0 0 20px; font-size: 0.9rem; color: var(--muted); }
.crumbs ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li { max-width: none; }
.crumbs li + li { margin-top: 0; }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--line); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--bone); }

.doc .lessons { padding: 0; list-style: none; }
.doc .lessons li { padding: 14px 0; border-top: 1px solid var(--line); }
.doc .lessons li + li { margin-top: 0; }
.doc .lessons a, .doc .lessons b { font: 700 1.25rem/1.2 var(--display); }
.doc .lessons span:not(.tag) { display: block; margin-top: 4px; color: var(--muted); }
.doc .lessons b { color: var(--muted); }
.tag { display: inline-block; padding: 1px 8px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font: 500 0.75rem/1.5 var(--body); letter-spacing: 0.04em; text-transform: uppercase; vertical-align: 2px; }
.tag.free { border-color: var(--go); color: var(--go); }
.doc .note { margin-top: 40px; color: var(--muted); font-size: 0.95rem; }
.doc .soon { margin: 32px 0 0; }

/* Reserved for the animated figure that is embedded later; invisible until it has content. */
.figure { margin: 0 0 28px; border-radius: 16px; overflow: hidden; background: var(--surface); aspect-ratio: 16 / 10; }
.figure:empty { display: none; }

@media (max-width: 760px) {
  .disc { grid-template-columns: 1fr; }
}

/* Lesson video: a YouTube search for the move, drawn as a player so it reads as "tap to watch". */
.watch {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 16 / 9; max-width: 560px; margin: 24px 0 8px; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none;
  background: radial-gradient(circle at 50% 42%, rgb(215 38 61 / 0.22), transparent 55%), linear-gradient(135deg, var(--surface), var(--night));
}
.watch::before {
  content: ""; position: absolute; left: 50%; top: 42%; width: 68px; height: 68px; margin: -34px 0 0 -34px;
  border-radius: 50%; background: var(--glove) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") 56% 50% / 30px no-repeat;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.35); transition: transform 0.15s;
}
.watch:hover::before { transform: scale(1.06); }
.watch b { font: 700 1.4rem/1.1 var(--display); text-transform: uppercase; }
.watch span { margin-top: 4px; color: var(--muted); font-size: 0.9rem; }
@media (prefers-reduced-motion: reduce) { .watch::before { transition: none; } }
