/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --navy:        #16233F;
  --navy-2:      #1E3057;
  --navy-deep:   #0E1730;
  --coral:       #FF6A3D;
  --coral-2:     #E8552B;
  --coral-soft:  #FFE4D8;
  --paper:       #FBFAF8;
  --white:       #FFFFFF;
  --ink:         var(--navy);
  --ink-mute:    #5B6478;
  --ink-faint:   #8B93A6;
  --line:        rgba(22, 35, 63, 0.12);
  --line-soft:   rgba(22, 35, 63, 0.07);
  --shadow-sm:   0 2px 10px rgba(22, 35, 63, 0.06);
  --shadow-md:   0 12px 32px rgba(22, 35, 63, 0.10);
  --shadow-lg:   0 24px 64px rgba(22, 35, 63, 0.16);
  --shadow-coral: 0 16px 40px rgba(255, 106, 61, 0.28);

  --display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-full: 999px;

  --container: 1280px;
  --nav-h: 84px;
}

@property --mesh-x {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 30%;
}
@property --mesh-y {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 20%;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.02em; font-family: var(--display); font-weight: 700; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--coral); color: var(--white); }

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

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .7rem 1.2rem; background: var(--navy); color: var(--white);
  z-index: 9999; border-radius: var(--radius-sm); font-weight: 600;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
@media (min-width: 960px) {
  .container { width: min(100% - 5rem, var(--container)); }
}

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

.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--coral-2);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px; background: var(--coral);
  border-radius: var(--radius-full);
}

.section {
  padding-block: clamp(3.5rem, 7vw, 7rem);
  position: relative;
}
.section-head {
  max-width: 62ch;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-head.centered { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-top: .6rem; }
.section-head p { color: var(--ink-mute); font-size: 1.08rem; margin-top: .9rem; max-width: 52ch; }
.section-head.centered p { margin-inline: auto; }

.section--tint { background: linear-gradient(180deg, var(--white), #F2F0EA 60%, var(--white)); }
.section--navy {
  background: radial-gradient(120% 140% at 15% 0%, var(--navy-2) 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: var(--white);
}
.section--navy .ink-mute { color: rgba(255,255,255,0.68); }

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.reveal-group > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* =============================================================
   4. Buttons & badges
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 0.95rem 1.7rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.98rem;
  white-space: nowrap;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .3s var(--ease-out), color .3s var(--ease-out);
  will-change: transform;
}
.btn-primary {
  background: var(--coral);
  color: var(--navy-deep);
  box-shadow: var(--shadow-coral);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 48px rgba(255,106,61,0.38); background: #FF7C53; }
.btn-secondary {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-secondary:hover { transform: translateY(-3px); background: var(--navy-2); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--navy); background: rgba(22,35,63,0.04); }
.btn-ghost.on-dark { color: var(--white); border-color: rgba(255,255,255,0.28); }
.btn-ghost.on-dark:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

.badge {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .35em .85em;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.badge-coral { background: var(--coral); color: var(--navy-deep); }
.badge-navy { background: var(--navy); color: var(--white); }
.badge-outline { border: 1.5px solid var(--line); color: var(--ink-mute); }

/* =============================================================
   5. Nav
   ============================================================= */
.nav {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 500;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .4s var(--ease-out), box-shadow .4s var(--ease-out), backdrop-filter .4s var(--ease-out);
}
.nav-inner {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.nav-logo { display: flex; align-items: center; gap: .6rem; }
.nav-logo img { height: 34px; width: auto; }
.nav-logo span { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--navy); }

.nav-links {
  display: none;
  align-items: center; gap: 2.1rem;
  font-size: 0.95rem; font-weight: 600; color: var(--navy);
}
.nav-links a { position: relative; padding-block: .3rem; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--coral); border-radius: var(--radius-full);
  transition: right .35s var(--ease-out);
}
.nav-links a:hover::after { right: 0; }

.nav-actions { display: flex; align-items: center; gap: .9rem; }
.nav-actions .btn-ghost { display: none; }
.nav .btn-primary { padding: 0.75rem 1.4rem; font-size: 0.92rem; }

.nav.is-solid {
  background: rgba(251, 250, 248, 0.86);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px rgba(22,35,63,0.06);
}
@supports not (backdrop-filter: blur(1px)) {
  .nav.is-solid { background: rgba(251, 250, 248, 0.97); }
}

.nav-burger {
  display: inline-flex; flex-direction: column; gap: 5px; padding: .5rem;
}
.nav-burger span { width: 22px; height: 2px; background: var(--navy); border-radius: var(--radius-full); transition: transform .3s var(--ease-out), opacity .3s var(--ease-out); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 400;
  background: var(--paper);
  padding: 2rem 1.5rem;
  transform: translateY(-8px);
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a {
  display: block; padding: 1.05rem 0; font-family: var(--display); font-weight: 600;
  font-size: 1.4rem; color: var(--navy); border-bottom: 1px solid var(--line-soft);
}
.mobile-menu .btn { margin-top: 1.6rem; }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-actions .btn-ghost { display: inline-flex; }
  .nav-burger { display: none; }
  .mobile-menu { display: none; }
}

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 7vw, 5rem));
  padding-bottom: clamp(3rem, 8vw, 6rem);
  overflow: clip;
  background: linear-gradient(180deg, #F2EFE8 0%, var(--paper) 65%);
}
.hero-glow {
  position: absolute; inset: -20% -10% auto -10%; height: 90%;
  background:
    radial-gradient(45% 55% at 18% 20%, rgba(255,106,61,0.16), transparent 70%),
    radial-gradient(40% 50% at 85% 10%, rgba(22,35,63,0.10), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 6vw, 3rem);
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}

.hero-copy .eyebrow { margin-bottom: 1.1rem; }
.hero-title {
  font-size: clamp(2.5rem, 5.4vw, 4.2rem);
  color: var(--navy);
  max-width: 15ch;
}
.hero-title em {
  font-style: normal;
  color: var(--coral-2);
  position: relative;
}
.hero-sub {
  margin-top: 1.4rem;
  font-size: 1.18rem;
  color: var(--ink-mute);
  max-width: 46ch;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, auto);
  gap: clamp(1.4rem, 4vw, 2.6rem);
  margin-top: clamp(2.4rem, 6vw, 3.4rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  max-width: 46rem;
}
.hero-stat b {
  display: block; font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--navy);
}
.hero-stat b i {
  font-style: normal; font-size: 0.6em; color: var(--coral-2); margin-left: .05em;
}
.hero-stat span { font-size: 0.85rem; color: var(--ink-mute); }

.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 560px; margin-inline: auto; }
.hero-art svg { width: 100%; height: 100%; }
.hero-float {
  position: absolute;
  display: flex; align-items: center; gap: .7rem;
  padding: .85rem 1.1rem;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  animation: floatY 6.5s var(--ease-soft) infinite;
}
@supports not (backdrop-filter: blur(1px)) { .hero-float { background: rgba(255,255,255,0.95); } }
.hero-float--points { top: 6%; right: -2%; animation-delay: .3s; }
.hero-float--route { bottom: 10%; left: -6%; animation-delay: 1.4s; }
.hero-float b { display: block; font-family: var(--display); font-size: 1.15rem; color: var(--navy); }
.hero-float span { font-size: 0.74rem; color: var(--ink-mute); }
.hero-float .dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--coral-soft); color: var(--coral-2); flex-shrink: 0; }
.hero-float .dot svg { width: 20px; height: 20px; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-float { animation-duration: 10s; }
}

/* =============================================================
   7. Marquee ticker
   ============================================================= */
.ticker {
  border-block: 1px solid var(--line);
  background: var(--white);
  overflow: hidden;
  padding-block: 1.1rem;
}
.ticker-track {
  display: flex; width: max-content; gap: 3rem;
  animation: marquee 34s linear infinite;
}
.ticker-track span {
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  color: var(--ink-faint); white-space: nowrap;
  display: flex; align-items: center; gap: .8rem;
}
.ticker-track span::after { content: "•"; color: var(--coral); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation-duration: 60s; }
}

/* =============================================================
   8. How it works
   ============================================================= */
.steps {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.7rem;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s var(--ease-out);
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.step-num {
  font-family: var(--display); font-weight: 700; font-size: 0.85rem;
  color: var(--coral-2); letter-spacing: .05em;
}
.step-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  background: var(--navy); color: var(--coral);
  display: grid; place-items: center; margin: 1rem 0 1.2rem;
}
.step-icon svg { width: 26px; height: 26px; }
.step-card h3 { font-size: 1.2rem; margin-bottom: .55rem; }
.step-card p { color: var(--ink-mute); font-size: 0.96rem; }

/* =============================================================
   9. Bento listings
   ============================================================= */
.bento {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(200px, auto); grid-auto-flow: dense; }
  .bento .listing-card.is-wide { grid-column: span 2; }
  .bento .listing-card.is-tall { grid-row: span 2; }
}

.listing-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.listing-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }

.listing-scene {
  position: relative;
  aspect-ratio: 16 / 10;
  flex: 0 0 auto;
  overflow: hidden;
}
.listing-card.is-tall .listing-scene { aspect-ratio: auto; flex: 1 1 auto; min-height: 220px; }
.listing-card.is-tall .listing-body { flex: 0 0 auto; }
.listing-scene svg, .listing-scene img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.listing-card:hover .listing-scene svg, .listing-card:hover .listing-scene img { transform: scale(1.06); }

.listing-points {
  position: absolute; top: .85rem; right: .85rem;
  display: flex; align-items: center; gap: .35rem;
  background: rgba(255,255,255,0.92);
  color: var(--navy);
  padding: .4rem .75rem;
  border-radius: var(--radius-full);
  font-family: var(--display); font-weight: 700; font-size: 0.88rem;
  box-shadow: var(--shadow-sm);
}
.listing-points svg { width: 14px; height: 14px; color: var(--coral); }

.listing-type {
  position: absolute; top: .85rem; left: .85rem;
}

.listing-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.listing-city { display: flex; align-items: center; gap: .4rem; font-size: 0.82rem; color: var(--ink-mute); font-weight: 600; }
.listing-city svg { width: 14px; height: 14px; color: var(--coral); }
.listing-body h3 { font-size: 1.15rem; }
.listing-meta { display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin-top: .2rem; }
.listing-meta span { display: flex; align-items: center; gap: .35rem; font-size: 0.82rem; color: var(--ink-mute); }
.listing-meta svg { width: 15px; height: 15px; color: var(--navy); opacity: .55; }
.listing-link {
  margin-top: auto; padding-top: .9rem;
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 700; font-size: 0.9rem; color: var(--navy);
}
.listing-link svg { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.listing-card:hover .listing-link svg { transform: translateX(4px); }

.listings-foot { display: flex; justify-content: center; margin-top: 2.4rem; }

/* Listing detail dialog */
.listing-dialog {
  border: 0; padding: 0; margin: auto;
  width: min(94vw, 580px);
  max-height: min(88vh, 780px);
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.listing-dialog[open] {
  display: flex;
  flex-direction: column;
}
.listing-dialog::backdrop {
  background: rgba(14, 23, 48, 0.6);
}
@supports (backdrop-filter: blur(1px)) {
  .listing-dialog::backdrop { backdrop-filter: blur(6px); }
}
.listing-dialog[open] { animation: dialogIn .3s var(--ease-out); }
@media (prefers-reduced-motion: reduce) {
  .listing-dialog[open] { animation-duration: .01s; }
}
@keyframes dialogIn {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.dialog-media { position: relative; height: 240px; flex: 0 0 auto; }
.dialog-media img { width: 100%; height: 100%; object-fit: cover; }

/* Photo gallery / carousel — used inside the listing dialog */
.gallery { position: relative; width: 100%; height: 100%; overflow: hidden; }
.gallery-track { display: flex; height: 100%; transition: transform .4s var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .gallery-track { transition-duration: .01s; } }
.gallery-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.88); color: var(--navy);
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
  transition: background-color .2s var(--ease-out);
}
.gallery-nav:hover { background: var(--white); }
.gallery-prev { left: .6rem; }
.gallery-next { right: .6rem; }
.gallery-dots {
  position: absolute; bottom: .7rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: .35rem;
}
.gallery-dot {
  width: 6px; height: 6px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(255,255,255,0.55);
  transition: background-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.gallery-dot.is-active { background: var(--white); transform: scale(1.35); }
.dialog-close {
  position: absolute; top: .85rem; right: .85rem;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.92); color: var(--navy);
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
  transition: background-color .3s var(--ease-out);
}
.dialog-close:hover { background: var(--white); }

.dialog-body {
  padding: 1.6rem 1.8rem 1.9rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}
.dialog-body h3 { font-size: 1.4rem; margin-top: .4rem; }
.dialog-rating {
  display: flex; align-items: center; gap: .4rem;
  margin-top: .6rem; font-weight: 700; color: var(--navy);
}
.dialog-rating svg { width: 16px; height: 16px; color: var(--coral); }

.dialog-section { margin-top: 1.5rem; }
.dialog-section h4 {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; color: var(--ink-mute);
  margin-bottom: .8rem;
}
.dialog-chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.dialog-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .85rem; border: 1.5px solid var(--line);
  border-radius: var(--radius-full); font-size: 0.82rem; font-weight: 600; color: var(--navy);
}
.dialog-chip svg { width: 15px; height: 15px; color: var(--coral-2); }

.dialog-reviews { display: flex; flex-direction: column; gap: 1rem; }
.dialog-review { border-top: 1px solid var(--line-soft); padding-top: 1rem; }
.dialog-review:first-child { border-top: 0; padding-top: 0; }
.dialog-review-stars { display: flex; gap: .18rem; color: var(--coral); margin-bottom: .35rem; }
.dialog-review-stars svg { width: 12px; height: 12px; }
.dialog-review p { font-size: 0.92rem; color: var(--navy); }
.dialog-review span { display: block; font-size: 0.78rem; color: var(--ink-mute); margin-top: .35rem; }

.dialog-cta { margin-top: 1.7rem; }

/* Host mini-card + action row inside the listing dialog */
.dialog-host {
  display: flex; align-items: center; gap: .9rem;
  margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line-soft);
}
.dialog-host-info { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.dialog-host-info b { display: flex; align-items: center; gap: .35rem; font-size: 0.95rem; color: var(--navy); }
.dialog-host-info span { font-size: 0.78rem; color: var(--ink-mute); }
.dialog-host-response { color: var(--coral-2) !important; font-weight: 600; }
.verified-tick { color: var(--coral); flex-shrink: 0; }

.dialog-actions { display: flex; gap: .8rem; margin-top: 1.1rem; }
.dialog-actions .btn { flex: 1 1 0; }
.dialog-actions .btn svg { flex-shrink: 0; }
@media (max-width: 539px) {
  .dialog-actions { flex-direction: column; }
}

/* =============================================================
   16. Chat dialog
   ============================================================= */
.chat-dialog {
  border: 0; padding: 0; margin: auto;
  width: min(94vw, 440px);
  height: min(82vh, 640px);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.chat-dialog[open] {
  display: flex;
  flex-direction: column;
}
.chat-dialog::backdrop { background: rgba(14, 23, 48, 0.6); }
@supports (backdrop-filter: blur(1px)) {
  .chat-dialog::backdrop { backdrop-filter: blur(6px); }
}
.chat-dialog[open] { animation: dialogIn .3s var(--ease-out); }
@media (prefers-reduced-motion: reduce) {
  .chat-dialog[open] { animation-duration: .01s; }
}

.chat-header {
  flex: 0 0 auto; display: flex; align-items: center; gap: .8rem;
  padding: 1.1rem 1.3rem; background: var(--navy); color: var(--white);
}
.chat-header .avatar { flex-shrink: 0; }
.chat-header-info { display: flex; flex-direction: column; gap: .1rem; min-width: 0; flex: 1; }
.chat-header-info b { font-size: 0.95rem; }
.chat-header-info span { font-size: 0.76rem; color: rgba(255,255,255,0.68); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-header .dialog-close { position: static; background: rgba(255,255,255,0.14); color: var(--white); }
.chat-header .dialog-close:hover { background: rgba(255,255,255,0.24); }

.chat-thread {
  flex: 1 1 auto; overflow-y: auto;
  padding: 1.2rem 1.1rem; display: flex; flex-direction: column; gap: .7rem;
  background: var(--paper);
}
.chat-msg { display: flex; flex-direction: column; max-width: 82%; }
.chat-msg.is-host { align-self: flex-start; align-items: flex-start; }
.chat-msg.is-user { align-self: flex-end; align-items: flex-end; }
.chat-bubble {
  padding: .65rem .95rem; border-radius: 16px; font-size: 0.88rem; line-height: 1.45;
}
.chat-msg.is-host .chat-bubble { background: var(--white); color: var(--navy); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-msg.is-user .chat-bubble { background: var(--coral); color: var(--navy-deep); border-bottom-right-radius: 4px; }
.chat-time { font-size: 0.68rem; color: var(--ink-faint); margin-top: .3rem; padding-inline: .2rem; }

.chat-typing .chat-bubble { display: flex; align-items: center; gap: .28rem; padding-block: .8rem; }
.chat-typing .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ink-faint);
  animation: typingBounce 1.1s ease-in-out infinite;
}
.chat-typing .dot:nth-child(2) { animation-delay: .15s; }
.chat-typing .dot:nth-child(3) { animation-delay: .3s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-4px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .chat-typing .dot { animation-duration: 1.6s; }
}

.chat-input {
  flex: 0 0 auto; display: flex; gap: .6rem;
  padding: .9rem 1rem; border-top: 1px solid var(--line);
  background: var(--white);
}
.chat-input input {
  flex: 1 1 auto; min-width: 0; border: 1.5px solid var(--line); border-radius: var(--radius-full);
  padding: .7rem 1.1rem; font-size: 0.9rem; background: var(--paper); color: var(--navy);
  transition: border-color .3s var(--ease-out);
}
.chat-input input:focus-visible { border-color: var(--coral); outline: none; }
.chat-send {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
  background: var(--coral); color: var(--navy-deep);
  display: grid; place-items: center; transition: background-color .3s var(--ease-out), transform .2s var(--ease-out);
}
.chat-send:hover { background: #FF7C53; transform: scale(1.05); }

.chat-disclaimer {
  flex: 0 0 auto; font-size: 0.7rem; color: var(--ink-mute);
  text-align: center; padding: .5rem 1rem .8rem;
  background: var(--white);
}

/* Calculator textarea */
.textarea-field {
  width: 100%; padding: .9rem 1.1rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-md);
  background: var(--paper); color: var(--navy); font: inherit;
  resize: vertical; min-height: 96px;
  transition: border-color .3s var(--ease-out);
}
.textarea-field:hover, .textarea-field:focus-visible { border-color: var(--navy); outline: none; }
.field-hint { margin-top: .6rem; font-size: 0.8rem; color: var(--ink-mute); }

/* Multi-photo upload (calculator) */
.photo-drop {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .45rem;
  border: 1.5px dashed var(--line); border-radius: var(--radius-md);
  padding: 2rem 1.2rem; cursor: pointer; color: var(--navy);
  transition: border-color .3s var(--ease-out), background-color .3s var(--ease-out);
}
.photo-drop:hover, .photo-drop:focus-within { border-color: var(--coral); background: var(--coral-soft); }
.photo-drop svg { color: var(--coral-2); }
.photo-drop b { font-size: 0.95rem; }
.photo-drop span { font-size: 0.82rem; color: var(--ink-mute); max-width: 42ch; }

.photo-previews { display: flex; flex-wrap: wrap; gap: .7rem; }
.photo-previews:not(:empty) { margin-top: 1rem; }
.photo-thumb { position: relative; width: 84px; height: 84px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb-remove {
  position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(14,23,48,0.75); color: var(--white); display: grid; place-items: center;
  transition: background-color .2s var(--ease-out);
}
.photo-thumb-remove:hover { background: var(--navy-deep); }
.photo-thumb-cover {
  position: absolute; bottom: 3px; left: 3px; font-size: 0.62rem; font-weight: 700;
  background: rgba(255,255,255,0.92); color: var(--navy); padding: .1rem .4rem; border-radius: var(--radius-full);
}

/* =============================================================
   10. Calculator
   ============================================================= */
.calc {
  display: grid; gap: clamp(1.6rem, 4vw, 2.2rem);
  align-items: start;
}
@media (min-width: 1024px) { .calc { grid-template-columns: 1.15fr 0.85fr; } }

.calc-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  box-shadow: var(--shadow-sm);
}
.field-group { margin-bottom: 1.7rem; }
.field-group:last-child { margin-bottom: 0; }
.field-label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-weight: 700; font-size: 0.95rem; color: var(--navy); margin-bottom: .8rem;
}
.field-label .value-tag { font-weight: 700; color: var(--coral-2); font-family: var(--display); }

.toggle-pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: .7rem;
}
.toggle-pill {
  position: relative;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: .9rem 1rem;
  text-align: left;
  transition: border-color .3s var(--ease-out), background-color .3s var(--ease-out);
}
.toggle-pill b { display: block; font-size: 0.95rem; color: var(--navy); }
.toggle-pill span { font-size: 0.78rem; color: var(--ink-mute); }
.toggle-pill input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.toggle-pill.is-active { border-color: var(--coral); background: var(--coral-soft); }

.select-field {
  width: 100%; padding: .9rem 1.1rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-md);
  background: var(--paper);
  font-weight: 600; color: var(--navy);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%2316233F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  transition: border-color .3s var(--ease-out);
}
.select-field:hover, .select-field:focus-visible { border-color: var(--navy); }

.profile-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.1rem;
}
@media (min-width: 640px) { .profile-grid { grid-template-columns: 1.4fr 1fr 0.7fr; } }
.profile-field { display: flex; flex-direction: column; gap: .5rem; }
.profile-field label { font-size: 0.82rem; font-weight: 600; color: var(--ink-mute); }

.number-field {
  width: 100%; padding: .9rem 1.1rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-md);
  background: var(--paper);
  font-weight: 600; color: var(--navy); font: inherit;
  transition: border-color .3s var(--ease-out);
}
.number-field:hover, .number-field:focus-visible { border-color: var(--navy); outline: none; }

.range-field {
  width: 100%; appearance: none; height: 6px; border-radius: var(--radius-full);
  background: var(--line);
  accent-color: var(--coral);
}
.range-field::-webkit-slider-thumb {
  appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--coral); border: 3px solid var(--white); box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.range-field::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--coral); border: 3px solid var(--white); box-shadow: var(--shadow-sm); cursor: pointer;
}

.stepper {
  display: inline-flex; align-items: center; gap: 1rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-full);
  padding: .5rem .6rem;
}
.stepper button {
  width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--white);
  display: grid; place-items: center; font-size: 1.2rem; font-weight: 700;
  transition: background-color .3s var(--ease-out);
}
.stepper button:hover { background: var(--coral-2); }
.stepper output { font-family: var(--display); font-weight: 700; font-size: 1.1rem; min-width: 1.6ch; text-align: center; }

.checks-grid {
  display: grid; grid-template-columns: 1fr; gap: .7rem;
}
@media (min-width: 540px) { .checks-grid { grid-template-columns: 1fr 1fr; } }
.check-item {
  position: relative;
  display: flex; align-items: center; gap: .7rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-md);
  padding: .75rem .9rem;
  font-size: 0.88rem; font-weight: 600; color: var(--navy);
  transition: border-color .3s var(--ease-out), background-color .3s var(--ease-out);
}
.check-item svg { width: 18px; height: 18px; color: var(--ink-faint); flex-shrink: 0; transition: color .3s var(--ease-out); }
.check-item input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.check-item.is-active { border-color: var(--coral); background: var(--coral-soft); }
.check-item.is-active svg { color: var(--coral-2); }

.stars-field { display: flex; gap: .5rem; }
.star-btn {
  position: relative; width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid var(--line); display: grid; place-items: center;
  transition: border-color .3s var(--ease-out), background-color .3s var(--ease-out);
}
.star-btn svg { width: 19px; height: 19px; color: var(--ink-faint); transition: color .3s var(--ease-out); }
.star-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.star-btn.is-active { border-color: var(--coral); background: var(--coral); }
.star-btn.is-active svg { color: var(--navy-deep); }

.calc-result {
  position: sticky; top: calc(var(--nav-h) + 1.5rem);
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.4rem);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.calc-result::before {
  content: ""; position: absolute; inset: -40% -20% auto auto; width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255,106,61,0.35), transparent 70%);
  filter: blur(30px); pointer-events: none;
}
.calc-result-top { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.calc-result-top .eyebrow { color: rgba(255,255,255,0.65); }
.calc-result-top .eyebrow::before { background: var(--coral); }

.calc-total { position: relative; margin-top: 1.1rem; display: flex; align-items: baseline; gap: .6rem; }
.calc-total b { font-family: var(--display); font-size: clamp(3rem, 8vw, 4.2rem); line-height: 1; color: var(--coral); }
.calc-total span { font-size: 1rem; color: rgba(255,255,255,0.7); font-weight: 600; }

.calc-tier { position: relative; margin-top: .7rem; }

.calc-breakdown { position: relative; margin-top: 1.8rem; display: flex; flex-direction: column; gap: .05rem; }
.calc-breakdown-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,0.12);
  font-size: 0.9rem;
}
.calc-breakdown-row span:first-child { color: rgba(255,255,255,0.75); }
.calc-breakdown-row b { font-family: var(--display); font-weight: 600; }

.calc-note {
  position: relative; margin-top: 1.6rem;
  font-size: 0.85rem; color: rgba(255,255,255,0.68);
  padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,0.14);
}
.calc-result .btn { position: relative; margin-top: 1.6rem; }

/* =============================================================
   11. Trust
   ============================================================= */
.trust-grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }

.trust-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.6rem;
  transition: transform .4s var(--ease-out), background-color .4s var(--ease-out);
}
.trust-card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.09); }
.trust-icon {
  width: 50px; height: 50px; border-radius: var(--radius-sm);
  background: var(--coral); color: var(--navy-deep);
  display: grid; place-items: center; margin-bottom: 1.2rem;
}
.trust-icon svg { width: 24px; height: 24px; }
.trust-card h3 { font-size: 1.1rem; color: var(--white); margin-bottom: .5rem; }
.trust-card p { font-size: 0.9rem; color: rgba(255,255,255,0.68); }

/* =============================================================
   12. Testimonials
   ============================================================= */
.testimonials {
  display: grid; gap: 1.4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .testimonials { grid-template-columns: repeat(3, 1fr); } }

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.7rem;
  display: flex; flex-direction: column; gap: 1.2rem;
}
.testimonial-stars { display: flex; gap: .25rem; color: var(--coral); }
.testimonial-stars svg { width: 15px; height: 15px; }
.testimonial-card p.quote { font-size: 1.02rem; color: var(--navy); flex: 1; }
.testimonial-who { display: flex; align-items: center; gap: .9rem; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 0.95rem;
  color: var(--white); flex-shrink: 0;
}
.testimonial-who b { display: block; font-size: 0.92rem; color: var(--navy); }
.testimonial-who span { font-size: 0.8rem; color: var(--ink-mute); }

/* =============================================================
   13. Final CTA
   ============================================================= */
.cta-final {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(2.6rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 960px) { .cta-final { grid-template-columns: 1.1fr 0.9fr; } }
.cta-final::before {
  content: ""; position: absolute; inset: -30% -10% auto auto; width: 55%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255,106,61,0.32), transparent 70%);
  filter: blur(20px);
}
.cta-final h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); position: relative; }
.cta-final p { color: rgba(255,255,255,0.72); margin-top: 1rem; max-width: 46ch; position: relative; }

.cta-form {
  position: relative;
  display: flex; flex-wrap: wrap; gap: .8rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  padding: .6rem;
  border-radius: var(--radius-full);
}
.cta-form input {
  flex: 1 1 200px; min-width: 0;
  background: transparent; border: 0; color: var(--white);
  padding: .8rem 1.1rem; font-size: 0.95rem;
}
.cta-form input::placeholder { color: rgba(255,255,255,0.5); }
.cta-form .btn { flex-shrink: 0; }
.cta-fineprint { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-top: .9rem; position: relative; }
.cta-success {
  display: none; align-items: center; gap: .6rem;
  color: var(--coral); font-weight: 700; font-size: 0.95rem; margin-top: 1rem; position: relative;
}
.cta-success.is-shown { display: flex; }
.cta-success svg { width: 20px; height: 20px; }

/* =============================================================
   14. Footer
   ============================================================= */
.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.65);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer-grid {
  display: grid; gap: 2.4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.3fr repeat(3, 1fr); } }
.footer-brand img { height: 32px; margin-bottom: 1rem; }
.footer-brand p { max-width: 32ch; font-size: 0.9rem; }
.footer-social { display: flex; gap: .8rem; margin-top: 1.4rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.18);
  display: grid; place-items: center; transition: background-color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.footer-social a:hover { background: var(--coral); border-color: var(--coral); }
.footer-social svg { width: 17px; height: 17px; }
.footer-col h4 { font-family: var(--display); font-size: 0.85rem; color: var(--white); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .75rem; }
.footer-col a { font-size: 0.9rem; transition: color .3s var(--ease-out); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  font-size: 0.82rem;
}
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* =============================================================
   15. Responsive tuning
   ============================================================= */
@media (min-width: 1600px) {
  .container { width: min(100% - 8rem, 1400px); }
}
