/* We Build Custom Software. Restrained on purpose: real content first, no gradients, glows,
   all caps, or eyebrow labels (docs/writing-guide.md). Every color comes from the palette
   variables below, so a palette is one block of overrides ([data-palette]). */

:root {
  /* Palette: Midnight (deep blue-black hero, mint accent). Chosen 2026-12-05. */
  --bg: #ffffff;
  --ink: #0f1720;
  --text: #36414d;
  --muted: #63707c;
  --line: #e1e6eb;
  --soft: #f3f5f8;
  --accent: #0d7f66;
  --accent-hover: #0a6a55;
  --accent-ink: #ffffff;
  --link: #0d7f66;
  --hero-bg: #0e151d;
  --hero-ink: #f2f5f7;
  --hero-text: #b6c2cc;
  --topo: rgba(94, 214, 180, 0.24);
  --callout: #e7f4f0;
  --callout-line: #bfe3d8;
  --footer-bg: #0e151d;
  --footer-text: #9fadb8;
  --focus: rgba(13, 127, 102, 0.22);

  --radius: 6px;
  --display: 'Plus Jakarta Sans', 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}


*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.15; font-weight: 600; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.02em; font-weight: 700; }
h1, h2 { text-wrap: balance; }
h2 { font-size: clamp(26px, 3vw, 36px); }
h3 { font-size: 21px; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--soft); padding: 1px 5px; border-radius: 4px; }
.container { width: min(1180px, 100% - 48px); margin: 0 auto; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 14px; }
mark.todo { background: #fff1c2; color: inherit; padding: 0 3px; border-radius: 3px; outline: 1px dashed #c99a00; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.arrow { display: inline-block; transition: transform .35s ease; }
a:hover .arrow, button:hover .arrow { transform: translateX(4px); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: var(--radius); font: 600 16px/1.2 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--bg); }
.btn-big { padding: 15px 24px; font-size: 17px; }
.btn[disabled] { opacity: .6; cursor: default; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 66px; }
.brand { text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand-name { font-family: var(--display); font-weight: 500; font-size: 19px; letter-spacing: -0.02em; }
.brand-name span { font-weight: 700; }
.site-nav { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 16px; }
.nav-menus { display: flex; align-items: center; gap: 2px; }
.nav-menus > a, .mega > summary { padding: 8px 12px; border-radius: var(--radius); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15.5px; cursor: pointer; }
.nav-menus > a:hover, .mega > summary:hover, .mega[open] > summary { background: var(--soft); }
.nav-menus a[aria-current="page"] { color: var(--accent); }
.mega > summary { list-style: none; }
.mega > summary::-webkit-details-marker { display: none; }
.mega > summary::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.mega-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(0, 0, 0, .06); padding: 26px 0 30px; }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.mega-col h2 { font: 600 14px/1.4 var(--display); color: var(--muted); margin: 0 0 8px; letter-spacing: 0; }
.mega-item { display: block; padding: 10px 12px; margin: 0 -12px; border-radius: var(--radius); text-decoration: none; }
.mega-item:hover { background: var(--soft); }
.mega-item strong { display: block; color: var(--ink); font-weight: 600; }
.mega-item small { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-contact { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15.5px; }
.nav-actions .btn { padding: 10px 16px; font-size: 15px; }
.nav-mobile { display: none; margin-left: auto; }
.nav-mobile > summary { list-style: none; cursor: pointer; padding: 10px; display: flex; flex-direction: column; gap: 5px; }
.nav-mobile > summary::-webkit-details-marker { display: none; }
.nav-mobile > summary span { display: block; width: 22px; height: 2px; background: var(--ink); }
.nav-mobile-menu { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 20px; box-shadow: 0 18px 30px rgba(0, 0, 0, .06); max-height: calc(100vh - 66px); overflow: auto; }
.nav-mobile-menu a, .mob-group > summary { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; }
.mob-group > summary { cursor: pointer; }
.mob-group a { padding-left: 16px; font-weight: 400; }
@media (max-width: 980px) {
  .site-nav { display: none; }
  .nav-mobile { display: block; }
}

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-mist { background: var(--soft); }
.section-navy { background: var(--footer-bg); color: var(--footer-text); }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy a { color: #fff; }
.section-navy .btn-primary { background: var(--accent); color: var(--accent-ink); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { font-size: 18px; }
.more-link { margin: 28px 0 0; font-weight: 500; }
.lede { font-size: 19px; color: var(--text); max-width: 740px; }
.page-head { padding: 56px 0 36px; background: var(--soft); border-bottom: 1px solid var(--line); }
.page-head .lede { margin-bottom: 0; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.updated { font-size: 14px; color: var(--muted); margin: 16px 0 0; }

/* ---------- home hero: drifting contour lines behind the text ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 84px; background: var(--hero-bg); color: var(--hero-text); }
.hero h1 { max-width: 860px; color: var(--hero-ink); }
.hero .lede { color: var(--hero-text); margin-bottom: 34px; }
.hero-inner { position: relative; z-index: 1; }
.topo { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none;
        -webkit-mask-image: linear-gradient(100deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.5) 35%, #000 70%);
        mask-image: linear-gradient(100deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.5) 35%, #000 70%); }
@media (max-width: 700px) {
  .hero { padding: 64px 0 56px; }
  .topo { -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.2), #000 85%); mask-image: linear-gradient(180deg, rgba(0,0,0,.2), #000 85%); }
}

/* The project box: a text area with its own bar for the button, like a message composer. */
.composer { max-width: 760px; background: var(--bg); border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .07); transition: border-color .2s ease, box-shadow .2s ease; }
.composer:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--focus), 0 10px 30px rgba(0, 0, 0, .07); }
.composer-field { position: relative; padding: 18px 20px 6px; }
.composer textarea { display: block; width: 100%; border: 0; resize: none; font: 400 18px/1.5 var(--sans); color: var(--ink); min-height: 81px; outline: none; background: transparent; padding: 0; }
.composer-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 10px 10px 20px; border-top: 1px solid var(--line); }
.composer-note { font-size: 14px; color: var(--muted); }
.idea-input-wrap { position: relative; display: block; }
.idea-hint { position: absolute; left: 0; right: 0; top: 0; color: var(--muted); opacity: .85; font-size: 18px; line-height: 1.5; pointer-events: none; transition: opacity .5s ease; }
.idea-input-wrap.has-text .idea-hint { opacity: 0; }
.idea-hint.fading { opacity: 0; }
.idea-notes { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--hero-text); }
.idea-notes li::before { content: ''; display: inline-block; width: 14px; height: 1.5px; background: currentColor; opacity: .6; margin-right: 10px; transform: translateY(-4px); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 600px) {
  .composer-bar { flex-direction: column; align-items: stretch; padding: 10px; }
  .composer-note { padding: 0 6px; }
  .composer-bar .btn { justify-content: center; }
}

/* ---------- home: services as rows, and numbered points ---------- */
.split { display: grid; grid-template-columns: 1fr 1.7fr; gap: 64px; align-items: start; }
.split-head { position: sticky; top: 110px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 24px; } .split-head { position: static; } }
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 1fr 28px; gap: 4px 20px; padding: 24px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); transition: background .3s ease, padding .3s ease; }
.row h3 { grid-column: 1; margin: 0; }
.row p { grid-column: 1; margin: 0; }
.row .arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 22px; color: var(--accent); }
.row:hover { background: var(--soft); padding-left: 14px; color: var(--text); }
.rows-more { padding: 20px 4px 0; margin: 0; font-size: 15px; color: var(--muted); }
.points { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 56px; }
.points li { border-top: 2px solid var(--ink); padding-top: 20px; }
.points h3 { margin-bottom: 8px; }
.points p { margin: 0; }
@media (max-width: 700px) { .points { grid-template-columns: 1fr; } }

/* ---------- cards and grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
a.card { display: block; text-decoration: none; color: var(--text); transition: border-color .2s ease; }
a.card:hover { border-color: var(--ink); }
a.card h3 { color: var(--ink); }
.card-link { font-weight: 600; color: var(--link); }
.steps { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 18px; }
.steps li { position: relative; padding: 2px 0 2px 34px; }
.steps li::before { content: ''; position: absolute; left: 0; top: 14px; width: 18px; height: 2px; background: var(--accent); }
.steps strong { color: var(--ink); }
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; }

/* ---------- prose (articles and long pages) ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.9em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose ul.steps { padding-left: 0; }
.prose li { margin-bottom: .45em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { color: var(--ink); border-bottom: 2px solid var(--ink); }
.prose blockquote { margin: 0 0 1.2em; padding: 4px 0 4px 18px; border-left: 2px solid var(--line); color: var(--muted); }
.quick-answer { background: var(--callout); border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 22px; margin: 0 0 30px; }
.quick-answer p { margin: 0; color: var(--ink); }
.how-we { border: 1px solid var(--line); padding: 20px 22px; margin: 30px 0; border-radius: var(--radius); }
.how-we h3 { margin-top: 0; font-size: 18px; }
.how-we p:last-child { margin-bottom: 0; }
.sources { font-size: 15px; }
.sources a { word-break: break-word; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; }
.section-article { padding-top: 56px; }
.article-side { position: sticky; top: 96px; display: grid; gap: 20px; }
.side-cta, .prompt-box, .side-related { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--bg); }
.side-cta h2, .prompt-box h2, .side-related h2 { font-size: 18px; }
.side-cta p { font-size: 15px; }
.side-cta .btn, .prompt-box .btn { display: flex; justify-content: center; }
.side-link { display: block; margin-top: 12px; font-size: 15px; text-align: center; }
.side-related ul { list-style: none; margin: 0; padding: 0; }
.side-related li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.4; }
.side-related li:first-child { border-top: 0; padding-top: 0; }
.prompt-box { background: var(--callout); border-color: var(--callout-line); }
.prompt-example { font-size: 15px; color: var(--ink); font-style: italic; }
.prompt-box .hint { margin: 10px 0 0; }
@media (max-width: 980px) {
  .article-layout { grid-template-columns: 1fr; gap: 36px; }
  .article-side { position: static; }
}

/* ---------- FAQ ---------- */
details.faq { border-bottom: 1px solid var(--line); }
details.faq > summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 600; color: var(--ink); position: relative; }
details.faq > summary::-webkit-details-marker { display: none; }
details.faq > summary::after { content: '+'; position: absolute; right: 4px; top: 15px; font: 400 24px/1 var(--sans); color: var(--accent); transition: transform .3s ease; }
details.faq[open] > summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 0 18px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-list { max-width: 820px; border-top: 1px solid var(--line); }

/* ---------- hubs ---------- */
.hub-toc { font-size: 15px; color: var(--muted); margin-bottom: 36px; }
.hub-group { margin-bottom: 52px; }
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .hub-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .hub-grid { grid-template-columns: 1fr; } }
.hub-card { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.hub-card strong { display: block; color: var(--ink); line-height: 1.35; margin-bottom: 4px; transition: color .2s ease; }
.hub-card:hover strong { color: var(--accent); }
.hub-card small { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; }

/* ---------- areas ---------- */
.area { padding: 18px 0; border-bottom: 1px solid var(--line); }
.area h3 { margin-bottom: 4px; }
.area p { margin: 0; }

/* ---------- forms ---------- */
.form { display: grid; gap: 14px; max-width: 560px; }
.form label { display: grid; gap: 6px; font-weight: 500; color: var(--ink); font-size: 15px; }
.form input, .form textarea, .form select { font: 400 16px/1.4 var(--sans); padding: 11px 12px; border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); border-radius: var(--radius); color: var(--ink); background: var(--bg); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.error { color: #a12a1a; font-weight: 500; }
.ok-msg { color: #1b6b3a; font-weight: 500; }

/* ---------- describe your project ---------- */
.planner { max-width: 820px; }
.planner .composer { max-width: none; }
.planner .composer textarea { min-height: 140px; }
.examples { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.examples button { font: 400 14px/1.3 var(--sans); padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--text); cursor: pointer; text-align: left; transition: border-color .2s ease, color .2s ease; }
.examples button:hover { border-color: var(--accent); color: var(--accent); }
.locked { max-width: 820px; margin-top: 36px; border: 1px solid var(--line); border-radius: 10px; padding: 30px; background: var(--bg); }
.locked h2 { margin-bottom: 6px; }
.locked-list { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 8px; }
.locked-list li { padding: 11px 14px; background: var(--soft); border-radius: var(--radius); color: var(--muted); }
.locked-list li span { display: inline-block; filter: blur(4px); user-select: none; }
.results { max-width: 820px; margin-top: 36px; }
.results h3 { margin-top: 1.6em; }
.plan-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.plan-phases { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.plan-phases li { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.plan-phases strong { color: var(--ink); }
.plan-list { padding-left: 1.2em; }
.plan-list li { margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; }
.chips li { font: 500 14px/1.2 var(--sans); background: var(--soft); padding: 6px 10px; border-radius: 4px; color: var(--ink); }
.honest-note { border-left: 3px solid #c98a1a; background: #fbf4e6; padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; margin: 20px 0; }
.next-steps { margin-top: 36px; padding: 26px; background: var(--soft); border-radius: 10px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.next-steps h3 { margin: 0 0 4px; }
.next-steps p { margin: 0; }
.loading { position: fixed; inset: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 94%, transparent); display: grid; place-items: center; }
.loading[hidden] { display: none; }
.loading-card { text-align: center; padding: 24px; }
.loading-card h2 { font-size: 24px; }
.loading-step { color: var(--muted); font-size: 15px; }
.spinner { width: 38px; height: 38px; margin: 0 auto 20px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 1.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } .arrow, .row { transition: none; } }
body.loading-open { overflow: hidden; }

/* ---------- footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); font-size: 15px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.site-footer a { color: rgba(255, 255, 255, 0.66); text-decoration: none; transition: color .2s ease; }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; padding: 72px 0 52px; }
.footer-about p { max-width: 340px; margin: 14px 0 22px; line-height: 1.6; color: rgba(255, 255, 255, 0.6); }
.footer-brand { font-family: var(--display); font-size: 20px; font-weight: 500; letter-spacing: -0.02em; color: #fff !important; }
.footer-brand span { font-weight: 700; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-contact li { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, 0.66); }
.footer-contact svg { width: 16px; height: 16px; flex: none; fill: var(--accent); }
.footer-contact li:nth-child(2) svg { fill: none; color: var(--accent); }
.footer-col { display: grid; align-content: start; gap: 9px; }
.footer-col h2 { font: 600 14px/1.4 var(--display); color: #fff; margin: 0 0 6px; letter-spacing: 0; }
.footer-areas { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 22px 0; font-size: 13.5px; line-height: 1.7; color: rgba(255, 255, 255, 0.5); }
.footer-areas p { margin: 0; }
.footer-areas a { color: rgba(255, 255, 255, 0.5); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px 0 28px; font-size: 13.5px; color: rgba(255, 255, 255, 0.5); }
.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; gap: 22px; }
.footer-bottom a { color: rgba(255, 255, 255, 0.5); }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 600px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 36px 24px; padding-top: 56px; } }


/* ---------- price estimates (planner results and the cost calculator) ---------- */
.estimate { border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 22px 24px; margin: 24px 0; background: var(--bg); }
.estimate-label { font: 600 14px/1.4 var(--display); color: var(--muted); margin: 0 0 4px; }
.estimate-range { font-family: var(--display); font-size: clamp(28px, 4vw, 40px); font-weight: 600; color: var(--ink); margin: 0 0 14px; letter-spacing: -0.02em; }
.estimate-lines { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 12px; }
.estimate-lines td { padding: 7px 0; border-top: 1px solid var(--line); vertical-align: top; }
.estimate-lines td:last-child { text-align: right; white-space: nowrap; padding-left: 16px; }
.estimate-lines span { color: var(--muted); }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.calc-side { position: sticky; top: 96px; }
.calc-side .estimate { margin-top: 0; }
@media (max-width: 960px) { .calc { grid-template-columns: 1fr; } .calc-side { position: static; } }
.calc-group { margin: 0 0 28px; }
.calc-group h2 { font-size: 20px; margin-bottom: 6px; }
.calc-row { display: grid; grid-template-columns: 1fr 132px; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.calc-row label { font-weight: 500; color: var(--ink); }
.calc-row small { display: block; color: var(--muted); font-weight: 400; font-size: 14px; }
.stepper { display: flex; align-items: center; border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); border-radius: var(--radius); overflow: hidden; }
.stepper button { width: 36px; height: 38px; border: 0; background: var(--soft); font-size: 18px; color: var(--ink); cursor: pointer; }
.stepper input { width: 60px; height: 38px; border: 0; text-align: center; font: 500 16px var(--sans); color: var(--ink); background: var(--bg); -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.calc-row.is-toggle .stepper { display: none; }
.toggle { justify-self: end; width: 46px; height: 26px; border-radius: 13px; border: 0; background: var(--line); position: relative; cursor: pointer; }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .2s ease; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.toggle[aria-pressed="true"] { background: var(--accent); }
.toggle[aria-pressed="true"]::after { left: 23px; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table td, .price-table th { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.price-table td:last-child { text-align: right; white-space: nowrap; font-weight: 600; color: var(--ink); padding-left: 16px; }
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 8px 0 24px; }
@media (max-width: 700px) { .plans { grid-template-columns: 1fr; } }
.plan-card { border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 24px; }
.plan-card .estimate-range { margin-bottom: 8px; }
.plan-card .estimate-range small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.calc-side .estimate-range { font-size: 30px; }
.calc-side .estimate-lines td { font-size: 14px; }
.quick-answer .qa-q { font-size: 20px; margin: 0 0 8px; color: var(--ink); }

/* ---------- leads dashboard (/admin) ---------- */
.adm-body { background: var(--soft); }
.adm-top { background: var(--hero-bg); color: #fff; position: sticky; top: 0; z-index: 50; }
.adm-top-inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 20px; }
.adm-top .brand { color: #fff; }
.adm-nav { display: flex; align-items: center; gap: 4px; }
.adm-nav a, .adm-nav .adm-link { color: rgba(255, 255, 255, 0.75); text-decoration: none; padding: 7px 12px; border-radius: var(--radius); font-weight: 500; font-size: 15px; }
.adm-nav a:hover, .adm-nav a.on { color: #fff; background: rgba(255, 255, 255, 0.08); }
.adm-link { background: none; border: 0; cursor: pointer; font: inherit; color: var(--link); padding: 0 6px; }
.adm-main { padding: 32px 0 80px; }
.adm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.adm-head h1 { font-size: 30px; margin: 0; }
.adm-head p { margin: 4px 0 0; }
.adm-back { margin: 0 0 10px; font-size: 15px; }
.adm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.adm-stats div { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.adm-stats strong { display: block; font: 700 26px/1.1 var(--display); color: var(--ink); }
.adm-stats span { font-size: 14px; color: var(--muted); }
.adm-filters { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.adm-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.adm-tabs button { font: 500 14px/1 var(--sans); padding: 8px 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); border-radius: 999px; cursor: pointer; }
.adm-tabs button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.adm-tabs small { opacity: .7; margin-left: 2px; }
#adm-search { font: 400 15px var(--sans); padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); min-width: 260px; background: var(--bg); }
.adm-table-wrap { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.adm-table th { text-align: left; font: 600 13px/1.3 var(--display); color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.adm-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.adm-table tr[data-id] { cursor: pointer; }
.adm-table tr[data-id]:hover td { background: var(--soft); }
.adm-table tr.unseen td { font-weight: 600; color: var(--ink); }
.adm-table small { color: var(--muted); font-weight: 400; }
.adm-table .num, .adm-kv .num { text-align: right; white-space: nowrap; }
.adm-table td.due { color: #a12a1a; font-weight: 600; }
.adm-badge { display: inline-block; font: 600 12px/1 var(--sans); padding: 5px 9px; border-radius: 999px; background: var(--soft); color: var(--text); white-space: nowrap; }
.st-new { background: #e3f4ee; color: #0a6a55; }
.st-contacted { background: #e8eefb; color: #2b4f9e; }
.st-proposal { background: #fbf1dc; color: #8a5a00; }
.st-won { background: #0d7f66; color: #fff; }
.st-lost { background: #f1f1f1; color: #777; }
.st-draft { background: transparent; color: var(--muted); border: 1px dashed var(--line); }
.adm-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.adm-grid-even { grid-template-columns: 1fr 1fr; margin-top: 20px; }
.adm-wide { grid-column: 1 / -1; }
@media (max-width: 900px) { .adm-grid, .adm-grid-even { grid-template-columns: 1fr; } }
.adm-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 20px; }
.adm-grid-even .adm-card { margin-bottom: 0; }
.adm-card h2 { font-size: 17px; margin: 0 0 12px; }
.adm-card h3 { font-size: 15px; margin: 16px 0 6px; }
.adm-card ul { padding-left: 1.2em; margin: 0 0 8px; }
.adm-card blockquote { margin: 0; padding: 4px 0 4px 14px; border-left: 3px solid var(--accent); color: var(--ink); }
.adm-big { font: 700 26px/1.2 var(--display); color: var(--ink); margin: 0 0 10px; }
.adm-kv { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.adm-kv td { padding: 7px 0; border-top: 1px solid var(--line); }
.adm-kv td + td { padding-left: 14px; }
.adm-note { background: #fbf4e6; border-left: 3px solid #c98a1a; padding: 10px 14px; border-radius: 0 var(--radius) var(--radius) 0; }
.adm-contact { line-height: 1.7; margin: 0 0 8px; }
.adm-edit summary { cursor: pointer; color: var(--link); font-size: 14px; margin: 6px 0; }
.adm-edit .form { margin-top: 10px; }
.adm-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.adm-buttons .btn, .adm-row .btn { padding: 8px 12px; font-size: 14px; }
.adm-card textarea, .adm-card input[type=date] { width: 100%; font: 400 15px/1.4 var(--sans); padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--radius); }
.adm-row { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.adm-row input[type=date] { width: auto; }
.adm-log { list-style: none; padding: 0; margin: 0; }
.adm-log li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.adm-log li:first-child { border-top: 0; }
.adm-log .when { color: var(--muted); font-size: 13px; margin-right: 6px; }
.adm-log .kind { font-weight: 600; color: var(--ink); margin-right: 6px; }
.adm-status { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.adm-status select { font: 500 15px var(--sans); padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.adm-bars { display: flex; align-items: flex-end; gap: 6px; height: 180px; padding-top: 10px; }
.adm-bars div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.adm-bars span { width: 100%; max-width: 46px; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 2px; }
.adm-bars small { font-size: 11px; color: var(--muted); margin-top: 6px; white-space: nowrap; }
.adm-flash { position: fixed; right: 20px; bottom: 20px; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--radius); z-index: 300; font-weight: 500; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.adm-flash.bad { background: #a12a1a; }
.adm-count { display: inline-block; min-width: 20px; padding: 2px 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; text-align: center; margin-left: 4px; }
.adm-inbox { display: grid; gap: 12px; }
.adm-mail { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.adm-mail header { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14.5px; }
.adm-mail .subject { font-weight: 600; color: var(--ink); margin: 6px 0 2px; }
.adm-mail .snippet { margin: 0 0 6px; font-size: 15px; }
.adm-mail .reason { font-size: 13px; margin: 0 0 10px; }
.adm-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.adm-actions select { font: 400 14px var(--sans); padding: 7px 9px; border: 1px solid var(--line); border-radius: var(--radius); max-width: 360px; }
.adm-actions .btn { padding: 7px 12px; font-size: 14px; }
.adm-actions label { font-size: 13px; display: flex; align-items: center; gap: 4px; }
.adm-msgs { display: grid; gap: 10px; }
.adm-msg { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; font-size: 14.5px; }
.adm-msg.out { background: var(--soft); }
.adm-msg header { font-size: 14px; }
.adm-msg .subject { font-weight: 600; margin: 4px 0; color: var(--ink); }
.adm-msg .body { white-space: normal; }
.adm-actions .adm-link { font-size: 14px; }
.adm-nav[hidden] { display: none; }
.estimate-range small { display: block; font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-bottom: 2px; }
.estimate-pieces { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.estimate-pieces li { font-size: 14px; background: var(--soft); padding: 5px 10px; border-radius: 999px; color: var(--ink); }
.estimate-pieces span { color: var(--muted); }
.estimate-cta { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.estimate-cta p { margin: 0 0 10px; font-size: 15px; }
.estimate-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.estimate-actions .btn { padding: 10px 16px; font-size: 15px; }
.calc-side .estimate-actions { flex-direction: column; }
.calc-side .estimate-actions .btn { justify-content: center; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
@media (max-width: 760px) { .tiers { grid-template-columns: 1fr; } }
.calc-side .tiers { grid-template-columns: 1fr; }
.tier { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 12px; background: var(--bg); }
.tier.is-pick { border: 2px solid var(--accent); padding: 13px 13px 11px; }
.tier[data-tier] { cursor: pointer; transition: border-color .2s ease; }
.tier[data-tier]:hover { border-color: var(--accent); }
.tier-badge { position: absolute; top: -10px; left: 12px; background: var(--accent); color: var(--accent-ink); font: 600 12px/1 var(--sans); padding: 4px 8px; border-radius: 999px; }
.tier-name { font: 600 15px/1.3 var(--display); color: var(--ink); margin: 0 0 6px; }
.tier-price { font: 700 26px/1.1 var(--display); color: var(--ink); margin: 0 0 6px; letter-spacing: -0.02em; }
.tier-price small { display: block; font: 500 13px/1.4 var(--sans); color: var(--muted); letter-spacing: 0; }
.tier-for { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.45; }
.tier-flex { background: var(--soft); }
.tier-call { display: inline-block; margin-top: 8px; font-weight: 600; font-size: 14px; }
.estimate > .estimate-range, .estimate > .estimate-label { display: none; }
.price-tiers th, .price-tiers td:not(:first-child) { text-align: right; white-space: nowrap; } .price-tiers td small { color: var(--muted); font-weight: 400; }
.price-tiers th:first-child { text-align: left; } .price-tiers td:not(:first-child) { font-weight: 600; color: var(--ink); padding-left: 16px; }
