/* ============================================================
   Neko — landing site styles
   Hand-drawn / sketchbook aesthetic · light + dark themes
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg: #faf3fc;
  --bg-2: #f3e4f8;
  --surface: #fffdff;
  --surface-2: #fbf4fd;
  --ink: #6d4c41;
  --ink-soft: #8a6b78;
  --ink-faint: #a98fb0;
  --primary: #e1bee7;
  --primary-strong: #af8eb5;
  --primary-deep: #8a4fa0;
  --on-primary: #3a2b2f;
  --accent-ink: #2b3a67;
  --food: #a0522d;
  --drink: #1e90ff;
  --play: #b0202f;
  --star: #f5b301;
  --border: rgba(109, 76, 65, .30);
  --border-strong: rgba(109, 76, 65, .55);
  --shadow-sm: 0 4px 14px rgba(138, 104, 148, .16);
  --shadow: 0 14px 40px rgba(138, 104, 148, .22);
  --radius: 22px;
  --radius-lg: 34px;
  --maxw: 1120px;
  --paw-tint: rgba(175, 142, 181, .20);
  --paws: url("../img/paws.png");
  --cta-grad: linear-gradient(150deg, #e1bee7, #c49ece);
  --cta-ink: #3a2b2f;
  --phone-grad: linear-gradient(160deg, #2a2230, #4a3b50);
  --font-display: "Cabin Sketch", "Comic Sans MS", cursive;
  --font-body: "Quicksand", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

:root[data-theme="dark"] {
  --bg: #17111d;
  --bg-2: #1e1726;
  --surface: #271d31;
  --surface-2: #2e2339;
  --ink: #f2e7f5;
  --ink-soft: #cdb9d6;
  --ink-faint: #9e88aa;
  --primary: #c9a3d4;
  --primary-strong: #d9bfe2;
  --primary-deep: #e4c6ef;
  --on-primary: #241a2b;
  --accent-ink: #9db6ff;
  --food: #d98a5a;
  --drink: #58b0ff;
  --play: #ff8a96;
  --star: #ffd14d;
  --border: rgba(230, 210, 240, .26);
  --border-strong: rgba(230, 210, 240, .45);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, .35);
  --shadow: 0 16px 44px rgba(0, 0, 0, .5);
  --paw-tint: rgba(201, 163, 212, .12);
  --paws: url("../img/paws-dark.png");
  --cta-grad: linear-gradient(150deg, #3d2d49, #51406a);
  --cta-ink: #f2e7f5;
  --phone-grad: linear-gradient(160deg, #0d0a10, #332940);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17111d;
    --bg-2: #1e1726;
    --surface: #271d31;
    --surface-2: #2e2339;
    --ink: #f2e7f5;
    --ink-soft: #cdb9d6;
    --ink-faint: #9e88aa;
    --primary: #c9a3d4;
    --primary-strong: #d9bfe2;
    --primary-deep: #e4c6ef;
    --on-primary: #241a2b;
    --accent-ink: #9db6ff;
    --food: #d98a5a;
    --drink: #58b0ff;
    --play: #ff8a96;
    --star: #ffd14d;
    --border: rgba(230, 210, 240, .26);
    --border-strong: rgba(230, 210, 240, .45);
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, .35);
    --shadow: 0 16px 44px rgba(0, 0, 0, .5);
    --paw-tint: rgba(201, 163, 212, .12);
    --paws: url("../img/paws-dark.png");
    --cta-grad: linear-gradient(150deg, #3d2d49, #51406a);
    --cta-ink: #f2e7f5;
    --phone-grad: linear-gradient(160deg, #0d0a10, #332940);
  }
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--ink);
  background-color: var(--bg);
  background-image: var(--paws);
  background-repeat: repeat;
  background-size: 96px auto;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--primary-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; color: var(--ink); margin: 0 0 .4em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

section { padding: 72px 0; }
.section-title { text-align: center; font-size: clamp(2rem, 5vw, 3rem); margin-bottom: .2em; }
.section-lead { text-align: center; color: var(--ink-soft); max-width: 44ch; margin: 0 auto 48px; font-size: 1.08rem; }

:focus-visible { outline: 3px solid var(--primary-deep); outline-offset: 3px; border-radius: 8px; }

/* ---------- Buttons / badges ---------- */
.badge-link { display: inline-block; transition: transform .2s ease; }
.badge-link:hover { transform: translateY(-2px) rotate(-1deg); text-decoration: none; }
.badge-link img { height: 58px; width: auto; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 2px dashed var(--border-strong);
  color: var(--ink); padding: 8px 16px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; box-shadow: var(--shadow-sm);
}
.chip .star { color: var(--star); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.3) blur(10px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.7rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--ink-soft); font-weight: 700; font-size: .98rem; }
.nav-links a:hover { color: var(--primary-deep); text-decoration: none; }
.controls { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px; cursor: pointer;
  background: var(--surface); border: 2px solid var(--border);
  color: var(--ink); font-size: 1.15rem; transition: transform .15s ease, background .2s;
}
.icon-btn:hover { transform: translateY(-1px); background: var(--surface-2); }
.icon-btn svg { width: 20px; height: 20px; }

.lang-wrap { position: relative; }
.lang-select {
  appearance: none; -webkit-appearance: none;
  background: var(--surface); border: 2px solid var(--border); color: var(--ink);
  font-family: var(--font-body); font-weight: 700; font-size: .95rem;
  padding: 9px 34px 9px 14px; border-radius: 12px; cursor: pointer;
}
.lang-wrap::after {
  content: "▾"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  pointer-events: none; color: var(--ink-soft);
}

.theme-icon-moon { display: none; }
:root[data-theme="dark"] .theme-icon-sun { display: none; }
:root[data-theme="dark"] .theme-icon-moon { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-icon-moon { display: inline; }
}

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--primary-deep); font-weight: 700; letter-spacing: .02em; margin-bottom: 14px; }
.hero h1 { font-size: clamp(3.4rem, 9vw, 6rem); margin: 0; }
.hero .tagline { font-family: var(--font-display); font-size: clamp(1.5rem, 4vw, 2.3rem); color: var(--primary-strong); margin: 2px 0 14px; }
.hero p.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; margin: 0 0 26px; }
.hero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.hero-meta .chip { font-size: .88rem; padding: 7px 13px; }

/* floating cat doodle */
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art .blob {
  position: absolute; inset: 6% 8%; background: var(--primary);
  border-radius: 48% 52% 55% 45% / 55% 45% 55% 45%;
  filter: blur(6px); opacity: .5; z-index: 0;
}
.hero-mockup {
  position: relative; z-index: 1;
  width: 300px; max-width: 72vw; height: auto;
  border-radius: 46px; /* clip the black square corners of the device frame */
  filter: drop-shadow(0 22px 40px rgba(138,104,148,.38));
}
:root[data-theme="dark"] .hero-mockup { filter: drop-shadow(0 22px 44px rgba(0,0,0,.55)); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-mockup { filter: drop-shadow(0 22px 44px rgba(0,0,0,.55)); }
}
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-12px) } }


/* ---------- Features ---------- */
.features { background: var(--bg-2); }
.feature-grid { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; }
.feature-card {
  flex: 1 1 300px; max-width: 344px;
  background: var(--surface); border: 2px dashed var(--border-strong);
  border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-ic {
  width: 62px; height: 62px; display: grid; place-items: center;
  border-radius: 18px; margin-bottom: 14px;
  background: #fff6fb; border: 2px dashed var(--border-strong);
}
.feature-ic img { width: 40px; height: 40px; object-fit: contain; }
.feature-card h3 { font-size: 1.5rem; margin-bottom: .25em; }
.feature-card p { margin: 0; color: var(--ink-soft); }

/* widget highlight row */
.widget-strip {
  margin-top: 26px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  background: var(--surface); border: 2px dashed var(--border-strong);
  border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow-sm);
}
.widget-strip img { border-radius: 16px; width: 360px; height: auto; max-width: 100%; box-shadow: var(--shadow-sm); }
.widget-strip h3 { font-size: 1.6rem; }
.widget-strip p { color: var(--ink-soft); margin: 0; }

/* ---------- Screens gallery ---------- */
.screens-scroll {
  display: flex; gap: 48px; overflow-x: auto; padding: 8px 16px 28px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.screens-scroll .shot { scroll-snap-align: center; flex: 0 0 232px; width: 232px; text-align: center; margin: 0; }
.device-shot {
  display: block; height: auto; border-radius: 36px;
  filter: drop-shadow(0 16px 32px rgba(138,104,148,.32));
}
:root[data-theme="dark"] .device-shot { filter: drop-shadow(0 16px 34px rgba(0,0,0,.5)); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .device-shot { filter: drop-shadow(0 16px 34px rgba(0,0,0,.5)); }
}
.screens-scroll .device-shot { width: 232px; }
.shot figcaption { margin-top: 18px; font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); max-width: 100%; margin-inline: auto; }

/* ---------- Reviews ---------- */
.reviews { background: var(--bg-2); }
.rating-summary {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-bottom: 42px;
}
.stat-box {
  background: var(--surface); border: 2px dashed var(--border-strong); border-radius: var(--radius);
  padding: 20px 30px; text-align: center; box-shadow: var(--shadow-sm); min-width: 150px;
}
.stat-box .big { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--ink); }
.stat-box .stars { color: var(--star); font-size: 1.1rem; margin: 6px 0 2px; letter-spacing: 2px; }
.stat-box .lbl { color: var(--ink-soft); font-size: .92rem; font-weight: 700; }

.reviews-cta { text-align: center; margin-top: 18px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--surface); border: 2px dashed var(--border-strong);
  border-radius: var(--radius); padding: 2px 22px; box-shadow: var(--shadow-sm);
}
.faq-item summary {
  cursor: pointer; list-style: none; font-family: var(--font-display);
  font-size: 1.25rem; color: var(--ink); padding: 16px 32px 16px 0; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-body); font-weight: 700; color: var(--primary-deep); font-size: 1.5rem;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 0 18px; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-card {
  background: var(--cta-grad);
  border-radius: var(--radius-lg); padding: 56px 28px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.cta-card h2 { color: var(--cta-ink); font-size: clamp(2rem, 5vw, 3.1rem); }
.cta-card p { color: var(--cta-ink); opacity: .82; margin: 0 0 24px; font-weight: 600; }
.cta-card .badge-link img { height: 64px; }

/* ---------- Footer ---------- */
.site-footer { padding: 54px 0 40px; border-top: 1px solid var(--border); background: var(--bg); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); }
.footer-brand img { width: 44px; height: 44px; border-radius: 12px; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font-body); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--ink-faint); margin: 0 0 12px; }
.footer-col a { display: block; color: var(--ink-soft); font-weight: 600; margin-bottom: 8px; }
.footer-col a:hover { color: var(--primary-deep); }
.footer-bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--ink-faint); font-size: .84rem; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero-cta, .hero-meta, .hero-eyebrow { justify-content: center; }
  .hero p.lead { margin-inline: auto; }
  .hero-art { order: -1; }
  .widget-strip { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  section { padding: 54px 0; }
  .brand { font-size: 1.4rem; }
  .footer-cols { gap: 32px; }
}
