/* Home sections (index.html only): 24-hour dial, admin cost estimate, closing network.
   Rules that need JS sit under .hs, which a head script adds and home-sections.js or this file's
   onerror removes if anything fails. Without .hs the sections are hidden by an inline rule in <head>. */
:root {
  --hs-tick: color-mix(in srgb, var(--muted) 40%, var(--white));
}
.hs-vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- 24-hour dial ---------- */
.hs #hours { height: 260vh; position: relative; padding: 0; }
.hs .dialStage { position: sticky; top: calc(var(--hdr, 77px) + env(safe-area-inset-top, 0px)); height: calc(100vh - var(--hdr, 77px)); height: calc(100svh - var(--hdr, 77px)); min-height: 560px; display: flex; align-items: center; background: var(--bg); }
.dialGrid { display: grid; gap: 20px; align-items: center; width: 100%; }
@media (min-width: 900px) { .dialGrid { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 72px; } }
.dialTxt h2 { font-size: clamp(26px, 3.6vw, 48px); line-height: 1.08; max-width: 14ch; }
.dseg { display: inline-flex; margin-top: 26px; border: 1.5px solid var(--ink); border-radius: 10px; overflow: hidden; }
.dseg button { appearance: none; background: none; border: 0; margin: 0; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--fg); padding: 11px 18px; cursor: pointer; transition: background 0.2s, color 0.2s; }
.dseg button + button { border-left: 1.5px solid var(--ink); }
.dseg button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.dseg button:focus-visible { outline: 2px solid var(--blue); outline-offset: -5px; }
.dseg button[aria-pressed="true"]:focus-visible { outline-color: var(--white); }
.dlegend { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--fg-muted); font-size: 14.5px; }
.dlegend.cats { margin-top: 12px; }
.dlegend li { display: flex; align-items: center; gap: 8px; }
.dkey { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); flex-shrink: 0; }
.dkey.dkey-open { width: 22px; height: 6px; border-radius: 3px; }
.dkey.wait { border: 2px solid var(--ink); background: var(--white); }
.dkey.sq { border-radius: 2px; width: 11px; height: 11px; }
.dkey.dm { border-radius: 2px; width: 10px; height: 10px; transform: rotate(45deg); }
.dkey.tr { border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.dcap { margin-top: 14px; font-size: 13px; color: var(--fg-muted); }
#dial { width: min(100%, calc(100svh - 150px)); aspect-ratio: 1; justify-self: center; display: block; }
@media (max-width: 379px) {
  .dlegend { font-size: 13px; }
  .dlegend.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
  .dlegend.cats li { min-width: 0; }
}
@media (max-width: 899px) {
  #dial { width: min(100%, calc(100svh - var(--hdr, 77px) - 296px)); min-width: 250px; }
  .dialTxt h2 { max-width: none; }
  .dseg { margin-top: 16px; }
  .dlegend { margin-top: 14px; }
  .dcap { display: none; }
}
#dial text { font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 13px; fill: var(--muted); text-anchor: middle; dominant-baseline: central; }
#dial .d-ill { font-size: 22px; text-anchor: start; dominant-baseline: auto; } /* label for phones, where the caption is hidden */
@media (min-width: 900px) { #dial .d-ill { display: none; } }
#dial .d-ring { fill: none; stroke: var(--line-light); stroke-width: 2; }
#dial .d-open { fill: none; stroke: var(--ink); stroke-width: 10; stroke-linecap: round; }
#dial .d-tk { stroke: var(--hs-tick); stroke-width: 1.5; }
#dial .d-tk.mj { stroke: var(--muted); stroke-width: 2; }
#dial .d-hub { fill: var(--surface-light); stroke: var(--line-light); stroke-width: 1.5; }
#dial .d-hand { stroke: var(--blue); stroke-width: 2; stroke-linecap: round; }
#dial .d-hd { fill: var(--blue); }
#dial .d-ln { stroke: var(--blue); stroke-width: 1.5; }
#dial .d-pr { fill: none; stroke: var(--ink); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: dprp 2s ease-out infinite; }
@keyframes dprp { 0% { transform: scale(1); opacity: 0.55; } 100% { transform: scale(2.6); opacity: 0; } }
#hours.d-off .d-pr { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .hs #hours { height: auto; }
  .hs .dialStage { position: relative; height: auto; min-height: calc(100svh - var(--hdr, 77px)); padding-block: 48px; }
  #dial .d-pr { animation: none; opacity: 0; }
  .dseg button { transition: none; }
}

/* ---------- Estimate ---------- */
.cost-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .cost-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 72px; } }
.cost-copy h2 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.1; max-width: 16ch; }
.cost-copy .example-tag { margin-bottom: 14px; color: var(--fg-muted); }
.cost-card { background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 28px; }
.cost-card .field { margin-bottom: 18px; }
.cost-card .field-error { margin-top: 0; }
.cost-card .field-error:not(:empty) { margin-top: 8px; }
.cost-result { min-height: 52px; display: flex; align-items: flex-end; margin-top: 6px; }
.cost-fig { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: clamp(26px, 4.2vw, 40px); line-height: 1.15; color: var(--fg); overflow-wrap: anywhere; }
.cost-fig.idle { font-family: inherit; font-weight: 400; font-size: 17px; line-height: 1.5; color: var(--fg-muted); }
.cost-note { margin-top: 14px; font-size: 14px; color: var(--fg-muted); }
.cost-link { display: inline-block; margin-top: 12px; font-size: 15px; font-weight: 500; color: var(--fg); text-decoration: underline; }
.cost-link:hover { text-decoration-thickness: 2px; }

/* ---------- closing section: dots converge on the call button ---------- */
.hs #contact { position: relative; overflow: hidden; }
.hs #contact > .wrap { position: relative; z-index: 1; }
.hs #contact > .net { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
