/* Doorstep Web: shared styles (v2) */
:root {
  --bg: #F5F7FA; --surface: #FFFFFF; --ink: #0F1B2D; --muted: #51607A; --line: #DCE2EC;
  --navy: #0F1B2D; --on-navy: #F2F5FA; --navy-muted: #A9B6CB; --navy-line: #2A3A55;
  --accent: #19C6AE; --on-accent: #04211D; --link: #1D4ED8; --focus: #1D4ED8;
  --logo-bg: #0F1B2D; --ph-bg: #FFE08A; --ph-ink: #3A2A00;
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light dark;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A121F; --surface: #121D2E; --ink: #EEF2F8; --muted: #A3B0C5; --line: #24324A;
    --navy: #152238; --navy-line: #2E4060; --link: #8FB2FF; --focus: #8FB2FF;
    --logo-bg: #1C2B45; --ph-bg: #5A4710; --ph-ink: #FFE9A8;
  }
}
:root[data-theme="dark"] {
  --bg: #0A121F; --surface: #121D2E; --ink: #EEF2F8; --muted: #A3B0C5; --line: #24324A;
  --navy: #152238; --navy-line: #2E4060; --link: #8FB2FF; --focus: #8FB2FF;
  --logo-bg: #1C2B45; --ph-bg: #5A4710; --ph-ink: #FFE9A8;
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 84px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 30; }
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: clamp(18px, 4vw, 32px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); transition: box-shadow 0.2s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(8, 16, 30, 0.12); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand svg { width: 32px; height: 32px; flex: none; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.nav a { padding: 10px 12px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.98rem; border-radius: 8px; }
.nav a:hover { background: var(--surface); }
.nav a[aria-current="page"] { font-weight: 700; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav a.btn { margin-left: 10px; }
.nav a.btn-primary { color: var(--on-accent); background: var(--accent); }
.nav a.btn-primary:hover { background: var(--accent); filter: brightness(1.07); }
.menu-btn { display: none; min-height: 44px; padding: 8px 16px; font: inherit; font-weight: 600; color: var(--ink); background: transparent; border: 1.5px solid var(--ink); border-radius: 8px; cursor: pointer; }
@media (max-width: 860px) {
  .js .menu-btn { display: inline-flex; align-items: center; }
  .js .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 8px; }
  .js .nav.open { display: flex; }
  .nav a.btn { margin: 8px 0 0; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; font: inherit; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; border: 1.5px solid transparent; border-radius: 8px; cursor: pointer; transition: transform 0.12s, filter 0.12s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(127, 140, 160, 0.16); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { filter: brightness(1.2); }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Hero */
.hero { background: var(--navy); color: var(--on-navy); background-image: linear-gradient(var(--navy-line) 1px, transparent 1px), linear-gradient(90deg, var(--navy-line) 1px, transparent 1px); background-size: 56px 56px; background-position: center top; }
.hero-inner { background: linear-gradient(180deg, transparent, var(--navy) 85%); padding-block: clamp(40px, 6vw, 84px); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); line-height: 1.06; letter-spacing: -0.03em; max-width: 16ch; }
.hero .lede { color: var(--navy-muted); }
.lede { font-size: 1.15rem; max-width: 36em; color: var(--muted); }
.proof { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--navy-muted); font-size: 0.96rem; }
.proof li { display: flex; align-items: center; gap: 8px; }
.proof li::before { content: "\2713"; color: var(--accent); font-weight: 700; }

/* Live demo */
.demo { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: 0 24px 60px rgba(4, 10, 20, 0.35); }
.section .demo { box-shadow: none; }
.demo-title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin: 0 0 12px; }
.demo-controls { display: grid; gap: 12px; margin-bottom: 14px; }
@media (min-width: 520px) { .demo-controls { grid-template-columns: 1fr 1fr; } .demo-controls .seg { grid-column: 1 / -1; } }
.demo label, .form label { display: block; font-weight: 600; font-size: 0.93rem; margin-bottom: 6px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { min-height: 42px; padding: 8px 16px; font: inherit; font-size: 0.95rem; font-weight: 600; color: var(--ink); background: transparent; border: 1.5px solid var(--line); border-radius: 99px; cursor: pointer; }
.seg button:hover { border-color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.browser { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; color: #14201B; }
.b-top { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: #E9EDF3; }
.dots { display: inline-flex; gap: 5px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #B8C1CF; }
.b-url { flex: 1; min-width: 0; background: #fff; border-radius: 99px; padding: 3px 12px; font-size: 0.8rem; color: #45526A; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 16px; background: var(--m, #1C1C1C); color: #fff; font-weight: 700; font-size: 0.95rem; transition: background-color 0.35s; }
.b-head [data-out="name"] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-nav { display: flex; gap: 14px; font-weight: 500; font-size: 0.78rem; opacity: 0.9; flex: none; }
.b-hero { padding: 22px 16px 16px; display: grid; gap: 10px; justify-items: start; }
.b-h { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0; overflow-wrap: anywhere; }
.b-sub { margin: 0; font-size: 0.9rem; color: #45526A; }
.b-btn { background: var(--m2, #C9A227); color: #14201B; font-weight: 700; font-size: 0.85rem; padding: 8px 16px; border-radius: 6px; transition: background-color 0.35s; }
.b-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 16px 18px; }
.b-tiles span { background: #F0F3F7; border-radius: 8px; padding: 12px 8px; font-size: 0.78rem; font-weight: 600; text-align: center; color: #26334A; }
.demo-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 16px 0 0; }
.hint { font-weight: 400; color: var(--muted); font-size: 0.9rem; }

/* Sections */
.section { padding-block: clamp(48px, 7vw, 88px); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 42rem; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.page-head { padding-block: clamp(40px, 6vw, 68px) 8px; }
.page-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); letter-spacing: -0.03em; max-width: 20ch; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: s; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 0; } .steps li { padding-right: 32px; } .steps li + li { padding-left: 32px; border-left: 1px solid var(--line); } }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 50%; background: var(--ink); color: var(--bg); font-family: var(--font-display); font-weight: 700; }
.steps p { color: var(--muted); margin: 0; }

.features { display: grid; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (min-width: 720px) { .features { grid-template-columns: 1fr 1fr; } }
.feature { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); transition: background-color 0.15s; }
.feature:hover { background: var(--bg); }
.feature svg { width: 30px; height: 30px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.feature p { color: var(--muted); margin: 0 0 0.8em; }
.feature ul { margin: 0 0 1em; }
.feature .note { margin-top: 12px; }

.ticks, .crosses { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li, .crosses li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.ticks li::before { content: "\2713"; font-weight: 700; color: var(--link); }
.crosses li::before { content: "\2715"; font-weight: 700; color: var(--muted); }

/* Plans */
.plans { display: grid; gap: 20px; }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .plans.three { grid-template-columns: repeat(3, 1fr); } .plans.four { grid-template-columns: repeat(4, 1fr); } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.plan h3 { margin: 0; }
.plan .price { font-family: var(--font-display); font-weight: 700; font-size: 2.5rem; letter-spacing: -0.03em; line-height: 1; }
.plan .price small { font-family: var(--font-body); font-size: 0.95rem; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.plan p { margin: 0; color: var(--muted); }
.plan .btn { margin-top: auto; }
.plan.featured { background: var(--navy); color: var(--on-navy); border-color: var(--navy); }
.plan.featured p, .plan.featured .price small { color: var(--navy-muted); }
.plan.featured .ticks li::before { color: var(--accent); }
.tag { align-self: flex-start; background: var(--accent); color: var(--on-accent); font-size: 0.8rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; }

/* Quote builder */
.builder { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .builder { grid-template-columns: 1.3fr 0.9fr; gap: 40px; } .quote { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 90px); } }
.builder fieldset { border: 0; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.builder legend { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; padding: 0; margin-bottom: 12px; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; }
.opt:hover { border-color: var(--muted); }
.opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt:has(input:disabled) { opacity: 0.65; cursor: default; }
.opt input { width: 20px; height: 20px; min-height: 20px; margin: 3px 0 0; flex: none; accent-color: var(--ink); }
.opt strong { display: block; }
.opt small { color: var(--muted); font-size: 0.92rem; }
.opt.stepper-row { justify-content: space-between; align-items: center; cursor: default; }
.stepper { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.stepper button { width: 44px; height: 44px; font: inherit; font-size: 1.3rem; font-weight: 600; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 8px; cursor: pointer; }
.stepper output { min-width: 2ch; text-align: center; font-weight: 700; font-size: 1.1rem; }
.quote { background: var(--navy); color: var(--on-navy); border-radius: 14px; padding: 26px; }
.quote h3 { margin-bottom: 14px; }
.quote ul { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; color: var(--navy-muted); font-size: 0.98rem; }
.quote li { display: flex; justify-content: space-between; gap: 16px; }
.totals { border-top: 1px solid var(--navy-line); padding-top: 14px; margin-bottom: 18px; display: grid; gap: 6px; }
.totals div { display: flex; justify-content: space-between; align-items: baseline; }
.totals strong { font-family: var(--font-display); font-size: 1.7rem; letter-spacing: -0.02em; }
.quote .hint { color: var(--navy-muted); margin: 12px 0 0; }

.extras { margin: 0; padding: 0; border-bottom: 1px solid var(--line); max-width: 48rem; }
.extras div { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.extras dt { font-weight: 600; }
.extras dt span { display: block; font-weight: 400; color: var(--muted); font-size: 0.95rem; }
.extras dd { margin: 0; font-weight: 700; text-align: right; flex: none; }
.fineprint { font-size: 0.93rem; color: var(--muted); max-width: 46rem; margin-top: 26px; }

.trades { display: grid; gap: 0 48px; }
@media (min-width: 760px) { .trades { grid-template-columns: 1fr 1fr; } }
.trade { padding: 20px 0; border-top: 1px solid var(--line); }
.trade h3 { font-size: 1.1rem; margin-bottom: 0.2em; }
.trade p { margin: 0; color: var(--muted); }
.split { display: grid; gap: 36px; }
@media (min-width: 760px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.split h3 { margin-bottom: 0.8em; }

.faq { border-bottom: 1px solid var(--line); max-width: 48rem; }
.faq details { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; position: relative; padding: 18px 44px 18px 0; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.6rem; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 18px; color: var(--muted); max-width: 42em; }

.band { background: var(--navy); color: var(--on-navy); }
.band h2 { max-width: 20ch; }
.band p { max-width: 36em; font-size: 1.08rem; color: var(--navy-muted); }

.note { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; max-width: 46rem; }
.note p:last-child { margin-bottom: 0; }
.draft { background: var(--ph-bg); color: var(--ph-ink); border-radius: 10px; padding: 14px 18px; margin-bottom: 28px; font-weight: 500; max-width: 46rem; }
mark.ph { background: var(--ph-bg); color: var(--ph-ink); padding: 0 0.25em; border-radius: 3px; }
.badge { display: inline-block; background: var(--ink); color: var(--bg); font-size: 0.8rem; font-weight: 600; padding: 2px 10px; border-radius: 99px; }

/* Forms */
.two { display: grid; gap: 48px; }
@media (min-width: 860px) { .two { grid-template-columns: 1.2fr 0.8fr; } }
.form { display: grid; gap: 20px; max-width: 40rem; }
input[type="text"], input[type="email"], input[type="tel"], input:not([type]), select, textarea { width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface); border: 1.5px solid var(--muted); border-radius: 8px; }
textarea { min-height: 150px; resize: vertical; }
.check { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.check input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--ink); }
.form .check label { font-weight: 400; font-size: 1rem; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list strong { display: block; }

.prose { max-width: 46rem; padding-bottom: 24px; }
.prose h2 { font-size: 1.35rem; margin: 2em 0 0.5em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: 48px 28px; }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.site-footer h2 { font-size: 1rem; margin-bottom: 0.7em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink); }
.site-footer p { color: var(--muted); }
.legal-line { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.92rem; }
.legal-line p { margin: 0 0 0.4em; }
.previewbar { background: var(--accent); color: var(--on-accent); text-align: center; padding: 8px 16px; font-size: 0.9rem; font-weight: 500; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
