:root {
  --ground: #f4f4f6;
  --surface: #ffffff;
  --text: #16161d;
  --muted: #5c5c68;
  --border: #e5e5ea;
  --ink: #16161d;
  --brand: #5b4dff;
  --brand-text: #4a3ce8;
  --brand-tint: #eeecff;
  --owed: #087345;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0e0e12;
    --surface: #1a1a21;
    --text: #f4f4f6;
    --muted: #a3a3ae;
    --border: #2a2a33;
    --brand-text: #a99fff;
    --brand-tint: #221f45;
    --owed: #7ce0a8;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 17px/1.6 'Plus Jakarta Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-text); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 16px; }
h1 { font-size: clamp(34px, 5.5vw, 56px); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
p { margin: 0 0 16px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--ground) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand img { border-radius: 8px; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav nav a:hover { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 24px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 16px; text-decoration: none;
  border: 1px solid transparent; transition: transform 0.15s ease, opacity 0.15s ease;
}
@media (prefers-color-scheme: dark) { .btn { background: var(--brand); } }
.btn:hover { transform: translateY(-1px); }
.btn-small { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
@media (prefers-color-scheme: dark) { .btn-ghost { background: var(--surface); } }
.btn-light { background: #fff; color: #16161d; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }

.eyebrow { color: var(--brand-text); font-weight: 700; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 14px; }
.lede { font-size: 19px; color: var(--muted); max-width: 560px; }
.fine { font-size: 14px; color: var(--muted); margin-top: 14px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ctas.center { justify-content: center; }

.hero { padding: 64px 0 40px; overflow: hidden; }
.hero-row { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero-phone { display: flex; justify-content: center; }

.phone {
  margin: 0; width: 100%; max-width: 320px; border-radius: 40px; padding: 10px;
  background: #16161d; box-shadow: 0 30px 80px -20px rgba(91, 77, 255, 0.45), 0 10px 30px rgba(0, 0, 0, 0.15);
}
.phone img { border-radius: 31px; }

.what { padding: 40px 20px; max-width: 820px; }
.what p { font-size: 18px; color: var(--muted); }

.features { padding: 48px 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.grid article { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 24px; }
.grid p { color: var(--muted); font-size: 16px; margin: 0; }
.shots { margin: 40px 0 0; display: flex; gap: 24px; justify-content: center; }
.shots img { width: 100%; max-width: 300px; border-radius: 28px; border: 1px solid var(--border); }

.services { padding: 72px 0; margin: 32px 0; background: linear-gradient(180deg, #2a1f8f 0%, #16161d 70%); color: #fff; }
.services .eyebrow { color: #b8b0ff; }
.services p { color: rgba(255, 255, 255, 0.78); }
.services-row { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
.services .phone { justify-self: center; background: #000; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.ticks li { padding-left: 32px; position: relative; color: rgba(255, 255, 255, 0.9); }
.ticks li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: rgba(124, 224, 168, 0.18); color: #7ce0a8; font-size: 13px; font-weight: 800; display: grid; place-items: center; margin-top: 3px; }

.how { padding: 48px 20px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 24px; color: var(--muted); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--brand-tint); color: var(--brand-text); font-weight: 800; margin-bottom: 14px; }
.steps strong { color: var(--text); display: block; font-size: 18px; margin-bottom: 4px; }

.faq { padding: 48px 20px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 0 22px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-weight: 600; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--muted); padding-bottom: 6px; }

.cta-band { background: var(--ink); color: #fff; text-align: center; padding: 72px 0; margin-top: 32px; }
.cta-band p { color: rgba(255, 255, 255, 0.7); }

.foot { padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }

@media (max-width: 860px) {
  .nav nav { display: none; }
  .nav-row { justify-content: space-between; }
  .hero { padding-top: 36px; }
  .hero-row, .services-row { grid-template-columns: 1fr; gap: 36px; }
  .grid, .steps { grid-template-columns: 1fr; }
  .phone { max-width: 280px; }
  .shots img { max-width: 46%; }
}

/* Blog */
.blog { padding: 56px 20px 40px; max-width: 820px; }
.post-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.post-list a { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 22px 24px; color: var(--text); text-decoration: none; transition: border-color 0.15s ease; }
.post-list a:hover { border-color: var(--brand); }
.post-list h2 { font-size: 21px; margin-bottom: 6px; }
.post-list p { color: var(--muted); font-size: 16px; margin-bottom: 8px; }
.post-list time { color: var(--muted); font-size: 14px; }

.post { padding: 40px 20px 24px; max-width: 760px; }
.crumbs { font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.crumbs a { text-decoration: none; }
.crumbs a::before { content: '← '; }
.post h1 { font-size: clamp(30px, 4.6vw, 44px); }
.post-meta { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.prose { font-size: 18px; line-height: 1.7; }
.prose h2 { font-size: 27px; margin: 40px 0 12px; }
.prose h3 { font-size: 20px; margin: 28px 0 8px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin-bottom: 6px; }
.prose strong { font-weight: 700; }
.prose > p:first-child { font-size: 19px; background: var(--brand-tint); border-radius: 18px; padding: 18px 20px; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { font-weight: 700; background: var(--surface); }
.prose code { font-size: 0.9em; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }
.post-cta { margin: 48px 0 0; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 28px; }
.post-cta h2 { font-size: 24px; margin-bottom: 6px; }
.post-cta p { color: var(--muted); margin: 0; }
.post-cta .ctas { margin-top: 18px; }

/* Calculators (/tools/...) */
.calc { display: grid; grid-template-columns: 1fr; gap: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 22px; margin: 24px 0 32px; }
@media (min-width: 720px) { .calc { grid-template-columns: 1.2fr 1fr; } }
.calc-fields { display: grid; gap: 12px; }
.calc label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.calc input, .calc select { height: 46px; border: 1px solid var(--border); border-radius: 14px; padding: 0 14px; font: inherit; font-size: 17px; font-weight: 600; color: var(--text); background: var(--ground); width: 100%; box-sizing: border-box; }
.calc input:focus, .calc select:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.calc-result { background: var(--brand-tint); border-radius: 18px; padding: 20px; align-self: start; position: sticky; top: 8px; z-index: 1; }
@media (max-width: 719px) { .calc-result { order: -1; padding: 14px 18px; } .calc-total { font-size: 32px; margin-bottom: 6px; } .calc-lines { font-size: 14px; } }
.calc-label { margin: 0; font-size: 14px; font-weight: 700; color: var(--brand-text); }
.calc-total { margin: 4px 0 10px; font-size: 40px; font-weight: 800; color: var(--text); }
.calc-lines { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; display: grid; gap: 4px; }
