/* Senlac Garage — concept preview stylesheet
   Deal: limewash-ochre palette · Red Hat Display / Red Hat Text · soft radius · solid buttons
   Motion: Emil Kowalski curves, transform/opacity only, hover gated to fine pointers, full reduced-motion. */

@font-face {
  font-family: "Red Hat Display";
  src: url("/assets/fonts/red-hat-display-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Red Hat Text";
  src: url("/assets/fonts/red-hat-text-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f4efe5;
  --surface: #e7dfcf;
  --paper: #fbf8f2;
  --ink: #29251e;
  --muted: #4a4237;
  --accent: #8c6418;
  --accent-ink: #ffffff;
  --accent-soft: #d9a441;
  --inv-bg: #29251e;
  --inv-surface: #35312a;
  --inv-ink: #f4efe5;
  --inv-muted: #c9c2b6;
  --line: rgba(41, 37, 30, 0.14);
  --line-strong: rgba(41, 37, 30, 0.28);
  --inv-line: rgba(244, 239, 229, 0.16);

  --font-display: "Red Hat Display", system-ui, sans-serif;
  --font-text: "Red Hat Text", system-ui, sans-serif;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --wrap: 1312px;
  --gutter: clamp(20px, 4.4vw, 64px);
  --concept-h: 34px;
  --header-h: 72px;
  /* --top-live: the real header height, set by app.js when enlarged text makes the header taller (F5) */
  --top-h: max(calc(var(--concept-h) + var(--header-h)), var(--top-live, 0px));
  --section-y: clamp(72px, 9vw, 120px);
  --shadow-soft: 0 1px 2px rgba(41, 37, 30, 0.06), 0 8px 24px -8px rgba(41, 37, 30, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: calc(var(--top-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent-soft); color: var(--ink); }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  text-wrap: balance;
}
h2 {
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
}
h3 {
  font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.tabular { font-variant-numeric: tabular-nums; }

.wrap {
  width: min(var(--wrap), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

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

/* Focus: one high-contrast ring everywhere */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.section--ink :focus-visible, .footer :focus-visible, .concept-bar :focus-visible { outline-color: var(--accent-soft); }

.skip-link {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--inv-ink);
  border-radius: var(--r-sm);
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus, .skip-link:focus-visible { transform: none; }

/* ---------- Buttons (one system: solid primary, outlined secondary) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: var(--r-sm);
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  transition: background-color 180ms var(--ease-out), border-color 180ms var(--ease-out), color 180ms var(--ease-out), transform 140ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.btn--block { width: 100%; }

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: #7a5713; transform: translateY(-1px); box-shadow: 0 6px 16px -8px rgba(140, 100, 24, 0.7); }
  .btn--secondary:hover { border-color: var(--ink); background: rgba(41, 37, 30, 0.04); transform: translateY(-1px); }
  .btn:hover:active { transform: scale(0.97); }
}

.link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: text-decoration-color 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-decoration-color: var(--ink); }
}

.text-btn {
  min-height: 44px;
  padding: 10px 4px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
  touch-action: manipulation;
}
@media (hover: hover) and (pointer: fine) { .text-btn:hover { color: var(--ink); } }

/* ---------- Concept bar + header ---------- */
.concept-bar {
  background: var(--inv-bg);
  color: var(--inv-muted);
  font-size: 13px;
  line-height: 1.3;
}
.concept-bar__inner {
  min-height: var(--concept-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.concept-bar__link {
  position: relative;
  flex-shrink: 0;
  white-space: nowrap;
  color: var(--inv-ink);
  text-underline-offset: 3px;
  padding-block: 6px;
}
.concept-bar__link::before { content: ""; position: absolute; inset: -8px -6px; } /* 44px tap area without a taller bar */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(244, 239, 229, 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.concept-bar { padding-top: env(safe-area-inset-top, 0px); }
.subpage main { padding-top: var(--top-h); }
.header__bar {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  min-height: 44px;
}
.brand__mark { flex-shrink: 0; }
.brand__name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.header__nav {
  display: flex;
  gap: 4px;
  margin-inline: auto;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  transition: color 150ms var(--ease-out);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 8px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease-out);
}
.nav-link.is-current { color: var(--ink); }
.nav-link.is-current::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .nav-link:hover { color: var(--ink); }
  .nav-link:hover::after { transform: scaleX(1); }
}
.header__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.menu-toggle {
  display: none;
  width: 48px; height: 48px;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: transparent;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}
.menu-toggle:active { transform: scale(0.97); }
.menu-toggle__bars { display: grid; gap: 6px; width: 20px; }
.menu-toggle__bars span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 220ms var(--ease-out);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:last-child { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed;
  inset: calc(var(--top-h) + env(safe-area-inset-top, 0px)) 0 0 0;
  background: var(--bg);
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 49;
}
.menu:not([hidden]) { animation: menu-in 260ms var(--ease-drawer); }
.menu__inner {
  display: grid;
  gap: 4px;
  padding-block: 24px calc(32px + env(safe-area-inset-bottom, 0px));
}
.menu__link {
  display: flex;
  align-items: center;
  min-height: 56px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -0.015em;
  text-decoration: none;
}
.menu .btn { margin-top: 20px; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Photo tag (illustrative label, task requirement) ---------- */
.photo-tag {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: rgba(41, 37, 30, 0.78);
  color: var(--inv-ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
  pointer-events: none;
}

/* ---------- 1 · Hero (split) ---------- */
.hero {
  padding-block: calc(var(--top-h) + 48px) 64px;
  min-height: 100svh;
  display: flex;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  column-gap: clamp(32px, 6vw, 96px);
  align-items: stretch;
}
.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 24px;
  max-width: 34rem;
}
.hero__title {
  font-size: clamp(2.5rem, 1.3rem + 4.2vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.hero__lead {
  margin-top: 24px;
  max-width: 42ch;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero__visual {
  position: relative;
  min-height: 440px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}
.hero__visual picture, .hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__img { object-fit: cover; object-position: 68% 50%; }
.hero__card {
  position: absolute;
  left: 24px; bottom: 24px;
  z-index: 2;
  width: min(320px, calc(100% - 48px));
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.hero__card-dot {
  flex-shrink: 0;
  width: 10px; height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: #3f8a4f;
  box-shadow: 0 0 0 4px rgba(63, 138, 79, 0.16);
}
.hero__card-title { font-weight: 500; font-size: 15px; line-height: 1.35; }
.hero__card-text { margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--muted); }

/* Hero entrance (Taste: data-enter + html.m-enter; words never hidden past 700ms, picture never hidden) */
.enter-mask { display: block; overflow: clip; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.enter-line { display: block; }
.m-enter [data-enter] .enter-line { animation: enter-rise 700ms var(--ease-out) both; }
.m-enter [data-enter] .enter-up { animation: enter-up 520ms var(--ease-out) both; }
.m-enter [data-enter] .enter-up--1 { animation-delay: 340ms; }
.m-enter [data-enter] .enter-up--2 { animation-delay: 400ms; }
@keyframes enter-rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes enter-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- 2 · Band 2 assistant ---------- */
.band2 {
  background: var(--surface);
  padding-block: clamp(56px, 7vw, 88px) clamp(48px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
}
.band2__inner { text-align: center; }
.band2__sub {
  margin: 12px auto 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 18px;
}
.chat { margin-top: 32px; text-align: left; }

/* 0px idle history: grid-row collapse, expands above the pill on the first question */
.chat__history {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 420ms var(--ease-out);
}
.chat.has-messages .chat__history { grid-template-rows: 1fr; }
.chat__history-inner { min-height: 0; overflow: hidden; }
.chat__log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(360px, 50svh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 4px 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.msg {
  max-width: min(640px, 86%);
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  animation: msg-in 240ms var(--ease-out) both;
}
.msg--user {
  align-self: flex-end;
  background: var(--ink);
  color: var(--inv-ink);
  border-bottom-right-radius: 6px;
}
.msg--bot {
  align-self: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
}
.msg--bot a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.msg--typing { display: inline-flex; gap: 5px; align-items: center; padding: 16px 18px; }
.msg--typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: dot 1s var(--ease-in-out) infinite;
}
.msg--typing span:nth-child(2) { animation-delay: 120ms; }
.msg--typing span:nth-child(3) { animation-delay: 240ms; }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes dot { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

.pill {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 60px;
  padding: 6px 6px 6px 24px;
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-soft);
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.pill:focus-within { border-color: var(--accent); }
.pill__input {
  flex: 1;
  min-width: 0;
  height: 46px;
  border: 0;
  background: transparent;
  font-size: 17px;
  outline: none;
}
.pill__input::placeholder { color: #7b7164; opacity: 1; }
.pill__input:focus-visible { outline: 0; box-shadow: inset 0 -2px 0 var(--accent); }
.pill:has(.pill__input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.pill__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 0;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), transform 140ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.pill__btn:active { transform: scale(0.94); }
.pill__btn--mic { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.pill__btn--send { background: var(--accent); color: var(--accent-ink); }
.pill__btn--mic.is-listening {
  background: #b3261e;
  color: #fff;
  box-shadow: 0 0 0 5px rgba(179, 38, 30, 0.18);
  animation: listening 1.4s var(--ease-in-out) infinite;
}
.pill__btn--mic.is-unavailable { color: var(--muted); }
@keyframes listening { 0%, 100% { box-shadow: 0 0 0 4px rgba(179, 38, 30, 0.2); } 50% { box-shadow: 0 0 0 9px rgba(179, 38, 30, 0.08); } }
@media (hover: hover) and (pointer: fine) {
  .pill__btn--mic:hover { background: rgba(41, 37, 30, 0.06); }
  .pill__btn--send:hover { background: #7a5713; }
}
.chat__status {
  min-height: calc(24em / 14);
  margin-top: 8px;
  padding-inline: 24px;
  font-size: 14px;
  line-height: 1.7143;
  line-height: calc(24 / 14); /* scales with enlarged text; exactly 24px at 14px */
  color: var(--ink);
  opacity: 0;
  transition: opacity 180ms var(--ease-out);
}
.chat__status.is-visible { opacity: 1; }
.chat__disclosure {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 0;
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}
.chat__disclosure span { white-space: nowrap; }
.chat__disclosure span + span::before { content: "\00b7"; margin-inline: 8px; }
.chat__noscript { margin-top: 8px; font-size: 15px; }

/* ---------- Shared sections ---------- */
.section { padding-block: var(--section-y); }
.section--bg { background: var(--bg); }
.section--surface { background: var(--surface); }
.section--ink { background: var(--inv-bg); color: var(--inv-ink); }
.section--ink h2, .section--ink h3 { color: var(--inv-ink); }
.section-head { max-width: 40rem; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 18px; }
.lead { margin-top: 18px; font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 46ch; }
.section--ink .lead { color: var(--inv-muted); }

.ticks { display: grid; gap: 12px; margin-top: 24px; }
.ticks li {
  position: relative;
  padding-left: 30px;
  line-height: 1.5;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.32em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.ticks--inv li::before { background-color: var(--accent-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' fill='none' stroke='%2329251e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* ---------- 3 · Services tabs ---------- */
.tabs {
  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  margin-top: 36px;
  padding: 4px;
  background: var(--surface);
  border-radius: var(--r-pill);
}
.tabs__thumb {
  position: absolute;
  top: 4px; bottom: 4px; left: 4px;
  width: calc((100% - 8px) / 2);
  background: var(--paper);
  border-radius: var(--r-pill);
  box-shadow: 0 1px 2px rgba(41, 37, 30, 0.12), 0 4px 12px -6px rgba(41, 37, 30, 0.25);
  transition: transform 260ms var(--ease-in-out);
}
.tabs[data-active="1"] .tabs__thumb { transform: translateX(100%); }
.tabs__tab {
  position: relative;
  z-index: 1;
  min-height: 48px;
  padding: 10px 24px;
  border: 0;
  background: none;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 16px;
  color: var(--muted);
  white-space: nowrap;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  transition: color 180ms var(--ease-out);
}
.tabs__tab[aria-selected="true"] { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .tabs__tab:hover { color: var(--ink); } }

.panels { margin-top: 32px; }
.panel {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.panel:not([hidden]) { animation: panel-in 300ms var(--ease-out); }
.panel:focus-visible { outline-offset: 8px; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
.panel__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}
.panel__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.panel__copy p { margin-top: 14px; color: var(--muted); }
.panel__copy .btn { margin-top: 28px; }

/* ---------- 4 · Lanoguard split + picture-develops ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.split__copy .btn { margin-top: 32px; }
.develop {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  height: min(560px, 62svh);
  background: var(--inv-surface);
}
.develop > img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 5 · Visit ---------- */
.visit {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.facts { margin-top: 32px; border-top: 1px solid var(--line-strong); }
.facts__row {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 16px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line-strong);
}
.facts dt { font-weight: 500; }
.facts dd { color: var(--ink); min-width: 0; }
.postcode {
  --pc-pad: clamp(28px, 3.5vw, 44px);
  padding: var(--pc-pad);
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
/* Real street map (OpenStreetMap, attributed on the image and in the footer): where the postcode sits beside the station */
.postcode__map {
  display: block;
  width: calc(100% + 2 * var(--pc-pad));
  max-width: none;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin: calc(-1 * var(--pc-pad)) calc(-1 * var(--pc-pad)) 24px;
  background: var(--surface);
}
.postcode__label { font-weight: 500; color: var(--muted); }
.postcode__value {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.postcode__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.copy-status { min-height: 24px; margin-top: 10px; font-size: 14px; color: var(--muted); }

/* ---------- 6 · Callback (close) ---------- */
.close__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.close__head { position: sticky; top: calc(var(--top-h) + 32px); }
.close__aside { display: flex; align-items: center; gap: 10px; margin-top: 20px; color: var(--muted); }
.close__icon { flex-shrink: 0; color: var(--accent); }

.enquiry {
  display: grid;
  gap: 28px;
  padding: clamp(24px, 3.5vw, 44px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
}
.enquiry__noscript { padding: 14px 16px; border-radius: var(--r-sm); background: var(--surface); }
.step { display: grid; gap: 14px; }
.step__title {
  display: flex;
  flex-wrap: wrap; /* enlarged text: "optional" drops below rather than overflowing at 320px */
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.step__num {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  /* Badge scales with its numeral (30px at 14px text) so enlarged text stays inside the circle. */
  width: calc(30em / 14); height: calc(30em / 14);
  border-radius: 50%;
  background: var(--ink);
  color: var(--inv-ink);
  font-family: var(--font-text);
  font-size: 14px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.step__opt, .field__opt { font-family: var(--font-text); font-size: 14px; font-weight: 400; color: var(--muted); }
.step__hint { font-size: 15px; color: var(--muted); max-width: 60ch; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px;
  padding: 9px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  transition: background-color 150ms var(--ease-out), border-color 150ms var(--ease-out), color 150ms var(--ease-out), transform 120ms var(--ease-out);
}
.chip:active { transform: scale(0.97); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--inv-ink); }
@media (hover: hover) and (pointer: fine) { .chip[aria-pressed="false"]:hover { border-color: var(--ink); } }

.upload { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.upload__btn { cursor: pointer; }
input[type="file"]:focus-visible + .upload__note, .upload:focus-within .upload__btn { outline: 3px solid var(--accent); outline-offset: 3px; }
.upload__note { font-size: 14px; color: var(--muted); }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.thumbs:empty { display: none; }
.thumb {
  position: relative;
  width: 84px; height: 84px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface);
  animation: msg-in 220ms var(--ease-out) both;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb__remove {
  position: absolute;
  top: 4px; right: 4px;
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(41, 37, 30, 0.8);
  color: #fff;
  font-size: 16px;
  line-height: 1;
}
.thumb__remove::before { content: ""; position: absolute; inset: -8px; }

.fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.field { display: grid; gap: 6px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 500; font-size: 15px; }
.field input, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: #fff;
  font-size: 16px;
  transition: border-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(140, 100, 24, 0.18); }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.field__error { font-size: 14px; line-height: 1.4286; line-height: calc(20 / 14); color: #9c2219; }
/* The slot is as tall as the longest phone message at the current width and text size (both reserves share one
   grid cell with the live message), so showing, changing or clearing an error never moves the submit button. */
.field__error-slot { display: grid; font-size: 14px; line-height: 1.4286; line-height: calc(20 / 14); min-height: calc(20em / 14); }
.field__error-slot > .field__error,
.field__error-slot::before,
.field__error-slot::after { grid-area: 1 / 1; min-width: 0; }
.field__error-slot::before { content: attr(data-reserve-a); visibility: hidden; }
.field__error-slot::after { content: attr(data-reserve-b); visibility: hidden; }
.field ::placeholder { color: #7b7164; opacity: 1; }

.enquiry__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.btn--submit { min-width: min(19.5rem, 100%); }
.enquiry__status:empty { display: none; }
.enquiry__status {
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: #e6efe3;
  border: 1px solid #b9cfb3;
  color: #1f3b22;
  animation: msg-in 260ms var(--ease-out) both;
}
.enquiry__status strong { display: block; font-weight: 600; }

/* ---------- Footer ---------- */
.footer {
  background: var(--inv-bg);
  color: var(--inv-muted);
  padding-block: 64px calc(40px + env(safe-area-inset-bottom, 0px));
  font-size: 15px;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}
.footer__brand { font-family: var(--font-display); font-size: 22px; color: var(--inv-ink); margin-bottom: 10px; }
.footer__head { color: var(--inv-ink); font-weight: 500; margin-bottom: 10px; }
.footer__col p + p { margin-top: 8px; }
.footer__links { display: grid; gap: 2px; }
.footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--inv-ink);
  text-decoration: none;
  transition: color 150ms var(--ease-out);
}
.footer__col p .footer__link { min-height: 44px; }
@media (hover: hover) and (pointer: fine) { .footer__link:hover { color: var(--accent-soft); } }
.footer__legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--inv-line);
  font-size: 13px;
}

/* ---------- Phone bar (mobile only) ---------- */
.phone-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .header__nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header__actions { margin-left: auto; }
}

@media (max-width: 1023px) {
  .hero { padding-block: calc(var(--top-h) + 32px) 48px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); row-gap: 32px; align-items: start; align-content: center; }
  .hero__visual { width: 100%; }
  .hero__copy { max-width: 40rem; padding-block: 0; }
  .hero__visual { min-height: 0; aspect-ratio: 16 / 10; }
  .panel, .split, .visit, .close__grid { grid-template-columns: minmax(0, 1fr); }
  .close__head { position: static; }
  .develop { height: auto; aspect-ratio: 4 / 3; }
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__col:first-child { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  :root { --header-h: 64px; --concept-h: 52px; }
  .concept-bar__inner { padding-block: 6px; font-size: 12.5px; }
  .header__cta { display: none; }
  .hero { padding-block: calc(var(--top-h) + 28px) 40px; }
  .hero__title { font-size: 2.625rem; }
  .hero__lead { font-size: 17px; margin-top: 18px; }
  .hero__actions { flex-direction: column; margin-top: 28px; }
  .hero__actions .btn { width: 100%; }
  .hero__visual { aspect-ratio: auto; height: auto; overflow: visible; background: transparent; }
  .hero__visual picture { position: relative; display: block; height: 312px; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
  .hero__img { object-position: 70% 50%; }
  .hero__card { position: static; width: auto; margin-top: 12px; padding: 0; border: 0; border-radius: 0; background: transparent; }
  .hero__card-dot { display: none; }
  .band2__sub { font-size: 16px; }
  .pill { padding-left: 18px; gap: 4px; }
  .chat__status { padding-inline: 12px; min-height: 48px; } /* reserve 2 lines: long mic/fallback notes wrap on phones; zero CLS (SOP §8.4) */
  .tabs { display: grid; width: 100%; }
  .tabs__tab { padding: 10px 12px; font-size: 15px; }
  .panel__copy .btn, .split__copy .btn, .postcode__actions .btn { width: 100%; }
  .facts__row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .facts dd .link { display: inline-flex; align-items: center; min-height: 44px; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .enquiry__actions .btn { width: 100%; white-space: normal; }
  .enquiry__actions .btn--submit { min-width: 0; } /* F5: label wraps under enlarged text instead of widening the form */
  .enquiry { padding: 20px; }
  /* --bar-live: the phone bar's real height (app.js), so enlarged text never hides the last footer line under it */
  .footer { padding-bottom: max(calc(104px + env(safe-area-inset-bottom, 0px)), calc(var(--bar-live, 0px) + 20px)); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }

  .phone-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(244, 239, 229, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    transition: transform 260ms var(--ease-drawer), opacity 200ms var(--ease-out), visibility 0s linear 0s;
  }
  .phone-bar.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; visibility: hidden; transition: transform 260ms var(--ease-drawer), opacity 200ms var(--ease-out), visibility 0s linear 260ms; }
}

@media (pointer: coarse) {
  input, textarea, select { font-size: 16px; }
}

@media (hover: hover) and (pointer: fine) {
  .panel__media:hover img { transform: scale(1.025); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
  .pill__btn--mic.is-listening { animation: none; }
  .btn:active, .chip:active, .pill__btn:active { transform: none; }
}

@media print {
  .concept-bar, .site-header, .phone-bar, .band2, .tabs, .photo-tag { display: none !important; }
  .panel[hidden] { display: grid !important; }
  body { background: #fff; }
}

/* ---------- Sub-pages (privacy, 404) ---------- */
.header__actions--sub { margin-left: auto; }
.subpage .header__actions--sub .btn { display: inline-flex; }
.doc { padding-block: clamp(56px, 8vw, 104px); min-height: 60svh; }
.doc__inner { max-width: calc(46rem + var(--gutter) * 2); }
.doc--center .doc__inner { text-align: left; }
.doc__title { font-size: clamp(2.25rem, 1.4rem + 3vw, 3.5rem); line-height: 1.05; letter-spacing: -0.03em; }
.doc__lead { margin-top: 18px; font-size: 18px; color: var(--muted); max-width: 60ch; }
.doc__block { margin-top: 40px; }
.doc__block h2 { font-size: 1.5rem; letter-spacing: -0.015em; }
.doc__block p { margin-top: 10px; max-width: 65ch; }
.doc__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }
.footer__legal--sub { margin-top: 0; padding-top: 0; border-top: 0; display: grid; gap: 6px; }
.subpage .footer { padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 767px) { .doc__actions .btn { width: 100%; } }

/* ---------- One 12-column grid for every split (Taste SR-6/SR-8: shared column lines) ---------- */
@media (min-width: 1024px) {
  .hero__grid, .panel, .split, .visit, .close__grid, .footer__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
  }
  .hero__copy { grid-column: 1 / span 5; justify-content: flex-start; padding-top: 0; }
  .hero__visual { grid-column: 7 / -1; }
  .panel { align-items: start; }
  .panel__copy { grid-column: 1 / span 5; grid-row: 1; }
  .panel__media { grid-column: 7 / -1; grid-row: 1; }
  .split__copy { grid-column: 1 / span 5; }
  .develop { grid-column: 7 / -1; }
  .visit__copy { grid-column: 1 / span 5; }
  .postcode { grid-column: 7 / -1; }
  .close__head { grid-column: 1 / span 5; }
  .enquiry { grid-column: 7 / -1; }
  .footer__col:nth-child(1) { grid-column: 1 / span 6; }
  .footer__col:nth-child(2) { grid-column: 7 / span 3; }
  .footer__col:nth-child(3) { grid-column: 10 / -1; }
}
@media (min-width: 1024px) and (min-height: 700px) {
  .section { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
}

/* Pass-2 fixes */
.subpage { display: flex; flex-direction: column; min-height: 100svh; }
.subpage main { flex: 1; }
.subpage .doc { padding-top: calc(var(--top-h) + clamp(48px, 7vw, 88px)); }
@media (max-width: 600px) {
  .chat__disclosure { flex-direction: column; align-items: center; gap: 2px; }
  .chat__disclosure span + span::before { content: none; }
}

/* ---------- QA fixes 2026-12-04 (task 82cca28871e54ab6) ---------- */
/* B1: sub-page header reflows instead of pushing the callback button off narrow screens */
.subpage .brand { flex-shrink: 1; min-width: 0; }
.subpage .header__actions--sub { flex-shrink: 0; }
@media (max-width: 480px) {
  .subpage .header__bar { gap: 12px; }
  .subpage .brand { gap: 10px; }
  .subpage .brand__name { font-size: 17px; line-height: 1.1; }
  .subpage .header__actions--sub .btn { padding-inline: 14px; font-size: 14px; }
}

/* B2: autofill hook (animationstart) + theme-matched autofill colours */
@keyframes senlac-autofill-start { from { opacity: 1; } to { opacity: 1; } }
@keyframes senlac-autofill-cancel { from { opacity: 1; } to { opacity: 1; } }
.field input:not(:-webkit-autofill), .field textarea:not(:-webkit-autofill), .pill__input:not(:-webkit-autofill) { animation: senlac-autofill-cancel 1ms; }
.field input:-webkit-autofill, .field textarea:-webkit-autofill {
  animation: senlac-autofill-start 1ms;
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  box-shadow: 0 0 0 1000px #fff inset;
  transition: background-color 9999s step-end 0s, border-color 150ms var(--ease-out);
}
.field input:-webkit-autofill:focus-visible, .field textarea:-webkit-autofill:focus-visible {
  -webkit-box-shadow: 0 0 0 1000px #fff inset, 0 0 0 4px rgba(140, 100, 24, 0.18);
  box-shadow: 0 0 0 1000px #fff inset, 0 0 0 4px rgba(140, 100, 24, 0.18);
}
.field input:autofill, .field textarea:autofill { animation: senlac-autofill-start 1ms; }
.pill__input:-webkit-autofill {
  animation: senlac-autofill-start 1ms;
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px var(--paper) inset;
  box-shadow: 0 0 0 1000px var(--paper) inset;
  transition: background-color 9999s step-end 0s;
}

/* B4: privacy / terms links on sub-pages */
.footer__sublinks { display: flex; flex-wrap: wrap; gap: 0 24px; }
.footer__link[aria-current="page"] { color: var(--accent-soft); }
/* Skip link shows instantly on focus (no inherited reduced-motion micro-transition) */
.skip-link { transition: none; }

/* ---------- QA fixes 2026-12-04 (Codex QA 32d86747, F5): reflow under 200% text ----------
   Nothing here moves anything at normal text size (checked element-by-element against a 100% layout snapshot);
   it only lets labels wrap and rows shrink once the text no longer fits. */
body { container: page / inline-size; }
.btn, .chat__disclosure span, .concept-bar__link { white-space: normal; text-wrap: balance; }
.btn { max-width: 100%; }
.brand, .header__actions { flex-shrink: 1; }
.header__actions { min-width: 0; }
.brand__name { overflow-wrap: break-word; }
.enquiry, .step { grid-template-columns: minmax(0, 1fr); }
.chip, .field label, .step__title, .upload__note { min-width: 0; overflow-wrap: break-word; }
.chat__disclosure span { text-align: center; }
/* Large-text mode: the page is fewer than 16 of its own text widths across (only reachable on phones with
   enlarged text; the narrowest normal-size phone, 320px, is 20). Stack the service tabs and let the
   preview-notice link wrap. */
@container page (max-width: 16em) {
  .tabs { grid-auto-flow: row; grid-auto-columns: auto; grid-auto-rows: 1fr; border-radius: var(--r-lg); }
  .tabs__tab, .tabs__thumb { border-radius: calc(var(--r-lg) - 4px); }
  .tabs__tab { white-space: normal; text-wrap: balance; }
  .tabs__thumb { right: 4px; width: auto; height: calc((100% - 8px) / 2); }
  .tabs[data-active="1"] .tabs__thumb { transform: translateY(100%); }
  .concept-bar__link { flex-shrink: 1; text-align: right; }
  /* The header row wraps rather than squeezing the name: the button drops to its own line if it must. */
  .subpage .header__bar { flex-wrap: wrap; row-gap: 8px; padding-block: 8px; }
  .subpage .brand { min-width: auto; }
  .subpage .header__actions--sub { flex-shrink: 1; min-width: 0; }
  /* Sub-pages have no script to measure the taller header, so it joins the flow instead of covering the title. */
  .subpage .site-header { position: sticky; }
  .subpage main { padding-top: 0; }
  .subpage .doc { padding-top: clamp(48px, 7vw, 88px); }
}
/* The selected-tab highlight is sized to the real tab by app.js (the tabs are content-sized, so a fixed 50%
   highlight cut through "Servicing and repairs" at 320-375px), in either row or stacked layout. */
.tabs.has-thumb .tabs__thumb {
  top: 0; left: 0; right: auto; bottom: auto;
  width: var(--thumb-w); height: var(--thumb-h);
  transform: translate(var(--thumb-x), var(--thumb-y));
  transition: none;
}
.tabs.has-thumb.thumb-ready .tabs__thumb { transition: transform 260ms var(--ease-in-out), width 260ms var(--ease-in-out), height 260ms var(--ease-in-out); }
