/* Kitsumo website. Palette and type mirror the app (app/lib/core/theme/fp_tokens.dart). */

@font-face {
  font-family: "Fredoka";
  src: url("assets/fonts/Fredoka-Variable.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/Nunito-Variable.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --bg: #fff8f0;
  --card: #ffffff;
  --ink: #3b2a22;
  --body: #5b4a40;
  --muted: #7d675b;
  --coral: #f28c6b;
  --coral-strong: #c2552a;
  --coral-ink: #8a3d1e;
  --coral-soft: #f6c7b2;
  --green: #4fb286;
  --gold: #ffd15c;
  --lavender: #9c8bd9;
  --lavender-bg: #ece7f7;
  --lavender-ink: #5b4a9a;
  --sun: #fff2cc;
  --sun-ink: #e8b23a;
  --peach: #ffe9dc;
  --mint: #e2f3ea;
  --sky: #e3eaf4;
  --sky-ink: #4d7dba;
  --sand: #f0eae3;
  --track: #f3e9df;
  --border: rgba(59, 42, 34, 0.12);
  --shadow: 0 18px 50px rgba(59, 42, 34, 0.12);
  --shadow-soft: 0 6px 20px rgba(59, 42, 34, 0.08);
  --on-dark: #fff8f0;
  --nav-bg: rgba(255, 248, 240, 0.82);
  --phone: #3b2a22;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1c1512;
    --card: #2a201b;
    --ink: #f7ede2;
    --body: #d9cabe;
    --muted: #b9a294;
    --coral-strong: #f7a58b;
    --coral-ink: #ffd3c2;
    --coral-soft: #7a4a3a;
    --green: #5fc79b;
    --lavender: #b4a6e8;
    --lavender-bg: #2e2742;
    --lavender-ink: #d9d0f5;
    --sun: #3b3120;
    --sun-ink: #ffc93c;
    --peach: #3f2a22;
    --mint: #21332a;
    --sky: #232b39;
    --sky-ink: #8fb4e6;
    --sand: #342c26;
    --track: #3a2d27;
    --border: rgba(247, 237, 226, 0.16);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    --shadow-soft: 0 6px 20px rgba(0, 0, 0, 0.3);
    --nav-bg: rgba(28, 21, 18, 0.82);
    --phone: #0f0a08;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1c1512;
  --card: #2a201b;
  --ink: #f7ede2;
  --body: #d9cabe;
  --muted: #b9a294;
  --coral-strong: #f7a58b;
  --coral-ink: #ffd3c2;
  --coral-soft: #7a4a3a;
  --green: #5fc79b;
  --lavender: #b4a6e8;
  --lavender-bg: #2e2742;
  --lavender-ink: #d9d0f5;
  --sun: #3b3120;
  --sun-ink: #ffc93c;
  --peach: #3f2a22;
  --mint: #21332a;
  --sky: #232b39;
  --sky-ink: #8fb4e6;
  --sand: #342c26;
  --track: #3a2d27;
  --border: rgba(247, 237, 226, 0.16);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 6px 20px rgba(0, 0, 0, 0.3);
  --nav-bg: rgba(28, 21, 18, 0.82);
  --phone: #0f0a08;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  transition: background-color 0.35s ease, color 0.35s ease;
}
img { max-width: 100%; display: block; }
a { color: var(--coral-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, .display {
  font-family: "Fredoka", "Nunito", system-ui, sans-serif;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 34rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--coral-strong);
}
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.muted { color: var(--muted); }
.container {
  width: 100%; max-width: 1120px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
section { padding-block: clamp(56px, 9vw, 112px); }
.section-head { max-width: 40rem; margin-bottom: clamp(28px, 4vw, 48px); display: grid; gap: 12px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: var(--nav-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav .container { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.35rem; }
.brand:hover { text-decoration: none; }
.brand svg { width: 36px; height: 36px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--body); font-weight: 700; font-size: 0.95rem; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
@media (max-width: 760px) { .nav-links { display: none; } .nav-actions { margin-left: auto; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 18px; border: 0; cursor: pointer;
  font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.05rem; line-height: 1;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--ink); color: var(--bg); box-shadow: var(--shadow-soft); }
:root[data-theme="dark"] .btn-primary { background: var(--coral); color: #3b2a22; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { background: var(--coral); color: #3b2a22; } }
.btn-secondary { background: var(--card); color: var(--ink); border: 1.5px solid var(--border); }
.btn-small { padding: 10px 16px; font-size: 0.95rem; border-radius: 14px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--border);
  background: var(--card); color: var(--ink); cursor: pointer; display: inline-grid; place-items: center;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.icon-btn:hover { transform: rotate(15deg); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .moon { display: none; }
:root[data-theme="dark"] .icon-btn .moon { display: block; }
:root[data-theme="dark"] .icon-btn .sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn .moon { display: block; }
  :root:not([data-theme="light"]) .icon-btn .sun { display: none; }
}

/* Store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; border-radius: 16px;
  background: var(--ink); color: var(--bg); text-decoration: none; line-height: 1.1;
  box-shadow: var(--shadow-soft); transition: transform 0.15s ease;
}
.store-btn:hover { transform: translateY(-2px); text-decoration: none; }
.store-btn svg { width: 26px; height: 26px; flex: 0 0 26px; }
.store-btn small { display: block; font-size: 0.68rem; font-weight: 700; opacity: 0.8; letter-spacing: 0.02em; }
.store-btn strong { display: block; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.15rem; }
.stores.center { justify-content: center; }

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(40px, 6vw, 80px); overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 0.92rem; font-weight: 700; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--green); }
.hero-art { position: relative; display: grid; place-items: center; min-height: 520px; }
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { min-height: 0; margin-top: 12px; }
}

/* Phone frame */
.phone {
  width: min(300px, 78vw); aspect-ratio: 1170 / 2532; border-radius: 44px;
  background: var(--phone); padding: 12px; box-shadow: var(--shadow); position: relative;
}
.phone .screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: var(--bg); }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.shot .dark { display: none; }
:root[data-theme="dark"] .shot .light { display: none; }
:root[data-theme="dark"] .shot .dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot .light { display: none; }
  :root:not([data-theme="light"]) .shot .dark { display: block; }
}
.phone-sm { width: min(220px, 60vw); border-radius: 34px; padding: 9px; }
.phone-sm .screen { border-radius: 26px; }

/* Floating bits around the hero phone */
.float {
  position: absolute; background: var(--card); color: var(--ink); border: 1px solid var(--border);
  border-radius: 18px; padding: 10px 14px; box-shadow: var(--shadow-soft);
  font-family: "Fredoka", sans-serif; font-weight: 600; display: inline-flex; align-items: center; gap: 8px;
  animation: floaty 5s ease-in-out infinite;
}
.float .dot { width: 10px; height: 10px; border-radius: 50%; }
.float-xp { right: 2%; top: 14%; color: var(--coral-strong); font-size: 1.2rem; animation-delay: -1s; }
.float-mood { left: 0; top: 28%; animation-delay: -2.5s; }
.float-time { left: 4%; bottom: 16%; font-variant-numeric: tabular-nums; animation-delay: -4s; }
.hero-fox { position: absolute; right: 0; bottom: 4%; width: clamp(120px, 18vw, 180px); filter: drop-shadow(0 12px 18px rgba(59,42,34,0.18)); }
@media (max-width: 860px) { .float-mood { left: 2%; } .hero-fox { width: 110px; right: 2%; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Fox SVG animation */
.fox .bob { animation: bob 3.2s ease-in-out infinite; transform-origin: 100px 160px; }
.fox .tail { animation: wag 1.6s ease-in-out infinite; transform-origin: 140px 134px; }
.fox .eyes { animation: blink 5.5s ease-in-out infinite; transform-origin: 100px 100px; }
@keyframes bob { 0%, 100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(-4px) scale(1.01, 0.99); } }
@keyframes wag { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }
@keyframes blink { 0%, 90%, 100% { transform: scaleY(1); } 94% { transform: scaleY(0.15); } }

/* Live countdown strip */
.live { background: var(--sand); }
.live .container { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 760px) { .live .container { grid-template-columns: 1fr; } }
.island {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 16px; padding: 12px 22px 12px 12px;
  background: #0b0908; color: #fff8f0; border-radius: 999px; box-shadow: var(--shadow);
  font-family: "Fredoka", sans-serif;
}
.island .ring { width: 58px; height: 58px; position: relative; }
.island .ring > svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.island .ring > svg circle { fill: none; stroke-width: 5; stroke-linecap: round; }
.island .ring .track { stroke: rgba(255,248,240,0.18); }
.island .ring .fill { stroke: var(--green); transition: stroke-dashoffset 0.9s linear; }
.island .ring .pet { position: absolute; inset: 12px; display: block; }
.island .ring .pet .fox { display: block; width: 100%; height: 100%; }
.island .ring .pet .bob, .island .ring .pet .tail, .island .ring .pet .eyes { animation: none; }
.island .clock { font-size: 1.9rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; }
.island .label { font-size: 0.85rem; opacity: 0.75; margin-top: 2px; font-family: "Nunito", sans-serif; font-weight: 700; }
.live-copy { display: grid; gap: 10px; max-width: 36rem; }

/* Feature cards */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 24px;
  display: grid; gap: 12px; align-content: start;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon {
  width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center;
}
.card .icon svg { width: 24px; height: 24px; }
.tint-peach { background: var(--peach); color: var(--coral-strong); }
.tint-mint { background: var(--mint); color: var(--green); }
.tint-lavender { background: var(--lavender-bg); color: var(--lavender-ink); }
.tint-sun { background: var(--sun); color: var(--sun-ink); }
.tint-sky { background: var(--sky); color: var(--sky-ink); }
.tint-sand { background: var(--sand); color: var(--ink); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { display: grid; gap: 14px; justify-items: center; text-align: center; }
.step .num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--coral); color: #3b2a22;
  display: grid; place-items: center; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.1rem;
}
.step p { max-width: 20rem; }

/* Gallery */
.gallery-wrap { position: relative; }
.gallery {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 4px 20px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-behavior: smooth;
}
.gallery::-webkit-scrollbar { display: none; }
.gal-btn {
  position: absolute; top: 42%; z-index: 2; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--card); color: var(--ink); cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.gal-btn:hover { transform: scale(1.06); }
.gal-btn[disabled] { opacity: 0.35; cursor: default; transform: none; }
.gal-btn svg { width: 22px; height: 22px; }
.gal-btn.prev { left: -8px; } .gal-btn.next { right: -8px; }
@media (min-width: 1240px) { .gal-btn.prev { left: -60px; } .gal-btn.next { right: -60px; } }
.gal-dots { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
.gal-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: var(--track); cursor: pointer; transition: width 0.25s ease, background-color 0.25s ease; }
.gal-dots button[aria-current="true"] { width: 24px; border-radius: 999px; background: var(--coral); }
.gallery figure { margin: 0; flex: 0 0 auto; scroll-snap-align: center; display: grid; gap: 12px; justify-items: center; }
.gallery figcaption { font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.gallery figcaption small { display: block; font-weight: 600; color: var(--muted); }

/* Progress */
.progress-top { display: grid; gap: 14px; max-width: 44rem; }
.bar { height: 14px; background: var(--track); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--coral), var(--coral-strong)); transition: width 1.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.bar.green > span { background: var(--green); }
.bar-label { display: flex; justify-content: space-between; font-weight: 700; color: var(--ink); }
.columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
@media (max-width: 860px) { .columns { grid-template-columns: 1fr; } }
.col { background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 22px; }
.col h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.col .pill { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; font-family: "Nunito", sans-serif; font-weight: 800; }
.col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.col li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.98rem; }
.col li svg { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 3px; }
.done li svg { color: var(--green); }
.now li svg { color: var(--coral-strong); }
.next li svg { color: var(--lavender-ink); }

/* Grow */
.grow .container { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .grow .container { grid-template-columns: 1fr; } }
.stages { display: grid; gap: 14px; margin-top: 22px; }
.stage { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 16px 18px; }
.stage .lvl { flex: 0 0 auto; min-width: 58px; text-align: center; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 6px 8px; border-radius: 12px; }
.stage h3 { font-size: 1.1rem; margin-bottom: 2px; }
.stage p { font-size: 0.95rem; }

/* Plus */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--border); border-radius: 22px; overflow: hidden; margin-top: 8px; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-top: 1px solid var(--border); font-size: 0.98rem; vertical-align: top; }
.compare thead th { border-top: 0; font-family: "Fredoka", sans-serif; font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.compare th.plus-col, .compare td.plus-col { background: color-mix(in srgb, var(--gold) 18%, var(--card)); }
.compare td:first-child { color: var(--ink); font-weight: 700; }
.compare .yes { color: var(--green); font-weight: 800; }
.compare .no { color: var(--muted); }
@media (max-width: 560px) { .compare th, .compare td { padding: 12px 10px; font-size: 0.9rem; } }

.plus { background: var(--sun); }
.plus .container { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .plus .container { grid-template-columns: 1fr; } }
.plus ul { margin: 16px 0 0; padding-left: 1.2em; display: grid; gap: 8px; }
.tag { display: inline-block; background: var(--gold); color: #3b2a22; font-family: "Fredoka", sans-serif; font-weight: 600; padding: 4px 12px; border-radius: 999px; font-size: 0.9rem; }

/* FAQ */
.faq { max-width: 48rem; display: grid; gap: 10px; }
details { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 4px 20px; }
summary { cursor: pointer; font-family: "Fredoka", sans-serif; font-weight: 600; color: var(--ink); font-size: 1.05rem; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; color: var(--coral-strong); transition: transform 0.25s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding-bottom: 16px; }

/* Download */
.download { background: var(--peach); text-align: center; }
.download .container { display: grid; gap: 18px; justify-items: center; }
.download .fox { width: 150px; }

/* CTA + footer */
.cta { text-align: center; }
.cta .container { display: grid; gap: 18px; justify-items: center; }
.cta .fox { width: 140px; }
footer { border-top: 1px solid var(--border); padding: 28px 0 calc(28px + env(safe-area-inset-bottom, 0px)); font-size: 0.92rem; color: var(--muted); }
footer .container { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--body); font-weight: 700; }

/* Legal pages */
.prose { max-width: 42rem; padding-block: clamp(32px, 6vw, 72px); display: grid; gap: 14px; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 6px; }
.prose h2 { font-size: 1.35rem; margin-top: 18px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
