/* Overdue Agent — site styles */
:root {
  --brand: #FF7A1A;
  --ink: #000000;
  --text: #1A1A1A;
  --muted: #333333;
  --subtle: #5C5C57;
  --bg: #FBFBFB;
  --card: #FFFFFF;
  --line: #E6E6E6;
  --line-2: #EDEDED;
  --soft: #F0F0F0;
  --ok-bg: #E7F5EE; --ok: #135C3D;
  --warn-bg: #FFF4E5; --warn: #6B3D00;
  --err-bg: #FDECEC; --err: #8A1C1C;
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Inter Tight", Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: #555; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.article { max-width: 760px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; color: var(--ink); margin: 0; }
h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; }
h3 { font-size: 19px; font-weight: 600; line-height: 1.35; font-family: var(--font); letter-spacing: 0; }
p { margin: 0; }
.lead { font-size: 19px; line-height: 1.6; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 1.55; color: var(--subtle); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.site-header.on-brand { background: var(--brand); border-bottom: 1px solid var(--ink); }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--ink); }
.logo span { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; line-height: 1; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.nav-links a:not(.btn) { padding: 12px 12px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.nav-links a:not(.btn):hover { text-decoration: underline; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer; border: 1px solid var(--ink); background: var(--ink); color: #fff; }
.btn:hover { background: #222; color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f3f3f3; color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.linkbtn { background: none; border: 0; padding: 0 4px; min-height: 44px; font: 600 14px var(--font); text-decoration: underline; cursor: pointer; color: var(--ink); }

/* Bands and sections */
.band { background: var(--brand); border-bottom: 1px solid var(--ink); }
.section { padding-top: 88px; padding-bottom: 88px; }
.section-white { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.card-outline { border-color: var(--ink); }
.card-brand { background: var(--brand); border: 1px solid var(--ink); }
.icon { width: 28px; height: 28px; flex: none; }
.step-num { font-family: var(--display); font-size: 32px; font-weight: 500; color: var(--ink); }
a.card { text-decoration: none; color: var(--text); }
a.card:hover { border-color: var(--ink); }
.card .title { font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.card .sub { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
table { width: 100%; border-collapse: collapse; min-width: 420px; }
th, td { padding: 13px 18px; text-align: left; vertical-align: top; font-size: 15px; }
thead th { font-size: 14px; color: var(--subtle); font-weight: 600; }
tbody th, tbody td { border-top: 1px solid var(--line-2); }
tbody th { font-weight: 600; color: var(--ink); }
.col-brand { background: var(--brand); color: var(--ink); }
thead .col-brand { color: var(--ink); }

/* Forms */
.form-card { background: var(--card); border: 1px solid var(--ink); border-radius: 10px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.form-big { padding: 36px; gap: 36px; }
fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
legend { padding: 0; margin-bottom: 16px; font-family: var(--display); font-size: 22px; font-weight: 500; color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .label { font-size: 14px; font-weight: 600; color: var(--ink); }
.hint { font-size: 13px; line-height: 1.5; color: var(--subtle); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; font: 15px var(--font); color: var(--text); background: #fff;
  border: 1px solid #BDBDB7; border-radius: 6px; }
textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: 0; }
input[aria-invalid=true] { border-color: var(--err); }
.row-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.row-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.55; cursor: pointer; min-height: 44px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--ink); }
.radios { display: flex; flex-wrap: wrap; gap: 12px; }
.radio { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border: 1px solid #BDBDB7; border-radius: 6px; font-size: 15px; cursor: pointer; background: #fff; }
.radio input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.contact-box { padding: 20px; border-radius: 8px; background: var(--soft); display: flex; flex-direction: column; gap: 12px; }
.note { margin: 0; padding: 12px 14px; border-radius: 8px; font-size: 14px; line-height: 1.55; background: var(--soft); color: var(--ink); }
.note-ok { background: var(--brand); }
.note-warn { background: var(--warn-bg); color: var(--warn); }
.note-err { background: var(--err-bg); color: var(--err); }
.suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 8px; background: var(--warn-bg); color: var(--warn); font-size: 14px; }
.suggest button { min-height: 40px; padding: 0 14px; font: 600 14px var(--font); color: var(--warn); background: #fff; border: 1px solid #E3C79A; border-radius: 6px; cursor: pointer; }
.hidden { display: none !important; }

/* Dialog */
dialog { border: 0; border-radius: 12px; padding: 0; width: min(460px, calc(100% - 32px)); box-shadow: 0 24px 64px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(20,20,20,.55); }
.dialog-body { padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dialog-head h2 { font-size: 24px; }
.close { width: 44px; height: 44px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.summary-line { display: flex; justify-content: space-between; align-items: center; padding: 16px; background: var(--soft); border-radius: 10px; font-size: 15px; }
.to-box { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.to-box strong { font-size: 15px; word-break: break-all; }

/* Combobox */
.combo { position: relative; }
.combo-list { position: absolute; top: 100%; left: 0; right: 0; margin-top: 4px; z-index: 5; background: #fff; border: 1px solid #000; border-radius: 10px; box-shadow: 0 12px 28px rgba(20,20,20,.12); overflow: hidden; }
.combo-list ul { list-style: none; margin: 0; padding: 4px; }
.combo-list button { width: 100%; min-height: 48px; padding: 8px 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; background: transparent; border: 0; border-radius: 8px; cursor: pointer; text-align: left; font: inherit; }
.combo-list button:hover, .combo-list button:focus { background: var(--soft); }

/* Article (guides) */
.article-body { display: flex; flex-direction: column; gap: 40px; padding-top: 48px; padding-bottom: 80px; }
.article-body section { display: flex; flex-direction: column; gap: 16px; }
.article-body h2 { font-size: 26px; }
.article-body p, .article-body li { font-size: 17px; line-height: 1.75; color: #33332F; }
.article-body ul, .article-body ol { margin: 0; padding-left: 24px; }
.article-body li { margin-bottom: 8px; padding-left: 4px; }
.in-short { padding: 20px 22px; border-radius: 8px; background: #fff; border: 1px solid var(--ink); display: flex; flex-direction: column; gap: 6px; }
.in-short p { font-size: 17px; color: var(--ink); }
.cta-box { padding: 28px; border-radius: 10px; background: var(--brand); border: 1px solid var(--ink); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta-box .t { font-family: var(--display); font-size: 22px; font-weight: 500; color: var(--ink); }
.crumb { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line-2); padding-bottom: 22px; display: flex; flex-direction: column; gap: 6px; }
.faq-item:last-child { border-bottom: 0; }
.list-check { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.list-check li { display: flex; gap: 12px; align-items: flex-start; }
.list-check .t { font-size: 15px; font-weight: 600; color: var(--ink); }
.list-check .d { font-size: 14px; line-height: 1.55; color: var(--muted); }

/* Footer */
.site-footer { background: #000; color: #D6D6D1; margin-top: 0; }
.site-footer a { color: #fff; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 40px; padding-bottom: 20px; font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; }
.footer-legal { padding-bottom: 32px; font-size: 13px; line-height: 1.6; color: #BDBDB7; }
.footer-logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.footer-logo span { font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }

/* Prose pages (legal) */
.prose { padding-top: 56px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 18px; }
.prose h2 { font-size: 24px; margin-top: 16px; }
.prose p, .prose li { font-size: 16px; line-height: 1.7; color: #33332F; }
.draft-flag { padding: 14px 16px; border-radius: 8px; background: var(--warn-bg); color: var(--warn); font-size: 14px; }

@media (max-width: 640px) {
  .hero { padding-top: 56px; padding-bottom: 56px; gap: 40px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .form-big { padding: 22px; }
  .form-card { padding: 22px; }
}
