/* MERIDEX Digital — site styles
   Palette: survey-marking paint on a cool concrete ground.
   --mark is the spray-paint orange used to "mark out" the spot a business should occupy. */
:root {
  --paper: #f3f5f4;
  --paper-2: #e6eae9;
  --ink: #142127;
  --slate: #4a5a61;
  --rule: #c8d0d2;
  --mark: #f25c05;
  --pipe: #1d5fb8;
  --white: #ffffff;
  --measure: 66ch;
  --wrap: 1160px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--pipe); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--mark); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1rem; }
.prose h2 + p, .prose h3 + p { margin-top: .5rem; }

/* Type scale (1.25 ratio, set on 17px) */
h1, h2, h3 { font-variation-settings: "wdth" 125; line-height: 1.05; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.1rem); font-weight: 820; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.45rem); font-weight: 780; }
h3 { font-size: 1.25rem; font-weight: 720; line-height: 1.2; font-variation-settings: "wdth" 112; }
p { margin: 0; }
.lede { font-size: 1.22rem; line-height: 1.5; color: var(--slate); max-width: 52ch; }
.small { font-size: .9rem; color: var(--slate); }

/* Header */
.site-head { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font-weight: 800; font-variation-settings: "wdth" 125; font-size: 1.15rem; letter-spacing: .02em; }
.brand svg { width: 28px; height: 28px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.4rem; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: .97rem; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 2px; }
.nav-toggle { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.25rem; border-radius: 6px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid var(--ink); font-family: inherit; cursor: pointer; }
.btn-mark { background: var(--mark); border-color: var(--mark); color: var(--ink); }
.btn-mark:hover { background: #ff7424; border-color: #ff7424; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #22343c; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--paper-2); }
.nav .btn { min-height: 42px; padding: .45rem 1rem; color: var(--ink); }
.nav .btn:hover { text-decoration: none; }

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { max-width: 13ch; }
.hero .kicker { font-weight: 600; color: var(--slate); margin-bottom: 1rem; }
.hero .lede { margin-top: 1.25rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* Phone illustration */
.phone { width: min(330px, 100%); margin-left: auto; margin-right: auto; background: var(--white); border: 2px solid var(--ink); border-radius: 30px; padding: 14px 12px 18px; box-shadow: 10px 10px 0 var(--paper-2); }
.phone .bar { height: 6px; width: 70px; background: var(--rule); border-radius: 6px; margin: 0 auto 12px; }
.phone .search { border: 1px solid var(--rule); border-radius: 22px; padding: .5rem .85rem; font-size: .9rem; color: var(--ink); display: flex; gap: .5rem; align-items: center; }
.phone .search svg { width: 15px; height: 15px; flex: none; }
.phone .map { margin: 10px 0 6px; border-radius: 12px; overflow: hidden; border: 1px solid var(--rule); }
.phone ol { list-style: none; margin: 0; padding: 0; }
.phone li { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 9px 10px; border-bottom: 1px solid var(--paper-2); }
.phone .nm { font-weight: 700; font-size: .92rem; }
.phone .stars { height: 7px; width: 74px; border-radius: 4px; background: linear-gradient(90deg, var(--slate) var(--w, 80%), var(--paper-2) 0); }
.phone .call { grid-row: span 2; font-size: .78rem; font-weight: 700; border: 1px solid var(--pipe); color: var(--pipe); border-radius: 14px; padding: 3px 10px; }
.phone .fold { font-size: .76rem; color: var(--slate); text-align: center; padding: 6px 0 4px; border-top: 1px dashed var(--rule); }
.phone li.you { opacity: .55; }
.phone li.target { z-index: 1; }
.phone li.target::after { content: ""; position: absolute; inset: 2px -4px; border: 2.5px dashed var(--mark); border-radius: 8px; pointer-events: none; animation: markout 1.1s ease-out .4s both; }
@keyframes markout { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.figcap { font-size: .82rem; color: var(--slate); text-align: center; margin-top: 1rem; }

/* Sections */
.band { padding: clamp(3rem, 7vw, 5.5rem) 0; border-top: 1px solid var(--rule); }
.band-alt { background: var(--white); }
.band-ink { background: var(--ink); color: var(--paper); border-top: 0; }
.band-ink a { color: #8fb8ff; }
.band-ink .lede, .band-ink .small { color: #b9c6cb; }
.two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.two > h2 { position: sticky; top: 1.5rem; }

/* Audit steps: a real sequence, so numbered */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.6rem 1fr; gap: .2rem 1rem; padding: 1.15rem 0; border-top: 1px solid var(--rule); }
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps li::before { content: counter(s); grid-row: span 2; font-weight: 800; font-variation-settings: "wdth" 125; font-size: 1.5rem; line-height: 1.1; color: var(--ink); }
.steps h3 { font-size: 1.12rem; }
.steps p { color: var(--slate); }

/* Evidence labels */
.evidence { display: grid; gap: 1rem; margin: 1.5rem 0 0; }
.evidence div { border-left: 4px solid var(--ink); padding: .2rem 0 .2rem 1rem; }
.evidence div.partial { border-left-style: dashed; border-left-color: var(--mark); }
.evidence div.unverified { border-left-color: var(--rule); }
.evidence dt { font-weight: 750; }
.evidence dd { margin: .15rem 0 0; color: var(--slate); }
.band-ink .evidence dd { color: #b9c6cb; }
.band-ink .evidence div { border-left-color: var(--paper); }
.band-ink .evidence div.partial { border-left-color: var(--mark); }
.band-ink .evidence div.unverified { border-left-color: #51636a; }

/* Quote sheet (prices) */
.quote { background: var(--white); border: 2px solid var(--ink); border-radius: 8px; max-width: 760px; }
.quote-head { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 1.25rem; border-bottom: 2px solid var(--ink); font-weight: 700; }
.quote-head span:last-child { color: var(--slate); font-weight: 500; }
.line { padding: 1.15rem 1.25rem; border-bottom: 1px solid var(--rule); }
.line:last-child { border-bottom: 0; }
.line-top { display: flex; align-items: baseline; gap: .6rem; }
.line-top h3 { flex: none; max-width: 70%; }
.line-top .leader { flex: 1; border-bottom: 2px dotted var(--rule); transform: translateY(-.3em); min-width: 1rem; }
.line-top .price { flex: none; font-weight: 800; font-variation-settings: "wdth" 115; font-size: 1.2rem; white-space: nowrap; }
.line p { color: var(--slate); margin-top: .35rem; max-width: 56ch; }
.line.founding { background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(242,92,5,.06) 10px 20px); }
.quote-foot { padding: .9rem 1.25rem; font-size: .9rem; color: var(--slate); border-top: 2px solid var(--ink); }

/* Checklist */
.checks { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.checks li { position: relative; padding: .7rem 0 .7rem 2.1rem; border-top: 1px solid var(--rule); }
.checks li:last-child { border-bottom: 1px solid var(--rule); }
.checks li::before { content: ""; position: absolute; left: 0; top: .95rem; width: 1.1rem; height: 1.1rem; border: 2px solid var(--ink); border-radius: 3px; background: var(--white); }

/* FAQ */
.faq { max-width: var(--measure); }
.faq details { border-top: 1px solid var(--rule); padding: 1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 800; font-size: 1.3rem; line-height: 1; color: var(--slate); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: .6rem; color: var(--slate); }

/* Areas */
.areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.areas h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.areas p { color: var(--slate); font-size: .97rem; }

/* Page header (inner pages) */
.page-head { padding: clamp(2.25rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem); }
.crumbs { font-size: .88rem; color: var(--slate); margin-bottom: 1.1rem; }
.crumbs a { color: var(--slate); }
.page-head h1 { max-width: 18ch; }
.page-head .lede { margin-top: 1.1rem; }

.article { padding: 0 0 clamp(3rem, 6vw, 5rem); }
.article .prose h2 { margin-top: 2.75rem; font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.article .prose h3 { margin-top: 1.75rem; }
.article ul:not(.checks) { padding-left: 1.2rem; }
.article li + li { margin-top: .35rem; }
.note { border-left: 4px dashed var(--mark); padding: .4rem 0 .4rem 1rem; color: var(--slate); }
.source { font-size: .88rem; color: var(--slate); }

/* CTA band */
.cta .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; }
.cta h2 { max-width: 16ch; }
.cta .actions { margin-top: 0; }

/* Form */
.form { max-width: 640px; display: grid; gap: 1.1rem; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: .35rem; }
.field .hint { display: block; font-weight: 400; font-size: .9rem; color: var(--slate); margin-top: -.15rem; margin-bottom: .4rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--white); border: 2px solid #8a999f; border-radius: 6px; padding: .7rem .8rem; min-height: 48px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: 3px solid var(--mark); outline-offset: 1px; }
.field textarea { min-height: 110px; }
.check-row { display: flex; gap: .7rem; align-items: flex-start; }
.check-row input { width: 22px; height: 22px; margin-top: .2rem; flex: none; accent-color: var(--ink); }
.hp { position: absolute; left: -5000px; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

/* Footer */
.site-foot { background: var(--ink); color: #b9c6cb; padding: 3rem 0 6.5rem; font-size: .95rem; }
.site-foot .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.site-foot a { color: var(--paper); }
.site-foot h2 { font-size: 1rem; color: var(--paper); font-variation-settings: "wdth" 112; margin-bottom: .6rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li + li { margin-top: .35rem; }
.site-foot .brand { color: var(--paper); margin-bottom: .8rem; }
.site-foot .small { color: #9fb0b6; }

/* Mobile call bar: the tap-to-call we tell clients to have */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; gap: .6rem; padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--rule); }
.callbar .btn { flex: 1; }

@media (max-width: 900px) {
  .hero .wrap, .two, .cta .wrap { grid-template-columns: 1fr; }
  .two > h2 { position: static; }
  .site-foot .wrap { grid-template-columns: 1fr 1fr; }
  .site-foot .wrap > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 1.03rem; }
  .nav-toggle { display: block; }
  .nav-toggle summary { list-style: none; cursor: pointer; font-weight: 700; padding: .5rem .8rem; border: 2px solid var(--ink); border-radius: 6px; }
  .nav-toggle summary::-webkit-details-marker { display: none; }
  .nav-toggle[open] ul { display: grid; }
  .nav-toggle ul { position: absolute; left: 0; right: 0; top: 68px; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 1rem 1.25rem 1.25rem; gap: .2rem; }
  .nav-toggle li a { display: block; padding: .6rem 0; }
  .nav-desktop { display: none; }
  .site-head { position: relative; }
  .callbar { display: flex; }
  .two-fields { grid-template-columns: 1fr; }
  .line-top { flex-wrap: wrap; }
  .line-top h3 { max-width: 100%; }
  .line-top .leader { display: none; }
  .line-top .price { width: 100%; }
}
@media (min-width: 761px) { .nav-toggle { display: none !important; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Steps inside article prose: cancel prose spacing so the number lines up */
.article .prose .steps { margin-top: 1.25rem; }
.article .prose .steps h3, .article .prose .steps p { margin: 0; }
.article .prose .steps p { margin-top: .2rem; }
