@font-face { font-family: "Inter"; src: url("Inter-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("Inter-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("Fraunces-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --night: #0e1220;
  --night-2: #1c2040;
  --indigo: #3b3f8f;
  --dawn: #ff8a5b;
  --gold: #ffc46b;
  --teal: #2fa39a;
  --rose: #e86a7a;
  --bg: #fbf8f3;
  --surface: #ffffff;
  --text: #1a1d2b;
  --muted: #5d6273;
  --line: #ece6dc;
  --link: #c2522a;
  --radius: 22px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1220;
    --surface: #171b2e;
    --text: #f3efe8;
    --muted: #a7abbd;
    --line: #262b45;
    --link: #ffb08f;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Top bar */
.bar { position: absolute; inset: 0 0 auto 0; z-index: 2; }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: "Fraunces", Georgia, serif; font-size: 22px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.bar nav { display: flex; gap: 18px; }
.bar nav a { color: rgba(255,255,255,.82); text-decoration: none; font-size: 15px; }
.bar nav a:hover { color: #fff; }

/* Dawn sky */
.sky {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(120% 70% at 50% 108%, rgba(255,196,107,.95) 0%, rgba(255,138,91,.85) 22%, rgba(232,106,122,.55) 42%, rgba(59,63,143,0) 70%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 45%, #3a2f5c 100%);
}
.sky::before {
  /* a few stars */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 9%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 46% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 78% 26%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 8%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 38%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 86% 40%, #fff 50%, transparent 51%);
}
.hero { position: relative; padding: 150px 0 120px; text-align: center; }
.hero .icon { width: 96px; height: 96px; border-radius: 24px; margin: 0 auto 26px; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.hero h1 { font-size: clamp(40px, 7vw, 68px); margin: 0 0 18px; }
.hero p { font-size: clamp(18px, 2.4vw, 21px); max-width: 600px; margin: 0 auto 32px; color: rgba(255,255,255,.88); }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; text-decoration: none;
  border-radius: 14px; padding: 12px 22px; font-weight: 600; font-size: 16px;
  border: 1px solid rgba(255,255,255,.25);
}
.badge small { display: block; font-weight: 400; font-size: 11px; opacity: .8; line-height: 1.1; }
.badge svg { width: 24px; height: 24px; fill: #fff; }
.note { font-size: 14px; color: rgba(255,255,255,.72); margin-top: 14px; }

/* Page header for legal pages */
.page-head { padding-top: 120px; padding-bottom: 56px; }
.page-head h1 { font-size: clamp(34px, 5vw, 48px); margin: 0 0 8px; }
.page-head p { margin: 0; color: rgba(255,255,255,.8); }

/* Sections */
section { padding: 72px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 600; color: var(--dawn); margin: 0 0 10px; }
.lead { font-size: 20px; color: var(--muted); max-width: 640px; }
h2 { font-size: clamp(30px, 4vw, 40px); margin: 0 0 14px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 36px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { font-size: 22px; margin: 14px 0 8px; }
.card p { margin: 0; color: var(--muted); }
.dot { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; }
.dot.dawn { background: rgba(255,138,91,.16); }
.dot.teal { background: rgba(47,163,154,.16); }
.dot.gold { background: rgba(255,196,107,.22); }
.dot.rose { background: rgba(232,106,122,.16); }
.dot.indigo { background: rgba(110,115,217,.18); }

.steps { counter-reset: s; display: grid; gap: 14px; margin-top: 30px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step::before {
  counter-increment: s; content: counter(s);
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--dawn); color: #fff; font-weight: 600; display: grid; place-items: center;
}
.step p { margin: 4px 0 0; }
.step b { display: block; }

.private { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.checks li { padding-left: 34px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--teal); font-weight: 600; font-size: 20px; line-height: 1.3; }

.plans { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 28px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.plan.best { border: 2px solid var(--dawn); }
.plan b { font-family: "Fraunces", Georgia, serif; font-size: 22px; font-weight: 600; }
.plan p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

.crisis { background: rgba(232,106,122,.10); border: 1px solid rgba(232,106,122,.3); border-radius: var(--radius); padding: 22px 26px; }
.crisis p { margin: 0; }

/* Legal text */
.legal { padding-top: 56px; padding-bottom: 80px; }
.legal h2 { font-size: 26px; margin: 44px 0 10px; }
.legal h3 { font-size: 19px; margin: 26px 0 6px; font-family: "Inter", sans-serif; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; }
.summary ul { margin: 8px 0 0; }
.toc { columns: 2; column-gap: 28px; padding-left: 20px; }
.toc li { break-inside: avoid; }
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 14px 0; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { font-weight: 600; }
.table-wrap { overflow-x: auto; }

footer { padding: 40px 0 56px; color: var(--muted); font-size: 15px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--muted); }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .bar nav a.hide-sm { display: none; }
  .hero { padding: 120px 0 90px; }
  section { padding: 56px 0; }
  .toc { columns: 1; }
}
