/* =========================================================
   Delow — components shared by all pages (visual examples, steps, CTA band, FAQ, contact form)
   ========================================================= */

/* Visual: ranking */
.viz-rank { width: min(100%, 400px); display: grid; gap: 8px; }
.viz-rank__row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .09); color: var(--on-dark); font-size: .9375rem; }
.viz-rank__row b { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; background: rgba(255, 255, 255, .14); font-family: var(--font-display); font-size: .875rem; color: var(--on-dark); }
.viz-rank__row.is-you { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .6); transform: scale(1.03); }
.viz-rank__row.is-you b { background: var(--accent); color: #fff; }
.viz-rank__row em { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-size: .8125rem; color: #15803d; font-weight: 600; white-space: nowrap; }
.viz-rank__row em .ico { width: 16px; height: 16px; }

/* Visual: ad */
.viz-ad { width: min(100%, 420px); display: grid; gap: 16px; }
.viz-ad__card { padding: 18px; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .6); }
.viz-ad__spons { font-size: .8125rem; color: var(--muted); }
.viz-ad__title { margin-top: 6px; font-weight: 600; color: #1a0dab; font-size: 1.0625rem; line-height: 1.3; }
.viz-ad__desc { margin-top: 4px; font-size: .9375rem; color: var(--ink-2); }
.viz-ad__call { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 7px 14px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .8125rem; font-weight: 600; }
.viz-ad__call .ico { width: 14px; height: 14px; }
.viz-ad__flow { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; color: var(--on-dark); font-size: .875rem; }
.viz-ad__flow span { padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .11); }
.viz-ad__flow .is-on { background: var(--accent-light); color: var(--ink); font-weight: 600; }
.viz-ad__flow .ico { width: 14px; height: 14px; opacity: .8; }

/* Visual: map */
.viz-map { width: min(100%, 440px); display: grid; gap: 12px; }
.viz-map__canvas { position: relative; height: 170px; border-radius: 16px; background: #2c2830; overflow: hidden; }
.viz-map__road { position: absolute; background: rgba(255, 255, 255, .08); }
.viz-map__road--a { left: -10%; right: -10%; top: 58%; height: 10px; rotate: -8deg; }
.viz-map__road--b { top: -10%; bottom: -10%; left: 34%; width: 8px; rotate: 12deg; }
.viz-map__road--c { left: 50%; right: -10%; top: 22%; height: 6px; rotate: 18deg; }
.viz-map__pin { position: absolute; left: var(--x); top: var(--y); translate: -50% -100%; color: var(--on-dark-2); }
.viz-map__pin .ico { width: 28px; height: 28px; fill: #3a3540; stroke-width: 1.6; }
.viz-map__pin.is-you { color: #fff; z-index: 1; }
.viz-map__pin.is-you .ico { width: 40px; height: 40px; fill: var(--accent); }
.viz-map__pin.is-you::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 14px; height: 6px; translate: -50% 0; border-radius: 50%; background: rgba(0, 0, 0, .5); }
.viz-map__list { display: grid; gap: 6px; }
.viz-map__list p { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .09); color: var(--on-dark); font-size: .875rem; }
.viz-map__list p.is-you { background: #fff; color: var(--ink); }
.viz-map__list p.is-you span { color: #15803d; font-weight: 600; }
.viz-map__list b, .viz-map__list span { white-space: nowrap; }
@media (max-width: 479px) { .viz-map__list span { font-size: .8125rem; } }

/* Visual: funnel */
.viz-funnel { width: min(100%, 420px); display: grid; gap: 12px; }
.viz-funnel__label { color: var(--on-dark); font-size: .9375rem; }
.viz-funnel__row { display: grid; grid-template-columns: 56px 1fr 28px; align-items: center; gap: 12px; color: var(--on-dark); font-size: .875rem; }
.viz-funnel__row i { display: block; height: 14px; border-radius: 8px; background: rgba(255, 255, 255, .2); width: var(--w); }
.viz-funnel__row.is-you i { background: var(--accent-light); }
.viz-funnel__row b { font-family: var(--font-display); color: var(--on-dark); font-size: 1.125rem; }
.viz-funnel__phone { display: grid; gap: 8px; margin-top: 8px; padding: 16px; border-radius: 16px; background: #fff; }
.viz-funnel__field { height: 34px; border-radius: 8px; background: var(--surface); }
.viz-funnel__btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; font-size: .875rem; }
.viz-funnel__btn .ico { width: 16px; height: 16px; }

/* Visual: report */
.viz-report { width: min(100%, 440px); padding: 18px; border-radius: 16px; background: #fff; color: var(--ink); display: grid; gap: 4px; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .6); }
.viz-report__head { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9375rem; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.viz-report__head .ico { width: 18px; height: 18px; color: var(--accent); }
.viz-report__row { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: .9375rem; }
.viz-report__row b { margin-left: auto; font-size: .8125rem; font-weight: 600; color: var(--muted); }
.sev { flex: none; width: 9px; height: 9px; border-radius: 50%; }
.sev--hi { background: #dc2626; }
.sev--mid { background: #f59e0b; }
.sev--lo { background: #a3a3a3; }

/* Visual: site */
.viz-site { position: relative; width: min(100%, 420px); border-radius: 16px; background: #fff; overflow: visible; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .6); }
.viz-site__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.viz-site__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-2); }
.viz-site__bar span { margin-left: 10px; padding: 3px 12px; border-radius: 999px; background: var(--surface); font-size: .8125rem; color: var(--ink-2); }
.viz-site__body { display: grid; gap: 10px; padding: 22px 18px 24px; }
.viz-site__h { height: 18px; width: 70%; border-radius: 6px; background: var(--ink); }
.viz-site__p { height: 9px; width: 92%; border-radius: 6px; background: var(--surface-2); }
.viz-site__p--short { width: 64%; }
.viz-site__btn { display: inline-flex; align-items: center; gap: 6px; justify-self: start; margin-top: 6px; padding: 9px 16px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .8125rem; font-weight: 600; }
.viz-site__btn .ico { width: 14px; height: 14px; }
/* Speed score: number and word stacked inside the ring */
.viz-site__score {
  position: absolute; right: -14px; bottom: -22px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  width: 108px; height: 108px; border-radius: 50%; background: var(--dark); color: #fff; box-shadow: 0 0 0 6px #2a2730;
}
.viz-site__score svg { position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px); rotate: -90deg; }
.viz-site__score circle { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 5; }
.viz-site__score circle.is-on { stroke: #22c55e; stroke-linecap: round; stroke-dasharray: 170; stroke-dashoffset: 3.4; }
.viz-site__score b { position: relative; font-family: var(--font-display); font-size: 1.75rem; font-weight: 650; letter-spacing: -.03em; line-height: 1; }
.viz-site__score span { position: relative; font-size: .75rem; font-weight: 500; line-height: 1; color: var(--on-dark-2); }


/* ---------- Process ---------- */
.process { background: var(--surface); }
.process .section-head { margin-bottom: 32px; }
.process__path { display: none; width: 100%; height: 64px; margin-bottom: 4px; position: relative; z-index: 0; overflow: visible; }
.process__path path { fill: none; stroke: var(--accent-2); stroke-width: 1.6; stroke-dasharray: 5 7; vector-effect: non-scaling-stroke; }
.process__path path.tip { stroke-dasharray: none; stroke-linecap: round; stroke-linejoin: round; }
.steps { display: grid; gap: 16px; counter-reset: none; position: relative; z-index: 1; }
.step { position: relative; display: flex; flex-direction: column; padding: 14px 14px 26px; border-radius: var(--r-card); background: #fff; transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.step__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.step__tab { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: var(--r-pill); background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: .9375rem; letter-spacing: -.01em; }
.step__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--surface); color: var(--ink); transition: transform .5s var(--ease-out), background-color .3s ease, color .3s ease; }
.step__icon .ico { width: 24px; height: 24px; }
.step h3, .step > p, .step .tags { padding-inline: 12px; }
.step h3 { font-size: 1.625rem; letter-spacing: -.03em; }
.step > p { margin-top: 10px; color: var(--ink-2); font-size: var(--fs-card); line-height: 1.55; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 20px; }
.tags li { padding: 5px 12px; border-radius: 999px; background: var(--surface); font-size: .8125rem; font-weight: 500; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) {
  .step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
  .step:hover .step__icon { transform: translateY(-3px) rotate(-12deg); background: var(--accent); color: #fff; }
}
@media (min-width: 700px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .process__path { display: block; }
}
html.js .process__path path { stroke-dashoffset: 0; clip-path: inset(0 100% 0 0); transition: clip-path 1.4s var(--ease-in-out) .2s; }
html.js .process__path.is-in path { clip-path: inset(0 0 0 0); }

/* ---------- CTA band ---------- */
.cta-band-wrap { padding-block: var(--section) 0; }
.cta-band {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 32px; background: var(--dark); color: var(--on-dark);
  display: grid; gap: 40px; padding: 40px 24px 24px;
}
.cta-band__mesh {
  position: absolute; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 18% 20%, rgba(107,58,100,.85), transparent 70%),
    radial-gradient(35% 45% at 85% 85%, rgba(74,37,69,.9), transparent 70%),
    radial-gradient(30% 35% at 70% 10%, rgba(203,169,197,.35), transparent 70%),
    var(--dark);
  filter: blur(10px);
  animation: mesh 18s ease-in-out infinite alternate;
}
@keyframes mesh { to { transform: translate3d(-4%, 3%, 0) rotate(4deg) scale(1.06); } }
.cta-band .grain { z-index: 0; opacity: .12; }
.cta-band > * { min-width: 0; }
@media (max-width: 559px) { .cta-band { padding: 32px 18px 18px; border-radius: 26px; } .cta-band__actions .btn { width: 100%; justify-content: space-between; } }
/* Phone: the band is a call to act, the photo only adds scroll */
@media (max-width: 767px) { .cta-band__media { display: none; } .cta-band { padding-bottom: 32px; } }
.cta-band__copy { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-content: center; }
.cta-band__copy .h2 { max-width: 17ch; color: #fff; }
.cta-band__copy p { color: var(--on-dark-2); max-width: 46ch; font-size: var(--fs-lead); }
.cta-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
.cta-band__phone { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: #fff; }
.cta-band__phone small { display: block; font-family: var(--font-text); font-weight: 400; font-size: .8125rem; color: var(--on-dark-2); }
.cta-band__phone-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.1); transition: background-color .25s ease, transform .3s var(--ease-out); }
.cta-band__phone-icon .ico { width: 22px; height: 22px; }
@media (hover: hover) and (pointer: fine) { .cta-band__phone:hover .cta-band__phone-icon { background: #fff; color: var(--ink); transform: rotate(-12deg); } }
.cta-band__media { position: relative; z-index: 1; }
.cta-band__photo { aspect-ratio: 4 / 3; border-radius: 22px; }
.ring3d--cta { width: 140px; right: -24px; top: -36px; z-index: 2; }
@media (min-width: 960px) {
  .cta-band { grid-template-columns: 1.1fr 1fr; gap: 56px; padding: 64px; align-items: center; }
  .ring3d--cta { width: 180px; right: -50px; top: -60px; }
}

/* ---------- FAQ ---------- */
.faq__grid { display: grid; gap: 40px; }
.faq__side .h2 { max-width: 12ch; }
.faq__help { margin-top: 32px; padding: 24px; border-radius: var(--r-card); background: var(--dark); color: var(--on-dark-2); display: grid; gap: 10px; justify-items: start; max-width: 420px; position: relative; overflow: hidden; }
.faq__help-title { font-family: var(--font-display); font-weight: 600; font-size: 1.375rem; letter-spacing: -.02em; color: #fff; }
.faq__help .btn { margin-top: 8px; }
.faq__list { display: grid; gap: 10px; }
.qa { border-radius: 18px; background: var(--surface); transition: background-color .25s ease; }
.qa[open] { background: #fff; box-shadow: 0 0 0 1.5px var(--ink); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; letter-spacing: -.015em; line-height: 1.3; }
.qa summary::-webkit-details-marker { display: none; }
.qa__icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: #fff; transition: background-color .25s ease, color .25s ease, transform .35s var(--ease-out); }
.qa[open] .qa__icon { background: var(--ink); color: #fff; transform: rotate(45deg); }
.qa__icon .ico { width: 18px; height: 18px; stroke-width: 2.2; }
.qa__a { padding: 0 22px 22px; color: var(--ink-2); max-width: 64ch; }
@media (hover: hover) and (pointer: fine) { .qa:not([open]):hover { background: var(--surface-2); } }
/* First six questions show; the rest open with one button (all of them stay in the HTML) */
html.js .faq__list.is-collapsed > details:nth-of-type(n+7) { display: none; }
.faq__more { justify-self: start; margin-top: 10px; }
@media (hover: hover) and (pointer: fine) { .faq__more:hover .btn__icon .ico { transform: rotate(90deg); } }
.qa.is-new { animation: qa-in .4s var(--ease-out) both; animation-delay: calc(var(--k, 0) * 50ms); }
@keyframes qa-in { from { opacity: 0; transform: translateY(10px); } }
/* Phone/tablet: questions first, the "call us" card after them */
@media (max-width: 959px) {
  .faq__grid { gap: 0; }
  .faq__side { display: contents; }
  .faq__list { margin-top: 28px; }
  .faq__help { order: 2; margin-top: 32px; max-width: none; }
}
@media (min-width: 960px) {
  .faq__grid { grid-template-columns: 1fr 1.5fr; gap: 72px; align-items: start; }
  .faq__side { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* ---------- Contact ---------- */
.contact { padding-top: 0; }
.contact__panel { display: grid; gap: 40px; padding: 28px 16px; border-radius: 28px; background: var(--surface); }
.contact__panel > * { min-width: 0; }
.nap__item p { min-width: 0; overflow-wrap: anywhere; }
.contact__info .h2 { font-size: clamp(2rem, 1.5rem + 1.7vw, 3.125rem); max-width: 17ch; }
.contact__info .lead { margin-top: 20px; }
.contact__info .check-list { margin-top: 24px; }
.nap { display: grid; gap: 10px; margin-top: 32px; }
.nap__item { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 16px; background: #fff; }
.nap__item .icon-box { width: 46px; height: 46px; border-radius: 12px; background: var(--surface); }
.nap__item .icon-box .ico { width: 21px; height: 21px; }
.nap__item p { display: grid; font-size: var(--fs-card); color: var(--ink-2); }
.nap__item strong { color: var(--ink); font-weight: 600; }
.nap__item a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.nap__item a:hover { text-decoration-color: currentColor; }
.map { position: relative; margin-top: 10px; border-radius: 16px; overflow: hidden; background: #fff; min-height: 220px; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; text-align: center;
  background-color: #fff;
}
.map__pin { color: var(--ink); }
.map__pin .ico { width: 40px; height: 40px; fill: var(--surface); }
.map__note { font-size: .8125rem; color: var(--muted); }
.contact__form-wrap { padding: 24px 20px; border-radius: var(--r-card); background: #fff; box-shadow: 0 1px 2px rgba(15,14,17,.04), 0 24px 48px -28px rgba(15,14,17,.25); align-self: start; }
/* Phone/tablet: the panel runs edge to edge (no box inside a box), and the form comes
   right after the heading; reassurance, address and map follow it. */
@media (max-width: 959px) {
  .contact { padding-bottom: 0; }
  .contact > .wrap { padding-inline: 0; }
  .contact__panel { gap: 0; padding: 48px var(--gutter) 40px; border-radius: 0; }
  .contact__info { display: contents; }
  .contact__form-wrap { order: 1; margin-top: 28px; padding: 22px 18px; }
  .contact__info > .check-list { order: 2; margin-top: 32px; }
  .nap { order: 3; margin-top: 28px; }
  .map { order: 4; }
}
@media (min-width: 960px) {
  .contact__panel { grid-template-columns: 1fr 1.05fr; gap: 56px; padding: 56px; }
  .contact__form-wrap { padding: 36px; position: sticky; top: calc(var(--header-h) + 24px); }
}

@media (prefers-reduced-motion: reduce) { .cta-band__mesh { animation: none; } }
