/* EzClaim — design tokens + base */
:root {
  /* Navy + sand palette (default) */
  --bg: #F5F1E8;
  --bg-2: #EFE9DA;
  --surface: #FFFFFF;
  --surface-2: #FBF8F1;

  --ink-900: #0B1F33;
  --ink-800: #16314B;
  --ink-700: #2A3E55;
  --ink-600: #44566B;
  --ink-500: #6B7A8C;
  --ink-400: #94A2B1;
  --ink-300: #BDC6D0;
  --ink-200: #DCE2E8;

  --line: #E4DED0;
  --line-2: #D3CBB7;
  --line-strong: #B9AF93;

  --brand-900: #0B2440;
  --brand-700: #14375E;
  --brand-600: #1A4B82;
  --brand-500: #2862A7;
  --brand-100: #E3ECF7;
  --brand-50:  #F2F6FC;

  --accent-700: #8B5A2B;
  --accent-500: #C77E3F;
  --accent-100: #F6E8D6;

  --good-700: #0F6B45;
  --good-600: #1A8A5C;
  --good-100: #DCEFE3;

  --warn-700: #8A5A00;
  --warn-100: #FBF1D7;

  --err-700: #9A2A2A;
  --err-600: #B33A3A;
  --err-100: #FBE7E2;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow-card: 0 1px 0 rgba(11,31,51,.04), 0 1px 2px rgba(11,31,51,.06);
  --shadow-pop:  0 2px 4px rgba(11,31,51,.06), 0 12px 32px rgba(11,31,51,.12);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 56px;

  --field-h: 48px;
  --row-pad-y: 14px;

  --font-sans: "Public Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Newsreader", "Source Serif Pro", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Compact density */
.density-compact {
  --field-h: 42px;
  --row-pad-y: 10px;
  --space-6: 18px;
  --space-7: 24px;
  --space-8: 32px;
}

/* Palette: Forest */
.palette-forest {
  --bg: #F4F0E6;
  --bg-2: #ECE6D5;
  --surface: #FFFFFF;
  --surface-2: #FBF8F0;
  --brand-900: #0E2A1F;
  --brand-700: #1F4D38;
  --brand-600: #266B4C;
  --brand-500: #2E8A60;
  --brand-100: #DDEDE3;
  --brand-50:  #EEF6F1;
  --accent-500: #A06B2E;
  --accent-100: #F0E2CE;
  --ink-900: #112019;
  --ink-700: #2A3A33;
}

/* Palette: Slate + signal */
.palette-slate {
  --bg: #F1F2F4;
  --bg-2: #E6E8EC;
  --surface: #FFFFFF;
  --surface-2: #F7F8FA;
  --brand-900: #0B1320;
  --brand-700: #1F2937;
  --brand-600: #2F3D52;
  --brand-500: #3F526D;
  --brand-100: #E2E6EC;
  --brand-50:  #F0F2F6;
  --accent-500: #DD6B20;
  --accent-700: #B14E0E;
  --accent-100: #FBE3CB;
  --line: #DEE2E8;
  --line-2: #C8CFD8;
}

/* ───────── reset / base ───────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink-900);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: var(--brand-100); color: var(--brand-900); }

/* ───────── App shell ───────── */
.app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.shell-bg {
  background:
    radial-gradient(1200px 600px at 80% -10%, var(--brand-50), transparent 60%),
    radial-gradient(800px 400px at -10% 30%, var(--accent-100), transparent 70%),
    var(--bg);
}

/* Header */
.app-hd {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.app-hd-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--brand-900);
}
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--brand-700);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.18);
}
.brand-wordmark { font-size: 17px; font-weight: 700; }
.brand-wordmark em { font-style: normal; color: var(--accent-500); }
.app-hd nav {
  margin-left: auto;
  display: flex;
  gap: 6px;
  align-items: center;
}
.app-hd nav a, .app-hd nav button {
  color: var(--ink-700);
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 8px;
  background: transparent;
  border: 0;
}
.app-hd nav a:hover, .app-hd nav button:hover {
  background: var(--bg-2);
  text-decoration: none;
}

/* Main content */
.main {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}
.main.narrow { max-width: 640px; }
.main.medium { max-width: 800px; }

/* Footer */
.app-ft {
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  padding: 28px 20px 40px;
  color: var(--ink-500);
  font-size: 13px;
}
.app-ft-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; gap: 24px; flex-wrap: wrap;
  align-items: flex-start;
}
.app-ft-inner > div:first-child { flex: 1; min-width: 240px; }
.disclaimer { line-height: 1.55; }
.disclaimer strong { color: var(--ink-700); font-weight: 600; }

/* ───────── typography ───────── */
.h-display {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(28px, 4.4vw, 40px);
  line-height: 1.1;
  color: var(--brand-900);
  text-wrap: balance;
}
.h-page {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--brand-900);
  line-height: 1.2;
  text-wrap: balance;
  margin: 0;
}
.h-section {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink-900);
  margin: 0 0 8px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-600);
}
.muted { color: var(--ink-500); }
.subtle { color: var(--ink-600); font-size: 14px; }
.tabnum { font-variant-numeric: tabular-nums; }

/* ───────── form controls ───────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-700);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.field-label .hint { color: var(--ink-400); font-weight: 400; font-size: 12px; }
.field-help { font-size: 12px; color: var(--ink-500); line-height: 1.5; }
.field-err { font-size: 13px; color: var(--err-700); display: flex; gap: 6px; align-items: center; }

.input {
  height: var(--field-h);
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  font-size: 16px;
  color: var(--ink-900);
  outline: none;
  transition: border-color .12s, box-shadow .12s, background .12s;
  width: 100%;
}
.input:hover { border-color: var(--ink-400); }
.input:focus {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-500) 22%, transparent);
}
.input.input-lg {
  height: 56px;
  font-size: 17px;
  padding: 0 18px;
}
.input-affix {
  position: relative;
  display: flex;
  align-items: center;
}
.input-affix .input { padding-left: 44px; }
.input-affix .affix {
  position: absolute;
  left: 14px;
  color: var(--ink-400);
  pointer-events: none;
  display: inline-flex;
}
.input-affix.lg .input { padding-left: 52px; }
.input-affix.lg .affix { left: 18px; }

textarea.input { padding: 12px 14px; height: auto; min-height: 88px; line-height: 1.5; }

/* Buttons */
.btn {
  appearance: none;
  border: 1px solid transparent;
  background: var(--ink-900);
  color: #fff;
  height: var(--field-h);
  padding: 0 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .04s, background .12s, border-color .12s, box-shadow .12s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn-primary { background: var(--brand-700); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.1) inset, 0 1px 2px rgba(11,31,51,.18); }
.btn-primary:hover { background: var(--brand-600); }

.btn-secondary {
  background: var(--surface);
  color: var(--ink-900);
  border-color: var(--line-2);
}
.btn-secondary:hover { border-color: var(--ink-400); background: var(--surface-2); }

.btn-ghost {
  background: transparent;
  color: var(--ink-700);
}
.btn-ghost:hover { background: var(--bg-2); }

.btn-link {
  background: transparent;
  color: var(--brand-600);
  height: auto;
  padding: 0;
  font-weight: 500;
}
.btn-link:hover { text-decoration: underline; }

.btn-lg { height: 56px; font-size: 16px; padding: 0 22px; border-radius: 12px; }
.btn-sm { height: 36px; font-size: 14px; padding: 0 12px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-icon-l { margin-left: -2px; }
.btn-icon-r { margin-left: 2px; }

/* Pill toggle / radio chips */
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink-800);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  transition: all .12s;
}
.chip:hover { border-color: var(--ink-400); }
.chip[aria-pressed="true"], .chip.on {
  background: var(--brand-700);
  color: #fff;
  border-color: var(--brand-700);
}

/* Big radio options */
.radio-card {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .12s, background .12s;
  align-items: flex-start;
}
.radio-card:hover { border-color: var(--ink-400); }
.radio-card.selected {
  border-color: var(--brand-600);
  background: var(--brand-50);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-500) 14%, transparent);
}
.radio-card .dot {
  margin-top: 3px;
  width: 18px; height: 18px;
  border: 1.5px solid var(--ink-300);
  border-radius: 50%;
  flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--surface);
}
.radio-card.selected .dot {
  border-color: var(--brand-600);
}
.radio-card.selected .dot::after {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--brand-600);
}
.radio-card .rc-body { flex: 1; }
.radio-card .rc-title {
  font-weight: 600;
  color: var(--ink-900);
  font-size: 15px;
}
.radio-card .rc-sub {
  color: var(--ink-600);
  font-size: 13.5px;
  margin-top: 2px;
  line-height: 1.45;
}

/* Checkbox */
.cb {
  width: 20px; height: 20px;
  border: 1.5px solid var(--ink-300);
  border-radius: 5px;
  background: var(--surface);
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  cursor: pointer;
}
.cb.on { background: var(--brand-700); border-color: var(--brand-700); }
.cb.on::after {
  content: "";
  width: 11px; height: 6px;
  border: 1.8px solid #fff;
  border-top: 0; border-right: 0;
  transform: rotate(-45deg) translate(1px,-1px);
}

/* ───────── Cards ───────── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}
.card.lg { padding: 28px; border-radius: var(--radius-xl); }
.card.flat { box-shadow: none; }
.card-divider { border-top: 1px solid var(--line); margin: 16px -20px; }
.card.lg .card-divider { margin: 20px -28px; }

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

/* Property summary card */
.property-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.property-card .pc-hd {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 14px;
  align-items: center;
}
.property-card .pc-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand-700);
  display: grid; place-items: center;
  flex-shrink: 0;
  border: 1px solid var(--brand-100);
}
.property-card .pc-addr {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-900);
  line-height: 1.25;
}
.property-card .pc-sub {
  color: var(--ink-500);
  font-size: 13px;
  margin-top: 2px;
}
.property-card .pc-body {
  padding: 14px 18px;
  display: grid;
  gap: 8px;
  font-size: 14px;
}
.kv { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.kv .k { color: var(--ink-500); flex-shrink: 0; white-space: nowrap; }
.kv .v { color: var(--ink-900); font-weight: 500; text-align: right; min-width: 0; }

/* Tag / Badge */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--ink-700);
  border: 1px solid var(--line);
  line-height: 1.5;
  white-space: nowrap;
  flex-shrink: 0;
}
.tag-good { background: var(--good-100); color: var(--good-700); border-color: color-mix(in srgb, var(--good-700) 18%, transparent); }
.tag-warn { background: var(--warn-100); color: var(--warn-700); border-color: color-mix(in srgb, var(--warn-700) 22%, transparent); }
.tag-err  { background: var(--err-100); color: var(--err-700); border-color: color-mix(in srgb, var(--err-700) 22%, transparent); }
.tag-info { background: var(--brand-100); color: var(--brand-700); border-color: color-mix(in srgb, var(--brand-600) 18%, transparent); }
.tag .dot { width:6px; height:6px; border-radius:50%; background: currentColor; opacity: .8; }

/* Savings hero */
.savings {
  background: linear-gradient(180deg, var(--brand-700), var(--brand-900));
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 22px 22px 20px;
  position: relative;
  overflow: hidden;
}
.savings::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(199,126,63,.35), transparent 60%);
  pointer-events: none;
}
.savings .s-label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.savings .s-amount {
  font-size: clamp(40px, 8vw, 56px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 6px 0 4px;
  font-variant-numeric: tabular-nums;
}
.savings .s-amount .per { font-size: 18px; font-weight: 500; color: rgba(255,255,255,.75); letter-spacing: -0.01em; margin-left: 4px; }
.savings .s-sub { color: rgba(255,255,255,.78); font-size: 14px; line-height: 1.5; }
.savings .s-fine { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.16); font-size: 12px; color: rgba(255,255,255,.7); line-height: 1.5; }

/* Notice / Callout */
.callout {
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-700);
  line-height: 1.5;
}
.callout .ci { color: var(--brand-600); flex-shrink: 0; margin-top: 1px; }
.callout.info { background: var(--brand-50); border-color: color-mix(in srgb, var(--brand-600) 16%, transparent); }
.callout.warn { background: var(--warn-100); border-color: color-mix(in srgb, var(--warn-700) 22%, transparent); }
.callout.warn .ci { color: var(--warn-700); }
.callout.err { background: var(--err-100); border-color: color-mix(in srgb, var(--err-700) 22%, transparent); color: var(--err-700); }
.callout.err .ci { color: var(--err-700); }
.callout.good { background: var(--good-100); border-color: color-mix(in srgb, var(--good-700) 18%, transparent); }
.callout.good .ci { color: var(--good-700); }

/* Stepper */
.stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-500);
}
.stepper .s {
  display: flex; align-items: center; gap: 8px;
}
.stepper .s .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink-200);
}
.stepper .s.done .dot { background: var(--good-600); }
.stepper .s.cur  .dot { background: var(--brand-600); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-500) 25%, transparent); }
.stepper .s.cur  { color: var(--ink-900); font-weight: 500; }
.stepper .s.done { color: var(--ink-700); }
.stepper .sep { width: 14px; height: 1px; background: var(--ink-200); }

/* Wizard progress bar (mobile-friendly) */
.wiz-bar {
  display: flex;
  gap: 4px;
  margin: 4px 0 20px;
}
.wiz-bar > i {
  display: block;
  height: 4px;
  flex: 1;
  background: var(--ink-200);
  border-radius: 2px;
  transition: background .2s;
}
.wiz-bar > i.done { background: var(--brand-600); }
.wiz-bar > i.cur  { background: var(--brand-600); }
.wiz-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--ink-500); margin-bottom: 8px; }
.wiz-meta .step { color: var(--brand-600); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; flex-shrink: 0; }

/* Bottom CTA bar (sticky on mobile) */
.cta-bar {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.cta-bar .btn { flex: 1; }
@media (max-width: 640px) {
  .cta-bar.sticky {
    position: sticky;
    bottom: 0;
    background: linear-gradient(180deg, transparent, var(--bg) 40%);
    padding: 14px 0 calc(env(safe-area-inset-bottom) + 14px);
    margin: 24px -20px -80px;
    padding-inline: 20px;
  }
}

/* Choice grid (Free vs Assisted) */
.choice-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .choice-grid { grid-template-columns: 1fr 1fr; }
}
.choice {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .14s, transform .14s, box-shadow .14s;
  text-align: left;
  position: relative;
}
.choice:hover { border-color: var(--ink-400); }
.choice.recommended {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-500) 12%, transparent);
}
.choice .rec-tag {
  position: absolute;
  top: -10px; left: 22px;
  background: var(--brand-700); color: #fff;
  font-size: 11px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.choice-title {
  font-size: 18px; font-weight: 700; color: var(--brand-900);
  letter-spacing: -0.01em;
}
.choice-price {
  font-size: 14px;
  color: var(--ink-700);
  font-weight: 500;
}
.choice-price strong { font-size: 22px; font-weight: 700; color: var(--ink-900); letter-spacing: -0.01em; }
.choice ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 14px; color: var(--ink-700); line-height: 1.45;
}
.choice ul li {
  display: flex; gap: 10px; align-items: flex-start;
}
.choice ul li .ck {
  color: var(--good-600);
  margin-top: 1px;
  flex-shrink: 0;
}
.choice ul li .x {
  color: var(--ink-400);
  margin-top: 1px;
  flex-shrink: 0;
}

/* Status timeline */
.tl {
  display: flex; flex-direction: column;
  position: relative;
}
.tl-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
  align-items: flex-start;
  position: relative;
}
.tl-row:last-child { border-bottom: 0; }
.tl-mark {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--ink-400);
  display: grid; place-items: center;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  position: relative;
  z-index: 1;
}
.tl-row.done .tl-mark { background: var(--good-600); color: #fff; box-shadow: 0 0 0 1px var(--good-700); }
.tl-row.cur  .tl-mark { background: var(--brand-600); color: #fff; box-shadow: 0 0 0 1px var(--brand-700); }
.tl-row.err  .tl-mark { background: var(--err-600); color: #fff; box-shadow: 0 0 0 1px var(--err-700); }
.tl-row::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 42px;
  width: 2px;
  background: var(--line);
  height: calc(100% - 28px);
  z-index: 0;
}
.tl-row:last-child::before { display: none; }
.tl-title { font-weight: 600; color: var(--ink-900); font-size: 14.5px; }
.tl-meta { color: var(--ink-500); font-size: 13px; margin-top: 2px; line-height: 1.45; }
.tl-time { color: var(--ink-500); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Receipt list */
.rcpt {
  background: var(--surface-2);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
}
.rcpt .row { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.rcpt .row .k { color: var(--ink-500); white-space: nowrap; flex-shrink: 0; }
.rcpt .row .v { color: var(--ink-900); font-weight: 500; font-variant-numeric: tabular-nums; min-width: 0; text-align: right; overflow-wrap: anywhere; }

/* Spinner */
.spin {
  width: 16px; height: 16px;
  border: 2px solid currentColor;
  border-bottom-color: transparent;
  border-radius: 50%;
  animation: spin .8s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
  background: linear-gradient(90deg, var(--bg-2) 0%, var(--ink-200) 50%, var(--bg-2) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: 6px;
}
@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Pulse */
.pulse-dot {
  width: 8px; height: 8px;
  background: var(--good-600);
  border-radius: 50%;
  position: relative;
  display: inline-block;
}
.pulse-dot::after {
  content: ""; position: absolute; inset: -2px;
  border-radius: 50%; background: currentColor;
  opacity: .3; animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: .4; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Match list */
.match {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 14px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.match:hover { border-color: var(--ink-400); background: var(--surface-2); }
.match .dot {
  width: 18px; height: 18px;
  border: 1.5px solid var(--ink-300);
  border-radius: 50%;
}
.match .addr { font-weight: 500; font-size: 14.5px; color: var(--ink-900); }
.match .sub { color: var(--ink-500); font-size: 12.5px; margin-top: 2px; }
.match .arrow { color: var(--ink-400); }

/* Page transitions */
.fade-in {
  animation: fadeIn .26s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Mobile preview frame on desktop */
.demo-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-500);
}
.demo-toolbar select, .demo-toolbar a {
  font-size: 13px;
}
.demo-toolbar select {
  height: 32px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  border-radius: 6px;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%236B7A8C' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

/* Lookup hero */
.hero {
  padding: clamp(20px, 5vw, 56px) 0 clamp(20px, 4vw, 40px);
}
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.hero .eyebrow .pulse-dot { color: var(--good-600); }
.hero h1 { max-width: 18ch; margin: 0 0 14px; }
.hero p.lead { color: var(--ink-700); font-size: clamp(15px, 1.6vw, 17px); max-width: 56ch; line-height: 1.55; margin: 0 0 24px; }

.lookup-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-card), 0 24px 60px -30px rgba(11,31,51,.18);
}
.lookup-form {
  display: flex;
  gap: 10px;
}
.lookup-form .input-affix { flex: 1; }
.lookup-input-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}
.address-suggestions {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 280px;
  overflow: auto;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
}
.address-suggestions button {
  appearance: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 10px 12px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--ink-900);
  text-align: left;
  cursor: pointer;
}
.address-suggestions button:hover,
.address-suggestions button.active {
  background: var(--brand-50);
}
.suggestion-address {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
}
.suggestion-meta {
  font-size: 12px;
  color: var(--ink-500);
}
.lookup-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--ink-500);
  font-size: 12.5px;
}
@media (max-width: 580px) {
  .lookup-form { flex-direction: column; }
  .lookup-form .btn { width: 100%; }
}
.lookup-quick {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-500);
}
.lookup-quick button {
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--ink-700);
  font-size: 12.5px;
  padding: 5px 10px;
  border-radius: 999px;
}
.lookup-quick button:hover { border-color: var(--ink-400); }

/* Trust strip */
.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.trust-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.trust-item .ti-ico { color: var(--brand-700); flex-shrink: 0; margin-top: 1px; }
.trust-item .ti-t { font-weight: 600; color: var(--ink-900); font-size: 14px; line-height: 1.3; }
.trust-item .ti-d { color: var(--ink-600); font-size: 13px; margin-top: 2px; line-height: 1.45; }

/* Maryland accent */
.md-flag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--ink-500);
}
.md-flag svg { width: 18px; height: 12px; border-radius: 2px; overflow: hidden; }

/* Receipt confirmation pre */
pre.codeblock {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ink-700);
  margin: 0;
}

/* Utility */
.row { display: flex; gap: 12px; align-items: center; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; }
.gap-4 { gap: 16px; } .gap-5 { gap: 20px; } .gap-6 { gap: 24px; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; } .mt-5 { margin-top: 20px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 40px; }
.mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; } .mb-5 { margin-bottom: 20px; } .mb-6 { margin-bottom: 24px; }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* Stripe-mode lockbox shimmer */
.lockbox {
  background: linear-gradient(135deg, #18345B, #0B1F33);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex; gap: 14px; align-items: center;
}
.lockbox .ico {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.08);
  border-radius: 12px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.lockbox .t { font-weight: 600; font-size: 15px; }
.lockbox .s { color: rgba(255,255,255,.7); font-size: 13px; margin-top: 2px; line-height: 1.45; }

/* Loading bar */
.lbar {
  height: 4px;
  background: var(--ink-200);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.lbar i {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  background: var(--brand-600);
  width: 30%;
  border-radius: inherit;
  animation: lbar 1.4s ease-in-out infinite;
}
@keyframes lbar {
  0% { left: -30%; width: 30%; }
  50% { left: 30%; width: 50%; }
  100% { left: 100%; width: 30%; }
}

/* Map placeholder */
.map-ph {
  height: 140px;
  background:
    repeating-linear-gradient(45deg, rgba(11,31,51,.04) 0 6px, transparent 6px 18px),
    linear-gradient(135deg, var(--brand-50), var(--accent-100));
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--ink-500); font-size: 12px;
  position: relative;
  overflow: hidden;
}
.map-ph .pin {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -100%);
  color: var(--accent-700);
}

/* Toggle switch */
.switch {
  width: 36px; height: 22px;
  background: var(--ink-200);
  border-radius: 999px;
  position: relative;
  display: inline-block;
  transition: background .14s;
  flex-shrink: 0;
  cursor: pointer;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
  transition: left .14s;
}
.switch.on { background: var(--brand-600); }
.switch.on::after { left: 16px; }

/* Hide tweaks dot during print */
@media print {
  .twk-panel, .twk-edge { display: none !important; }
}
