/* LBTT Calculator — lightweight, mobile-first, no frameworks */
:root {
  --navy: #0b3b5e;
  --navy-dark: #07293f;
  --teal: #0e7c66;
  --ink: #17242e;
  --muted: #5b6b77;
  --bg: #f6f8fa;
  --card: #ffffff;
  --line: #dfe7ec;
  --accent-soft: #e8f3f0;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

.container {
  width: min(960px, 100% - 2.5rem);
  margin-inline: auto;
}

a { color: var(--navy); }
a:hover { text-decoration-thickness: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 20;
}
.skip-link:focus { left: .5rem; top: .5rem; }

/* Header */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky; top: 0; z-index: 10;
  box-shadow: 0 1px 6px rgba(7, 41, 63, .25);
}
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .5rem 1.5rem; padding: .8rem 0;
}
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  color: #fff; text-decoration: none; font-size: 1.25rem; letter-spacing: .2px;
}
.brand-mark {
  display: inline-grid; place-items: center;
  width: 2rem; height: 2rem; border-radius: 8px;
  background: var(--teal); color: #fff; font-weight: 700;
}
.site-nav { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; }
.site-nav a { color: #dbe9f2; text-decoration: none; font-size: .98rem; }
.site-nav a:hover { color: #fff; text-decoration: underline; }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--navy-dark), var(--navy));
  color: #eef5fa;
  padding: 2.6rem 0 3rem;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
  color: #9fc6dd; margin: 0 0 .4rem;
}
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.2rem); margin: 0 0 .6rem; line-height: 1.1; }
.lead { font-size: 1.13rem; max-width: 46ch; margin: 0 0 1rem; color: #d8e9f4; }
.trust-points {
  list-style: none; display: flex; flex-wrap: wrap; gap: .5rem;
  padding: 0; margin: 0 0 1.6rem;
}
.trust-points li {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  padding: .3rem .75rem; border-radius: 999px; font-size: .9rem;
}

/* Calculator card */
.calculator-card {
  background: var(--card); color: var(--ink);
  border-radius: var(--radius);
  padding: 1.4rem clamp(1rem, 4vw, 2rem) 1.6rem;
  box-shadow: 0 18px 40px rgba(7, 41, 63, .35);
}
.card-title { margin: .2rem 0 1.1rem; font-size: 1.45rem; }

.field { margin-bottom: 1.15rem; }
.field label, .field legend { font-weight: 600; display: block; margin-bottom: .45rem; }
fieldset.field { border: 0; padding: 0; margin-left: 0; margin-right: 0; }

.price-input {
  display: flex; align-items: center; gap: .4rem;
  border: 2px solid var(--line); border-radius: 10px; padding: .2rem .8rem;
  max-width: 340px; background: #fbfcfd;
}
.price-input:focus-within { border-color: var(--teal); }
.price-input span { font-weight: 700; color: var(--muted); }
.price-input input {
  border: 0; outline: 0; background: transparent; width: 100%;
  font-size: 1.35rem; font-weight: 600; padding: .55rem 0; color: var(--ink);
}
.field-hint { color: var(--muted); font-size: .9rem; margin: .45rem 0 0; max-width: 60ch; }

.segmented { display: flex; flex-wrap: wrap; gap: .5rem; }
.segmented label { margin: 0; font-weight: 500; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  display: inline-block; padding: .55rem 1rem; border: 2px solid var(--line);
  border-radius: 999px; cursor: pointer; background: #fbfcfd; font-size: .98rem;
}
.segmented input:checked + span {
  background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600;
}
.segmented input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }

.error {
  background: #fdecea; border: 1px solid #f3b8b0; color: #8a2318;
  padding: .6rem .9rem; border-radius: 8px;
}

.results {
  display: grid; gap: 1rem;
  background: var(--accent-soft); border: 1px solid #cfe6df;
  border-radius: var(--radius); padding: 1.1rem 1.2rem; margin: 1.2rem 0;
}
.result-main { display: flex; flex-direction: column; }
.result-label { font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.result-value { font-size: clamp(2rem, 7vw, 2.7rem); font-weight: 800; color: var(--navy-dark); line-height: 1.15; }
.result-sub { color: var(--teal); font-weight: 600; }
.result-lines { display: flex; flex-wrap: wrap; gap: 1rem 2.4rem; margin: 0; }
.result-lines > div { min-width: 130px; }
.result-lines dt { font-size: .85rem; color: var(--muted); }
.result-lines dd { margin: 0; font-weight: 700; font-size: 1.08rem; }

.ads-note {
  background: #fff6e5; border: 1px solid #f0d9a0; color: #6b5310;
  padding: .65rem .95rem; border-radius: 8px; margin: 0 0 1rem;
}

/* Phase 1 tools */
.tool-grid {
  display: grid; gap: 1rem; margin-top: 1.2rem;
}
.tool-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.15rem 1.25rem; box-shadow: 0 4px 16px rgba(7, 41, 63, .06);
}
.tool-card h3 { margin: .1rem 0 .45rem; color: var(--navy-dark); }
.tool-card p { margin: .3rem 0 .8rem; color: var(--muted); }
.button-link {
  display: inline-block; background: var(--teal); color: #fff; text-decoration: none;
  font-weight: 700; padding: .55rem .95rem; border-radius: 999px;
}
.button-link:hover { background: var(--navy); text-decoration: none; }
.page-hero { padding-bottom: 2.2rem; }
.page-hero h1 { font-size: clamp(2rem, 5.5vw, 3rem); }
.breadcrumbs { font-size: .9rem; color: #b9d2e2; margin-bottom: .8rem; }
.breadcrumbs a { color: #dcecf6; }
.form-grid { display: grid; gap: 1rem; }
.text-input, .date-input, .select-input {
  width: 100%; max-width: 340px; border: 2px solid var(--line); border-radius: 10px;
  background: #fbfcfd; color: var(--ink); font: inherit; font-size: 1.08rem; font-weight: 600;
  padding: .65rem .8rem;
}
.text-input:focus, .date-input:focus, .select-input:focus { outline: 3px solid rgba(14, 124, 102, .25); border-color: var(--teal); }
.check-field { display: flex; gap: .65rem; align-items: flex-start; font-weight: 500; }
.check-field input { width: 1.15rem; height: 1.15rem; margin-top: .25rem; accent-color: var(--teal); }
.verdict {
  border-radius: var(--radius); padding: 1rem 1.1rem; margin: 1.1rem 0;
  border: 1px solid var(--line); background: #eef4f8;
}
.verdict.good { background: #e8f6ef; border-color: #a9d8bb; }
.verdict.warn { background: #fff6e5; border-color: #f0d9a0; }
.verdict.bad { background: #fdecea; border-color: #f3b8b0; }
.verdict h3 { margin: .1rem 0 .5rem; }
.verdict ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.compare-grid { display: grid; gap: 1rem; margin: 1.2rem 0; }
.tax-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem;
}
.tax-panel h3 { margin-top: 0; color: var(--navy-dark); }
.tax-total { font-size: 2rem; font-weight: 800; color: var(--navy-dark); line-height: 1.1; }
.mini-table { font-size: .92rem; }
.steps-list { counter-reset: claim-step; padding-left: 1.25rem; }
.steps-list li { margin-bottom: .55rem; }

.breakdown h3 { margin: 1rem 0 .6rem; }
.source-note { color: var(--muted); font-size: .9rem; margin-top: 1rem; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: #fff; }
th, td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); }
thead th { background: #eef4f8; color: var(--navy-dark); font-size: .92rem; }
tbody tr:nth-child(even) { background: #fafbfc; }
tfoot th, tfoot td { border-top: 2px solid var(--navy); border-bottom: 0; font-weight: 700; }
td.num, th.num { text-align: right; }

/* Sections */
.section { padding: 2.4rem 0 .4rem; }
.section h2 { font-size: 1.65rem; color: var(--navy-dark); margin-bottom: .6rem; }
.section h3 { color: var(--navy); margin: 1.2rem 0 .4rem; }
.coming-note {
  background: #eef4f8; border-left: 4px solid var(--navy);
  padding: .7rem 1rem; border-radius: 0 8px 8px 0;
}

details {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: .85rem 1.1rem; margin-bottom: .7rem;
}
details summary { font-weight: 600; cursor: pointer; color: var(--navy-dark); }
details p { margin: .6rem 0 .2rem; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #c8dbea; margin-top: 3rem; padding: 2rem 0 2.4rem; }
.footer-brand { font-weight: 700; color: #fff; font-size: 1.1rem; margin: 0 0 .5rem; }
.disclaimer { font-size: .9rem; max-width: 75ch; }
.disclaimer a { color: #a9d3ee; }
.footer-meta { font-size: .85rem; color: #8fb0c7; margin-bottom: 0; }
.footer-links { font-size: .9rem; margin: .2rem 0 .8rem; }
.footer-links a { color: #dbe9f2; }

@media (min-width: 720px) {
  .results { grid-template-columns: 1fr auto; align-items: center; }
  .tool-grid { grid-template-columns: repeat(3, 1fr); }
  .compare-grid { grid-template-columns: 1fr 1fr; }
  .form-grid.two { grid-template-columns: 1fr 1fr; }
}
