:root {
  --paper: #f3eee4;
  --paper-deep: #e7dfd0;
  --card: #fffaf2;
  --ink: #1b1712;
  --ink-soft: #5b5348;
  --line: #d8cfc0;
  --forest: #234338;
  --forest-deep: #163028;
  --terra: #c24b1e;
  --terra-deep: #9a3814;
  --gold: #e8c37a;
  --ok: #2f6b4f;
  --warn: #9a4b16;
  --shadow: 0 18px 50px rgba(27, 23, 18, 0.08);
  --radius: 22px;
  --max: 1120px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Figtree", "Avenir Next", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #fff8ea 0%, transparent 55%),
    radial-gradient(900px 400px at 100% 0%, #efe4d2 0%, transparent 50%),
    var(--paper);
  font-family: var(--sans);
  line-height: 1.5;
}

a { color: var(--forest); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }

.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 8px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
.mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--forest);
  color: #f6efe2;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
}
.nav { display: flex; gap: 18px; align-items: center; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--ink);
  color: #f7f1e6;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
}
.btn:hover { background: #000; }
.btn-terra { background: var(--terra); color: #fff8f3; }
.btn-terra:hover { background: var(--terra-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: #fff; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.hero { padding: 42px 0 20px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #efe6d4;
  color: var(--forest-deep);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
h1, h2, h3, .display {
  font-family: var(--serif);
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin: 0 0 12px;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); max-width: 14ch; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.calc { position: sticky; top: 16px; }

label { display: block; font-size: 0.86rem; font-weight: 600; margin: 0 0 6px; }
.field { margin: 0 0 14px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input[type="number"], input[type="text"], input[type="email"], input[type="date"], select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 11px 12px;
  color: var(--ink);
}
textarea { min-height: 88px; resize: vertical; }
.hint { color: var(--ink-soft); font-size: 0.8rem; margin-top: 4px; }
.switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.switch:first-of-type { border-top: 0; }
.switch input { width: 18px; height: 18px; }

.result-hero {
  background: var(--forest);
  color: #f6efe2;
  border: 0;
}
.result-hero .kicker { color: #c9d9d0; font-size: 0.86rem; margin-bottom: 8px; }
.big-rate {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 5rem);
  letter-spacing: -0.05em;
  line-height: 0.95;
}
.big-rate small { display: block; font-size: 1rem; font-weight: 500; letter-spacing: 0; opacity: 0.8; margin-top: 8px; }
.compare {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  color: #e6efe9;
  font-size: 0.95rem;
}
.compare.low { background: #7a2e12; color: #ffe8dc; }
.compare.high { background: #1a3d32; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
}
.stat b { display: block; font-family: var(--serif); font-size: 1.25rem; }
.stat span { color: var(--ink-soft); font-size: 0.8rem; }

.breakdown { margin-top: 8px; }
.break-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.95rem;
}
.break-row:last-child { border-bottom: 0; font-weight: 700; }

.section { padding: 72px 0; }
.section h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); max-width: 18ch; }
.muted { color: var(--ink-soft); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 18px; background: #fff8ee; border-radius: 18px; border: 1px solid var(--line); }
.num {
  font-family: var(--serif);
  color: var(--terra);
  font-size: 1.4rem;
}

.pack {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 22px;
  background: var(--ink);
  color: #f4eadc;
  border-radius: 28px;
  padding: 28px;
}
.pack h2 { color: #fff7ea; }
.pack ul { padding-left: 18px; }
.pack li { margin: 8px 0; }
.price-box {
  background: #2a241c;
  border-radius: 22px;
  padding: 22px;
}
.price-box .amt {
  font-family: var(--serif);
  font-size: 3.4rem;
  letter-spacing: -0.04em;
}
.fine { color: #c9bead; font-size: 0.85rem; }

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 0 0 10px;
}
.faq summary { cursor: pointer; font-weight: 700; }

.doc {
  background: #fff;
  color: #111;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 28px 32px;
  min-height: 70vh;
}
.doc h1 { font-size: 1.8rem; max-width: none; }
.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.locked {
  background: #fff6ea;
  border: 1px dashed var(--terra);
  border-radius: 16px;
  padding: 16px;
}

.footer {
  padding: 40px 0 50px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: var(--ink);
  color: #fff;
  padding: 12px 14px;
  border-radius: 12px;
  display: none;
}

@media (max-width: 860px) {
  .grid-2, .steps, .pack, .row { grid-template-columns: 1fr; }
  .calc { position: static; }
  .nav .hide-sm { display: none; }
  h1 { max-width: none; }
}

@media print {
  body { background: #fff; }
  .top, .toolbar, .footer, .nav, .btn, .no-print { display: none !important; }
  .doc, .card, .result-hero { box-shadow: none; border-color: #ccc; }
  .wrap { width: auto; }
}
