:root {
  --paper: #f3eee4;
  --paper-2: #e8e0d2;
  --ink: #1c1915;
  --ink-soft: #4a453c;
  --rule: #d4cbb8;
  --copper: #9a4e12;
  --copper-deep: #7c3d0c;
  --forest: #3f5c2a;
  --white: #fffcf6;
  --shadow: 0 18px 40px rgba(28, 25, 21, 0.08);
  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(243,238,228,0.96), rgba(243,238,228,0.96)),
    repeating-linear-gradient(0deg, transparent, transparent 27px, rgba(154,78,18,0.04) 28px);
  min-height: 100vh;
  line-height: 1.55;
}

a { color: var(--copper-deep); }
img { max-width: 100%; }

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--rule);
}
.brand { text-decoration: none; color: inherit; }
.brand-mark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.brand-sub { display: block; color: var(--ink-soft); font-size: 0.78rem; margin-top: 2px; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.nav a { text-decoration: none; color: var(--ink-soft); font-size: 0.92rem; }
.nav a.btn, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  cursor: pointer;
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}
.btn.copper { background: var(--copper); color: #fff; }

.hero { padding: 56px 0 28px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 36px; align-items: center; }
.kicker { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; color: var(--copper); font-weight: 600; }
h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; line-height: 1.15; margin: 8px 0 12px; }
h1 { font-size: clamp(2rem, 4vw, 3.3rem); }
.lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 46ch; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.proof { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding: 0; list-style: none; }
.proof li {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
}
.hero-card {
  background: var(--white);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  padding: 22px;
  border-radius: 4px 18px 4px 18px;
  transform: rotate(-1.1deg);
}
.hero-card small { color: var(--ink-soft); }
.hero-card .money { font-family: var(--serif); font-size: 2rem; margin-top: 18px; }

section { padding: 28px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card, .feature, .who li, .price-card {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 18px;
  border-radius: 12px;
}
.who { padding-left: 18px; }
.markets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding: 40px 0; }
.market-tile {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 18px 14px;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  min-height: 160px;
}
.market-tile:hover { border-color: var(--copper); }
.flag { font-size: 1.6rem; }
.price-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.price-card.featured { border-color: var(--ink); box-shadow: var(--shadow); }
.price-card .amt { font-family: var(--serif); font-size: 2.4rem; }
.muted { color: var(--ink-soft); }
.form { display: grid; gap: 10px; max-width: 520px; }
label { font-size: 0.85rem; color: var(--ink-soft); display: grid; gap: 4px; }
input, textarea, select {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  background: var(--white);
  color: var(--ink);
  border-radius: 8px;
}
textarea { min-height: 120px; resize: vertical; }
.legal { max-width: 68ch; }

.app-shell { display: grid; grid-template-columns: 280px 1fr; gap: 18px; padding: 22px 0 60px; }
.sidebar { display: grid; gap: 10px; align-content: start; }
.doc-list { display: grid; gap: 6px; max-height: 420px; overflow: auto; }
.doc-list button {
  text-align: left;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  font: inherit;
}
.doc-list button.active { border-color: var(--ink); }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.paper {
  background: var(--white);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  padding: 28px;
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lines { width: 100%; border-collapse: collapse; margin-top: 18px; }
.lines th, .lines td { border-bottom: 1px solid var(--rule); padding: 8px 4px; text-align: left; font-size: 0.92rem; }
.lines input { width: 100%; border: 0; background: transparent; padding: 6px 0; }
.totals { margin-left: auto; width: min(280px, 100%); margin-top: 16px; }
.totals div { display: flex; justify-content: space-between; padding: 4px 0; }
.totals .grand { font-weight: 700; border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 8px; }
.footnote { font-size: 0.82rem; color: var(--ink-soft); margin-top: 24px; }
.notice { background: #efe4d2; padding: 10px 12px; border-radius: 8px; font-size: 0.9rem; }
.site-footer { border-top: 1px solid var(--rule); padding: 28px 0 48px; color: var(--ink-soft); font-size: 0.88rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .hero, .grid-2, .grid-3, .markets, .price-row, .app-shell, .row { grid-template-columns: 1fr; }
  .hero-card { transform: none; }
}

@media print {
  body { background: #fff; }
  .site-header, .site-footer, .sidebar, .toolbar, .nav, .no-print { display: none !important; }
  .app-shell { display: block; padding: 0; }
  .paper { box-shadow: none; border: 0; padding: 0; }
  a { color: inherit; text-decoration: none; }
}
