/* Nadyuk Systems — /stop-missing-calls funnel layer.
   Loaded after pain-pages.css by stop-missing-calls.html only.
   Leak check, phone walkthrough, comparison table and the contact form. */

/* Headline variants: A is the default, B shows when <html data-hv="b"> (set in the head). */
.hv-b { display: none; }
html[data-hv="b"] .hv-a { display: none; }
html[data-hv="b"] .hv-b { display: inline; }
html[data-hv="b"] p .hv-b, html[data-hv="b"] h1 .hv-b { display: inline; }

.head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 26px; }
.head-actions a:not(.btn) { font-weight: 600; }

.demo-tag { display: inline-block; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink) !important; background: var(--amber); border-radius: 999px; padding: 4px 12px; }

/* ---------- Leak check ---------- */
.leak { background: var(--card); border: var(--line) solid var(--ink); border-radius: var(--r-card); corner-shape: squircle; padding: clamp(20px, 3vw, 30px); }
.leak-field + .leak-field, .leak-rate { margin-top: 22px; }
.leak-field label, .leak-rate legend { display: block; font-weight: 600; font-size: 0.975rem; color: var(--ink); padding: 0; }
.leak-control { display: grid; grid-template-columns: minmax(0, 1fr) 6.5ch; align-items: center; gap: 16px; margin-top: 8px; }
.leak-control output { text-align: right; font-weight: 660; font-size: 1.125rem; font-variant-numeric: tabular-nums; color: var(--ink); }
.leak-rate { border: 0; padding: 0; min-width: 0; }
.leak-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.leak-opts label { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: var(--line) solid var(--ink); border-radius: 999px; font-weight: 600; font-size: 0.925rem; color: var(--ink); cursor: pointer; }
.leak-opts input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.leak-opts label:has(input:checked) { background: var(--ink); color: var(--card); }
.leak-opts label:has(input:focus-visible) { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.leak-result { margin-top: 26px; padding-top: 20px; border-top: var(--line) solid var(--ink); }
.leak-label { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3) !important; }
.leak-num { font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 660; letter-spacing: -0.045em; line-height: 1.05; font-variant-numeric: tabular-nums; color: var(--ink) !important; margin-top: 4px; }
.leak-num small { font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--ink-2); }
.leak-sub { margin-top: 6px; min-height: 3.2em; }
.leak-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 18px; }
.leak .fine { margin-top: 16px; }

/* ---------- Phone walkthrough ---------- */
.demo { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-card); corner-shape: squircle; padding: clamp(18px, 3vw, 28px); }
.demo-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 16px; }
.demo-steps button { width: 100%; min-height: 48px; padding: 6px 6px; border: var(--line) solid var(--rule); border-radius: calc(12px * var(--sq, 1)); corner-shape: squircle; background: transparent; color: var(--ink-2); font-size: 0.8125rem; font-weight: 620; line-height: 1.2; }
.demo-steps button b { display: block; font-family: var(--mono); font-size: 0.6875rem; font-weight: 600; color: var(--ink-3); }
.demo-steps button:hover { border-color: var(--ink); color: var(--ink); }
.demo-steps button[aria-current="step"] { background: var(--ink); border-color: var(--ink); color: var(--card); }
.demo-steps button[aria-current="step"] b { color: var(--amber); }
.demo-stage { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: clamp(18px, 3vw, 32px); align-items: center; margin-top: 20px; }
.demo-phone { width: 236px; height: 400px; padding: 9px; border-radius: calc(34px * var(--sq, 1)); corner-shape: squircle; background: var(--ink); }
.demo-screen { position: relative; height: 100%; border-radius: calc(34px * var(--sq, 1) - 9px); corner-shape: squircle; overflow: hidden; background: var(--night-2); color: #fffdf8; padding: 14px 12px; display: flex; flex-direction: column; }
.demo-whose { font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--night-mute) !important; text-align: center; }
.demo-panel { flex: 1; display: flex; flex-direction: column; gap: 9px; margin-top: 14px; min-height: 0; }
.demo-panel[hidden] { display: none; }
.demo-panel p { color: inherit; margin: 0; }
.demo-missed { display: flex; gap: 10px; align-items: center; padding: 10px 11px; border-radius: calc(14px * var(--sq, 1)); corner-shape: squircle; background: rgba(255, 255, 255, 0.09); font-size: 0.78rem; line-height: 1.35; }
.demo-missed svg { flex: none; width: 26px; height: 26px; padding: 5px; border-radius: calc(8px * var(--sq, 1)); corner-shape: squircle; background: var(--vermilion); color: #fff; }
.demo-missed strong { display: block; color: #fffdf8; }
.demo-missed span { color: var(--night-mute); }
.demo-note { font-size: 0.74rem; line-height: 1.4; color: var(--night-mute) !important; text-align: center; margin-top: auto !important; }
.demo-from { font-size: 0.66rem; color: var(--night-mute) !important; margin: 2px 0 -4px 5px !important; }
.demo-bubble { align-self: flex-start; max-width: 94%; padding: 9px 12px; border-radius: calc(16px * var(--sq, 1)) calc(16px * var(--sq, 1)) calc(16px * var(--sq, 1)) calc(5px * var(--sq, 1)); corner-shape: squircle; background: #fffdf8; color: #14172b !important; font-size: 0.79rem; line-height: 1.42; }
.demo-bubble u { color: #1a2fae; text-underline-offset: 2px; }
.demo-book { background: #fffdf8; color: #14172b; border-radius: calc(14px * var(--sq, 1)); corner-shape: squircle; padding: 12px; }
.demo-book-title { font-weight: 650; font-size: 0.86rem; color: #14172b !important; }
.demo-book-sub { font-size: 0.72rem; color: #454a63 !important; margin-top: 2px !important; }
.demo-slots { display: grid; gap: 6px; margin-top: 10px; }
.demo-slots button { min-height: 40px; border: 1.5px solid #14172b; border-radius: calc(10px * var(--sq, 1)); corner-shape: squircle; background: transparent; color: #14172b; font-size: 0.8rem; font-weight: 620; }
.demo-slots button:hover { background: #ede7da; }
.demo-slots button[aria-pressed="true"] { background: #0e8a62; border-color: #0e8a62; color: #fff; }
.demo-booked { font-size: 0.74rem; font-weight: 620; color: #0b6e4e !important; margin-top: 8px !important; min-height: 1.3em; }
.demo-screen :focus-visible { outline-color: var(--amber); }
.demo-book :focus-visible { outline-color: var(--cobalt); }
.demo-side > * + * { margin-top: 12px; }
.demo-cap-title { font-size: 1.125rem; font-weight: 650; letter-spacing: -0.015em; color: var(--ink) !important; }
.demo-fail { font-size: 0.9rem; border-left: 3px solid var(--amber); padding-left: 12px; }
.demo-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px !important; }
.demo-nav .btn[disabled] { opacity: 0.4; cursor: default; }

/* ---------- Monthly plan vs flat setup ---------- */
.vs { width: 100%; border-collapse: separate; border-spacing: 0; }
.vs th, .vs td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); font-size: 0.95rem; }
.vs thead th { font-size: 0.875rem; font-weight: 650; color: var(--ink); border-bottom: var(--line) solid var(--ink); vertical-align: bottom; }
.vs tbody th { width: 24%; padding-left: 0; font-weight: 650; color: var(--ink); }
.vs thead th:first-child { padding-left: 0; }
.vs td { color: var(--ink-2); }
.vs .me { background: var(--card); color: var(--ink); border-left: var(--line) solid var(--ink); border-right: var(--line) solid var(--ink); }
.vs thead .me { border-top: var(--line) solid var(--ink); border-radius: var(--r-sm) var(--r-sm) 0 0; corner-shape: squircle; }
.vs tbody tr:last-child .me { border-bottom: var(--line) solid var(--ink); border-radius: 0 0 var(--r-sm) var(--r-sm); corner-shape: squircle; }
.vs tbody tr:last-child th, .vs tbody tr:last-child td:not(.me) { border-bottom: 0; }

/* ---------- Contact form (inside the night .cta card) ---------- */
.cta h2.cta-title { margin-top: 0; }
.cta h2.cta-title::before { display: none; }
.lead-form { margin-top: 8px; }
.lead-form[hidden], .lead-panel[hidden], .lead-fallback[hidden] { display: none; }
.lead-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.lead-form .field-label { color: #fffdf8; }
.lead-form .field-label small { font-weight: 500; color: var(--night-mute); }
.lead-form .field[aria-invalid="true"] { border-color: #ff8f78; }
.lead-err { display: block; min-height: 0; margin-top: 6px; font-size: 0.875rem; font-weight: 600; color: #ffb3a3; }
.lead-err:empty { display: none; }
.lead-hint { display: block; margin-top: 6px; font-size: 0.85rem; color: var(--night-mute); }
.lead-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; margin-top: 18px; font-size: 0.925rem; line-height: 1.5; color: var(--night-mute); cursor: pointer; }
.lead-check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--amber); }
.lead-check strong { color: #fffdf8; }
.lead-sep { margin-top: 22px; padding-top: 4px; border-top: 1px solid var(--night-rule); }
.lead-ts:not(:empty) { margin-top: 20px; }
.lead-submit { margin-top: 24px; }
.lead-submit .btn { margin-top: 0; min-width: 220px; }
.lead-submit .btn[aria-disabled="true"] { opacity: 0.6; cursor: progress; }
.lead-fine { font-size: 0.85rem; line-height: 1.55; }
.lead-status { font-size: 0.925rem; font-weight: 600; color: #fffdf8 !important; min-height: 1.4em; }
.lead-panel { margin-top: 18px; padding: 18px 20px; border-radius: calc(14px * var(--sq, 1)); corner-shape: squircle; background: var(--night-2); border: 1.5px solid var(--night-rule); }
.lead-panel:focus { outline: none; }
.lead-panel:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.lead-panel-title { font-size: 1.1875rem; font-weight: 650; letter-spacing: -0.015em; color: #fffdf8 !important; margin-top: 0 !important; }
.lead-panel.is-error { border-color: #ff8f78; }
.lead-panel-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.lead-panel-actions .btn { margin-top: 0; }
.lead-ref { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.04em; color: var(--night-mute); }
/* Sent screen: the whole night card turns into it. The canvas fills the card (#ask is position: relative). */
.lead-done[hidden] { display: none; }
.cta.is-sent > .cta-title, .cta.is-sent > p { display: none; }
.cta.is-sent { padding: 0; min-height: clamp(360px, 52vw, 420px); display: grid; }
.lead-done { display: grid; }
.lead-done:focus { outline: none; }
.cta.is-sent:has(.lead-done:focus-visible) { outline: 3px solid var(--amber); outline-offset: 3px; }
.lead-done-bg { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; pointer-events: none; }
.lead-done-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: clamp(36px, 6vw, 56px) clamp(22px, 4vw, 40px); }
.lead-done-check { width: 52px; height: 52px; fill: none; stroke: #12b07c; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.cta .lead-done-title { margin-top: 18px; font-size: clamp(1.6rem, 4.4vw, 2.15rem); font-weight: 660; letter-spacing: -0.03em; line-height: 1.1; color: #fffdf8; text-wrap: balance; }
.cta .lead-done-sub { margin-top: 10px; font-size: 1.0625rem; color: #d6d9ee; text-wrap: balance; }
.lead-done-in .btn { margin-top: 26px; }
.cta .lead-done-meta { margin-top: 26px; display: flex; flex-direction: column; gap: 4px; font-size: 0.8125rem; line-height: 1.5; color: var(--night-mute); text-wrap: balance; }
.cta .lead-done-meta .lead-ref { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; }
.lead-done-in .linkish { margin-top: 14px; font-size: 0.875rem !important; }
@media (prefers-reduced-motion: no-preference) {
  .cta.is-sent .lead-done-check circle { stroke-dasharray: 132; stroke-dashoffset: 132; animation: done-draw 0.7s var(--ease) 0.1s forwards; }
  .cta.is-sent .lead-done-check path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: done-draw 0.4s var(--ease) 0.65s forwards; }
  .cta.is-sent .lead-done-in > :not(svg) { animation: demo-in 0.5s var(--ease) both; animation-delay: 0.5s; }
  .cta.is-sent .lead-done-in > :nth-child(3) { animation-delay: 0.6s; }
  .cta.is-sent .lead-done-in > :nth-child(n+4) { animation-delay: 0.75s; }
}
@keyframes done-draw { to { stroke-dashoffset: 0; } }
.cta button.linkish { background: none; border: 0; padding: 0; color: var(--sky); text-decoration: underline; text-underline-offset: 0.2em; font: inherit; cursor: pointer; }
.cta button.linkish:hover { color: #fff; }

@media (max-width: 680px) {
  .demo-stage { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .demo-side { width: 100%; }
  .vs thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .vs, .vs tbody, .vs tr, .vs th, .vs td { display: block; width: auto; }
  .vs tbody th { width: auto; padding: 18px 0 8px; border-bottom: 0; font-size: 1rem; }
  .vs td { padding: 12px 14px; border-bottom: 0; }
  .vs td::before { content: attr(data-label); display: block; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
  .vs td:not(.me) { background: var(--sand-2); border-radius: var(--r-sm) var(--r-sm) 0 0; corner-shape: squircle; }
  .vs .me, .vs tbody tr:last-child .me { border: var(--line) solid var(--ink); border-radius: 0 0 var(--r-sm) var(--r-sm); corner-shape: squircle; }
  .vs tbody tr + tr th { border-top: 1px solid var(--rule); margin-top: 18px; }
}
@media (max-width: 520px) {
  .lead-row { grid-template-columns: minmax(0, 1fr); }
  .demo-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-submit .btn, .leak-actions .btn, .head-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .demo-panel:not([hidden]) > * { animation: demo-in 0.35s var(--ease) both; }
  .demo-panel:not([hidden]) > *:nth-child(2) { animation-delay: 0.12s; }
  .demo-panel:not([hidden]) > *:nth-child(3) { animation-delay: 0.24s; }
  .demo-panel:not([hidden]) > *:nth-child(4) { animation-delay: 0.36s; }
}
@keyframes demo-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
