/* LBTT Calculator — v2 MasterKit-style: light slate theme, indigo→violet→pink gradient accents */
:root {
  --ink: #0f172a;          /* slate-900 */
  --muted: #64748b;        /* slate-500 */
  --faint: #94a3b8;        /* slate-400 */
  --bg: #f8fafc;           /* slate-50 */
  --card: #ffffff;
  --line: #e2e8f0;         /* slate-200 */
  --brand: #4f46e5;        /* indigo-600 */
  --brand-dark: #4338ca;   /* indigo-700 */
  --violet: #7c3aed;
  --pink: #db2777;
  --grad: linear-gradient(90deg, #4f46e5, #7c3aed 50%, #db2777);
  --soft: #eef2ff;         /* indigo-50 */
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: ui-sans-serif, 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(1080px, 100% - 2.5rem);
  margin-inline: auto;
}

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

.text-gradient {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

/* Header — white, sticky, hairline border */
.site-header {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  color: var(--ink);
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid var(--line);
}
.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: var(--ink); text-decoration: none; font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em;
}
.brand-mark {
  display: inline-grid; place-items: center;
  width: 2rem; height: 2rem; border-radius: 9px;
  background: var(--grad); color: #fff; font-weight: 800;
  box-shadow: 0 4px 12px rgba(124, 58, 237, .35);
}
.site-nav { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: .98rem; font-weight: 500; }
.site-nav a:hover { color: var(--ink); text-decoration: none; }

/* Hero — light gradient wash */
.hero {
  background:
    radial-gradient(60rem 30rem at 15% -10%, rgba(79,70,229,.14), transparent 60%),
    radial-gradient(50rem 26rem at 90% -10%, rgba(219,39,119,.12), transparent 60%),
    linear-gradient(180deg, #ffffff, var(--bg));
  color: var(--ink);
  padding: 3rem 0 3.2rem;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700;
  color: var(--brand); margin: 0 0 .5rem;
}
.hero h1 { font-size: clamp(2.4rem, 6.5vw, 3.6rem); margin: 0 0 .7rem; line-height: 1.05; letter-spacing: -.02em; font-weight: 800; }
.lead { font-size: 1.15rem; max-width: 52ch; margin: 0 0 1.1rem; color: var(--muted); }
.trust-points {
  list-style: none; display: flex; flex-wrap: wrap; gap: .5rem;
  padding: 0; margin: 0 0 1.8rem;
}
.trust-points li {
  background: #fff; border: 1px solid var(--line); color: var(--muted);
  padding: .32rem .8rem; border-radius: 999px; font-size: .9rem; font-weight: 500;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
}

/* Calculator card */
.calculator-card {
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.5rem clamp(1rem, 4vw, 2rem) 1.7rem;
  box-shadow: 0 24px 48px -16px rgba(79, 70, 229, .18), 0 4px 14px rgba(15, 23, 42, .06);
}
.card-title { margin: .2rem 0 1.1rem; font-size: 1.45rem; letter-spacing: -.01em; }

.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: 12px; padding: .2rem .8rem;
  max-width: 340px; background: #fbfcfe;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.price-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(79,70,229,.12); }
.price-input span { font-weight: 700; color: var(--faint); }
.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: #fbfcfe; font-size: .98rem;
  transition: all .15s ease;
}
.segmented span:hover { border-color: var(--faint); }
.segmented input:checked + span {
  background: var(--grad); border-color: transparent; color: #fff; font-weight: 600;
  box-shadow: 0 6px 16px -6px rgba(124, 58, 237, .5);
}
.segmented input:focus-visible + span { outline: 3px solid rgba(79,70,229,.4); outline-offset: 2px; }

.error {
  background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
  padding: .6rem .9rem; border-radius: 10px;
}

.results {
  display: grid; gap: 1rem;
  background: var(--soft); border: 1px solid #e0e7ff;
  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(--brand-dark); line-height: 1.15; letter-spacing: -.02em; }
.result-sub { color: var(--violet); 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: #fffbeb; border: 1px solid #fde68a; color: #92400e;
  padding: .65rem .95rem; border-radius: 10px; margin: 0 0 1rem;
}

/* Tool cards */
.tool-grid {
  display: grid; gap: 1rem; margin-top: 1.2rem;
}
.tool-card {
  position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.25rem 1.25rem; overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tool-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--grad);
}
.tool-card:hover {
  transform: translateY(-3px);
  border-color: #c7d2fe;
  box-shadow: 0 16px 32px -12px rgba(79, 70, 229, .22);
}
.tool-card h3 { margin: .15rem 0 .45rem; color: var(--ink); letter-spacing: -.01em; }
.tool-card p { margin: .3rem 0 .9rem; color: var(--muted); }
.button-link {
  display: inline-block; background: var(--grad); color: #fff; text-decoration: none;
  font-weight: 600; padding: .55rem 1rem; border-radius: 999px; font-size: .95rem;
  box-shadow: 0 8px 18px -8px rgba(124, 58, 237, .55);
  transition: filter .15s ease, transform .15s ease;
}
.button-link:hover { filter: brightness(1.07); transform: translateY(-1px); text-decoration: none; }

.page-hero { padding-bottom: 2.2rem; }
.page-hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.1rem); }
.breadcrumbs { font-size: .9rem; color: var(--muted); margin-bottom: .8rem; }
.breadcrumbs a { color: var(--brand); }

.form-grid { display: grid; gap: 1rem; }
.text-input, .date-input, .select-input {
  width: 100%; max-width: 340px; border: 2px solid var(--line); border-radius: 12px;
  background: #fbfcfe; 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(79,70,229,.18); border-color: var(--brand); }
.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(--brand); }

.verdict {
  border-radius: var(--radius); padding: 1rem 1.1rem; margin: 1.1rem 0;
  border: 1px solid var(--line); background: #f1f5f9;
}
.verdict.good { background: #ecfdf5; border-color: #a7f3d0; }
.verdict.warn { background: #fffbeb; border-color: #fde68a; }
.verdict.bad { background: #fef2f2; border-color: #fecaca; }
.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;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
}
.tax-panel h3 { margin-top: 0; color: var(--ink); }
.tax-total { font-size: 2rem; font-weight: 800; color: var(--brand-dark); line-height: 1.1; letter-spacing: -.02em; }
.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: #f8fafc; color: var(--ink); font-size: .92rem; }
tbody tr:nth-child(even) { background: #fbfcfe; }
tfoot th, tfoot td { border-top: 2px solid var(--brand); 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.7rem; color: var(--ink); margin-bottom: .6rem; letter-spacing: -.015em; }
.section h3 { color: var(--ink); margin: 1.2rem 0 .4rem; }
.coming-note {
  background: var(--soft); border-left: 4px solid var(--brand);
  padding: .7rem 1rem; border-radius: 0 10px 10px 0;
}

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

/* Footer — deep slate */
.site-footer { background: #0f172a; color: #cbd5e1; margin-top: 3.5rem; padding: 2.2rem 0 2.6rem; }
.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: #a5b4fc; }
.footer-meta { font-size: .85rem; color: #94a3b8; margin-bottom: 0; }
.footer-links { font-size: .9rem; margin: .2rem 0 .8rem; }
.footer-links a { color: #e2e8f0; }

@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; }
}
