/* Northwren Digital: "night shift dispatch".
   Navy night, work-truck yellow, cool cyan for customer texts, red only for a missed call.
   One family (Archivo variable): expanded width for headlines, normal width for reading. */
:root {
  --night: #0e1a2b;
  --night-2: #16263c;
  --night-3: #23395a;
  --paper: #edf1f3;
  --white: #ffffff;
  --ink: #0e1a2b;
  --ink-2: #3a4a60;
  --muted: #5a6a7f;
  --line: #cbd5dc;
  --signal: #ffc21a;
  --signal-deep: #e0a400;
  --cool: #3fb6c9;
  --alarm: #c4321a;
  --on-night: #dbe4ee;
  --on-night-muted: #93a4ba;
  --max: 1180px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-variation-settings: "wdth" 100;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0 0 .45em; line-height: 1.02; letter-spacing: -0.01em; }
h1, h2 { font-weight: 850; font-stretch: 125%; font-variation-settings: "wdth" 125; }
h1 { font-size: clamp(2.6rem, 7.4vw, 5.6rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.25rem; font-weight: 750; font-variation-settings: "wdth" 112; line-height: 1.2; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); max-width: 34em; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--signal); color: var(--night); padding: 8px 12px; z-index: 100; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
.on-light :focus-visible, .paper :focus-visible { outline-color: var(--night); }

/* Blueprint grid: the drawing paper an HVAC or plumbing layout is planned on */
.night {
  background-color: var(--night);
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 40px 40px;
  color: var(--on-night);
}
.night h1, .night h2, .night h3 { color: var(--white); }
.night .muted { color: var(--on-night-muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.35em; border-radius: 6px; border: 2px solid transparent;
  font: inherit; font-weight: 750; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-signal { background: var(--signal); color: var(--night); }
.btn-signal:hover { background: #ffd24d; }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-line:hover { background: rgba(255,255,255,.08); }
.on-light .btn-line:hover, .paper .btn-line:hover { background: rgba(14,26,43,.06); }
.btn-night { background: var(--night); color: var(--white); }
.btn-night:hover { background: var(--night-3); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Header */
.site-header { background: var(--night); color: var(--on-night); position: relative; z-index: 20; border-bottom: 1px solid rgba(255,255,255,.07); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand svg { width: 38px; height: 38px; }
.brand span { display: flex; flex-direction: column; font-weight: 850; font-variation-settings: "wdth" 125; font-size: 1.12rem; line-height: 1; letter-spacing: .01em; }
.brand small { font-weight: 500; font-size: .72rem; letter-spacing: .32em; color: var(--signal); margin-top: 4px; font-variation-settings: "wdth" 100; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { color: var(--on-night); text-decoration: none; font-weight: 600; font-size: .98rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover { color: var(--white); border-bottom-color: rgba(255,194,26,.5); }
.nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--signal); }
.nav .btn { padding: .6em 1.1em; font-size: .95rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--white); }
.nav-toggle svg { width: 28px; height: 28px; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--night-2); padding: 8px 24px 24px; border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .btn { margin-top: 16px; }
}

/* Sections */
section { padding: 104px 0; }
.paper { background: var(--paper); }
.white { background: var(--white); }
.head { max-width: 760px; margin-bottom: 56px; }
.head p { font-size: 1.12rem; color: var(--ink-2); max-width: 40em; }
.night .head p { color: var(--on-night); }
@media (max-width: 700px) { section { padding: 72px 0; } .head { margin-bottom: 40px; } }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.hero h1 { margin-bottom: .32em; font-size: clamp(2.4rem, 4.6vw, 4.1rem); }
.hero h1 .line { display: block; }

.hero h1 .line + .line { color: var(--signal); }
.hero .lead { color: var(--on-night); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 30px; }
.promises { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--on-night-muted); font-size: .95rem; }
.promises li { display: flex; align-items: center; gap: 8px; }
.promises svg { width: 16px; height: 16px; color: var(--signal); flex: none; }
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding-top: 48px; }
}

/* Live demo (hero) */
.live { position: relative; justify-self: center; width: 100%; max-width: 420px; }
.live-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font-size: .9rem; color: var(--on-night-muted); }
.live-top strong { color: var(--white); font-weight: 700; }
.live-top .clock { font-variant-numeric: tabular-nums; color: var(--signal); font-weight: 750; font-variation-settings: "wdth" 112; }
.phone {
  background: #050b14; border-radius: 40px; padding: 12px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.09), 0 30px 80px rgba(0,0,0,.45);
}
.screen {
  background: #f5f7f9; color: var(--ink); border-radius: 30px; height: 470px;
  display: flex; flex-direction: column; overflow: hidden; position: relative;
}
.screen .bar { display: flex; justify-content: space-between; padding: 12px 22px 4px; font-size: .74rem; font-weight: 700; }
.screen .who { display: flex; align-items: center; gap: 10px; padding: 8px 16px 12px; border-bottom: 1px solid #e1e6ec; background: #fff; }
.screen .who .av { width: 36px; height: 36px; border-radius: 50%; background: var(--night); color: var(--signal); display: grid; place-items: center; font-weight: 850; font-size: .9rem; flex: none; }
.screen .who strong { display: block; font-size: .95rem; line-height: 1.2; }
.screen .who small { color: var(--muted); font-size: .74rem; }
.msgs { flex: 1; padding: 16px 14px; display: flex; flex-direction: column; gap: 9px; overflow-y: auto; scroll-behavior: smooth; }
.bubble { max-width: 84%; padding: 10px 13px; border-radius: 18px; font-size: .9rem; line-height: 1.42; animation: pop .28s ease-out both; }
.bubble.in { background: #e3e8ee; align-self: flex-start; border-bottom-left-radius: 5px; }
.bubble.out { background: var(--cool); color: #04232a; align-self: flex-end; border-bottom-right-radius: 5px; }
.sys { align-self: center; font-size: .74rem; color: var(--muted); animation: pop .28s ease-out both; text-align: center; }
.sys.missed { color: var(--alarm); font-weight: 750; }
.typing { align-self: flex-start; background: #e3e8ee; border-radius: 18px; padding: 12px 14px; display: flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #8593a6; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
.ringing {
  position: absolute; inset: 0; background: var(--night); color: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px;
}
.ringing .ring { width: 72px; height: 72px; border-radius: 50%; background: #1f9d55; display: grid; place-items: center; margin-bottom: 16px; animation: ring 1s infinite; }
.ringing .ring svg { width: 32px; height: 32px; }
.ringing strong { font-size: 1.15rem; font-variation-settings: "wdth" 112; }
.ringing small { color: var(--on-night-muted); }

/* The lead alert that lands on the owner's lock screen */
.alert-card {
  position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%);
  width: calc(100% + 24px); max-width: 440px;
  background: var(--signal); color: var(--night); border-radius: 14px; padding: 14px 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start;
  font-size: .9rem; line-height: 1.35;
  opacity: 0; translate: 0 16px; transition: opacity .35s, translate .35s; pointer-events: none;
}
.alert-card.show { opacity: 1; translate: 0 0; }
.alert-card svg { width: 22px; height: 22px; grid-row: span 2; margin-top: 2px; }
.alert-card b { font-weight: 800; }
.live-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 52px; font-size: .84rem; color: var(--on-night-muted); }
.replay { background: none; border: 1px solid rgba(255,255,255,.25); color: var(--white); border-radius: 6px; padding: 8px 12px; font: inherit; font-size: .86rem; font-weight: 650; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.replay:hover { border-color: var(--signal); }
.replay svg { width: 15px; height: 15px; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes ring { 0%,100% { box-shadow: 0 0 0 0 rgba(31,157,85,.55); } 70% { box-shadow: 0 0 0 20px rgba(31,157,85,0); } }
@keyframes blink { 0%,100% { opacity: .3; } 50% { opacity: 1; } }
@media (max-width: 520px) { .screen { height: 430px; } .alert-card { width: 100%; } }

/* Hero showcase: an example client site with a care report and a lead alert floating over it */
.showcase { position: relative; margin: 0; justify-self: center; width: 100%; max-width: 560px; padding: 0; }
.browser { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 30px 80px rgba(0,0,0,.5); rotate: -1.2deg; }
.browser-bar { display: flex; align-items: center; gap: 7px; background: #e4e9ee; padding: 10px 14px; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #b9c3cd; }
.browser-bar span { margin-left: 10px; background: #fff; border-radius: 5px; padding: 3px 12px; font-size: .74rem; color: var(--muted); flex: 1; }
.mini { color: var(--ink); font-size: .8rem; }
.mini-nav { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid #e6eaee; }
.mini-nav b { flex: 1; font-size: .86rem; font-variation-settings: "wdth" 112; }
.mini-nav span { color: var(--muted); }
.mini-call { background: #d6331c; color: #fff !important; font-weight: 700; padding: 5px 10px; border-radius: 4px; }
.mini-ghost { border: 1.5px solid var(--ink); font-weight: 700; padding: 4px 10px; border-radius: 4px; }
.mini-hero { padding: 26px 18px 22px; background: linear-gradient(135deg, #1c3d63, #0f2742); color: #fff; display: grid; gap: 8px; }
.mini-hero strong { font-size: 1.35rem; line-height: 1.1; font-weight: 850; font-variation-settings: "wdth" 118; max-width: 15em; }
.mini-hero > span { color: #c6d3e2; max-width: 30em; }
.mini-btns { display: flex; gap: 8px; margin-top: 6px; }
.mini-btns .mini-ghost { border-color: #fff; color: #fff; }
.mini-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 14px 18px 18px; }
.mini-tiles span { background: #f1f4f7; border-radius: 6px; padding: 14px 8px; text-align: center; font-weight: 650; font-size: .74rem; }
.float { position: absolute; border-radius: 10px; box-shadow: 0 18px 44px rgba(0,0,0,.4); font-size: .86rem; line-height: 1.4; }
.care-card { display: block; left: -34px; bottom: 34px; width: 268px; background: var(--white); color: var(--ink); padding: 16px 18px; rotate: 1.5deg; }
.care-card b { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: .92rem; }
.care-card b::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #1f9d55; }
.care-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; color: var(--ink-2); }
.care-card li { position: relative; padding-left: 20px; }
.care-card li::before { content: "✓"; position: absolute; left: 0; color: #13734a; font-weight: 800; }
.lead-card { right: -22px; top: 42%; width: 250px; background: var(--signal); color: var(--night); padding: 13px 15px; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; animation: drop .45s 1.1s cubic-bezier(.2,.9,.3,1.2) backwards; }
.lead-card svg { width: 20px; height: 20px; grid-row: span 2; margin-top: 2px; }
a.float { text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
a.float:hover, a.float:focus-visible { transform: translateY(-4px); box-shadow: 0 26px 56px rgba(0,0,0,.5); }
.card-more { display: block; margin-top: 10px; font-size: .8rem; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.care-card .card-more { color: var(--night-3); }
.lead-card .card-more { grid-column: 2; margin-top: 6px; }
.report-cta { margin-top: 28px; }
#report, #plans, #automations { scroll-margin-top: 16px; }
.showcase figcaption { margin-top: 96px; text-align: right; font-size: .78rem; color: var(--on-night-muted); }
@keyframes drop { from { opacity: 0; transform: translateY(-14px) scale(.96); } }
@media (max-width: 1100px) { .care-card { left: -10px; } .lead-card { right: -8px; top: 24%; } }
@media (max-width: 560px) {
  .showcase { padding-bottom: 0; }
  .browser { rotate: 0deg; }
  .mini-nav span:not(.mini-call) { display: none; }
  .mini-tiles { grid-template-columns: repeat(2, 1fr); }
  .float { position: relative; inset: auto; width: auto; rotate: 0deg; margin-top: 14px; }
  a.float { text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
a.float:hover, a.float:focus-visible { transform: translateY(-4px); box-shadow: 0 26px 56px rgba(0,0,0,.5); }
.card-more { display: block; margin-top: 10px; font-size: .8rem; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.care-card .card-more { color: var(--night-3); }
.lead-card .card-more { grid-column: 2; margin-top: 6px; }
.report-cta { margin-top: 28px; }
#report, #plans, #automations { scroll-margin-top: 16px; }
.showcase figcaption { margin-top: 12px; text-align: left; }
}

/* Services index: one row per service, big names, plain list rather than a card kit */
.svc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--night); }
.svc { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 0 20px; padding: 30px 28px 30px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; transition: background-color .15s; }
.svc:nth-child(odd) { border-right: 1px solid var(--line); }
.svc:nth-child(even) { padding-left: 28px; }
.svc:hover { background: rgba(255,194,26,.14); }
.svc-icon { width: 52px; height: 52px; border-radius: 8px; background: var(--night); color: var(--signal); display: grid; place-items: center; grid-row: span 3; }
.svc-icon svg { width: 26px; height: 26px; }
.svc h3 { font-size: 1.45rem; font-weight: 850; font-variation-settings: "wdth" 120; margin: 4px 0 6px; }
.svc p { color: var(--ink-2); margin: 0 0 10px; }
.svc-tags { font-size: .88rem; color: var(--muted); font-weight: 600; }
.also { margin: 32px 0 0; color: var(--ink-2); max-width: 52em; }
@media (max-width: 860px) {
  .svc-list { grid-template-columns: 1fr; }
  .svc, .svc:nth-child(even) { padding: 26px 0; border-right: 0; }
  .svc:nth-child(odd) { border-right: 0; }
}

/* Care plan */
.intro { font-size: 1.1rem; color: var(--ink-2); max-width: 34em; }
.night .intro { color: var(--on-night); }
.care-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 72px; align-items: center; }
.care-layout .rules { margin: 28px 0 32px; }
.report { background: var(--night); color: var(--on-night); border-radius: 10px; padding: 30px 32px; }
.report-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.15); }
.report-head strong { color: var(--white); font-size: 1.35rem; font-weight: 850; font-variation-settings: "wdth" 120; }
.report-head span { font-size: .85rem; color: var(--on-night-muted); }
.report dl { margin: 0; }
.report dl div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px dashed rgba(255,255,255,.15); }
.report dt { color: var(--on-night-muted); }
.report dd { margin: 0; font-weight: 750; color: var(--signal); text-align: right; }
.report p { margin: 16px 0 0; font-size: .92rem; }
@media (max-width: 900px) { .care-layout { grid-template-columns: 1fr; gap: 44px; } .report { padding: 24px 22px; } }

/* Care plans page */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.plan { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 34px 30px 30px; display: flex; flex-direction: column; }
.plan h2 { font-size: 1.7rem; margin-bottom: .2em; }
.price { margin: 0 0 6px; color: var(--muted); font-size: 1.05rem; }
.price b { font-size: 2.9rem; font-weight: 900; font-variation-settings: "wdth" 125; color: var(--ink); line-height: 1.1; margin-right: 4px; }
.fit { color: var(--ink-2); min-height: 3.2em; }
.plan .rules { margin: 8px 0 28px; flex: 1; }
.plan .rules li { font-size: .98rem; padding: 12px 0 12px 38px; }
.plan .rules li::before { top: 13px; width: 22px; height: 22px; background-size: 13px; }
.plan .btn { align-self: stretch; }
.plan-pick { background: var(--night); color: var(--on-night); border-color: var(--night); box-shadow: 0 24px 50px rgba(14,26,43,.25); }
.plan-pick h2, .plan-pick .price b { color: var(--white); }
.plan-pick .price, .plan-pick .fit { color: var(--on-night); }
.plan-pick .rules li { border-color: rgba(255,255,255,.14) !important; }
.plan-pick .rules li::before { background-color: var(--signal); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e1a2b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }
.pick { position: absolute; top: -14px; left: 30px; background: var(--signal); color: var(--night); font-weight: 750; font-size: .85rem; padding: 4px 12px; border-radius: 4px; }
.plans-note { margin: 28px 0 0; color: var(--ink-2); max-width: 52em; font-size: .98rem; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 520px; } .plan-pick { margin-top: 10px; } .fit { min-height: 0; } }

.sizes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.size { border-radius: 10px; padding: 30px 32px; }
.size h3 { font-size: 1.35rem; margin-bottom: .2em; }
.size ul { list-style: none; margin: 14px 0 0; padding: 0; }
.size li { padding: 11px 0 11px 30px; border-top: 1px solid var(--line); position: relative; }
.size li::before { position: absolute; left: 0; top: 10px; font-weight: 900; }
.size-in { background: var(--paper); }
.size-in li::before { content: "+"; color: #13734a; font-size: 1.2rem; }
.size-out { border: 2px solid var(--night); }
.size-out li::before { content: "$"; color: var(--night); }
.size-rules { margin-top: 32px; max-width: 760px; }
@media (max-width: 760px) { .sizes { grid-template-columns: 1fr; } .size { padding: 24px 22px; } }

.report-items { margin: 24px 0 0; padding-left: 1.3em; display: grid; gap: 10px; color: var(--ink-2); }
.report-items b { color: var(--ink); }
.tier { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--night); background: rgba(255,194,26,.35); border-radius: 4px; padding: 1px 7px; margin-left: 4px; white-space: nowrap; }
.plan-from { margin: 0 0 26px; color: var(--ink-2); }
.plan-from b { color: var(--ink); }

/* Featured automation (missed-call demo) */
.feature-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 72px; align-items: center; }
.feature-layout .rules { margin: 26px 0 32px; }
.rules-night li { border-color: rgba(255,255,255,.14) !important; color: var(--on-night); }
.rules-night li::before { background-color: var(--signal); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e1a2b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }
@media (max-width: 960px) { .feature-layout { grid-template-columns: 1fr; gap: 48px; } }

/* ---------- Missed-call calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; background: var(--white); border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.calc-inputs { padding: 44px; display: grid; gap: 34px; }
.slider label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 650; margin-bottom: 12px; }
.slider output { font-weight: 850; font-size: 1.5rem; font-variation-settings: "wdth" 118; font-variant-numeric: tabular-nums; color: var(--night); white-space: nowrap; }
.slider small { display: block; color: var(--muted); font-size: .88rem; margin-top: 8px; }
input[type="range"] { width: 100%; appearance: none; -webkit-appearance: none; height: 8px; border-radius: 4px; background: linear-gradient(to right, var(--night) var(--fill, 50%), #dbe2e8 var(--fill, 50%)); cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--signal); border: 3px solid var(--night); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--signal); border: 3px solid var(--night); }
input[type="range"]:focus-visible { outline: 3px solid var(--night); outline-offset: 6px; }
.calc-result { padding: 44px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.calc-result .big { font-size: clamp(2.8rem, 6vw, 4.6rem); line-height: 1; font-weight: 900; font-variation-settings: "wdth" 125; color: var(--signal); font-variant-numeric: tabular-nums; margin: 6px 0 8px; }
.calc-result .per { font-size: 1.05rem; color: var(--on-night); }
.calc-result .year { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; color: var(--on-night); }
.calc-result .year b { color: var(--white); font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.calc-note { font-size: .86rem; color: var(--on-night-muted); margin: 0; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } .calc-inputs, .calc-result { padding: 30px 24px; } }

/* ---------- The path: search to booked job (a pipe run with four fittings) ---------- */
.pipe { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; position: relative; }
.pipe::before {
  content: ""; position: absolute; top: 27px; left: 34px; right: calc((100% - 96px) / 4 - 34px); height: 14px; border-radius: 7px;
  background: linear-gradient(var(--night-3), var(--night)); box-shadow: inset 0 3px 0 rgba(255,255,255,.12);
}
.pipe li { position: relative; }
.fitting {
  position: relative; width: 68px; height: 68px; border-radius: 50%; background: var(--night); border: 5px solid var(--signal);
  display: grid; place-items: center; color: var(--signal); margin-bottom: 26px;
}
.fitting svg { width: 28px; height: 28px; }
.pipe .stage { display: block; font-weight: 650; color: var(--muted); font-size: .95rem; margin-bottom: 4px; }
.pipe h3 { font-size: 1.35rem; }
.pipe p { color: var(--ink-2); font-size: 1rem; }
.pipe a { font-weight: 700; font-size: .95rem; }
@media (max-width: 900px) {
  .pipe { grid-template-columns: 1fr; gap: 0; }
  .pipe::before { top: 20px; bottom: 20px; left: 27px; right: auto; width: 14px; height: auto; }
  .pipe li { display: grid; grid-template-columns: 68px 1fr; gap: 0 22px; padding-bottom: 36px; }
  .pipe li:last-child { padding-bottom: 0; }
  .fitting { margin: 0; grid-row: span 4; }
}

.upgrade-strip { margin-top: 72px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; padding: 34px 38px; border: 2px solid var(--night); border-radius: 10px; }
.upgrade-strip h3 { font-size: 1.5rem; margin-bottom: .3em; }
.upgrade-strip p { margin: 0; color: var(--ink-2); }
@media (max-width: 760px) { .upgrade-strip { grid-template-columns: 1fr; padding: 26px 22px; } }

/* ---------- Work order ticket (the process) ---------- */
.order-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.ticket {
  background: #fbfaf5; color: var(--ink); border-radius: 4px; padding: 34px 36px 30px; position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,.35); rotate: .6deg;
}
.ticket::before {
  content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 18px;
  background: radial-gradient(circle at 9px 0, transparent 8px, #fbfaf5 8.5px) 0 9px / 18px 18px repeat-x;
}
.ticket-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.ticket-head strong { font-size: 1.5rem; font-weight: 850; font-variation-settings: "wdth" 125; line-height: 1; }
.ticket-head span { font-size: .85rem; color: var(--muted); text-align: right; }
.ticket ol { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.ticket li { counter-increment: step; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 4px 16px; padding: 20px 0; border-bottom: 1px dashed #b9c2cb; align-items: start; }
.ticket li::before { content: counter(step); width: 30px; height: 30px; border: 2px solid var(--ink); border-radius: 4px; display: grid; place-items: center; font-weight: 800; font-size: .9rem; }
.night .ticket h3 { font-size: 1.12rem; margin: 3px 0 4px; color: var(--ink); }
.ticket p { margin: 0; font-size: .96rem; color: var(--ink-2); }
.ticket .cost { font-weight: 750; font-size: .92rem; white-space: nowrap; padding-top: 4px; text-align: right; }
.ticket .cost.free { color: #13734a; }
.ticket-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 18px; font-size: .9rem; color: var(--muted); }
.sign { font-family: "Segoe Script", "Bradley Hand", cursive; font-size: 1.15rem; color: var(--night-3); border-bottom: 1px solid #8592a1; padding: 0 30px 2px 4px; }
@media (max-width: 900px) { .order-layout { grid-template-columns: 1fr; gap: 40px; } .ticket { rotate: 0deg; padding: 28px 22px 24px; } }
@media (max-width: 520px) { .ticket li { grid-template-columns: 34px minmax(0, 1fr); } .ticket .cost { grid-column: 2; text-align: left; padding-top: 6px; } }

/* ---------- House rules + FAQ ---------- */
.rules-faq { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; }
.rules { list-style: none; margin: 0; padding: 0; }
.rules li { padding: 18px 0 18px 44px; border-top: 1px solid var(--line); position: relative; font-size: 1.04rem; }
.rules li:last-child { border-bottom: 1px solid var(--line); }
.rules li::before {
  content: ""; position: absolute; left: 2px; top: 20px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--night) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffc21a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; font-weight: 700; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2.5px solid var(--night); border-bottom: 2.5px solid var(--night); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq details p { color: var(--ink-2); padding-right: 30px; }
@media (max-width: 900px) { .rules-faq { grid-template-columns: 1fr; gap: 56px; } }

/* ---------- Closing call to action ---------- */
.closer { background: var(--signal); color: var(--night); padding: 88px 0; }
.closer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 56px; align-items: end; }
.closer h2 { font-size: clamp(2.1rem, 5vw, 3.8rem); margin-bottom: .3em; }
.closer p { font-size: 1.15rem; max-width: 34em; margin: 0; }
@media (max-width: 760px) { .closer .wrap { grid-template-columns: 1fr; } .closer { padding: 64px 0; } }

/* ---------- Inner pages ---------- */
.page-head { padding: 80px 0 88px; }
.page-head h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); max-width: 14em; }
.page-head .lead { color: var(--on-night); }

.service { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; padding: 64px 0; border-top: 2px solid var(--night); scroll-margin-top: 20px; }
.service:first-child { border-top: 0; padding-top: 0; }
.service .stage { display: block; font-weight: 650; color: var(--muted); margin-bottom: 10px; }
.service h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.service .intro { font-size: 1.1rem; color: var(--ink-2); }
.service ul { list-style: none; margin: 0; padding: 0; }
.service li { padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); position: relative; }
.service li:first-child { border-top: 1px solid var(--line); }
.service li::before { content: ""; position: absolute; left: 0; top: 23px; width: 16px; height: 4px; border-radius: 2px; background: var(--night); }
@media (max-width: 860px) { .service { grid-template-columns: 1fr; gap: 24px; padding: 48px 0; } }

.addons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--night); }
.addons div { padding: 24px 24px 26px 0; border-bottom: 1px solid var(--line); }
.addons b { display: block; font-size: 1.08rem; margin-bottom: 4px; }
.addons span { color: var(--ink-2); font-size: .98rem; }
@media (max-width: 860px) { .addons { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .addons { grid-template-columns: 1fr; } }

.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.person { background: var(--white); border-radius: 10px; padding: 32px; display: grid; grid-template-columns: 112px 1fr; gap: 26px; align-items: start; border: 1px solid var(--line); }
.avatar { width: 112px; height: 112px; border-radius: 8px; background: var(--night); color: var(--signal); display: grid; place-items: center; font-weight: 900; font-size: 2.4rem; font-variation-settings: "wdth" 125; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.person h3 { font-size: 1.4rem; margin-bottom: 2px; }
.person .role { display: block; color: var(--muted); font-weight: 650; margin-bottom: 12px; }
.person p { color: var(--ink-2); margin: 0; }
@media (max-width: 900px) { .people { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .person { grid-template-columns: 1fr; padding: 24px; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 40px; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 40px; align-items: start; }
.form-card { background: var(--white); border-radius: 10px; padding: 40px; border: 1px solid var(--line); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; margin-bottom: 7px; font-size: .98rem; }
.field label small { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 13px 14px; border: 1.5px solid #b5c0ca; border-radius: 6px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--night); box-shadow: 0 0 0 3px rgba(255,194,26,.6); }
.field textarea { min-height: 130px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .88rem; color: var(--muted); margin: 14px 0 0; }
.form-status { margin-top: 16px; font-weight: 650; }
.form-status.ok { color: #13734a; }
.form-status.err { color: var(--alarm); font-weight: 600; }
.side { display: grid; gap: 24px; }
.side-block { padding: 28px; border-radius: 10px; }
.side-block h3 { margin-bottom: .6em; }
.side-block.night-block { background: var(--night); color: var(--on-night); }
.side-block.night-block h3 { color: var(--white); }
.side-block.night-block a { color: var(--signal); font-weight: 750; font-size: 1.05rem; }
.side-block.outline { border: 2px solid var(--night); }
.side-block .rules li { font-size: .98rem; padding: 12px 0 12px 38px; }
.side-block .rules li::before { top: 13px; width: 22px; height: 22px; background-size: 13px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .form-card { padding: 26px 20px; } .row2 { grid-template-columns: 1fr; gap: 0; } }

/* Long-form text (privacy) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; font-variation-settings: "wdth" 112; }
.prose li { margin-bottom: .4em; }

/* Footer */
.site-footer { background: var(--night); color: var(--on-night-muted); padding: 64px 0 28px; font-size: .95rem; }
.site-footer .wrap:first-child { display: grid; grid-template-columns: minmax(0, 1.3fr) auto minmax(0, 1fr); gap: 40px 64px; align-items: start; }
.foot-brand p { margin: 16px 0 0; max-width: 26em; }
.site-footer nav { display: grid; gap: 10px; }
.site-footer nav a { color: var(--on-night); text-decoration: none; }
.site-footer nav a:hover { color: var(--signal); }
.foot-contact { display: grid; gap: 6px; }
.foot-contact a { color: var(--white); font-weight: 700; }
.foot-legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: .86rem; }
@media (max-width: 860px) { .site-footer .wrap:first-child { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Price comparison under the care plans */
.compare { margin-top: 32px; padding: 24px 28px; border-left: 6px solid var(--signal); background: var(--white); border-radius: 0 10px 10px 0; max-width: 820px; }
.compare p { margin: 0; font-size: 1.08rem; }
.compare p + p { margin-top: 6px; font-size: .98rem; }
