/* ==========================================================================
   DaniCar — SPA & Szerviz / Service
   Brand design system v2: Ink + Paper + Signal Yellow
   Display: Archivo (expanded) · Body: Inter
   ========================================================================== */

:root {
  /* Brand palette */
  --ink: #0F1013;
  --ink-2: #17191E;
  --ink-3: #22252C;
  --paper: #F3F0E9;
  --paper-2: #E8E4DA;
  --steel: #8A8F98;
  --signal: #FFC414;
  --signal-press: #F0B000;
  --signal-tint: #FFF3CC;

  /* Text roles (AA on their intended surfaces) */
  --text: #0F1013;
  --text-2: #2E3138;
  --text-muted: #555A63;
  --text-on-dark: #F3F0E9;
  --text-on-dark-muted: #A9ADB5;

  /* Legacy aliases still used by the booking wizard */
  --obsidian: var(--ink);
  --charcoal: var(--ink-2);
  --charcoal-elevated: var(--ink-3);
  --alabaster: var(--paper);
  --surface: #FFFFFF;
  --surface-muted: var(--paper-2);
  --amber-400: var(--signal);
  --amber-500: var(--signal);
  --amber-600: var(--ink);
  --amber-700: #000000;
  --amber-tint: var(--signal-tint);
  --amber-50: var(--signal-tint);
  --ink-secondary: var(--text-2);
  --ink-muted: var(--text-muted);

  --green-700: #157A3C;
  --green-800: #0F5F2E;

  --border: rgba(15, 16, 19, 0.14);
  --border-strong: rgba(15, 16, 19, 0.32);
  --border-dark: rgba(243, 240, 233, 0.14);
  --border-input: #555A63;

  --error: #B42318;
  --error-bg: #FEF3F2;
  --success: #157A3C;
  --success-bg: #EFF8F1;

  --font-display: 'Archivo', 'Inter', system-ui, -apple-system, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: var(--font-sans);

  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-height-initial: 76px;
  --header-height-compact: 62px;
  --container-max: 1320px;

  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height-initial) + 20px);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--paper);
  padding-top: var(--header-height-initial);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

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

/* Inline SVG symbol sprite: must not create a line box above the header offset. */
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 200;
  background: var(--signal);
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--container-max));
  margin-inline: auto;
}

/* ==========================================================================
   Cross-Document View Transitions
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }

  @keyframes vt-fade-out-left {
    to { opacity: 0; transform: translateX(-20px); }
  }
  @keyframes vt-fade-in-right {
    from { opacity: 0; transform: translateX(20px); }
  }
  @keyframes vt-fade-out-right {
    to { opacity: 0; transform: translateX(20px); }
  }
  @keyframes vt-fade-in-left {
    from { opacity: 0; transform: translateX(-20px); }
  }

  :active-view-transition-type(forward) {
    &::view-transition-old(root) { animation: 0.28s ease-in both vt-fade-out-left; }
    &::view-transition-new(root) { animation: 0.32s ease-out both vt-fade-in-right; }
  }

  :active-view-transition-type(back) {
    &::view-transition-old(root) { animation: 0.28s ease-in both vt-fade-out-right; }
    &::view-transition-new(root) { animation: 0.32s ease-out both vt-fade-in-left; }
  }
}

/* ==========================================================================
   Scroll Progress Indicator
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--signal);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 150;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    @keyframes grow-scroll-progress {
      from { transform: scaleX(0); }
      to { transform: scaleX(1); }
    }
    .scroll-progress {
      animation: grow-scroll-progress auto linear;
      animation-timeline: scroll();
    }
  }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height-initial);
  z-index: 100;
  background: rgba(15, 16, 19, 0.92);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border-dark);
  color: var(--text-on-dark);
  display: flex;
  align-items: center;
}

.site-header.is-compact {
  height: var(--header-height-compact);
  background: rgba(15, 16, 19, 0.98);
}

@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    @keyframes shrink-header {
      to {
        height: var(--header-height-compact);
        background: rgba(15, 16, 19, 0.98);
      }
    }
    @keyframes shrink-scroll-padding {
      to {
        scroll-padding-top: calc(var(--header-height-compact) + 20px);
      }
    }
    :root {
      animation: shrink-scroll-padding auto linear both;
      animation-timeline: scroll(block root);
      animation-range: 0px 140px;
    }
    .site-header {
      animation: shrink-header auto linear both;
      animation-timeline: scroll(block root);
      animation-range: 0px 140px;
    }
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  min-height: 44px;
}

.brand-logo {
  width: auto;
  height: 38px;
}

@media (max-width: 420px) {
  .brand-logo {
    height: 32px;
  }
}

.header-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  gap: 1.75rem;
}

.header-nav a {
  position: relative;
  display: inline-block;
  padding-block: 0.6rem;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-on-dark-muted);
  transition: color 0.15s ease;
}

.header-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.25rem;
  height: 2px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}

.header-nav a:hover {
  color: var(--text-on-dark);
}

.header-nav a:hover::after {
  transform: scaleX(1);
}

@media (min-width: 1080px) {
  .header-nav ul {
    display: flex;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-phone {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  color: var(--text-on-dark);
}

.header-phone .icon {
  color: var(--signal);
}

@media (min-width: 1240px) {
  .header-phone {
    display: inline-flex;
  }
}

/* Booking pages: the logo already links home, so drop the back button on small screens. */
@media (max-width: 559px) {
  .header-actions .header-back {
    display: none;
  }
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  overflow: hidden;
}

.lang-switch a,
.lang-switch span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 0.65rem;
  text-decoration: none;
  color: var(--text-on-dark-muted);
}

.lang-switch a:hover {
  color: var(--text-on-dark);
}

.lang-switch .is-active {
  background: var(--paper);
  color: var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 50px;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  min-height: 44px;
  padding: 0.5rem 1.05rem;
  font-size: 0.88rem;
}

.btn-primary {
  background: var(--signal);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--signal-press);
}

.btn-primary .icon {
  transition: transform 0.2s var(--ease-out);
}

.btn-primary:hover .icon {
  transform: translateX(3px);
}

.btn-whatsapp {
  background: var(--green-700);
  color: #FFFFFF;
}

.btn-whatsapp:hover {
  background: var(--green-800);
}

.btn-outline-light {
  background: transparent;
  color: var(--text-on-dark);
  border-color: rgba(243, 240, 233, 0.4);
}

.btn-outline-light:hover {
  background: var(--paper);
  color: var(--ink);
}

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

.btn-outline-dark:hover {
  background: var(--ink);
  color: var(--paper);
}

.header-cta-desktop {
  display: none;
}

@media (min-width: 640px) {
  .header-cta-desktop {
    display: inline-flex;
  }
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  color: var(--text-on-dark);
  cursor: pointer;
}

@media (min-width: 1080px) {
  .menu-btn {
    display: none;
  }
}

/* ==========================================================================
   Shared section scaffolding
   ========================================================================== */
.section {
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

.section-ink {
  background: var(--ink);
  color: var(--text-on-dark);
}

.section-white {
  background: #FFFFFF;
}

.section-head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 860px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
}

.section-head p {
  margin: 0;
  font-size: 1.08rem;
  color: var(--text-2);
  max-width: 60ch;
}

.section-ink .section-head p {
  color: var(--text-on-dark-muted);
}

@media (min-width: 960px) {
  .section-head--split {
    max-width: none;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
    gap: 4rem;
  }
}

.kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.kicker::before,
.section-kicker::before {
  content: '';
  width: 28px;
  height: 3px;
  background: var(--signal);
}

.section-ink .kicker {
  color: var(--text-on-dark-muted);
}

/* Highlighter mark used sparingly inside headlines */
.hl {
  background: linear-gradient(transparent 58%, var(--signal) 58%, var(--signal) 92%, transparent 92%);
  padding-inline: 0.06em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Scroll-driven reveal (progressive) */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) and (animation-range: entry) {
    @keyframes reveal-up {
      from { opacity: 0; translate: 0 36px; }
      to { opacity: 1; translate: 0 0; }
    }
    .reveal-on-scroll {
      animation: reveal-up linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }

  .js-reveal-pending {
    opacity: 0;
    translate: 0 36px;
  }

  .js-reveal-visible {
    opacity: 1;
    translate: 0 0;
    transition: opacity 0.7s var(--ease-out), translate 0.7s var(--ease-out);
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero-cinematic {
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: calc(100svh - var(--header-height-initial));
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--ink);
  color: var(--text-on-dark);
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(15, 16, 19, 0.92) 0%, rgba(15, 16, 19, 0.7) 38%, rgba(15, 16, 19, 0.15) 75%),
    linear-gradient(0deg, rgba(15, 16, 19, 0.95) 0%, rgba(15, 16, 19, 0) 40%);
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes ken-burns {
    from { scale: 1.12; }
    to { scale: 1.02; }
  }
  .hero-bg-img {
    animation: ken-burns 16s var(--ease-out) both;
  }

  @supports (animation-timeline: view()) and (animation-range: exit) {
    @keyframes hero-parallax {
      to { translate: 0 18%; }
    }
    .hero-bg-img {
      animation: ken-burns 16s var(--ease-out) both, hero-parallax linear both;
      animation-timeline: auto, view();
      animation-range: normal, exit 0% exit 100%;
    }
  }

  @keyframes line-up {
    from { opacity: 0; translate: 0 0.5em; clip-path: inset(0 -20% 100% 0); }
    to { opacity: 1; translate: 0 0; clip-path: inset(-10% -20% -10% 0); }
  }
  .hero-title-line {
    animation: line-up 0.9s var(--ease-out) both;
  }
  .hero-title-line:nth-child(2) { animation-delay: 0.12s; }
  .hero-title-line:nth-child(3) { animation-delay: 0.24s; }

  @keyframes fade-up {
    from { opacity: 0; translate: 0 16px; }
    to { opacity: 1; translate: 0 0; }
  }
  .hero-lead,
  .hero-actions,
  .open-badge {
    animation: fade-up 0.8s var(--ease-out) 0.35s both;
  }
  .hero-actions { animation-delay: 0.45s; }
  .open-badge { animation-delay: 0.05s; }
}

.hero-content-wrap {
  align-self: end;
  padding-block: clamp(3rem, 8vw, 6rem) clamp(2rem, 5vw, 3.5rem);
}

.hero-copy {
  max-width: 1040px;
}

.open-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.75rem;
  padding: 0.45rem 0.9rem 0.45rem 0.75rem;
  border: 1px solid var(--border-dark);
  border-radius: 999px;
  background: rgba(15, 16, 19, 0.55);
  backdrop-filter: blur(6px);
  font-size: 0.86rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.open-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--steel);
}

.open-badge.is-open .open-dot {
  background: #3DDC84;
  box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6);
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.55); }
    70% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); }
    100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
  }
  .open-badge.is-open .open-dot {
    animation: pulse-dot 2.2s ease-out infinite;
  }
}

.hero-cinematic h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 6.4vw, 5.6rem);
  font-stretch: 125%;
  font-weight: 850;
  line-height: 0.94;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.hero-title-line {
  display: block;
}

.hero-title-line--signal {
  color: var(--signal);
}

.hero-lead {
  margin: 0 0 2.25rem;
  max-width: 54ch;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: #D9D6CF;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.hero-actions .btn {
  min-height: 56px;
  padding-inline: 1.75rem;
  font-size: 1rem;
}

.hero-facts {
  border-top: 1px solid var(--border-dark);
  background: rgba(15, 16, 19, 0.7);
  backdrop-filter: blur(8px);
}

.hero-facts ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
}

.hero-facts li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #D9D6CF;
}

.hero-facts li + li {
  border-top: 1px solid var(--border-dark);
}

.hero-facts .icon {
  color: var(--signal);
}

@media (min-width: 820px) {
  .hero-facts ul {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-facts li {
    padding: 1.35rem 1.5rem;
  }
  .hero-facts li:first-child {
    padding-left: 0;
  }
  .hero-facts li + li {
    border-top: 0;
    border-left: 1px solid var(--border-dark);
  }
}

/* ==========================================================================
   Marquee (signal band)
   ========================================================================== */
.marquee-band {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--signal);
  color: var(--ink);
  overflow: hidden;
}

.marquee-viewport {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
}

.marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 2.25rem;
  padding: 1.15rem 2.25rem 1.15rem 0;
}

.marquee-group span {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(1rem, 1.8vw, 1.45rem);
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-group .marquee-sep {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes marquee-scroll {
    to { transform: translateX(-50%); }
  }
  .marquee-track {
    animation: marquee-scroll 38s linear infinite;
  }
  .marquee-band.is-paused .marquee-track,
  .marquee-band:hover .marquee-track {
    animation-play-state: paused;
  }
}

.marquee-toggle {
  flex-shrink: 0;
  min-height: 44px;
  min-width: 72px;
  margin-inline: 0.75rem;
  padding: 0 0.9rem;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.marquee-toggle:hover {
  background: var(--ink);
  color: var(--signal);
}

@media (prefers-reduced-motion: reduce) {
  .marquee-toggle {
    display: none;
  }
}

/* ==========================================================================
   Process scrollytelling
   ========================================================================== */
.process {
  display: grid;
  gap: 2rem;
}

.process-stage {
  position: sticky;
  top: calc(var(--header-height-compact) + 12px);
  z-index: 2;
  height: 42svh;
  min-height: 240px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--ink);
}

.process-scene {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.7s var(--ease-out);
}

.process-scene:first-child,
.process-scene.is-visible {
  opacity: 1;
}

.process-scene.is-hidden {
  opacity: 0;
}

.process-scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  scale: 1.06;
  transition: scale 1.6s var(--ease-out);
}

.process-scene.is-visible img {
  scale: 1;
}

.process-scene--oil img {
  object-position: 20% 20%;
}

.process-scene figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-xs);
  background: var(--ink);
  color: var(--text-on-dark);
  font-size: 0.82rem;
  font-weight: 600;
}

.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding-block: 2rem;
  border-top: 1px solid var(--border-strong);
  transition: opacity 0.4s ease;
}

.process-step:last-child {
  border-bottom: 1px solid var(--border-strong);
}

.step-num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--signal);
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.process-step.is-active .step-num {
  background: var(--signal);
  color: var(--ink);
}

.process-step h3 {
  margin: 0.35rem 0 0.6rem;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
}

.process-step p {
  margin: 0;
  color: var(--text-2);
  max-width: 52ch;
}

.process-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--text-2);
}

.process-note p {
  margin: 0;
  flex: 1 1 320px;
}

@media (min-width: 920px) {
  .process {
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
  }
  .process-stage {
    order: 2;
    top: calc(var(--header-height-compact) + 40px);
    height: min(76svh, 720px);
  }
  .process-step {
    min-height: 52svh;
    align-content: center;
    opacity: 0.4;
  }
  .process-step.is-active {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .process-step {
    opacity: 1;
  }
}

/* ==========================================================================
   Approval (video proof) + gallery
   ========================================================================== */
.approval {
  display: grid;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

@media (min-width: 960px) {
  .approval {
    grid-template-columns: 1fr 1fr;
  }
}

.approval-media {
  position: relative;
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.approval-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-chip {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.9rem 0.55rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 16, 19, 0.85);
  backdrop-filter: blur(6px);
  font-size: 0.85rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.video-chip-play {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--signal);
  color: var(--ink);
}

.approval-copy h2 {
  margin: 1.1rem 0 1.25rem;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
}

.approval-copy > p {
  margin: 0 0 2rem;
  color: var(--text-on-dark-muted);
  font-size: 1.05rem;
}

.chat {
  display: grid;
  gap: 0.6rem;
  margin: 0 0 2rem;
  padding: 1.25rem;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  background: var(--ink-2);
}

.chat-msg {
  max-width: 86%;
  margin: 0;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  font-size: 0.94rem;
  line-height: 1.5;
}

.chat-msg--in {
  background: var(--ink-3);
  border-bottom-left-radius: 3px;
}

.chat-msg--out {
  justify-self: end;
  background: var(--signal);
  color: var(--ink);
  border-bottom-right-radius: 3px;
  font-weight: 600;
}

.chat-meta {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.check-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.check-list .icon {
  margin-top: 0.15rem;
  color: var(--signal);
}

/* Gallery carousel */
.gallery-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
  margin: clamp(4rem, 8vw, 6.5rem) 0 1.75rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-dark);
}

.gallery-bar h3 {
  margin: 0.75rem 0 0;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
}

.carousel-controls {
  display: flex;
  gap: 0.5rem;
}

.carousel-btn {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1.5px solid var(--border-dark);
  border-radius: 50%;
  background: transparent;
  color: var(--text-on-dark);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.carousel-btn:hover {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--ink);
}

.atelier-carousel {
  list-style: none;
  margin: 0;
  padding: 0 0 1.25rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(82%, 520px);
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--steel) transparent;
}

.atelier-carousel-slide {
  position: relative;
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--ink-2);
}

.atelier-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.8s var(--ease-out);
}

.atelier-carousel-slide:hover img {
  scale: 1.04;
}

.slide-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 3.5rem 1.25rem 1.25rem;
  background: linear-gradient(0deg, rgba(15, 16, 19, 0.92), rgba(15, 16, 19, 0));
}

.slide-caption strong {
  display: block;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-size: 1.15rem;
}

.slide-caption span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: var(--text-on-dark-muted);
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) and (animation-range: entry) {
    @keyframes slide-focus {
      entry 0% { opacity: 0.55; scale: 0.94; }
      entry 100% { opacity: 1; scale: 1; }
      exit 0% { opacity: 1; scale: 1; }
      exit 100% { opacity: 0.55; scale: 0.94; }
    }
    .atelier-carousel-slide {
      animation: slide-focus linear both;
      animation-timeline: view(inline);
    }
  }
}

/* ==========================================================================
   Price list
   ========================================================================== */
.price-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-bottom: 2.5rem;
}

.price-toolbar .section-head {
  margin-bottom: 0;
}

.segmented-toggle {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--border);
}

.segmented-toggle button {
  min-height: 44px;
  padding: 0 1.2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.segmented-toggle button[aria-pressed='true'] {
  background: var(--ink);
  color: var(--paper);
}

.price-table-wrap {
  container-type: inline-size;
  border-top: 2px solid var(--ink);
}

.price-table-wrap:focus-visible {
  outline-offset: 6px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-table thead th {
  padding: 0.9rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-strong);
}

.price-table tbody tr {
  border-bottom: 1px solid var(--border-strong);
  transition: background-color 0.2s ease;
}

.price-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.6);
}

.price-table th[scope='row'],
.price-table td {
  padding: 1.6rem 1rem;
  vertical-align: top;
  text-align: left;
}

.price-table th[scope='row'] {
  width: 32%;
  font-weight: 400;
}

.pkg-name {
  display: block;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 750;
  font-size: 1.3rem;
  line-height: 1.15;
}

.pkg-for {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.pkg-tag {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-xs);
  background: var(--signal);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pkg-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
  color: var(--text-2);
}

.pkg-list li {
  position: relative;
  padding-left: 1.1rem;
}

.pkg-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--ink);
}

.price-cell {
  white-space: nowrap;
}

.price-value {
  display: block;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
}

.price-note {
  display: block;
  margin-top: 0.3rem;
  max-width: 24ch;
  font-size: 0.82rem;
  white-space: normal;
  color: var(--text-muted);
}

.price-action {
  text-align: right !important;
  vertical-align: middle !important;
}

.price-table tr.is-featured {
  background: #FFFFFF;
  box-shadow: inset 4px 0 0 var(--signal);
}

.price-foot {
  margin: 1.25rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

@container (max-width: 760px) {
  .price-table thead {
    position: absolute;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  .price-table,
  .price-table tbody,
  .price-table tr,
  .price-table th[scope='row'],
  .price-table td {
    display: block;
    width: 100%;
  }
  .price-table tbody tr {
    padding: 1.5rem 1rem;
  }
  .price-table th[scope='row'],
  .price-table td {
    padding: 0;
  }
  .price-table td {
    margin-top: 1rem;
  }
  .price-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
  }
  .price-action {
    text-align: left !important;
  }
  .price-action .btn {
    width: 100%;
  }
}

/* ==========================================================================
   Zones (radius map + calculator)
   ========================================================================== */
.zones {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1000px) {
  .zones {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: stretch;
  }
}

.zone-map {
  align-self: start;
  margin: 0;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--text-on-dark);
}

.zone-map svg {
  display: block;
  width: 100%;
  height: auto;
  font-family: var(--font-sans);
}

.zone-map figcaption {
  padding: 0.5rem 0.5rem 0.25rem;
  font-size: 0.8rem;
  color: var(--text-on-dark-muted);
}

.map-at {
  fill: rgba(243, 240, 233, 0.04);
  transition: fill 0.35s ease;
}

.map-border {
  fill: none;
  stroke: var(--steel);
  stroke-width: 1.5;
  stroke-dasharray: 2 6;
  stroke-linecap: round;
}

.map-ring {
  fill: transparent;
  stroke: rgba(243, 240, 233, 0.28);
  stroke-width: 1.25;
  cursor: pointer;
  transition: fill 0.35s ease, stroke 0.35s ease;
}

.map-ring:hover {
  stroke: var(--paper);
}

.map-ring-label {
  fill: var(--text-on-dark-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.map-town circle {
  fill: var(--paper);
}

.map-town text {
  fill: #D9D6CF;
  font-size: 12px;
  font-weight: 500;
}

.map-hub circle {
  fill: var(--signal);
}

.map-hub text {
  fill: var(--signal);
  font-size: 13px;
  font-weight: 800;
}

.map-country {
  fill: var(--text-on-dark-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.zone-map[data-active-zone='z0'] .ring-z0,
.zone-map[data-active-zone='z1'] .ring-z1,
.zone-map[data-active-zone='z2'] .ring-z2 {
  fill: rgba(255, 196, 20, 0.22);
  stroke: var(--signal);
  stroke-width: 2;
}

.zone-map[data-active-zone='z3'] .map-at {
  fill: rgba(255, 196, 20, 0.2);
}

.zone-panel {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.zone-pills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.zone-pill-btn {
  display: grid;
  gap: 0.15rem;
  min-height: 72px;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.zone-pill-btn strong {
  font-size: 0.95rem;
}

.zone-pill-btn span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.zone-pill-btn:hover {
  border-color: var(--ink);
}

.zone-pill-btn[aria-pressed='true'] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  box-shadow: inset 0 -4px 0 var(--signal);
}

.zone-pill-btn[aria-pressed='true'] span {
  color: var(--text-on-dark-muted);
}

.zone-result {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  border: 1px solid var(--border);
}

.zone-result-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.zone-result-fee {
  margin: 0.4rem 0 1.1rem;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.zone-meta {
  margin: 0 0 1.4rem;
  display: grid;
  gap: 0.75rem;
  font-size: 0.93rem;
}

.zone-meta div {
  display: grid;
  gap: 0.1rem;
}

.zone-meta dt {
  font-weight: 700;
}

.zone-meta dd {
  margin: 0;
  color: var(--text-2);
}

.zone-hint {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-2);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 960px) {
  .faq {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 5rem;
  }
  .faq .section-head {
    position: sticky;
    top: calc(var(--header-height-compact) + 40px);
    align-self: start;
  }
}

.faq-contact {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
  margin-top: 0.5rem;
}

.faq-list {
  border-top: 2px solid var(--ink);
}

.faq-item {
  border-bottom: 1px solid var(--border-strong);
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 44px;
  padding: 1.4rem 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-stretch: 108%;
  font-weight: 700;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.3;
}

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

.faq-item summary::before {
  content: '';
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat,
    var(--paper-2);
  transition: rotate 0.3s var(--ease-out), background-color 0.2s ease;
}

.faq-item[open] summary::before {
  rotate: 45deg;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat,
    var(--signal);
}

.faq-item p {
  margin: 0;
  padding: 0 0 1.5rem calc(30px + 1rem);
  color: var(--text-2);
  max-width: 68ch;
}

@media (prefers-reduced-motion: no-preference) {
  .faq-list {
    interpolate-size: allow-keywords;
  }
  .faq-item::details-content {
    block-size: 0;
    overflow-y: clip;
    transition: content-visibility 0.35s allow-discrete, block-size 0.35s var(--ease-out);
  }
  .faq-item[open]::details-content {
    block-size: auto;
  }
}

/* ==========================================================================
   Final CTA
   ========================================================================== */
.cta-final {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(5rem, 12vw, 10rem);
  background: var(--ink);
  color: var(--text-on-dark);
}

.cta-final-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(15, 16, 19, 0.94) 0%, rgba(15, 16, 19, 0.72) 55%, rgba(15, 16, 19, 0.35) 100%);
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) and (animation-range: entry) {
    @keyframes cta-drift {
      from { scale: 1.15; translate: 0 -4%; }
      to { scale: 1; translate: 0 4%; }
    }
    .cta-final-img {
      animation: cta-drift linear both;
      animation-timeline: view();
    }
  }
}

.cta-final h2 {
  margin: 0 0 1.25rem;
  max-width: 18ch;
  font-size: clamp(2rem, 4.6vw, 4rem);
  font-stretch: 125%;
  font-weight: 850;
  line-height: 0.96;
  text-transform: uppercase;
}

.cta-final p {
  margin: 0 0 2.25rem;
  max-width: 52ch;
  font-size: 1.1rem;
  color: #D9D6CF;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.cta-actions .btn {
  min-height: 56px;
}

/* ==========================================================================
   Native Dialogs (<dialog closedby="any">)
   ========================================================================== */
dialog {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0;
  max-width: min(560px, calc(100vw - 2rem));
  width: 100%;
  background: #FFFFFF;
  color: var(--text);
}

dialog::backdrop {
  background: rgba(15, 16, 19, 0.75);
  backdrop-filter: blur(4px);
}

.dialog-inner {
  padding: 1.75rem;
}

.dialog-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dialog-head h2 {
  margin: 0;
  font-size: 1.3rem;
}

.dialog-close {
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--text);
  cursor: pointer;
}

.dialog-lead {
  margin-top: 0;
  color: var(--text-muted);
}

.dialog-list {
  padding-left: 1.25rem;
  color: var(--text-2);
}

.dialog-actions,
.mobile-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.mobile-nav {
  display: grid;
  margin-top: 0;
}

/* ==========================================================================
   Booking page heading (shared by foglalas.html / termin.html)
   ========================================================================== */
.section-header {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.section-header h1 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
}

.section-header p {
  margin: 0;
  max-width: 62ch;
  color: var(--text-2);
}

/* ==========================================================================
   Booking Wizard, Branded Selects & Interaction-Gated Validation
   ========================================================================== */
.booking-shell {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 960px) {
  .booking-shell {
    grid-template-columns: 1.45fr 0.85fr;
  }
}

.booking-card,
.summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.summary-card {
  position: sticky;
  top: calc(var(--header-height-compact) + 24px);
  background: var(--obsidian);
  color: #ffffff;
  border-color: var(--border-dark);
  border-top: 3px solid var(--amber-500);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.94rem;
}

.summary-row span:first-child {
  color: #a1a1aa;
}

.summary-total {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--amber-400);
}

.progress-steps {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.progress-steps li {
  background: var(--alabaster);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.progress-steps li[aria-current="step"] {
  background: var(--amber-tint);
  border-color: var(--amber-600);
  color: var(--ink);
}

.progress-steps li.is-done {
  background: var(--obsidian);
  border-color: var(--obsidian);
  color: #ffffff;
}

.booking-form fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin: 0 0 1.5rem;
}

.booking-form fieldset.radio-group-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1.35rem;
}

.booking-form fieldset.radio-group-fieldset legend {
  padding: 0;
  margin-bottom: 0.4rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}

.booking-form legend {
  padding-inline: 0.5rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
}

.field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
  margin-block-end: 1.35rem;
}

.field label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}

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

.hint {
  display: block;
  color: var(--ink-muted);
  font-size: 0.85rem;
  margin-bottom: 0.15rem;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
select,
textarea {
  font: inherit;
  font-size: max(1rem, 1em);
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--border-input);
  border-radius: var(--radius-sm);
  background-color: var(--surface);
  color: var(--ink);
}

@media (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select,
  textarea {
    min-height: 52px;
  }
}

textarea {
  min-height: 96px;
  resize: vertical;
}

.radio-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.choice-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 50px;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  background: var(--surface);
}

.choice-card:has(input:checked) {
  border-color: var(--amber-600);
  background: var(--amber-tint);
}

.choice-card input {
  accent-color: var(--amber-600);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.slot-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.brand-select,
.brand-select::picker(select) {
  appearance: base-select;
}

.brand-select {
  background-color: var(--surface);
  border: 1.5px solid var(--border-input);
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
}

.brand-select::picker(select) {
  background-color: var(--surface);
  border: 1.5px solid var(--obsidian);
  border-radius: var(--radius-sm);
  padding: 0.35rem;
}

.brand-select::picker-icon {
  color: var(--amber-600);
}

.brand-select option {
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
}

.brand-select option:hover {
  background-color: var(--amber-tint);
}

.brand-select option::checkmark {
  color: var(--amber-600);
}

.error-msg {
  display: none;
  align-items: center;
  gap: 0.4rem;
  color: var(--error);
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

:is(input, select, textarea):is(:user-invalid, .user-invalid-fallback) {
  border-color: var(--error);
  background-color: var(--error-bg);
}

:is(input, select, textarea):is(:user-invalid, .user-invalid-fallback) + .error-msg {
  display: flex;
}

:is(input, select, textarea):is(:user-valid, .user-valid-fallback) {
  border-color: var(--success);
}

.step-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.confirmation-panel {
  background: var(--success-bg);
  border: 2px solid var(--success);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
}

.error-summary {
  background: var(--error-bg);
  border: 2px solid var(--error);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.error-summary h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--error);
}

.error-summary ul {
  margin: 0;
  padding-left: 1.25rem;
}

.error-summary a {
  color: var(--error);
  font-weight: 700;
}

.ref-badge {
  font-family: var(--font-mono);
  font-weight: 700;
}

/* Mobile Sticky Bottom Bar (< 640px) */
.mobile-sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.65rem 1rem max(0.65rem, env(safe-area-inset-bottom));
  background: rgba(9, 10, 13, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-dark);
}

.mobile-sticky-bar .btn {
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
}

@media (min-width: 640px) {
  .mobile-sticky-bar {
    display: none;
  }
}

@media (max-width: 639px) {
  body.has-mobile-bar {
    padding-bottom: 76px;
  }
}


/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: var(--text-on-dark-muted);
  padding-block: 4rem 2.25rem;
  border-top: 1px solid var(--border-dark);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2.5rem;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.footer-brand img {
  height: 44px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-brand p {
  margin: 0;
  max-width: 34ch;
}

.footer-grid h3 {
  margin: 0 0 0.9rem;
  font-size: 0.8rem;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-on-dark);
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.footer-grid a {
  color: var(--text-on-dark-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.footer-grid a:hover {
  color: var(--signal);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-dark);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.84rem;
}

.credits {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  line-height: 1.5;
}

.credits summary {
  cursor: pointer;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  color: var(--text-on-dark-muted);
}

.credits ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  columns: 2 22rem;
  column-gap: 2rem;
}

.credits a {
  color: inherit;
}
