:root {
  --paper: #f7f4ee;
  --card: #ffffff;
  --ink: #1c2622;
  --muted: #55605b;
  --line: #ddd6c8;
  --green: #1f6b47;
  --green-dark: #154d33;
  --gold: #fff3c4;
  --red: #a3261b;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { font-size: 19px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 1rem/1.55 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.wrap { max-width: 860px; margin: 0 auto; padding-inline: 20px; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.75rem, 4.5vw, 2.5rem); margin: 0 0 .6rem; }
h2 { font-size: 1.45rem; margin: 0 0 .8rem; }
a { color: var(--green-dark); }

/* header */
.top { border-bottom: 1px solid var(--line); background: var(--card); }
.top-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-block: 14px; }
.brand { font-family: Georgia, serif; font-size: 1.3rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand span { color: var(--green); }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; font-size: .8rem; color: var(--muted); }
.trust li::before { content: "✓ "; color: var(--green); font-weight: 700; }

.hero { padding: 40px 0 22px; }
.lead { font-size: 1.12rem; color: var(--muted); margin: 0; max-width: 40em; }

/* cards & form */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 22px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.step { border: 0; padding: 0; margin: 0 0 26px; }
.step legend { font-weight: 700; font-size: 1.1rem; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; font-size: .85rem; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: block; padding: 14px 16px; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 600; text-align: center; }
.choice small { display: block; font-weight: 400; color: var(--muted); font-size: .75rem; }
.choice input:checked + span { border-color: var(--green); background: #eef6f1; }
.choice input:focus-visible + span { outline: 3px solid #9cc9b1; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.field { display: block; font-weight: 600; margin-bottom: 14px; }
.label-text { display: block; }
.dob { display: grid; grid-template-columns: 1.4fr .8fr 1fr; gap: 8px; margin-top: 6px; }
select, input[type=email], .money input {
  font: inherit; font-weight: 400; width: 100%; padding: 12px 12px; border: 2px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
select:focus, input:focus { outline: none; border-color: var(--green); }
.field > select { margin-top: 6px; }
.money { position: relative; margin-top: 6px; max-width: 320px; }
.money span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.money input { padding-left: 30px; }
.salary { margin-top: 10px; }
.hint { font-weight: 400; font-size: .85rem; color: var(--muted); margin: 8px 0 0; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--green-dark); text-decoration: underline; cursor: pointer; }
.error { color: var(--red); font-weight: 600; }
.cta {
  display: block; width: 100%; max-width: 420px; padding: 17px 22px; border: 0; border-radius: 12px;
  background: var(--green); color: #fff; font: inherit; font-size: 1.12rem; font-weight: 700; cursor: pointer;
}
.cta:hover { background: var(--green-dark); }
.fine { font-size: .8rem; color: var(--muted); margin: 10px 0 0; }

/* results */
.big { font-size: 1.15rem; }
.scroll { overflow-x: auto; margin: 14px 0 4px; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .92rem; }
th, td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); }
th { font-size: .78rem; color: var(--muted); font-weight: 600; vertical-align: bottom; }
tr.fra td { background: #f2f8f4; }
#extras p { background: #f2f8f4; border-radius: 10px; padding: 12px 14px; margin: 12px 0 0; }

.offer { border: 2px solid var(--green); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; color: var(--green); font-weight: 700; margin: 0 0 6px; }
.gain { background: var(--gold); padding: 0 .2em; border-radius: 4px; white-space: nowrap; }
.locked { border: 1px dashed var(--line); border-radius: 10px; padding: 6px 16px; margin: 16px 0; background: #fbfaf7; }
.lrow { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eee8dc; }
.lrow:last-child { border-bottom: 0; }
.lrow b { filter: blur(5px); user-select: none; }
.ticks { padding-left: 0; list-style: none; margin: 0 0 20px; }
.ticks li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.ticks li::before { content: "✓"; position: absolute; left: 4px; color: var(--green); font-weight: 700; }
.assumptions summary { cursor: pointer; font-weight: 700; }
.assumptions p { color: var(--muted); font-size: .9rem; }

/* modal */
.modal { position: fixed; inset: 0; background: rgba(20,28,25,.55); display: grid; place-items: center; padding: 16px; z-index: 10; }
.sheet { background: #fff; border-radius: var(--radius); padding: 28px; max-width: 480px; width: 100%; position: relative; }
.sheet form { display: grid; gap: 12px; margin-top: 14px; }
.sheet .cta { max-width: none; }
.x { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 1.8rem; cursor: pointer; color: var(--muted); }

.foot { border-top: 1px solid var(--line); margin-top: 30px; padding: 24px 0 40px; font-size: .8rem; color: var(--muted); }
[hidden] { display: none !important; }

@media (max-width: 560px) {
  html { font-size: 18px; }
  .card { padding: 20px 16px; }
  .trust { font-size: .72rem; }
  table { min-width: 0; font-size: .85rem; }
  th:nth-child(4), td:nth-child(4) { display: none; }
  th, td { padding: 9px 6px; }
}
