@font-face { font-family: Kanit; src: url(fonts/Kanit-400.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: Kanit; src: url(fonts/Kanit-500.ttf); font-weight: 500; font-display: swap; }
@font-face { font-family: Kanit; src: url(fonts/Kanit-700.ttf); font-weight: 700; font-display: swap; }
@font-face { font-family: KanitCaps; src: url(fonts/KanitCaps-800i.ttf); font-weight: 800; font-style: italic; font-display: swap; }
@font-face { font-family: KanitCaps; src: url(fonts/KanitCaps-900i.ttf); font-weight: 900; font-style: italic; font-display: swap; }

/* The app's look ("Blaze", lib/theme.dart): flat black, orange, off-white lines; heavy slanted capitals, slanted
   buttons, cards with a cut corner and an orange edge. No glows, nothing rounded. */
:root {
  --ground: #0A0A0A;
  --ink: #0A0A0A;
  --card: #0F0F0F;
  --raised: #151515;
  --line: rgba(245, 245, 240, .6);
  --faint: rgba(255, 255, 255, .12);
  --text: #F5F5F0;
  --muted: #A3A39B;
  --soft: #D4D3CC;
  --accent: #FF5A1F;
  --win: #2EE59D;
  --display: KanitCaps, Kanit, Impact, sans-serif;
  /* A slanted box (buttons, tags) and a card with its bottom right corner cut. */
  --slant: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  --cut: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--ground);
  color: var(--text);
  font: 400 17px/1.6 Kanit, system-ui, sans-serif;
  overflow-x: hidden;
}
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

.nav { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; }
.brand { display: block; }
.brand img { height: 42px; width: auto; display: block; }

/* A card as the app draws it: an off-white line all round (the cut included), an orange edge on the left. */
.steps article, .final-card { position: relative; clip-path: var(--cut); background: var(--line); }
.steps article::before, .final-card::before {
  content: ""; position: absolute; inset: 1.5px; clip-path: var(--cut); background: var(--card);
  border-left: 4px solid var(--accent);
}
.steps article > *, .final-card > * { position: relative; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: var(--ink); text-decoration: none;
  font: 900 italic 17px/1 var(--display); text-transform: uppercase; letter-spacing: .01em;
  padding: 17px 34px; clip-path: var(--slant); transition: transform .15s, filter .15s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn-small { padding: 11px 24px; font-size: 14px; }
/* The Play button, as "Find a match" in the app: the bolt, then the words. */
.btn-play { font-size: 19px; padding: 19px 40px; }
.bolt { display: grid; place-items: center; }
.bolt svg { width: 22px; height: 22px; fill: var(--ink); }
.btn-play:hover .bolt svg { animation: strike .5s ease-out; }
@keyframes strike { 30% { transform: translateY(-4px) scale(1.25); } 60% { transform: translateY(2px); } }

.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; padding-top: 40px; padding-bottom: 90px; }
.hero-text { padding-top: 24px; }
/* The sports, as the app draws them, in orange on square chips above the headline. */
.sports { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; padding: 0; }
.sports li { width: 44px; height: 44px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--faint); }
.sports img { display: block; width: 24px; height: 24px; }
h1 { font: 900 italic clamp(40px, 5.2vw, 68px)/1 var(--display); text-transform: uppercase; text-wrap: balance; margin-top: 22px; }
.hl { color: var(--accent); }
h1 .line { display: block; }
.lead { color: var(--soft); font-size: 19px; margin: 26px 0 34px; max-width: 34em; }
.lead strong { color: var(--text); }
.bolt-word { color: var(--accent); font: 900 italic 1em var(--display); text-transform: uppercase; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.store { position: relative; display: block; height: 52px; transition: transform .15s; }
.store:hover { transform: translateY(-2px); }
.store img { height: 100%; width: auto; display: block; }
.store::after {
  content: "Coming soon"; position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%);
  background: var(--accent); color: var(--ink); font: 800 italic 12px var(--display); text-transform: uppercase; white-space: nowrap;
  padding: 6px 16px; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); opacity: 0; pointer-events: none; transition: opacity .15s;
}
.store.show-soon::after { opacity: 1; }

/* A phone: the screenshot inside a rounded bezel, the one round thing on the page. 9:19.5; its height comes from the
   padding trick, not aspect-ratio: Safari let the tall screenshot stretch an aspect-ratio box past its ratio, so it
   overlapped the cards below. */
.phone {
  position: relative; border-radius: 38px; overflow: hidden; background: var(--raised);
  border: 7px solid #1C1C1C; outline: 1.5px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
}
.phone::before { content: ""; display: block; padding-top: 216.4%; }
.phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.phones { position: relative; height: 700px; } /* tall enough for the tilted back phone */
.phones .phone { position: absolute; width: 280px; }
.phones .front { right: 10px; top: 0; z-index: 2; }
.phones .back { left: 0; top: 70px; opacity: .55; transform: rotate(-6deg); }
/* A tag by the phones, as the app shows a match. */
.chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 12px 26px;
  background: var(--accent); color: var(--ink); clip-path: var(--slant);
  font: 900 italic 15px/1 var(--display); text-transform: uppercase; white-space: nowrap;
}
.chip .dot { width: 9px; height: 9px; background: var(--ink); transform: skewX(-12deg); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.chip-match { left: -14px; bottom: 40px; }

/* How it works, in three cards. */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 110px; }
.steps article { padding: 26px 24px 30px 28px; }
.num { font: 900 italic 38px/1 var(--display); color: var(--accent); }
.steps h2 { font: 900 italic 24px/1.08 var(--display); text-transform: uppercase; margin: 14px 0 10px; }
.steps p { color: var(--muted); font-size: 15.5px; }
/* The sports, in a line under the hero. */
.strip { padding-bottom: 60px; }
.strip .sports { margin: 0; justify-content: center; }
.note { color: var(--muted); font-size: 15px; }
.final .note { margin-top: 16px; }

/* One feature at a time: what it is on one side, its screen on the other. */
.spot { display: grid; grid-template-columns: 1fr 400px; gap: 60px; align-items: center; padding-bottom: 110px; }
.spot-flip { grid-template-columns: 400px 1fr; }
/* Two screens of the feature: one in front, one tilted behind. */
.duo { position: relative; height: 620px; }
.duo .phone { position: absolute; width: 250px; }
.duo .front { right: 0; top: 0; z-index: 2; }
.duo .back { left: 0; top: 60px; opacity: .5; transform: rotate(-6deg); }
.spot-flip .duo .front { right: auto; left: 0; }
.spot-flip .duo .back { left: auto; right: 0; transform: rotate(6deg); }
.spot-flip .spot-text { order: 2; }
.spot h2 { font: 900 italic clamp(30px, 4vw, 50px)/1.03 var(--display); text-transform: uppercase; text-wrap: balance; margin: 18px 0 16px; }
.spot p { color: var(--soft); font-size: 18px; max-width: 34em; }
.tag { display: inline-block; background: var(--accent); color: var(--ink); font: 900 italic 13px/1 var(--display); text-transform: uppercase; padding: 8px 18px; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.points { list-style: none; padding: 0; margin: 26px 0 32px; display: grid; gap: 14px; max-width: 34em; }
.points li { border-left: 4px solid var(--accent); padding-left: 16px; color: var(--muted); font-size: 16px; }
.points b { display: block; color: var(--text); font: 900 italic 16px/1.3 var(--display); text-transform: uppercase; }
.btn-line { background: var(--line); color: var(--text); position: relative; }
.btn-line::before { content: ""; position: absolute; inset: 1.5px; background: var(--ground); clip-path: var(--slant); z-index: -1; }
.btn-line { isolation: isolate; }

.final { padding-bottom: 100px; }
.final-card { text-align: center; padding: 64px 24px; }
.final .stores { justify-content: center; }
.final h2 { font: 900 italic clamp(32px, 4.6vw, 56px)/1.02 var(--display); text-transform: uppercase; text-wrap: balance; margin: 0 auto 32px; max-width: 16em; }

footer { display: flex; justify-content: space-between; border-top: 1px solid var(--faint); padding-top: 26px; padding-bottom: 40px; color: var(--muted); font-size: 14px; }
footer nav { display: flex; gap: 22px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

/* Privacy and delete-account pages */
.doc { max-width: 720px; padding-top: 30px; padding-bottom: 80px; }
.doc h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 10px; }
.doc .updated { color: var(--muted); margin-bottom: 36px; }
.doc h2 { font: 900 italic 24px/1.1 var(--display); text-transform: uppercase; margin: 40px 0 12px; }
.doc p, .doc li { color: var(--soft); }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 22px; margin: 10px 0; }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--accent); }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-bottom: 60px; }
  .hero-text { padding-top: 0; }
  .phones { height: 640px; max-width: 460px; margin: 0 auto; width: 100%; }
  .phones .phone { width: 250px; }
  .steps { grid-template-columns: 1fr; padding-bottom: 80px; }
  .spot, .spot-flip { grid-template-columns: 1fr; gap: 40px; padding-bottom: 80px; }
  .duo { max-width: 400px; width: 100%; margin: 0 auto; }
  .spot-flip .spot-text { order: 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 28px; }
  .sports { gap: 6px; margin-bottom: 24px; } /* all eight on one line */
  .sports li { width: 38px; height: 38px; }
  .sports img { width: 22px; height: 22px; }
  .lead { font-size: 17px; }
  .phones { height: 520px; max-width: 340px; }
  .phones .phone { width: 205px; border-width: 5px; border-radius: 28px; }
  .phones .back { top: 50px; }
  .chip { font-size: 13px; padding: 10px 20px; }
  .chip-match { left: 0; top: auto; bottom: 20px; }
  .duo { height: 500px; max-width: 320px; }
  .duo .phone { width: 200px; border-width: 5px; border-radius: 28px; }
  .final-card { padding: 48px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .chip .dot, .btn-play:hover .bolt svg { animation: none; }
}

/* The language switch, a thin line above the header. */
.lang { display: flex; justify-content: flex-end; gap: 10px; padding-top: 12px; color: var(--muted); font-size: 14px; }
.lang a { text-decoration: none; }
.lang a:hover, .lang a[aria-current] { color: var(--text); }
.lang a[aria-current] { border-bottom: 2px solid var(--accent); }
.lang a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* The Chinese page (zh/). Kanit has no Chinese: the system's Chinese fonts come right after it, so Latin words and
   figures keep the brand's letters. Chinese fills its line, so headings get more room between lines. */
html:lang(zh) { --display: KanitCaps, Kanit, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; }
html:lang(zh) body { font-family: Kanit, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif; }
html:lang(zh) :is(h1, h2) { line-height: 1.2; }
html:lang(zh) .store::after { content: "即将上线"; }
