:root {
  --bg: #fdfcf8;
  --surface: #ffffff;
  --surface-2: #f7f5ef;
  --border: #e2ddd5;
  --ink: #15110d;
  --muted: #625c58;
  --accent: #ebaa2d;
  --accent-text: #8c5f0f;
  --accent-ink: #0e0a07;
  --accent-soft: #f4e6ca;
  --freeze: #5b7fa6;
  --glow: 235, 170, 45;
}
:root.dark {
  --bg: #0a0705;
  --surface: #110c08;
  --surface-2: #18130e;
  --border: #2b2520;
  --ink: #f7f5ef;
  --muted: #a59d95;
  --accent: #f7b828;
  --accent-text: #f7b828;
  --accent-ink: #0c0806;
  --accent-soft: #251e15;
  --freeze: #7fa0c4;
  --glow: 247, 184, 40;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { color-scheme: light; }
html.dark { color-scheme: dark; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Nunito", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent-soft); }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1080px; margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -0.01em; text-decoration: none; }
.brand .mark {
  width: 32px; height: 32px; border-radius: 10px; background: var(--accent);
  color: var(--accent-ink); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand .mark svg { width: 18px; height: 18px; }

nav { display: flex; align-items: center; gap: 8px; }
.nav-links { display: flex; gap: 4px; font-size: 14.5px; font-weight: 600; }
.nav-links a {
  padding: 8px 14px; border-radius: 10px; color: var(--muted); text-decoration: none;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }

/* ---------- Theme toggle ---------- */
.theme-toggle { position: relative; margin-left: 6px; }
.theme-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--ink); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.theme-btn:hover { background: var(--surface-2); }
.theme-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-btn svg { width: 17px; height: 17px; }

.theme-menu {
  position: absolute; right: 0; top: calc(100% + 10px);
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 6px; min-width: 152px; box-shadow: 0 12px 32px rgba(0,0,0,.14);
}
.theme-menu[hidden] { display: none; }
.theme-menu button {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 9px; border: none; background: none;
  color: var(--ink); font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; text-align: left;
}
.theme-menu button:hover { background: var(--surface-2); }
.theme-menu button svg { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.theme-menu button .check { margin-left: auto; color: var(--accent-text); opacity: 0; }
.theme-menu button[aria-checked="true"] .check { opacity: 1; }
.theme-menu button[aria-checked="true"] { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; max-width: 1080px; margin: 0 auto; padding: 96px 24px 60px; overflow: hidden; }
.hero-glow {
  position: absolute; top: -180px; left: 50%; transform: translateX(-50%);
  width: 720px; height: 480px; pointer-events: none; z-index: -1;
  background: radial-gradient(closest-side, rgba(var(--glow), 0.22), transparent 72%);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); background: var(--surface); border: 1px solid var(--border);
  padding: 7px 14px 7px 10px; border-radius: 999px; margin: 0 0 26px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
h1 {
  font-family: "Lora", ui-serif, Georgia, serif; font-weight: 600;
  font-size: clamp(34px, 5.4vw, 58px); line-height: 1.06; letter-spacing: -0.015em;
  margin: 0 0 22px; max-width: 15ch; text-wrap: balance;
}
h1 em { font-style: normal; color: var(--accent-text); }
.sub { font-size: 18.5px; color: var(--muted); max-width: 46ch; margin: 0 0 36px; }
.ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 15px;
  text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.ghost { border-color: var(--border); color: var(--ink); background: var(--surface); }
.btn.ghost:hover { background: var(--surface-2); }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; transform: none !important; }

/* ---------- Feature grid ---------- */
.grid { max-width: 1080px; margin: 0 auto; padding: 20px 24px 88px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 780px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 26px; display: flex; flex-direction: column; gap: 14px;
}
.card .icon {
  width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft);
  color: var(--ink); display: flex; align-items: center; justify-content: center;
}
.card.freeze .icon { color: var(--freeze); background: color-mix(in srgb, var(--freeze) 16%, var(--surface)); }
.card .icon svg { width: 20px; height: 20px; }
.card h3 { font-family: "Lora", serif; font-weight: 600; font-size: 18px; margin: 0; }
.card p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- Band ---------- */
.band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.band-inner { max-width: 1080px; margin: 0 auto; padding: 60px 24px; }
.band h2 {
  font-family: "Lora", serif; font-weight: 600; font-size: clamp(22px, 3vw, 28px);
  margin: 0 0 10px; max-width: 32ch; text-wrap: balance;
}
.band p { color: var(--muted); margin: 0; max-width: 52ch; font-size: 16px; }

/* ---------- Footer ---------- */
footer {
  max-width: 1080px; margin: 0 auto; padding: 44px 24px 64px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  color: var(--muted); font-size: 13.5px;
}
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Legal pages ---------- */
.legal-wrap { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; }
.home-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 700; color: var(--muted); text-decoration: none;
  margin-bottom: 28px;
}
.home-link:hover { color: var(--ink); }
.home-link svg { width: 15px; height: 15px; }
.legal-wrap h1 {
  font-size: clamp(28px, 5vw, 40px); max-width: none;
}
.meta { color: var(--muted); font-size: 14.5px; margin: 0 0 40px; }
.lede { font-size: 17px; color: var(--muted); max-width: 62ch; margin: 0 0 48px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.legal-wrap section { margin: 0 0 40px; scroll-margin-top: 24px; }
.sec-head { display: flex; align-items: baseline; gap: 14px; margin: 0 0 14px; }
.sec-num {
  font-family: "Lora", serif; font-weight: 600; font-size: 14px;
  color: var(--ink); background: var(--accent-soft); border: 1px solid var(--border);
  width: 30px; height: 30px; min-width: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.legal-wrap h2 { font-family: "Lora", ui-serif, Georgia, serif; font-weight: 600; font-size: 21px; margin: 0; text-wrap: balance; }
.legal-wrap section > p, .legal-wrap section > ul { margin: 0 0 14px; max-width: 65ch; }
.legal-wrap section > p:last-child, .legal-wrap section > ul:last-child { margin-bottom: 0; }
.legal-wrap ul { padding-left: 22px; }
.legal-wrap li { margin-bottom: 6px; }
.legal-wrap strong { font-weight: 700; }
.legal-wrap a { color: var(--accent-text); text-decoration-color: var(--accent-text); text-underline-offset: 3px; }
.legal-wrap a:hover { text-decoration-thickness: 2px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14.5px; }
thead th { text-align: left; font-family: "Lora", serif; font-weight: 600; background: var(--accent-soft); color: var(--ink); padding: 12px 16px; border-bottom: 1px solid var(--border); }
tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--muted); }
tbody tr:last-child td { border-bottom: none; }
tbody td:first-child { color: var(--ink); font-weight: 600; }
.callout { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; max-width: 65ch; }
.crosslink {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 56px; padding: 20px 22px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 14px; flex-wrap: wrap;
}
.crosslink span { color: var(--muted); font-size: 14.5px; }
.crosslink a { font-weight: 700; white-space: nowrap; }
.legal-footer {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border);
  color: var(--muted); font-size: 13.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
