/* WODOKU — wodoku.app */
:root {
  --paper: #f4f4fa;
  --surface: #ffffff;
  --ink: #1b1946;
  --muted: #5b5a7a;
  --line: #d7d6ea;
  --line-strong: #1b1946;
  --indigo: #5856d6;
  --indigo-soft: rgba(88, 86, 214, 0.1);
  --orange: #ff9500;
  --orange-ink: #b85f00;
  --orange-soft: rgba(255, 149, 0, 0.16);
  --green: #1f9d55;
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --text: "Instrument Sans", -apple-system, "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12112a;
    --surface: #1d1b3d;
    --ink: #f1f0ff;
    --muted: #a9a7cc;
    --line: #34315f;
    --line-strong: #c9c7f2;
    --indigo: #8583ff;
    --indigo-soft: rgba(133, 131, 255, 0.16);
    --orange: #ffa733;
    --orange-ink: #ffb54d;
    --orange-soft: rgba(255, 167, 51, 0.18);
    --green: #4ad07f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #12112a;
  --surface: #1d1b3d;
  --ink: #f1f0ff;
  --muted: #a9a7cc;
  --line: #34315f;
  --line-strong: #c9c7f2;
  --indigo: #8583ff;
  --indigo-soft: rgba(133, 131, 255, 0.16);
  --orange: #ffa733;
  --orange-ink: #ffb54d;
  --orange-soft: rgba(255, 167, 51, 0.18);
  --green: #4ad07f;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--text);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--indigo); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* ---------- Top bar ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 20px; padding-bottom: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand span { font: 800 20px/1 var(--display); letter-spacing: 0.06em; }
.top nav { display: flex; gap: 20px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; }
h1 { font-weight: 800; font-size: clamp(40px, 7vw, 76px); line-height: 0.98; letter-spacing: -0.025em; }
h2 { font-weight: 700; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.05; letter-spacing: -0.02em; }
h3 { font-weight: 700; font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 34em; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.store {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--paper);
  padding: 12px 22px 12px 18px; border-radius: 14px;
  text-decoration: none; line-height: 1.15;
}
.store svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.store small { display: block; font-size: 12px; opacity: 0.8; }
.store strong { font: 700 19px/1.1 var(--display); }
.store:hover { text-decoration: none; filter: brightness(1.15); }

/* ---------- Footer ---------- */
.foot {
  border-top: 1px solid var(--line);
  margin-top: 96px; padding-top: 28px; padding-bottom: 40px;
  display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: baseline;
  font-size: 15px; color: var(--muted);
}
.foot a { color: var(--muted); }
.foot .grow { flex: 1 1 auto; }

/* ---------- Document pages (support, privacy) ---------- */
.doc { max-width: 720px; padding-top: 32px; }
.doc h1 { font-size: clamp(36px, 6vw, 56px); margin-bottom: 14px; }
.doc h2 { font-size: 24px; margin: 44px 0 10px; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--muted); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 1.2em; margin: 10px 0 0; }
.doc li + li { margin-top: 6px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc .updated { font-size: 15px; }

.contact {
  margin-top: 28px; padding: 22px 24px;
  background: var(--surface); border-radius: 18px;
  border: 1px solid var(--line);
}
.contact p { color: var(--muted); }
.contact a.mail { font: 700 24px/1.2 var(--display); color: var(--ink); text-decoration: none; display: inline-block; margin: 6px 0 8px; }
.contact a.mail:hover { color: var(--indigo); }

.faq { margin-top: 8px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative;
  font: 600 18px/1.35 var(--text); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 0 20px; }
.faq details > div p + p { margin-top: 10px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
