/* Free tax tools — shared styles. No webfonts, no external assets. */
:root {
  --bg: #fbf7ef;
  --card: #ffffff;
  --ink: #22302a;
  --ink-soft: #4c5a53;
  --green: #1e5b4a;
  --green-dark: #14402f;
  --amber: #e9a13b;
  --amber-soft: #fdf0da;
  --line: #e5dcc9;
  --good: #1e5b4a;
  --owed: #a33b2e;
  --radius: 16px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

.wrap { max-width: 640px; margin: 0 auto; padding: 20px 16px 56px; }

header.site { padding: 10px 0 4px; }
.brand { font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--green); }
header.site h1 { font-size: 30px; line-height: 1.2; margin: 6px 0 8px; }
.lede { color: var(--ink-soft); margin: 0 0 6px; font-size: 18px; }

.privacy-note {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--amber-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 14px; margin: 16px 0;
  font-size: 15.5px;
}
.privacy-note .lock { font-size: 19px; line-height: 1.3; }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 18px; margin: 16px 0;
  box-shadow: 0 1px 3px rgba(34, 48, 42, .05);
}

.progress { margin: 18px 0 4px; }
.progress .bar { height: 8px; background: #eee4cd; border-radius: 99px; overflow: hidden; }
.progress .fill { height: 100%; background: var(--green); border-radius: 99px; transition: width .3s ease; }
.progress .label { font-size: 13.5px; color: var(--ink-soft); margin-top: 6px; }

.step { display: none; }
.step.active { display: block; animation: fadein .25s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.step h2 { font-size: 23px; line-height: 1.3; margin: 2px 0 8px; }
.step .help { color: var(--ink-soft); margin: 0 0 18px; font-size: 16px; }

.options { display: grid; gap: 10px; }
.option {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: #fff; border: 2px solid var(--line); border-radius: 12px;
  padding: 14px 16px; font-size: 17px; color: var(--ink); font-family: inherit;
}
.option strong { display: block; font-size: 17.5px; }
.option span { color: var(--ink-soft); font-size: 15px; }
.option.selected { border-color: var(--green); background: #eef6f2; }
.option:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.money-input { display: flex; align-items: center; border: 2px solid var(--line); border-radius: 12px; padding: 4px 14px; background: #fff; }
.money-input .dollar { font-size: 22px; color: var(--ink-soft); margin-right: 6px; }
.money-input input {
  border: 0; font-size: 24px; font-family: inherit; width: 100%;
  padding: 10px 0; background: transparent; color: var(--ink);
}
.money-input input:focus { outline: none; }
.money-input:focus-within { border-color: var(--green); }

.stepper { display: flex; align-items: center; gap: 18px; justify-content: center; padding: 8px 0 4px; }
.stepper button {
  width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--green);
  background: #fff; color: var(--green); font-size: 28px; cursor: pointer; font-family: inherit; line-height: 1;
}
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper .count { font-size: 34px; font-weight: 700; min-width: 52px; text-align: center; }

.nav { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.btn {
  display: inline-block; border: 0; cursor: pointer; font-family: inherit;
  background: var(--green); color: #fff; font-size: 18px; font-weight: 600;
  padding: 14px 26px; border-radius: 12px; text-decoration: none; text-align: center;
}
.btn:hover { background: var(--green-dark); }
.btn.secondary { background: #fff; color: var(--green); border: 2px solid var(--green); }
.btn.block { display: block; width: 100%; }
.back-link { background: none; border: 0; color: var(--ink-soft); font-size: 16px; cursor: pointer; font-family: inherit; padding: 10px 4px; }
.error { color: var(--owed); font-size: 15px; margin-top: 10px; min-height: 1.2em; }

.result-hero { text-align: center; padding: 10px 0 4px; }
.result-hero .kicker { font-size: 15px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); }
.result-hero .amount { font-size: 52px; font-weight: 800; line-height: 1.1; margin: 6px 0; }
.result-hero .amount.refund { color: var(--good); }
.result-hero .amount.owed { color: var(--owed); }
.result-hero .sub { color: var(--ink-soft); margin: 0; }

table.breakdown { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 16px; }
table.breakdown td { padding: 8px 2px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.breakdown td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.breakdown tr.total td { font-weight: 700; border-bottom: 0; border-top: 2px solid var(--ink); }
table.breakdown tr.minor td { color: var(--ink-soft); }

details.assumptions { margin-top: 14px; font-size: 15px; color: var(--ink-soft); }
details.assumptions summary { cursor: pointer; font-weight: 600; color: var(--ink); }
details.assumptions ul { margin: 8px 0 0; padding-left: 20px; }
details.assumptions li { margin: 4px 0; }

.funnel { background: var(--green); color: #fff; border-radius: var(--radius); padding: 24px 20px; margin: 20px 0; }
.funnel h2 { margin: 0 0 8px; font-size: 23px; color: #fff; }
.funnel p { margin: 0 0 12px; color: #eaf3ee; }
.funnel .price { font-size: 19px; font-weight: 700; color: #fff; }
.funnel .btn { background: var(--amber); color: #22302a; margin-top: 6px; }
.funnel .btn:hover { background: #d18f27; }
.funnel .fineprint { font-size: 14px; color: #cfe0d7; margin-top: 12px; }

.capture { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 18px; }
.capture h3 { margin: 0 0 6px; font-size: 18px; }
.capture p { margin: 0 0 12px; color: var(--ink-soft); font-size: 15.5px; }
.capture form { display: flex; gap: 10px; flex-wrap: wrap; }
.capture input[type="email"] {
  flex: 1 1 220px; font-size: 17px; font-family: inherit; padding: 13px 14px;
  border: 2px solid var(--line); border-radius: 12px; color: var(--ink); background: #fff;
}
.capture .btn { padding: 13px 20px; font-size: 16.5px; }
.capture .capture-msg { margin-top: 10px; font-size: 15px; min-height: 1.3em; }
.capture .capture-msg.ok { color: var(--good); font-weight: 600; }
.capture .capture-msg.warn { color: var(--owed); }
.funnel .capture { border-top-color: rgba(255,255,255,.25); }
.funnel .capture p { color: #cfe0d7; }

.disclaimer {
  font-size: 14px; color: var(--ink-soft); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; margin: 20px 0; background: #fff;
}
.disclaimer strong { color: var(--ink); }

footer.site { margin-top: 28px; font-size: 14.5px; color: var(--ink-soft); text-align: center; }
footer.site a { color: var(--green); }

.owe-alert {
  margin-top: 28px; padding: 16px 18px; text-align: center;
  background: #fff0f0; border: 2px solid #d40000; border-radius: var(--radius);
  color: #d40000; font-size: 20px; font-weight: 700; line-height: 1.4;
}
.owe-alert a { color: #d40000; text-decoration: underline; }

.answers { font-size: 15.5px; }
.answers .row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.answers .row:last-child { border-bottom: 0; }
.answers button { background: none; border: 0; color: var(--green); font-weight: 600; cursor: pointer; font-family: inherit; font-size: 15px; padding: 0; }

h2.section { font-size: 23px; margin: 26px 0 8px; }
.prose p { margin: 0 0 12px; }
.prose ul { margin: 0 0 12px; padding-left: 22px; }
.prose li { margin: 5px 0; }
table.fees { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 8px 0 14px; }
table.fees th, table.fees td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
table.fees td:last-child, table.fees th:last-child { text-align: right; white-space: nowrap; }

.term-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 12px 0; }
.term-card { border: 2px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; text-align: center; }
.term-card .t { font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.term-card .m { font-size: 22px; font-weight: 800; margin: 2px 0; }
.term-card .x { font-size: 13.5px; color: var(--ink-soft); }
select.fee-select {
  width: 100%; font-size: 17px; font-family: inherit; padding: 13px 12px;
  border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); margin-bottom: 14px;
}
