/* fightplate.com: the app's warm "Paper" look. Colors and type follow DESIGN.md. */

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --page: #F6F1E9;
  --card: #FFFDF9;
  --inset: #F1EBE0;
  --fill: #E7DFD2;
  --ink: #1C1814;
  --ink-2: #786E64;
  --ink-3: #B5AA9E;
  --hairline: rgba(42, 30, 14, 0.09);
  --shadow: rgba(58, 42, 18, 0.09);
  --green: #1FA95B;
  --red: #E5382F;
  --serif: ui-serif, "Source Serif 4", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;
  --gutter: 40px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 800; margin: 0; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Wordmark: "FightPlate" with the on-pace dot after it, as in the app. */
.wordmark {
  font-family: var(--serif); font-weight: 800; font-size: 26px; letter-spacing: -0.4px;
  text-decoration: none; display: inline-flex; align-items: baseline; gap: 3px;
}
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

/* Buttons: monochrome capsules, the app's primary button. */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 17px/1 var(--sans); color: var(--card); background: var(--ink);
  border: 0; border-radius: 999px; padding: 17px 28px; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: transform 0.12s ease-out, opacity 0.12s ease-out;
}
.button:active { transform: scale(0.97); }
.button:disabled { opacity: 0.35; cursor: default; }
.button.small { font-size: 15px; padding: 12px 20px; }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; padding-bottom: 28px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; padding-top: 32px; padding-bottom: 96px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--ink-2);
  background: var(--card); border: 1px solid var(--hairline); border-radius: 999px; padding: 7px 14px;
}
.hero h1 { font-size: clamp(46px, 7vw, 86px); line-height: 0.98; letter-spacing: -0.03em; margin: 26px 0 22px; }
.lede { font-size: 21px; color: var(--ink-2); max-width: 560px; margin-bottom: 30px; }
.note { font-size: 14px; color: var(--ink-2); margin-top: 12px; }
.note a { color: var(--ink); }

/* The waitlist form */
.join { display: flex; flex-wrap: wrap; gap: 10px; max-width: 540px; position: relative; }
.join input[type="email"] {
  flex: 1 1 240px; min-width: 0; font: 17px var(--sans); color: var(--ink);
  background: var(--card); border: 1px solid var(--hairline); border-radius: 999px; padding: 16px 22px;
  box-shadow: 0 1px 0 var(--shadow);
}
.join input[type="email"]::placeholder { color: var(--ink-3); }
.join input[type="email"]:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.join .trap { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
/* Always in the page (even empty) so screen readers announce the result when it appears. */
.status { flex-basis: 100%; font-size: 15px; font-weight: 600; margin: 0; }
.status[data-state="joined"] { color: var(--green); }
.status[data-state="invalid"], .status[data-state="error"] { color: var(--red); }

/* A real screenshot inside a plain phone shape */
.phone {
  width: 300px; max-width: 100%; border-radius: 50px; padding: 11px; background: #15120F;
  box-shadow: 0 30px 60px rgba(28, 24, 20, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  margin: 0;
}
.phone img { border-radius: 40px; width: 100%; }
.hero .phone { justify-self: center; transform: rotate(2deg); }

/* Sections */
.section { padding-top: 96px; }
.section-title { font-size: clamp(34px, 4.4vw, 48px); letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 14px; }
.section-lede { font-size: 19px; color: var(--ink-2); max-width: 640px; }

/* How it works */
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hairline); }
.steps li { padding: 34px 34px 8px 0; }
.steps li + li { padding-left: 34px; border-left: 1px solid var(--hairline); }
.steps .num { font-family: var(--serif); font-weight: 800; font-size: 46px; line-height: 1; display: block; margin-bottom: 14px; }
.steps h3 { font-family: var(--sans); font-weight: 600; font-size: 20px; margin-bottom: 6px; }
.steps p { color: var(--ink-2); }

/* Cards */
.cards { display: grid; gap: 18px; margin-top: 36px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border-radius: 26px; padding: 30px; box-shadow: 0 8px 18px var(--shadow); }
.card h3 { font-size: 26px; letter-spacing: -0.01em; margin-bottom: 10px; }
.card p { color: var(--ink-2); }
.card .kicker { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; display: block; }

/* Feature rows: words beside real screens */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-top: 64px; }
.feature h3 { font-size: clamp(30px, 3.6vw, 40px); letter-spacing: -0.02em; line-height: 1.08; margin-bottom: 14px; }
.feature p { color: var(--ink-2); font-size: 18px; max-width: 520px; }
.feature .shots { display: flex; gap: 22px; justify-content: center; }
.feature .shots .phone { width: 260px; }
.feature.flip .words { order: 2; }

/* Test numbers */
.proof { background: var(--card); border-radius: 30px; padding: 48px; box-shadow: 0 8px 18px var(--shadow); margin-top: 96px; }
.proof .section-title { margin-bottom: 30px; }
.numbers { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.numbers b { font-family: var(--serif); font-weight: 800; font-size: 54px; letter-spacing: -0.03em; line-height: 1; display: block; }
.numbers span { display: block; margin-top: 10px; font-size: 15.5px; color: var(--ink-2); }
.method { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--hairline); font-size: 15px; color: var(--ink-2); max-width: 820px; }

/* Final call */
.final { text-align: center; padding-top: 112px; }
.final .section-lede { margin: 0 auto 30px; }
.final .join { margin: 0 auto; justify-content: center; }
.final .status { text-align: center; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-top: 1px solid var(--hairline); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--hairline); }
.faq summary { font-weight: 600; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--serif); font-size: 26px; line-height: 0.9; color: var(--ink-2); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-2); margin-top: 10px; }

/* Plain text pages (privacy, support) */
.doc { max-width: 760px; padding-top: 24px; padding-bottom: 32px; }
.doc h1 { font-size: clamp(40px, 6vw, 60px); letter-spacing: -0.03em; line-height: 1.02; margin: 12px 0 18px; }
.doc h2 { font-size: 26px; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; }
.doc .draft { background: var(--card); border: 1px solid var(--hairline); border-radius: 18px; padding: 16px 20px; color: var(--ink); font-size: 15px; }

/* Footer */
.footer { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; padding-top: 40px; padding-bottom: 48px; margin-top: 80px; border-top: 1px solid var(--hairline); font-size: 15px; color: var(--ink-2); }
.footer .wordmark { font-size: 20px; color: var(--ink); }
.footer nav { display: flex; gap: 22px; margin-left: auto; }
.footer nav a { text-decoration: none; font-weight: 600; color: var(--ink); }
.footer nav a:hover { text-decoration: underline; }

/* Tablet */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 56px; padding-bottom: 72px; }
  .hero .phone { width: 280px; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 36px; }
  .feature.flip .words { order: 0; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .cards.three { grid-template-columns: 1fr; }
}

/* Phone */
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .nav { padding-top: 18px; padding-bottom: 18px; }
  .wordmark { font-size: 22px; }
  .hero { padding-top: 16px; gap: 44px; }
  .lede { font-size: 18px; }
  .section { padding-top: 72px; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 24px 0 18px; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--hairline); }
  .cards.two { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .feature .shots .phone { width: calc(50% - 8px); border-radius: 34px; padding: 7px; }
  .feature .shots .phone img { border-radius: 28px; }
  .feature .shots { gap: 16px; }
  .proof { padding: 30px 22px; margin-top: 72px; border-radius: 26px; }
  .numbers b { font-size: 42px; }
  .numbers { gap: 26px 18px; }
  .final { padding-top: 80px; }
  .footer nav { margin-left: 0; }
}

@media (max-width: 480px) {
  .join .button { width: 100%; }
  .button.small { padding: 10px 16px; font-size: 14px; }
  .numbers { grid-template-columns: 1fr; }
}
