/* ==========================================================================
   Driksoett: site styles
   Brand tokens live in :root below. Rust, cream and ink are sampled from the
   Driksoett logo; the whole site is coloured from these values.
   ========================================================================== */

:root {
  /* Brand colours */
  --primary: #993d00;       /* logo rust: bands, featured cards, links */
  --primary-deep: #7d3200;  /* rust, hover */
  --ink: #1a1814;           /* logo wordmark: text and dark surfaces */
  --ink-soft: #5c5249;      /* secondary text */
  --accent: #f4b45f;        /* honey: call-to-action buttons */
  --accent-deep: #e8a03f;   /* honey, hover */
  --page: #f4f0e8;          /* logo cream: page background */
  --tint: #ebe2d6;          /* soft sand */
  --tint-2: #dccbb8;        /* deeper sand */
  --water-light: #d5e9e4;   /* pale aqua tint */
  --white: #ffffff;
  --line: #e3d9cc;
  --success: #2e6b3d;
  --error: #b3261e;

  /* Type: Instrument Serif matches the logo wordmark; Instrument Sans is its companion */
  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-h3: 1.3125rem;
  --fs-h2: clamp(2.4rem, 1.6rem + 3vw, 3.9rem);
  --fs-hero: clamp(3rem, 1.6rem + 5.4vw, 5.6rem);

  /* Shape */
  --r-panel: 36px;
  --r-card: 22px;
  --r-input: 12px;
  --r-pill: 999px;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --section-y: clamp(72px, 9vw, 128px);
  --wave-h: 28px;
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 28' preserveAspectRatio='none'%3E%3Cpath d='M0 14Q40 0 80 14T160 14V28H0Z'/%3E%3C/svg%3E");

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- Base ---------- */

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

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 28px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 760;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
}

a[href^="tel:"] {
  white-space: nowrap;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid var(--focus, var(--primary));
  outline-offset: 3px;
  border-radius: 6px;
}

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

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--fill,
.icon--brand {
  fill: currentColor;
  stroke: none;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

/* ---------- Preview helpers (remove "is-preview" on <html> to hide) ---------- */

.is-preview .ph {
  text-decoration: underline dashed 1.5px;
  text-underline-offset: 0.22em;
  text-decoration-skip-ink: none;
}

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

.btn {
  --btn-bg: var(--primary);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s, border-color 0.18s, transform 0.12s;
}

.btn:active {
  transform: scale(0.97);
}

.btn .icon {
  width: 20px;
  height: 20px;
}

.btn--primary:hover {
  --btn-bg: var(--primary-deep);
}

.btn--accent {
  --btn-bg: var(--accent);
  --btn-fg: var(--ink);
}

.btn--accent:hover {
  --btn-bg: var(--accent-deep);
}

.btn--ink {
  --btn-bg: var(--ink);
}

.btn--ink:hover {
  --btn-bg: #3a332c;
}

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--ink);
}

.btn--outline:hover {
  --btn-bg: var(--page);
}

.btn--ghost-light {
  --btn-bg: transparent;
  border-color: rgb(255 255 255 / 0.55);
}

.btn--sm {
  min-height: 44px;
  padding: 0 20px;
  font-size: 0.9375rem;
}

.btn--block {
  width: 100%;
}

.btn[disabled] {
  cursor: progress;
  opacity: 0.7;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: 12px;
  margin-bottom: calc(-1 * (var(--header-h) + 12px));
  pointer-events: none;
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
  padding: 0 12px 0 18px;
  border-radius: 20px;
  background: var(--white);
  pointer-events: auto;
  transition: box-shadow 0.2s;
}

.site-header.is-scrolled .site-header__bar {
  box-shadow: 0 10px 30px rgb(26 24 20 / 0.12);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border-radius: 12px;
}

.logo img {
  width: auto;
  height: 40px;
}

.site-footer .logo img {
  height: 44px;
}

@media (max-width: 379px) {
  .site-header .logo img {
    height: 34px;
  }
}

.site-nav {
  margin-inline: auto;
}

.site-nav__list {
  display: flex;
  gap: 2px;
}

.site-nav__list a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 560;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav__list a:hover {
  background: var(--page);
}

.site-nav__toggle {
  display: none;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.header-phone .icon {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

@media (max-width: 1079px) {
  .site-header__actions {
    margin-left: auto;
  }

  .site-nav {
    order: 3;
    margin: 0;
  }

  .site-nav__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border: 2px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--white);
    font-weight: 650;
    cursor: pointer;
  }

  .site-nav__toggle .icon {
    width: 20px;
    height: 20px;
  }

  .site-nav__list {
    position: absolute;
    top: calc(12px + var(--header-h) + 8px);
    left: var(--gutter);
    right: var(--gutter);
    display: none;
    flex-direction: column;
    padding: 10px;
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 18px 40px rgb(26 24 20 / 0.18);
    pointer-events: auto;
  }

  .site-nav.is-open .site-nav__list {
    display: flex;
  }

  .site-nav__list a {
    padding: 14px 16px;
    font-size: 1.0625rem;
  }
}

@media (max-width: 767px) {
  .site-header__actions {
    display: none;
  }

  .site-nav {
    margin-left: auto;
  }
}

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

.hero__frame {
  --focus: var(--accent);
  position: relative;
  padding-top: calc(12px + var(--header-h) + 20px);
  background: var(--primary);
}

.hero__frame::after,
.band::before,
.band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: var(--wave-h);
  background: inherit;
  -webkit-mask: var(--wave) repeat-x 0 0 / 160px var(--wave-h);
  mask: var(--wave) repeat-x 0 0 / 160px var(--wave-h);
}

.hero__frame::after,
.band::after {
  bottom: calc(1px - var(--wave-h));
  transform: scaleY(-1);
}

.hero__panel {
  --focus: var(--primary);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 16px;
  overflow: hidden;
  border-radius: var(--r-panel);
  background: var(--white);
}

.hero__copy {
  align-self: center;
  padding: clamp(40px, 5vw, 72px) 0 clamp(40px, 5vw, 72px) clamp(28px, 5vw, 64px);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.01em;
}

.hero__lede {
  max-width: 32em;
  margin-top: 22px;
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--ink-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 28px;
}

.hero__points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.96875rem;
  font-weight: 600;
}

.hero__points .icon {
  width: 24px;
  height: 24px;
  padding: 5px;
  border-radius: 50%;
  background: var(--accent);
  stroke-width: 3.5;
}

.hero__points a {
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.hero__art-wrap {
  position: relative;
  padding: 14px 14px 14px 0;
}

.hero__art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 50%;
  border-radius: calc(var(--r-panel) - 14px);
}

.hero__chip {
  position: absolute;
  top: 9%;
  right: 5%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 10px 30px rgb(26 24 20 / 0.14);
  font-size: var(--fs-sm);
  font-weight: 650;
}

.hero__chip .icon {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

@media (max-width: 899px) {
  .hero__panel {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero__copy {
    padding: 36px 24px 8px;
  }

  .hero__art-wrap {
    padding: 16px 12px 12px;
  }

  .hero__art {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .hero__chip {
    top: 28px;
    left: 24px;
    right: auto;
  }
}

/* ---------- Services marquee ---------- */

.marquee {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 0 26px;
  color: var(--white);
}

.marquee__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 50s linear infinite;
}

.marquee.is-paused .marquee__track {
  animation-play-state: paused;
}

.marquee__group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

.marquee__group li {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem);
  font-weight: 400;
  white-space: nowrap;
}

.marquee__group .icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.marquee__toggle {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  margin-right: var(--gutter);
  border: 2px solid rgb(255 255 255 / 0.6);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.marquee__toggle:hover {
  background: rgb(255 255 255 / 0.12);
}

.marquee__toggle .icon {
  width: 18px;
  height: 18px;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    width: auto;
    animation: none;
    padding-inline: var(--gutter);
  }

  .marquee__group {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 8px;
    flex-shrink: 1;
  }

  .marquee__group[aria-hidden="true"],
  .marquee__toggle {
    display: none;
  }

  .marquee__viewport {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

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

.section {
  padding-block: var(--section-y);
}

.about {
  padding-top: calc(var(--section-y) + var(--wave-h));
}

.services,
.faq {
  background: var(--white);
}

.h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.005em;
}

.split-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 20px 64px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.split-head__body p {
  max-width: 34em;
  font-size: 1.125rem;
  color: var(--ink-soft);
}

.split-head__body .btn {
  margin-top: 24px;
}

.center-head {
  display: grid;
  justify-items: center;
  gap: 16px;
  max-width: 46rem;
  margin: 0 auto clamp(40px, 5vw, 64px);
  text-align: center;
}

.center-head p {
  max-width: 36em;
  font-size: 1.125rem;
}

@media (max-width: 859px) {
  .split-head {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

/* Blue wave bands */
.band {
  --focus: var(--accent);
  position: relative;
  padding-block: calc(var(--section-y) + 8px);
  background: var(--primary);
  color: var(--white);
}

.band::before {
  top: calc(1px - var(--wave-h));
}

.band + .section {
  padding-top: calc(var(--section-y) + var(--wave-h));
}

/* ---------- About ---------- */

.promises {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.promise {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}

.promise .icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 14px;
  background: var(--accent);
}

.promise h3 {
  font-size: 1.125rem;
  font-weight: 750;
}

.promise p {
  margin-top: 4px;
  font-size: 0.96875rem;
  color: var(--ink-soft);
}

.promise a {
  color: var(--primary);
  font-weight: 600;
}

@media (max-width: 999px) {
  .promises {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 559px) {
  .promises {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ---------- Services ---------- */

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-radius: var(--r-card);
  background: var(--page);
}

.service__icon {
  width: 48px;
  height: 48px;
  padding: 11px;
  border-radius: 14px;
  background: var(--white);
  color: var(--primary);
}

.service h3 {
  font-size: var(--fs-h3);
  font-weight: 750;
}

.service > p:not(.price) {
  font-size: 0.96875rem;
  color: var(--ink-soft);
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
}

.price__from,
.price__unit {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-soft);
}

.price__amount {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1;
}

.service__link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.service__link:hover {
  color: var(--primary-deep);
  text-decoration-thickness: 3px;
}

.service--featured {
  --focus: var(--accent);
  grid-row: span 2;
  gap: 16px;
  padding: 36px;
  background: var(--primary);
  color: var(--white);
}

.service--featured .service__icon {
  background: var(--accent);
  color: var(--ink);
}

.service--featured h3 {
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
  font-weight: 800;
}

.service--featured > p:not(.price),
.service--featured .price__from,
.service--featured .price__unit {
  color: var(--white);
}

.service--featured .price__amount {
  font-size: clamp(3rem, 2.4rem + 2vw, 4rem);
}

.service--featured .btn {
  align-self: flex-start;
}

.service__tag {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.service__includes {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.service__includes li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 560;
}

.service__includes .icon {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--accent);
  stroke-width: 3;
}

@media (max-width: 999px) {
  .services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service--featured {
    grid-row: auto;
    grid-column: 1 / -1;
  }
}

@media (max-width: 639px) {
  .services__grid {
    grid-template-columns: 1fr;
  }

  .service,
  .service--featured {
    padding: 24px;
  }
}

/* ---------- Before and after ---------- */

.results__layout {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.ba {
  margin: 0;
}

.ba__frame {
  --pos: 50%;
  position: relative;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--tint);
}

.ba__frame:has(.ba__range:focus-visible) {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}

.ba__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.ba__before {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 4px;
  margin-left: -2px;
  background: var(--white);
  box-shadow: 0 0 0 1px rgb(26 24 20 / 0.15);
  pointer-events: none;
}

.ba__knob {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 6px 18px rgb(26 24 20 / 0.25);
}

.ba__label {
  position: absolute;
  top: 16px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgb(26 24 20 / 0.8);
  color: var(--white);
  font-size: var(--fs-sm);
  font-weight: 700;
  pointer-events: none;
}

.ba__label--before {
  left: 16px;
}

.ba__label--after {
  right: 16px;
  background: var(--white);
  color: var(--ink);
}

.ba__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}

.ba__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 56px;
  height: 600px;
}

.ba__range::-moz-range-thumb {
  width: 56px;
  height: 600px;
  border: 0;
}

.ba__caption {
  margin-top: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}

.results__picker-label {
  margin-bottom: 12px;
  font-weight: 700;
}

.results__picker {
  display: grid;
  gap: 10px;
}

.pair {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  padding: 8px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s;
}

.pair:hover {
  border-color: var(--tint-2);
}

.pair img {
  width: 96px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
}

.pair[aria-pressed="true"] {
  border-color: var(--primary);
  color: var(--primary);
}

.results__note {
  margin-top: 20px;
  font-size: 0.96875rem;
  color: var(--ink-soft);
}

@media (max-width: 899px) {
  .results__layout {
    grid-template-columns: 1fr;
  }

  .results__picker {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pair {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: center;
  }

  .pair img {
    width: 100%;
    height: auto;
    aspect-ratio: 8 / 5;
  }
}

/* ---------- Process ---------- */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.step {
  --focus: var(--primary);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 24px 28px;
  border-radius: var(--r-card);
  background: var(--white);
  color: var(--ink);
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 52px;
  right: -14px;
  z-index: 1;
  width: 12px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
}

.step__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.step__num {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 400;
  line-height: 0.9;
  color: var(--primary);
}

.step .icon {
  width: 48px;
  height: 48px;
  padding: 11px;
  border-radius: 14px;
  background: var(--accent);
}

.step h3 {
  font-size: 1.25rem;
}

.step p {
  font-size: 0.96875rem;
  color: var(--ink-soft);
}

.process__cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

@media (max-width: 999px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step::after {
    display: none;
  }
}

@media (max-width: 599px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- Guarantees ---------- */

.promise-section {
  background: var(--white);
}

.guarantee {
  --focus: var(--ink);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding: clamp(32px, 5vw, 72px);
  border-radius: var(--r-panel);
  background: var(--accent);
}

.guarantee__name {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.guarantee__copy .h2 {
  margin-top: 12px;
  font-size: clamp(2.6rem, 1.6rem + 3.6vw, 4.5rem);
}

.guarantee__copy p {
  max-width: 32em;
  margin-top: 20px;
  font-size: 1.125rem;
}

.guarantee__copy .guarantee__small {
  margin-top: 12px;
  font-size: var(--fs-sm);
}

.guarantee__copy .btn {
  margin-top: 28px;
}

.guarantee__steps {
  display: grid;
  gap: 12px;
}

.guarantee__steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px 22px;
  border-radius: var(--r-card);
  background: var(--white);
}

.guarantee__steps .icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 14px;
  background: var(--primary);
  color: var(--white);
}

.guarantee__steps h3 {
  font-size: 1.125rem;
}

.guarantee__steps p {
  margin-top: 4px;
  font-size: 0.96875rem;
  color: var(--ink-soft);
}

.guarantees {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.guarantee-card {
  padding: clamp(28px, 3.5vw, 44px);
  border-radius: var(--r-panel);
  background: var(--page);
}

.guarantee-card .icon {
  width: 48px;
  height: 48px;
  padding: 11px;
  border-radius: 14px;
  background: var(--white);
  color: var(--primary);
}

.guarantee-card__for {
  margin-top: 20px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--primary);
}

.guarantee-card h3 {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.5rem);
  font-weight: 400;
  line-height: 1.05;
}

.guarantee-card p:not(.guarantee-card__for) {
  max-width: 34em;
  margin-top: 12px;
  color: var(--ink-soft);
}

.guarantee-card .guarantee-card__small {
  font-size: var(--fs-sm);
}

@media (max-width: 899px) {
  .guarantee {
    grid-template-columns: 1fr;
  }

  .guarantees {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 559px) {
  .guarantee {
    padding: 32px 12px 12px;
    border-radius: 28px;
  }

  .guarantee__copy {
    padding-inline: 10px;
  }
}

/* ---------- Areas ---------- */

.areas__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.areas__copy > p {
  max-width: 34em;
  margin-top: 16px;
  font-size: 1.125rem;
  color: var(--ink-soft);
}

.postcode {
  margin-top: 32px;
  padding: 24px;
  border-radius: var(--r-card);
  background: var(--white);
}

.postcode label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}

.postcode__row {
  display: flex;
  gap: 10px;
}

.postcode__result {
  min-height: 1.6em;
  margin-top: 12px;
  font-weight: 600;
}

.postcode__result:empty {
  margin-top: 0;
  min-height: 0;
}

.postcode__result.is-yes {
  color: var(--success);
}

.postcode__result a {
  color: var(--primary);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.chips li {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--white);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.areas__map img {
  width: 100%;
  height: auto;
  border-radius: 4.9% / 6.6%;
  box-shadow: 0 14px 36px rgb(26 24 20 / 0.1);
}

@media (max-width: 899px) {
  .areas__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ---------- Form controls ---------- */

.postcode input,
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 2px solid var(--line);
  border-radius: var(--r-input);
  background: var(--white);
  font-size: 1rem;
  transition: border-color 0.18s;
}

.postcode input:hover,
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--tint-2);
}

.postcode input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
}

.field select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1814' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

::placeholder {
  color: #7a6e63;
  opacity: 1;
}

/* ---------- FAQ ---------- */

.faq__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: start;
}

.faq__intro {
  position: sticky;
  top: calc(var(--header-h) + 36px);
}

.faq__intro p {
  max-width: 26em;
  margin-top: 20px;
  font-size: 1.125rem;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.faq__intro a {
  color: var(--primary);
  font-weight: 600;
}

.faq__list {
  display: grid;
  gap: 10px;
}

.faq__item {
  border-radius: 18px;
  background: var(--page);
  transition: background-color 0.2s;
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 18px 20px 18px 22px;
  border-radius: 18px;
  font-size: 1.0625rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary .icon {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 50%;
  background: var(--white);
  color: var(--primary);
  transition: transform 0.25s var(--ease-out);
}

.faq__item[open] {
  --focus: var(--accent);
  background: var(--primary);
  color: var(--white);
}

.faq__item[open] summary .icon {
  transform: rotate(45deg);
  background: var(--accent);
  color: var(--ink);
}

.faq__answer {
  padding: 0 22px 22px;
}

.faq__answer p {
  max-width: 60ch;
}

.faq__answer p + p {
  margin-top: 10px;
}

@media (max-width: 899px) {
  .faq__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .faq__intro {
    position: static;
  }
}

/* ---------- Tips ---------- */

.tips__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tip {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--white);
}

.tip__art {
  position: relative;
  display: grid;
  place-items: center;
  height: 160px;
  background: var(--tint);
  color: var(--primary);
}

.tip:nth-child(2) .tip__art {
  background: var(--water-light);
}

.tip:nth-child(3) .tip__art {
  background: color-mix(in srgb, var(--accent) 38%, var(--white));
}

.tip__art::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 16px;
  background: var(--white);
  -webkit-mask: var(--wave) repeat-x 0 0 / 80px 16px;
  mask: var(--wave) repeat-x 0 0 / 80px 16px;
}

.tip__art .icon {
  width: 64px;
  height: 64px;
  stroke-width: 1.5;
}

.tip__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 26px 28px;
}

.tip__tag {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--primary);
}

.tip h3 {
  font-size: 1.25rem;
}

.tip__body > p:last-child {
  font-size: 0.96875rem;
  color: var(--ink-soft);
}

@media (max-width: 899px) {
  .tips__grid {
    grid-template-columns: 1fr;
  }

  .tip {
    flex-direction: row;
  }

  .tip__art {
    width: 120px;
    height: auto;
    flex: none;
  }

  .tip__art::after {
    display: none;
  }

  .tip__art .icon {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 479px) {
  .tip {
    flex-direction: column;
  }

  .tip__art {
    width: auto;
    height: 120px;
  }

  .tip__art::after {
    display: block;
  }
}

/* ---------- Quote ---------- */

.quote {
  padding-bottom: var(--section-y);
}

.quote__panel {
  --focus: var(--accent);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 64px);
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--r-panel);
  background: var(--primary);
  color: var(--white);
}

.quote__intro > p {
  max-width: 28em;
  margin-top: 16px;
  font-size: 1.125rem;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 650;
}

.contact-list .icon {
  width: 44px;
  height: 44px;
  padding: 11px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.14);
}

.contact-list a {
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.quote-form,
.form-success {
  --focus: var(--primary);
  padding: clamp(24px, 3.5vw, 40px);
  border-radius: 26px;
  background: var(--white);
  color: var(--ink);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.96875rem;
  font-weight: 650;
}

.req {
  color: var(--error);
}

.hint,
.field__hint {
  font-weight: 400;
  color: var(--ink-soft);
}

.field__hint {
  margin-top: 6px;
  font-size: var(--fs-sm);
}

.field__error {
  margin-top: 6px;
  font-size: var(--fs-sm);
  font-weight: 650;
  color: var(--error);
}

.field__error:empty {
  display: none;
}

.field.is-invalid input,
.field.is-invalid select {
  border-color: var(--error);
}

.form-errors {
  margin-bottom: 22px;
  padding: 16px 18px;
  border: 2px solid var(--error);
  border-radius: 14px;
  background: #fff5f4;
}

.form-errors h3 {
  font-size: 1.0625rem;
}

.form-errors ul {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.form-errors a {
  font-weight: 600;
  color: var(--error);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-privacy {
  margin-top: 20px;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}

.form-privacy a {
  color: var(--primary);
  font-weight: 600;
}

.quote-form .btn {
  margin-top: 18px;
}

.form-required {
  margin-top: 12px;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  min-height: 100%;
}

.form-success[hidden] {
  display: none;
}

.form-success .icon {
  width: 56px;
  height: 56px;
  padding: 13px;
  border-radius: 50%;
  background: var(--accent);
  stroke-width: 3;
}

.form-success h3 {
  font-size: 1.75rem;
}

@media (max-width: 959px) {
  .quote__panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 559px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .quote__panel {
    gap: 28px;
    padding: 32px 10px 10px;
    border-radius: 28px;
  }

  .quote__intro {
    padding-inline: 14px;
  }

  .quote-form,
  .form-success {
    padding: 22px 18px;
    border-radius: 20px;
  }
}

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

.site-footer {
  --focus: var(--accent);
  padding-block: 72px 32px;
  background: var(--ink);
  color: var(--white);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer__brand > p {
  max-width: 26em;
  margin-top: 16px;
  color: #e4dccf;
}

.footer__h {
  margin-bottom: 16px;
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: 0;
}

.site-footer ul {
  display: grid;
  gap: 10px;
}

.site-footer a {
  color: #e4dccf;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer .logo {
  color: var(--white);
}

.footer__contact {
  color: #e4dccf;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / 0.14);
  font-size: var(--fs-sm);
  color: #c8bcad;
}

.footer__legal p {
  max-width: 70ch;
}

@media (max-width: 899px) {
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 479px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Mobile call-to-action bar ---------- */

.mobile-cta {
  display: none;
}

@media (max-width: 767px) {
  /* The bar hides once the quote form or footer is on screen, so nothing sits underneath it for good. */
  html {
    scroll-padding-bottom: 96px;
  }

  .mobile-cta {
    --focus: var(--accent);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: var(--ink);
    transition: transform 0.25s var(--ease-out), visibility 0s;
  }

  .mobile-cta .btn {
    min-height: 48px;
    padding: 0 20px;
  }

  .mobile-cta.is-hidden {
    transform: translateY(110%);
    visibility: hidden;
    transition: transform 0.2s ease-in, visibility 0s 0.2s;
  }
}

/* ---------- Page-load moment (hero only) ---------- */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .hero__copy > * {
    animation: rise 0.7s var(--ease-out) both;
  }

  .hero__copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero__copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero__copy > :nth-child(4) { animation-delay: 0.24s; }

  .hero__art {
    animation: art-in 0.9s var(--ease-out) 0.1s both;
  }

  .hero__chip {
    animation: rise 0.6s var(--ease-out) 0.9s both;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes art-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
}

/* ---------- Privacy notice page ---------- */

.legal-header {
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.legal-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.legal {
  padding-block: 56px 96px;
}

.legal .container {
  max-width: 46rem;
}

.legal h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 400;
  letter-spacing: -0.005em;
}

.legal h2 {
  margin-top: 40px;
  font-size: 1.375rem;
}

.legal p,
.legal ul {
  margin-top: 14px;
  color: var(--ink-soft);
}

.legal ul {
  display: grid;
  gap: 6px;
  padding-left: 1.25em;
  list-style: disc;
}

.legal a {
  color: var(--primary);
  font-weight: 600;
}

.legal .lede {
  font-size: 1.125rem;
  color: var(--ink);
}
