/* Get Chalked! — its own look. Deliberately not the shared style.css.
 * The idea, borrowed from gethooked.fish v4: a scoreboard, not a brochure.
 * Deep purple-tinted ink ground (the app's dark mode), violet used as light
 * rather than as background, gold reserved for the podium and a PR. Type is
 * large and tight; scores are set in tabular numerals so columns line up. */

:root {
  --ink:        #0f0c22;
  --ink-2:      #1a1530;
  --ink-3:      #251d40;
  --hair:       rgba(139, 92, 246, .22);
  --hair-soft:  rgba(255, 255, 255, .08);
  --violet:     #8b5cf6;
  --violet-hi:  #a78bfa;
  --violet-dim: #6d28d9;
  --gold:       #fcd34d;
  --gold-dim:   #d97706;
  --live:       #f87171;
  --live-hi:    #fca5a5;
  --medal-gold:   #ffd700;
  --medal-silver: #c0c0c0;
  --medal-bronze: #cd7f32;
  --text:       #f3f0ff;
  --text-2:     rgba(243, 240, 255, .72);
  --text-3:     rgba(243, 240, 255, .48);
  --measure:    68ch;
  --gutter:     clamp(20px, 5vw, 64px);
  --sans:       -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  --mono:       ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* clip, not hidden: hidden can make body the scroll container and kill sticky */
  overflow-x: hidden;
  overflow-x: clip;
}

/* A slow arena-light wash behind the first screen. Fixed, under the content. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 12% -10%, rgba(139, 92, 246, .20), transparent 60%),
    radial-gradient(90% 60% at 92% 8%, rgba(124, 58, 237, .14), transparent 55%);
  z-index: 0;
}

main, header, footer { position: relative; z-index: 1; }

img { max-width: 100%; display: block; }
a { color: var(--violet-hi); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: min(1180px, 100%); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: var(--measure); }

/* ---------------------------------------------------------------- type --- */

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.03em; line-height: 1.04; }

.display { font-size: clamp(2.6rem, 7.2vw, 5.6rem); text-wrap: balance; }
.display em { font-style: normal; color: var(--violet-hi); }
.display--page { font-size: clamp(2.2rem, 5vw, 3.6rem); }

h2.head { font-size: clamp(1.9rem, 4.2vw, 3.1rem); margin-bottom: 14px; text-wrap: balance; }
h3 { font-size: 1.18rem; letter-spacing: -.015em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.lede { font-size: clamp(1.05rem, 1.9vw, 1.35rem); color: var(--text-2); }
.small { font-size: .88rem; color: var(--text-3); }
.num { font-variant-numeric: tabular-nums; }

/* A hairline label above a section — the scoreboard tell. */
.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--violet-hi);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--hair); }

/* ----------------------------------------------------------------- bar --- */

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px var(--gutter);
  background: rgba(15, 12, 34, .84);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--hair-soft);
}
.bar-mark { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.bar-mark img { height: 38px; width: 38px; }
.bar-mark span { font-size: .98rem; white-space: nowrap; }
.bar-mark span b { color: var(--violet-hi); font-weight: 800; }
.bar-mark:hover { text-decoration: none; }

.bar-nav { display: none; gap: 22px; margin-left: auto; margin-right: 18px; }
.bar-nav a { color: var(--text-2); font-size: .88rem; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.bar-nav a:hover { color: var(--violet-hi); text-decoration: none; }
@media (min-width: 860px) { .bar-nav { display: flex; } }

/* Small screens get the same destinations as a strip under the bar —
   "it's in the footer" is not navigation. */
.bar-scroll {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 10px var(--gutter);
  border-bottom: 1px solid var(--hair-soft);
  background: rgba(15, 12, 34, .84);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  position: sticky;
  top: 62px;
  z-index: 19;
  scrollbar-width: none;
}
.bar-scroll::-webkit-scrollbar { display: none; }
.bar-scroll a { color: var(--text-2); font-size: .84rem; font-weight: 600; white-space: nowrap; }
@media (min-width: 860px) { .bar-scroll { display: none; } }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--violet);
  color: #fff;
  font-weight: 800;
  letter-spacing: -.01em;
  padding: 15px 28px;
  border-radius: 3px;
  font-size: 1.02rem;
}
.cta:hover { background: var(--violet-hi); text-decoration: none; }
.cta--bar { padding: 10px 16px; font-size: .88rem; white-space: nowrap; }
.bar-ctas { display: flex; gap: 8px; flex: none; }
@media (max-width: 480px) { .cta--bar { padding: 8px 11px; font-size: .78rem; } .bar-mark span { font-size: .9rem; } }

/* Android is in build, so its bar button is a label, not a link — the store
   listing 404s until it publishes. Reverts to a .cta anchor that day. */
.cta--soon {
  background: none;
  border: 1px solid var(--hair);
  color: var(--text-3);
  font-weight: 700;
  cursor: default;
}
.cta--soon:hover { background: none; }

/* The store badges, side by side, wherever the price is. */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.badges a { display: block; }
.badges img { height: 54px; width: auto; }
/* Google's badge PNG carries its own transparent margin; oversize and pull it in. */
.badges .badge--play { height: 80px; margin: -13px; }
.badges-soon { flex-basis: 100%; margin: 0; color: var(--text-3); font-size: .92rem; }

/* ------------------------------------------------------------ sections --- */

section { padding-block: clamp(56px, 9vw, 128px); }
section + section { border-top: 1px solid var(--hair-soft); }

.hero { padding-top: clamp(40px, 8vw, 96px); padding-bottom: clamp(40px, 7vw, 84px); }
.hero .display { margin-bottom: 26px; }
.hero .lede { max-width: 46ch; }
.hero--page { padding-bottom: 0; }
.hero--page .lede { max-width: 62ch; }

.hero-grid { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }

/* Bare simulator captures, so the shot gets a soft frame: rounded corners
   and depth from shadow, never a drawn handset. */
.device { position: relative; margin: 0 auto; width: min(320px, 84vw); filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .6)); }
.device img { width: 100%; display: block; border-radius: 22px; border: 1px solid var(--hair-soft); }
.device--sm { width: min(280px, 76vw); }

/* Podium hexes reused wherever a placement shows. */
.hex {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 34px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--ink-3);
  color: var(--text);
  font-weight: 800;
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
  flex: none;
}
.hex[data-tier="1"] { background: var(--medal-gold); color: #1c1917; }
.hex[data-tier="2"] { background: var(--medal-silver); color: #1c1917; }
.hex[data-tier="3"] { background: var(--medal-bronze); color: #fff; }

/* -------------------------------------------------------------- footer --- */

footer {
  padding: 44px var(--gutter) 64px;
  border-top: 1px solid var(--hair-soft);
  color: var(--text-3);
  font-size: .88rem;
}
footer nav { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 16px; }
footer a { color: var(--text-2); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
