/* Cozy Arrows landing page */
:root {
  --bg: #fbf1e4;
  --bg-2: #f7dfc8;
  --surface: #fffaf3;
  --surface-2: #fdf0e2;
  --ink: #4a1d1f;
  --ink-soft: #7d5a52;
  --line: #ecd8c3;
  --accent: #e2306b;
  --accent-deep: #b81d52;
  --accent-ink: #ffffff;
  --accent-2: #ff9a3c;
  --gold: #f4b52f;
  --board: #f3e6cc;
  --board-dot: #d8c3a2;
  --arrow: #4a3326;
  --danger: #e2306b;
  --shadow: 0 22px 44px -22px rgba(110, 50, 20, .45);
  --shadow-sm: 0 8px 20px -12px rgba(110, 50, 20, .35);
  --radius: 22px;
  --font-display: "Fredoka", "Nunito", ui-rounded, system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1620; --bg-2: #2a1f2e; --surface: #251e2b; --surface-2: #2e2535;
    --ink: #f7ebe3; --ink-soft: #c6b1b3; --line: #3b3043;
    --accent: #ff5c8d; --accent-deep: #e2306b; --accent-2: #ffab5c;
    --board: #15121b; --board-dot: #3a3242; --arrow: #f2e6da;
    --shadow: 0 22px 44px -22px rgba(0, 0, 0, .8); --shadow-sm: 0 8px 20px -12px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1b1620; --bg-2: #2a1f2e; --surface: #251e2b; --surface-2: #2e2535;
  --ink: #f7ebe3; --ink-soft: #c6b1b3; --line: #3b3043;
  --accent: #ff5c8d; --accent-deep: #e2306b; --accent-2: #ffab5c;
  --board: #15121b; --board-dot: #3a3242; --arrow: #f2e6da;
  --shadow: 0 22px 44px -22px rgba(0, 0, 0, .8); --shadow-sm: 0 8px 20px -12px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0; }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--ink-soft); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 1rem/1 var(--font-display); text-decoration: none;
  color: var(--accent-ink); background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  box-shadow: 0 4px 0 #8f1640, var(--shadow-sm); transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #8f1640; }
.btn-small { padding: 9px 16px; font-size: .92rem; }
.btn-ghost { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:active { box-shadow: inset 0 0 0 2px var(--line); }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  border: 0; background: var(--surface); color: var(--ink); cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line);
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.icon-btn .i-moon { display: none; }
:root[data-theme="dark"] .icon-btn .i-sun { display: none; }
:root[data-theme="dark"] .icon-btn .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn .i-sun { display: none; }
  :root:not([data-theme="light"]) .icon-btn .i-moon { display: block; }
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header-row { display: flex; align-items: center; gap: 20px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 1.25rem var(--font-display); }
.brand img { border-radius: 10px; }
.main-nav { display: flex; gap: 22px; margin-inline-start: auto; }
.main-nav a { color: var(--ink-soft); text-decoration: none; font-weight: 700; font-size: .95rem; }
.main-nav a:hover { color: var(--accent); }
.header-tools { display: flex; align-items: center; gap: 10px; }

/* Language switcher */
.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 12px; border-radius: 999px; background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 700; font-size: .9rem;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.lang ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border-radius: 14px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); min-width: 170px;
}
.lang li a { display: block; padding: 8px 12px; border-radius: 9px; color: var(--ink); text-decoration: none; font-weight: 600; }
.lang li a:hover, .lang li a[aria-current] { background: var(--surface-2); color: var(--accent); }

/* Hero */
.hero {
  position: relative; padding: 64px 0 84px;
  background:
    radial-gradient(900px 500px at 85% 10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(700px 500px at 0% 100%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 70%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-block; font-weight: 800; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); padding: 6px 12px; border-radius: 999px;
}
.hero h1 { margin: 18px 0 18px; }
.hero-name { display: block; font-size: clamp(1.15rem, 2.2vw, 1.45rem); font-weight: 600; color: var(--ink-soft); margin-bottom: 8px; }
.hero-tag { display: block; font-size: clamp(2.8rem, 7vw, 4.8rem); font-weight: 700; }
.hero-tag em { font-style: normal; color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 34em; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store { display: inline-block; line-height: 0; border-radius: 10px; transition: transform .15s; }
.store:hover { transform: translateY(-2px); }
.store img { display: block; height: 54px; width: auto; border-radius: 10px; box-shadow: var(--shadow-sm); }
:root[data-theme="dark"] .store img { box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .store img { box-shadow: 0 0 0 1px rgba(255,255,255,.35); } }

.stats { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 26px 0 0; }
.stats li {
  font-weight: 700; font-size: .9rem; padding: 7px 14px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line);
}
.stars { color: var(--gold); letter-spacing: 1px; }

.hero-art { position: relative; height: 560px; }
.hero-art .card { position: absolute; width: 270px; border-radius: 26px; box-shadow: var(--shadow); }
.hero-art .c1 { left: 50%; top: 10px; transform: translateX(-50%); z-index: 3; animation: float 7s ease-in-out infinite; }
.hero-art .c2 { left: 50%; top: 50px; transform: translateX(-108%) rotate(-8deg); width: 230px; opacity: .95; }
.hero-art .c3 { left: 50%; top: 50px; transform: translateX(8%) rotate(8deg); width: 230px; opacity: .95; }
@keyframes float { 50% { transform: translateX(-50%) translateY(-10px); } }

/* Sections */
.section { padding: 88px 0; }
.section-tint { background: var(--surface-2); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head p { margin-top: 12px; color: var(--ink-soft); font-size: 1.1rem; }

/* How to play */
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.steps li { display: flex; gap: 18px; padding: 20px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.steps .num {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep)); color: #fff; font: 700 1.25rem var(--font-display);
}
.steps p { color: var(--ink-soft); margin-top: 4px; }

.demo {
  background: var(--surface); border-radius: 28px; padding: 22px; box-shadow: var(--shadow), inset 0 0 0 1.5px var(--line);
  display: grid; gap: 14px; justify-items: center; text-align: center;
}
.demo-top { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hearts { color: var(--danger); font-size: 1.3rem; letter-spacing: 2px; white-space: nowrap; }
.hearts .lost { opacity: .22; }
.board {
  --n: 5; --cell: min(64px, calc((100vw - 110px) / 5));
  position: relative; overflow: hidden; display: grid; grid-template-columns: repeat(var(--n), var(--cell));
  padding: 12px; border-radius: 18px; background-color: var(--board);
  background-image: radial-gradient(var(--board-dot) 1.2px, transparent 1.4px); background-size: 14px 14px;
}
.cell { width: var(--cell); height: var(--cell); display: grid; place-items: center; }
.arrow {
  width: 100%; height: 100%; border: 0; background: none; padding: 6px; cursor: pointer; color: var(--arrow);
  transition: transform .5s cubic-bezier(.5, 0, .75, 0), opacity .5s; border-radius: 12px;
}
.arrow:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.arrow svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.arrow.gone { opacity: 0; pointer-events: none; }
.arrow.bump { color: var(--danger); animation: shake .35s; }
@keyframes shake { 25% { translate: -4px 0; } 50% { translate: 4px 0; } 75% { translate: -2px 0; } }
.board.done .arrow { pointer-events: none; }
.demo-msg { color: var(--ink-soft); font-weight: 700; min-height: 1.6em; }
.demo-msg.win { color: var(--accent); font-size: 1.05rem; }
.demo-cta {
  width: 100%; padding: 18px; border-radius: 20px; display: grid; gap: 4px; justify-items: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-2) 22%, transparent), color-mix(in srgb, var(--accent) 18%, transparent));
  animation: pop-in .45s cubic-bezier(.2, 1.4, .4, 1);
}
.demo-cta[hidden] { display: none; }
.demo-cta-title { font: 700 1.25rem var(--font-display); }
.demo-cta .stores { margin-top: 10px; justify-content: center; }
@keyframes pop-in { from { opacity: 0; transform: scale(.9) translateY(8px); } }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--surface); padding: 26px; border-radius: var(--radius); box-shadow: inset 0 0 0 1.5px var(--line); transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow), inset 0 0 0 1.5px var(--line); }
.feature p { color: var(--ink-soft); margin-top: 8px; }
.f-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 16px; }
.f-icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.f-gold { background: linear-gradient(160deg, #ffd25e, #f0a01c); }
.f-night { background: linear-gradient(160deg, #6a5a9e, #2f2550); }
.f-bronze { background: linear-gradient(160deg, #d58b55, #9b5427); }
.f-pink { background: linear-gradient(160deg, #ff6b98, #d61f5c); }
.f-orange { background: linear-gradient(160deg, #ffb066, #f0782a); }
.f-green { background: linear-gradient(160deg, #6fcfa4, #2e9a73); }

/* Gallery */
.gallery {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px max(16px, (100% - 1140px) / 2) 28px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.gallery figure { margin: 0; flex: none; width: 250px; scroll-snap-align: center; }
.gallery img { border-radius: 24px; box-shadow: var(--shadow); }

/* About */
.about { max-width: 780px; display: grid; gap: 16px; text-align: center; }
.about p { color: var(--ink-soft); font-size: 1.1rem; }

/* FAQ */
.faq-wrap { max-width: 820px; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border-radius: 18px; box-shadow: inset 0 0 0 1.5px var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; position: relative;
  font: 600 1.1rem var(--font-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; inset-inline-end: 20px; top: 50%; translate: 0 -50%;
  width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%;
  background: var(--surface-2); color: var(--accent); font-size: 1.3rem; transition: rotate .2s;
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 22px 20px; color: var(--ink-soft); }

/* CTA */
.cta {
  text-align: center; padding: 56px 24px; border-radius: 32px; color: #fff;
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(255, 255, 255, .22), transparent 70%),
    linear-gradient(135deg, var(--accent-2), var(--accent) 55%, var(--accent-deep));
  box-shadow: var(--shadow);
}
.cta p { margin-top: 10px; font-size: 1.15rem; opacity: .95; }
.cta .stores { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 28px; background: var(--surface-2); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.2fr .8fr; gap: 32px; }
.footer-grid .muted { margin-top: 12px; }
.f-head { font: 700 .82rem var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }
address { font-style: normal; line-height: 1.8; }
.plain { list-style: none; padding: 0; margin: 0; line-height: 2; }
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--accent); }
.copyright { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .9rem; }

/* Legal pages */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 800px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 8px; }
.legal h2 { font-size: 1.4rem; margin: 32px 0 10px; }
.legal h3 { font-size: 1.12rem; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--ink-soft); margin-bottom: 10px; }
.legal ul { padding-inline-start: 22px; margin: 0 0 14px; }
.legal strong, .legal b { color: var(--ink); }
.legal .updated { margin-bottom: 24px; }

/* Responsive */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .header-tools { margin-inline-start: auto; }
  .hero { padding-top: 40px; }
  .hero-grid, .how-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .lead { margin-inline: auto; }
  .stores, .stats { justify-content: center; }
  .hero-art { height: 480px; }
  .features { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand span { display: none; }
  .header-row { gap: 8px; }
  .lang summary .lang-name { display: none; }
  .section { padding: 64px 0; }
  .hero-art { height: 400px; }
  .hero-art .card { width: 210px; }
  .hero-art .c2, .hero-art .c3 { width: 170px; top: 40px; }
  .store img { height: 46px; }
  .features, .footer-grid { grid-template-columns: 1fr; }
  .gallery figure { width: 220px; }
  .demo { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
