@font-face { font-family: Fredoka; src: url(/fonts/Fredoka-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: Nunito; src: url(/fonts/Nunito-SemiBold.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: Nunito; src: url(/fonts/Nunito-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --ground: #F4EDE1; --card: #FFFAF2; --ink: #22303A; --muted: #5C6770; --line: #E0D5C3;
  --track: #EAE1D2; --accent: #1E7B74; --on-accent: #FFFFFF; --accent-hover: #155E59;
  --berry: #C0492F; --dot: #E6DCCB; --sage: #1E7B74;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #12181C; --card: #1B2328; --ink: #EDE7DC; --muted: #A9B3B8; --line: #2F3B42;
    --track: #27323A; --accent: #5CC3B8; --on-accent: #0B1A19; --accent-hover: #7FD3CA;
    --berry: #EA8A70; --dot: #202A30; --sage: #5CC3B8;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 600 18px/1.55 Nunito, system-ui, sans-serif; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 28px/1 Fredoka, sans-serif; letter-spacing: -0.8px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.bar nav { display: flex; gap: 20px; flex-wrap: wrap; font-weight: 700; font-size: 16px; }
.bar nav a { color: var(--ink); text-decoration: none; }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--accent); }

h1, h2, h3 { font-family: Fredoka, sans-serif; font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(38px, 6.2vw, 66px); }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: 21px; letter-spacing: -0.01em; }
p { margin: 0; }
.muted { color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; border-radius: 28px; border: 2px solid transparent; font: 700 17px/1 Nunito, sans-serif; text-decoration: none; cursor: pointer; }
.btn-main { background: var(--accent); color: var(--on-accent); }
.btn-main:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--card); color: var(--ink); }

.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding: 24px 0 72px; }
.hero-copy { flex: 999 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero-copy .lead { font-size: 20px; color: var(--muted); max-width: 34rem; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.proof { font-size: 15px; font-weight: 700; color: var(--muted); }

.play { flex: 1 1 300px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.play-card { width: 100%; max-width: 360px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 16px; }
.play-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 700; font-size: 15px; }
.track { flex: 1; height: 10px; border-radius: 5px; background: var(--track); overflow: hidden; }
.track i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s; }
.play-note { font-size: 14px; color: var(--muted); text-align: center; min-height: 1.5em; }
.play-note.win { color: var(--sage); font-weight: 700; }

section { padding: 64px 0; }
.band { background: var(--card); border-block: 1px solid var(--line); }
.section-head { max-width: 40rem; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }

.pains { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.pains p { background: var(--ground); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.band .pains p { background: var(--ground); }

.feature { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding: 28px 0; }
.feature:nth-child(even) { flex-direction: row-reverse; }
.feature .txt { flex: 999 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.feature .txt p { color: var(--muted); max-width: 32rem; }
.shot { flex: 1 1 240px; margin: 0; display: flex; justify-content: center; }
.shot img { width: min(100%, 270px); border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 18px 44px rgba(34,48,58,.14); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; padding: 0; margin: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: counter(s); font: 700 30px/1 Fredoka, sans-serif; color: var(--accent); }

.video { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.video .txt { flex: 999 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.player { flex: 1 1 260px; max-width: 340px; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; position: relative; background: #11151D; border: 0; padding: 0; cursor: pointer; }
.player img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.player span { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.player span::after { content: ""; border-left: 22px solid var(--on-accent); border-top: 14px solid transparent; border-bottom: 14px solid transparent; margin-left: 6px; }
.player iframe { width: 100%; height: 100%; border: 0; }

.faq { max-width: 46rem; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; }
.faq details p { padding: 0 0 16px; color: var(--muted); }

.cta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }

.doc { max-width: 46rem; padding: 16px 0 72px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 8px; }
.doc h2 { font-size: 24px; margin: 32px 0 10px; }
.doc p, .doc li { margin-bottom: 10px; }
.doc .meta { color: var(--muted); margin-bottom: 20px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: 15px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Hero board: 8x8 + a tray of three, tap a piece then tap a cell. */
.pc { display: grid; gap: 2px; }
.pc i { width: 18px; height: 18px; border-radius: 5px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
.pc i.e { visibility: hidden; }

.pile { position: relative; width: 100%; aspect-ratio: 6 / 4.6; touch-action: manipulation; }
.pile button, .slots span { position: absolute; width: 22%; aspect-ratio: 1; border: 0; padding: 0; border-radius: 20%; background: #FFF8EA; box-shadow: inset 0 -6px 0 #D8C7A8, 0 2px 0 rgba(0,0,0,.08); font: 700 clamp(22px, 6vw, 34px)/1 system-ui, sans-serif; cursor: pointer; display: grid; place-items: center; padding-bottom: 6px; }
.pile button:disabled { filter: grayscale(.55) brightness(.82); cursor: default; }
.slots { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; margin-top: 14px; background: var(--dot); border-radius: 16px; padding: 8px; }
.slots span { position: static; width: 100%; font-size: clamp(16px, 4.4vw, 22px); padding-bottom: 4px; cursor: default; }
.slots span.e { background: var(--track); box-shadow: none; }
