/* squash.fyi landing page. Brand tokens match triage/frontend/src/styles/tokens.css. */
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0e0f0c;
  --panel: #15170f;
  --surface: #1b1e16;
  --line: rgba(242, 241, 234, 0.1);
  --line-strong: rgba(242, 241, 234, 0.2);
  --fg: #f2f1ea;
  --muted: #9ea093;
  --accent: #cbf24e;
  --accent-ink: #0e0f0c;
  --crit: #ff6a45;
  --info: #74b8ff;
  --warn: #ffc24a;
  --display: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: var(--accent); }
a:hover { color: #e2ff86; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; }
p { margin: 0; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.grow { flex-grow: 1; }

/* header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(14, 15, 12, 0.9); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.brand-word { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.03em; color: var(--fg); }
.brand-word .dot { color: var(--accent); }
.brand-sm { font-size: 17px; }
.nav-links { display: flex; gap: 22px; font-size: 13.5px; flex-wrap: wrap; }
.nav-links a, .nav-signin { color: var(--muted); text-decoration: none; }
.nav-links a:hover, .nav-signin:hover { color: var(--fg); }
.nav-signin { color: var(--fg); font-size: 13.5px; padding: 10px 6px; }

/* buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 700; padding: 15px 24px; border-radius: 12px; text-align: center; }
.btn-sm { font-size: 13.5px; padding: 11px 18px; border-radius: 10px; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #d8ff6a; color: var(--accent-ink); }
.btn-outline { color: var(--fg); border: 1px solid var(--line-strong); font-weight: 400; }
.btn-outline:hover { color: var(--fg); border-color: var(--fg); }
.btn-dark { background: var(--bg); color: var(--fg); }
.btn-dark:hover { background: #23271c; color: var(--fg); }

/* hero */
.hero { padding-top: 88px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-copy { flex: 1 1 440px; min-width: 0; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--accent); border: 1px solid rgba(203, 242, 78, 0.35); background: rgba(203, 242, 78, 0.08); padding: 6px 12px; border-radius: 999px; }
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-weight: 700; font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: -0.04em; margin: 22px 0; }
.lead { color: var(--muted); font-size: 17px; line-height: 1.65; margin-bottom: 32px; max-width: 540px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.fine { color: var(--muted); font-size: 13px; margin-top: 26px; }

/* demo card */
.demo { flex: 1 1 480px; min-width: 0; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 22px; padding: 22px; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55); }
.demo-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.eyebrow-muted { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { font-family: inherit; font-size: 12.5px; padding: 8px 14px; min-height: 36px; border-radius: 999px; cursor: pointer; background: transparent; color: var(--muted); border: 1px solid var(--line-strong); }
.tab:hover { color: var(--fg); }
.tab.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.ticket { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.ticket-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.ticket-raw { white-space: pre-line; font-size: 13.5px; line-height: 1.6; min-height: 6.4em; }
.divider { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: var(--accent); font-size: 12px; }
.divider .rule { flex-grow: 1; height: 1px; background: rgba(203, 242, 78, 0.3); }
.result { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; min-height: 196px; }
.result-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.muted-sm { font-size: 12px; color: var(--muted); }
.review { font-size: 12px; font-weight: 700; color: var(--warn); background: rgba(255, 194, 74, 0.14); border: 1px solid rgba(255, 194, 74, 0.35); padding: 3px 10px; border-radius: 999px; }
.review[hidden] { display: none; }
.fields { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.fields > div { display: grid; grid-template-columns: minmax(0, 160px) minmax(0, 1fr); gap: 12px; font-size: 13px; }
.fields dt { color: var(--muted); }
.fields dd { margin: 0; }
.demo.fade .ticket-raw, .demo.fade .result { opacity: 0.35; }
.ticket-raw, .result { transition: opacity 0.25s ease; }
@media (prefers-reduced-motion: reduce) { .ticket-raw, .result { transition: none; } }

/* chips */
.chip { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--accent-ink); padding: 4px 12px; border-radius: 999px; }
.chip-bug { background: var(--crit); }
.chip-feature { background: var(--info); }
.chip-question { background: var(--warn); }
.chip-other { background: var(--muted); }

/* sections */
.band { border-top: 1px solid var(--line); }
.band-panel { background: var(--panel); }
.section { padding-top: 88px; padding-bottom: 88px; }
.eyebrow { font-size: 12.5px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; }
.section h2 { font-weight: 700; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; margin: 12px 0 48px; max-width: 760px; }
.section-lead { color: var(--muted); font-size: 16px; margin: -32px 0 44px; max-width: 680px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.card-dark { background: var(--bg); padding: 26px; }
.card h3 { font-size: 21px; letter-spacing: -0.02em; margin: 20px 0 10px; }
.card p { color: var(--muted); }
.step { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--accent-ink); background: var(--accent); width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.feat { color: var(--muted); font-size: 13.5px; padding-left: 18px; margin: 18px 0 0; display: flex; flex-direction: column; gap: 6px; }
.feat b { color: var(--fg); font-weight: 500; }

.eng { margin-top: 22px; background: var(--bg); border: 1px solid rgba(203, 242, 78, 0.3); border-radius: 18px; padding: 28px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.eng-copy { flex: 1 1 360px; min-width: 0; }
.eng-copy h3 { font-size: 22px; letter-spacing: -0.02em; margin: 0 0 10px; }
.eng-copy p { color: var(--muted); }
.eng-code { flex: 1 1 360px; min-width: 0; margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; font-size: 12.5px; line-height: 1.7; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.eng-code .hl { color: var(--accent); }
.eng-code .fg { color: var(--fg); }

.grid-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 32px; }
.grid-trust h3 { font-size: 18px; margin: 0 0 8px; letter-spacing: -0.01em; }
.grid-trust p { color: var(--muted); font-size: 14px; }

.pilot { background: var(--accent); color: var(--accent-ink); border-radius: 26px; padding: clamp(32px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.pilot-copy { flex: 1 1 460px; min-width: 0; }
.pilot h2 { font-weight: 700; font-size: clamp(30px, 4.5vw, 50px); letter-spacing: -0.035em; line-height: 1.05; margin: 0 0 14px; }
.pilot p { font-size: 16px; line-height: 1.65; max-width: 560px; color: #23271c; }
.pilot-actions { display: flex; flex-direction: column; gap: 10px; flex: 0 1 300px; text-align: center; }
.pilot-mail { font-size: 13.5px; color: #23271c; }
.pilot a:not(.btn), .pilot-guide { color: var(--accent-ink); }
.pilot a:not(.btn):hover { color: #23271c; }
.pilot-guide { font-size: 14px; padding: 6px; }

.foot { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; font-size: 13px; color: var(--muted); padding-top: 32px; padding-bottom: 32px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--fg); }

@media (max-width: 720px) {
  .nav { gap: 14px 18px; }
  .nav-links { order: 3; width: 100%; gap: 18px; }
  .hero { padding-top: 48px; gap: 40px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .fields > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
