/* DillisData page layout. Components live in components.css, tokens in tokens.css.
   Layout concept: a technical document. Numbered chapters, a narrow label column
   beside a wide content column, ruled cells, graphite bands with an engineering grid. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 26px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; }
::selection { background: var(--signal-bright); color: var(--on-signal); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; padding: 10px 16px; background: var(--ink); color: var(--paper); }
.skip:focus { left: 16px; }

.wrap { max-width: var(--content-max); margin: 0 auto; padding-inline: var(--space-8); }
@media (max-width: 640px) { .wrap { padding-inline: var(--space-4); } }

.section { padding-block: var(--space-24); }
.section--alt { background: var(--paper-alt); }
.section--dark { color: var(--on-graphite); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .section--dark, :root:not([data-theme="light"]) .foot { border-block: 1px solid var(--rule); } }
:root[data-theme="dark"] .section--dark, :root[data-theme="dark"] .foot { border-block: 1px solid var(--rule); }
@media (max-width: 640px) { .section { padding-block: var(--space-16); } }

/* Display type */
.h1 { font-family: var(--font-display); font-stretch: 112%; font-weight: 500; font-size: clamp(42px, 6.2vw, 80px); line-height: 1; letter-spacing: -0.035em; }
.h2 { font-family: var(--font-display); font-stretch: 112%; font-weight: 500; font-size: clamp(32px, 4.2vw, 54px); line-height: 1.06; letter-spacing: -0.03em; }
.h3 { font-family: var(--font-display); font-stretch: 108%; font-weight: 500; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -0.02em; }
.lit { color: var(--ink-muted); }
.section--dark .lit { color: var(--on-graphite-muted); }
.lead { font-size: 19px; line-height: 30px; color: var(--ink-muted); max-width: var(--measure); }
.section--dark .lead { color: var(--on-graphite-muted); }
@media (max-width: 640px) { .lead { font-size: 17px; line-height: 27px; } }
.micro { font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.section--dark .micro { color: var(--on-graphite-muted); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

/* Section head: label column + headline column */
.head { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--space-8); margin-bottom: var(--space-16); padding-top: var(--space-6); border-top: 1px solid var(--ink); }
.section--dark .head { border-top-color: var(--on-graphite-muted); }
.head__body { display: grid; gap: var(--space-6); max-width: 860px; }
.head .dd-eyebrow { padding-top: 6px; align-self: start; }
@media (max-width: 860px) { .head { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); margin-bottom: var(--space-12); } }

/* Hero */
.hero { padding-block: var(--space-24) 0; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-16); align-items: center; padding-bottom: var(--space-24); }
.hero__copy { display: grid; gap: var(--space-8); }
.hero__copy .lead { font-size: 20px; line-height: 32px; }
.hero__assure { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 0; margin: 0; list-style: none; font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-graphite-muted); }
.hero__assure li { display: inline-flex; align-items: center; gap: 10px; }
.hero__assure li::before { content: ""; width: 6px; height: 6px; background: var(--signal-bright); }
@media (max-width: 1000px) { .hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-12); } }
@media (max-width: 640px) { .hero { padding-top: var(--space-16); } .hero__grid { padding-bottom: var(--space-16); } .hero__copy .lead { font-size: 18px; line-height: 28px; } }

/* Hero readout: archive panel */
.archive { margin: 0; padding: var(--space-6); background: var(--graphite-raised); border: 1px solid var(--grid-line); }
.archive__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: var(--space-4); border-bottom: 1px solid var(--grid-line); }
.archive__title, .archive__tag { font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-graphite-muted); }
.archive__title { color: var(--on-graphite); }
.archive__rows { display: grid; gap: 5px; padding-block: var(--space-4); }
.archive__row { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: center; font-family: var(--font-mono); font-size: 10px; line-height: 12px; color: var(--on-graphite-muted); }
.archive__bar { display: block; height: 7px; background: var(--on-graphite-muted); opacity: .55; }
.archive__row:nth-child(even) .archive__bar { opacity: .4; }
.archive__row--now { color: var(--on-graphite); }
.archive__row--now .archive__bar { background: var(--signal-bright); opacity: 1; }
.archive__types { display: flex; flex-wrap: wrap; gap: 6px; padding-top: var(--space-4); border-top: 1px solid var(--grid-line); }
.archive__types span { padding: 4px 8px; border: 1px solid var(--grid-line); font-family: var(--font-mono); font-size: 10px; line-height: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-graphite); }
.archive__foot { margin-top: var(--space-4); font-family: var(--font-display); font-stretch: 108%; font-size: 20px; line-height: 26px; font-weight: 500; letter-spacing: -.01em; color: var(--on-graphite); }
.w-18 { width: 18%; } .w-22 { width: 22%; } .w-26 { width: 26%; } .w-30 { width: 30%; } .w-34 { width: 34%; } .w-38 { width: 38%; } .w-43 { width: 43%; } .w-47 { width: 47%; } .w-52 { width: 52%; } .w-56 { width: 56%; } .w-61 { width: 61%; } .w-66 { width: 66%; } .w-71 { width: 71%; } .w-77 { width: 77%; } .w-83 { width: 83%; } .w-90 { width: 90%; } .w-100 { width: 100%; }

/* Hero readout: market stats strip */
.readout { border-top: 1px solid var(--on-graphite-muted); padding-block: var(--space-6) var(--space-16); }
.readout__label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-bottom: var(--space-8); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-8); }
@media (max-width: 1000px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .stats { grid-template-columns: minmax(0, 1fr); } }
.stats .dd-stat__figure { font-size: clamp(40px, 4vw, 56px); line-height: 1; }

/* 01 Why now */
.why__cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr); gap: var(--space-8); }
.why__cols > :first-child { grid-column: 2; }
@media (max-width: 860px) { .why__cols { grid-template-columns: minmax(0, 1fr); } .why__cols > :first-child { grid-column: auto; } }
.prose { display: grid; gap: var(--space-4); color: var(--ink-muted); font-size: 17px; line-height: 28px; align-content: start; }
.prose strong { color: var(--ink); font-weight: 600; }
.quote { display: grid; gap: var(--space-6); align-content: start; margin: 0; padding: var(--space-8); background: var(--paper-alt); }
.quote p { font-family: var(--font-display); font-stretch: 108%; font-weight: 500; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.18; letter-spacing: -.02em; }
.quote cite { font-style: normal; }

/* 02 Ledger */
.ledger { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.ledger .dd-fact:first-child { border-top: 0; }
.ledger__end { margin-top: var(--space-12); display: flex; flex-wrap: wrap; gap: var(--space-6); align-items: center; justify-content: space-between; }
.ledger__end .h3 { max-width: 640px; }

/* 03 What qualifies */
.types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--rule); }
.type { display: grid; gap: var(--space-3); align-content: start; padding: var(--space-6); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); min-width: 0; min-height: 168px; }
.type__tag { font-family: var(--font-mono); font-size: 10px; line-height: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.type h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 25px; letter-spacing: -.01em; }
.type p { color: var(--ink-muted); font-size: 15px; line-height: 23px; }
@media (max-width: 1000px) { .types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .types { grid-template-columns: minmax(0, 1fr); } .type { min-height: 0; } }
.fit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--space-12); border-top: 1px solid var(--ink); }
.fit__item { display: grid; gap: var(--space-2); align-content: start; padding: var(--space-6) var(--space-6) 0 0; }
.fit__item + .fit__item { padding-left: var(--space-6); border-left: 1px solid var(--rule); }
.fit__item b { font-family: var(--font-display); font-stretch: 108%; font-weight: 500; font-size: 40px; line-height: 44px; letter-spacing: -.03em; }
.fit__item span { color: var(--ink-muted); font-size: 15px; line-height: 24px; }
@media (max-width: 860px) { .fit { grid-template-columns: minmax(0, 1fr); } .fit__item + .fit__item { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); } .fit__item { padding-bottom: var(--space-6); } }
.industries, .aside-note { margin-top: var(--space-12); display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--space-8); align-items: baseline; padding-top: var(--space-6); border-top: 1px solid var(--rule); }
@media (max-width: 860px) { .industries, .aside-note { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); } }
.industries ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.industries li { padding: 6px 12px; border: 1px solid var(--rule-strong); font-size: 14px; line-height: 20px; }
.aside-note { margin-top: var(--space-8); color: var(--ink-muted); font-size: 15px; line-height: 24px; }
.aside-note strong { color: var(--ink); font-weight: 600; }

/* 04 Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.steps .dd-step:first-child { border-left: 0; padding-left: 0; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps .dd-step:nth-child(3) { border-left: 0; padding-left: 0; } .steps .dd-step:nth-child(n+3) { border-top: 1px solid var(--rule); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } .steps .dd-step { border-left: 0; padding-left: 0; } .steps .dd-step + .dd-step { border-top: 1px solid var(--rule); } }
.steps__cta { margin-top: var(--space-12); }

/* 05 Estimator */
.est { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-16); align-items: start; }
@media (max-width: 1000px) { .est { grid-template-columns: minmax(0, 1fr); gap: var(--space-12); } }
.est__form { display: grid; gap: var(--space-8); }
.est__q { display: grid; gap: var(--space-3); border: 0; margin: 0; padding: var(--space-6) 0 0; border-top: 1px solid var(--grid-line); min-width: 0; }
.est__q legend { float: left; width: 100%; padding: 0; margin-bottom: var(--space-4); font-size: 16px; line-height: 24px; font-weight: 500; color: var(--on-graphite); }
.est__q legend b { display: block; margin-bottom: 4px; font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: .12em; color: var(--signal-bright); }
.est__q legend small { display: block; font-weight: 400; font-size: 13px; color: var(--on-graphite-muted); }
.est__method { padding-top: var(--space-6); border-top: 1px solid var(--grid-line); font-size: 13px; line-height: 21px; color: var(--on-graphite-muted); }
.est__side { position: sticky; top: 88px; }
@media (max-width: 1000px) { .est__side { position: static; } }
.dd-estimate__range.is-low { font-size: 24px; line-height: 30px; letter-spacing: -.01em; }
.est__example { font-family: var(--font-mono); font-size: 10px; line-height: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--signal); }
.dd-estimate__bar i { transition: left .25s ease, right .25s ease; }
.dd-estimate .micro { color: var(--ink-muted); }
.dd-estimate .dd-btn:focus-visible, .dd-estimate .dd-link:focus-visible { outline-color: var(--ink); }

/* Lead form (inside the estimate sheet) */
.lead-form { display: grid; gap: var(--space-4); margin-top: var(--space-2); padding-top: var(--space-6); border-top: 1px solid var(--ink); }
.lead-form__title { font-family: var(--font-display); font-stretch: 108%; font-size: 22px; line-height: 28px; font-weight: 500; letter-spacing: -.015em; }
.lead-form__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-4); }
.lead-form__grid .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .lead-form__grid { grid-template-columns: minmax(0, 1fr); } }
.lead-form details { border-top: 1px solid var(--rule); padding-top: var(--space-3); }
.lead-form summary { cursor: pointer; font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.lead-form details[open] summary { margin-bottom: var(--space-4); }
.consent { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--graphite); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 14px; line-height: 22px; color: var(--danger); }
.form-status:empty { display: none; }
.done { display: grid; gap: var(--space-3); padding-top: var(--space-6); border-top: 1px solid var(--ink); }
.done h3 { font-family: var(--font-display); font-stretch: 108%; font-weight: 500; font-size: 24px; line-height: 30px; letter-spacing: -.015em; }
.done p { color: var(--ink-muted); }

/* 06 Privacy */
.privacy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-16); align-items: start; }
@media (max-width: 860px) { .privacy { grid-template-columns: minmax(0, 1fr); gap: var(--space-12); } }
.privacy .dd-assure { font-size: 16px; line-height: 25px; }
.privacy__title { margin-bottom: var(--space-4); }
.flow { display: grid; margin: 0; border-top: 1px solid var(--ink); }
.flow div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid var(--rule); font-size: 15px; line-height: 23px; }
.flow dt { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11px; line-height: 23px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.flow dt::before { content: ""; width: 6px; height: 6px; border: 1px solid var(--ink); flex: none; }
.flow div:nth-child(3) dt::before { background: var(--signal); border-color: var(--signal); }
.flow dd { margin: 0; color: var(--ink-muted); }
@media (max-width: 520px) { .flow div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* 07 Comparison */
.compare-wrap { overflow-x: auto; }
.compare { width: 100%; min-width: 680px; border-collapse: collapse; border-top: 1px solid var(--ink); }
.compare th, .compare td { padding: var(--space-4) var(--space-6) var(--space-4) 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); font-size: 16px; line-height: 25px; }
.compare thead th { font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--ink-muted); }
.compare tbody th { font-weight: 600; width: 28%; }
.compare td { color: var(--ink-muted); }
.compare td:last-child, .compare thead th:last-child { color: var(--ink); background: var(--paper); padding-left: var(--space-6); }
.compare thead th:last-child::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; background: var(--signal); vertical-align: 1px; }
.compare tr.total td:last-child { font-family: var(--font-display); font-stretch: 108%; font-size: 28px; line-height: 32px; font-weight: 500; letter-spacing: -.02em; }

/* 08 Fee */
.fee { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-12); align-items: end; }
.fee__zero { font-family: var(--font-display); font-stretch: 125%; font-weight: 500; font-size: clamp(120px, 17vw, 230px); line-height: .82; letter-spacing: -.05em; }
.fee__zero small { display: block; margin-top: var(--space-6); font-family: var(--font-mono); font-stretch: 100%; font-size: 11px; line-height: 16px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.fee__copy { display: grid; gap: var(--space-6); padding-bottom: var(--space-6); }
@media (max-width: 860px) { .fee { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); } }

/* 09 FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--space-8); }
@media (max-width: 860px) { .faq { grid-template-columns: minmax(0, 1fr); } }

/* Final call to action */
.final { text-align: center; padding-block: var(--space-32); }
.final__inner { display: grid; gap: var(--space-8); justify-items: center; max-width: 920px; margin-inline: auto; }
.final .lead { margin-inline: auto; }
.final .actions { justify-content: center; }
@media (max-width: 640px) { .final { padding-block: var(--space-24); } }

/* Footer */
.foot { background: var(--graphite); color: var(--on-graphite); padding-block: var(--space-16) var(--space-12); border-top: 1px solid var(--grid-line); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: var(--space-8); }
@media (max-width: 860px) { .foot__grid { grid-template-columns: minmax(0, 1fr); } }
.foot h4 { margin: 0 0 var(--space-4); font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--on-graphite-muted); }
.foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--signal-bright); }
.foot a:focus-visible { outline: 2px solid var(--on-graphite); outline-offset: 3px; }
.foot .dd-wordmark { --wm-size: 20px; justify-self: start; }
.foot__about { display: grid; gap: var(--space-6); align-content: start; color: var(--on-graphite-muted); font-size: 15px; line-height: 24px; max-width: 420px; }
.foot__legal { margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid var(--grid-line); display: grid; gap: var(--space-3); font-size: 12px; line-height: 19px; color: var(--on-graphite-muted); }

/* Legal pages */
.legal { max-width: 780px; padding-block: var(--space-16) var(--space-24); }
.legal h1, .notfound h1 { font-family: var(--font-display); font-stretch: 112%; font-weight: 500; font-size: clamp(38px, 5vw, 56px); line-height: 1.05; letter-spacing: -.03em; margin-bottom: var(--space-4); }
.legal .updated { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); padding-bottom: var(--space-8); margin-bottom: var(--space-8); border-bottom: 1px solid var(--ink); }
.legal h2 { font-family: var(--font-display); font-stretch: 108%; font-weight: 600; font-size: 22px; line-height: 28px; letter-spacing: -.015em; margin: var(--space-12) 0 var(--space-4); }
.legal h3 { font-size: 16px; font-weight: 600; margin: var(--space-6) 0 var(--space-2); }
.legal p, .legal li { color: var(--ink-muted); font-size: 16px; line-height: 27px; }
.legal p + p { margin-top: var(--space-3); }
.legal ul { padding-left: 20px; display: grid; gap: 6px; margin: var(--space-3) 0; }
.legal strong { color: var(--ink); font-weight: 600; }

/* 404 */
.notfound { padding-block: var(--space-32); display: grid; gap: var(--space-6); max-width: 680px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .dd-estimate__bar i { transition: none; } }

/* Header on phones: keep the button on one line */
.dd-header .dd-btn { white-space: nowrap; }
@media (max-width: 480px) { .dd-header .dd-btn svg { display: none; } .dd-header .dd-wordmark { --wm-size: 14px; } }
