/* whisku.app — one stylesheet for the English and Chinese pages. System fonts only: no web fonts,
   no trackers, nothing loaded from other sites. Colors come from the app icon. */

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #161618;
  --muted: #5c5f66;
  --line: #e7e4dd;
  --accent: #1f6fae;
  --sky: #86c6f2;
  --sky-soft: #cdebff;
  --lime: #c9f240;
  /* Illustration panels keep this light sky blue in both themes: the hero video has it baked in,
     and a black cat needs a light background. */
  --panel: #e4f2fc;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(22, 22, 24, 0.04), 0 8px 24px rgba(22, 22, 24, 0.06);
  --swatch-ring: rgba(0, 0, 0, 0.14);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111214;
    --surface: #1a1b1e;
    --ink: #f2f2ef;
    --muted: #a6a9b0;
    --line: #2b2d31;
    --accent: #8fcdf5;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    --swatch-ring: rgba(255, 255, 255, 0.32);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111214;
  --surface: #1a1b1e;
  --ink: #f2f2ef;
  --muted: #a6a9b0;
  --line: #2b2d31;
  --accent: #8fcdf5;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  --swatch-ring: rgba(255, 255, 255, 0.32);
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* Header */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav .lang { color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; background: var(--surface); }
@media (max-width: 720px) { .nav .optional { display: none; } }

/* Hero */
.hero { padding: 36px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 36px; } .hero { padding: 20px 0 56px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; color: var(--muted); margin: 0 0 14px; }
.eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(201, 242, 64, 0.25); }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); line-height: 1.08; letter-spacing: -0.025em; font-weight: 820; margin: 0 0 20px; text-wrap: balance; }
.lede { font-size: clamp(1.08rem, 1.7vw, 1.25rem); color: var(--muted); margin: 0 0 30px; max-width: 34em; text-wrap: pretty; }
.downloads { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: var(--radius-sm); font-weight: 680; font-size: 16px; text-decoration: none; border: 1px solid transparent; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); text-decoration: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
@media (max-width: 600px) { .btn { width: 100%; } }
.requirements { font-size: 14px; color: var(--muted); margin: 0 0 6px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--muted); margin: 12px 0 0; padding: 0; list-style: none; }
.facts li::before { content: "✓"; color: #6aa51d; font-weight: 800; margin-right: 6px; }
.whats-new { display: inline-block; margin-top: 16px; font-size: 15px; }

.stage { position: relative; background: var(--panel); border-radius: 28px; overflow: hidden; aspect-ratio: 720 / 636; box-shadow: var(--shadow); }
.stage video { width: 100%; height: 100%; object-fit: cover; }
.caption { text-align: center; font-size: 14px; color: var(--muted); margin: 12px 0 0; }

/* Sections */
section { padding: 64px 0; }
@media (max-width: 600px) { section { padding: 48px 0; } }
.section-head { max-width: 40em; margin-bottom: 32px; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; margin: 0 0 12px; text-wrap: balance; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.08rem; }
h3 { font-size: 1.2rem; line-height: 1.3; margin: 0 0 8px; letter-spacing: -0.01em; }

.art { background: var(--panel); }
.art img { width: 100%; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 800px) { .features { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature .art { aspect-ratio: 720 / 632; display: flex; align-items: center; justify-content: center; }
.feature .art.cat { padding: 6% 9% 0; }
.feature .body { padding: 22px 26px 26px; }
.feature p { margin: 0; color: var(--muted); }

.details { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 960px) { .details { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .details { grid-template-columns: 1fr; } }
.tile { margin: 0; }
.tile .art { aspect-ratio: 600 / 544; }
.tile p { margin: 0; padding: 14px 16px 16px; font-size: 15px; line-height: 1.45; }
.tile .art.text { display: flex; align-items: center; justify-content: center; font-size: 64px; }

.coats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 800px) { .coats { grid-template-columns: repeat(2, 1fr); } }
.coats figure { margin: 0; }
.coats .art { aspect-ratio: 600 / 544; border-radius: var(--radius); overflow: hidden; }
.coats figcaption { text-align: center; font-size: 15px; font-weight: 600; margin-top: 10px; }
.coats-note { color: var(--muted); margin: 22px 0 0; }

.native { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 800px) { .native { grid-template-columns: 1fr; } }
.native .card { padding: 24px 26px; }
.native strong { display: block; font-size: 1.5rem; letter-spacing: -0.02em; margin-bottom: 4px; }
.native p { margin: 0; color: var(--muted); }

.install { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 800px) { .install { grid-template-columns: 1fr; } }
.install .card { padding: 26px 28px; }
.install ol { margin: 0; padding-left: 1.3em; }
.install li { margin: 0 0 10px; }
.install li:last-child { margin-bottom: 0; }
.install .btn { margin-top: 18px; }
.note { color: var(--muted); font-size: 15px; margin: 22px 0 0; }

.privacy { padding: 30px 32px; }
.privacy ul { margin: 0 0 18px; padding-left: 1.2em; }
.privacy li { margin: 0 0 10px; }

kbd, .ui { font-weight: 650; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; background: var(--panel); color: #18324a; padding: 1px 6px; border-radius: 6px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; margin-top: 24px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); }
.site-footer p { margin: 0 0 6px; max-width: 40em; }

/* The live cat (assets/cat/live.js swaps the video for a canvas) */
.stage.live { aspect-ratio: 320 / 308; outline: none; }
.stage.live:focus-visible { box-shadow: 0 0 0 3px var(--sky), var(--shadow); }
.stage canvas.live-cat { display: block; width: 100%; height: 100%; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.demo { margin-top: 16px; display: grid; gap: 12px; justify-items: center; text-align: center; }
.demo-hint { margin: 0; font-size: 15px; line-height: 1.5; max-width: 30em; text-wrap: pretty; }
.hint-touch { display: none; }
@media (hover: none) { .hint-desktop { display: none; } .hint-touch { display: inline; } }
.demo-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.demo-buttons button {
  font: inherit; font-size: 14px; font-weight: 620; line-height: 1.2; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px; transition: border-color 0.12s ease, transform 0.12s ease;
}
.demo-buttons button:hover { border-color: var(--sky); transform: translateY(-1px); }
.demo-buttons button:active { transform: translateY(0); }
.needs-dot { width: 8px; height: 8px; border-radius: 50%; background: #ffa829; box-shadow: 0 0 0 2px rgba(255, 168, 41, 0.3); }
.demo-coats { display: flex; gap: 10px; }
.demo-coats button { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line); padding: 3px; background: var(--surface); cursor: pointer; }
.demo-coats button[aria-pressed="true"] { border-color: var(--ink); }
.demo-coats span { display: block; width: 100%; height: 100%; border-radius: 50%; background: linear-gradient(135deg, var(--c1) 50%, var(--c2) 50%); box-shadow: inset 0 0 0 1px var(--swatch-ring); }
.demo-privacy { margin: 0; font-size: 13px; color: var(--muted); }

.coat-pick { all: unset; display: block; cursor: pointer; border-radius: var(--radius); }
.coat-pick:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.coat-pick .art { transition: box-shadow 0.12s ease; }
.coat-pick:hover .art { box-shadow: inset 0 0 0 3px var(--sky); }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 840px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 22px; }
.faq summary { cursor: pointer; font-weight: 660; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 2px; color: var(--muted); }
