/* Doorstep Pros — company site. Dark, minimal, Inter Display. */
:root {
  --bg: #000;
  --surface: #111113;
  --surface-2: #18181b;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #fff;
  --muted: #8a909b;
  --soft: #c9ccd2;
  --accent: #ff7a45;
  --accent-2: #ffb547;
  --radius: 24px;
  --radius-sm: 14px;
  --max: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 120px 0; position: relative; }
.center { text-align: center; }
.section-tight { padding-top: 72px; }

h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.04em; line-height: 1.05; }
h1 { font-size: clamp(44px, 7.2vw, 88px); font-weight: 700; }
h2 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 700; }
h3 { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; }
.lead { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); max-width: 640px; margin: 20px auto 0; }
.dim { color: rgba(255, 255, 255, 0.45); }

/* ── Nav ──────────────────────────────────────────── */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 50; width: calc(100% - 32px); max-width: 760px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 14px;
  background: rgba(20, 20, 22, 0.66);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; letter-spacing: -0.02em; }
.brand-logo { height: 32px; width: auto; display: block; }
.foot .brand-logo { height: 36px; }
.hero-mark {
  width: 88px; height: 88px; margin: 0 auto 34px; border-radius: 22px;
  box-shadow: 0 18px 60px rgba(255, 106, 61, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
@media (max-width: 760px) { .hero-mark { width: 72px; height: 72px; margin-bottom: 26px; } .brand-logo { height: 28px; } }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  text-decoration: none; color: var(--soft); font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: 999px; transition: background .2s, color .2s;
}
.nav-links a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.nav .btn { padding: 10px 18px; font-size: 14px; }
.menu-toggle {
  display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }

/* ── Buttons & chips ──────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 15px/1 var(--font); text-decoration: none; letter-spacing: -0.01em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s;
}
.btn-primary { background: #fff; color: #000; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(255, 255, 255, 0.18); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); color: #fff; border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn svg { width: 18px; height: 18px; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.chip {
  font-size: 13px; color: var(--soft); padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
}
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; color: #fff;
  padding: 6px 14px; border-radius: 999px; background: var(--surface-2);
  border: 1px solid var(--line); margin-bottom: 22px;
}

/* ── Hero ─────────────────────────────────────────── */
.hero { padding: 180px 0 40px; text-align: center; position: relative; overflow-x: clip; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%;
  background:
    radial-gradient(45% 40% at 50% 30%, rgba(255, 122, 69, 0.18), transparent 70%),
    radial-gradient(35% 30% at 70% 10%, rgba(194, 51, 140, 0.16), transparent 70%);
  pointer-events: none; z-index: -1;
}
.hero h1 .grad {
  background: linear-gradient(92deg, #fff 10%, #ffd2a8 45%, #ff8a5c 75%, #e05aa8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.trust-line { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 26px; color: var(--soft); font-size: 14px; }
.trust-line svg { width: 16px; height: 16px; color: var(--accent-2); }


/* ── Cards ────────────────────────────────────────── */
.grid { display: grid; gap: 16px; margin-top: 56px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; text-align: left; position: relative; overflow: hidden;
  transition: border-color .25s, transform .25s;
}
.card:hover { border-color: var(--line-strong); }
.card p { color: var(--muted); margin: 10px 0 0; font-size: 15px; }
.card .step { color: var(--muted); font-size: 13px; font-weight: 600; margin: 22px 0 6px; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line); color: #fff;
}
.icon svg { width: 22px; height: 22px; }
.card.highlight { background: #fff; color: #000; }
.card.highlight p { color: #4b5563; }
.card.highlight .icon { background: #000; color: #fff; border-color: #000; }
.card .icon + h3 { margin-top: 22px; }

.service-card { min-height: 250px; display: flex; flex-direction: column; }
.service-card .tag { margin-top: auto; padding-top: 22px; font-size: 13px; color: var(--soft); }
.service-card::after {
  content: ""; position: absolute; width: 220px; height: 220px; right: -90px; top: -90px;
  background: radial-gradient(circle, var(--glow, rgba(255,122,69,.28)), transparent 70%);
  pointer-events: none;
}

/* ── Split / forms ────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.split .copy h2 { text-align: left; }
.split .copy .lead { margin-left: 0; }
.checklist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; color: var(--soft); }
.checklist svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--accent-2); }

.form-card { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 28px; padding: 32px; }
.form-card h3 { margin-bottom: 4px; }
.form-card .sub { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { font-size: 13px; font-weight: 600; color: var(--soft); }
input, select, textarea {
  width: 100%; font: 15px/1.4 var(--font); color: #fff;
  background: #0a0a0b; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 13px 14px; transition: border-color .2s, box-shadow .2s;
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a909b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 122, 69, 0.2); }
textarea { min-height: 90px; resize: vertical; }
.consent { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 6px 0 18px; }
.consent a { color: var(--soft); }
.form-card .btn { width: 100%; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.notice {
  display: none; margin-bottom: 18px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 14px;
  background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.35); color: #a7f3d0;
}
.notice.error { background: rgba(248, 113, 113, 0.1); border-color: rgba(248, 113, 113, 0.35); color: #fecaca; }
.notice.show { display: block; }

/* ── Contractor band ──────────────────────────────── */
.band {
  border-radius: 32px; overflow: hidden; position: relative; padding: 72px 56px;
  background: #120a14 url("glow-bg.jpg") center / cover no-repeat;
  border: 1px solid var(--line);
}
.band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.72) 45%, rgba(0,0,0,.35) 100%); }
.band > * { position: relative; }

/* ── Stats / promises ─────────────────────────────── */
.promise h3 { font-size: 19px; }

/* ── FAQ ──────────────────────────────────────────── */
.faq { max-width: 760px; margin: 48px auto 0; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 17px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); }

/* ── CTA & footer ─────────────────────────────────── */
.cta { text-align: center; padding: 120px 0; }
.cta .hero-actions { margin-top: 30px; }
footer { border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--muted); font-size: 14px; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot h4 { color: #fff; font-size: 14px; margin: 0 0 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; }
.foot .brand { margin-bottom: 12px; color: #fff; }
.copyright { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ── Reveal on scroll ─────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Legal pages ──────────────────────────────────── */
.legal { max-width: 760px; margin: 0 auto; padding: 150px 20px 80px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); }
.legal h2 { font-size: 24px; letter-spacing: -0.02em; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--soft); }
.legal .updated { color: var(--muted); margin-top: 12px; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .section { padding: 84px 0; }
  .hero { padding: 140px 0 20px; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .nav-links {
    display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; padding: 10px; border-radius: 22px;
    background: rgba(20, 20, 22, 0.94); border: 1px solid var(--line-strong);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .menu-toggle { display: block; }
  .nav .btn { display: none; }
  .band { padding: 44px 22px; }
  .form-card { padding: 22px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .section-tight { padding-top: 56px; }
}
