/* Mr. Booster — "Positive Terminal" */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --frost: #EEF1F4;
  --frost-2: #F4F6F8;
  --paper: #FFFFFF;
  --ink: #101419;
  --ink-2: #4F5965;
  --ink-3: #5E6873;
  --line: #D9DEE4;
  --line-2: #C3CBD3;

  --night: #0F1318;
  --night-2: #161B22;
  --night-line: #2A313A;
  --night-edge: #6A7480;
  --on-night: #E9EDF1;
  --on-night-2: #A3ADB8;

  --red: #C81E26;
  --red-press: #A8161D;
  --red-on-night: #FF6B70;
  --ok: #167A42;
  --ok-dot: #1F9D55;
  --error-on-night: #FF8A8E;

  --r-xl: 24px;
  --r-lg: 20px;
  --r-md: 12px;

  --shadow-sm: 0 1px 2px rgba(16, 20, 25, .06), 0 4px 12px -6px rgba(16, 20, 25, .12);
  --shadow-md: 0 2px 4px rgba(16, 20, 25, .05), 0 18px 40px -20px rgba(16, 20, 25, .28);
  --shadow-red: 0 2px 4px rgba(16, 20, 25, .12), 0 22px 44px -22px rgba(16, 20, 25, .5);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 9vw, 128px);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-color: #B7C0C9 var(--frost);
  background: var(--frost);
}

body {
  margin: 0;
  font-family: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-stretch: 100%;
  font-variant-numeric: lining-nums;
  color: var(--ink);
  background: var(--frost);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

::selection { background: var(--ink); color: #fff; }
.request ::selection, .site-footer ::selection { background: var(--on-night); color: var(--night); }
.cta ::selection { background: #fff; color: var(--red); }

:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.request :focus-visible, .site-footer :focus-visible, .cta :focus-visible,
.tile-price:focus-visible, .service-night :focus-visible, .dock :focus-visible { outline-color: #fff; }
.request .preview :focus-visible { outline-color: var(--ink); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff;
  font-weight: 650; text-decoration: none; transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }

.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.brand-icon { width: 22px; height: 22px; flex: none; fill: currentColor; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px;
  border-radius: var(--r-md); border: 1px solid transparent;
  font-size: .9688rem; font-weight: 650; font-stretch: 104%; line-height: 1;
  text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 56px; padding: 0 24px; font-size: 1.0625rem; }
.btn-block { width: 100%; }

.btn-call { background: var(--red); color: #fff; }
.btn-call:hover { background: var(--red-press); }
.btn-quiet { border-color: var(--line-2); color: var(--ink); }
.btn-quiet:hover { background: var(--paper); border-color: var(--ink-3); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: var(--paper); border-color: var(--ink-3); }
.btn-onred { background: #fff; color: var(--red); }
.btn-onred:hover { background: #FFE9EA; }
.btn-onred-ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-onred-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--frost);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(238, 241, 244, .97); }
.header-row { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { height: 38px; width: auto; }
.brand-word { font-size: 1.1875rem; font-weight: 800; font-stretch: 118%; letter-spacing: -.02em; }

.nav { display: none; margin-left: auto; gap: 28px; }
.nav a {
  font-size: .9688rem; font-weight: 550; color: var(--ink-2); text-decoration: none;
  padding: 6px 0; transition: color .2s var(--ease);
}
.nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-request { display: none; }
.call-long { display: none; }

@media (min-width: 560px) {
  .call-long { display: inline; }
  .call-short { display: none; }
}
@media (min-width: 1024px) {
  :root { --header-h: 72px; }
  .nav { display: flex; }
  .header-actions { margin-left: 12px; }
  .brand-mark { height: 42px; }
}
@media (min-width: 1180px) {
  .header-request { display: inline-flex; }
}

/* ---------- Hero ---------- */

.hero { padding: 8px 0 clamp(64px, 8vw, 104px); }

.status {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  margin: 18px 0 18px; font-size: .9375rem; font-weight: 550; color: var(--ink-2);
}
.status-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--ok-dot); }
.status-dot::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1.5px solid var(--ok-dot); opacity: 0;
  animation: breathe 2.8s var(--ease) infinite;
}
@keyframes breathe {
  0% { transform: scale(.4); opacity: .7; }
  70%, 100% { transform: scale(1.25); opacity: 0; }
}
.status-live { font-variant-numeric: tabular-nums; }
.status-live::before { content: "·"; margin-right: 10px; color: var(--ink-3); }

.display {
  font-size: clamp(2.75rem, 1.05rem + 6.6vw, 6rem);
  font-weight: 800; font-stretch: 118%;
  line-height: .96; letter-spacing: -.035em;
  text-wrap: balance;
}
.display-quiet { display: block; color: var(--ink-3); }
.lede {
  margin-top: clamp(16px, 2vw, 26px);
  max-width: 40rem;
  font-size: clamp(1.0625rem, .95rem + .45vw, 1.3125rem);
  line-height: 1.5; color: var(--ink-2);
  text-wrap: pretty;
}

.controls {
  display: grid; gap: 10px;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "call call" "text price";
  margin-top: clamp(24px, 3.4vw, 44px);
}

.tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
  min-height: 128px; padding: 18px;
  border-radius: var(--r-lg);
  text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease);
}
.tile:hover { transform: translateY(-2px); }
.tile:active { transform: translateY(0); }
.tile-label { display: inline-flex; align-items: center; gap: 8px; font-size: .9375rem; font-weight: 650; font-stretch: 105%; }
.tile-foot { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; line-height: 1.35; }
.tile-foot .icon { width: 16px; height: 16px; }

.tile-call { grid-area: call; background: var(--red); color: #fff; box-shadow: var(--shadow-red); }
.tile-call:hover { background: var(--red-press); box-shadow: 0 2px 4px rgba(16, 20, 25, .14), 0 28px 50px -22px rgba(16, 20, 25, .55); }
.tile-top { display: flex; align-items: center; gap: 12px; }
.cable {
  flex: 1; height: 2px; border-radius: 2px;
  background: rgba(255, 255, 255, .5);
  transform-origin: left center;
  animation: cable .9s var(--ease) .35s both;
}
.terminal {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none;
  border-radius: 50%; border: 1.5px solid #fff; background: #fff; color: var(--red);
  animation: connect .5s var(--ease) 1.1s both;
}
.terminal .icon { width: 18px; height: 18px; stroke-width: 2.25; }
.terminal-neg { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); animation: none; }
.tile-number {
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.05rem, .95rem + 4.7vw, 3.75rem);
  font-weight: 800; font-stretch: 112%; line-height: 1; letter-spacing: -.03em;
  white-space: nowrap;
}
.tile-call .tile-foot { color: rgba(255, 255, 255, .9); }

@keyframes cable { from { transform: scaleX(0); opacity: .2; } to { transform: scaleX(1); opacity: 1; } }
@keyframes connect {
  from { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); transform: scale(.86); }
  to { background: #fff; color: var(--red); border-color: #fff; transform: scale(1); }
}

.tile-text { grid-area: text; background: var(--paper); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.tile-text:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); }
.tile-text .tile-label .icon { color: var(--red); }
.tile-title { font-size: 1.125rem; font-weight: 750; font-stretch: 106%; line-height: 1.15; letter-spacing: -.01em; }
.tile-text .tile-foot { color: var(--ink-2); display: none; }

.tile-price { grid-area: price; background: var(--night); color: var(--on-night); }
.tile-price .tile-label { color: var(--on-night-2); }
.tile-price-num { font-variant-numeric: tabular-nums; font-size: clamp(2.5rem, 1.5rem + 3.2vw, 4.25rem); font-weight: 800; font-stretch: 112%; line-height: .9; letter-spacing: -.04em; }
.tile-price .tile-foot { color: var(--on-night-2); }

.hero-photo {
  margin-top: 10px; border-radius: var(--r-xl); overflow: hidden;
  aspect-ratio: 900 / 715; background: #1B2230;
  box-shadow: var(--shadow-md);
}
.hero-photo img, .hero-photo picture { width: 100%; height: 100%; }
.hero-photo img { object-fit: cover; object-position: 40% 50%; }

@media (min-width: 560px) {
  .tile-text .tile-foot { display: inline-flex; }
  .tile { padding: 22px; min-height: 150px; }
}
@media (min-width: 760px) {
  .hero-photo { aspect-ratio: 1600 / 670; margin-top: 16px; }
  .hero-photo img { object-position: 50% 40%; }
}
@media (min-width: 960px) {
  .controls { grid-template-columns: 6fr 3fr 3fr; grid-template-areas: "call text price"; gap: 16px; }
  .tile { padding: 26px; min-height: 216px; }
  .tile-title { font-size: 1.5rem; }
  .status { margin: 30px 0 22px; }
}

/* ---------- Sections ---------- */

.section { padding-top: clamp(72px, 9vw, 128px); padding-bottom: clamp(72px, 9vw, 128px); }
.section-head h2, .price-block h2 {
  font-size: clamp(2.125rem, 1.25rem + 3.1vw, 3.5rem);
  font-weight: 800; font-stretch: 115%;
  line-height: 1.02; letter-spacing: -.03em;
  max-width: 17ch; text-wrap: balance;
}
.section-head p { margin-top: 18px; max-width: 38rem; font-size: 1.125rem; color: var(--ink-2); text-wrap: pretty; }
.section-head p a { color: var(--red); font-weight: 650; text-underline-offset: 3px; }

/* Services */

.services { background: var(--paper); }
.service-grid { display: grid; gap: 16px; margin-top: clamp(36px, 5vw, 56px); }
.service {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r-xl); background: var(--frost-2);
}
.service img { width: 100%; height: clamp(220px, 27vw, 380px); object-fit: cover; }
.service-main img { object-position: 50% 45%; }
.service-night img { object-position: 50% 55%; }
.service-body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 24px 22px 26px; }
.service h3 { font-size: clamp(1.375rem, 1.1rem + .9vw, 1.75rem); font-weight: 780; font-stretch: 110%; letter-spacing: -.02em; line-height: 1.1; }
.service p { color: var(--ink-2); max-width: 40ch; }
.service .service-meta { font-size: .9688rem; }
.service .service-meta strong { color: var(--ink); font-size: 1.25rem; font-weight: 800; font-stretch: 110%; }
.link-action {
  display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px;
  color: var(--red); font-weight: 700; text-decoration: none; width: fit-content;
}
.link-action .icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.link-action:hover .icon { transform: translateX(4px); }
.link-action:hover { text-decoration: underline; text-underline-offset: 4px; }

.service-night { background: var(--night); color: var(--on-night); }
.service-night p { color: var(--on-night-2); }
.service-night .service-meta { color: var(--on-night-2); }
.service-night .link-action { color: var(--red-on-night); }

@media (min-width: 960px) {
  .service-grid { grid-template-columns: 7fr 5fr; gap: 20px; }
  .service-body { padding: 30px 32px 34px; }
}

/* Pricing */

.pricing { background: var(--frost); }
.pricing-grid { display: grid; gap: 48px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-top: 30px; }
.price-num { font-variant-numeric: tabular-nums; font-size: clamp(4.5rem, 2.6rem + 6vw, 6rem); font-weight: 800; font-stretch: 112%; line-height: .85; letter-spacing: -.04em; }
.price-unit { font-size: 1.125rem; font-weight: 600; color: var(--ink-2); }
.price-note { margin-top: 20px; max-width: 32rem; color: var(--ink-2); }
.pay { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.pay-label { font-size: .875rem; font-weight: 650; color: var(--ink-2); }
.pay-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pay-list li {
  display: inline-flex; align-items: center; justify-content: center;
  height: 42px; min-width: 56px; padding: 0 14px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--paper);
  font-size: .9375rem; font-weight: 700; font-stretch: 105%;
}
.pay-list .brand-icon { width: 34px; height: 34px; }

.facts { display: grid; border-top: 1px solid var(--line-2); }
.fact { padding: 24px 0 26px; border-bottom: 1px solid var(--line-2); }
.fact dt { display: flex; align-items: center; gap: 12px; font-size: 1.1875rem; font-weight: 750; font-stretch: 106%; letter-spacing: -.01em; }
.fact dt .icon { width: 22px; height: 22px; }
.fact dd { margin: 8px 0 0 34px; color: var(--ink-2); max-width: 44ch; }

@media (min-width: 960px) {
  .pricing-grid { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
  .facts { grid-template-columns: 1fr 1fr; column-gap: 40px; margin-top: 8px; }
  .fact { padding: 30px 0 32px; }
}

/* How it works */

.how { background: var(--paper); }
.how-grid { display: grid; gap: 36px; }
.how-photo { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16 / 11; background: #1B2230; }
.how-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }

.steps { margin-top: clamp(32px, 4vw, 44px); }
.step { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding-bottom: 28px; }
.step:not(:last-child)::before {
  content: ""; position: absolute; left: 21px; top: 48px; bottom: 4px; width: 2px;
  background: var(--line-2); border-radius: 2px;
}
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--ink); background: var(--paper);
  font-weight: 800; font-stretch: 112%; font-size: 1.0625rem;
}
.step:last-child .step-num { background: var(--ink); color: #fff; }
.step h3 { margin-top: 8px; font-size: 1.25rem; font-weight: 760; font-stretch: 106%; letter-spacing: -.01em; }
.step p { margin-top: 6px; color: var(--ink-2); max-width: 46ch; }
.step-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.step-links a { color: var(--red); font-weight: 650; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.ready { margin-top: 8px; padding: 24px 22px 26px; border-radius: var(--r-lg); background: var(--frost); }
.ready h3 { font-size: 1.0625rem; font-weight: 750; font-stretch: 105%; }
.ready-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 24px; margin-top: 14px; }
.ready-list li { display: flex; align-items: center; gap: 10px; font-size: 1rem; }
.ready-list .icon { width: 18px; height: 18px; color: var(--ok); stroke-width: 2.25; }

@media (min-width: 960px) {
  .how-grid { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
  .how-photo { position: sticky; top: calc(var(--header-h) + 24px); aspect-ratio: 4 / 5; }
  .ready { padding: 28px 30px 30px; }
}

/* Service area */

.area { background: var(--frost); }
.area-grid { display: grid; gap: 40px; }
.towns { margin: 32px 0 28px; border-top: 1px solid var(--line-2); }
.towns li {
  position: relative; isolation: isolate;
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 15px 0; border-bottom: 1px solid var(--line-2);
}
.towns li::before {
  content: ""; position: absolute; inset: 4px -12px; z-index: -1;
  border-radius: 10px; background: var(--paper); opacity: 0;
  transition: opacity .2s var(--ease);
}
.towns li.is-active::before { opacity: 1; }
.town-name { font-size: 1.125rem; font-weight: 750; font-stretch: 106%; }
.town-note { font-size: .9375rem; color: var(--ink-2); text-align: right; }

.map { border-radius: var(--r-xl); overflow: hidden; background: #F7F9FA; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-svg { width: 100%; height: auto; }
.m-ground { fill: #F7F9FA; }
.m-cover { fill: #E2E8EE; stroke: #E2E8EE; }
.m-river { fill: none; stroke: #C4D3E1; stroke-width: 9; stroke-linejoin: round; stroke-linecap: round; }
.m-road path { fill: none; stroke: #A9B2BB; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.m-ring { fill: none; stroke: var(--ink); stroke-width: 4.5; stroke-linejoin: round; }
.m-shield rect { fill: var(--ink); }
.m-shield text { fill: #fff; font: 700 20px "Archivo", sans-serif; font-stretch: 108%; text-anchor: middle; }
.m-river-label { fill: #6F8599; font: 550 19px "Archivo", sans-serif; letter-spacing: .04em; }
.m-town circle { fill: var(--ink); stroke: #F7F9FA; stroke-width: 4; transform-box: fill-box; transform-origin: center; transition: transform .35s var(--ease); }
.m-town text {
  fill: var(--ink); font: 750 30px "Archivo", sans-serif; font-stretch: 108%;
  paint-order: stroke; stroke: #F7F9FA; stroke-width: 9px; stroke-linejoin: round;
}
.m-city text { font-size: 38px; font-weight: 800; }
.m-town .m-halo { fill: none; stroke: var(--ink); stroke-width: 2; opacity: .3; }
.m-town.is-active circle:first-child { transform: scale(1.45); }
.m-scale path { fill: none; stroke: var(--ink); stroke-width: 3; }
.m-scale text, .m-north text { fill: var(--ink-2); font: 650 20px "Archivo", sans-serif; }
.m-north path { fill: var(--ink); }
@media (max-width: 599px) {
  .m-town text { font-size: 42px; stroke-width: 11px; }
  .m-city text { font-size: 50px; }
  .m-town circle { stroke-width: 6; }
  .m-shield, .m-river-label, .m-scale, .m-north text { display: none; }
  .m-ring { stroke-width: 6; }
  .m-road path { stroke-width: 4.5; }
}

@media (min-width: 960px) {
  .area-grid { grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; }
}

/* ---------- Request composer ---------- */

.request { background: var(--night); color: var(--on-night); }
.request .section-head p { color: var(--on-night-2); }
.section-head-wide h2 { max-width: 20ch; }

.composer { display: grid; gap: 28px; margin-top: clamp(36px, 5vw, 56px); }
.fields { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 14px; align-content: start; }
.field { grid-column: span 6; min-width: 0; }
.field-third { grid-column: span 3; }
.field-plate { grid-column: span 6; }

.field label, .field legend, .label-row label {
  display: block; margin-bottom: 8px; padding: 0;
  font-size: .9688rem; font-weight: 620; color: var(--on-night);
}
.optional { margin-left: 6px; font-size: .8125rem; font-weight: 450; color: var(--on-night-2); }
.label-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.label-row label { margin: 0; }

.field input, .field textarea, .symptoms input[type="text"] {
  width: 100%; min-height: 52px; padding: 0 16px;
  border-radius: var(--r-md); border: 1px solid var(--night-edge);
  background: var(--night-2); color: var(--on-night);
  font-size: 1.0625rem; line-height: 1.4;
  caret-color: var(--red-on-night);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { padding: 14px 16px; min-height: 84px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8A949F; }
.field input:hover, .field textarea:hover { border-color: #8A949F; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid #fff; outline-offset: 1px; border-color: #fff; border-radius: var(--r-md); }
.field [aria-invalid="true"] { border-color: var(--error-on-night); }
.field-error { margin-top: 7px; font-size: .875rem; font-weight: 550; color: var(--error-on-night); }
.field-hint { margin-top: 7px; font-size: .875rem; color: var(--on-night-2); }

.btn-locate {
  display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 14px;
  border-radius: 10px; border: 1px solid var(--night-edge); background: transparent;
  color: var(--on-night); font-size: .875rem; font-weight: 620;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.btn-locate:hover { background: var(--night-2); border-color: #8A949F; }
.btn-locate .icon { width: 17px; height: 17px; }
.btn-locate[aria-busy="true"] .icon { animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.symptoms { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--night-edge); color: var(--on-night);
  font-size: .9375rem; font-weight: 550; cursor: pointer; user-select: none;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.chip span:hover { border-color: #8A949F; }
.chip input:checked + span { background: var(--on-night); border-color: var(--on-night); color: var(--night); }
.chip input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }

.field .check { display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start; cursor: pointer; margin: 0; font-weight: 400; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box {
  display: grid; place-items: center; width: 26px; height: 26px; margin-top: 1px;
  border-radius: 7px; border: 1.5px solid #8A949F; background: var(--night-2);
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.check-box .icon { width: 17px; height: 17px; stroke: var(--night); stroke-width: 2.6; opacity: 0; transform: scale(.6); transition: opacity .2s var(--ease), transform .25s var(--ease); }
.check input:checked + .check-box { background: #fff; border-color: #fff; }
.check input:checked + .check-box .icon { opacity: 1; transform: scale(1); }
.check input:focus-visible + .check-box { outline: 2px solid #fff; outline-offset: 2px; }
.check input[aria-invalid="true"] + .check-box { border-color: var(--error-on-night); }
.check-text { font-size: .9375rem; line-height: 1.55; color: var(--on-night-2); }
.check-text a { color: var(--on-night); text-underline-offset: 3px; }

.preview {
  align-self: start;
  padding: 20px; border-radius: var(--r-xl);
  background: var(--frost-2); color: var(--ink);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25), 0 30px 60px -30px rgba(0, 0, 0, .7);
}
.preview-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.preview-head strong { display: block; font-size: 1rem; font-weight: 750; font-stretch: 106%; }
.preview-to { display: block; font-size: .8125rem; color: var(--ink-2); }
.preview-avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.preview-avatar img { width: 38px; height: 38px; }

.bubble {
  margin: 18px 0 18px auto; max-width: 94%; width: fit-content;
  padding: 14px 16px; border-radius: 20px 20px 6px 20px;
  background: var(--ink); color: #fff;
  font-size: .9375rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere;
}
.bubble .ph { color: rgba(255, 255, 255, .58); }
.bubble .b-head { font-weight: 700; }

.preview-actions { display: grid; gap: 10px; }
.preview-alt { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.preview-alt .btn { padding: 0 10px; font-size: .9375rem; }
.form-status { min-height: 1.5em; font-size: .9375rem; color: var(--ink-2); }
.form-status.is-error { color: var(--red); font-weight: 600; }
.form-status.is-ok { color: var(--ok); font-weight: 600; }

@media (min-width: 560px) {
  .field-half { grid-column: span 3; }
  .field-third, .field-plate { grid-column: span 2; }
}
@media (min-width: 960px) {
  .composer { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; }
  .preview { position: sticky; top: calc(var(--header-h) + 24px); padding: 24px; }
}

/* ---------- FAQ + fine print ---------- */

.faq { background: var(--paper); padding-bottom: clamp(48px, 6vw, 72px); }
.faq-grid { display: grid; gap: 36px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; list-style: none; cursor: pointer;
  font-size: 1.1875rem; font-weight: 720; font-stretch: 105%; letter-spacing: -.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover .toggle { border-color: var(--ink); }
.toggle {
  width: 32px; height: 32px; padding: 6px; flex: none;
  border-radius: 50%; border: 1.5px solid var(--line-2);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.toggle .v { transform-box: fill-box; transform-origin: center; transition: transform .35s var(--ease); }
details[open] .toggle { background: var(--ink); border-color: var(--ink); color: #fff; }
details[open] .toggle .v { transform: scaleY(0); }
.faq-list details p { padding: 0 56px 24px 0; max-width: 62ch; color: var(--ink-2); }
.faq-list details a { color: var(--ink); font-weight: 650; text-decoration-thickness: 1px; text-underline-offset: 3px; }

@media (min-width: 960px) {
  .faq-grid { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
}

.disclaimer { background: var(--paper); padding-top: 0; padding-bottom: clamp(64px, 8vw, 104px); }
.fine { padding-top: 40px; border-top: 1px solid var(--line); }
.fine h2 { font-size: clamp(1.5rem, 1.2rem + .8vw, 1.75rem); font-weight: 780; font-stretch: 110%; letter-spacing: -.02em; }
.fine-cols { margin-top: 16px; font-size: .9375rem; line-height: 1.62; color: var(--ink-2); }
.fine-cols p + p { margin-top: 12px; }
.fine-cols strong { color: var(--ink); font-weight: 680; }
@media (min-width: 960px) {
  .fine-cols { columns: 2; column-gap: 56px; }
  .fine-cols p { break-inside: avoid; }
}

/* ---------- Closing call ---------- */

.cta { background: var(--red); color: #fff; padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.cta-inner { display: grid; gap: 24px; }
.cta h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem); font-weight: 800; font-stretch: 115%; letter-spacing: -.03em; line-height: 1; }
.cta p { margin-top: 10px; font-size: 1.125rem; color: rgba(255, 255, 255, .92); }
.cta-number {
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.6rem, .9rem + 7.2vw, 6rem); font-weight: 800; font-stretch: 112%;
  line-height: .9; letter-spacing: -.04em; color: #fff; text-decoration: none; white-space: nowrap;
  text-decoration-thickness: 3px; text-underline-offset: 10px;
}
.cta-number:hover { text-decoration-line: underline; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 960px) {
  .cta-inner { grid-template-columns: 1fr auto; grid-template-areas: "title title" "number actions"; align-items: end; gap: 28px 40px; }
  .cta-inner > div:first-child { grid-area: title; }
  .cta-number { grid-area: number; }
  .cta-actions { grid-area: actions; }
}

/* ---------- Footer ---------- */

.site-footer { background: var(--night); color: var(--on-night); padding: 64px 0 120px; }
.footer-grid { display: grid; gap: 40px; }
.brand-onnight { color: #fff; }
.footer-brand p { margin-top: 16px; max-width: 36ch; color: var(--on-night-2); }
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--night-line); color: var(--on-night);
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.social a:hover { background: var(--night-2); border-color: var(--night-edge); }
.social .brand-icon { width: 18px; height: 18px; }
.footer-h { font-size: .875rem; font-weight: 650; color: var(--on-night-2); }
.footer-col ul { margin-top: 14px; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--night-line);
  font-size: .875rem; color: var(--on-night-2);
}
.footer-base a { color: var(--on-night); text-underline-offset: 3px; }
.footer-plain { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .875rem; color: var(--on-night-2); }
.footer-plain a { color: var(--on-night); text-underline-offset: 3px; }
.site-footer-plain { padding: 32px 0; }
@media (min-width: 760px) {
  .site-footer { padding-bottom: 40px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

/* ---------- Mobile dock ---------- */

.dock {
  position: fixed; z-index: 60;
  left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 8px;
  border-radius: 18px; background: var(--night);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .18), 0 20px 40px -12px rgba(0, 0, 0, .45);
  transform: translateY(calc(100% + 24px)); visibility: hidden;
  transition: transform .45s var(--ease), visibility 0s linear .45s;
}
.dock.is-visible { transform: none; visibility: visible; transition: transform .45s var(--ease), visibility 0s; }
.dock a {
  font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; border-radius: 12px; font-weight: 700; font-stretch: 104%; text-decoration: none;
}
.dock-call { background: var(--red); color: #fff; }
.dock-call:active { background: var(--red-press); }
.dock-text { padding: 0 18px; background: var(--night-2); color: #fff; border: 1px solid var(--night-line); }
@media (min-width: 760px) { .dock { display: none; } }

/* ---------- Motion preferences ---------- */

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

/* ---------- Privacy / plain pages ---------- */

.page { background: var(--paper); padding-block: clamp(48px, 7vw, 96px); }
.prose { max-width: 70ch; }
.prose h1 { font-size: clamp(2.25rem, 1.4rem + 3vw, 3.5rem); font-weight: 800; font-stretch: 115%; letter-spacing: -.03em; line-height: 1.02; }
.prose .meta { margin-top: 12px; color: var(--ink-2); }
.prose h2 { margin-top: 40px; font-size: 1.375rem; font-weight: 760; font-stretch: 106%; letter-spacing: -.01em; }
.prose p, .prose ul { margin-top: 12px; color: var(--ink-2); }
.prose ul { padding-left: 1.2em; list-style: disc; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--ink); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; color: var(--ink-2); font-weight: 600; text-decoration: none; }
.back-link:hover { color: var(--ink); }
.back-link .icon { transform: rotate(180deg); width: 18px; height: 18px; }
