/* HerschTech — site styles
   Concept: "the build is the pitch". Quiet, precise chrome around one living
   product scene. Wide Archivo for display (matches the logo), Geist for text.
   Left-aligned, asymmetric 12-col grid. Porcelain ground, navy ink, one cobalt.
*/
:root {
  --bg: #F4F6F9;
  --surface: #FFFFFF;
  --ink: #0B1A2C;
  --ink-2: #4A5869;
  --ink-3: #7B8796;
  --line: #DDE3EA;
  --line-2: #C8D0DA;
  --cobalt: #2443C9;
  --cobalt-deep: #1A2F96;
  --cobalt-wash: #E8ECFB;
  --signal: #FFC94D;
  --navy: #0B1A2C;
  --navy-2: #13263D;
  --on-navy: #E9EEF5;
  --on-navy-2: #9AABBF;
  --ok: #1F8A5B;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-text: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* type scale (≈1.25, with a jump at display) */
  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-md: 1.0625rem;
  --t-lg: 1.3125rem;
  --t-xl: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem);
  --t-2xl: clamp(2.1rem, 1.4rem + 2.6vw, 3.5rem);
  --t-hero: clamp(2.6rem, 1.3rem + 5vw, 5.6rem);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;

  --max: 1240px;
  --pad-l: max(20px, env(safe-area-inset-left, 0px));
  --pad-r: max(20px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: var(--t-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-stretch: 112%;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
:focus-visible { outline: 2.5px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--cobalt); color: #fff; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 50;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-sm);
  text-decoration: none; font-size: var(--t-sm);
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-left: var(--pad-l);
  padding-right: var(--pad-r);
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  font: 600 var(--t-sm)/1 var(--f-text);
  letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer;
  border-radius: 999px; border: 1.5px solid transparent;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: var(--cobalt); }
.btn-line { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--signal); }
.btn-ghost-light { border-color: rgba(233, 238, 245, .35); color: var(--on-navy); }
.btn-ghost-light:hover { border-color: var(--on-navy); }

.text-link {
  color: var(--cobalt); font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size .25s var(--ease);
}
.text-link:hover { background-size: 100% 1.5px; }

/* ---------- Header ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 30; background: var(--bg);
}
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 72px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  font-family: var(--f-display); font-stretch: 120%; font-size: 1.3rem; letter-spacing: -0.04em; line-height: 1;
}
.logo svg { width: 30px; height: 30px; flex: none; }
.logo b { font-weight: 800; }
.logo span span { font-weight: 400; color: var(--ink-2); }
.logo .mk-s { fill: currentColor; }
.logo .mk-l { stroke: currentColor; }
.logo .mk-n { fill: var(--cobalt); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 10px 14px; border-radius: 999px;
  font-size: var(--t-sm); font-weight: 500; color: var(--ink-2); text-decoration: none;
  transition: color .15s, background-color .15s;
}
.nav-links a:hover { color: var(--ink); background: rgba(11, 26, 44, .05); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav .btn { min-height: 42px; padding: 0 18px; margin-left: 10px; }
.menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--line-2);
  background: transparent; cursor: pointer; place-items: center; color: var(--ink);
}
.menu-btn svg { width: 18px; height: 18px; }

@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .nav .btn { display: none; }
  .nav-links {
    position: fixed; left: 0; right: 0; top: calc(72px + env(safe-area-inset-top, 0px));
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--pad-r) 20px var(--pad-l);
  }
  .nav-links[hidden] { display: none !important; }
  .nav-links a { padding: 16px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: var(--t-md); color: var(--ink); }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-links .nav-cta { display: block; }
}
@media (min-width: 861px) {
  .nav-links[hidden] { display: flex !important; }
  .nav-links .nav-cta { display: none; }
}

/* ---------- Section rhythm ---------- */
.section { padding-block: clamp(72px, 9vw, 136px); }
.section-tight { padding-block: clamp(56px, 6vw, 88px); }
.section-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { grid-column: 1 / span 7; font-size: var(--t-2xl); }
.section-head p { grid-column: 8 / span 5; align-self: end; color: var(--ink-2); max-width: 46ch; }
@media (max-width: 860px) {
  .section-head h2, .section-head p { grid-column: 1 / -1; }
}
.kicker { font-size: var(--t-sm); font-weight: 500; color: var(--cobalt); margin-bottom: 18px; display: block; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(40px, 5vw, 64px); }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px; align-items: end; }
.hero h1 {
  grid-column: 1 / span 9;
  font-size: var(--t-hero);
  font-stretch: 118%;
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 0.96;
}
.hero-side { grid-column: 10 / span 3; display: grid; gap: 22px; padding-bottom: 8px; }
.hero-side p { color: var(--ink-2); font-size: var(--t-md); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 1060px) {
  .hero h1 { grid-column: 1 / -1; }
  .hero-side { grid-column: 1 / span 8; }
}
@media (max-width: 640px) { .hero-side { grid-column: 1 / -1; } }

/* ---------- The build scene ---------- */
.scene-wrap { padding-bottom: clamp(72px, 9vw, 136px); }
.scene {
  position: relative;
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 1px 1px, rgba(11, 26, 44, .09) 1px, transparent 0) 0 0 / 22px 22px,
    linear-gradient(180deg, #FFFFFF, #F7F9FC);
  border: 1px solid var(--line);
  padding: clamp(18px, 3vw, 40px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: clamp(14px, 2vw, 24px);
  overflow: hidden;
}
.scene-caption {
  grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: var(--t-xs); color: var(--ink-3);
}
.scene-caption strong { color: var(--ink-2); font-weight: 500; }

.layer-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--t-xs); font-weight: 500; color: var(--ink-2);
  margin-bottom: 10px;
}
.layer-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--cobalt); }

/* Browser */
.sc-site { grid-column: 1 / span 7; grid-row: 2; min-width: 0; }
.browser { border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(11, 26, 44, .25); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #FAFBFD; }
.browser-bar .dots { display: flex; gap: 6px; }
.browser-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.browser-bar .url { flex: 1; min-width: 0; font-size: 0.72rem; color: var(--ink-3); background: var(--bg); border-radius: 6px; padding: 5px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-body { padding: clamp(16px, 2.4vw, 28px); display: grid; gap: 18px; }
.mini-nav { display: flex; justify-content: space-between; align-items: center; font-size: 0.72rem; color: var(--ink-3); }
.mini-nav b { color: var(--ink); font-family: var(--f-display); font-stretch: 115%; font-size: 0.9rem; letter-spacing: -0.02em; }
.mini-nav span { display: flex; gap: 14px; }
.mini-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; align-items: end; }
.mini-hero h3 { font-size: clamp(1.15rem, .8rem + 1.2vw, 1.75rem); font-stretch: 108%; letter-spacing: -0.035em; line-height: 1.02; }
.mini-hero p { font-size: 0.78rem; color: var(--ink-2); margin-top: 8px; }
.mini-btn { display: inline-block; margin-top: 12px; background: #0E6E5C; color: #fff; font-size: 0.72rem; font-weight: 600; border-radius: 999px; padding: 7px 12px; }
.mini-img {
  aspect-ratio: 4 / 3; max-width: 100%; border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(14,110,92,.85), rgba(14,110,92,.55)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 8px, transparent 8px 16px);
  position: relative;
}
.mini-img::after {
  content: "4.9 ★ from 212 reviews"; position: absolute; left: 10px; bottom: 10px;
  background: #fff; color: var(--ink); font-size: 0.66rem; font-weight: 600; padding: 5px 8px; border-radius: 6px;
}
.mini-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mini-row div { border: 1px solid var(--line); border-radius: 8px; padding: 10px; font-size: 0.7rem; color: var(--ink-2); }
.mini-row div b { display: block; color: var(--ink); font-size: 0.78rem; margin-bottom: 2px; }

/* Phone */
.sc-app { grid-column: 8 / span 2; grid-row: 2; align-self: center; min-width: 0; }
.phone {
  border-radius: 30px; background: var(--ink); padding: 8px; max-width: 220px;
  box-shadow: 0 40px 60px -30px rgba(11, 26, 44, .45);
}
.phone-screen { border-radius: 23px; background: var(--surface); padding: 14px 12px; display: grid; gap: 10px; min-height: 340px; align-content: start; }
.phone-notch { width: 42%; height: 16px; border-radius: 99px; background: var(--ink); justify-self: center; margin-top: -6px; }
.phone-screen .p-title { font-family: var(--f-display); font-stretch: 110%; font-weight: 700; font-size: 0.95rem; letter-spacing: -0.03em; line-height: 1.1; }
.appt { border-radius: 12px; background: #E6F3EF; padding: 10px; font-size: 0.7rem; color: #0B4A3E; }
.appt b { display: block; font-size: 0.82rem; color: #08372E; }
.appt .eta { display: inline-block; margin-top: 6px; background: #fff; border-radius: 99px; padding: 3px 8px; font-weight: 600; }
.p-list { display: grid; gap: 6px; }
.p-list div { display: flex; justify-content: space-between; font-size: 0.68rem; color: var(--ink-2); border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.p-list b { color: var(--ink); font-weight: 600; }
.p-tabbar { display: flex; justify-content: space-around; margin-top: 4px; }
.p-tabbar i { width: 18px; height: 4px; border-radius: 2px; background: var(--line-2); }
.p-tabbar i:first-child { background: #0E6E5C; }

/* Agent */
.sc-agent { grid-column: 10 / span 3; grid-row: 2; align-self: start; min-width: 0; }
.chat { border-radius: var(--r-md); background: var(--navy); color: var(--on-navy); padding: 14px; display: grid; gap: 10px; box-shadow: 0 30px 50px -30px rgba(11, 26, 44, .6); }
.chat-head { display: flex; align-items: center; gap: 8px; font-size: 0.72rem; color: var(--on-navy-2); }
.chat-head .live { width: 7px; height: 7px; border-radius: 50%; background: #3DDC97; box-shadow: 0 0 0 3px rgba(61, 220, 151, .2); }
.bubble { font-size: 0.78rem; line-height: 1.45; padding: 9px 11px; border-radius: 12px; max-width: 92%; }
.bubble.them { background: var(--navy-2); justify-self: start; border-bottom-left-radius: 4px; }
.bubble.us { background: var(--cobalt); color: #fff; justify-self: end; border-bottom-right-radius: 4px; }
.chat-action { font-size: 0.7rem; color: #3DDC97; display: flex; gap: 6px; align-items: center; }

/* Automation */
.sc-flow { grid-column: 8 / span 5; grid-row: 2; align-self: end; min-width: 0; }
.flow { display: flex; align-items: center; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; overflow: hidden; }
.flow-step { flex: 1; min-width: 0; display: grid; gap: 2px; font-size: 0.68rem; color: var(--ink-3); padding: 0 6px; }
.flow-step b { font-size: 0.74rem; color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flow-link { flex: none; width: 22px; height: 2px; background: var(--line-2); position: relative; overflow: hidden; }
.flow-link::after { content: ""; position: absolute; inset: 0; background: var(--cobalt); transform: translateX(-100%); }

/* scene arrangement: phone + agent stacked on right column, flow beneath */
.sc-right { grid-column: 8 / span 5; grid-row: 2; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(14px, 2vw, 22px); align-content: start; min-width: 0; }
.sc-right .sc-app, .sc-right .sc-agent, .sc-right .sc-flow { grid-column: auto; grid-row: auto; }
.sc-right .sc-flow { grid-column: 1 / -1; }

@media (max-width: 960px) {
  .sc-site { grid-column: 1 / -1; }
  .sc-right { grid-column: 1 / -1; grid-row: 3; }
}
@media (max-width: 560px) {
  .sc-right { grid-template-columns: minmax(0, 1fr); }
  .phone { max-width: 240px; margin-inline: auto; }
  .mini-hero { grid-template-columns: 1fr; }
  .mini-row { grid-template-columns: 1fr 1fr; }
  .mini-row div:last-child { display: none; }
  .flow { flex-wrap: wrap; row-gap: 10px; }
  .flow-link { display: none; }
  .flow-step { flex: 1 1 45%; }
}

/* one orchestrated load moment: the layers assemble in build order */
@media (prefers-reduced-motion: no-preference) {
  .js .scene [data-step] { animation: rise .7s var(--ease) both; }
  .js .scene [data-step="1"] { animation-delay: .05s; }
  .js .scene [data-step="2"] { animation-delay: .35s; }
  .js .scene [data-step="3"] { animation-delay: .65s; }
  .js .scene [data-step="4"] { animation-delay: .95s; }
  .js .scene .flow-link::after { animation: flowfill .5s var(--ease) both; }
  .js .scene .flow-link:nth-of-type(2)::after { animation-delay: 1.25s; }
  .js .scene .flow-link:nth-of-type(4)::after { animation-delay: 1.45s; }
  .js .scene .flow-link:nth-of-type(6)::after { animation-delay: 1.65s; }
  .js .scene .bubble.us { animation: pop .4s var(--ease) both 1.9s; }
  .js .scene .chat-action { animation: pop .4s var(--ease) both 2.3s; }
}
@keyframes rise { from { transform: translateY(14px); opacity: .001; } to { transform: none; opacity: 1; } }
@keyframes flowfill { to { transform: none; } }
@keyframes pop { from { transform: scale(.94); opacity: .001; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .flow-link::after { transform: none; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Services index (home) ---------- */
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.svc-item a {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center;
  padding: clamp(24px, 3vw, 36px) 0; border-bottom: 1px solid var(--line-2);
  text-decoration: none; color: var(--ink);
  transition: padding-left .3s var(--ease);
}
.svc-item h3 { grid-column: 1 / span 5; font-size: var(--t-xl); font-stretch: 116%; transition: color .2s; }
.svc-item p { grid-column: 6 / span 5; color: var(--ink-2); font-size: var(--t-md); max-width: 50ch; }
.svc-item .go {
  grid-column: 12; justify-self: end; width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--line-2); display: grid; place-items: center;
  transition: background-color .2s, border-color .2s, color .2s, transform .3s var(--ease);
}
.svc-item .go svg { width: 18px; height: 18px; }
.svc-item a:hover h3 { color: var(--cobalt); }
.svc-item a:hover .go { background: var(--cobalt); border-color: var(--cobalt); color: #fff; transform: rotate(-45deg); }
@media (max-width: 760px) {
  .svc-item a { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; }
  .svc-item h3 { grid-column: 1; }
  .svc-item p { grid-column: 1; grid-row: 2; }
  .svc-item .go { grid-column: 2; grid-row: 1 / span 2; }
}

/* ---------- Comparison ---------- */
.compare { width: 100%; border-collapse: collapse; font-size: var(--t-md); }
.compare-scroll { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.compare th, .compare td { text-align: left; padding: 20px clamp(16px, 2.4vw, 32px); border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
.compare thead th { font-family: var(--f-display); font-stretch: 112%; font-weight: 700; font-size: var(--t-lg); letter-spacing: -0.02em; }
.compare thead th:last-child { color: var(--cobalt); }
.compare tbody th { font-weight: 500; color: var(--ink-2); width: 30%; }
.compare td:last-child { background: var(--cobalt-wash); font-weight: 500; }
.compare thead th:last-child { background: var(--cobalt-wash); }
.compare td { min-width: 200px; }

/* ---------- Feature split (AI review) ---------- */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px; align-items: start; }
.split-copy { grid-column: 1 / span 5; display: grid; gap: 20px; position: sticky; top: 110px; }
.split-copy h2 { font-size: var(--t-2xl); }
.split-copy p { color: var(--ink-2); max-width: 44ch; }
.split-body { grid-column: 7 / span 6; }
@media (max-width: 900px) {
  .split-copy, .split-body { grid-column: 1 / -1; position: static; }
}
.deliverables { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.deliverables li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 26px 0; border-bottom: 1px solid var(--line-2); }
.deliverables .n { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: 1.6rem; color: var(--cobalt); line-height: 1; }
.deliverables h3 { font-size: var(--t-lg); font-stretch: 108%; letter-spacing: -0.02em; margin-bottom: 6px; }
.deliverables p { color: var(--ink-2); }

/* ---------- Navy band ---------- */
.band-navy { background: var(--navy); color: var(--on-navy); }
.band-navy p { color: var(--on-navy-2); }
.band-navy .kicker { color: var(--signal); }

.cta-block { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px; align-items: end; }
.cta-block h2 { grid-column: 1 / span 8; font-size: clamp(2.4rem, 1.4rem + 4vw, 4.6rem); font-stretch: 118%; letter-spacing: -0.045em; line-height: 0.98; }
.cta-block .cta-side { grid-column: 9 / span 4; display: grid; gap: 22px; }
@media (max-width: 900px) { .cta-block h2, .cta-block .cta-side { grid-column: 1 / -1; } }

/* ---------- Apps teaser ---------- */
.apps { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px; align-items: center; }
.apps-copy { grid-column: 1 / span 5; display: grid; gap: 18px; }
.apps-copy h2 { font-size: var(--t-2xl); }
.apps-copy p { color: var(--ink-2); max-width: 44ch; }
.apps-art { grid-column: 7 / span 6; display: flex; gap: 20px; justify-content: center; align-items: flex-end; }
.app-tile {
  width: clamp(96px, 16vw, 168px); aspect-ratio: 1; max-width: 100%; border-radius: 28%;
  display: grid; place-items: center; position: relative;
  background: var(--surface); border: 1px dashed var(--line-2); color: var(--ink-3); font-size: var(--t-xs); text-align: center; padding: 10px;
}
.app-tile.is-brand { background: var(--cobalt); border: 0; color: #fff; transform: translateY(-24px); box-shadow: 0 30px 50px -24px rgba(36, 67, 201, .55); }
.app-tile.is-brand svg { width: 52%; }
@media (max-width: 900px) { .apps-copy, .apps-art { grid-column: 1 / -1; } .apps-art { justify-content: flex-start; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy); padding-block: 64px 36px; border-top: 1px solid var(--navy-2); }
.foot-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px; }
.foot-brand { grid-column: 1 / span 5; display: grid; gap: 16px; align-content: start; }
.foot-brand .logo { color: var(--on-navy); }
.foot-brand .logo span span { color: var(--on-navy-2); }
.foot-brand .logo .mk-n { fill: var(--signal); }
.foot-brand p { color: var(--on-navy-2); font-size: var(--t-sm); max-width: 36ch; }
.foot-col { grid-column: span 2; }
.foot-col h2 { font-family: var(--f-text); font-size: var(--t-sm); font-weight: 600; letter-spacing: 0; color: var(--on-navy); margin-bottom: 14px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-col a { color: var(--on-navy-2); text-decoration: none; font-size: var(--t-sm); }
.foot-col a:hover { color: #fff; }
.foot-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--navy-2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: var(--t-xs); color: var(--on-navy-2); }
@media (max-width: 860px) {
  .foot-brand { grid-column: 1 / -1; }
  .foot-col { grid-column: span 4; }
}
@media (max-width: 520px) { .foot-col { grid-column: span 6; } }

/* ---------- Inner pages ---------- */
.page-hero { padding-block: clamp(48px, 7vw, 104px) clamp(40px, 5vw, 72px); }
.page-hero .crumbs { font-size: var(--t-sm); color: var(--ink-3); margin-bottom: 22px; }
.page-hero .crumbs a { color: var(--ink-2); text-decoration: none; }
.page-hero .crumbs a:hover { color: var(--cobalt); }
.page-hero h1 { font-size: clamp(2.4rem, 1.3rem + 4.2vw, 4.75rem); font-stretch: 118%; letter-spacing: -0.045em; line-height: 0.98; max-width: 16ch; }
.page-hero .lede { margin-top: 28px; font-size: var(--t-lg); line-height: 1.5; color: var(--ink-2); max-width: 54ch; }
.page-hero .hero-actions { margin-top: 32px; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.facts div { padding: 22px 24px 0 0; display: grid; gap: 4px; }
.facts div + div { padding-left: 24px; border-left: 1px solid var(--line-2); }
.facts dt { font-size: var(--t-sm); color: var(--ink-3); }
.facts dd { margin: 0; font-family: var(--f-display); font-stretch: 110%; font-weight: 700; font-size: var(--t-lg); letter-spacing: -0.02em; }
@media (max-width: 640px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts div, .facts div + div { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

.included { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.included > div { padding: 26px 0; border-top: 1px solid var(--line-2); display: grid; gap: 8px; align-content: start; }
.included h3 { font-size: var(--t-lg); font-stretch: 108%; letter-spacing: -0.02em; }
.included p { color: var(--ink-2); max-width: 48ch; }
@media (max-width: 760px) { .included { grid-template-columns: minmax(0, 1fr); } }

.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 24px 0; font-family: var(--f-display); font-stretch: 108%; font-weight: 700; font-size: var(--t-lg); letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line-2); position: relative; transition: transform .3s var(--ease), background-color .2s; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); }
.faq summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s var(--ease); }
.faq details[open] summary .pm { background: var(--ink); border-color: var(--ink); }
.faq details[open] summary .pm::before, .faq details[open] summary .pm::after { background: #fff; }
.faq details[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq .answer { padding: 0 0 28px; color: var(--ink-2); max-width: 64ch; display: grid; gap: 12px; }

.next-svc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-2); }
.next-svc a { padding: 28px 24px 28px 0; text-decoration: none; display: grid; gap: 6px; }
.next-svc a + a { padding-left: 24px; border-left: 1px solid var(--line-2); }
.next-svc span { font-size: var(--t-sm); color: var(--ink-3); }
.next-svc b { font-family: var(--f-display); font-stretch: 112%; font-size: var(--t-lg); letter-spacing: -0.02em; }
.next-svc a:hover b { color: var(--cobalt); }
@media (max-width: 760px) {
  .next-svc { grid-template-columns: minmax(0, 1fr); }
  .next-svc a, .next-svc a + a { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* Prose (privacy, about) */
.prose { max-width: 68ch; display: grid; gap: 18px; color: var(--ink-2); }
.prose h2 { color: var(--ink); font-size: var(--t-xl); margin-top: 28px; }
.prose h3 { color: var(--ink); font-size: var(--t-lg); margin-top: 12px; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--cobalt); }

/* Principles (about) */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.principles > div { padding: 28px 28px 0 0; display: grid; gap: 10px; align-content: start; }
.principles > div + div { padding-left: 28px; border-left: 1px solid var(--line-2); }
.principles h3 { font-size: var(--t-lg); font-stretch: 108%; letter-spacing: -0.02em; }
.principles p { color: var(--ink-2); }
@media (max-width: 860px) {
  .principles { grid-template-columns: minmax(0, 1fr); }
  .principles > div, .principles > div + div { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px; }
.contact-aside { grid-column: 1 / span 4; display: grid; gap: 28px; align-content: start; }
.contact-aside .block h2 { font-size: var(--t-lg); font-stretch: 108%; letter-spacing: -0.02em; margin-bottom: 8px; }
.contact-aside .block p { color: var(--ink-2); font-size: var(--t-sm); }
.form-card { grid-column: 6 / span 7; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3.4vw, 44px); }
@media (max-width: 900px) { .contact-aside, .form-card { grid-column: 1 / -1; } .form-card { order: -1; } }
.form { display: grid; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-size: var(--t-sm); font-weight: 600; color: var(--ink); }
.field .hint { font-size: var(--t-xs); color: var(--ink-3); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: var(--t-md); color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 13px 14px; transition: border-color .15s, background-color .15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--line-2); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); background: #fff; box-shadow: 0 0 0 4px var(--cobalt-wash); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.field .chip input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--line-2); font-size: var(--t-sm); font-weight: 500; cursor: pointer; user-select: none;
  transition: background-color .15s, border-color .15s, color .15s;
}
.chip span:hover { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 2.5px solid var(--cobalt); outline-offset: 2px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.form-foot p { font-size: var(--t-xs); color: var(--ink-3); max-width: 36ch; }
.form-status { font-size: var(--t-sm); color: var(--ok); min-height: 1.4em; }
.form-error { font-size: var(--t-sm); color: #B42318; }

/* 404 */
.nf { min-height: 60vh; display: grid; align-content: center; gap: 24px; }
.nf h1 { font-size: clamp(3rem, 2rem + 6vw, 7rem); font-stretch: 125%; letter-spacing: -0.05em; }
.nf p { color: var(--ink-2); max-width: 44ch; font-size: var(--t-lg); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.compare thead td { border-bottom: 1px solid var(--line); background: transparent !important; }

/* ---------- Phone refinements ---------- */
@media (max-width: 560px) {
  .scene-caption span:last-child { display: none; }
  .mini-img { aspect-ratio: 16 / 7; }
  .phone-screen { min-height: 0; }
}
@media (max-width: 640px) {
  .compare-scroll { overflow: visible; }
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { padding: 18px; border-bottom: 1px solid var(--line); }
  .compare tr:last-child { border-bottom: 0; }
  .compare th, .compare td { padding: 0; border: 0; min-width: 0; background: transparent !important; }
  .compare tbody th { color: var(--ink); font-family: var(--f-display); font-stretch: 110%; font-weight: 700; font-size: var(--t-lg); letter-spacing: -0.02em; margin-bottom: 10px; width: 100%; }
  .compare td { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 10px; font-size: var(--t-sm); padding-block: 4px; }
  .compare td::before { content: attr(data-label); color: var(--ink-3); font-weight: 500; }
  .compare td:last-child { color: var(--cobalt-deep); font-weight: 600; }
  .compare td:last-child::before { color: var(--cobalt); }
}

/* ---------- Local identity ---------- */
.hero-kicker { grid-column: 1 / -1; margin-bottom: -6px; }

/* Service-area ledger: the towns we serve, set in the wide display face */
.area-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px; align-items: start; }
.area-copy { grid-column: 1 / span 4; display: grid; gap: 20px; }
.area-copy h2 { font-size: var(--t-2xl); }
.area-copy p { color: var(--ink-2); max-width: 40ch; }
.area-list { grid-column: 6 / span 7; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 0 32px; border-top: 1px solid var(--ink); }
.county { padding-top: 20px; }
.county + .county { padding-left: 32px; border-left: 1px solid var(--line-2); }
.county h3 { display: flex; align-items: center; gap: 10px; font-family: var(--f-text); font-size: var(--t-sm); font-weight: 600; letter-spacing: 0; color: var(--ink-2); margin-bottom: 14px; }
.county h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px rgba(255, 201, 77, .28); flex: none; }
.county ul { list-style: none; margin: 0; padding: 0; }
.county:first-child ul { columns: 2; column-gap: 36px; }
.county li {
  font-family: var(--f-display); font-stretch: 120%; font-weight: 700; letter-spacing: -0.03em;
  font-size: clamp(1.2rem, 0.95rem + 0.9vw, 1.7rem); line-height: 1.3; break-inside: avoid;
}
.area-note { grid-column: 1 / -1; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: var(--t-sm); color: var(--ink-3); }
@media (max-width: 960px) {
  .area-copy, .area-list { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .area-list { grid-template-columns: minmax(0, 1fr); }
  .county + .county { padding-left: 0; border-left: 0; margin-top: 22px; border-top: 1px solid var(--line); }
}

/* Kinds of businesses */
.biz-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--ink); }
.biz-list li { padding: 18px 0; border-bottom: 1px solid var(--line-2); font-family: var(--f-display); font-stretch: 108%; font-weight: 700; font-size: var(--t-lg); letter-spacing: -0.02em; line-height: 1.25; }
@media (max-width: 560px) { .biz-list { grid-template-columns: minmax(0, 1fr); } }

/* Booking preview (small business booking page) */
.book-demo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); display: grid; gap: 20px; box-shadow: 0 30px 60px -40px rgba(11, 26, 44, .35); }
.bd-head { display: grid; gap: 2px; }
.bd-head b { font-family: var(--f-display); font-stretch: 112%; font-size: var(--t-lg); letter-spacing: -0.02em; }
.bd-head span { font-size: var(--t-sm); color: var(--ink-3); }
.bd-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.bd-days span { display: grid; justify-items: center; gap: 2px; padding: 10px 0; border-radius: var(--r-md); border: 1.5px solid var(--line); font-size: var(--t-xs); color: var(--ink-3); }
.bd-days b { font-family: var(--f-display); font-stretch: 110%; font-size: var(--t-lg); color: var(--ink); }
.bd-days .is-on { background: var(--ink); border-color: var(--ink); color: var(--on-navy-2); }
.bd-days .is-on b { color: #fff; }
.bd-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.bd-slots span { text-align: center; padding: 10px 0; border-radius: 999px; border: 1.5px solid var(--line-2); font-size: var(--t-sm); font-weight: 500; font-variant-numeric: tabular-nums; }
.bd-slots .is-taken { border-color: transparent; background: var(--bg); color: var(--ink-3); text-decoration: line-through; }
.bd-slots .is-on { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.bd-confirm { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); background: #E7F4EE; color: var(--ok); font-size: var(--t-sm); }
.bd-confirm svg { flex: none; margin-top: 4px; }
.bd-confirm span { color: var(--ink-2); }
.bd-confirm b { color: var(--ink); font-weight: 600; }
@media (max-width: 420px) { .bd-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Support checklist */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: var(--t-sm); color: var(--ink-2); }
.check-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; }
.check-list li::before { content: ""; width: 14px; height: 8px; margin-top: 6px; border-left: 2px solid var(--cobalt); border-bottom: 2px solid var(--cobalt); transform: rotate(-45deg); }

/* Inquiry form on the navy band */
.band-navy .contact-aside { gap: 18px; }
.inq-title { font-size: var(--t-2xl); color: var(--on-navy); }
.text-link.on-navy { color: var(--signal); }
.band-navy .form-card { border-color: transparent; color: var(--ink); }
.band-navy .form-card p { color: var(--ink-3); }
.band-navy .form-card .form-status { color: var(--ok); }
.band-navy .form-card .form-error { color: #B42318; }
@media (max-width: 900px) { .band-navy .form-card { order: 0; } }

/* Spam trap: hidden from people, filled in by bots */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-card { position: relative; }
.btn:disabled { opacity: .6; cursor: progress; }
