/* Poppins, self-hosted (SIL OFL 1.1, Indian Type Foundry). Same font as the
   app, served from here rather than the Google CDN so the site makes no
   third-party requests. */
@font-face {
  font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/poppins-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/poppins-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/poppins-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/poppins-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Fredoka'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/fredoka-600.woff2') format('woff2');
}

:root {
  --cream: #f8f2e7;
  --sand: #e4d5ba;
  --ink: #0d2429;
  --ink-2: rgba(248,242,231,.72);
  --coral: #ff5c7a;
  --amber: #ffb03b;
  --mint: #8fdcd2;
  --font: 'Poppins', 'Avenir Next', 'Futura', ui-rounded, system-ui,
          -apple-system, 'Segoe UI', Roboto, sans-serif;
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--cream);
  background: #07383b; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }

.sky {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(68% 40% at 16% 6%, rgba(255,255,255,.26), transparent 60%),
    radial-gradient(52% 34% at 88% 18%, rgba(255,196,150,.26), transparent 58%),
    radial-gradient(60% 40% at 50% 100%, rgba(5,42,46,.7), transparent 70%),
    linear-gradient(172deg, #34cbbc 0%, #12908b 30%, #0a5f5f 62%, #063a3d 100%);
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ── nav ── */
nav { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
      background: rgba(6,58,61,.32); border-bottom: 1px solid rgba(248,242,231,.1); }
nav .wrap { display: flex; align-items: center; gap: 16px; height: 66px; }
nav .mark { display: flex; align-items: center; gap: 13px; text-decoration: none; margin-right: auto; }
nav .mark img { width: 42px; height: 42px; border-radius: 11px; }
nav .mark b.wm {
  font-family: 'Fredoka', var(--font); font-weight: 600; font-size: 24px;
  letter-spacing: 0; text-transform: uppercase; line-height: 1;
  display: inline-flex; align-items: baseline;
}
nav .mark b.wm span {
  display: inline-block; margin-right: -0.12em; color: var(--cream);
}
nav a.link { text-decoration: none; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
             font-weight: 700; color: var(--ink-2); }
nav a.link:hover { color: var(--cream); }
@media (max-width: 720px) { nav a.link.hide-sm { display: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font); font-weight: 700; font-size: 12.5px; letter-spacing: .15em;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  border: 0; border-radius: 14px; padding: 14px 22px;
  background: var(--coral); color: #fff;
  box-shadow: 0 12px 26px -12px rgba(4,40,44,.85);
  transition: transform .14s ease, filter .2s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn.ghost { background: rgba(248,242,231,.12); color: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(248,242,231,.3); }
.btn.sm { padding: 11px 17px; font-size: 11px; }

/* ── hero ── */
header { padding: 86px 0 60px; }
header .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { header .wrap { grid-template-columns: 1fr; gap: 40px; } header { padding: 54px 0 36px; } }

h1 {
  font-family: 'Fredoka', var(--font);
  font-size: clamp(46px, 8.2vw, 88px); font-weight: 600; letter-spacing: 0;
  margin: 0 0 18px; text-transform: uppercase; line-height: .98;
}
h1 span {
  display: inline-block; margin-right: -0.12em; color: var(--cream);
  filter: drop-shadow(-4px 3px 4px rgba(3,28,32,.45));
}
h1 span:last-child { margin-right: 0; }
.lede { font-size: clamp(16px, 2.1vw, 20px); line-height: 1.55; color: var(--ink-2); margin: 0 0 30px; max-width: 30ch; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cta .note { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(248,242,231,.55); font-weight: 700; }

/* phone mockup */
.phone {
  width: min(330px, 84vw); aspect-ratio: 375/760; margin: 0 auto; position: relative;
  border-radius: 46px; padding: 12px;
  background: linear-gradient(160deg, #1b3f44, #0a2529);
  box-shadow: 0 50px 90px -40px rgba(2,28,32,.95), inset 0 0 0 1.5px rgba(248,242,231,.14);
}
.phone .screen {
  position: absolute; inset: 12px; border-radius: 35px; overflow: hidden;
  background: linear-gradient(176deg, #3fd0c0, #12908b 40%, #0a5f5f 100%);
  display: flex; flex-direction: column; align-items: center; padding: 26px 18px;
}
.phone .clock { font-size: 26px; font-weight: 600; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.phone .cap { font-size: 8.5px; letter-spacing: .2em; text-transform: uppercase; color: rgba(248,242,231,.6); margin-top: 5px; font-weight: 700; }
.phone .meter { width: 100%; height: 4px; border-radius: 9px; background: rgba(4,40,44,.3); margin: 15px 0 auto; overflow: hidden; }
.phone .meter i { display: block; height: 100%; width: 62%; border-radius: 9px; background: linear-gradient(90deg, var(--mint), var(--cream)); }
.phone svg.board { width: 100%; height: auto; margin: auto 0; }
.phone .keys { display: flex; gap: 7px; width: 100%; margin-top: auto; }
.phone .keys span { flex: 1; height: 34px; border-radius: 11px; background: rgba(248,242,231,.13); box-shadow: inset 0 0 0 1.3px rgba(248,242,231,.26); }

/* ── sections ── */
section { padding: 72px 0; }
.eyebrow { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; font-weight: 700; color: rgba(248,242,231,.78); margin: 0 0 12px; }
h2 { font-size: clamp(26px, 4.2vw, 40px); font-weight: 600; letter-spacing: .07em; text-transform: uppercase; margin: 0 0 16px; }
.sub { color: var(--ink-2); font-size: 16.5px; line-height: 1.6; max-width: 56ch; margin: 0 0 40px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }
.step { background: rgba(248,242,231,.09); border-radius: 22px; padding: 26px 24px 28px;
        box-shadow: inset 0 0 0 1.5px rgba(248,242,231,.14); }
.step svg { width: 100%; height: auto; margin-bottom: 20px; overflow: visible; }
.step h3 { margin: 0 0 8px; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.step p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }

/* colour strip */
/* The 24 boards, drawn as the shapes they are. A strip of colour said the
   levels differ; the silhouettes show HOW - they visibly grow. */
.grids { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; }
@media (max-width: 900px) { .grids { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 520px) { .grids { grid-template-columns: repeat(4, 1fr); } }
.gr {
  aspect-ratio: 1; border-radius: 13px; display: grid; place-items: center; position: relative;
  background: rgba(8,28,32,.34); box-shadow: inset 0 0 0 1.5px rgba(248,242,231,.1); padding-bottom: 12px;
}
.gr svg { width: 66%; height: 66%; }
.gr b { position: absolute; bottom: 7px; font-size: 9px; letter-spacing: .07em; text-transform: uppercase;
        color: rgba(248,242,231,.78); font-weight: 700; }

/* The pink full stop, on both the hero wordmark and the nav lockup. Same
   shape as a tile corner, because that is what it is. */
h1 .dot {
  width: .17em; height: .17em; border-radius: 24%; margin-left: .0153em;
  background: var(--accent, #ff5c7a);
}
nav .mark .dot {
  width: .17em; height: .17em; border-radius: 24%; margin-left: .0153em;
  background: var(--accent, #ff5c7a); display: inline-block;
}

/* Google's badge ships at a fixed aspect; height only, never restyled. */
.badge { display: inline-block; line-height: 0; transition: transform .12s ease; }
.badge:hover { transform: translateY(-2px); }
.badge img { height: 68px; width: auto; display: block; }
.btn.soon {
  height: 46px; border-radius: 7px; display: inline-flex; align-items: center;
  padding: 0 20px; font-size: 11.5px; letter-spacing: .1em;
  background: rgba(248,242,231,.1); color: rgba(248,242,231,.62); cursor: default;
  box-shadow: inset 0 0 0 1.5px rgba(248,242,231,.18);
}
.btn.soon:hover { transform: none; filter: none; }

/* The hero board turns one tile and a seam closes. The tile turns back before
   the loop restarts, so the cycle ends where it began - nothing snaps.
   transform-origin is given in viewBox units rather than fill-box: the group's
   bounding box includes the marks and the catch-light stroke, so "centre" was
   not the tile's centre and the turn walked it off the edge of the board. */
.hero-turn { animation: heroTurn 6s cubic-bezier(.45,.05,.3,1) infinite; transform-origin: 248px 248px; }
.hero-turn .mk { animation: heroTurnMark 6s cubic-bezier(.45,.05,.3,1) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes heroTurn      { 0%, 22% { transform: rotate(0deg); }  38%, 78% { transform: rotate(90deg); }  94%, 100% { transform: rotate(0deg); } }
@keyframes heroTurnMark  { 0%, 22% { transform: rotate(0deg); }  38%, 78% { transform: rotate(-90deg); } 94%, 100% { transform: rotate(0deg); } }
.hero-seam, .hero-bloom { transform-box: fill-box; transform-origin: center; }
.hero-seam { animation: heroSeam 6s ease infinite; }
@keyframes heroSeam {
  0%, 38%  { transform: scale(.25); opacity: 0; }
  46%      { transform: scale(1.3);  opacity: 1; }
  52%, 74% { transform: scale(1);    opacity: 1; }
  82%, 100%{ transform: scale(.25); opacity: 0; }
}
/* One ring of light as the pair agrees, then gone - the same beat the board
   plays. It never loops on itself, so it reads as an event, not decoration. */
.hero-bloom { animation: bloom 6s ease infinite; }
@keyframes bloom {
  0%, 38% { transform: scale(.35); opacity: 0; }
  44%     { opacity: .85; }
  62%, 100% { transform: scale(2.3); opacity: 0; }
}

/* The three rules, shown rather than diagrammed. Each loop is a round trip:
   the tile goes and comes back, the turn completes a full revolution. An
   animation that ends where it started has nothing to snap back from. */
.anim-lift { animation: stepLift 5s cubic-bezier(.45,.05,.3,1) infinite; }
@keyframes stepLift {
  0%, 10%   { transform: translateX(0) scale(1); }
  20%       { transform: translateX(0) scale(.86); }
  40%       { transform: translateX(-97px) scale(.86); }
  50%, 60%  { transform: translateX(-97px) scale(1); }
  70%       { transform: translateX(-97px) scale(.86); }
  88%       { transform: translateX(0) scale(.86); }
  96%, 100% { transform: translateX(0) scale(1); }
}
.anim-turn { animation: stepTurn 6.5s cubic-bezier(.45,.05,.3,1) infinite; }
.anim-turn .mk { animation: stepTurnMark 6.5s cubic-bezier(.45,.05,.3,1) infinite; }
.anim-lift, .anim-turn .mk, .anim-seam, .step-bloom { transform-box: fill-box; transform-origin: center; }
.anim-turn { transform-origin: 92.5px 63px; }   /* tile centre in viewBox units */
@keyframes stepTurn      { 0%,10% { transform: rotate(0deg); } 18%,35% { transform: rotate(90deg); } 43%,60% { transform: rotate(180deg); } 68%,85% { transform: rotate(270deg); } 93%,100% { transform: rotate(360deg); } }
@keyframes stepTurnMark  { 0%,10% { transform: rotate(0deg); } 18%,35% { transform: rotate(-90deg); } 43%,60% { transform: rotate(-180deg); } 68%,85% { transform: rotate(-270deg); } 93%,100% { transform: rotate(-360deg); } }
/* MATCH turns its right tile first, so the capsule is the CONSEQUENCE of the
   turn rather than a thing that merely happens nearby. Same beat as the hero. */
.match-turn { animation: matchTurn 5s cubic-bezier(.45,.05,.3,1) infinite; transform-origin: 141px 63.5px; }
.match-turn .mk { animation: matchTurnMark 5s cubic-bezier(.45,.05,.3,1) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes matchTurn     { 0%, 18% { transform: rotate(0deg); } 34%, 78% { transform: rotate(90deg); } 94%, 100% { transform: rotate(0deg); } }
@keyframes matchTurnMark { 0%, 18% { transform: rotate(0deg); } 34%, 78% { transform: rotate(-90deg); } 94%, 100% { transform: rotate(0deg); } }
.anim-seam { animation: stepSeam 5s ease infinite; }
@keyframes stepSeam {
  0%, 34%  { transform: scale(.2); opacity: 0; }
  42%      { transform: scale(1.25); opacity: 1; }
  48%, 74% { transform: scale(1); opacity: 1; }
  84%, 100%{ transform: scale(.2); opacity: 0; }
}
.step-bloom { animation: stepBloom 5s ease infinite; }
@keyframes stepBloom {
  0%, 34%   { transform: scale(.35); opacity: 0; }
  40%       { opacity: .85; }
  58%, 100% { transform: scale(2.3); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-turn, .hero-turn .mk, .hero-seam, .hero-bloom, .anim-lift,
  .anim-turn, .anim-turn .mk, .match-turn, .match-turn .mk, .anim-seam, .step-bloom { animation: none; }
  .hero-seam, .anim-seam { opacity: 1; }
  .hero-bloom, .step-bloom { opacity: 0; }
}
}
        color: rgba(255,255,255,.82); font-weight: 700; }

/* leaderboard */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 30px; } }
.lb { background: var(--cream); color: var(--ink); border-radius: 24px; padding: 24px 22px;
      box-shadow: 0 34px 60px -34px rgba(2,28,32,.9); }
.lb h4 { margin: 0 0 3px; font-size: 19px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.lb .of { margin: 0 0 18px; font-size: 13px; color: rgba(13,36,41,.6); }
.lb ol { list-style: none; margin: 0; padding: 0; }
.lb li { display: flex; align-items: center; gap: 13px; padding: 11px 8px; border-bottom: 1px solid rgba(13,36,41,.09); }
.lb li:last-child { border-bottom: 0; }
.lb li.me { background: rgba(255,92,122,.11); border-radius: 12px; border-bottom-color: transparent; }
.lb li:has(+ li.me) { border-bottom-color: transparent; }
.lb li.me .rk, .lb li.me .who { color: var(--coral); }
.lb .rk { width: 22px; font-weight: 700; font-size: 13px; color: rgba(13,36,41,.55); }
.lb .who { flex: 1; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; font-size: 14px; }
.lb .tm { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 15px; text-align: right; }
.lb .tm small { display: block; font-size: 10.5px; opacity: .5; font-weight: 600; }

/* pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 780px) { .plans { grid-template-columns: 1fr; } }
.plan { border-radius: 24px; padding: 30px 28px; background: rgba(248,242,231,.09);
        box-shadow: inset 0 0 0 1.5px rgba(248,242,231,.15); }
.plan.hi { background: linear-gradient(150deg, rgba(255,186,90,.34), rgba(255,92,122,.3));
           box-shadow: inset 0 0 0 1.5px rgba(255,214,168,.55); }
.plan .price { font-size: 38px; font-weight: 600; letter-spacing: .02em; margin: 6px 0 4px; }
.plan .price small { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.plan h3 { margin: 0; font-size: 14px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; }
.plan ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 11px; }
.plan li { display: flex; gap: 11px; font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }
.plan li svg { flex: 0 0 17px; margin-top: 2px; }

footer { padding: 54px 0 70px; border-top: 1px solid rgba(248,242,231,.1); margin-top: 40px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }
footer a { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
           color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--cream); }
footer .copy { margin-left: auto; font-size: 12px; color: rgba(248,242,231,.45); }
@media (max-width: 640px) { footer .copy { margin-left: 0; width: 100%; } }

/* document pages (privacy / support) */
.doc { background: var(--cream); color: var(--ink); border-radius: 24px; padding: 44px 40px; margin: 40px 0 0; }
@media (max-width: 640px) { .doc { padding: 30px 22px; } }
.doc h1 { font-family: var(--font); font-weight: 600; font-size: clamp(26px, 4.2vw, 36px); letter-spacing: .07em; margin-bottom: 8px; text-shadow: none; }
.doc h2 { font-size: 16px; letter-spacing: .14em; margin: 32px 0 10px; }
.doc p, .doc li { font-size: 15.5px; line-height: 1.68; color: rgba(13,36,41,.82); }
.doc ul { padding-left: 20px; }
.doc a { color: #c2385a; }
.doc .updated { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: rgba(13,36,41,.45); }
