:root {
  --bg-dark: #0e3324;
  --bg-dark-2: #123c2b;
  --paper: #f6f1e4;
  --paper-2: #efe8d5;
  --ink: #1c2b24;
  --ink-soft: #4a564d;
  --cream: #f3efe2;
  --gold: #b8863a;
  --gold-bright: #d9a94e;
  --sage: #c9d6c8;
  --line: #ddd5c0;
  --line-dark: rgba(243,239,226,0.22);
  --radius: 14px;
  --shadow: 0 20px 50px -20px rgba(14,51,36,0.35);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2 { font-family: var(--serif); margin: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
  opacity: 0.65;
}

/* ---------- Topbar ---------- */
.topbar {
  background: var(--bg-dark);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line-dark);
}
.topbar__inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brandmark { display: flex; align-items: center; gap: 10px; }
.brandmark__seal {
  width: 34px; height: 34px;
  border: 1.5px solid var(--gold-bright);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 13px;
  color: var(--gold-bright);
}
.brandmark__text { font-family: var(--serif); font-size: 15px; line-height: 1.15; }
.brandmark__text small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; font-weight: 400; }
.topbar__wa {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  text-decoration: none;
  color: var(--bg-dark);
  background: var(--gold-bright);
  padding: 8px 14px;
  border-radius: 999px;
  transition: transform .15s ease, background .15s ease;
}
.topbar__wa svg { width: 15px; height: 15px; fill: currentColor; }
.topbar__wa:hover { background: #eec06e; transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(120% 140% at 15% 0%, var(--bg-dark-2), var(--bg-dark) 60%);
  color: var(--cream);
  padding: 64px 20px 120px;
}
.hero__inner { max-width: 720px; margin: 0 auto; }
.hero .eyebrow { color: var(--gold-bright); opacity: 0.9; }
.hero__title {
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.hero__lede {
  margin: 20px 0 28px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--sage);
  max-width: 52ch;
}
.hero__agent {
  display: flex; flex-direction: column; gap: 2px;
  border-left: 2px solid var(--gold-bright);
  padding-left: 14px;
  margin-bottom: 32px;
}
.hero__agent-name { font-family: var(--serif); font-size: 18px; }
.hero__agent-meta { font-family: var(--mono); font-size: 12px; color: var(--sage); letter-spacing: 0.03em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  padding: 13px 22px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: var(--gold-bright); transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(184,134,58,0.6); }
.btn--block { width: 100%; }
.btn--ghost-light { border: 1.5px solid var(--line-dark); color: var(--cream); background: transparent; }
.btn--ghost-light:hover { background: rgba(243,239,226,0.08); }
.btn--outline-light { border: 1.5px solid rgba(243,239,226,0.4); color: var(--cream); background: transparent; }
.btn--outline-light:hover { background: rgba(243,239,226,0.1); }

/* ---------- Calculator card ---------- */
.calc { padding: 0 20px; margin-top: -80px; position: relative; z-index: 5; }
.card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 28px 28px;
}
.card__section { padding: 22px 0; border-bottom: 1px dashed var(--line); }
.card__section:last-of-type { border-bottom: none; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.field input[type="number"],
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 15px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.field__hint { font-size: 12px; color: var(--ink-soft); margin: 2px 0 0; }
#up-slider { width: 100%; margin-top: 8px; accent-color: var(--gold); }

.toggle { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; width: fit-content; }
.toggle__btn {
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  padding: 10px 20px; border: none; background: #fff; color: var(--ink-soft);
  cursor: pointer;
}
.toggle__btn.is-active { background: var(--bg-dark); color: var(--cream); }

.plan-grid { display: grid; gap: 10px; }
.plan-card {
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 4px;
}
.plan-card__label { font-family: var(--serif); font-size: 16px; }
.plan-card__desc { font-size: 12.5px; color: var(--ink-soft); line-height: 1.4; }
.plan-card.is-active { border-color: var(--gold); background: #fdf8ee; box-shadow: 0 0 0 1px var(--gold); }

/* ---------- Result stub ---------- */
.stub {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-dark);
  color: var(--cream);
  position: relative;
  overflow: hidden;
  animation: stub-in .4s ease;
}
@keyframes stub-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.stub__perforation {
  height: 0;
  border-top: 2px dashed rgba(243,239,226,0.25);
  margin: 0 20px;
  position: relative;
  top: 0;
}
.stub__body { padding: 22px 24px 24px; }
.stub__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage); margin: 0 0 6px; }
.stub__amount { font-family: var(--mono); font-size: clamp(28px, 6vw, 40px); font-weight: 600; margin: 0; color: var(--gold-bright); letter-spacing: -0.01em; }
.stub__sub { font-family: var(--mono); font-size: 13px; color: var(--sage); margin: 4px 0 18px; }
.stub__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 16px; margin: 0; }
@media (max-width: 640px) { .stub__meta { grid-template-columns: 1fr 1fr; } }
.stub__meta div { display: flex; flex-direction: column; gap: 2px; }
.stub__meta dt { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sage); opacity: 0.8; }
.stub__meta dd { margin: 0; font-size: 14px; font-weight: 500; }
.stub__flag {
  margin: 16px 0 0; padding: 10px 12px;
  background: rgba(217,169,78,0.14);
  border: 1px solid rgba(217,169,78,0.35);
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--gold-bright);
}

.disclaimer { font-size: 12px; color: var(--ink-soft); line-height: 1.5; margin: 20px 0 4px; }

/* ---------- Consult section ---------- */
.consult { padding: 64px 20px; }
.card--consult { padding: 30px 28px 32px; }
.consult__title { font-size: 24px; margin: 4px 0 10px; line-height: 1.25; }
.consult__lede { color: var(--ink-soft); font-size: 15px; line-height: 1.6; margin: 0 0 24px; max-width: 56ch; }
.hidden-field { position: absolute; left: -9999px; }
#lead-form .field { margin-bottom: 14px; }
#lead-form textarea { resize: vertical; }
.form-status { font-size: 14px; margin-top: 12px; min-height: 20px; }
.form-status.is-success { color: #2f6b46; font-weight: 600; }
.form-status.is-error { color: #a3372c; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: var(--cream); padding: 36px 20px 26px; margin-top: 20px; }
.site-footer__inner {
  max-width: 1040px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-bottom: 20px; border-bottom: 1px solid var(--line-dark);
}
.site-footer__name { font-family: var(--serif); font-size: 17px; margin: 0; }
.site-footer__meta { font-family: var(--mono); font-size: 12px; color: var(--sage); margin: 4px 0 0; }
.site-footer__disclaimer { max-width: 1040px; margin: 16px auto 0; font-size: 11.5px; color: var(--sage); opacity: 0.75; line-height: 1.5; }

/* ---------- Floating WA button ---------- */
.fab-wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 30;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,0.4);
}
.fab-wa svg { width: 26px; height: 26px; fill: #fff; }

@media (min-width: 700px) { .fab-wa { display: none; } }

@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
  .card { padding: 4px 18px 22px; }
  .hero { padding: 44px 18px 100px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stub { animation: none; }
}
