/* =====================================================================
   Home page redesign. Layered on top of styles.css (tokens, header,
   footer, buttons). Everything here is prefixed hx- so it cannot
   collide with the other pages.
   ===================================================================== */

:root {
  --hx-ink: #14201f;
  --hx-ink-soft: #445250;
  --hx-teal: #008080;
  --hx-teal-deep: #0b5c5c;
  --hx-teal-ink: #0d3d3d;
  --hx-mint: #d6eae8;
  --hx-mint-soft: #eaf4f3;
  --hx-cream: #f5f3ee;
  --hx-sand: #efe9df;
  --hx-coral: #d6336c;
  --hx-radius-xl: 28px;
  --hx-shadow: 0 30px 80px rgba(13, 61, 61, 0.16);
  --hx-shadow-sm: 0 10px 30px rgba(13, 61, 61, 0.10);
}

.hx-section { padding: 104px 0; }
.hx-section--tight { padding: 72px 0; }
.hx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hx-teal);
}
.hx-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--hx-teal);
  border-radius: 2px;
}
.hx-h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 14px 0 18px;
}
.hx-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--hx-ink-soft);
  max-width: 600px;
}
.hx-head { max-width: 760px; }
.hx-head--center { margin: 0 auto 56px; text-align: center; }
.hx-head--center .hx-lead { margin: 0 auto; }
.hx-head--center .hx-eyebrow { justify-content: center; }

/* Reveal on scroll */
.hx-reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.hx-reveal.is-in { opacity: 1; transform: none; }
.hx-reveal[data-delay="1"] { transition-delay: 0.1s; }
.hx-reveal[data-delay="2"] { transition-delay: 0.2s; }
.hx-reveal[data-delay="3"] { transition-delay: 0.3s; }

/* ===== Hero ===== */
.hx-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 0;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(162, 213, 212, 0.55), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(214, 234, 232, 0.9), transparent 60%),
    var(--hx-cream);
}
.hx-topo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.55;
}
.hx-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.hx-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  background: var(--color-white);
  border: 1px solid rgba(0, 128, 128, 0.18);
  box-shadow: var(--hx-shadow-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--hx-teal-deep);
  margin-bottom: 26px;
}
.hx-pill__dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--hx-teal);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}
.hx-hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
}
.hx-hero h1 em {
  font-style: italic;
  color: var(--hx-teal);
}
.hx-hero__sub {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--hx-ink-soft);
  max-width: 560px;
  margin: 0 0 32px;
}
.hx-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.hx-hero__note {
  margin: 16px 0 0;
  font-size: 0.92rem;
  color: var(--hx-ink-soft);
}
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }

/* Hero visual: laptop frame + phone + floating chips */
.hx-stage {
  position: relative;
  padding: 24px 0 72px 0;
}
.hx-frame {
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--hx-shadow);
  border: 1px solid rgba(20, 32, 31, 0.08);
  overflow: hidden;
  transform: perspective(1600px) rotateY(-6deg) rotateX(2deg);
  transform-origin: 60% 50%;
}
.hx-frame__bar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(20, 32, 31, 0.06);
}
.hx-frame__bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--color-teal-light); }
.hx-frame video, .hx-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--hx-mint);
}
.hx-phone {
  position: absolute;
  right: -10px;
  bottom: 0;
  width: 26%;
  min-width: 150px;
  aspect-ratio: 9 / 19.2;
  border-radius: 34px;
  background: #0f1716;
  padding: 9px;
  box-shadow: 0 30px 70px rgba(13, 61, 61, 0.28);
  transform: rotate(4deg);
}
.hx-phone::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: 36%;
  height: 20px;
  transform: translateX(-50%);
  background: #0f1716;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.hx-phone video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 26px;
  background: var(--hx-teal-ink);
}
.hx-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--hx-shadow-sm);
  border: 1px solid rgba(20, 32, 31, 0.06);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--hx-ink);
  white-space: nowrap;
  animation: hx-float 6s ease-in-out infinite;
}
.hx-chip small { display: block; font-weight: 500; color: var(--hx-ink-soft); font-size: 0.75rem; }
.hx-chip__pin {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--hx-mint);
  color: var(--hx-teal);
  flex-shrink: 0;
}
.hx-chip__pin svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hx-chip--a { left: -22px; top: 12%; animation-delay: -1s; }
.hx-chip--b { left: 6%; bottom: 10%; animation-delay: -3s; }
@keyframes hx-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===== Proof strip ===== */
.hx-proof {
  border-top: 1px solid rgba(20, 32, 31, 0.06);
  border-bottom: 1px solid rgba(20, 32, 31, 0.06);
  background: #fff;
  padding: 36px 0;
}
.hx-proof__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
}
.hx-stats { display: flex; gap: 36px; }
.hx-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1;
  color: var(--hx-ink);
}
.hx-stat span { font-size: 0.85rem; color: var(--hx-ink-soft); }
.hx-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.hx-marquee__track {
  display: flex;
  gap: 56px;
  align-items: center;
  width: max-content;
  animation: hx-marquee 32s linear infinite;
}
.hx-marquee:hover .hx-marquee__track { animation-play-state: paused; }
.hx-marquee__track img { height: 36px; width: auto; opacity: 0.8; filter: grayscale(1); transition: opacity 0.2s, filter 0.2s; }
.hx-marquee__track img:hover { opacity: 1; filter: none; }
@keyframes hx-marquee { to { transform: translateX(-50%); } }

/* ===== Audience switch + bento ===== */
.hx-switch {
  display: inline-flex;
  padding: 5px;
  border-radius: 999px;
  background: var(--hx-mint-soft);
  border: 1px solid rgba(0, 128, 128, 0.14);
  margin: 0 auto 44px;
}
.hx-switch button {
  border: 0;
  background: transparent;
  padding: 12px 26px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  color: var(--hx-teal-deep);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.hx-switch button[aria-selected="true"] {
  background: var(--hx-teal);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 128, 128, 0.3);
}
.hx-panel[hidden] { display: none; }
.hx-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.hx-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--hx-radius-xl);
  background: #fff;
  border: 1px solid rgba(20, 32, 31, 0.07);
  box-shadow: var(--hx-shadow-sm);
  display: flex;
  flex-direction: column;
}
.hx-tile--4 { grid-column: span 4; }
.hx-tile--3 { grid-column: span 3; }
.hx-tile--2 { grid-column: span 2; }
.hx-tile__media {
  background: var(--hx-mint);
  border-bottom: 1px solid rgba(20, 32, 31, 0.06);
}
.hx-tile__media video, .hx-tile__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
}
.hx-tile--2 .hx-tile__media video, .hx-tile--2 .hx-tile__media img { aspect-ratio: 4 / 3; }
.hx-tile__body { padding: 22px 24px 26px; }
.hx-tile__body h3 { font-size: 1.2rem; margin: 0 0 6px; }
.hx-tile__body p { margin: 0; font-size: 0.98rem; }
.hx-tile--ink {
  background: var(--hx-teal-ink);
  color: #fff;
  justify-content: flex-end;
  padding: 28px;
  background-image:
    radial-gradient(400px 220px at 100% 0%, rgba(0, 128, 128, 0.55), transparent 65%);
}
.hx-tile--ink h3 { color: #fff; font-size: 1.35rem; margin: 0 0 10px; }
.hx-tile--ink p { color: rgba(255, 255, 255, 0.82); margin: 0 0 18px; }
.hx-tile--ink ul { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.hx-tile--ink li { display: flex; gap: 10px; align-items: flex-start; color: #fff; font-weight: 500; font-size: 0.95rem; }
.hx-tile--ink li svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; stroke: var(--color-teal-light); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hx-tile--ink .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.hx-tile--ink .btn-outline:hover { background: #fff; color: var(--hx-teal-ink); border-color: #fff; }
.hx-price { font-family: var(--font-heading); font-size: 2rem; color: #fff; line-height: 1; }
.hx-price small { font-family: var(--font-body); font-size: 0.9rem; color: rgba(255, 255, 255, 0.75); }

/* ===== Sticky steps ===== */
.hx-steps { background: var(--hx-cream); }
.hx-steps__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}
.hx-steps__sticky {
  position: sticky;
  top: 96px;
}
.hx-steps__list { list-style: none; margin: 0; padding: 0; }
.hx-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: 26px 0;
  border-top: 1px solid rgba(20, 32, 31, 0.1);
  opacity: 0.84; /* dimmed, but still readable: below about 0.8 the text fails the contrast minimum */
  transition: opacity 0.35s;
}
.hx-step:last-child { border-bottom: 1px solid rgba(20, 32, 31, 0.1); }
.hx-step.is-active { opacity: 1; }
.hx-step__num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--hx-teal);
}
.hx-step h3 { font-size: 1.35rem; margin: 2px 0 6px; }
.hx-step p { margin: 0; }
.hx-steps__frame { border-radius: var(--hx-radius-xl); overflow: hidden; box-shadow: var(--hx-shadow); background: #fff; border: 1px solid rgba(20, 32, 31, 0.08); }
.hx-steps__frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.hx-steps__caption {
  margin: 16px 4px 0;
  font-size: 0.92rem;
  color: var(--hx-ink-soft);
}

/* ===== Money band ===== */
.hx-money {
  background: var(--hx-teal-ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hx-money::after {
  content: "";
  position: absolute;
  inset: auto -10% -60% -10%;
  height: 70%;
  background: radial-gradient(closest-side, rgba(0, 128, 128, 0.55), transparent);
  pointer-events: none;
}
.hx-money .hx-eyebrow { color: var(--color-teal-light); }
.hx-money .hx-eyebrow::before { background: var(--color-teal-light); }
.hx-money h2 { color: #fff; }
.hx-money .hx-lead { color: rgba(255, 255, 255, 0.8); }
.hx-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
}
.hx-flow__item {
  padding: 26px 26px 28px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.hx-flow__item span {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--hx-teal);
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
}
.hx-flow__item h3 { color: #fff; font-size: 1.15rem; margin: 0 0 8px; }
.hx-flow__item p { color: rgba(255, 255, 255, 0.78); margin: 0; font-size: 0.97rem; }
.hx-money__fine { margin: 28px 0 0; font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); }
.hx-money__fine a { color: #fff; text-decoration: underline; }

/* ===== Quotes ===== */
.hx-quotes { background: #fff; }
.hx-quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hx-quote {
  position: relative;
  padding: 36px 28px 28px;
  border-radius: var(--hx-radius-xl);
  background: var(--hx-cream);
}
.hx-quote::before {
  content: "\201C";
  position: absolute;
  top: 6px;
  left: 22px;
  font-family: var(--font-heading);
  font-size: 5rem;
  line-height: 1;
  color: var(--hx-teal);
  opacity: 0.35;
}
.hx-quote p { font-family: var(--font-heading); font-size: 1.15rem; line-height: 1.5; color: var(--hx-ink); margin: 0 0 22px; }
.hx-quote strong { display: block; font-size: 0.95rem; }
.hx-quote span { font-size: 0.85rem; color: var(--hx-ink-soft); }

/* ===== Community ===== */
.hx-community { background: var(--hx-mint-soft); }
.hx-community__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.hx-card {
  padding: 30px 28px;
  border-radius: var(--hx-radius-xl);
  background: #fff;
  border: 1px solid rgba(20, 32, 31, 0.07);
  box-shadow: var(--hx-shadow-sm);
  display: flex;
  flex-direction: column;
}
.hx-card .hx-when {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hx-teal);
  margin-bottom: 12px;
}
.hx-card h3 { font-size: 1.3rem; margin: 0 0 8px; }
.hx-card p { flex: 1; margin: 0 0 18px; }
.hx-card--sea {
  background: var(--hx-teal-ink) url("../images/cruise/cabin-ocean-view.jpg") center/cover no-repeat;
  color: #fff;
  position: relative;
  isolation: isolate;
}
.hx-card--sea::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(13, 61, 61, 0.2), rgba(13, 61, 61, 0.88));
  z-index: -1;
}
.hx-card--sea h3, .hx-card--sea p { color: #fff; }
.hx-card--sea .hx-when { color: var(--color-teal-light); }

/* ===== Final CTA ===== */
.hx-cta {
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(162, 213, 212, 0.6), transparent 70%),
    var(--hx-cream);
}
.hx-cta h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 14px 0 14px; }
.hx-cta__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center; margin-top: 30px; }
.hx-cta .app-badges { display: flex; gap: 12px; }
.hx-cta .app-badges img { height: 44px; width: auto; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hx-hero__grid { grid-template-columns: 1fr; gap: 24px; }
  .hx-stage { padding: 12px 0 56px; }
  .hx-frame { transform: none; }
  .hx-chip--a { left: 0; top: -14px; }
  .hx-proof__inner { grid-template-columns: 1fr; gap: 24px; }
  .hx-stats { justify-content: space-between; }
  .hx-bento { grid-template-columns: repeat(2, 1fr); }
  .hx-tile--4, .hx-tile--3, .hx-tile--2 { grid-column: span 1; }
  .hx-tile--4 { grid-column: span 2; }
  .hx-steps__grid { grid-template-columns: 1fr; gap: 32px; }
  .hx-steps__sticky { position: static; order: -1; }
  .hx-step { opacity: 1; }
  .hx-flow, .hx-quote-grid, .hx-community__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hx-section { padding: 72px 0; }
  .hx-hero { padding-top: 48px; }
  .hx-bento { grid-template-columns: 1fr; }
  .hx-tile--4 { grid-column: span 1; }
  .hx-phone { width: 34%; right: -6px; }
  .hx-chip--b { display: none; }
  .hx-stats { flex-wrap: wrap; gap: 20px; }
  .hx-stat strong { font-size: 1.6rem; }
}

/* ===== Less motion ===== */
@media (prefers-reduced-motion: reduce) {
  .hx-reveal { opacity: 1; transform: none; transition: none; }
  .hx-chip { animation: none; }
  .hx-marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .hx-marquee { mask-image: none; -webkit-mask-image: none; }
  .hx-frame { transform: none; }
  .hx-step { opacity: 1; }
}

/* ===== Bento refinements ===== */
.hx-tile--6 { grid-column: span 6; flex-direction: row; align-items: stretch; }
.hx-tile--6 .hx-tile__media { flex: 0 0 58%; border-bottom: 0; border-right: 1px solid rgba(20, 32, 31, 0.06); }
.hx-tile--6 .hx-tile__media video, .hx-tile--6 .hx-tile__media img { height: 100%; aspect-ratio: auto; }
.hx-tile--6 .hx-tile__body { display: flex; flex-direction: column; justify-content: center; padding: 36px 40px; }
.hx-tile--6 .hx-tile__body h3 { font-size: 1.6rem; margin: 12px 0 10px; }
.hx-tile--6 .hx-tile__body p { margin-bottom: 18px; }
.hx-tile--6 .hx-tile__body .btn { align-self: flex-start; }
.hx-tile--row { flex-direction: row; gap: 32px; align-items: center; }
.hx-tile--row > div { flex: 1; }
.hx-tile--row ul { margin-bottom: 18px; }
@media (min-width: 981px) {
  /* Small tiles fill the row height set by their bigger neighbour */
  .hx-tile__media--fill { flex: 1; min-height: 0; position: relative; }
  .hx-tile__media--fill video, .hx-tile__media--fill img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: top left; }
}
@media (max-width: 980px) {
  .hx-tile--6 { grid-column: span 2; flex-direction: column; }
  .hx-tile--6 .hx-tile__media { flex: none; border-right: 0; border-bottom: 1px solid rgba(20, 32, 31, 0.06); }
  .hx-tile--6 .hx-tile__media video, .hx-tile--6 .hx-tile__media img { aspect-ratio: 16 / 10; height: auto; }
  .hx-tile--row { flex-direction: column; align-items: stretch; gap: 8px; }
}
@media (max-width: 560px) { .hx-tile--6 { grid-column: span 1; } }

/* ===== Polish ===== */
.hx-phone { overflow: hidden; }
.hx-phone video { position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px); }
@media (min-width: 981px) { .hx-tile--row { min-height: 330px; } }
@media (max-width: 560px) {
  .hx-pill { white-space: normal; border-radius: 18px; align-items: flex-start; line-height: 1.35; }
  .hx-pill__dot { flex-shrink: 0; margin-top: 1px; }
}

/* Phone frame: let the clip set the frame's height (an aspect-ratio box with an absolute video painted at the wrong size in Chrome) */
.hx-phone { aspect-ratio: auto; height: auto; }
.hx-phone video { position: static; inset: auto; width: 100%; height: auto; aspect-ratio: 9 / 19.2; }


/* =====================================================================
   Site header (shared by every page in this folder)
   ===================================================================== */
.site-header { display: none; }
.hx-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(245, 243, 238, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(20, 32, 31, 0.06);
  transition: box-shadow 0.25s, background 0.25s;
}
.hx-header.is-scrolled { background: rgba(255, 255, 255, 0.92); box-shadow: 0 8px 30px rgba(13, 61, 61, 0.08); }
.hx-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.hx-logo { display: inline-flex; align-items: center; gap: 10px; }
.hx-logo .icon { height: 34px; width: auto; }
.hx-logo .word { height: 30px; width: auto; }
.hx-menu { display: flex; justify-content: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.hx-menu > li { position: relative; }
.hx-menu a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--hx-ink);
  white-space: nowrap;
}
.hx-menu a svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0.7; }
.hx-menu a:hover { background: rgba(0, 128, 128, 0.08); color: var(--hx-teal-deep); }
.hx-menu a[aria-current="page"] { background: var(--hx-mint); color: var(--hx-teal-deep); }
.hx-sub {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(20, 32, 31, 0.06);
  box-shadow: var(--hx-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}
.hx-menu > li:hover > .hx-sub, .hx-menu > li:focus-within > .hx-sub { opacity: 1; visibility: visible; transform: none; }
.hx-sub a { display: block; border-radius: 10px; padding: 10px 12px; white-space: normal; }
.hx-sub a small { display: block; font-weight: 400; font-size: 0.82rem; color: var(--hx-ink-soft); }
.hx-actions { display: flex; align-items: center; gap: 6px; }
.hx-login { padding: 10px 14px; border-radius: 999px; font-weight: 600; color: var(--hx-ink); white-space: nowrap; }
.hx-login:hover { background: rgba(0, 128, 128, 0.08); color: var(--hx-teal-deep); }
.hx-burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.hx-burger span { display: block; width: 22px; height: 2px; background: var(--hx-ink); border-radius: 2px; }
.hx-sheet {
  position: fixed;
  inset: 0;
  z-index: 1200;
  padding: 16px 24px 40px;
  overflow: auto;
  background: var(--hx-cream);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.22s, transform 0.22s, visibility 0.22s;
}
.hx-sheet.is-open { opacity: 1; visibility: visible; transform: none; }
.hx-sheet__top { display: flex; align-items: center; justify-content: space-between; height: 44px; margin-bottom: 20px; }
.hx-sheet__close {
  width: 44px; height: 44px; border: 0; border-radius: 12px; background: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--hx-shadow-sm);
}
.hx-sheet__close svg { width: 20px; height: 20px; stroke: var(--hx-ink); fill: none; stroke-width: 2.2; stroke-linecap: round; }
.hx-sheet h2 { font: 700 0.76rem/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--hx-teal); margin: 26px 0 8px; }
.hx-sheet__link { display: block; font-family: var(--font-heading); font-size: 1.6rem; color: var(--hx-ink); padding: 12px 0; border-bottom: 1px solid rgba(20, 32, 31, 0.08); }
.hx-sheet__link[aria-current="page"] { color: var(--hx-teal); }
.hx-sheet__cta { display: grid; gap: 12px; margin-top: 32px; }
.hx-sheet__cta .btn { justify-content: center; }
body.hx-locked { overflow: hidden; }
@media (max-width: 900px) {
  .hx-header__inner { grid-template-columns: auto auto; justify-content: space-between; height: 68px; gap: 12px; }
  .hx-header nav, .hx-login, .hx-actions > .btn { display: none; }
  .hx-burger { display: inline-flex; }
}

/* ===== Inner-page pieces ===== */
.hx-hero--inner h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.hx-hero__actions .app-badges { display: flex; gap: 10px; }
.hx-hero__actions .app-badges img { height: 48px; width: auto; display: block; }
.hx-stage--phone .hx-frame { margin-right: 20%; transform: perspective(1600px) rotateY(5deg) rotateX(2deg); transform-origin: 40% 50%; }
.hx-stage--phone .hx-phone { width: 36%; right: -2%; bottom: -6px; transform: rotate(0deg); }
.hx-stage--phone .hx-chip--a { left: -16px; top: 8%; }
.hx-stage--phone .hx-chip--b { left: 2%; bottom: 14%; }
.hx-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; margin: 0 auto; }
.hx-tags span { padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid rgba(0, 128, 128, 0.18); font-weight: 600; color: var(--hx-teal-deep); }
.hx-statrow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 16px 0 4px; }
.hx-statrow div { background: var(--hx-mint-soft); border-radius: 14px; padding: 12px 8px; text-align: center; }
.hx-statrow strong { display: block; font-family: var(--font-heading); font-size: 1.5rem; line-height: 1; color: var(--hx-ink); }
.hx-statrow span { font-size: 0.74rem; color: var(--hx-ink-soft); }
.hx-pricing .pricing-card { border-radius: var(--hx-radius-xl); text-align: left; }
.hx-pricing .pricing-grid { text-align: left; }
.hx-pricing .faq-list { max-width: 760px; margin-left: auto; margin-right: auto; text-align: left; }
.hx-section--tight .listing-card { margin-top: 0; }
@media (max-width: 980px) {
  .hx-stage--phone .hx-frame { margin-right: 14%; transform: none; }
}
@media (max-width: 560px) {
  .hx-statrow { grid-template-columns: repeat(3, 1fr); }
  .hx-stage--phone .hx-phone { width: 40%; }
  .hx-hero__actions .app-badges img { height: 44px; }
}

/* Split tile: the picture fills a fixed box, so a tall screenshot cannot stretch the tile */
@media (min-width: 981px) {
  .hx-tile--6 .hx-tile__media { position: relative; min-height: 400px; }
  .hx-tile--6 .hx-tile__media video, .hx-tile--6 .hx-tile__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
}
.hx-logo .icon { height: 38px; }
.hx-logo .word { height: 34px; }

/* ===== FAQ page ===== */
.hx-hero--text { padding-bottom: 72px; }
.hx-hero__center { position: relative; text-align: center; max-width: 820px; margin: 0 auto; }
.hx-hero__center .hx-hero__sub { margin-left: auto; margin-right: auto; }
.hx-hero--text h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); }
.hx-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.hx-jump a { padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid rgba(0, 128, 128, 0.18); font-weight: 600; color: var(--hx-teal-deep); box-shadow: var(--hx-shadow-sm); }
.hx-jump a:hover { background: var(--hx-mint); }
.hx-faq { padding: 72px 0; border-top: 1px solid rgba(20, 32, 31, 0.06); scroll-margin-top: 90px; }
.hx-faq:nth-of-type(odd) { background: #fff; }
.hx-faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 56px; align-items: start; }
.hx-faq__side { position: sticky; top: 100px; }
.hx-faq__h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 10px 0 6px; }
.hx-faq__count { margin: 0; color: var(--hx-ink-soft); font-size: 0.95rem; }
.hx-faq .faq-list { max-width: none; margin: 0; }
.hx-faq .faq-item { border-radius: 18px; border: 1px solid rgba(20, 32, 31, 0.08); background: #fff; box-shadow: var(--hx-shadow-sm); }
.hx-faq:nth-of-type(odd) .faq-item { background: var(--hx-cream); box-shadow: none; }
.hx-faq .faq-item[open] { border-color: rgba(0, 128, 128, 0.35); }
.hx-faq .faq-item summary { font-size: 1.08rem; }
@media (max-width: 860px) {
  .hx-faq__grid { grid-template-columns: 1fr; gap: 20px; }
  .hx-faq__side { position: static; }
}

/* ===== Done-For-You page ===== */
.hx-card--pain h3 { margin-bottom: 14px; }
.hx-card--pain .check-list { margin-top: 0; }
.hx-flow--4 { grid-template-columns: repeat(4, 1fr); }
.hx-statrow--4 { grid-template-columns: repeat(4, 1fr); }
.hx-tile--3 .hx-tile__body { padding: 26px 28px 30px; }
.hx-packages .package-grid { margin-top: 0; }
.hx-packages .package-card { border-radius: var(--hx-radius-xl); box-shadow: var(--hx-shadow-sm); }
.hx-calc .calc { margin-top: 0; }
.hx-calc .calc__summary, .hx-calc .calc__options { border-radius: var(--hx-radius-xl); }
@media (max-width: 980px) { .hx-flow--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .hx-flow--4 { grid-template-columns: 1fr; } .hx-statrow--4 { grid-template-columns: repeat(2, 1fr); } }
/* Two side-by-side case-study tiles have no taller neighbour, so the picture box needs a floor */
@media (min-width: 981px) { .hx-tile--3 .hx-tile__media--fill { min-height: 300px; } }

/* ===== Coffee Chat page ===== */
.hx-stats--4 { justify-content: space-between; width: 100%; }
.hx-topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hx-card--topic h3 { margin: 14px 0 8px; font-size: 1.15rem; }
.hx-card--topic p { margin: 0; font-size: 0.97rem; }
.hx-topic__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--hx-mint); color: var(--hx-teal); display: inline-flex; align-items: center; justify-content: center; }
.hx-topic__icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hx-register { background: var(--hx-mint-soft); }
.hx-register__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hx-form-card { margin: 0; max-width: none; border-radius: var(--hx-radius-xl); }
.hx-form-card .form-card__intro { display: none; }
@media (max-width: 980px) { .hx-topics { grid-template-columns: 1fr 1fr; } .hx-register__grid { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 560px) { .hx-topics { grid-template-columns: 1fr; } .hx-stats--4 { flex-wrap: wrap; gap: 18px; } }

/* ===== Explore Map, legal pages, invite page ===== */
.hx-hero--compact { padding-bottom: 36px; }
.hx-hero--compact .hx-hero__sub { margin-bottom: 8px; }
.explore-view-switch { padding-top: 8px; }
.explore-view-btn { font-size: 0.9rem; padding: 10px 22px; }
.explore-view-btn.is-active { background: var(--hx-teal); }
#explore-map { border-radius: var(--hx-radius-xl); overflow: hidden; box-shadow: var(--hx-shadow-sm); }
.explore-creator-cta { margin-bottom: 8px; }
.hx-quad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hx-quad .hx-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.hx-quad .hx-card p { margin: 0; font-size: 0.96rem; }
.hx-itin { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; background: #fff; border-radius: var(--hx-radius-xl); padding: 48px; box-shadow: var(--hx-shadow-sm); border: 1px solid rgba(20, 32, 31, 0.07); }
.hx-itin__logo { display: flex; align-items: center; justify-content: center; background: var(--hx-cream); border-radius: 22px; padding: 40px; }
.hx-itin__logo img { max-width: 100%; max-height: 90px; }
.hx-legal { padding: 24px 0 96px; }
.hx-legal__grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 2fr); gap: 56px; align-items: start; }
.hx-legal__toc { position: sticky; top: 100px; padding: 20px 22px; border-radius: 20px; background: #fff; border: 1px solid rgba(20, 32, 31, 0.07); box-shadow: var(--hx-shadow-sm); }
.hx-legal__toc-title { font: 700 0.76rem/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--hx-teal); margin: 0 0 12px; }
.hx-legal__toc ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 0.93rem; }
.hx-legal__toc a { color: var(--hx-ink); }
/* links inside the legal text must not rely on color alone */
.hx-legal__body a { text-decoration: underline; text-underline-offset: 2px; }
.hx-legal__toc a:hover { color: var(--hx-teal); }
.hx-legal__body { max-width: 760px; }
.hx-legal__body h2 { font-size: 1.5rem; margin: 40px 0 12px; scroll-margin-top: 100px; }
.hx-legal__body h2:first-child { margin-top: 0; }
.hx-legal__body p, .hx-legal__body li { line-height: 1.7; }
.hx-legal__body ul { padding-left: 22px; }
.referral-note { margin: 4px 0 24px; }
@media (max-width: 980px) { .hx-quad { grid-template-columns: 1fr 1fr; } .hx-itin { grid-template-columns: 1fr; padding: 28px; gap: 24px; } .hx-legal__grid { grid-template-columns: 1fr; gap: 24px; } .hx-legal__toc { position: static; } }
@media (max-width: 560px) { .hx-quad { grid-template-columns: 1fr; } .hx-community__grid[style] { grid-template-columns: 1fr !important; } }

/* Fixes found in the click-through */
.hx-legal__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.93rem; }
.hx-legal__body ul { list-style: disc; }
.hx-legal__body ol { list-style: decimal; padding-left: 22px; }
.hx-legal__body li + li { margin-top: 6px; }
/* In list view the map is hidden, so the layer chips must sit in the page flow instead of floating over the list */
.explore-map-wrap:has(#explore-map[hidden]) .explore-toolbar { position: static; padding: 4px 24px 12px; }

/* Seven header items need less spacing just above the phone-menu breakpoint */
@media (max-width: 1060px) {
  .hx-header__inner { gap: 12px; padding-left: 16px; padding-right: 16px; }
  .hx-menu { gap: 0; }
  .hx-menu a { padding: 9px 10px; font-size: 0.94rem; }
  .hx-login { padding: 9px 10px; }
  .hx-logo .word { height: 30px; }
}

/* The button that pauses every looping video on the page (WCAG 2.2.2). Always reachable, never covers the header. */
.hx-loopbtn {
  position: fixed; left: 16px; bottom: 16px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(20, 32, 31, 0.22); background: #fff; color: #14201f;
  font: 600 0.85rem/1 var(--font-body); cursor: pointer;
  box-shadow: 0 6px 18px rgba(20, 32, 31, 0.16);
}
.hx-loopbtn:hover { background: #f1f6f5; }
.hx-loopbtn:focus-visible { outline: 3px solid var(--hx-teal); outline-offset: 2px; }
.hx-loopbtn__icon { font-size: 0.7rem; letter-spacing: -1px; }

/* Legal pages: sub-headings and the fee table */
.hx-legal__body h3 { font-size: 1.15rem; margin: 28px 0 8px; scroll-margin-top: 100px; }
.hx-legal__body ul ul { margin-top: 6px; list-style: circle; }
.hx-legal__table { overflow-x: auto; margin: 16px 0; }
.hx-legal__table table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.hx-legal__table th, .hx-legal__table td { text-align: left; padding: 10px 12px; border: 1px solid rgba(20, 32, 31, 0.14); vertical-align: top; line-height: 1.5; }
.hx-legal__table thead th { background: #f1f6f5; }
