:root {
  --bg: #f2f2f7;
  --surface: #ffffff;
  --text: #1c1c1e;
  --muted: #5b5b60;
  --line: rgba(60, 60, 67, 0.14);
  --accent: #8b6914;
  --accent-fill: #d4a537;
  --on-accent: #17120a;
  --radius: 22px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1c1c1e;
    --text: #f2f2f7;
    --muted: #aeaeb2;
    --line: rgba(235, 235, 245, 0.16);
    --accent: #ebc35a;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Noto Sans", sans-serif;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 1;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; }
.brand img { border-radius: 8px; }
nav { display: flex; gap: 4px; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 999px; font-size: 15px; font-weight: 500; }
nav a[aria-current="page"] { background: var(--surface); color: var(--text); }

/* Content */
main { padding: 32px 16px 24px; }
h1 { font-size: clamp(30px, 7vw, 44px); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 8px; }
h2 { font-size: 18px; margin: 0 0 6px; }
h3 { font-size: 17px; margin: 0 0 4px; }
p { margin: 0 0 12px; }
.lead { font-size: 19px; color: var(--muted); }
.meta { color: var(--muted); font-size: 15px; }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
}
.doc .card { margin-top: 20px; }
.doc section + section { margin-top: 20px; }
.doc section p { color: var(--muted); }

/* Home */
.hero { text-align: center; padding: 24px 0 8px; }
.hero-icon { border-radius: 28px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18); margin-bottom: 20px; }
.hero .lead { max-width: 34ch; margin: 8px auto 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 28px; }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }

/* Buttons */
.cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.doc .cta { justify-content: flex-start; margin-top: 16px; }
.button {
  display: inline-block; padding: 12px 20px; border-radius: 999px;
  background: var(--accent-fill); color: var(--on-accent);
  font-weight: 600; text-decoration: none;
}
.button.ghost { background: var(--surface); color: var(--text); }

/* FAQ */
.faq { padding: 4px 20px; }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details:last-child { border-bottom: 0; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 8px 0 0; }

/* Footer */
.foot { padding: 24px 16px 40px; color: var(--muted); font-size: 14px; text-align: center; }
.foot p { margin: 4px 0; }
.foot a { color: var(--muted); }
