/*
 * The landing page.
 *
 * Built from the grammar of the app after the desktop redesign (#2541): a
 * tinted head band over a white body, raised white tiles and pills with a
 * hairline ring, Geist eyebrows, one filled accent button per surface, status
 * as a dot plus an 11 % tint. No serif, no gradients behind text, no stock
 * photo heroes. The product is the picture.
 *
 * Content is visible without JavaScript. Motion only adds a little travel to
 * things that are already there, and goes away under reduced motion.
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
}
svg.i {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.num {
  font-family: var(--font-sub);
  font-variant-numeric: tabular-nums;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 80px);
}

/* ── Type ─────────────────────────────────────────────────────────────── */

.eyebrow {
  font-family: var(--font-sub);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 14px;
}
h1,
h2,
h3 {
  margin: 0;
  color: var(--text-primary);
}
.h1 {
  font-size: clamp(40px, 6.4vw, 76px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(30px, 4.2vw, 50px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.lede {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--text-muted);
  margin: 18px 0 0;
  max-width: 640px;
  text-wrap: pretty;
}
.muted {
  color: var(--text-muted);
}
.faint {
  color: var(--text-faint);
}

.sec {
  padding: 112px 0;
}
.sec-alt {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-faint);
  border-bottom: 1px solid var(--border-faint);
}
.sec-head {
  max-width: 760px;
  margin: 0 0 56px;
}
.sec-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.sec-head.center .lede {
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 760px) {
  .sec {
    padding: 76px 0;
  }
  .sec-head {
    margin-bottom: 36px;
  }
}

/* ── Buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  border: 0;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.08s var(--ease-out-quint),
    background 0.18s,
    box-shadow 0.18s,
    opacity 0.18s;
}
.btn:active {
  transform: scale(0.97);
}
.btn:focus-visible,
.tab:focus-visible,
.seg button:focus-visible,
.chip-btn:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--accent-hover);
}
.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow:
    var(--shadow-sm),
    inset 0 0 0 1px var(--border-primary);
}
.btn-secondary:hover {
  background: var(--bg-secondary);
}
.btn-sm {
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13.5px;
}
.btn .i {
  width: 17px;
  height: 17px;
}
.btn-arrow .i {
  transition: transform 0.18s var(--ease-out-quint);
}
.btn-arrow:hover .i {
  transform: translateX(3px);
}

/* The app's white pill and badge */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-card);
  box-shadow:
    var(--shadow-sm),
    inset 0 0 0 1px var(--border-faint);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}
.pill .i {
  width: 14px;
  height: 14px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--bg-card);
  box-shadow:
    var(--shadow-sm),
    inset 0 0 0 1px var(--border-faint);
  font-family: var(--font-sub);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  flex: none;
}
.tile {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--bg-card);
  box-shadow:
    var(--shadow-sm),
    inset 0 0 0 1px var(--border-faint);
}
.tile .i {
  width: 21px;
  height: 21px;
}

/* ── Navigation ───────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: color-mix(in srgb, var(--bg-primary) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.scrolled {
  border-bottom-color: var(--border-faint);
}
.nav-in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img {
  height: 26px;
  width: auto;
}
.brand .logo-dark-bg {
  display: none;
}
/*
 * The "cloud" of the wordmark: lowercase italic MuseoModerno in a small round
 * badge. The badge inverts with the theme (var(--text-primary) on
 * var(--bg-primary)), so it is a white badge on the dark header and a dark badge
 * on the light one — contrast either way, and kept shorter than the logo.
 */
.brand-tag {
  font-family: "MuseoModerno", system-ui, sans-serif;
  font-style: italic;
  font-weight: 600;
  font-size: 13px;
  line-height: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  letter-spacing: 0;
  color: var(--bg-primary);
  background: var(--text-primary);
}
.nav-links {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition:
    color 0.15s,
    background 0.15s;
}
.nav-links a:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}
.nav-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}
.icon-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.icon-btn .i {
  width: 18px;
  height: 18px;
}
.theme-btn .i-moon {
  display: none;
}
.nav-burger {
  display: none;
}
.nav .lang-btn {
  border-color: transparent;
  height: 36px;
  color: var(--text-muted);
}
.nav .lang-btn:hover {
  border-color: transparent;
  background: var(--bg-hover);
  color: var(--text-primary);
}

.nav-drawer {
  display: none;
}
@media (max-width: 960px) {
  .nav-links,
  .nav-end .hide-m {
    display: none;
  }
  .nav-burger {
    display: grid;
  }
  .nav-drawer {
    display: block;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s var(--ease-drawer);
    border-top: 1px solid transparent;
  }
  .nav.open .nav-drawer {
    max-height: 420px;
    border-top-color: var(--border-faint);
  }
  .nav-drawer ul {
    list-style: none;
    margin: 0;
    padding: 10px 16px 18px;
  }
  .nav-drawer a:not(.btn) {
    display: block;
    padding: 12px 4px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--border-faint);
  }
  .nav-drawer .btn {
    width: 100%;
    margin-top: 14px;
  }
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  padding: 72px 0 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* A quiet grid that fades out: depth without decoration. */
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 720px;
  pointer-events: none;
  background-image:
    linear-gradient(var(--border-faint) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-faint) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
}
.hero > .wrap {
  position: relative;
}
.news {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 6px;
  margin-bottom: 28px;
  border-radius: 999px;
  background: var(--bg-card);
  text-decoration: none;
  box-shadow:
    var(--shadow-sm),
    inset 0 0 0 1px var(--border-faint);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: box-shadow 0.18s;
}
.news:hover {
  box-shadow:
    var(--shadow-md),
    inset 0 0 0 1px var(--border-primary);
}
.news-tag {
  font-family: var(--font-sub);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
}
.news .i {
  width: 15px;
  height: 15px;
  color: var(--text-faint);
}
.hero .h1 {
  max-width: 1100px;
  margin: 0 auto;
}
.hero .lede {
  margin: 24px auto 0;
  max-width: 700px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 36px;
}
.hero-from {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
}
.hero-from b {
  color: var(--text-primary);
  font-weight: 600;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}
.hero-trust .badge .i {
  width: 12px;
  height: 12px;
  color: var(--success);
}

/* The product shot */
.stage {
  position: relative;
  margin: 64px auto 0;
  max-width: min(1440px, 100%);
}
.window {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow:
    var(--shadow-modal),
    0 0 0 1px var(--border-faint);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-faint);
}
.window-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border-primary);
}
.window-url {
  margin: 0 auto;
  transform: translateX(-28px);
  font-family: var(--font-sub);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 3px 14px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--border-faint);
}
.window-url b {
  color: var(--text-primary);
  font-weight: 600;
}
.window picture {
  display: block;
}
.window img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  background: var(--bg-secondary);
}
.stage-fade {
  position: absolute;
  left: -24px;
  right: -24px;
  bottom: -1px;
  height: 140px;
  pointer-events: none;
  background: linear-gradient(transparent, var(--bg-primary));
}

/* Floating HTML cards on top of the shot: the app's own components */
.float {
  position: absolute;
  z-index: 2;
  text-align: left;
}
.float-presence {
  top: 13%;
  right: -28px;
}
.float-booking {
  bottom: 22%;
  left: -36px;
  width: 290px;
}
.float-cost {
  bottom: 30%;
  right: -20px;
  width: 250px;
}
@media (max-width: 1600px) {
  .float-presence {
    right: 12px;
  }
  .float-booking {
    left: 12px;
  }
  .float-cost {
    right: 12px;
  }
}
@media (max-width: 760px) {
  .float {
    display: none;
  }
  .stage {
    margin-top: 44px;
  }
  .window-bar {
    height: 30px;
  }
  .window-url {
    font-size: 10.5px;
  }
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: 14px;
  background: var(--bg-card);
  box-shadow:
    var(--shadow-popover),
    0 0 0 1px var(--border-faint);
  font-size: 13px;
  font-weight: 500;
}
.avatars {
  display: flex;
}
.avatars img,
.av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--bg-card);
}
.avatars img + img {
  margin-left: -8px;
}
.toast small {
  display: block;
  font-family: var(--font-sub);
  font-size: 11.5px;
  color: var(--text-faint);
  font-weight: 500;
}

/* Booking card, BookingCard.tsx */
.bcard {
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-secondary);
  box-shadow:
    var(--shadow-popover),
    0 0 0 1px var(--border-faint);
}
.bcard-band {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-faint);
  background: color-mix(in srgb, var(--success) 11%, var(--bg-card));
}
.bcard-band.pending {
  background: color-mix(in srgb, var(--warning) 11%, var(--bg-card));
}
.bcard-band.pending .dot {
  background: var(--warning);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-card);
  box-shadow: inset 0 0 0 1px var(--border-faint);
  font-family: var(--font-sub);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.chip .i {
  width: 11px;
  height: 11px;
}
.bcard-title {
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bcard-body {
  display: grid;
  gap: 8px;
  padding: 10px 12px 12px;
}
.field-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 8px;
}
.field-row.three {
  grid-template-columns: repeat(3, 1fr);
}
.flabel {
  font-family: var(--font-sub);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 3px;
}
.fbox {
  border-radius: 10px;
  background: var(--bg-card);
  box-shadow: inset 0 0 0 1px var(--border-faint);
  padding: 6px 10px;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fbox.route {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.fbox.route .i {
  width: 14px;
  height: 14px;
  color: var(--t-flight);
}
.cost-pill {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-tertiary);
  font-family: var(--font-sub);
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.cost-pill .i {
  width: 11px;
  height: 11px;
}

/* Cost card */
.ccard {
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow:
    var(--shadow-popover),
    0 0 0 1px var(--border-faint);
}
.ccard-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--tint);
}
.ccard-head .tile {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}
.ccard-head .tile .i {
  width: 16px;
  height: 16px;
  color: var(--t-hotel);
}
.ccard-head b {
  font-size: 13px;
  display: block;
  line-height: 1.25;
}
.ccard-head small {
  font-family: var(--font-sub);
  font-size: 11px;
  color: var(--text-muted);
}
.ccard-body {
  padding: 10px 12px 12px;
  display: grid;
  gap: 8px;
}
.owe {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
}
.owe .av {
  width: 22px;
  height: 22px;
}
.owe .i {
  width: 13px;
  height: 13px;
  color: var(--text-faint);
}
.owe .amt {
  margin-left: auto;
  font-family: var(--font-sub);
  font-weight: 600;
  color: var(--success);
  font-variant-numeric: tabular-nums;
}

/* Motion for the floats: they arrive one after another */
@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
.js .float {
  opacity: 0;
  animation: float-in 0.6s var(--ease-out-quint) forwards;
}
.js .float-presence {
  animation-delay: 0.7s;
}
.js .float-booking {
  animation-delay: 1s;
}
.js .float-cost {
  animation-delay: 1.3s;
}
.js .float > * {
  animation: bob 6s ease-in-out infinite;
}
.js .float-booking > * {
  animation-delay: -2s;
}
.js .float-cost > * {
  animation-delay: -4s;
}

/* ── Proof ────────────────────────────────────────────────────────────── */

.proof {
  padding: 40px 0 8px;
}
.proof-grid {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--border-faint);
  box-shadow: 0 0 0 1px var(--border-faint);
}
.proof-item {
  background: var(--bg-primary);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.proof-item .tile {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}
.proof-item .tile .i {
  width: 18px;
  height: 18px;
}
.proof-item b {
  display: block;
  font-family: var(--font-sub);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.proof-item span {
  font-size: 13.5px;
  color: var(--text-muted);
}
.proof-note {
  margin: 12px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}
@media (max-width: 860px) {
  .proof-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 420px) {
  .proof-item {
    padding: 16px;
  }
  .proof-item .tile {
    display: none;
  }
  .proof-item b {
    font-size: 21px;
  }
}

/* ── Chaos to one plan ────────────────────────────────────────────────── */

.chaos {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 960px) {
  .chaos {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
.chaos-copy .lede {
  max-width: 520px;
}
.chaos-copy .btn {
  margin-top: 30px;
}
.chaos-result {
  margin: 18px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--success);
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.4s 0.5s,
    transform 0.4s 0.5s var(--ease-out-quint);
}
.chaos-stage.merged ~ * .chaos-result,
.merged-on .chaos-result {
  opacity: 1;
  transform: none;
}

.chaos-stage {
  position: relative;
  height: 460px;
  border-radius: 22px;
  background: var(--bg-secondary);
  box-shadow: inset 0 0 0 1px var(--border-faint);
  overflow: hidden;
}
.sec-alt .chaos-stage {
  background: var(--bg-primary);
}
.scrap {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: 14px;
  background: var(--bg-card);
  box-shadow:
    var(--shadow-md),
    0 0 0 1px var(--border-faint);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    transform 0.7s var(--ease-in-out-quint),
    opacity 0.5s 0.2s;
}
.scrap .tile {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}
.scrap .tile .i {
  width: 16px;
  height: 16px;
}
.scrap small {
  display: block;
  font-family: var(--font-sub);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-faint);
}
.scrap:nth-child(1) {
  left: 6%;
  top: 8%;
  transform: rotate(-4deg);
}
.scrap:nth-child(2) {
  right: 7%;
  top: 6%;
  transform: rotate(3deg);
}
.scrap:nth-child(3) {
  left: 30%;
  top: 30%;
  transform: rotate(2deg);
}
.scrap:nth-child(4) {
  left: 4%;
  top: 52%;
  transform: rotate(5deg);
}
.scrap:nth-child(5) {
  right: 5%;
  top: 40%;
  transform: rotate(-3deg);
}
.scrap:nth-child(6) {
  left: 20%;
  bottom: 8%;
  transform: rotate(-5deg);
}
.scrap:nth-child(7) {
  right: 10%;
  bottom: 12%;
  transform: rotate(4deg);
}
.chaos-stage.merged .scrap {
  transform: translate(var(--tx, 0), var(--ty, 0)) scale(0.6) rotate(0);
  opacity: 0;
}

.dayplan {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(360px, 88%);
  transform: translate(-50%, -46%) scale(0.94);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.6s 0.35s var(--ease-out-quint),
    opacity 0.4s 0.35s;
}
.chaos-stage.merged .dayplan {
  transform: translate(-50%, -50%);
  opacity: 1;
  pointer-events: auto;
}

/* Day card, DayPlanSidebar + planParts */
.daycard {
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px var(--border-faint);
}
.day-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  padding: 10px 10px 10px 10px;
  background: var(--tint-strong);
}
.day-tile {
  grid-row: span 2;
  width: 36px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  padding: 6px 0 5px;
  font-family: var(--font-sub);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.day-tile hr {
  width: 60%;
  margin: 3px 0;
  border: 0;
  border-top: 1px solid currentColor;
  opacity: 0.25;
}
.day-title {
  font-size: 13.5px;
  font-weight: 700;
  align-self: end;
}
.day-title small {
  font-family: var(--font-sub);
  font-weight: 500;
  font-size: 11px;
  color: var(--text-faint);
  margin-left: 6px;
}
.day-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.day-pills .pill {
  font-size: 11.5px;
  padding: 3px 9px;
}
.day-pills .pill .i {
  width: 12px;
  height: 12px;
}
.day-body {
  padding: 6px;
  border-top: 1px solid var(--border-faint);
}
.prow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 12px;
}
.prow + .prow {
  margin-top: 2px;
}
.pav {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  flex: none;
}
.pav .i {
  width: 15px;
  height: 15px;
}
.prow b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.prow .badges {
  display: flex;
  gap: 5px;
  margin-top: 3px;
  flex-wrap: wrap;
}
.prow .badge {
  height: 19px;
  font-size: 10.5px;
  padding: 0 7px;
}
.prow .badge .i {
  width: 10px;
  height: 10px;
}
.badge.ok {
  color: var(--success);
}

/* ── Tour (tabs) ──────────────────────────────────────────────────────── */

.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 4px;
  border-radius: 14px;
  background: var(--bg-tertiary);
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 40px;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.18s,
    color 0.18s,
    box-shadow 0.18s;
}
.tab .i {
  width: 16px;
  height: 16px;
}
.tab:hover {
  color: var(--text-primary);
}
.tab[aria-selected="true"] {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 760px) {
  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-left: -16px;
    margin-right: -16px;
    border-radius: 0;
    width: auto;
    padding: 4px 16px;
    scroll-snap-type: x mandatory;
  }
  .tabs::-webkit-scrollbar {
    display: none;
  }
  .tab {
    flex: none;
    scroll-snap-align: start;
  }
}

.panel {
  display: grid;
  grid-template-columns: minmax(300px, 380px) 1fr;
  gap: clamp(32px, 4vw, 72px);
  align-items: center;
}
.panel[hidden] {
  display: none;
}
.panel-copy .h3 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.panel-copy p {
  margin: 12px 0 0;
  color: var(--text-muted);
}
.ticks {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.ticks li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
}
.ticks .i {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--success);
}
.panel-shot {
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px var(--border-faint);
}
.panel-shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
}
.js .panel:not([hidden]) .panel-shot {
  animation: shot-in 0.5s var(--ease-out-quint);
}
@keyframes shot-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.panel-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-faint);
}
@media (max-width: 960px) {
  .panel {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ── Compare ──────────────────────────────────────────────────────────── */

.calc {
  border-radius: 22px;
  background: var(--bg-card);
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px var(--border-faint);
  overflow: hidden;
}
.calc-head {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 24px;
  background: var(--tint);
}
.calc-head .h3 {
  flex: 1 1 260px;
}
.seg {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 12px;
  background: var(--bg-tertiary);
}
.seg button {
  height: 36px;
  min-width: 44px;
  padding: 0 12px;
  border-radius: 9px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sub);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s,
    box-shadow 0.15s;
}
.seg button[aria-pressed="true"] {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}
.calc-body {
  padding: 24px;
  display: grid;
  gap: 18px;
}
.bar-row {
  display: grid;
  grid-template-columns: 200px 1fr 120px;
  gap: 16px;
  align-items: center;
}
.bar-name b {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
}
.bar-name small {
  font-family: var(--font-sub);
  font-size: 12px;
  color: var(--text-faint);
  font-weight: 500;
}
.bar {
  height: 14px;
  border-radius: 999px;
  background: var(--bg-tertiary);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  border-radius: inherit;
  background: var(--text-faint);
  transition: width 0.7s var(--ease-out-quint);
}
.bar-row.us .bar i {
  background: var(--success);
}
.bar-val {
  text-align: right;
  font-family: var(--font-sub);
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.bar-row.us .bar-val {
  color: var(--success);
}
.calc-out {
  margin: 4px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--success) 11%, transparent);
  font-size: 15px;
  font-weight: 500;
}
.calc-out b {
  font-weight: 700;
}
@media (max-width: 680px) {
  .bar-row {
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
  }
  .bar {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .bar-val {
    font-size: 16px;
  }
}

.table-wrap {
  margin-top: 28px;
  border-radius: 16px;
  background: var(--bg-card);
  box-shadow: 0 0 0 1px var(--border-faint);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-primary) transparent;
}
/* On a phone the row names stay put while the providers slide past them. */
@media (max-width: 760px) {
  .ctable th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    width: 132px;
    min-width: 132px;
    background: var(--bg-card);
    box-shadow: 1px 0 0 var(--border-faint);
  }
  .ctable thead th:first-child {
    background: var(--bg-tertiary);
  }
}
.ctable {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
  font-size: 13.5px;
}
.ctable th,
.ctable td {
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--border-faint);
}
.ctable thead th {
  border-top: 0;
  background: var(--bg-tertiary);
  font-family: var(--font-sub);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.ctable tbody th {
  font-weight: 600;
  color: var(--text-secondary);
  width: 170px;
}
.ctable .us {
  background: color-mix(in srgb, var(--success) 7%, transparent);
  font-weight: 600;
}
.ctable thead .us {
  color: var(--text-primary);
  background: color-mix(in srgb, var(--success) 14%, var(--bg-tertiary));
}
.yes,
.no {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.yes .i,
.no .i {
  width: 15px;
  height: 15px;
}
.yes {
  color: var(--success);
}
.no {
  color: var(--text-faint);
}
.sources {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
}
.sources a {
  color: var(--text-muted);
}

/* ── Ownership (the one dark band) ────────────────────────────────────── */

.own {
  background: #0c0c0f;
  color: #f4f4f5;
}
.own .eyebrow {
  color: #a1a1aa;
}
.own .h2 {
  color: #fff;
}
.own .lede {
  color: #a1a1aa;
}
.own-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 960px) {
  .own-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .own-grid {
    grid-template-columns: 1fr;
  }
}
.ocard {
  padding: 24px;
  border-radius: 18px;
  background: #131316;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.ocard .tile {
  background: #1c1c21;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: #f4f4f5;
}
.ocard b {
  display: block;
  margin-top: 18px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}
.ocard p {
  margin: 8px 0 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: #a1a1aa;
}
.ocard code {
  font-family: var(--font-sub);
  font-size: 13px;
  color: #e4e4e7;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 6px;
}

/* ── Pricing ──────────────────────────────────────────────────────────── */

.cycle {
  display: flex;
  justify-content: center;
  margin: -20px 0 40px;
}
.cycle .seg button {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  padding: 0 16px;
}
.cycle .seg button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cycle .save-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--success) 14%, var(--bg-card));
  color: var(--success);
  font-family: var(--font-sub);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: stretch;
}
@media (max-width: 1140px) {
  .plans {
    grid-template-columns: repeat(2, 1fr);
    max-width: 820px;
    margin: 0 auto;
  }
}
@media (max-width: 680px) {
  .plans {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}
.quota li.off b {
  color: var(--text-faint);
}
.quota li.off {
  color: var(--text-muted);
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  background: var(--bg-card);
  box-shadow: 0 0 0 1px var(--border-faint);
  overflow: hidden;
}
.plan.featured {
  box-shadow:
    var(--shadow-lg),
    0 0 0 2px var(--text-primary);
}
.plan-head {
  padding: 22px 24px 20px;
  background: var(--tint);
}
.plan.featured .plan-head {
  background: var(--tint-strong);
}
.plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.plan-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.plan-flag {
  font-family: var(--font-sub);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
}
.plan-for {
  margin: 4px 0 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-muted);
  min-height: 40px;
}
@media (max-width: 680px) {
  .plan-for {
    min-height: 0;
  }
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 18px;
}
.plan-price b {
  font-family: var(--font);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.plan-price span {
  font-size: 14px;
  color: var(--text-muted);
}
.plan-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  min-height: 24px;
}
.plan-sub .badge.save {
  color: var(--success);
}
.plan-sub .eq {
  font-size: 13px;
  color: var(--text-muted);
}
.plan-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
.quota {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.quota li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-secondary);
  box-shadow: inset 0 0 0 1px var(--border-faint);
  font-size: 14px;
}
.quota li .i {
  width: 17px;
  height: 17px;
  color: var(--text-muted);
}
.quota li b {
  margin-left: auto;
  font-family: var(--font-sub);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.quota li.unl {
  background: color-mix(in srgb, var(--success) 9%, var(--bg-card));
}
.quota li.unl .i,
.quota li.unl b {
  color: var(--success);
}
.plan-all {
  font-size: 13.5px;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
}
.plan-all .i {
  width: 16px;
  height: 16px;
  color: var(--success);
  margin-top: 2px;
}
.plan .btn {
  width: 100%;
  margin-top: auto;
}
.vat {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-faint);
  text-align: center;
}

.included {
  margin-top: 56px;
  border-radius: 22px;
  background: var(--bg-card);
  box-shadow: 0 0 0 1px var(--border-faint);
  overflow: hidden;
}
.included-head {
  padding: 22px 28px;
  background: var(--tint);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.included-head p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--text-muted);
  max-width: 640px;
}
.included-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding: 28px;
}
@media (max-width: 1000px) {
  .included-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .included-grid {
    grid-template-columns: 1fr;
    padding: 22px;
  }
}
.included-grid h4 {
  margin: 0 0 12px;
  font-family: var(--font-sub);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.included-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}
.included-grid li {
  display: flex;
  gap: 9px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-secondary);
}
.included-grid li .i {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: var(--success);
}

.selfhost {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 20px 24px;
  border-radius: 18px;
  background: var(--bg-secondary);
  box-shadow: inset 0 0 0 1px var(--border-faint);
}
.selfhost div {
  flex: 1 1 380px;
}
.selfhost b {
  font-size: 15px;
}
.selfhost p {
  margin: 3px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* ── Risk reversal ────────────────────────────────────────────────────── */

.safe {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 16px;
}
@media (max-width: 960px) {
  .safe {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .safe {
    grid-template-columns: 1fr;
  }
}
.safe div {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 16px;
  background: var(--bg-card);
  box-shadow: 0 0 0 1px var(--border-faint);
}
.safe .tile {
  display: grid;
  width: 36px;
  height: 36px;
  border-radius: 11px;
}
.safe .tile .i {
  width: 17px;
  height: 17px;
  color: var(--success);
}
.safe b {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.safe span {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── FAQ ──────────────────────────────────────────────────────────────── */

.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}
.faq details {
  border-radius: 16px;
  background: var(--bg-card);
  box-shadow: 0 0 0 1px var(--border-faint);
  transition: box-shadow 0.2s;
}
.faq details[open] {
  box-shadow:
    var(--shadow-md),
    0 0 0 1px var(--border-primary);
}
.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .i {
  margin-left: auto;
  width: 18px;
  height: 18px;
  color: var(--text-faint);
  transition: transform 0.25s var(--ease-out-quint);
}
.faq details[open] summary .i {
  transform: rotate(180deg);
}
.faq summary:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: -2px;
  border-radius: 16px;
}
.faq details p {
  margin: 0;
  padding: 0 20px 20px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ── Final call ───────────────────────────────────────────────────────── */

.final {
  text-align: center;
}
.final .h2 {
  max-width: 760px;
  margin: 0 auto;
}
.claim {
  display: flex;
  max-width: 560px;
  margin: 36px auto 0;
  padding: 6px;
  border-radius: 16px;
  background: var(--bg-card);
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px var(--border-primary);
}
.claim label {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  padding-left: 12px;
  font-size: 17px;
  cursor: text;
}
.claim input {
  flex: 1;
  min-width: 40px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-weight: 600;
  text-align: right;
  padding: 0;
}
.claim input::placeholder {
  color: var(--text-faint);
  font-weight: 500;
}
.claim .tld {
  color: var(--text-muted);
  font-weight: 500;
  padding-right: 10px;
  white-space: nowrap;
}
.claim:focus-within {
  box-shadow:
    var(--shadow-lg),
    0 0 0 2px var(--text-primary);
}
.final-note {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--text-muted);
}
@media (max-width: 520px) {
  .claim {
    flex-direction: column;
    gap: 6px;
  }
  .claim label {
    padding: 10px 6px 4px 12px;
  }
  .claim .btn {
    width: 100%;
  }
}

/* ── Footer ───────────────────────────────────────────────────────────── */

.foot {
  padding: 56px 0 40px;
  border-top: 1px solid var(--border-faint);
  background: var(--bg-secondary);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 860px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.foot p {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--text-muted);
  max-width: 320px;
}
.foot h4 {
  margin: 4px 0 12px;
  font-family: var(--font-sub);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.foot ul a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
}
.foot ul a:hover {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
/*
 * Cancelling and withdrawing are functions the law wants easy to find and
 * highlighted (§ 312k Abs. 2, § 356a Abs. 1 BGB), so they are buttons, not one
 * more line among the legal links.
 */
.foot ul a.foot-action {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1.5px var(--text-primary);
}
.foot ul a.foot-action:hover {
  text-decoration: none;
  background: var(--text-primary);
  color: var(--bg-card);
}
.foot-base {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-faint);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ── Sticky call on phones ────────────────────────────────────────────── */

.dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 150;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 16px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg-card) 90%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow:
    var(--shadow-popover),
    0 0 0 1px var(--border-faint);
  transform: translateY(140%);
  transition: transform 0.35s var(--ease-drawer);
}
.dock span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.3;
}
.dock span b {
  display: block;
  font-size: 15px;
  color: var(--text-primary);
}
.dock .btn {
  margin-left: auto;
  height: 42px;
}
@media (max-width: 760px) {
  .dock {
    display: flex;
  }
  .dock.show {
    transform: none;
  }
}

/* ── Reveal ───────────────────────────────────────────────────────────── */

.js .rv {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--ease-out-quint),
    transform 0.7s var(--ease-out-quint);
}
.js .rv.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .rv {
    opacity: 1;
    transform: none;
  }
}

/* Dark theme: swap the logo, keep the shots framed */
:root[data-theme="dark"] .brand .logo-light-bg {
  display: none;
}
:root[data-theme="dark"] .brand .logo-dark-bg {
  display: block;
}
:root[data-theme="dark"] .theme-btn .i-sun {
  display: none;
}
:root[data-theme="dark"] .theme-btn .i-moon {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .logo-light-bg {
    display: none;
  }
  :root:not([data-theme="light"]) .brand .logo-dark-bg {
    display: block;
  }
  :root:not([data-theme="light"]) .theme-btn .i-sun {
    display: none;
  }
  :root:not([data-theme="light"]) .theme-btn .i-moon {
    display: block;
  }
  :root:not([data-theme="light"]) .own {
    background: #08080a;
  }
}
:root[data-theme="dark"] .own {
  background: #08080a;
}

/* Phone: the language switcher stays, as a globe only */
.news-tag {
  white-space: nowrap;
}
@media (max-width: 960px) {
  .nav .lang-now,
  .nav .lang-btn > svg:last-child {
    display: none;
  }
  .nav .lang-btn {
    padding: 0 9px;
  }
}
@media (max-width: 420px) {
  .brand-tag {
    display: none;
  }
  .news {
    font-size: 12.5px;
    text-align: left;
  }
}
:root[data-theme="dark"] .own {
  border-top: 1px solid var(--border-faint);
  border-bottom: 1px solid var(--border-faint);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .own {
    border-top: 1px solid var(--border-faint);
    border-bottom: 1px solid var(--border-faint);
  }
}

.badge[hidden] {
  display: none;
}
.plan-sub .eq b {
  font-weight: 600;
  color: #e11d48;
}

/* "Most popular" sits on the top edge of the frame */
.plan.featured {
  overflow: visible;
}
.plan.featured .plan-head {
  border-radius: 20px 20px 0 0;
}
.plan.featured .plan-flag {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  padding: 5px 12px;
  white-space: nowrap;
  box-shadow: 0 0 0 4px var(--bg-secondary);
}
.plans {
  padding-top: 12px;
}
.quota li {
  white-space: nowrap;
  font-size: 13.5px;
  gap: 8px;
  padding: 10px 11px;
}

.cell-note {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-faint);
}

/* Pricing gets the room it needs */
.wrap-wide {
  max-width: 1680px;
}
.plans {
  gap: 18px;
}
@media (min-width: 1141px) {
  .plan-head {
    padding: 24px 26px 22px;
  }
  .plan-body {
    padding: 22px 26px 26px;
  }
}
.included {
  margin-top: 56px;
}

/* The line under the price never changes the card's height */
.plan-sub {
  flex-wrap: nowrap;
  height: 24px;
  min-height: 0;
  overflow: hidden;
}
.plan-sub .eq {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.plan-sub .badge {
  flex: none;
}

/* ── Pricing head: a place to go, right where people decide ───────────── */
#pricing {
  position: relative;
  overflow: hidden;
}
#pricing::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 640px;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 10, 12, 0.62) 0%, rgba(10, 10, 12, 0.38) 55%, rgba(10, 10, 12, 0.2) 100%),
    image-set(url("images/pricing-kyoto-960.webp") 1x, url("images/pricing-kyoto.webp") 2x) center 38% / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 100%);
}
@media (min-width: 1100px) {
  #pricing::before {
    background:
      linear-gradient(180deg, rgba(10, 10, 12, 0.62) 0%, rgba(10, 10, 12, 0.38) 55%, rgba(10, 10, 12, 0.2) 100%),
      url("images/pricing-kyoto.webp") center 38% / cover no-repeat;
  }
}
#pricing > .wrap {
  position: relative;
}
#pricing .sec-head .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}
#pricing .sec-head .h2 {
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}
#pricing .sec-head .lede {
  color: rgba(255, 255, 255, 0.82);
}
#pricing .cycle .seg {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
#pricing .cycle .seg button {
  color: rgba(255, 255, 255, 0.85);
}
#pricing .cycle .seg button[aria-pressed="true"] {
  background: #fff;
  color: #111827;
  box-shadow: var(--shadow-sm);
}
#pricing .cycle .save-tag {
  background: #dcfce7;
  color: #15803d;
}
#pricing .plan {
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px var(--border-faint);
}
#pricing .plan.featured {
  box-shadow:
    var(--shadow-lg),
    0 0 0 2px var(--text-primary);
}
#pricing .plan.featured .plan-flag {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0);
}

/* ── Open-source contribution ─────────────────────────────────────────── */

.support {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-secondary);
  box-shadow: inset 0 0 0 1px var(--border-faint);
  cursor: pointer;
  user-select: none;
  transition:
    background 0.25s,
    box-shadow 0.25s;
}
.support:hover {
  box-shadow: inset 0 0 0 1px var(--border-primary);
}
.support input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.support-text {
  position: relative;
  padding-left: 38px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.support-text b {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}
.support-text small {
  font-family: var(--font-sub);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.support-text b .i {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  padding: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--bg-card);
  box-shadow:
    var(--shadow-sm),
    inset 0 0 0 1px var(--border-faint);
  color: #e11d48;
  transition:
    background 0.25s,
    color 0.25s,
    transform 0.25s var(--ease-out-quint);
}
.switch {
  position: relative;
  flex: none;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: var(--border-primary);
  transition: background 0.2s;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease-out-quint);
}
.support input:focus-visible ~ .switch {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

.support.on {
  background: color-mix(in srgb, #e11d48 8%, var(--bg-card));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #e11d48 28%, transparent);
}
.support.on .switch {
  background: #e11d48;
}
.support.on .switch::after {
  transform: translateX(14px);
}
.support.on .support-text b .i {
  background: #e11d48;
  color: #fff;
  fill: #fff;
  animation: heart-pop 0.45s var(--ease-out-quint);
}
.support.on .support-text small {
  color: #be123c;
}
:root[data-theme="dark"] .support.on .support-text small {
  color: #fda4af;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .support.on .support-text small {
    color: #fda4af;
  }
}

@keyframes heart-pop {
  0% {
    transform: translateY(-50%) scale(1);
  }
  40% {
    transform: translateY(-50%) scale(1.25);
  }
  100% {
    transform: translateY(-50%) scale(1);
  }
}

/* Hearts that rise from the switch, see landing.js */
.support-burst {
  position: absolute;
  right: 22px;
  top: 6px;
  width: 10px;
  height: 10px;
  pointer-events: none;
  background: #e11d48;
  -webkit-mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.5-9.3C1 8 3.4 4 7.3 4c2 0 3.4 1 4.7 2.6C13.3 5 14.7 4 16.7 4 20.6 4 23 8 21.5 11.7 19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.5-9.3C1 8 3.4 4 7.3 4c2 0 3.4 1 4.7 2.6C13.3 5 14.7 4 16.7 4 20.6 4 23 8 21.5 11.7 19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  opacity: 0;
  animation: heart-rise 0.95s var(--ease-out-quint) var(--delay, 0ms) forwards;
}
@keyframes heart-rise {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.6);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx, 0), -46px) scale(1.1);
  }
}

.support-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 22px 0 0;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}
.support-note .i {
  width: 14px;
  height: 14px;
  color: #e11d48;
  flex: none;
}

/*
 * The comparison, tidied: equal columns, every value centred in the middle of
 * its cell, the row labels left where the eye starts. The TREK Cloud column is
 * one continuous highlighted strip from header to last row.
 */
.ctable {
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}
.ctable th,
.ctable td {
  padding: 16px 12px;
  text-align: center;
  vertical-align: middle;
  line-height: 1.45;
  text-wrap: balance;
}
.ctable thead th {
  padding-block: 18px;
  white-space: normal;
  line-height: 1.35;
}
.ctable thead th:first-child,
.ctable tbody th {
  width: 190px;
  text-align: left;
  padding-left: 18px;
}
.ctable tbody td {
  color: var(--text-secondary);
}
.ctable tbody tr:first-child td {
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.ctable .cell-note {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--text-faint);
}
.ctable .us {
  color: var(--text-primary);
}

/* Yes/no rows as icons only, centred; the words are in aria-label and title. */
.ctable tr.icon-row td {
  text-align: center;
}
.ctable tr.icon-row .yes,
.ctable tr.icon-row .no {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
.ctable tr.icon-row .yes {
  background: var(--success-soft);
  color: var(--success);
}
.ctable tr.icon-row .no {
  background: var(--bg-tertiary);
  color: var(--text-faint);
}
.ctable tr.icon-row .i {
  width: 15px;
  height: 15px;
  margin: 0;
}
/* On the green TREK Cloud strip a soft green bubble disappears; fill it. */
.ctable tr.icon-row .us .yes {
  background: var(--success);
  color: #fff;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--success) 40%, transparent);
}

/*
 * The TREK Cloud column: a quiet grey strip, slightly deeper in the header,
 * in TREK's neutral palette rather than a colour.
 */
.ctable .us,
.ctable tbody tr:first-child td.us {
  background: color-mix(in srgb, var(--text-primary) 5%, var(--bg-card));
  color: var(--text-primary);
}
.ctable thead .us {
  background: color-mix(in srgb, var(--text-primary) 10%, var(--bg-card));
  color: var(--text-primary);
  letter-spacing: 0.08em;
}
.ctable tr.icon-row .us .yes {
  box-shadow: none;
}
/* Titles on the table's own background; only the TREK Cloud strip is grey. */
.ctable thead th:not(.us) {
  background: var(--bg-card);
}
.ctable thead .us {
  background: color-mix(in srgb, var(--text-primary) 11%, var(--bg-card));
}

/* ── Orders closed: plans, comparison and order form locked (src/site-closed.ts) ──
   The server sends no price and no plan in their place, only these silhouettes:
   a striped apron over ghost cards, a stamp with a plane circling it and a
   luggage tag that says when. */
.soon-board {
  position: relative;
  display: grid;
  gap: 22px;
}
.soon-plans {
  align-items: stretch;
}
.soon-plan,
.soon-panel {
  position: relative;
  min-height: 430px;
  border-radius: 22px;
  background: var(--bg-card);
  box-shadow: 0 0 0 1px var(--border-faint);
  overflow: hidden;
  isolation: isolate;
}
.soon-plan.featured {
  box-shadow:
    var(--shadow-lg),
    0 0 0 2px var(--text-primary);
}
.soon-panel {
  min-height: 260px;
}
.soon-panel-tall {
  min-height: 340px;
}
/* The silhouette of a card: bars where name, price and allowances would be. */
.soon-ghost {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px 26px;
  filter: blur(1.5px);
}
.soon-ghost i {
  display: block;
  height: 14px;
  width: 62%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--bg-tertiary), var(--bg-selected), var(--bg-tertiary));
  background-size: 220% 100%;
  animation: soon-shimmer 2.6s ease-in-out infinite;
}
.soon-ghost i:nth-child(2) { width: 40%; height: 30px; animation-delay: 0.15s; }
.soon-ghost i:nth-child(3) { animation-delay: 0.3s; }
.soon-ghost i:nth-child(4) { width: 74%; animation-delay: 0.45s; }
.soon-ghost i:nth-child(5) { width: 54%; animation-delay: 0.6s; }
.soon-ghost i.wide { width: 86%; }
.soon-ghost i.short { width: 30%; margin-top: auto; height: 40px; border-radius: 12px; }
/* The striped apron over it, drifting slowly. */
.soon-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  background:
    radial-gradient(120% 70% at 50% 45%, color-mix(in srgb, var(--bg-card) 78%, transparent), transparent 70%),
    repeating-linear-gradient(
      -45deg,
      color-mix(in srgb, var(--text-primary) 7%, transparent) 0 14px,
      transparent 14px 28px
    );
  background-size: auto, 40px 40px;
  animation: soon-drift 9s linear infinite;
}
/* The stamp: a dashed ring that turns, and a plane flying its circuit. */
.soon-stamp {
  position: relative;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: var(--bg-card);
  box-shadow: var(--shadow-md), 0 0 0 6px color-mix(in srgb, var(--bg-card) 70%, transparent);
}
.soon-stamp::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 2px dashed color-mix(in srgb, var(--text-primary) 28%, transparent);
  animation: soon-turn 18s linear infinite;
}
.soon-stamp .i {
  width: 26px;
  height: 26px;
  color: var(--text-primary);
  animation: soon-orbit 4.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
/* The tag: a luggage tag, punched hole and all, hung slightly askew. */
.soon-tag {
  position: relative;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--text-primary);
  color: var(--bg-card);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(-4deg);
  box-shadow: var(--shadow-md);
  animation: soon-swing 3.6s ease-in-out infinite;
  transform-origin: 50% 50%;
}
.soon-note {
  display: grid;
  justify-items: center;
  gap: 6px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-muted);
}
.soon-note b,
.soon-note .h2 {
  color: var(--text-primary);
}
.soon-note b {
  font-size: 1.05rem;
}
.soon-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}
.soon-page {
  padding-top: 56px;
  padding-bottom: 72px;
}
.soon-page .soon-board {
  max-width: 720px;
  margin: 0 auto;
}
/* A small pulse where the hero's price was. */
.soon-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--warning) 60%, transparent);
  animation: soon-pulse 2s ease-out infinite;
  vertical-align: 1px;
}
/* On a wide screen each line of the note stays on one line. */
@media (min-width: 900px) {
  .soon-note b,
  .soon-note > span {
    white-space: nowrap;
  }
}
@keyframes soon-shimmer {
  0%, 100% { background-position: 100% 0; }
  50% { background-position: 0 0; }
}
@keyframes soon-drift {
  to { background-position: 0 0, 40px 0; }
}
@keyframes soon-turn {
  to { transform: rotate(360deg); }
}
@keyframes soon-orbit {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(5px, -4px) rotate(8deg); }
  50% { transform: translate(0, -7px) rotate(0deg); }
  75% { transform: translate(-5px, -4px) rotate(-8deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes soon-swing {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(-1deg); }
}
@keyframes soon-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--warning) 60%, transparent); }
  100% { box-shadow: 0 0 0 10px transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .soon-ghost i,
  .soon-cover,
  .soon-stamp::before,
  .soon-stamp .i,
  .soon-tag,
  .soon-dot {
    animation: none;
  }
}
