/* klikkod website: the same world as the app. Lavender page, white cards,
   indigo Klik, chunky keycap tiles, and a soft sky behind the hero only. */

/* Nunito (SIL Open Font License, /fonts/Nunito-OFL.txt). Self-hosted; Latin and
   Latin Extended together cover Turkish, English, Spanish, French and Portuguese. */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url("/fonts/nunito-latin-ext-wght-normal.woff2") format("woff2-variations"), url("/fonts/nunito-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url("/fonts/nunito-latin-wght-normal.woff2") format("woff2-variations"), url("/fonts/nunito-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font: "Nunito", ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --bg: #ece9fb;
  --surface: #ffffff;
  --surface-2: #e2def5;
  --ink: #121829;
  --ink-2: #4e5669;
  --line: #dbd6ef;
  --line-strong: #c2bbe0;
  --primary: #233a8c;
  --primary-press: #1a2d70;
  --on-primary: #ffffff;
  --primary-soft: #dfdcf6;
  --key: #ffffff;
  --key-edge: #c6bfe2;
  --key-hi: rgb(255 255 255 / 0.9);

  --exact: #18905e;
  --exact-edge: #0e6c46;
  --exact-text: #11734b;
  --exact-soft: #dcf1e7;
  --present: #e9a61c;
  --present-edge: #b97f0d;
  --on-present: #261a00;
  --present-text: #7a4d00;
  --present-soft: #fbedcf;
  --absent: #687083;
  --absent-edge: #4c5366;
  --danger: #b8322a;

  --store: #121829;
  --store-edge: #000000;
  --on-store: #ffffff;

  --shadow: 0 1px 2px rgb(18 24 41 / 0.06), 0 4px 14px rgb(18 24 41 / 0.05);
  --shadow-lift: 0 2px 4px rgb(18 24 41 / 0.05), 0 18px 48px rgb(35 58 140 / 0.13);

  --sky-top: #d6e2fb;
  --sky-mid: #e7e8fb;
  --cloud: #ffffff;
  --cloud-o: 0.85;
  --doodle-o: 0.09;
  --star: #8b89c9;

  /* Older page styles reference these names. */
  --muted: var(--ink-2);
  --ink-soft: var(--ink-2);

  --wrap: 1160px;
  --gutter: 16px;
  --r-card: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1433;
    --surface: #181d3f;
    --surface-2: #141938;
    --ink: #f2f3f6;
    --ink-2: #b4b9c6;
    --line: #262c52;
    --line-strong: #363d68;
    --primary: #8ea6ff;
    --primary-press: #7690f0;
    --on-primary: #0a1230;
    --primary-soft: #232b5c;
    --key: #232a52;
    --key-edge: #0a0d24;
    --key-hi: rgb(255 255 255 / 0.1);
    --exact: #23a06b;
    --exact-edge: #157048;
    --exact-text: #5fd29e;
    --exact-soft: #12301f;
    --present: #e2a72e;
    --present-edge: #a7780f;
    --present-text: #f2c66b;
    --present-soft: #3a2d0c;
    --absent: #3b404b;
    --absent-edge: #24272e;
    --danger: #ff8a80;
    --store: #f2f3f6;
    --store-edge: #a8aebb;
    --on-store: #0f1433;
    --shadow: 0 1px 0 rgb(255 255 255 / 0.03);
    --shadow-lift: 0 18px 48px rgb(0 0 0 / 0.45);
    --sky-top: #1b2a5c;
    --sky-mid: #121839;
    --cloud-o: 0.05;
    --doodle-o: 0.12;
    --star: #ffffff;
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
picture { display: block; }
h1, h2, h3 { margin: 0; font-family: var(--font); color: var(--ink); text-wrap: balance; }
p { margin: 0; }
a { color: var(--primary); text-underline-offset: 3px; text-decoration-thickness: 2px; }
strong { font-weight: 800; color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
@media (min-width: 720px) { :root { --gutter: 28px; } }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  padding: 10px 16px; border-radius: 12px;
  background: var(--primary); color: var(--on-primary); font-weight: 800; text-decoration: none;
}
.skip:focus { top: 12px; }
.language-label {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Header ---------- */
.header {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 12px 20px;
  min-height: 76px; padding-block: 14px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-weight: 900; font-size: 1.375rem; letter-spacing: -0.02em; line-height: 1;
}
.brand-mark { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 2px 6px rgb(240 100 31 / 0.25); }
.brand-dot { display: none; }
.header nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.header nav a, .header > .text-link, .header > a:not(.brand) {
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.98rem;
  padding: 8px 12px; border-radius: 12px;
}
.header nav a:hover, .header > a:not(.brand):hover { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.header nav a.nav-play {
  margin-left: 6px; background: var(--primary); color: var(--on-primary); font-weight: 800;
  box-shadow: inset 0 -3px 0 var(--primary-press), inset 0 2px 0 rgb(255 255 255 / 0.16);
  padding: 8px 16px 10px;
}
.header nav a.nav-play:hover { background: var(--primary); filter: brightness(1.08); }
.header > a:not(.brand):first-of-type:last-child, .header > .brand + a { margin-left: auto; }
.language-picker select {
  appearance: none; -webkit-appearance: none;
  padding: 8px 34px 8px 12px; min-height: 40px;
  border: 1.5px solid var(--line-strong); border-radius: 12px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23687083' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--ink); font-weight: 700; font-size: 0.95rem; cursor: pointer;
}
.header .language-picker { margin-left: 4px; }
.header > .brand + .text-link + .language-picker, .header > .brand + a + .language-picker { margin-left: 0; }
@media (max-width: 760px) {
  .header nav a:not(.nav-play) { display: none; }
}
@media (max-width: 440px) {
  .header { gap: 8px; }
  .header nav a.nav-play { display: none; }
  .header .language-picker { margin-left: auto; }
  .header nav { margin-left: 0; }
}

/* ---------- Sky (hero only) ---------- */
.top { position: relative; isolation: isolate; }
.sky {
  position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 55%, var(--bg) 100%);
}
.sky.is-morning { --sky-top: #fde7d9; --sky-mid: #efe9fb; }
.sky.is-evening { --sky-top: #fbd6cb; --sky-mid: #f1e3f3; }
.sky.is-night { --sky-top: #d3d0f2; --sky-mid: #e6e3f9; --cloud-o: 0.55; }
@media (prefers-color-scheme: dark) {
  .sky.is-morning { --sky-top: #2a2c55; --sky-mid: #141a3b; }
  .sky.is-day { --sky-top: #1b2a5c; --sky-mid: #121839; }
  .sky.is-evening { --sky-top: #36214a; --sky-mid: #15173a; }
  .sky.is-night { --sky-top: #1a2152; --sky-mid: #111637; --cloud-o: 0.05; }
}
.sky-art { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.sky-art .cloud { fill: var(--cloud); opacity: var(--cloud-o); }
.sky-art .cloud-a { animation: cloud-drift 70s ease-in-out infinite alternate; }
.sky-art .cloud-b { animation: cloud-drift 90s ease-in-out infinite alternate-reverse; }
.sky-art .cloud-c { animation: cloud-drift 80s ease-in-out infinite alternate; }
.sky-art .doodles { fill: none; stroke: var(--primary); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: var(--doodle-o); }
.sky-art .doodles text { fill: var(--primary); stroke: none; font-family: var(--font); font-weight: 900; font-size: 44px; }
.sky-art .stars { display: none; }
.sky-art .stars circle { fill: var(--star); opacity: 0.6; animation: star-twinkle 4s ease-in-out infinite; }
.sky-art .stars circle:nth-child(2n) { animation-delay: 1.4s; }
.sky-art .stars circle:nth-child(3n) { animation-delay: 2.6s; }
.sky.is-night .stars { display: inline; }
@media (prefers-color-scheme: dark) { .sky-art .stars { display: inline; } .sky-art .stars circle { opacity: 0.55; } }
@keyframes cloud-drift { to { transform: translateX(40px); } }
@keyframes star-twinkle { 50% { opacity: 0.18; } }

/* ---------- Tiles: the keycap ---------- */
.tile {
  --size: 52px;
  display: inline-grid; place-items: center;
  width: var(--size); height: calc(var(--size) * 1.08);
  padding-bottom: calc(var(--size) * 0.06);
  border-radius: calc(var(--size) * 0.22);
  background: var(--key); color: var(--ink);
  font-family: var(--font); font-weight: 800; font-style: normal;
  font-size: calc(var(--size) * 0.52); line-height: 1;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 2px 0 var(--key-hi), inset 0 -3px 0 var(--key-edge), 0 1px 2px rgb(0 0 0 / 0.06);
  flex-shrink: 0;
}
.tile-exact { background: var(--exact); color: #fff; box-shadow: inset 0 2px 0 rgb(255 255 255 / 0.22), inset 0 -3px 0 var(--exact-edge); }
.tile-present { background: var(--present); color: var(--on-present); box-shadow: inset 0 2px 0 rgb(255 255 255 / 0.3), inset 0 -3px 0 var(--present-edge); }
.tile-absent { background: var(--absent); color: #fff; box-shadow: inset 0 2px 0 rgb(255 255 255 / 0.14), inset 0 -3px 0 var(--absent-edge); }
.tile-hidden { background: var(--primary); color: var(--on-primary); box-shadow: inset 0 2px 0 rgb(255 255 255 / 0.16), inset 0 -4px 0 var(--primary-press); }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 24px 15px;
  border: 0; border-radius: 16px;
  background: var(--primary); color: var(--on-primary);
  font-family: var(--font); font-weight: 800; font-size: 1.0625rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  box-shadow: inset 0 -4px 0 var(--primary-press), inset 0 2px 0 rgb(255 255 255 / 0.16), 0 6px 16px rgb(35 58 140 / 0.18);
  transition: transform 0.12s var(--ease), box-shadow 0.12s var(--ease), filter 0.15s;
}
.button:hover { filter: brightness(1.08); }
.button:active { transform: translateY(2px); box-shadow: inset 0 -2px 0 var(--primary-press), inset 0 2px 0 rgb(255 255 255 / 0.16); }
.button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.store-links { display: flex; flex-wrap: wrap; gap: 10px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 48px; padding: 10px 18px 12px; border-radius: 14px;
  font-weight: 800; font-size: 0.98rem; line-height: 1.2; text-decoration: none;
}
.store-btn svg { flex-shrink: 0; }
.store-ios { background: var(--store); color: var(--on-store); box-shadow: inset 0 -3px 0 var(--store-edge), inset 0 2px 0 rgb(255 255 255 / 0.12); }
.store-ios:hover { filter: brightness(1.15); }
.store-android { border: 2px dashed var(--line-strong); color: var(--ink-2); background: color-mix(in srgb, var(--surface) 55%, transparent); cursor: default; }
.text-button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border: 0; border-radius: 10px;
  background: var(--primary-soft); color: var(--primary);
  font-weight: 800; font-size: 0.95rem; cursor: pointer;
}
.text-button:hover { filter: brightness(0.97); }
.text-link { font-weight: 800; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center; gap: 32px;
  padding: 40px 0 112px;
}
.hero h1 { font-weight: 900; font-size: clamp(2.6rem, 6.4vw, 4.75rem); line-height: 1.02; letter-spacing: -0.035em; }
.intro { margin-top: 20px; max-width: 34ch; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--ink-2); font-weight: 600; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 32px; }
.hero-art { display: flex; flex-direction: column; align-items: center; }
.bubble {
  position: relative; max-width: 290px; margin-bottom: 14px;
  padding: 12px 18px 13px; border-radius: 20px;
  background: var(--surface); color: var(--ink);
  font-weight: 800; font-size: 1.02rem; line-height: 1.35; text-align: center;
  box-shadow: var(--shadow-lift);
}
.bubble::after {
  content: ""; position: absolute; left: 50%; bottom: -9px; width: 18px; height: 18px;
  background: var(--surface); border-radius: 4px; transform: translateX(-50%) rotate(45deg);
}
.hero-klik { margin-bottom: -10px; animation: klik-bob 3.6s ease-in-out infinite; transform-origin: 50% 100%; }
.hero-klik img { width: clamp(132px, 15vw, 188px); height: auto; }
.hero-tiles { display: flex; gap: 10px; }
.hero-tiles .tile { --size: clamp(52px, 5.4vw, 68px); }
@keyframes klik-bob { 0%, 100% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(-5px) scaleY(1.01); } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 16px 0 72px; }
  .hero-art { order: -1; }
  .hero-copy { text-align: left; }
}

/* ---------- Sections ---------- */
.section { padding-block: 88px; }
.section h2, .demo-copy h2, .coming h2 { font-weight: 900; font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.06; letter-spacing: -0.03em; }
.section-intro, .features-heading p { margin-top: 16px; color: var(--ink-2); font-size: 1.125rem; font-weight: 600; }

/* Rules */
.rules-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-top: 24px; }
.rules { display: grid; gap: 14px; margin-top: 32px; }
.rule { display: flex; gap: 18px; align-items: flex-start; padding: 20px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.rule-tile { --size: 50px; }
.rule h3 { font-weight: 800; font-size: 1.2rem; line-height: 1.3; }
.rule p { margin-top: 4px; color: var(--ink-2); }
.rule-example { margin-top: 18px; padding: 16px 20px; border-radius: 20px; border: 2px dashed var(--line-strong); color: var(--ink); font-weight: 600; }
.rule-example small { display: block; margin-top: 6px; color: var(--ink-2); font-size: 0.98rem; }
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.6em; padding: 2px 10px 3px; border-radius: 999px;
  font-weight: 900; font-size: 0.95rem; line-height: 1.4; font-variant-numeric: tabular-nums;
}
.badge.plus { background: var(--exact-soft); color: var(--exact-text); }
.badge.minus { background: var(--present-soft); color: var(--present-text); }

.example-card {
  position: relative; margin: 72px 0 0; padding: 28px;
  border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-lift);
}
.example-klik { position: absolute; top: -84px; right: 22px; }
.example-klik img { width: 112px; height: auto; }
.example-title { font-weight: 900; font-size: 1.3rem; line-height: 1.25; padding-right: 110px; }
.ex-rows { display: grid; gap: 12px; margin-top: 22px; }
.ex-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ex-tiles { display: flex; gap: 7px; }
.ex-tiles .tile { --size: 46px; }
.ex-clue { display: flex; align-items: center; gap: 6px; }
.ex-row.solved small { font-weight: 900; font-size: 1rem; color: var(--exact-text); }
.example-foot { margin-top: 22px; padding-top: 16px; border-top: 2px solid var(--line); color: var(--ink-2); font-weight: 700; }

/* Demo */
.demo-section { padding-block: 24px; }
.demo-layout {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 56px; align-items: center;
  padding: 64px clamp(20px, 5vw, 64px); border-radius: 40px; background: var(--surface-2);
  isolation: isolate;
}
.demo-intro { margin-top: 16px; color: var(--ink-2); font-size: 1.125rem; font-weight: 600; }
.demo-tip { margin-top: 24px; padding: 16px 20px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.demo-tip p { color: var(--ink-2); }
.demo-note { margin-top: 16px; font-size: 0.95rem; color: var(--ink-2); }
.demo-board {
  position: relative; margin-top: 64px; padding: 24px;
  border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-lift);
}
.board-klik { position: absolute; z-index: -1; top: -86px; right: 28px; width: 104px; }
.board-klik img { width: 104px; height: auto; }
.board-klik .klik-proud { display: none; }
.demo-board.is-won .board-klik .klik-happy { display: none; }
.demo-board.is-won .board-klik .klik-proud { display: block; }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.board-label { font-weight: 800; color: var(--primary); }
.board-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 10px; }
.board-meta h3 { font-weight: 900; font-size: 1.5rem; line-height: 1.2; }
.attempts { flex-shrink: 0; padding: 2px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 800; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.history {
  display: grid; align-content: start; gap: 8px;
  min-height: 132px; max-height: 300px; overflow-y: auto;
  margin-top: 16px; padding: 12px; border-radius: 18px; background: var(--bg);
}
.empty-state { align-self: center; padding: 34px 8px; text-align: center; color: var(--ink-2); font-weight: 600; }
.guess-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 8px; border-radius: 14px; background: var(--surface); }
.guess-digits { display: flex; gap: 5px; }
.guess-digits .tile { --size: 36px; }
.guess-row.won .tile { background: var(--exact); color: #fff; box-shadow: inset 0 2px 0 rgb(255 255 255 / 0.22), inset 0 -3px 0 var(--exact-edge); }
.guess-feedback { display: flex; gap: 6px; }
#guess-form { margin-top: 18px; }
#guess-form label { display: block; margin-bottom: 8px; font-weight: 800; font-size: 0.98rem; }
.guess-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.guess-controls input {
  width: 100%; min-width: 0; min-height: 56px; padding: 8px 14px;
  border: 2px solid var(--line-strong); border-radius: 16px;
  background: var(--key); color: var(--ink);
  font-weight: 900; font-size: 1.6rem; letter-spacing: 0.35em; text-align: center; font-variant-numeric: tabular-nums;
}
.guess-controls input::placeholder { color: var(--ink-2); opacity: 0.45; }
.guess-controls input:focus-visible { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.guess-controls .button { min-height: 56px; padding-inline: 26px; }
.game-message { min-height: 1.6em; margin-top: 12px; color: var(--ink-2); font-weight: 700; }
.game-message.error { color: var(--danger); }
.game-message.success { color: var(--exact-text); }

/* Features */
.features-heading { max-width: 640px; }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.feature-list article { display: flex; flex-direction: column; gap: 18px; padding: 26px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.feature-mark { display: flex; align-items: flex-end; gap: 6px; height: 64px; }
.feature-mark .tile { --size: 46px; }
.feature-mark .tile.is-struck { position: relative; }
.feature-mark .tile.is-struck::after { content: ""; position: absolute; left: 18%; right: 18%; top: 48%; height: 3px; border-radius: 2px; background: currentColor; transform: rotate(-24deg); }
.feature-mark img { width: 64px; height: auto; }
.feature-list h3 { font-weight: 800; font-size: 1.25rem; line-height: 1.3; }
.feature-list p { margin-top: 6px; color: var(--ink-2); }

/* Coming */
.coming { padding-bottom: 88px; }
.coming-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px 36px; align-items: center;
  padding: clamp(24px, 4vw, 44px); border-radius: 36px; background: var(--surface); box-shadow: var(--shadow-lift);
}
.coming-icon { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 8px 20px rgb(240 100 31 / 0.28); }
.coming h2 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); }
.coming-copy p { margin-top: 10px; color: var(--ink-2); font-weight: 600; }
.coming-side { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.android-label { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 800; }

/* ---------- Footer ---------- */
.footer { color: var(--ink-2); font-size: 0.98rem; }
.site-footer { padding: 40px 0 48px; border-top: 2px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-right: auto; }
.footer-brand img { width: 72px; height: auto; }
.footer-brand .brand { font-size: 1.25rem; }
.footer-tag { display: block; margin-top: 4px; font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer a { color: var(--ink); font-weight: 700; text-decoration: none; }
.footer a:hover { color: var(--primary); text-decoration: underline; }
.footer-copy { flex-basis: 100%; color: var(--ink-2); }
/* Legal pages: a simple row of links. */
.footer.wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; padding: 28px 0 48px; }
.footer.wrap small { margin-left: auto; }

/* ---------- Legal and help pages ---------- */
.legal {
  margin-top: 8px; margin-bottom: 32px;
  max-width: 820px; padding: clamp(24px, 5vw, 56px);
  border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-lift);
  overflow-wrap: anywhere;
}
.legal h1 { font-weight: 900; font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 20px; }
.legal h2 { margin: 40px 0 10px; font-weight: 800; font-size: 1.35rem; line-height: 1.3; }
.legal h3 { margin: 28px 0 8px; font-weight: 800; font-size: 1.12rem; }
.legal p { margin: 0 0 14px; color: var(--ink-2); line-height: 1.75; }
.legal ul, .legal ol { color: var(--ink-2); line-height: 1.75; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal li::marker { color: var(--primary); }
.legal a { font-weight: 700; }
.legal .eyebrow {
  display: inline-block; margin-bottom: 14px; padding: 4px 12px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary); font-weight: 800; font-size: 0.92rem; line-height: 1.5;
}
.legal section { margin-top: 56px; padding-top: 40px; border-top: 2px solid var(--line); }
.legal .fill { background: var(--present-soft); color: var(--present-text); border-radius: 6px; padding: 0 6px; }
.legal .contact { font-size: 1.25rem; font-weight: 800; }
.legal table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.legal th, .legal td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--ink-2); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .rules-section { grid-template-columns: 1fr; gap: 24px; }
  .demo-layout { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 720px) {
  .section { padding-block: 64px; }
  .rules-section { padding-top: 8px; }
  .feature-list { grid-template-columns: 1fr; }
  .coming-card { grid-template-columns: 1fr; }
  .coming-icon { width: 76px; height: 76px; border-radius: 19px; }
  .demo-layout { border-radius: 28px; padding: 40px 18px 24px; }
  .demo-section { padding-block: 8px; }
  .demo-board { padding: 18px; }
  .example-card { padding: 22px 18px; }
  .footer.wrap small { margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 420px) {
  .hero h1 { font-size: 2.4rem; }
  .ex-tiles .tile { --size: 40px; }
  .ex-tiles { gap: 5px; }
  .guess-digits .tile { --size: 32px; }
  .guess-controls input { font-size: 1.35rem; letter-spacing: 0.25em; }
  .guess-controls .button { padding-inline: 18px; }
  .hero-actions .button, .hero-actions .store-btn { width: 100%; justify-content: center; }
  .hero-actions .store-links { width: 100%; }
  .example-title { padding-right: 84px; font-size: 1.15rem; }
  .example-klik { top: -70px; right: 12px; }
  .example-klik img { width: 92px; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
