/* ==========================================================================
   Vitaly Locksmith — v2 stylesheet
   Light theme · warm neutrals · Gambarino + Switzer + Caveat
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Palette */
  --color-bg:            oklch(0.97 0.015 80);
  --color-bg-tint:       oklch(0.95 0.02 80);
  --color-surface:       oklch(0.99 0.008 80);
  --color-surface-sunk:  oklch(0.93 0.025 80);
  --color-surface-deep:  oklch(0.88 0.03 80);

  --color-ink:           oklch(0.18 0.025 220);
  --color-ink-muted:     oklch(0.42 0.02 220);
  --color-ink-soft:      oklch(0.58 0.015 220);
  --color-ink-faint:     oklch(0.72 0.012 220);

  --color-line:          oklch(0.87 0.018 80);
  --color-line-strong:   oklch(0.76 0.022 80);

  --color-primary:       oklch(0.30 0.06 220);
  --color-primary-ink:   oklch(0.98 0.008 80);
  --color-primary-hover: oklch(0.25 0.065 220);
  --color-primary-soft:  oklch(0.94 0.02 220);

  --color-accent:        oklch(0.52 0.17 45);
  --color-accent-ink:    oklch(0.99 0.008 80);
  --color-accent-hover:  oklch(0.46 0.175 45);
  --color-accent-soft:   oklch(0.94 0.045 45);

  --color-success:       oklch(0.50 0.13 145);
  --color-warn:          oklch(0.62 0.16 60);

  --focus-ring:          oklch(0.55 0.18 45 / 0.45);

  /* Type families */
  --font-display: 'Gambarino', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --font-body:    'Switzer', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-hand:    'Caveat', 'Bradley Hand', 'Segoe Script', cursive;

  /* Fluid type scale */
  --text-xs:   0.78rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.0625rem;
  --text-lg:   1.1875rem;
  --text-xl:   clamp(1.35rem, 1.18rem + 0.75vw, 1.625rem);
  --text-2xl:  clamp(1.7rem, 1.38rem + 1.4vw, 2.25rem);
  --text-3xl:  clamp(2.1rem, 1.6rem + 2.3vw, 3.2rem);
  --text-4xl:  clamp(2.6rem, 1.85rem + 3.4vw, 4.25rem);
  --text-5xl:  clamp(3rem, 2rem + 4.6vw, 5.5rem);

  /* Line heights */
  --lh-tight:  1.08;
  --lh-snug:   1.22;
  --lh-normal: 1.55;
  --lh-relax:  1.7;

  /* Spacing — 4pt scale, semantic names */
  --space-2xs: 4px;
  --space-xs:  8px;
  --space-sm:  12px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-pill: 999px;

  /* Shadows (warm, low-sat) */
  --shadow-xs: 0 1px 2px oklch(0.2 0.02 220 / 0.06);
  --shadow-sm: 0 2px 6px oklch(0.2 0.02 220 / 0.07);
  --shadow-md: 0 8px 20px oklch(0.2 0.02 220 / 0.09);
  --shadow-lg: 0 18px 42px oklch(0.2 0.02 220 / 0.13);

  /* Layout */
  --container-max:    1200px;
  --container-wide:   1320px;
  --container-narrow: 900px;
  --container-px:     clamp(18px, 4.5vw, 36px);
  --section-py:       clamp(56px, 9vw, 120px);

  /* Motion */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-2:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-std:    cubic-bezier(0.4, 0, 0.2, 1);
  --dur-xs:      120ms;
  --dur-sm:      200ms;
  --dur-md:      320ms;
  --dur-lg:      500ms;
  --dur-xl:      800ms;
}

/* --------------------------------------------------------------------------
   2. Reset + base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--lh-normal);
  font-feature-settings: "ss01", "cv11", "kern";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--lh-tight);
  letter-spacing: -0.015em;
  color: var(--color-ink);
  margin: 0 0 var(--space-md);
}

h1 { font-size: var(--text-5xl); letter-spacing: -0.025em; }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); line-height: var(--lh-snug); }
h4 { font-size: var(--text-lg); line-height: var(--lh-snug); }

p  { margin: 0 0 var(--space-md); color: var(--color-ink-muted); max-width: 68ch; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--color-primary);
  text-decoration-color: color-mix(in oklab, var(--color-primary) 30%, transparent);
  text-underline-offset: 3px;
  transition: color var(--dur-sm) var(--ease-std), text-decoration-color var(--dur-sm) var(--ease-std);
}
a:hover { color: var(--color-primary-hover); text-decoration-color: currentColor; }

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

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

button { font: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-ink);
  color: var(--color-bg);
  padding: var(--space-sm) var(--space-md);
  z-index: 9999;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}
.container-wide   { max-width: var(--container-wide); }
.container-narrow { max-width: var(--container-narrow); }

section { position: relative; padding-block: var(--section-py); }
section.section-tight { padding-block: clamp(40px, 6vw, 72px); }

.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.text-primary { color: var(--color-primary); }
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  margin: 0 0 var(--space-md);
}
.handwritten {
  font-family: var(--font-hand);
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: -0.005em;
}

.section-header { margin-bottom: var(--space-2xl); }
.section-header.text-center { margin-inline: auto; max-width: 52rem; }
.section-header p { color: var(--color-ink-muted); font-size: var(--text-lg); max-width: 60ch; }
.section-header.text-center p { margin-inline: auto; }

.section-footnote {
  color: var(--color-ink-soft);
  font-size: var(--text-sm);
  text-align: center;
  margin-top: var(--space-xl);
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-pad-x: 22px;
  --btn-pad-y: 14px;
  --btn-font: var(--text-md);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--btn-pad-y) var(--btn-pad-x);
  min-height: 48px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: var(--btn-font);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--dur-sm) var(--ease-out),
    background var(--dur-sm) var(--ease-std),
    color var(--dur-sm) var(--ease-std),
    border-color var(--dur-sm) var(--ease-std),
    box-shadow var(--dur-sm) var(--ease-std);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-primary);
  color: var(--color-primary-ink);
  border-color: var(--color-primary);
  box-shadow: 0 6px 16px oklch(0.3 0.06 220 / 0.25);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: var(--color-primary-ink);
  box-shadow: 0 10px 24px oklch(0.3 0.06 220 / 0.32);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  border-color: var(--color-accent);
  box-shadow: 0 6px 16px oklch(0.52 0.17 45 / 0.28);
}
.btn-accent:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-accent-ink);
  box-shadow: 0 10px 26px oklch(0.52 0.17 45 / 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-line-strong);
}
.btn-ghost:hover {
  background: var(--color-surface);
  border-color: var(--color-ink);
  color: var(--color-ink);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-primary-ink);
}

.btn-lg { --btn-pad-x: 28px; --btn-pad-y: 18px; --btn-font: var(--text-lg); min-height: 56px; }
.btn-xl { --btn-pad-x: 32px; --btn-pad-y: 22px; --btn-font: var(--text-xl); min-height: 64px; }
.btn-sm { --btn-pad-x: 16px; --btn-pad-y: 10px; --btn-font: var(--text-sm); min-height: 40px; }

.btn .icon { width: 18px; height: 18px; flex: none; }
.btn-full  { width: 100%; }

/* --------------------------------------------------------------------------
   5. Header + nav
   -------------------------------------------------------------------------- */
.urgency-strip {
  background: var(--color-ink);
  color: var(--color-bg);
  font-size: var(--text-sm);
  padding: 10px 0;
}
.urgency-content {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-wrap: wrap;
}
.urgency-content p { margin: 0; color: var(--color-bg); max-width: none; }
.urgency-content a { color: var(--color-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.urgency-content a:hover { color: var(--color-bg); }
.urgency-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 0 oklch(0.52 0.17 45 / 0.6);
  animation: pulse-dot 2s var(--ease-out) infinite;
  flex: none;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 oklch(0.52 0.17 45 / 0.6); }
  70%  { box-shadow: 0 0 0 10px oklch(0.52 0.17 45 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(0.52 0.17 45 / 0); }
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--color-bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: transform var(--dur-md) var(--ease-std),
              border-color var(--dur-sm) var(--ease-std),
              background var(--dur-sm) var(--ease-std);
}
.header.scrolled {
  border-bottom-color: var(--color-line);
  background: color-mix(in oklab, var(--color-bg) 96%, transparent);
}
.header.hidden { transform: translateY(-100%); }

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: 14px 0;
  min-height: 68px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.logo .logo-mark {
  font-size: 0.78em;
  color: var(--color-accent);
  font-family: var(--font-hand);
  font-weight: 600;
  transform: translateY(-3px);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 28px);
}
.nav-menu a:not(.btn) {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ink);
  text-decoration: none;
  padding: 6px 2px;
  position: relative;
  transition: color var(--dur-sm) var(--ease-std);
}
.nav-menu a.active,
.nav-menu a[aria-current="page"] {
  color: var(--color-accent);
  font-weight: 600;
}
.nav-menu a:not(.btn):hover { color: var(--color-accent); }
.nav-menu a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-sm) var(--ease-out);
}
.nav-menu a:not(.btn):hover::after,
.nav-menu a[aria-current="page"]::after { transform: scaleX(1); }
.nav-menu .btn { padding: 10px 20px; min-height: 42px; }

.mobile-controls {
  display: none;
  align-items: center;
  gap: var(--space-xs);
  /* Sit above .nav-menu (z:95) inside the shared header stacking context,
     otherwise the hamburger gets painted under the open menu panel. */
  position: relative;
  z-index: 100;
}
.mobile-call-btn { padding: 10px 14px; min-height: 42px; }

.mobile-menu-toggle {
  background: transparent;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-pill);
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.mobile-menu-toggle span {
  position: absolute;
  width: 18px; height: 1.5px;
  background: var(--color-ink);
  border-radius: 2px;
  transition: transform var(--dur-sm) var(--ease-std), opacity var(--dur-sm) var(--ease-std);
}
.mobile-menu-toggle span:nth-child(1) { transform: translateY(-5px); }
.mobile-menu-toggle span:nth-child(3) { transform: translateY(5px); }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
   6. Mobile bottom action bar
   -------------------------------------------------------------------------- */
.mobile-bottom-bar {
  position: fixed;
  inset: auto 0 0 0;
  display: none;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0));
  background: color-mix(in oklab, var(--color-bg) 94%, transparent);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  border-top: 1px solid var(--color-line);
  box-shadow: 0 -10px 28px oklch(0 0 0 / 0.06);
  z-index: 90;
  gap: 8px;
}
.mobile-bottom-bar .btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  font-size: var(--text-sm);
  gap: 6px;
  letter-spacing: 0;
}
.mobile-bottom-bar .btn svg { width: 16px; height: 16px; flex: none; }
.mobile-bottom-bar .btn-ghost {
  background: var(--color-bg);
  border-color: var(--color-line-strong, var(--color-line));
}
/* Narrow phones: Call stays wide with label, SMS collapses to icon-only square
   so both buttons breathe on 320–380px screens. */
@media (max-width: 380px) {
  .mobile-bottom-bar .btn-accent { flex: 1 1 auto; }
  .mobile-bottom-bar .btn-ghost {
    flex: 0 0 48px;
    width: 48px;
    padding: 0;
    gap: 0;
  }
  .mobile-bottom-bar .btn-ghost .label { display: none; }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(40px, 6vw, 72px) clamp(48px, 7vw, 96px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      60% 80% at 88% 15%,
      oklch(0.52 0.17 45 / 0.08) 0%,
      transparent 70%
    ),
    radial-gradient(
      50% 70% at 10% 90%,
      oklch(0.30 0.06 220 / 0.06) 0%,
      transparent 70%
    );
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  position: relative;
  z-index: 1;
  align-items: center;
}
@media (min-width: 920px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(40px, 5vw, 80px);
  }
}

.hero-portrait {
  position: relative;
  order: 1;
}
@media (min-width: 920px) {
  .hero-portrait { order: 0; }
}

.hero-portrait-stage {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 460px;
  margin-inline: auto;
}
@media (min-width: 920px) {
  .hero-portrait-stage { margin-inline: 0; max-width: none; }
}

.hero-portrait-blob {
  position: absolute;
  inset: 6% 2% 0 2%;
  background: var(--color-accent);
  border-radius: 58% 42% 55% 45% / 48% 52% 48% 52%;
  box-shadow: 0 30px 60px oklch(0.52 0.17 45 / 0.18);
  z-index: 0;
  rotate: -3deg;
  animation: blob-breath 9s ease-in-out infinite;
  transform-origin: 50% 55%;
  will-change: transform;
}
.hero-portrait-blob::after {
  content: "";
  position: absolute;
  inset: -4% -3%;
  border: 1.5px solid color-mix(in oklab, var(--color-accent) 60%, transparent);
  border-radius: inherit;
  rotate: 4deg;
  opacity: 0.5;
  animation: blob-ring 11s ease-in-out infinite;
  transform-origin: 50% 55%;
}

.hero-portrait-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 18px 30px oklch(0.2 0.03 220 / 0.22));

  /* Mask so the head extends ABOVE the oval, but the body is clipped
     to the oval's bottom curve — top 55% stays untouched (rectangle mask),
     bottom half follows an ellipse that matches the blob's footprint.
     The two masks union (default mask-composite: add). */
  --portrait-mask:
    linear-gradient(to bottom, #000 0%, #000 55%, transparent 55%),
    radial-gradient(ellipse 49% 50% at 50% 50%, #000 98%, transparent 100%);
  -webkit-mask-image: var(--portrait-mask);
          mask-image: var(--portrait-mask);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
}

.hero-portrait-badge {
  position: absolute;
  z-index: 2;
  top: 3%;
  right: -4%;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  max-width: 200px;
  rotate: 4deg;
  animation: badge-float 6s ease-in-out infinite;
}
.hero-portrait-badge { text-align: center; }
.hero-portrait-badge .hand {
  font-family: var(--font-hand);
  font-weight: 600;
  color: var(--color-accent);
  font-size: 1.5rem;
  line-height: 1;
  display: block;
  margin-bottom: 4px;
}
.hero-portrait-badge .small {
  font-size: var(--text-xs);
  color: var(--color-ink-soft);
  margin: 0;
  line-height: 1.4;
}

.hero-text { max-width: 42rem; }
.hero-text .handwritten-label {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: clamp(1.5rem, 1.1rem + 1vw, 1.9rem);
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
  transform: rotate(-1deg);
}
.hero-text h1 {
  margin-bottom: var(--space-lg);
  color: var(--color-ink);
}
.hero-text h1 em {
  font-style: normal;
  color: var(--color-accent);
  font-family: var(--font-display);
}
.hero-sub {
  font-size: var(--text-lg);
  color: var(--color-ink-muted);
  line-height: var(--lh-normal);
  margin-bottom: var(--space-xl);
  max-width: 44ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}
.hero-note {
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
  margin: 0;
}
.hero-note strong { color: var(--color-ink); font-weight: 600; }

/* Trust bar — below hero */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-xl);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  align-items: center;
  justify-content: center;
  background: var(--color-bg-tint);
}
.trust-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  color: var(--color-ink-muted);
  font-weight: 500;
}
.trust-bar-item svg {
  width: 18px; height: 18px;
  color: var(--color-accent);
  flex: none;
}
.trust-bar-item strong { color: var(--color-ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   8. Instant price (SMS quote)
   -------------------------------------------------------------------------- */
.instant-price { padding-block: clamp(32px, 5vw, 64px); }
.instant-card {
  background: var(--color-ink);
  color: var(--color-bg);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 56px);
  display: grid;
  gap: var(--space-xl);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.instant-card::before {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, oklch(0.52 0.17 45 / 0.4) 0%, transparent 70%);
  pointer-events: none;
}
@media (min-width: 720px) {
  .instant-card {
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-2xl);
  }
}
.instant-card h2 {
  color: var(--color-bg);
  font-size: var(--text-3xl);
  margin-bottom: var(--space-sm);
}
.instant-card p { color: oklch(0.82 0.015 80); margin-bottom: 0; }
.instant-example {
  margin-top: var(--space-md);
  font-size: var(--text-sm);
  color: oklch(0.75 0.015 80);
  font-style: italic;
}
.instant-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  position: relative;
  z-index: 1;
}
.instant-card .btn-ghost {
  border-color: oklch(0.55 0.015 80);
  color: var(--color-bg);
}
.instant-card .btn-ghost:hover {
  background: oklch(1 0 0 / 0.06);
  border-color: var(--color-bg);
  color: var(--color-bg);
}

/* --------------------------------------------------------------------------
   9. Pricing
   -------------------------------------------------------------------------- */
.pricing-section { background: var(--color-surface-sunk); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.pricing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: border-color var(--dur-sm) var(--ease-std), transform var(--dur-md) var(--ease-out);
}
.pricing-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
}
.pricing-card h3 {
  font-size: var(--text-lg);
  margin: 0;
  line-height: var(--lh-snug);
}
.pricing-card .price {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.6rem + 1.5vw, 2.5rem);
  line-height: 1;
  color: var(--color-accent);
  margin: 4px 0 0;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.pricing-card .price .unit {
  font-size: 0.55em;
  color: var(--color-ink-soft);
  font-family: var(--font-body);
  letter-spacing: 0;
  margin-left: 4px;
}
.pricing-card p {
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
  line-height: var(--lh-normal);
  margin: 0;
}

.pricing-meta {
  max-width: 58rem;
  margin-inline: auto;
  text-align: center;
  margin-bottom: var(--space-xl);
}
.pricing-meta p { color: var(--color-ink-muted); font-size: var(--text-sm); margin-inline: auto; }
.pricing-promise {
  font-family: var(--font-display);
  font-size: var(--text-xl) !important;
  color: var(--color-ink) !important;
  margin-top: var(--space-sm) !important;
}
.pricing-cta {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   10. Services
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}
.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition:
    border-color var(--dur-sm) var(--ease-std),
    box-shadow var(--dur-sm) var(--ease-std),
    transform var(--dur-md) var(--ease-out);
}
@media (hover: hover) {
  .service-card:hover {
    border-color: var(--color-line-strong);
    box-shadow: var(--shadow-sm);
    transform: translateY(-3px);
  }
  .service-card:hover .icon-box {
    transform: scale(1.06) rotate(-3deg);
  }
}
.service-card .icon-box {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--color-accent-soft);
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
  transition: transform var(--dur-md) var(--ease-out);
}
.service-card .icon-box svg { width: 22px; height: 22px; }
.service-card h3 { font-size: var(--text-lg); margin: 0; line-height: var(--lh-snug); }
.service-card p { font-size: var(--text-md); color: var(--color-ink-muted); margin: 0; }
.service-card .card-note {
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
  margin-top: auto;
  padding-top: var(--space-sm);
  border-top: 1px dashed var(--color-line);
  font-style: italic;
}

.services-footnote {
  text-align: center;
  margin-top: var(--space-xl);
  margin-inline: auto;
  max-width: 60ch;
  color: var(--color-ink-soft);
  font-size: var(--text-sm);
}

/* Asymmetric services grid (residential) — break the monotony */
.services-mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}
@media (min-width: 900px) {
  .services-mosaic {
    grid-template-columns: 1.3fr 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .services-mosaic .service-card:nth-child(1) { grid-row: span 2; }
  .services-mosaic .service-card:nth-child(2) { grid-column: span 2; }
}
.services-mosaic .service-card:nth-child(1) {
  background: var(--color-ink);
  color: var(--color-bg);
  border-color: var(--color-ink);
}
.services-mosaic .service-card:nth-child(1) h3 { color: var(--color-bg); }
.services-mosaic .service-card:nth-child(1) p  { color: oklch(0.82 0.015 80); }
.services-mosaic .service-card:nth-child(1) .icon-box {
  background: oklch(1 0 0 / 0.08);
  color: var(--color-accent);
}
.services-mosaic .service-card:nth-child(1) .card-note {
  color: oklch(0.72 0.015 80);
  border-top-color: oklch(0.35 0.02 220);
}

/* --------------------------------------------------------------------------
   11. POV videos (scroll)
   -------------------------------------------------------------------------- */
.pov-section { background: var(--color-bg-tint); }
.pov-scroll {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: var(--space-sm) 0 var(--space-md);
  margin-inline: calc(-1 * var(--container-px));
  padding-inline: var(--container-px);
  scrollbar-width: thin;
}
.pov-scroll::-webkit-scrollbar { height: 6px; }
.pov-scroll::-webkit-scrollbar-thumb { background: var(--color-line-strong); border-radius: 3px; }

.pov-card {
  flex: 0 0 min(85vw, 320px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.pov-video {
  aspect-ratio: 9 / 14;
  background: var(--color-ink);
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-md);
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--dur-md) var(--ease-out);
}
.pov-video::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-ink);
  opacity: 1;
  transition: opacity var(--dur-lg) var(--ease-out);
  border-radius: inherit;
  z-index: 0;
  pointer-events: none;
}
.pov-video.thumb-ready::before { opacity: 0; }
.pov-video:hover { transform: translateY(-2px); }
.pov-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: oklch(0.2 0.02 220 / 0.35);
  color: var(--color-bg);
  transition: background var(--dur-sm) var(--ease-std);
  z-index: 1;
}
.pov-video:hover .pov-placeholder { background: oklch(0.2 0.02 220 / 0.55); }
.pov-placeholder svg {
  transition: transform var(--dur-md) var(--ease-out);
}
.pov-video:hover .pov-placeholder svg { transform: scale(1.1); }
.pov-placeholder svg { width: 54px; height: 54px; filter: drop-shadow(0 4px 12px oklch(0 0 0 / 0.4)); }
.pov-label {
  font-size: var(--text-sm);
  color: var(--color-ink-muted);
  margin: 0;
  line-height: var(--lh-snug);
  font-weight: 500;
}

.video-modal {
  position: fixed; inset: 0;
  background: oklch(0.1 0.02 220 / 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--dur-sm) var(--ease-std),
    visibility 0s linear var(--dur-sm);
}
.video-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity var(--dur-sm) var(--ease-std),
    visibility 0s;
}
.video-modal-inner {
  position: relative;
  width: min(100%, 480px);
  aspect-ratio: 9/16;
  transform: scale(0.96);
  opacity: 0;
  transition:
    transform var(--dur-md) var(--ease-out-2),
    opacity var(--dur-md) var(--ease-std);
}
.video-modal.open .video-modal-inner {
  transform: scale(1);
  opacity: 1;
}
.video-modal-frame, .video-modal-frame iframe {
  width: 100%; height: 100%;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--color-ink);
}
.video-modal-close {
  position: absolute;
  top: -44px; right: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-ink);
  border: 0;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.video-modal-close:hover { background: var(--color-accent); color: var(--color-accent-ink); }

/* --------------------------------------------------------------------------
   12. Car makes
   -------------------------------------------------------------------------- */
.makes-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  justify-content: center;
  max-width: 880px;
  margin-inline: auto;
}
.make-chip {
  padding: 10px 18px;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ink);
  background: var(--color-surface);
  transition: background var(--dur-sm) var(--ease-std), color var(--dur-sm) var(--ease-std), border-color var(--dur-sm) var(--ease-std);
}
.make-chip:hover { background: var(--color-ink); color: var(--color-bg); border-color: var(--color-ink); }

/* --------------------------------------------------------------------------
   13. About Vitaly
   -------------------------------------------------------------------------- */
.about-section { background: var(--color-surface-sunk); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
@media (min-width: 880px) {
  .about-grid { grid-template-columns: 0.85fr 1.15fr; gap: var(--space-4xl); }
}

.about-image-wrapper {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 420px;
  margin-inline: auto;
}
@media (min-width: 880px) { .about-image-wrapper { margin-inline: 0; } }
.about-image-wrapper::before {
  content: "";
  position: absolute;
  inset: 8% 4% -3% 4%;
  background: var(--color-ink);
  border-radius: 48% 52% 42% 58% / 52% 48% 52% 48%;
  z-index: 0;
  transform: rotate(3deg);
}
.about-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 18px 26px oklch(0.2 0.03 220 / 0.22));

  /* Same trick as the hero portrait: head extends above the ink blob,
     but the body is clipped to the blob's bottom curve. About blob has
     inset 8% 4% -3% 4% — slightly bigger, so the ellipse runs a bit
     wider and its bottom extends past the image frame. */
  --portrait-mask:
    linear-gradient(to bottom, #000 0%, #000 55%, transparent 55%),
    radial-gradient(ellipse 48% 52% at 50% 52%, #000 98%, transparent 100%);
  -webkit-mask-image: var(--portrait-mask);
          mask-image: var(--portrait-mask);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
}
.about-signature {
  position: absolute;
  z-index: 2;
  bottom: 2%;
  right: -2%;
  font-family: var(--font-hand);
  font-size: clamp(2rem, 1.5rem + 1.5vw, 2.8rem);
  color: var(--color-accent);
  transform: rotate(-6deg);
  line-height: 1;
}

.about-content .eyebrow { color: var(--color-accent); }
.about-content h2 { margin-bottom: var(--space-md); }
.about-content .lead-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-ink);
  line-height: var(--lh-snug);
  margin-bottom: var(--space-md);
  max-width: 50ch;
}

.trust-list {
  list-style: none;
  padding: 0;
  margin: var(--space-xl) 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}
.trust-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.check-icon {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-accent-ink);
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.trust-list strong { display: block; color: var(--color-ink); font-size: var(--text-md); font-weight: 600; }
.trust-list .sub-check { display: block; font-size: var(--text-sm); color: var(--color-ink-soft); margin-top: 2px; }

.about-actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   14. Reviews
   -------------------------------------------------------------------------- */
.rating-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  text-align: center;
}
@media (min-width: 720px) {
  .rating-summary { flex-direction: row; justify-content: space-between; text-align: left; }
}
.rating-score {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem);
  color: var(--color-ink);
  line-height: 1;
  margin: 0;
  letter-spacing: -0.02em;
}
.rating-summary div p:last-child {
  color: var(--color-ink-soft);
  font-size: var(--text-sm);
  margin: 4px 0 0;
}
.rating-actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}
.review-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  position: relative;
  transition:
    border-color var(--dur-sm) var(--ease-std),
    box-shadow var(--dur-sm) var(--ease-std),
    transform var(--dur-md) var(--ease-out);
}
@media (hover: hover) {
  .review-card:hover {
    border-color: var(--color-line-strong);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
  }
  .review-card:hover::before {
    opacity: 0.55;
    translate: 0 -2px;
  }
}
.review-card::before {
  content: "\201C";
  position: absolute;
  top: 4px; left: 16px;
  font-family: var(--font-display);
  font-size: 4.5rem;
  color: var(--color-accent);
  line-height: 1;
  opacity: 0.35;
  pointer-events: none;
  transition: opacity var(--dur-md) var(--ease-out), translate var(--dur-md) var(--ease-out);
}
.review-card p {
  position: relative;
  color: var(--color-ink);
  font-size: var(--text-md);
  line-height: var(--lh-normal);
  margin: var(--space-md) 0 0;
  font-family: var(--font-display);
  font-weight: 400;
}
.review-author {
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
  margin-top: auto;
  padding-top: var(--space-sm);
  font-family: var(--font-body);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   15. How it works
   -------------------------------------------------------------------------- */
.how-it-works { background: var(--color-bg-tint); }
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
  position: relative;
}
.step-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition:
    border-color var(--dur-sm) var(--ease-std),
    transform var(--dur-md) var(--ease-out);
}
@media (hover: hover) {
  .step-card:hover {
    border-color: var(--color-line-strong);
    transform: translateY(-2px);
  }
  .step-card:hover .step-num {
    transform: translateY(-1px);
    letter-spacing: -0.028em;
  }
}
.step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--color-accent);
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-xs);
  font-weight: 400;
  transition: transform var(--dur-md) var(--ease-out), letter-spacing var(--dur-md) var(--ease-out);
}
.step-card h3 { font-size: var(--text-lg); margin: 0; line-height: var(--lh-snug); }
.step-card p { color: var(--color-ink-muted); font-size: var(--text-md); margin: 0; }

/* --------------------------------------------------------------------------
   16. Areas (map + cities)
   -------------------------------------------------------------------------- */
.areas-section { padding-block: 0; }
.areas-split {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 420px;
}
@media (min-width: 900px) {
  .areas-split { grid-template-columns: 1fr 1fr; min-height: 540px; }
}
.map-container {
  background: var(--color-ink);
  min-height: 320px;
  position: relative;
}
.map-container iframe { width: 100%; height: 100%; display: block; filter: grayscale(0.3) contrast(0.95); }
.areas-content {
  background: var(--color-ink);
  color: var(--color-bg);
  padding: clamp(32px, 5vw, 72px) clamp(24px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-md);
}
.areas-content h2 { color: var(--color-bg); }
.areas-content p { color: oklch(0.82 0.015 80); }
.areas-list-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  margin-block: var(--space-md);
}
.area-tag {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  background: oklch(1 0 0 / 0.08);
  color: var(--color-bg);
  border: 1px solid oklch(1 0 0 / 0.14);
}
.area-cta { margin-top: var(--space-md); }
.area-cta p {
  color: oklch(0.82 0.015 80);
  font-size: var(--text-sm);
  margin-bottom: var(--space-sm);
}

/* --------------------------------------------------------------------------
   17. Cross-link card
   -------------------------------------------------------------------------- */
.crosslink-wrap { padding-block: clamp(32px, 5vw, 72px); }
.crosslink {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  border-radius: var(--radius-xl);
  padding: clamp(32px, 4vw, 56px);
  display: grid;
  gap: var(--space-lg);
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-inline: auto;
  max-width: var(--container-max);
}
@media (min-width: 720px) {
  .crosslink { grid-template-columns: 1.3fr auto; gap: var(--space-2xl); }
}
.crosslink::before {
  content: "";
  position: absolute;
  right: -10%; top: -40%;
  width: 360px; height: 360px;
  background: radial-gradient(circle, oklch(1 0 0 / 0.15) 0%, transparent 65%);
  pointer-events: none;
}
.crosslink h3 {
  color: var(--color-accent-ink);
  font-size: var(--text-2xl);
  margin: 0 0 var(--space-sm);
  max-width: 28ch;
}
.crosslink p { color: oklch(0.97 0.015 80 / 0.92); margin: 0; max-width: 50ch; }
.crosslink .btn {
  background: var(--color-accent-ink);
  color: var(--color-accent);
  border-color: var(--color-accent-ink);
  z-index: 1;
}
.crosslink .btn:hover {
  background: var(--color-ink);
  color: var(--color-bg);
  border-color: var(--color-ink);
}

/* --------------------------------------------------------------------------
   18. FAQ
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--color-line);
}
.faq-item {
  border-bottom: 1px solid var(--color-line);
  padding: 0;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-lg) 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-ink);
  line-height: var(--lh-snug);
  position: relative;
  padding-right: 40px;
  transition: color var(--dur-sm) var(--ease-std);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 4px; top: 50%;
  width: 12px; height: 12px;
  border-right: 2px solid var(--color-ink);
  border-bottom: 2px solid var(--color-ink);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--dur-sm) var(--ease-out);
}
.faq-item[open] summary { color: var(--color-accent); }
.faq-item[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
  border-color: var(--color-accent);
}
.faq-item p {
  padding: 0 0 var(--space-lg);
  color: var(--color-ink-muted);
  max-width: 68ch;
}

/* --------------------------------------------------------------------------
   19. Contact / Form
   -------------------------------------------------------------------------- */
.contact-section { background: var(--color-surface-sunk); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1.2fr; gap: var(--space-3xl); }
}
.contact-info h3, .contact-form-wrapper h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
}
.contact-intro { color: var(--color-ink-muted); margin-bottom: var(--space-lg); }

.info-item {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-line);
}
.info-item:last-of-type { border-bottom: 0; }
.icon-badge {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.info-item .label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--color-ink-soft);
  margin: 0 0 2px;
}
.info-item .value { margin: 0; color: var(--color-ink); font-weight: 500; }
.info-item .value a { color: var(--color-ink); }
.info-item .value a:hover { color: var(--color-accent); }

.contact-actions { margin-top: var(--space-lg); display: flex; gap: var(--space-sm); flex-wrap: wrap; }

.contact-form-wrapper {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 40px);
}
.form-group { margin-bottom: var(--space-md); }
.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ink);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--color-line-strong);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: inherit;
  font-size: var(--text-md);
  transition: border-color var(--dur-sm) var(--ease-std), background var(--dur-sm) var(--ease-std);
}
.form-group textarea { min-height: 96px; resize: vertical; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  outline: 3px solid var(--focus-ring);
  outline-offset: 0;
  background: var(--color-surface);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--color-ink-faint); }
.checkbox-group {
  display: flex;
  gap: var(--space-xs);
  align-items: flex-start;
  margin-bottom: var(--space-md);
}
.checkbox-group input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--color-accent); }
.checkbox-group label { margin: 0; font-size: var(--text-sm); color: var(--color-ink-muted); font-weight: 400; }
.consent-text {
  font-size: var(--text-xs);
  color: var(--color-ink-soft);
  margin-bottom: var(--space-md);
  max-width: none;
}
.form-success {
  margin: var(--space-md) 0 0;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-accent-soft);
  color: var(--color-ink);
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in oklab, var(--color-accent) 40%, transparent);
  font-size: var(--text-sm);
  display: none;
}
.form-success.show { display: block; animation: fadeInUp var(--dur-md) var(--ease-out); }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   20. Final CTA
   -------------------------------------------------------------------------- */
.final-cta {
  background: var(--color-ink);
  color: var(--color-bg);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 70% at 20% 20%, oklch(0.52 0.17 45 / 0.15) 0%, transparent 60%),
    radial-gradient(50% 70% at 80% 80%, oklch(0.30 0.06 220 / 0.25) 0%, transparent 60%);
  pointer-events: none;
}
.final-cta-content { position: relative; max-width: 48rem; margin-inline: auto; }
.final-cta h2 { color: var(--color-bg); font-size: var(--text-4xl); margin-bottom: var(--space-md); }
.final-cta p { color: oklch(0.82 0.015 80); font-size: var(--text-lg); margin-inline: auto; margin-bottom: var(--space-xl); }
.cta-buttons { display: flex; gap: var(--space-sm); justify-content: center; flex-wrap: wrap; }
.final-cta .btn-ghost { color: var(--color-bg); border-color: oklch(0.55 0.015 80); }
.final-cta .btn-ghost:hover { background: oklch(1 0 0 / 0.08); border-color: var(--color-bg); color: var(--color-bg); }

/* --------------------------------------------------------------------------
   21. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--color-ink);
  color: oklch(0.82 0.015 80);
  padding-block: var(--space-3xl) var(--space-lg);
}
.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid oklch(1 0 0 / 0.08);
}
@media (min-width: 720px) {
  .footer-content { grid-template-columns: 1.5fr 1fr 1fr; }
}
.footer-brand h4 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-xs);
  color: var(--color-bg);
}
.footer-brand h4 .text-secondary { color: var(--color-accent); font-family: var(--font-hand); font-size: 0.85em; }
.footer-brand p { color: oklch(0.72 0.015 80); font-size: var(--text-sm); max-width: 32ch; }
.social-icons { display: flex; gap: var(--space-xs); margin-top: var(--space-md); }
.social-icons a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: oklch(1 0 0 / 0.08);
  color: oklch(0.92 0.015 80);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--dur-sm) var(--ease-std), color var(--dur-sm) var(--ease-std);
}
.social-icons a:hover { background: var(--color-accent); color: var(--color-accent-ink); }

.footer h5 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: oklch(0.72 0.015 80);
  margin-bottom: var(--space-sm);
  font-weight: 600;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.footer ul a { color: oklch(0.88 0.015 80); font-size: var(--text-sm); text-decoration: none; }
.footer ul a:hover { color: var(--color-accent); }
.footer-contact p { margin: 0 0 4px; font-size: var(--text-sm); color: oklch(0.88 0.015 80); }
.footer-contact a { color: inherit; text-decoration: none; }
.footer-contact a:hover { color: var(--color-accent); }

.footer-bottom {
  padding-top: var(--space-md);
  font-size: var(--text-xs);
  color: oklch(0.62 0.015 80);
  text-align: center;
}

/* --------------------------------------------------------------------------
   22. Residential-specific: tab switcher + smart locks grid + rekey block
   -------------------------------------------------------------------------- */
.tab-switcher {
  display: inline-flex;
  gap: 0;
  padding: 4px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  margin-top: var(--space-lg);
}
.tab-switcher button {
  padding: 10px 20px;
  background: transparent;
  border: 0;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink-muted);
  cursor: pointer;
  transition: background var(--dur-sm) var(--ease-std), color var(--dur-sm) var(--ease-std);
}
.tab-switcher button[aria-selected="true"] {
  background: var(--color-ink);
  color: var(--color-bg);
}
.tab-switcher button:not([aria-selected="true"]):hover {
  color: var(--color-ink);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeInUp var(--dur-md) var(--ease-out); }

.smart-locks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
}
.smart-lock-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color var(--dur-sm) var(--ease-std), transform var(--dur-md) var(--ease-out);
}
.smart-lock-card:hover { border-color: var(--color-accent); transform: translateY(-2px); }
.smart-lock-card .brand {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--color-ink-soft);
}
.smart-lock-card .model {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-ink);
  line-height: var(--lh-snug);
}
.smart-lock-card .note {
  font-size: var(--text-sm);
  color: var(--color-ink-muted);
  margin: 0;
}
.smart-lock-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: auto;
  padding-top: var(--space-sm);
}
.smart-lock-card .tag {
  font-size: var(--text-xs);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--color-bg-tint);
  color: var(--color-ink-muted);
  border: 1px solid var(--color-line);
}

.rekey-block {
  background: var(--color-ink);
  color: var(--color-bg);
  border-radius: var(--radius-xl);
  padding: clamp(32px, 5vw, 64px);
  display: grid;
  gap: var(--space-lg);
  position: relative;
  overflow: hidden;
}
@media (min-width: 820px) {
  .rekey-block { grid-template-columns: 1fr 1fr; gap: var(--space-2xl); align-items: center; }
}
.rekey-block::before {
  content: "";
  position: absolute;
  left: -10%; bottom: -40%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, oklch(0.52 0.17 45 / 0.25) 0%, transparent 65%);
  pointer-events: none;
}
.rekey-block h2 { color: var(--color-bg); margin-bottom: var(--space-md); }
.rekey-block p { color: oklch(0.85 0.015 80); }
.rekey-when {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  position: relative;
  z-index: 1;
}
.rekey-when li {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid oklch(1 0 0 / 0.08);
}
.rekey-when li:last-child { border-bottom: 0; }
.rekey-when strong {
  display: block;
  color: var(--color-bg);
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 400;
  margin-bottom: 2px;
}
.rekey-when span { color: oklch(0.82 0.015 80); font-size: var(--text-sm); }
.rekey-when .num {
  flex: none;
  font-family: var(--font-display);
  color: var(--color-accent);
  font-size: var(--text-xl);
  line-height: 1;
  min-width: 28px;
}

/* --------------------------------------------------------------------------
   23. Reveal animations
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur-lg) var(--ease-out), transform var(--dur-lg) var(--ease-out);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger: parent stays put, children wave in one after another.
   Use on grids where each item is a meaningful unit (pricing, services,
   reviews, steps). Delays cap at child 8 — longer lists flatten gracefully. */
[data-reveal][data-stagger] {
  opacity: 1;
  transform: none;
}
[data-reveal][data-stagger] > * {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--dur-lg) var(--ease-out),
    transform var(--dur-lg) var(--ease-out);
}
[data-reveal][data-stagger].revealed > * {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal][data-stagger].revealed > *:nth-child(1)  { transition-delay:   0ms; }
[data-reveal][data-stagger].revealed > *:nth-child(2)  { transition-delay:  70ms; }
[data-reveal][data-stagger].revealed > *:nth-child(3)  { transition-delay: 140ms; }
[data-reveal][data-stagger].revealed > *:nth-child(4)  { transition-delay: 210ms; }
[data-reveal][data-stagger].revealed > *:nth-child(5)  { transition-delay: 280ms; }
[data-reveal][data-stagger].revealed > *:nth-child(6)  { transition-delay: 340ms; }
[data-reveal][data-stagger].revealed > *:nth-child(7)  { transition-delay: 400ms; }
[data-reveal][data-stagger].revealed > *:nth-child(n+8){ transition-delay: 450ms; }

/* Hero decoration — very slow, continuous idle motion so Vitaly's stage
   feels alive on the landing view without pulling attention from the text. */
@keyframes blob-breath {
  0%, 100% { rotate: -3deg; scale: 1; }
  50%      { rotate: -2.2deg; scale: 1.012; }
}
@keyframes blob-ring {
  0%, 100% { rotate: 4deg; }
  50%      { rotate: 5.2deg; }
}
@keyframes badge-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -3px; }
}

/* Phone-ring micro-interaction — signature feedback on the primary CTA.
   Quick single cycle on hover/focus; pivots near the top of the handset. */
.btn-accent .icon {
  transform-origin: 50% 28%;
}
@media (hover: hover) {
  .btn-accent:hover .icon,
  .btn-accent:focus-visible .icon {
    animation: phone-ring 720ms var(--ease-out) 1;
  }
}
@keyframes phone-ring {
  0%   { transform: rotate(0); }
  15%  { transform: rotate(-14deg); }
  30%  { transform: rotate(12deg); }
  45%  { transform: rotate(-10deg); }
  60%  { transform: rotate(8deg); }
  75%  { transform: rotate(-5deg); }
  90%  { transform: rotate(3deg); }
  100% { transform: rotate(0); }
}

/* Make-chip hover — subtle scale so the chip list feels interactive. */
.make-chip { transition:
  background var(--dur-sm) var(--ease-std),
  color var(--dur-sm) var(--ease-std),
  border-color var(--dur-sm) var(--ease-std),
  transform var(--dur-sm) var(--ease-out);
}
@media (hover: hover) {
  .make-chip:hover { transform: translateY(-1px); }
}

/* Pricing card — augment existing lift with a gentle price color bump */
.pricing-card .price { transition: transform var(--dur-md) var(--ease-out); }
@media (hover: hover) {
  .pricing-card:hover .price { transform: translateY(-1px); }
}

/* Hero orchestrated reveal — first-paint sequence */
.hero-portrait,
.hero-text > * {
  opacity: 0;
  transform: translateY(10px);
  animation: heroIn var(--dur-xl) var(--ease-out-2) forwards;
}
.hero-portrait { animation-delay: 60ms; }
.hero-text > *:nth-child(1) { animation-delay: 180ms; }
.hero-text > *:nth-child(2) { animation-delay: 280ms; }
.hero-text > *:nth-child(3) { animation-delay: 380ms; }
.hero-text > *:nth-child(4) { animation-delay: 480ms; }
.hero-text > *:nth-child(5) { animation-delay: 560ms; }
@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   24. Responsive — mobile
   -------------------------------------------------------------------------- */
@media (max-width: 880px) {
  .nav-menu {
    position: fixed;
    top: 0; right: 0;
    height: 100dvh;
    width: min(320px, 86vw);
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-xs);
    padding: 96px var(--space-lg) var(--space-xl);
    background: var(--color-bg);
    border-left: 1px solid var(--color-line);
    transform: translateX(100%);
    transition: transform var(--dur-md) var(--ease-std);
    box-shadow: var(--shadow-lg);
    z-index: 95;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu a { padding: 14px 0; font-size: var(--text-lg); border-bottom: 1px solid var(--color-line); }
  .nav-menu a.btn { margin-top: var(--space-md); border-bottom: 0; justify-content: center; }

  .mobile-controls { display: inline-flex; }
  .mobile-bottom-bar { display: flex; }

  body { padding-bottom: 76px; }

  .header-content .nav-menu .sm-hidden { display: none; }

  /* Give the logo breathing room from the viewport edge on mobile —
     the default container padding at 320–375px puts the glyph almost
     flush to the left. */
  .header-content { padding-inline: 12px; }

  /* "locksmith" handwritten mark reads poorly at desktop scale on small
     screens — bump it up relative to "Vitaly" so it's legible. */
  .logo .logo-mark { font-size: 0.92em; transform: translateY(-2px); }

  /* Backdrop behind the menu panel — taps dismiss it via JS.
     Sits under the header (100) and menu (95), over the bottom bar (90). */
  body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: oklch(0.18 0.025 220 / 0.42);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 92;
    animation: menu-backdrop-fade var(--dur-sm) var(--ease-std) both;
  }
  @keyframes menu-backdrop-fade { from { opacity: 0; } to { opacity: 1; } }
}

/* Lock the page behind the menu on every viewport where the menu exists.
   position:fixed is what actually stops iOS Safari from scrolling under it;
   overflow:hidden alone does not. */
body.menu-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}
/* Keep the header (and its close button) on-screen while the menu is open,
   even if the hide-on-scroll class was applied right before opening. */
body.menu-open .header { transform: none !important; }

@media (max-width: 560px) {
  /* Urgency strip: keep dot inline with the start of copy (no lonely wrapped dot),
     left-align for cleaner multi-line flow, tighten size and padding. */
  .urgency-strip { padding: 8px 0; }
  .urgency-content {
    gap: 10px;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
  }
  .urgency-content p { font-size: 0.8125rem; line-height: 1.4; }
  .urgency-dot { margin-top: 7px; }
  .urgency-content a { white-space: nowrap; }

  h1 { font-size: clamp(2.3rem, 2rem + 3vw, 3rem); }
  .hero { padding-bottom: var(--space-2xl); }
  .hero-portrait-stage { max-width: 320px; }
  .hero-text h1 em { display: block; } /* cleaner wrap on narrow headline */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .btn-xl { --btn-pad-x: 24px; --btn-pad-y: 18px; --btn-font: var(--text-lg); min-height: 56px; }

  .final-cta h2 { font-size: var(--text-3xl); }
  .cta-buttons { flex-direction: column; align-items: stretch; }
  .cta-buttons .btn { width: 100%; }

  .crosslink { text-align: center; }
  .crosslink h3 { margin-inline: auto; }
  .crosslink p { margin-inline: auto; }
  .crosslink .btn { width: 100%; justify-content: center; }

  .hero-portrait-badge {
    top: auto;
    bottom: 6%;
    right: -2%;
    left: auto;
    rotate: -3deg;
    max-width: 180px;
    padding: 10px 14px;
  }
  .hero-portrait-badge .hand { font-size: 1.25rem; }
  .hero-portrait-badge .small { font-size: 0.72rem; }

  /* Trust bar: tighter two-column grid instead of lonely wrapped rows */
  .trust-bar > .container {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px !important;
    justify-content: start !important;
  }
  .trust-bar-item { font-size: var(--text-xs); }

  /* Instant card actions span full width so long labels don't look stranded */
  .instant-actions .btn { width: 100%; }

  /* Tab switcher: full-width pill, equal halves, smaller text so long
     labels ("I'm locked out now") don't overflow on 360px screens */
  .tab-switcher {
    display: flex;
    width: 100%;
  }
  .tab-switcher button {
    flex: 1;
    padding: 10px 12px;
    font-size: var(--text-xs);
    text-align: center;
  }

  /* Rating summary on Reviews: buttons stack full-width below the score */
  .rating-actions { width: 100%; }
  .rating-actions .btn { flex: 1; justify-content: center; }

  /* Rekey block: shrink display size of the numerals so list reads cleanly */
  .rekey-when .num { font-size: var(--text-lg); min-width: 22px; }

  /* Contact quick-action buttons stretch so they look anchored */
  .contact-actions { flex-direction: column; align-items: stretch; }
  .contact-actions .btn { width: 100%; justify-content: center; }
  .about-actions { flex-direction: column; align-items: stretch; }
  .about-actions .btn { width: 100%; justify-content: center; }

  /* Pricing CTA pair stacks instead of wrapping awkwardly */
  .pricing-cta { flex-direction: column; align-items: stretch; }
  .pricing-cta .btn { width: 100%; justify-content: center; }
}

/* Sticky header compensation for in-page anchors */
:is(section, div)[id] { scroll-margin-top: 88px; }

/* --------------------------------------------------------------------------
   25. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  [data-reveal][data-stagger] > * { opacity: 1; transform: none; transition: none; }
  .hero-portrait, .hero-text > * { opacity: 1; transform: none; animation: none; }
  .urgency-dot { animation: none; }
  .hero-portrait-blob,
  .hero-portrait-blob::after,
  .hero-portrait-badge { animation: none; }
  .btn-accent:hover .icon,
  .btn-accent:focus-visible .icon { animation: none; }
}

/* --------------------------------------------------------------------------
   26. Print
   -------------------------------------------------------------------------- */
@media print {
  .header, .mobile-bottom-bar, .urgency-strip, .hero-portrait, .pov-section, .video-modal,
  .final-cta, .crosslink, .map-container, .footer-bottom { display: none !important; }
  body { padding: 0; background: white; color: black; }
  a { color: black; text-decoration: underline; }
}
