/* honkboard.com's home page (index.html, home.js): the app's look, dark (app/src/styles.css). Fonts are served from
   here (/fonts, OFL), never from Google. */
@font-face { font-family: "Nunito"; font-weight: 200 1000; font-display: swap; src: url("/fonts/nunito-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 300 700; font-display: swap; src: url("/fonts/fredoka-latin-wght-normal.woff2") format("woff2"); }
:root {
  --bg: #17131f; --panel: #211b2c; --panel-2: #2a2238; --panel-3: #352c46; --line: #2e2640;
  --text: #f4f0e8; --muted: #a59cb8; --accent: #ff9a2e; --accent-ink: #ffab52; --accent-text: #1f1830;
  --pro: #8b7cf6; --pro-ink: #b9aefc; --talk: #3fcf7c;
  color-scheme: dark;
  font-family: "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  font-size: 16px; color: var(--text);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { background: radial-gradient(circle at 50% 180px, #3a2c55 0%, #241c33 300px, var(--bg) 640px) no-repeat, var(--bg); overflow-x: hidden; }
h1, h2, h3 { font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; line-height: 1.55; }
a { color: var(--accent-ink); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.pro { color: var(--pro-ink); }

/* Top bar */
.top { display: flex; align-items: center; gap: 24px; height: 64px; }
.top .brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 600 20px "Fredoka", sans-serif; }
.top .brand img { width: 32px; height: 32px; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.top nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 600; }
.top nav a:not(.btn):hover { color: var(--text); }
.top nav a.pro { color: var(--pro-ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 18px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); font: inherit; font-weight: 700;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.big { padding: 15px 26px; font-size: 18px; border-radius: 14px; }
.btn:hover { filter: brightness(1.08); }
.btn svg { width: 20px; height: 20px; flex: none; }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px; }
.cta .note { color: var(--muted); font-size: 14px; }
.cta .note a { font-weight: 700; text-decoration: none; }

/* Hero */
.hero { text-align: center; }
.hero h1 { font-size: clamp(38px, 6vw, 58px); line-height: 1.02; margin-top: 2px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .sub { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 580px; margin: 12px auto 0; }
.hero .cta { margin-top: 22px; }

/* The goose (home.js): bobs, honks along with the board, waves pulse while a sound plays; the fart has its own */
.goose { position: relative; width: min(190px, 46vw); margin: 0 auto; }
.goose .g { animation: bob 2.6s ease-in-out infinite; transform-origin: 50% 90%; }
.goose svg { display: block; width: 100%; height: auto; }
.goose.honk svg { animation: honk 0.38s ease-out; transform-origin: 45% 80%; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-1.5deg); } }
@keyframes honk { 30% { transform: scale(1.07) rotate(-5deg); } }
.goose .w1, .goose .w2 { transform-box: fill-box; transform-origin: 0 50%; }
.goose.talking .w1 { animation: wave 0.5s ease-in-out infinite; }
.goose.talking .w2 { animation: wave 0.5s ease-in-out 0.15s infinite; }
@keyframes wave { 50% { transform: scale(1.35); opacity: 0.55; } }
.goose.squat svg { animation: squat 0.6s ease-in-out; transform-origin: 50% 95%; }
@keyframes squat { 30% { transform: scale(1.06, 0.9) rotate(3deg); } 55% { transform: scale(0.97, 1.04); } }
.goose .poop, .goose .puff { position: absolute; pointer-events: none; line-height: 1; }
.goose .poop { left: 6%; top: 70%; font-size: 28px; animation: drop 2.6s ease-in forwards; }
@keyframes drop {
  0% { opacity: 0; transform: translate(14px, -10px) scale(0.3); }
  12% { opacity: 1; transform: translate(4px, 0) scale(1); }
  30% { transform: translate(-6px, 30px) scale(1.05, 0.9); }
  38% { transform: translate(-8px, 20px) scale(0.95, 1.05); }
  46%, 80% { opacity: 1; transform: translate(-10px, 30px); }
  100% { opacity: 0; transform: translate(-10px, 30px); }
}
.goose .puff { left: -2%; top: 52%; font-size: 26px; transform: scaleX(-1); animation: puff 1.1s ease-out forwards; }
@keyframes puff { 0% { opacity: 0; translate: 10px 0; } 20% { opacity: 0.9; } 100% { opacity: 0; translate: -30px -14px; scale: 1.5; } }
.goose > button { position: absolute; inset: 0; background: none; border: 0; cursor: pointer; border-radius: 50%; }

/* Feature chips and their explanations */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.chips button {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); color: var(--text); font: 700 14px "Nunito", sans-serif;
}
.chips button:hover { border-color: var(--accent); background: var(--panel-2); }
dialog {
  width: min(460px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 20px;
  background: var(--panel); color: var(--text); box-shadow: 0 30px 80px rgb(0 0 0 / 0.6);
}
dialog::backdrop { background: rgb(10 8 15 / 0.7); backdrop-filter: blur(3px); }
dialog[open] { animation: up 0.18s ease-out; }
@keyframes up { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
dialog .body { padding: 26px 26px 8px; }
dialog .big { font-size: 40px; line-height: 1; }
dialog h2 { font-size: 24px; margin: 12px 0 10px; }
dialog p { color: var(--muted); margin-bottom: 10px; }
dialog p b { color: var(--text); }
dialog .pro-note { font-size: 14px; color: var(--pro-ink); }
dialog .actions { display: flex; gap: 10px; justify-content: flex-end; padding: 12px 26px 22px; }
dialog .x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--panel-2); color: var(--muted); font-size: 18px; cursor: pointer; }

/* The playable board and the call */
.play { max-width: 920px; margin: 30px auto 0; padding: 18px; border-radius: 22px; background: linear-gradient(180deg, var(--panel) 0%, #1b1625 100%); border: 1px solid var(--line); }
.label { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.label::before, .label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.play .call-label { margin: 20px 0 4px; }
.board { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 12px 8px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel);
  color: var(--text); font: inherit; font-weight: 700; font-size: 14px; text-align: center; cursor: pointer;
  transition: transform 0.08s, border-color 0.15s, box-shadow 0.15s;
}
.tile:hover { border-color: var(--panel-3); background: var(--panel-2); }
.tile:active { transform: scale(0.97); }
.tile .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 26px; background: hsl(var(--h) 45% 26%); }
.tile kbd { position: absolute; top: 10px; right: 10px; font: 600 12px ui-monospace, Consolas, monospace; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; }
.tile.playing { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(255 154 46 / 0.25); }
.tile .bar { position: absolute; left: 14px; right: 14px; bottom: 8px; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; opacity: 0; }
.tile.playing .bar { opacity: 1; }
.tile .bar i { display: block; height: 100%; width: 0; background: var(--accent); }
.call { display: flex; justify-content: center; gap: 28px; margin-top: 14px; }
.friend { position: relative; display: grid; justify-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.friend .av { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: hsl(var(--h) 40% 30%); box-shadow: 0 0 0 3px var(--bg), 0 0 0 3px transparent; }
.friend .av img { width: 100%; height: 100%; border-radius: 50%; }
.friend.me.talking { color: var(--text); }
.friend.me.talking .av { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--talk); }
.friend.hears .av { animation: ring 1.6s ease-out; }
@keyframes ring { 0%, 70% { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--talk); } 100% { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px transparent; } }
.friend .re { position: absolute; top: -10px; right: -12px; font-size: 24px; opacity: 0; }
.friend.hears .re { animation: pop 1.6s ease-out; }
@keyframes pop { 15% { opacity: 1; transform: translateY(-8px) scale(1.2); } 70% { opacity: 1; transform: translateY(-14px); } 100% { opacity: 0; transform: translateY(-22px); } }
@media (hover: none) { .keys { display: none; } }

/* Sections below */
section.more { padding: 88px 0 0; scroll-margin-top: 16px; }
section.more h2 { font-size: clamp(28px, 4vw, 36px); text-align: center; }
section.more .lead { text-align: center; color: var(--muted); font-size: 17px; max-width: 600px; margin: 10px auto 32px; }
.works { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; color: var(--muted); font: 600 18px "Fredoka", sans-serif; }
.works a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px; }
.works a:hover { color: var(--text); text-decoration-color: var(--accent); }
.works-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 12px; opacity: 0.8; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 22px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.step b { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-text); font-family: "Fredoka"; margin-bottom: 12px; }
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 820px; margin: 0 auto; }
.plan { padding: 24px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; }
.plan.is-pro { border-color: rgb(139 124 246 / 0.55); background: linear-gradient(180deg, rgb(139 124 246 / 0.12), var(--panel) 60%); }
.plan h3 { font-size: 22px; }
.plan .price { margin: 6px 0 16px; color: var(--muted); }
.plan .price b { font: 600 30px "Fredoka", sans-serif; color: var(--text); margin-right: 4px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 9px; }
.plan li { display: flex; gap: 10px; line-height: 1.45; }
.plan li::before { content: "✓"; color: var(--talk); font-weight: 800; }
.plan.is-pro li::before { color: var(--pro-ink); }
.plan li span { color: var(--muted); }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan.is-pro .btn { background: var(--pro); border-color: var(--pro); color: #fff; }

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.faq details[open] { border-color: var(--panel-3); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 20px; position: relative; font-weight: 800; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; translate: 0 -50%; font: 400 26px "Fredoka", sans-serif; color: var(--muted); transition: rotate 0.15s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq .a { padding: 0 20px 18px; color: var(--muted); }
.faq .a p + p { margin-top: 10px; }
.faq .a b { color: var(--text); }
.faq .a kbd { font: 700 14px "Nunito", sans-serif; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; white-space: nowrap; }

.final { margin-top: 88px; padding: 40px 24px; border-radius: 26px; text-align: center; background: radial-gradient(circle at 50% 0%, #3a2c55, var(--panel) 70%); border: 1px solid var(--line); }
.final .goose { width: 110px; }
.final h2 { font-size: clamp(28px, 4vw, 38px); margin: 6px 0 8px; }
.final p { color: var(--muted); margin-bottom: 22px; }

footer { margin-top: 64px; padding: 24px 16px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; text-align: center; line-height: 1.7; }
footer a { margin: 0 8px; }

/* Not on Windows (a phone, from a Discord link): the download becomes "for later" */
.only-other { display: none !important; }
.not-windows .win-only { display: none !important; }
.not-windows .only-other { display: inline-flex !important; }

@media (max-width: 760px) {
  .top nav a:not(.btn) { display: none; }
  .btn.big { width: 100%; white-space: normal; text-align: center; }
  .play { padding: 12px; }
  .board { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .tile { gap: 8px; border-radius: 14px; }
  .tile .ico { width: 36px; height: 36px; font-size: 21px; border-radius: 10px; }
  .tile kbd { display: none; }
  .call { gap: 18px; }
  .steps, .plans { grid-template-columns: 1fr; }
  .plan .btn { align-self: stretch; }
  dialog .actions .btn { flex: 1; }
  section.more { padding-top: 64px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
