:root {
  --sapphire: #0b2266;
  --sapphire-deep: #061440;
  --sapphire-soft: #dce5f7;
  --gold: #c9962b;
  --gold-light: #f1d48a;
  --bg: #f3f5fa;
  --card: #ffffff;
  --line: #d9e0ee;
  --text: #121a2e;
  --muted: #56617a;
  --ok: #1e7b34;
  --ok-bg: #e4f4e8;
  --warn: #8a5d00;
  --warn-bg: #fff3d6;
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070d1f;
    --card: #0f1830;
    --line: #22305a;
    --text: #e8ecf6;
    --muted: #9aa6c2;
    --sapphire-soft: #16244d;
    --ok-bg: #0f2a19;
    --warn-bg: #2b2208;
    --ok: #6fd28c;
    --warn: #f1c35c;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); font-weight: 600; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Top bar */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(6, 20, 64, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(241, 212, 138, 0.18);
}
.nav-in {
  max-width: 960px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; letter-spacing: .2px; }
.nav-brand:hover { text-decoration: none; }
.nav-brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav-brand small { display: block; font-size: 11px; font-weight: 500; color: var(--gold-light); letter-spacing: 1.6px; }
.nav-links { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a {
  color: #d6def3; font-size: 13.5px; font-weight: 600;
  padding: 7px 11px; border-radius: 10px;
}
.nav-links a:hover, .nav-links a.on { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(201,150,43,.28), transparent 60%),
    radial-gradient(700px 380px at 0% 120%, rgba(37,84,214,.45), transparent 60%),
    linear-gradient(140deg, var(--sapphire-deep), var(--sapphire));
  color: #fff;
  padding: 56px 16px 64px;
  text-align: center;
}
.hero img.logo {
  width: 108px; height: 108px; border-radius: 26px;
  box-shadow: 0 18px 50px rgba(0,0,0,.45), 0 0 0 1px rgba(241,212,138,.35);
  margin-bottom: 20px;
}
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2px;
  color: var(--gold-light); text-transform: uppercase;
  border: 1px solid rgba(241,212,138,.35); border-radius: 999px; padding: 5px 12px; margin-bottom: 14px;
}
.hero h1 { font-size: clamp(28px, 5vw, 42px); font-weight: 800; line-height: 1.15; letter-spacing: -.5px; }
.hero h1 .g {
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { max-width: 620px; margin: 14px auto 0; color: #c9d3ee; font-size: 16px; }
.meta { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.meta span {
  font-size: 12.5px; color: #e6ecfb; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 5px 12px;
}

/* Layout */
main { max-width: 960px; margin: -28px auto 0; padding: 0 16px 56px; position: relative; display: grid; gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: 0 6px 24px rgba(11,34,102,.06);
}
.card h2 { font-size: 20px; color: var(--text); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.card h2 .n {
  flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--sapphire-soft); color: var(--gold); font-size: 14px; font-weight: 800;
}
.card h3 { font-size: 15.5px; margin: 16px 0 6px; }
.card p + p { margin-top: 10px; }
.card ul, .card ol { padding-left: 22px; display: grid; gap: 6px; margin-top: 8px; }
.muted { color: var(--muted); font-size: 14px; }

.toc { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.toc a {
  display: block; padding: 10px 12px; border-radius: 12px; background: var(--bg);
  border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 14px;
}
.toc a:hover { border-color: var(--gold); text-decoration: none; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile {
  border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: var(--card);
}
.tile .ic {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--sapphire-soft); color: var(--sapphire); margin-bottom: 10px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tile .ic { color: var(--gold-light); } }
.tile h3 { margin: 0 0 4px; font-size: 15.5px; }
.tile p { color: var(--muted); font-size: 14px; }
.box { border-radius: 14px; padding: 16px 18px; }
.box.del { background: var(--ok-bg); }
.box.del h3 { color: var(--ok); margin-top: 0; }
.box.keep { background: var(--warn-bg); }
.box.keep h3 { color: var(--warn); margin-top: 0; }

.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 12px;
  font-weight: 700; font-size: 14.5px; color: #fff;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.wa { background: #1faf54; }
.btn.call { background: var(--sapphire); color: var(--gold-light); }
.btn.mail { background: transparent; border: 1.5px solid var(--gold); color: var(--gold); }
.btn svg { width: 18px; height: 18px; }

details { border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px; background: var(--card); }
details + details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--gold); font-size: 20px; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { padding: 0 0 14px; color: var(--muted); }

table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .6px; }
.table-wrap { overflow-x: auto; }

footer {
  background: var(--sapphire-deep); color: #a9b5d6; text-align: center;
  padding: 28px 16px; font-size: 13.5px;
}
footer .links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
footer a { color: var(--gold-light); }

@media (max-width: 720px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .nav-brand small { display: none; }
  .nav-links a { padding: 6px 8px; font-size: 13px; }
}
@media (max-width: 420px) {
  .nav-brand span.full { display: none; }
}
