/* ==========================================================================
   CyberButler — Apple-inspired design system
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-elevated: #f5f5f7;
  --bg-dark: #000000;
  --bg-dark-elevated: #1d1d1f;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --text-on-dark: #f5f5f7;
  --text-on-dark-secondary: #a1a1a6;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-soft: rgba(0, 113, 227, 0.12);
  --border: rgba(0, 0, 0, 0.08);
  --border-dark: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-full: 980px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --nav-height: 52px;
  --max-width: 1120px;
  --max-width-wide: 1400px;
  --page-gutter: clamp(16px, 4vw, 28px);
  --section-y: clamp(56px, 10vw, 100px);
  --section-y-tight: clamp(40px, 6vw, 64px);
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  overflow-x: clip;
  min-width: 0;
  width: 100%;
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
}

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

img,
video {
  height: auto;
}

/* Prevent long unbroken strings from blowing out layout */
p,
h1, h2, h3, h4, h5, h6,
li,
blockquote,
td,
th {
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--accent-hover);
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

.display {
  font-size: clamp(2.125rem, 1.2rem + 5.2vw, 5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.headline {
  font-size: clamp(1.75rem, 1.1rem + 3.2vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.subhead {
  font-size: clamp(1.125rem, 0.95rem + 1.2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.title {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.016em;
}

.body-lg {
  font-size: clamp(1.0625rem, 0.95rem + 0.55vw, 1.3125rem);
  line-height: 1.42;
  font-weight: 400;
  letter-spacing: 0.011em;
}

.body {
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  line-height: 1.47;
}

.caption {
  font-size: 0.75rem;
  line-height: 1.33;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
}

.eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.eyebrow--dark {
  color: #2997ff;
}

.text-secondary {
  color: var(--text-secondary);
}

.text-center {
  text-align: center;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: max(var(--page-gutter), var(--safe-left));
  padding-right: max(var(--page-gutter), var(--safe-right));
}

.container--wide {
  max-width: var(--max-width-wide);
}

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

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

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

.section--dark .text-secondary,
.section--dark .body-lg,
.section--dark .caption {
  color: var(--text-on-dark-secondary);
}

.section--elevated {
  background: var(--bg-elevated);
}

.section-header {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-header .body-lg {
  margin-top: 16px;
  color: var(--text-secondary);
}

.section--dark .section-header .body-lg {
  color: var(--text-on-dark-secondary);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2.5vw, 20px);
}

.grid-2 > *,
.grid-3 > *,
.grid-4 > * {
  min-width: 0;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: calc(var(--nav-height) + var(--safe-top));
  padding-top: var(--safe-top);
  background: rgba(251, 251, 253, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.nav--dark {
  background: rgba(0, 0, 0, 0.8);
  border-bottom-color: var(--border-dark);
}

.nav--dark .nav__logo,
.nav--dark .nav__link {
  color: var(--text-on-dark);
}

.nav--dark .nav__toggle {
  color: #fff;
}

.nav--dark .nav__link:hover {
  color: #fff;
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 max(var(--page-gutter), var(--safe-left)) 0 max(var(--page-gutter), var(--safe-right));
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.nav__logo {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 0;
}

.nav__logo:hover {
  color: var(--text);
  opacity: 0.85;
}

.nav--dark .nav__logo:hover {
  color: var(--text-on-dark);
  opacity: 0.9;
}

/* Official CyberButler logo mark */
.nav__logo-img {
  height: 28px;
  width: auto;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.nav--dark .nav__logo-img {
  filter: invert(1);
}

.nav__logo-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 400px) {
  .nav__logo-text {
    font-size: 0.95rem;
  }

  .nav__logo-img {
    height: 24px;
  }
}

/* Footer brand lockup */
.footer__logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  color: var(--text);
}

.footer__logo:hover {
  color: var(--text);
  opacity: 0.88;
}

.footer__logo-img {
  height: clamp(52px, 12vw, 72px);
  width: auto;
  max-width: min(200px, 60vw);
  object-fit: contain;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__link {
  font-size: 0.75rem;
  color: var(--text);
  opacity: 0.88;
  transition: opacity 0.2s;
}

.nav__link:hover {
  opacity: 1;
  color: var(--text);
}

.nav__link[aria-current="page"] {
  opacity: 1;
  font-weight: 600;
  color: var(--text);
}

.nav__cta {
  font-size: 0.75rem;
  font-weight: 500;
  color: #fff !important;
  background: var(--accent);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  transition: background 0.2s var(--ease);
}

.nav__cta:hover {
  background: var(--accent-hover);
  color: #fff !important;
}

.nav__toggle {
  display: none;
  width: 28px;
  height: 28px;
  position: relative;
  color: var(--text);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav__toggle span {
  position: absolute;
  left: 6px;
  right: 6px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.28s var(--ease-out), opacity 0.2s, top 0.28s var(--ease-out);
  pointer-events: none;
}

/* Three hamburger bars */
.nav__toggle span:nth-child(1) {
  top: 9px;
}

.nav__toggle span:nth-child(2) {
  top: 15px;
}

.nav__toggle span:nth-child(3) {
  top: 21px;
}

.nav__toggle.is-open span:nth-child(1) {
  top: 15px;
  transform: rotate(45deg);
}

.nav__toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav__toggle.is-open span:nth-child(3) {
  top: 15px;
  transform: rotate(-45deg);
}

/* Tablet landscape / small laptop: keep links if space allows */
@media (max-width: 1024px) {
  .nav__links {
    gap: 16px;
  }

  .nav__link {
    font-size: 0.7rem;
  }
}

/* Mobile + compact tablet: hamburger drawer */
@media (max-width: 900px) {
  .nav__toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-right: -8px;
    flex-shrink: 0;
    z-index: 1002;
    color: var(--text);
  }

  /* White bars on dark header (black background) */
  .nav--dark .nav__toggle {
    color: #fff;
  }

  .nav__links {
    position: fixed;
    top: calc(var(--nav-height) + var(--safe-top));
    left: 0;
    right: 0;
    /* Expansive panel: at least half the viewport */
    height: 50vh;
    min-height: 50vh;
    max-height: calc(100dvh - var(--nav-height) - var(--safe-top));
    background: rgba(251, 251, 253, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 12px max(var(--page-gutter), var(--safe-left))
      max(24px, var(--safe-bottom)) max(var(--page-gutter), var(--safe-right));
    gap: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    transform: translateY(-16px) scaleY(0.96);
    transform-origin: top center;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: transform 0.35s var(--ease-out), opacity 0.25s, visibility 0.25s;
    z-index: 1001;
  }

  .nav--dark .nav__links {
    background: rgba(0, 0, 0, 0.97);
    border-bottom-color: var(--border-dark);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  }

  .nav__links.is-open {
    transform: translateY(0) scaleY(1);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .nav__link {
    font-size: 1.125rem;
    padding: 16px 4px;
    min-height: 52px;
    display: flex;
    align-items: center;
    opacity: 1;
    border-bottom: 1px solid var(--border);
    flex: 1 1 auto;
  }

  .nav--dark .nav__link {
    border-bottom-color: var(--border-dark);
    color: var(--text-on-dark);
  }

  .nav__cta {
    margin-top: auto;
    text-align: center;
    font-size: 1rem;
    padding: 14px 20px;
    min-height: 48px;
    justify-content: center;
    flex: 0 0 auto;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: clamp(0.9375rem, 0.9rem + 0.3vw, 1.0625rem);
  font-weight: 400;
  padding: 12px 22px;
  min-height: 44px;
  border-radius: var(--radius-full);
  transition: all 0.25s var(--ease);
  white-space: nowrap;
  max-width: 100%;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn--secondary {
  background: transparent;
  color: var(--accent);
  padding-left: 8px;
  padding-right: 8px;
}

.btn--secondary:hover {
  color: var(--accent-hover);
}

.btn--secondary::after {
  content: "›";
  font-size: 1.25em;
  line-height: 1;
  margin-left: 2px;
  transition: transform 0.2s;
}

.btn--secondary:hover::after {
  transform: translateX(3px);
}

.btn--white {
  background: #fff;
  color: var(--text);
}

.btn--white:hover {
  background: #f5f5f7;
  color: var(--text);
}

.btn--outline-light {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  background: transparent;
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn--lg {
  font-size: 1.125rem;
  padding: 16px 28px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 28px;
}

.btn-row--center {
  justify-content: center;
}

.btn-row .btn {
  flex: 0 1 auto;
}

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

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding:
    calc(var(--nav-height) + var(--safe-top) + clamp(28px, 6vw, 48px))
    max(var(--page-gutter), var(--safe-left))
    clamp(48px, 10vw, 80px)
    max(var(--page-gutter), var(--safe-right));
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.hero--dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.hero__eyebrow {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.hero--dark .hero__eyebrow {
  color: var(--text-on-dark-secondary);
}

.hero__title {
  max-width: 900px;
  margin: 0 auto;
}

.hero__subtitle {
  max-width: 640px;
  margin: 20px auto 0;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.4;
}

.hero--dark .hero__subtitle {
  color: var(--text-on-dark-secondary);
}

.hero__visual {
  margin-top: clamp(32px, 6vw, 56px);
  width: 100%;
  max-width: min(980px, 100%);
  position: relative;
  padding: 0;
}

/* Premium media frame — image or video of Optimus Gen 2.5 */
.media-frame {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: clamp(16px, 3vw, var(--radius-lg));
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
  background: #000;
}

/* Hero film — cinematic crop, harmonious on all screens */
.media-frame--hero {
  aspect-ratio: 16 / 9;
  max-height: min(62vh, 560px);
  margin-inline: auto;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 24px 80px rgba(0, 0, 0, 0.55);
}

.media-frame--hero video.media-video,
.media-frame--hero img.media-fallback {
  object-fit: cover;
  object-position: center center;
}

.media-frame--hero .media-frame__badge {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.media-frame--square {
  aspect-ratio: 1 / 1;
}

.media-frame--portrait {
  aspect-ratio: 3 / 4;
}

.media-frame--card {
  aspect-ratio: 4 / 3;
  border-radius: 0;
  box-shadow: none;
}

.media-frame--auto {
  aspect-ratio: auto;
  height: 100%;
  min-height: 220px;
}

.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-frame video.media-video,
.media-frame img.media-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Still visible by default; media.js promotes video when MP4 loads */
.media-frame video.media-video {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.media-frame[data-media-state="video"] video.media-video {
  opacity: 1;
  pointer-events: auto;
}

.media-frame[data-media-state="video"] img.media-fallback {
  opacity: 0;
}

.media-frame img.media-fallback {
  z-index: 0;
}

/* Apple-style subtle Ken Burns when video unavailable */
.media-frame--kenburns img {
  animation: kenburns 18s ease-in-out infinite alternate;
  transform-origin: center center;
  will-change: transform;
}

@keyframes kenburns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1%, -0.5%); }
}

.media-frame--dark-ring {
  border: 1px solid var(--border-dark);
}

.media-frame--light-ring {
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.media-frame__badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 2;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 6px 12px;
  border-radius: var(--radius-full);
}

.hero__device {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.hero--dark .hero__device {
  border: 1px solid var(--border-dark);
}

.hero__glow {
  position: absolute;
  bottom: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 40%;
  background: radial-gradient(ellipse, rgba(0, 113, 227, 0.25), transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* Experience gallery strip */
.gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(10px, 2vw, 16px);
}

.gallery__item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  min-height: clamp(180px, 28vw, 220px);
  min-width: 0;
}

.gallery__item--tall {
  grid-row: span 2;
  min-height: clamp(320px, 50vw, 456px);
}

.gallery__item img,
.gallery__item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}

.gallery__item:hover img,
.gallery__item:hover video {
  transform: scale(1.04);
}

.gallery__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 20px 18px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
}



/* --------------------------------------------------------------------------
   Cards & features
   -------------------------------------------------------------------------- */

.feature-card {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.section--elevated .feature-card {
  background: var(--bg);
}

.section--dark .feature-card {
  background: var(--bg-dark-elevated);
  border-color: var(--border-dark);
  color: var(--text-on-dark);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--accent);
}

.section--dark .feature-card__icon {
  background: rgba(41, 151, 255, 0.15);
  color: #2997ff;
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
}

.section--dark .feature-card p {
  color: var(--text-on-dark-secondary);
}

/* Bento-style large cards */
.bento {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: clamp(12px, 2vw, 20px);
}

.bento__item {
  border-radius: clamp(16px, 3vw, var(--radius-lg));
  padding: clamp(24px, 4vw, 48px) clamp(20px, 3.5vw, 40px);
  overflow: hidden;
  position: relative;
  min-height: clamp(220px, 40vw, 280px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.bento__item--large {
  grid-row: span 2;
  min-height: clamp(360px, 70vw, 580px);
  background: linear-gradient(165deg, #1d1d1f 0%, #000 100%);
  color: var(--text-on-dark);
}

.bento__item--light {
  background: var(--bg-elevated);
}

.bento__item h3 {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.bento__item p {
  color: var(--text-secondary);
  max-width: 320px;
}

.bento__item--large p {
  color: var(--text-on-dark-secondary);
}

.bento__item--large .bento__visual {
  position: absolute;
  inset: 0;
  opacity: 1;
}

.bento__item--large .bento__visual img,
.bento__item--large .bento__visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bento__item--large .bento__content {
  position: relative;
  z-index: 2;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82) 40%);
  margin: calc(clamp(24px, 4vw, 48px) * -1) calc(clamp(20px, 3.5vw, 40px) * -1)
    calc(clamp(24px, 4vw, 48px) * -1);
  padding: clamp(80px, 18vw, 120px) clamp(20px, 3.5vw, 40px) clamp(24px, 4vw, 48px);
}

.bento__item--fill {
  padding: 0;
  min-height: clamp(220px, 40vw, 280px);
}

.bento__item--fill img {
  width: 100%;
  height: 100%;
  min-height: clamp(220px, 40vw, 280px);
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.bento__item--fill .bento__content {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: clamp(220px, 40vw, 280px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(20px, 3.5vw, 40px);
  background: linear-gradient(transparent 20%, rgba(0, 0, 0, 0.75));
  color: var(--text-on-dark);
}

.bento__item--fill .bento__content p {
  color: var(--text-on-dark-secondary);
}

/* --------------------------------------------------------------------------
   Product strip
   -------------------------------------------------------------------------- */

.product-hero {
  padding: calc(var(--nav-height) + var(--safe-top) + clamp(40px, 6vw, 64px)) 0 clamp(48px, 8vw, 80px);
  text-align: center;
  background: var(--bg);
}

.product-hero__price {
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.3125rem);
  color: var(--text-secondary);
  margin-top: 12px;
}

.product-hero__price strong {
  color: var(--text);
  font-weight: 600;
}

.product-hero__price a {
  font-weight: 500;
}

.specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 48px;
}

.specs__item {
  background: var(--bg);
  padding: 32px 20px;
  text-align: center;
}

.specs__value {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 4px;
}

.specs__label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}



/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
}

.step__num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 1.125rem;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 6px var(--bg);
}

.section--elevated .step__num {
  box-shadow: 0 0 0 6px var(--bg-elevated);
}

.step h3 {
  margin-bottom: 10px;
}

.step p {
  color: var(--text-secondary);
  max-width: 280px;
  margin: 0 auto;
}

.steps--4 {
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 32px);
  position: relative;
}

/* Soft connector line between step numbers (desktop, non-card layout only) */
.steps--4:not(:has(.step--card))::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border) 8%,
    var(--border) 92%,
    transparent
  );
  pointer-events: none;
}

.step--card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(28px, 4vw, 36px) clamp(16px, 2.5vw, 24px) clamp(24px, 3vw, 32px);
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease);
}

.step--card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.section--elevated .step--card {
  background: var(--bg);
}

.step--card .step__num {
  box-shadow: 0 0 0 6px var(--bg);
  margin-bottom: 18px;
}

.step--card p {
  max-width: none;
}

/* Check list used on process / booking explainer panels */
.check-list {
  list-style: none;
  margin-top: 28px;
  padding: 0;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  line-height: 1.45;
}

.check-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.check-list__mark {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}

.check-list__mark svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Side panel inside split sections */
.panel-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(28px, 4vw, 40px);
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section--elevated .panel-card {
  background: var(--bg);
}

.panel-card__label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-bottom: 8px;
}

.panel-card .title + p {
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.panel-card .title:not(:first-child) {
  margin-top: 8px;
}

.lede {
  max-width: 560px;
  margin: 16px auto 0;
}

.lede--wide {
  max-width: 640px;
}

.lede--left {
  margin-left: 0;
  margin-right: 0;
}

.subhead-sm {
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.022em;
}

/* Layout helpers — replace one-off inline styles */
.page-main {
  padding-bottom: clamp(48px, 10vw, 96px);
}

.stack-sm {
  margin-top: 16px;
}

.stack-md {
  margin-top: 28px;
}

.stack-lg {
  margin-top: 48px;
}

.grid-2--start {
  align-items: start;
}

.media-frame--page {
  max-width: 900px;
  margin: 0 auto 56px;
}

.media-frame--product {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.gallery--spaced {
  margin-top: clamp(32px, 5vw, 48px);
}

.panel-card .btn {
  margin-top: 28px;
  align-self: flex-start;
}

.booking-panel.contact-aside .title {
  margin-top: 20px;
}

.booking-panel.contact-aside .title:first-child {
  margin-top: 0;
}

.booking-panel.contact-aside p {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.booking-panel.contact-aside p a {
  color: var(--accent);
  font-weight: 500;
}

.booking-panel.contact-aside p a:hover {
  color: var(--accent-hover);
}

.booking-panel.contact-aside .btn--primary,
.booking-panel.contact-aside .btn--secondary {
  margin-top: 8px;
}

.caption--form {
  margin-top: 12px;
}

/* Dark surfaces: secondary / ghost CTAs */
.hero--dark .btn--secondary,
.section--dark .btn--secondary,
.cta-band .btn--secondary {
  color: #2997ff;
}

.hero--dark .btn--secondary:hover,
.section--dark .btn--secondary:hover,
.cta-band .btn--secondary:hover {
  color: #5ac8fa;
}

/* Page header lede inherits body-lg secondary */
.page-header .lede {
  color: var(--text-secondary);
}

.page-header .body-lg.text-secondary,
.product-hero .body-lg.text-secondary {
  margin-top: 16px;
}

.section--dark .body-lg {
  margin-top: 16px;
}



/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */

.quote-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  height: 100%;
}

.quote-card blockquote {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.016em;
  line-height: 1.4;
  margin-bottom: 24px;
}

.quote-card cite {
  font-style: normal;
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: block;
}

.quote-card cite strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 2px;
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  text-align: center;
  padding: 100px 22px;
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.cta-band .body-lg {
  color: var(--text-on-dark-secondary);
  max-width: 520px;
  margin: 16px auto 0;
}

/* --------------------------------------------------------------------------
   Booking page
   -------------------------------------------------------------------------- */

.page-header {
  padding: calc(var(--nav-height) + var(--safe-top) + clamp(36px, 5vw, 56px)) 0 clamp(24px, 4vw, 40px);
  text-align: center;
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
  padding-bottom: clamp(56px, 10vw, 100px);
}

.booking-main {
  min-width: 0;
}

.booking-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.booking-panel {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: clamp(24px, 3.5vw, 32px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.booking-panel h3 {
  margin-bottom: 8px;
}

.booking-panel p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 20px;
}

.booking-panel ul {
  margin-bottom: 24px;
}

.booking-panel li {
  font-size: 0.9375rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-secondary);
}

.booking-panel li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
}

.booking-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
  align-items: flex-end;
}

.booking-filters > div {
  flex: 1;
  min-width: 200px;
}

/* Booking page CTA on dark sections */
.booking-cta-panel {
  margin-top: clamp(40px, 6vw, 64px);
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

/* --------------------------------------------------------------------------
   Public booking journey (book.html + payment.html)
   -------------------------------------------------------------------------- */

#booking-flow,
#payment-app {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}

.page-header--tight {
  padding-bottom: clamp(12px, 2vw, 20px);
}

.bf-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  justify-content: center;
  list-style: none;
  margin: 0 0 clamp(24px, 4vw, 36px);
  padding: 0;
}

.bf-steps__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

.bf-steps__item.is-active {
  background: var(--accent-soft);
  border-color: rgba(0, 113, 227, 0.25);
  color: var(--accent);
}

.bf-steps__item.is-done {
  color: var(--text);
}

.bf-steps__num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.06);
}

.bf-steps__item.is-active .bf-steps__num {
  background: var(--accent);
  color: #fff;
}

.bf-steps__item.is-done .bf-steps__num {
  background: #34c759;
  color: #fff;
}

.bf-panel {
  width: 100%;
}

.bf-embed {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}

.bf-embed__cal .bc-cal,
.bf-embed__form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.bf-embed__form {
  padding: clamp(18px, 3vw, 28px);
}

.bf-embed__cal .bf-heading,
.bf-embed__form .bf-heading {
  margin-bottom: 14px;
}

.bf-total-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 1.0625rem;
  font-weight: 500;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 113, 227, 0.06);
  border: 1px solid rgba(0, 113, 227, 0.15);
}

.bf-total-line .bf-price,
.bf-total-line strong {
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 600;
}

.bf-summary-list .bf-summary-total {
  border-bottom: 0;
  margin-top: 4px;
  padding-top: 12px;
}

.bf-summary-list .bf-summary-total .bf-price {
  font-size: 1.15rem;
}

.bf-rate-breakdown {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.bf-rate-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.bf-rate-line strong {
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.bf-split {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 340px);
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}

.bf-heading {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.bf-lead {
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 520px;
}

.bf-split__side {
  position: sticky;
  top: calc(var(--nav-height) + 16px);
}

.bf-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(18px, 2.5vw, 24px);
  box-shadow: var(--shadow-sm);
}

.bf-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.bf-summary-list {
  list-style: none;
}

.bf-summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}

.bf-summary-list li span {
  color: var(--text-secondary);
  flex-shrink: 0;
}

.bf-label-note {
  font-size: 0.68em;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  margin-left: 4px;
  opacity: 0.9;
}

.bf-agree-link {
  margin: 4px 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.bf-agree-link a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.bf-agree-link a:hover {
  text-decoration: underline;
}

/* Rental agreement clickwrap (payment) */
.pay-card--agreement {
  margin-bottom: 16px;
}

.pay-agree__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 8px;
}

.pay-agree__head .bf-card__title {
  margin: 0;
}

.pay-agree__version {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.pay-agree__intro {
  margin: 0 0 12px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.pay-agree__scroll {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  height: min(280px, 42vh);
  margin-bottom: 14px;
}

.pay-agree__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.pay-agree__check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text);
  cursor: pointer;
}

.pay-agree__check input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--accent, #0071e3);
}

.pay-agree__check a {
  color: var(--accent);
  font-weight: 600;
}

.pay-agree__check #pay-agree-error,
.pay-card #pay-agree-error {
  margin-top: 10px;
}

.pay-card--agreement.is-required {
  border-color: rgba(255, 59, 48, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.12);
}

.pay-card--agreement.is-accepted {
  border-color: rgba(52, 199, 89, 0.4);
}

.pay-card--agreement.is-shake {
  animation: pay-agree-shake 0.45s ease;
}

@keyframes pay-agree-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-6px);
  }
  40% {
    transform: translateX(6px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(4px);
  }
}

.pay-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(12px);
  z-index: 1000;
  max-width: min(440px, calc(100vw - 32px));
  padding: 14px 18px;
  border-radius: 12px;
  background: #1d1d1f;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.pay-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.bf-summary-list li strong {
  text-align: right;
  font-weight: 500;
}

.bf-price {
  color: var(--accent) !important;
  font-weight: 600 !important;
}

.bf-muted {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.bf-cta {
  width: 100%;
  margin-top: 16px;
}

.bf-cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.bf-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Address autocomplete dropdown */
.addr-ac {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 50;
  max-height: 240px;
  overflow: auto;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--border, rgba(0, 0, 0, 0.12));
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  -webkit-overflow-scrolling: touch;
}

.addr-ac[hidden] {
  display: none !important;
}

.addr-ac__item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--text, #1d1d1f);
  cursor: pointer;
}

.addr-ac__item:hover,
.addr-ac__item.is-active {
  background: rgba(0, 113, 227, 0.08);
  color: var(--accent, #0071e3);
}

.bf-field--address,
.field--address {
  position: relative;
}

.bf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.bf-optional {
  font-weight: 400;
  color: var(--text-tertiary, #86868b);
}

.bf-field input,
.bf-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 12px;
  min-height: 44px;
  font: inherit;
  font-size: max(1rem, 16px);
  color: var(--text);
  background: #fff;
  outline: none;
}

.bf-field input:focus,
.bf-field textarea:focus {
  border-color: rgba(0, 113, 227, 0.45);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

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

.bf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.bf-actions .btn--primary {
  margin-left: auto;
}

/* Payment page */
.pay-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 360px);
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}

.pay-aside {
  position: sticky;
  top: calc(var(--nav-height) + 16px);
}

.pay-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-top: 8px;
}

.pay-secure-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 18px;
}

.pay-cta {
  width: 100%;
}

.pay-fine {
  margin-top: 14px;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  line-height: 1.45;
}

.pay-back {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.9375rem;
  color: var(--accent);
}

.pay-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 1.0625rem;
}

.pay-total strong {
  font-size: 1.35rem;
  color: var(--accent);
  font-weight: 600;
}

.pay-banner {
  background: rgba(255, 159, 10, 0.12);
  border: 1px solid rgba(255, 159, 10, 0.3);
  color: #9a5b00;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 0.9375rem;
}

.pay-success,
.pay-empty {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 12px 48px;
}

.pay-success__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(52, 199, 89, 0.15);
  color: #248a3d;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 auto 20px;
}

.pay-success__title {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.pay-success__text {
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .bf-split,
  .bf-embed,
  .pay-layout {
    grid-template-columns: 1fr;
  }

  .bf-split__side,
  .pay-aside {
    position: static;
  }

  .bf-actions .btn--primary {
    margin-left: 0;
    width: 100%;
  }

  .bf-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .bf-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .pay-cta {
    min-height: 48px;
  }

  .pay-agree__scroll {
    height: min(240px, 38vh);
  }

  .bf-heading {
    font-size: clamp(1.25rem, 4.5vw, 1.5rem);
  }
}

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

  .bf-steps {
    gap: 6px;
    margin-bottom: 20px;
  }

  .bf-steps__item {
    flex: 1 1 auto;
    justify-content: center;
    padding: 8px 10px;
    font-size: 0.75rem;
    min-height: 40px;
  }

  .bf-steps__label {
    /* Keep labels readable; stack tight */
    white-space: nowrap;
  }

  .bf-steps__num {
    width: 20px;
    height: 20px;
    font-size: 0.6875rem;
  }

  .bf-summary-list li {
    flex-wrap: wrap;
    gap: 4px 12px;
  }

  .bf-summary-list li strong {
    text-align: left;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .pay-agree__check {
    font-size: 0.8125rem;
  }

  .pay-agree__check input {
    width: 20px;
    height: 20px;
    min-width: 20px;
  }

  .pay-total {
    flex-wrap: wrap;
    gap: 4px 12px;
  }

  .pay-total strong {
    font-size: 1.2rem;
  }
}

/* Legacy calendar styles (shared) */

.bc-loading,
.bc-error,
.bc-empty-rates {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(28px, 5vw, 48px);
  text-align: center;
}

.bc-error,
.bc-empty-rates {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.bc-error p,
.bc-empty-rates p {
  color: var(--text-secondary);
  max-width: 420px;
}

.bc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 380px);
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}

.bc-cal {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(14px, 2.5vw, 20px);
  box-shadow: var(--shadow-sm);
}

.bc-cal__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.bc-cal__label {
  flex: 1;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.bc-cal__nav {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--bg-elevated);
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text);
}

.bc-cal__nav:hover {
  background: rgba(0, 0, 0, 0.06);
}

.bc-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.bc-cal__dow {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 0 8px;
}

.bc-cal__day {
  min-height: 64px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--bg-elevated);
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
  color: var(--text);
  font: inherit;
  text-align: left;
}

.bc-cal__day:disabled {
  cursor: default;
  opacity: 0.45;
}

.bc-cal__day.is-outside {
  opacity: 0.28;
}

.bc-cal__day.is-available {
  background: rgba(0, 113, 227, 0.06);
  border-color: rgba(0, 113, 227, 0.15);
}

.bc-cal__day.is-available:hover {
  border-color: var(--accent);
  background: rgba(0, 113, 227, 0.12);
}

/* Fully booked nights — hover shows "Sold out" tooltip */
.bc-cal__day.is-busy {
  position: relative;
  background: rgba(255, 59, 48, 0.08);
  border-color: rgba(255, 59, 48, 0.18);
  cursor: not-allowed;
  opacity: 0.72;
}

.bc-cal__day.is-busy:hover,
.bc-cal__day.is-busy:focus-visible {
  background: rgba(255, 59, 48, 0.14);
  border-color: rgba(255, 59, 48, 0.35);
  opacity: 1;
  z-index: 3;
}

/* Hidden label used as floating tooltip on hover */
.bc-cal__soldout {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%) translateY(4px);
  padding: 5px 10px;
  border-radius: 8px;
  background: #1d1d1f;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  z-index: 10;
}

.bc-cal__soldout::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border: 5px solid transparent;
  border-top-color: #1d1d1f;
}

.bc-cal__day.is-busy:hover .bc-cal__soldout,
.bc-cal__day.is-busy:focus-visible .bc-cal__soldout {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.bc-cal__day.is-partial {
  background: rgba(255, 159, 10, 0.08);
  border-color: rgba(255, 159, 10, 0.25);
}

.bc-cal__stock {
  display: block;
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.1;
  margin-top: 2px;
}

.bc-cal__day.is-selected .bc-cal__stock {
  color: rgba(255, 255, 255, 0.85);
}

.bc-cal__fleet {
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.bc-cal__day.is-today .bc-cal__num {
  color: var(--accent);
  font-weight: 700;
}

.bc-cal__day.is-selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.bc-cal__day.is-selected .bc-cal__price,
.bc-cal__day.is-selected .bc-cal__tag {
  color: rgba(255, 255, 255, 0.9);
}

.bc-cal__num {
  font-size: 0.8125rem;
  font-weight: 600;
}

.bc-cal__price {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.2;
}

.bc-cal__tag {
  font-size: 0.62rem;
  color: var(--text-secondary);
}

.bc-cal__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 14px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.bc-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.bc-dot--ok {
  background: var(--accent);
}
.bc-dot--busy {
  background: #ff3b30;
}
.bc-dot--sel {
  background: #1d1d1f;
}

.bc-layout__side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: calc(var(--nav-height) + 16px);
}

.bc-summary,
.bc-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.bc-summary__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.bc-summary__empty {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.bc-summary__list {
  list-style: none;
  margin-bottom: 12px;
}

.bc-summary__list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}

.bc-summary__list li span {
  color: var(--text-secondary);
}

.bc-summary__price {
  color: var(--accent);
}

.bc-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.bc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.bc-field input,
.bc-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  min-height: 42px;
  font: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
}

.bc-field input:focus,
.bc-field textarea:focus {
  border-color: rgba(0, 113, 227, 0.45);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

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

.bc-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.bc-form__submit {
  width: 100%;
  margin-top: 4px;
}

.bc-form__submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.bc-form__fine {
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-align: center;
}

.bc-status {
  font-size: 0.875rem;
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.bc-status.is-ok {
  color: #248a3d;
}

.bc-status.is-err {
  color: #d70015;
}

@media (max-width: 900px) {
  .bc-layout {
    grid-template-columns: 1fr;
  }

  .bc-layout__side {
    position: static;
  }

  .bc-cal {
    padding: 12px;
  }

  .bc-cal__day {
    min-height: 52px;
    min-width: 0;
    padding: 4px;
    border-radius: 10px;
  }

  .bc-cal__price {
    font-size: 0.55rem;
  }

  .bc-cal__legend {
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .bc-form__row {
    grid-template-columns: 1fr;
  }

  .bc-cal {
    padding: 10px 8px;
    border-radius: 14px;
  }

  .bc-cal__grid {
    gap: 3px;
  }

  .bc-cal__day {
    min-height: 44px;
    padding: 3px 2px;
    align-items: center;
    border-radius: 8px;
  }

  .bc-cal__num {
    font-size: 0.8125rem;
    width: 100%;
    text-align: center;
  }

  .bc-cal__dow {
    font-size: 0.625rem;
    padding: 4px 0 6px;
  }

  .bc-cal__label {
    font-size: 1rem;
  }

  .bc-cal__nav {
    width: 44px;
    height: 44px;
  }

  /* Sold-out tooltip can clip on edge cells — use native title only on very small */
  .bc-cal__soldout {
    display: none;
  }
}

.package-duration {
  margin: -4px 0 10px;
  opacity: 0.75;
}

.product-card--on-dark {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f5f5f7;
}

.product-card--on-dark .title,
.product-card--on-dark p {
  color: #f5f5f7;
}

.product-card--on-dark p {
  opacity: 0.85;
}

/* Custom product cards (fallback / SEO-friendly) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(16px, 3vw, 24px);
}

.product-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg);
  transition: box-shadow 0.3s, transform 0.3s var(--ease-out);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.product-card__media {
  aspect-ratio: 4 / 3;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.6875rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.92);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  color: var(--text);
}

.product-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__body h3 {
  margin-bottom: 8px;
}

.product-card__body p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  flex: 1;
  margin-bottom: 16px;
}

.product-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.product-card__meta .btn {
  flex: 0 0 auto;
}

.product-card__price {
  font-weight: 600;
  font-size: 1.125rem;
}

.product-card__price span {
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.product-card__price--soft {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}



/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  font-family: inherit;
  /* ≥16px prevents iOS Safari zoom on focus */
  font-size: max(1rem, 16px);
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}



.contact-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.contact-form-status {
  margin-top: 14px;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.contact-form-status--ok {
  color: #1a7f37;
}

.contact-form-status--err {
  color: #b42318;
}

@media (prefers-color-scheme: dark) {
  .contact-form-status--ok {
    color: #3dd68c;
  }

  .contact-form-status--err {
    color: #ff7b72;
  }
}

/* --------------------------------------------------------------------------
   Presence / compare / scenarios (guest persuasion)
   -------------------------------------------------------------------------- */

.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 24px);
  align-items: stretch;
}

.compare__col {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(28px, 4vw, 40px) clamp(22px, 3vw, 36px);
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.section--dark .compare__col {
  background: var(--bg-dark-elevated);
  border-color: var(--border-dark);
  color: var(--text-on-dark);
  box-shadow: none;
}

.compare__label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-bottom: 10px;
}

.section--dark .compare__label {
  color: #2997ff;
}

.compare__col h3 {
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  line-height: 1.2;
}

.compare__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.compare__list li {
  position: relative;
  padding: 12px 0 12px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: clamp(0.975rem, 0.95rem + 0.2vw, 1.0625rem);
  line-height: 1.45;
}

.compare__list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.compare__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.55;
}

.section--dark .compare__list li {
  border-bottom-color: var(--border-dark);
  color: var(--text-on-dark-secondary);
}

.section--dark .compare__list li::before {
  background: #2997ff;
}

.compare__note {
  margin-top: clamp(20px, 3vw, 28px);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.section--dark .compare__note {
  color: var(--text-on-dark-secondary);
}

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

.scenario-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(28px, 3.5vw, 36px) clamp(22px, 3vw, 28px);
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease);
}

.scenario-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.section--elevated .scenario-card {
  background: var(--bg);
}

.scenario-card__num {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 14px;
}

.scenario-card h3 {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.018em;
  margin-bottom: 12px;
  line-height: 1.25;
}

.scenario-card p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.5;
  margin: 0;
}

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

@media (min-width: 901px) {
  .presence-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .presence-grid .feature-card {
    grid-column: span 2;
  }

  .presence-grid .feature-card:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .presence-grid .feature-card:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

@media (max-width: 900px) {
  .compare,
  .scenarios,
  .presence-grid {
    grid-template-columns: 1fr;
  }

  .presence-grid .feature-card,
  .presence-grid .feature-card:nth-child(4),
  .presence-grid .feature-card:nth-child(5) {
    grid-column: auto;
  }
}

@media (min-width: 701px) and (max-width: 900px) {
  .scenarios {
    grid-template-columns: 1fr;
  }

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

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

.faq {
  max-width: 720px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__q {
  width: 100%;
  text-align: left;
  padding: 22px 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq__q::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-secondary);
  transition: transform 0.25s;
  flex-shrink: 0;
}

.faq__item.is-open .faq__q::after {
  transform: rotate(45deg);
}

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-out), padding 0.25s;
}

.faq__item.is-open .faq__a {
  max-height: 400px;
  padding-bottom: 22px;
}

.faq__a p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
}

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

.footer {
  background: var(--bg-elevated);
  padding: clamp(40px, 6vw, 56px) 0 max(32px, var(--safe-bottom));
  border-top: 1px solid var(--border);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.footer__brand p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 10px;
  max-width: 260px;
  line-height: 1.5;
}

.footer__col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}

.footer__col a {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding: 4px 0;
}

.footer__col a:hover {
  color: var(--text);
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.footer__bottom a {
  color: var(--text-tertiary);
  margin-left: 16px;
}

.footer__bottom a:hover {
  color: var(--text);
}

.footer__bottom-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
}

/* Social icons — monoline, Apple-quiet */
.social {
  display: flex;
  align-items: center;
  gap: 6px;
}

.social--footer {
  margin-top: 18px;
}

.social__link {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  transition: color 0.2s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.social__link:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.14);
  transform: translateY(-1px);
}

.social__link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  display: block;
}

.social__link--x svg {
  width: 14px;
  height: 14px;
}

.social--on-dark .social__link {
  color: var(--text-on-dark-secondary);
  border-color: var(--border-dark);
}

.social--on-dark .social__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.social--inline {
  margin-top: 8px;
}

/* Contact page social strip */
.social-card {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.social-card h3 {
  margin-bottom: 6px;
}

.social-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 14px;
}



/* --------------------------------------------------------------------------
   Legal / content pages
   -------------------------------------------------------------------------- */

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.prose h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.prose .meta {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 40px;
}

.prose h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 40px 0 12px;
  letter-spacing: -0.02em;
}

.prose h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 28px 0 8px;
}

.prose p,
.prose li {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.prose ul {
  list-style: disc;
  padding-left: 1.4em;
  margin-bottom: 16px;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Blog cards
   -------------------------------------------------------------------------- */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.3s, transform 0.3s;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.blog-card__media {
  aspect-ratio: 16 / 10;
  background: #1d1d1f;
  overflow: hidden;
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.blog-card:hover .blog-card__media img {
  transform: scale(1.05);
}

/* Article hero image */
.article-hero {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 40px;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
}

.article-hero img,
.article-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card__tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.blog-card h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
  color: var(--text);
}

.blog-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  flex: 1;
}

.blog-card__date {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 16px;
}



/* --------------------------------------------------------------------------
   Trust bar
   -------------------------------------------------------------------------- */

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 48px;
  padding: 40px 22px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-bar__item {
  text-align: center;
}

.trust-bar__value {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: block;
}

.trust-bar__label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Reveal animations
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  z-index: 9999;
}

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

/* ==========================================================================
   Responsive breakpoints — mobile → tablet → desktop → ultrawide
   ========================================================================== */

/* Large tablets / small desktops */
@media (max-width: 1100px) {
  .booking-layout {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  }
}

/* Tablets & below */
@media (max-width: 900px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

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

  .bento__item--large {
    grid-row: auto;
    min-height: clamp(340px, 85vw, 420px);
  }

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

  .gallery__item--tall {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: clamp(240px, 55vw, 320px);
  }

  .booking-layout {
    grid-template-columns: 1fr;
  }

  .booking-sidebar {
    position: static;
    order: -1;
  }

  .booking-layout {
    display: flex;
    flex-direction: column;
  }

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

  .steps,
  .steps--4 {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .contact-card {
    padding: clamp(20px, 5vw, 40px);
  }

  .page-header {
    padding: calc(var(--nav-height) + var(--safe-top) + 36px) 0 28px;
  }

  .product-hero {
    padding: calc(var(--nav-height) + var(--safe-top) + 40px) 0 clamp(48px, 8vw, 80px);
  }

  .section-header {
    margin-bottom: clamp(28px, 6vw, 56px);
  }

  .trust-bar {
    gap: 20px 28px;
    padding: 28px var(--page-gutter);
  }

  .cta-band {
    padding: clamp(56px, 12vw, 100px) var(--page-gutter);
  }

  .feature-card {
    padding: clamp(24px, 5vw, 36px) clamp(20px, 4vw, 28px);
  }

  .quote-card {
    padding: clamp(24px, 5vw, 36px) clamp(20px, 4vw, 32px);
  }

  .quote-card blockquote {
    font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
  }
}

/* Phones (landscape-friendly + portrait) */
@media (max-width: 700px) {
  .specs {
    grid-template-columns: 1fr 1fr;
  }

  .specs__item {
    padding: 22px 14px;
  }

  .specs__value {
    font-size: clamp(1.125rem, 4vw, 1.5rem);
  }

  .section {
    padding: clamp(40px, 8vw, 72px) 0;
  }

  .check-list li {
    gap: 10px;
    padding: 10px 0;
    font-size: 0.9375rem;
  }

  .panel-card {
    padding: 22px 18px;
  }

  .media-frame--page,
  .media-frame--product {
    max-width: 100%;
  }

  .steps,
  .steps--4 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .step--card {
    text-align: left;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 16px;
    row-gap: 4px;
    padding: 20px 18px;
    align-items: start;
  }

  .step--card .step__num {
    grid-row: 1 / span 2;
    margin: 0;
    width: 40px;
    height: 40px;
    font-size: 1rem;
    box-shadow: none;
  }

  .step--card h3 {
    margin: 0;
    align-self: end;
  }

  .step--card p {
    margin: 0;
    grid-column: 2;
  }

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

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

  .gallery__item,
  .gallery__item--tall {
    min-height: 220px;
  }

  .media-frame {
    aspect-ratio: 4 / 3;
  }

  .media-frame--hero {
    aspect-ratio: 16 / 10;
    max-height: min(48vh, 360px);
    border-radius: 16px;
  }

  .media-frame--portrait {
    aspect-ratio: 3 / 4;
    max-height: 70vh;
  }

  .hero__visual {
    margin-top: clamp(28px, 6vw, 56px);
    width: 100%;
  }

  /* Collapse line break on small screens; keep a real space so "butler for" never joins */
  .hero .display br,
  .hero .display .hero__break {
    display: none;
  }

  .btn-row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

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

  .btn-row .btn--secondary {
    width: auto;
    align-self: center;
  }

  .product-card__meta {
    flex-direction: column;
    align-items: stretch;
  }

  .product-card__meta .btn {
    width: 100%;
  }

  .booking-filters > div {
    min-width: 100%;
  }

  .booking-panel {
    padding: 22px 18px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer__bottom a {
    margin-left: 0;
    margin-right: 16px;
  }

  .prose {
    padding-bottom: 56px;
  }

  .article-hero {
    border-radius: var(--radius-sm);
    margin-bottom: 28px;
  }

  .booking-cta-panel {
    padding: 20px 16px;
  }

  .trust-bar__value {
    font-size: 1.25rem;
  }
}

/* Small phones */
@media (max-width: 400px) {
  .display {
    font-size: clamp(1.875rem, 9vw, 2.25rem);
  }

  .headline {
    font-size: clamp(1.5rem, 7vw, 1.875rem);
  }

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

  .media-frame {
    border-radius: 14px;
  }

  .nav__logo {
    font-size: 0.95rem;
  }

  .btn--lg {
    font-size: 1rem;
    padding: 14px 20px;
  }

  .bf-steps__label {
    max-width: 4.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .trust-bar {
    gap: 16px 20px;
    padding: 24px var(--page-gutter);
  }

  .trust-bar__item {
    flex: 1 1 40%;
    min-width: 120px;
  }
}

/* Short viewports (landscape phones, small height tablets) */
@media (max-height: 520px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + var(--safe-top) + 20px);
    padding-bottom: 32px;
  }

  .hero__visual {
    margin-top: 20px;
    max-width: min(520px, 70vw);
  }

  .media-frame {
    aspect-ratio: 16 / 9;
  }

  .media-frame--hero {
    max-height: 42vh;
  }

  .nav__links {
    top: calc(var(--nav-height) + var(--safe-top));
    height: auto;
    min-height: 0;
    max-height: calc(100dvh - var(--nav-height) - var(--safe-top));
  }

  .cb-chat.is-open .cb-chat__panel {
    height: min(85dvh, calc(100dvh - 24px));
    bottom: 8px;
  }

  .bc-cal__day {
    min-height: 36px;
  }

  .page-header {
    padding-top: calc(var(--nav-height) + var(--safe-top) + 20px);
    padding-bottom: 16px;
  }
}

/* Touch-friendly: never shrink primary hit targets under 44px */
@media (pointer: coarse) {
  .bc-cal__nav,
  .nav__toggle,
  .cb-chat__launcher,
  .cb-chat__send,
  .btn {
    min-height: 44px;
  }

  .bc-cal__day {
    min-height: 48px;
  }

  .bf-field input,
  .bf-field textarea,
  .form-group input,
  .form-group textarea,
  .form-group select {
    min-height: 48px;
    font-size: 16px;
  }
}

/* Wide desktops */
@media (min-width: 1400px) {
  .container--wide {
    max-width: 1480px;
  }

  .hero__visual {
    max-width: 1080px;
  }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .media-frame--kenburns img {
    animation: none;
  }

  .gallery__item img,
  .gallery__item video,
  .blog-card__media img {
    transition: none;
  }

  .gallery__item:hover img,
  .gallery__item:hover video,
  .blog-card:hover .blog-card__media img {
    transform: none;
  }
}

/* High-contrast / forced colors (accessibility) */
@media (forced-colors: active) {
  .nav,
  .feature-card,
  .product-card,
  .booking-panel {
    border: 1px solid CanvasText;
  }

  .btn--primary {
    border: 1px solid CanvasText;
  }
}

/* Print */
@media print {
  .nav,
  .nav__toggle,
  .skip-link,
  .cta-band .btn {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .hero,
  .section,
  .section--dark,
  .section--elevated {
    padding: 24px 0;
    background: #fff !important;
    color: #000 !important;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}

/* ==========================================================================
   Chat widget (Grok via free backend proxy)
   ========================================================================== */

.cb-chat {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 1100;
  font-family: var(--font);
}

.cb-chat__launcher {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s var(--ease-out), background 0.2s;
  border: none;
  cursor: pointer;
}

.cb-chat__launcher:hover {
  transform: scale(1.04);
  background: #000;
}

.cb-chat__launcher svg {
  width: 22px;
  height: 22px;
}

.cb-chat__icon-close {
  display: none;
}

.cb-chat.is-open .cb-chat__icon-open {
  display: none;
}

.cb-chat.is-open .cb-chat__icon-close {
  display: block;
}

.cb-chat__panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(380px, calc(100vw - 32px));
  height: min(520px, calc(100dvh - 100px));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  display: none; /* closed by default; .is-open shows flex */
  flex-direction: column;
  overflow: hidden;
  pointer-events: none;
}

/* Must win over display:flex when [hidden] is set (author CSS otherwise overrides UA [hidden]) */
.cb-chat__panel[hidden] {
  display: none !important;
  pointer-events: none;
}

.cb-chat.is-open .cb-chat__panel {
  display: flex;
  pointer-events: auto;
}

.cb-chat.is-open .cb-chat__panel[hidden] {
  display: none !important;
}

.cb-chat__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border);
}

.cb-chat__eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 2px;
  letter-spacing: 0.02em;
}

.cb-chat__title {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
}

.cb-chat__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: none;
  cursor: pointer;
}

.cb-chat__close:hover {
  color: var(--text);
}

.cb-chat__messages {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cb-chat__bubble {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.9375rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.cb-chat__bubble--assistant {
  align-self: flex-start;
  background: var(--bg-elevated);
  color: var(--text);
  border-bottom-left-radius: 6px;
}

.cb-chat__bubble--user {
  align-self: flex-end;
  background: var(--text);
  color: #fff;
  border-bottom-right-radius: 6px;
}

.cb-chat__bubble.is-thinking {
  color: var(--text-tertiary);
  letter-spacing: 0.12em;
}

.cb-chat__form {
  display: flex;
  gap: 8px;
  padding: 12px 12px 6px;
  border-top: 1px solid var(--border);
}

.cb-chat__input {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 0.9375rem;
  padding: 12px 14px;
  border-radius: 980px;
  border: 1px solid var(--border);
  background: #fff;
  outline: none;
  color: var(--text);
}

.cb-chat__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.cb-chat__send {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}

.cb-chat__send:hover {
  background: var(--accent-hover);
}

.cb-chat.is-busy .cb-chat__send {
  opacity: 0.6;
  pointer-events: none;
}

.cb-chat__fine {
  font-size: 0.625rem;
  color: var(--text-tertiary);
  text-align: center;
  padding: 0 12px 10px;
  margin: 0;
}

@media (max-width: 480px) {
  .cb-chat {
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }

  .cb-chat__launcher {
    width: 52px;
    height: 52px;
  }

  .cb-chat.is-open .cb-chat__panel {
    position: fixed;
    left: max(10px, env(safe-area-inset-left, 0px));
    right: max(10px, env(safe-area-inset-right, 0px));
    bottom: max(72px, calc(env(safe-area-inset-bottom, 0px) + 64px));
    width: auto;
    height: min(72dvh, calc(100dvh - 100px - env(safe-area-inset-top, 0px)));
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 88px);
    border-radius: 16px;
  }

  .cb-chat__input {
    font-size: 16px; /* prevent iOS zoom on focus */
  }

  .cb-chat__chip {
    min-height: 36px;
  }
}

/* Very small / notch phones: nearly full-height chat sheet */
@media (max-width: 380px) {
  .cb-chat.is-open .cb-chat__panel {
    left: 0;
    right: 0;
    bottom: 0;
    height: min(88dvh, calc(100dvh - env(safe-area-inset-top, 0px)));
    max-height: none;
    border-radius: 16px 16px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .cb-chat.is-open .cb-chat__launcher {
    /* hide launcher behind sheet; close via panel X */
    opacity: 0;
    pointer-events: none;
  }
}

/* Customer Support widget extras */
.cb-chat__brand {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.cb-chat__status {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.2);
  flex-shrink: 0;
}

.cb-chat__subtitle {
  margin: 2px 0 0;
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  font-weight: 400;
}

.cb-chat__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 10px;
}

.cb-chat__actions[hidden] {
  display: none !important;
}

.cb-chat__chip {
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 980px;
  padding: 8px 12px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

a.cb-chat__chip:hover,
button.cb-chat__chip:hover {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.16);
  color: var(--text);
}

.cb-chat__chip--primary {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.cb-chat__chip--primary:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

.cb-chat__handoff {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.cb-chat__handoff-note {
  width: 100%;
  margin: 0 0 4px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.cb-chat__footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px 12px;
}

.cb-chat__linkbtn {
  font-family: inherit;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

.cb-chat__linkbtn:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.cb-chat__dot {
  color: var(--text-tertiary);
  font-size: 0.6875rem;
}

.cb-chat__footer-bar .cb-chat__fine {
  padding: 0;
  font-size: 0.625rem;
}

/* Honeypot — visually hidden from humans, still in DOM for bots */
.cb-chat__hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
