/* Lanewise Auto — site styles. Tokens first, then layout, components, pages, responsive. */
:root {
  --bg: #fbf9f4;
  --surface: #ffffff;
  --ink: #15201f;
  --muted: #5b6765;
  --line: #e6e1d8;
  --line-strong: #cfc8bb;
  --brand: #0e5e5b;
  --brand-dark: #0a4846;
  --brand-soft: #e3f0ee;
  --accent: #d9822b;
  --accent-soft: #fdf1e4;
  --ok: #2e7d32;
  --danger: #b3261e;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(21, 32, 31, .05), 0 10px 30px rgba(21, 32, 31, .07);
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.section { padding: 56px 20px; }
.section-head { max-width: 720px; margin-bottom: 28px; }
.section-head h2 { margin-bottom: .3em; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 64ch; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.text-link { font-weight: 600; }
.text-link::after { content: " →"; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, color .15s, transform .05s;
  font-family: var(--font-body); line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: var(--bg); color: var(--brand-dark); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 14px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 249, 244, .92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; }
.logo svg { flex: none; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav a:hover { color: var(--brand); }
.nav .nav-cta { color: #fff; padding: 10px 18px; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line-strong); border-radius: 10px; width: 44px; height: 40px; position: relative; cursor: pointer; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 11px; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, top .2s; }
.nav-toggle-bar { top: 18px; }
.nav-toggle-bar::before { top: -6px; left: 0; }
.nav-toggle-bar::after { top: 6px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { top: 0; transform: rotate(-45deg); }

/* Hero */
.hero { padding: 64px 0 48px; }
.hero-home { background: radial-gradient(1200px 500px at 85% -10%, var(--brand-soft), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: .4em; }
.hero .lede { font-size: 1.2rem; }
.trust { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .92rem; }
.trust li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 6px; }
.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 26px 20px; }
.hero-card h2 { font-size: 1.15rem; margin-bottom: 10px; }
.hero-card ul { margin: 0 0 14px; padding-left: 0; list-style: none; }
.hero-card li { padding: 9px 0; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: flex-start; }
.hero-card li:first-child { border-top: 0; }
.hero-card li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--accent); }
.hero-card .fine { font-size: .85rem; color: var(--muted); margin: 0; }
.hero-page { padding: 56px 0 28px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.hero-page h1 { max-width: 20ch; }
.hero-legal h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }

/* Cards & grids */
.grid { display: grid; gap: 20px; }
.cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px; transition: transform .15s, box-shadow .15s, border-color .15s; }
a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); color: var(--ink); }
.card h3 { margin: 0; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card .eyebrow { margin: 0; font-size: .72rem; }
.card-meta { margin-top: auto; padding-top: 8px; font-size: .82rem; color: var(--muted); }
.card-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.feature .card { gap: 10px; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px 22px; }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-family: var(--font-head); font-size: 2rem; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.step h3 { margin-bottom: .35em; }
.step p { margin: 0; color: var(--muted); }

/* Contrast strip */
.contrast { background: var(--ink); color: #e9efee; }
.contrast .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.contrast h2 { color: #fff; }
.contrast p { color: #c8d3d1; }
.contrast ul { list-style: none; padding: 0; margin: 0; }
.contrast li { padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .14); display: grid; grid-template-columns: 26px 1fr; gap: 10px; }
.contrast li::before { content: "✕"; color: var(--accent); font-weight: 700; }
.contrast li strong { color: #fff; display: block; }
.contrast .btn-row { margin-top: 20px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 28px; }
.chip { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 500; }
.chip:hover { border-color: var(--brand); color: var(--brand); }

/* FAQ */
.faq { margin-top: 48px; }
.faq h2 { margin-bottom: 16px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-of-type { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; padding: 16px 40px 16px 0; font-weight: 600; position: relative; font-size: 1.02rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.5rem; color: var(--brand); font-weight: 400; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-body { padding: 0 0 18px; color: var(--muted); }
.faq-body p { margin: 0; }

/* CTA band */
.cta-band { background: var(--brand); color: #fff; margin-top: 40px; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 48px; padding-bottom: 48px; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: rgba(255, 255, 255, .85); margin: 0; max-width: 56ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; flex: none; }

/* Prose */
.prose { font-size: 1.05rem; }
.prose h2 { margin-top: 2em; margin-bottom: .5em; font-size: 1.6rem; scroll-margin-top: 90px; }
.prose h3 { margin-top: 1.6em; margin-bottom: .4em; font-size: 1.2rem; scroll-margin-top: 90px; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.1em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose blockquote p:last-child { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--brand-soft); font-weight: 600; }
.prose code { background: #eef0ef; padding: 1px 6px; border-radius: 6px; font-size: .92em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose img { border-radius: var(--radius-sm); }
.prose-legal { font-size: 1rem; }
.prose-legal h2 { font-size: 1.3rem; margin-top: 1.8em; }
.callout { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; margin: 1.6em 0; background: var(--surface); }
.callout-note { background: var(--brand-soft); border-color: #cfe3e0; }
.callout-warn { background: var(--accent-soft); border-color: #f3d6b4; }

/* Guide layout */
.guide-wrap { padding-top: 32px; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs span { margin: 0 6px; }
.guide-head { max-width: 820px; margin-bottom: 30px; }
.guide-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.guide-desc { font-size: 1.15rem; color: var(--muted); }
.guide-meta { font-size: .9rem; color: var(--muted); }
.guide-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; align-items: start; }
.guide-side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 20px; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 8px; }
.toc-title { font-weight: 600; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.toc ol { margin: 0; padding: 0 0 0 18px; font-size: .92rem; }
.toc li { margin-bottom: 8px; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--brand); }
.side-cta { background: var(--brand); color: #fff; border-radius: var(--radius); padding: 20px; }
.side-cta-title { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.side-cta p { color: rgba(255, 255, 255, .85); font-size: .95rem; }
.side-cta .btn { background: #fff; color: var(--brand); }
.guide-body { max-width: 760px; }
.guide-body > p:first-child { font-size: 1.12rem; }

/* Forms */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; padding-top: 40px; padding-bottom: 64px; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form-card h1 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; }
.field .hint { font-size: .82rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; color: var(--ink); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-row label { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); cursor: pointer; font-weight: 500; background: #fff; }
.radio-row input { accent-color: var(--brand); }
.consent { border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; background: var(--bg); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); }
.consent label { font-size: .88rem; line-height: 1.5; color: var(--ink); }
.consent .tag, .consent-optional .tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; margin-bottom: 6px; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 6px; font-weight: 600; font-size: .9rem; }
.consent-stack { display: grid; gap: 12px; margin: 20px 0; }
.consent-optional { font-size: .86rem; color: var(--muted); margin: 2px 0 -2px; }
.consent-optional .tag { margin: 0 6px 0 0; }
.consent-title { display: block; font-size: .95rem; color: var(--ink); margin-bottom: 4px; }
.form-foot { font-size: .85rem; color: var(--muted); margin-top: 12px; }
.form-status { margin-top: 14px; font-size: .95rem; }
.form-status.error { color: var(--danger); font-weight: 600; }
.form-status.ok { color: var(--ok); font-weight: 600; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.thanks { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.side-notes { display: grid; gap: 16px; }
.note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.note h2 { font-size: 1.05rem; margin-bottom: 6px; }
.note p, .note li { font-size: .93rem; color: var(--muted); }
.note ul { padding-left: 18px; margin: 0; }

/* Calculator */
.calc-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; padding-top: 40px; }
.calc-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.calc-panel fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.calc-panel legend { font-weight: 600; margin-bottom: 4px; }
.calc-panel .hint { font-size: .85rem; color: var(--muted); margin-bottom: 10px; display: block; }
.choice { display: grid; gap: 8px; }
.choice label { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); cursor: pointer; background: #fff; }
.choice label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.choice input { accent-color: var(--brand); }
.results { position: sticky; top: 88px; background: var(--ink); color: #e9efee; border-radius: var(--radius); padding: 26px; }
.results h2 { color: #fff; font-size: 1.3rem; }
.result { padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.result:first-of-type { border-top: 0; }
.result-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: #9fb4b1; }
.result-value { font-family: var(--font-head); font-size: 1.5rem; color: #fff; margin: 2px 0 6px; }
.result p { margin: 0; color: #c8d3d1; font-size: .95rem; }
.results .btn { margin-top: 16px; }
.results .fine { font-size: .8rem; color: #9fb4b1; margin-top: 12px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 40px; padding-bottom: 56px; }

/* Footer */
.site-footer { background: #10302f; color: #c9d6d4; margin-top: 64px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-top: 56px; padding-bottom: 32px; }
.footer-brand { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: #fff; margin-bottom: 8px; }
.footer-about p { color: #c9d6d4; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer a { color: #e8f0ef; }
.site-footer a:hover { color: #fff; }
.footer-head { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #8fa6a3; margin-bottom: 12px; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 22px; padding-bottom: 32px; font-size: .82rem; color: #9fb4b1; }
.footer-bottom p { margin: 0; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .contrast .wrap, .form-layout, .calc-layout { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; gap: 24px; }
  .guide-side { position: static; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .results { position: static; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 0; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-top: 1px solid var(--line); }
  .nav .nav-cta { margin-top: 12px; border-top: 0; text-align: center; }
  .hero { padding: 40px 0 32px; }
  .section { padding: 40px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media print {
  .site-header, .site-footer, .cta-band, .side-cta, .nav-toggle { display: none !important; }
  body { background: #fff; }
}
