:root {
  color-scheme: dark;
  --bg: #100d09;
  --surface: #17130d;
  --surface-2: #211a10;
  --surface-soft: #1c160e;
  --text: #f2eee7;
  --muted: #b9ae9c;
  --line: #5e4822;
  --line-soft: rgba(94, 72, 34, 0.58);
  --brand: #d8b65a;
  --brand-2: #e8c76d;
  --on-brand: #160c07;
  --danger: #ef7777;
  --success: #70c992;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --radius: 22px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 9% -8%, rgba(216, 182, 90, 0.13), transparent 30rem),
    radial-gradient(circle at 100% 0%, rgba(94, 72, 34, 0.26), transparent 33rem),
    linear-gradient(180deg, #100d09 0%, #0b0906 100%);
  color: var(--text);
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(216, 182, 90, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 182, 90, 0.025) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent 75%);
}

a { color: var(--brand-2); text-decoration: none; }
a:hover { color: #f2d98f; text-decoration: underline; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--brand);
  color: var(--on-brand);
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 999;
  font-weight: 800;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(16, 13, 9, 0.88);
  border-bottom: 1px solid rgba(94, 72, 34, 0.66);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 13px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(216, 182, 90, 0.64);
  background: #211a10;
  box-shadow: 0 10px 28px rgba(0,0,0,0.36);
}
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  color: var(--text);
}
.brand:hover { text-decoration: none; color: var(--text); }
.brand strong { display: block; font-size: 1.03rem; }
.brand span span { display: block; color: var(--muted); font-size: 0.84rem; margin-top: -2px; }
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a, .nav button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 8px 11px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}
.nav a:hover, .nav button:hover {
  border-color: var(--line-soft);
  background: rgba(216, 182, 90, 0.08);
  color: var(--text);
  text-decoration: none;
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 52px 22px 26px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  align-items: stretch;
}
.hero-card,
.toc-card,
.content-card,
.notice,
.footer-card {
  background: linear-gradient(145deg, rgba(33, 26, 16, 0.96), rgba(23, 19, 13, 0.96));
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.hero-card { padding: clamp(24px, 5vw, 44px); position: relative; overflow: hidden; }
.hero-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -88px;
  top: -104px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216,182,90,0.20), transparent 68%);
}
.hero-eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(216, 182, 90, 0.26);
  border-radius: 999px;
  background: rgba(216, 182, 90, 0.08);
  color: var(--brand-2);
  font-weight: 800;
  font-size: 0.86rem;
}
.hero h1 {
  position: relative;
  z-index: 1;
  margin: 18px 0 10px;
  font-size: clamp(2.05rem, 5vw, 4.1rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
}
.hero p.lede {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.16rem);
  max-width: 760px;
}
.hero-actions {
  position: relative;
  z-index: 1;
  margin-top: 23px;
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 16px;
  border-radius: 14px;
  font-weight: 850;
  border: 1px solid transparent;
  text-decoration: none !important;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: var(--on-brand);
  box-shadow: 0 12px 30px rgba(216, 182, 90, 0.17);
}
.btn-primary:hover { color: #160c07; filter: brightness(1.05); }
.btn-secondary { background: var(--surface-2); color: var(--brand-2); border-color: var(--line); }

.toc-card { padding: 22px; }
.toc-card h2 { margin: 0 0 12px; font-size: 1rem; color: var(--text); }
.toc-card ol { margin: 0; padding-left: 18px; color: var(--muted); }
.toc-card li { margin: 8px 0; }
.toc-card a { color: var(--muted); }
.toc-card a:hover { color: var(--brand-2); }

main.content {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 22px 60px;
}
.content-card { padding: clamp(22px, 4vw, 36px); margin: 17px 0; }
.content-card h2 {
  font-size: clamp(1.4rem, 3vw, 1.95rem);
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.content-card h3 { margin-top: 24px; color: var(--text); }
.content-card p, .content-card li { color: var(--muted); }
.content-card strong { color: var(--text); }
.content-card ul { padding-left: 22px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid rgba(216,182,90,0.24);
  border-radius: 999px;
  background: rgba(216,182,90,0.07);
  color: var(--brand-2);
  font-weight: 750;
  font-size: 0.84rem;
}

.notice {
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(216,182,90,0.10), rgba(33,26,16,0.92));
  margin: 16px 0;
}
.notice strong { color: var(--text); }
.warning { border-color: rgba(239,119,119,0.30); background: rgba(239,119,119,0.07); }
.warning strong { color: var(--danger); }

.accordion { display: grid; gap: 11px; margin-top: 16px; }
.accordion details {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(16, 13, 9, 0.52);
  padding: 0;
  overflow: hidden;
}
.accordion summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--text);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; color: var(--brand-2); }
.accordion details[open] summary::after { content: "–"; }
.accordion .body { padding: 0 16px 16px; }

.form-card {
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 18px;
  background: rgba(16, 13, 9, 0.58);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { font-weight: 800; display: block; margin-bottom: 6px; color: var(--text); }
input, textarea, select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  font: inherit;
  background: #100d09;
  color: var(--text);
  outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(216,182,90,0.10); }
textarea { min-height: 126px; resize: vertical; }
.helper { color: var(--muted); font-size: 0.9rem; margin-top: 6px; }

.footer { max-width: var(--max); margin: 0 auto; padding: 0 22px 34px; }
.footer-card { padding: 21px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-card small { color: var(--muted); }
.kbd {
  display:inline-block;
  border:1px solid var(--line);
  border-radius:8px;
  padding:1px 7px;
  background:#100d09;
  color:var(--text);
  font-weight:700;
}

body.light {
  color-scheme: light;
  --bg: #fffaf2;
  --surface: #ffffff;
  --surface-2: #f8ead2;
  --surface-soft: #fff6e7;
  --text: #24140d;
  --muted: #735f4a;
  --line: #d4ac75;
  --line-soft: rgba(212, 172, 117, 0.72);
  --brand: #82421f;
  --brand-2: #b56e2e;
  --on-brand: #ffffff;
  --shadow: 0 20px 60px rgba(44, 22, 13, 0.12);
  background:
    radial-gradient(circle at top left, rgba(181,110,46,0.10), transparent 31rem),
    radial-gradient(circle at top right, rgba(212,172,117,0.14), transparent 32rem),
    #fffaf2;
}
body.light::before { opacity: 0.10; }
body.light .site-header { background: rgba(255,250,242,0.90); }
body.light .hero-card,
body.light .toc-card,
body.light .content-card,
body.light .footer-card { background: rgba(255,255,255,0.93); }
body.light .form-card,
body.light .accordion details { background: rgba(255,250,242,0.82); }
body.light input, body.light textarea, body.light select, body.light .kbd { background: #ffffff; }
body.light .btn-primary { color: #ffffff; }
body.light .btn-primary:hover { color: #ffffff; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; }
  .header-inner { align-items: flex-start; flex-direction: column; }
  .nav { justify-content: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .header-inner { padding: 12px 16px; }
  .brand { min-width: 0; }
  .brand strong { font-size: 0.96rem; }
  .nav { gap: 4px; }
  .nav a, .nav button { padding: 7px 9px; font-size: 0.82rem; }
  .hero { padding-left: 16px; padding-right: 16px; }
  main.content, .footer { padding-left: 16px; padding-right: 16px; }
}

@media print {
  .site-header, .hero-actions, .toc-card, .footer, .no-print { display: none !important; }
  body { background: #fff; color: #111; }
  .hero, main.content { max-width: none; padding: 0; display: block; }
  .hero-card, .content-card { box-shadow: none; border: 0; border-radius: 0; background: #fff; }
  .content-card p, .content-card li, .hero p.lede { color: #333; }
}


/* FAQ page */
.section-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--brand-2);
  font-weight: 850;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.faq-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.faq-heading-row h2 { margin-bottom: 0; }
.faq-search-label { margin-top: 22px; }
.faq-search-wrap { max-width: 620px; }
.faq-search-wrap input[type="search"] {
  min-height: 48px;
  padding-left: 15px;
  background:
    linear-gradient(rgba(16, 13, 9, 0.92), rgba(16, 13, 9, 0.92)) padding-box,
    linear-gradient(135deg, rgba(216,182,90,0.42), rgba(94,72,34,0.56)) border-box;
  border: 1px solid transparent;
}
.faq-list { margin-top: 20px; }
.faq-list details[hidden] { display: none; }
.faq-list .body p { margin: 0; }
.faq-empty { margin: 14px 0 0; color: var(--danger); }
.faq-support-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.faq-support-card h2, .faq-support-card p { margin-bottom: 0; }
.faq-support-card p { flex: 1 1 420px; margin-top: 6px; }
.nav a[aria-current="page"] {
  border-color: rgba(216, 182, 90, 0.34);
  background: rgba(216, 182, 90, 0.10);
  color: var(--brand-2);
}
