/* Ruvia website. One typeface, a flat deep-ink page, a light sky-blue accent used sparingly, and real
   screens in solid phone frames. Motion is gentle and switches off for reduced-motion users. */

@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #0a0d14;
  --ink-2: #10141d;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f4f6fa;
  --muted: #9aa3b4;
  --faint: #6b7385;
  --accent: #5bc8f5; /* light sky blue: the site's one accent */
  --accent-deep: #39b3e8;
  --on-accent: #04121c; /* text on the accent */
  --lilac: #b79bff;
  --green: #34d399;
  --wrap: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); letter-spacing: -0.035em; }
h3 { font-size: 1.2rem; letter-spacing: -0.015em; line-height: 1.3; }

.sprite { display: none; }
.ico { width: 1.1em; height: 1.1em; flex: none; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.lead { font-size: clamp(1.06rem, 1.6vw, 1.22rem); color: var(--muted); line-height: 1.6; max-width: 34em; }
.kicker { display: block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.kicker-biz { color: var(--lilac); }

.skip { position: absolute; left: -999px; top: 12px; background: var(--text); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
::selection { background: var(--accent); color: var(--on-accent); }
html { scrollbar-color: #2a303c var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font: inherit; font-size: 1rem; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s, border-color 0.25s, color 0.25s;
}
.btn .ico { transition: transform 0.25s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }
.btn-brand { background: var(--accent); color: var(--on-accent); }
.btn-brand:hover { background: var(--accent-deep); }
.btn-line { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn-line:hover { border-color: rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.04); }
.btn-sm { padding: 10px 16px; font-size: 0.94rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Header ---------- */
.bar { position: sticky; top: 0; z-index: 50; transition: background-color 0.3s, border-color 0.3s; border-bottom: 1px solid transparent; }
.bar.scrolled { background: rgba(10, 13, 20, 0.84); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); }
.bar-in { width: 100%; padding-inline: clamp(20px, 4vw, 64px); height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 1.15rem; letter-spacing: -0.02em; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-size: 0.95rem; transition: color 0.2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 12px; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
.menu-btn .ico { width: 22px; height: 22px; }
.menu { inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; padding: 24px 20px; background: var(--ink); color: var(--text); }
.menu nav { display: flex; flex-direction: column; gap: 4px; margin: 56px 0 28px; }
.menu nav a { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--line); }
.menu-close { position: absolute; right: 20px; top: 20px; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 12px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.menu-close .ico { width: 22px; height: 22px; }
.bar-cta, .actions-cell .btn, .area-out .btn { white-space: nowrap; }

/* Tablets: the links move into the menu (they'd wrap); "Get the app" stays in the bar. */
@media (max-width: 1000px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; margin-left: 12px; }
  .bar-cta { margin-left: auto; }
}

/* ---------- Phone frames: solid, in the screenshots' exact shape (1080 × 2400) ---------- */
.phone {
  --w: 300px;
  position: relative; width: var(--w); flex: none;
  padding: calc(var(--w) * 0.032);
  border-radius: calc(var(--w) * 0.16);
  background: linear-gradient(160deg, #2c3039, #121419 45%, #1d2027);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.09),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 50px 90px -30px rgba(0, 0, 0, 0.75),
    0 18px 40px -20px rgba(0, 0, 0, 0.6);
}
/* The side buttons */
.phone::before, .phone::after { content: ""; position: absolute; right: -2px; width: 3px; border-radius: 0 3px 3px 0; background: #2c3039; }
.phone::before { top: 22%; height: 9%; }
.phone::after { top: 35%; height: 6%; }
.screen { position: relative; aspect-ratio: 1080 / 2400; border-radius: calc(var(--w) * 0.13); overflow: hidden; background: #1a1d24; }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Several screens stacked: one shows at a time and they cross-fade */
.screen.stack img { opacity: 0; transform: scale(1.03); transition: opacity 0.7s var(--ease), transform 1.2s var(--ease); }
.screen.stack img.on { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 900px; height: 900px; right: -260px; top: -260px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(91, 200, 245, 0.16), transparent 70%);
}
.hero-biz::before { background: radial-gradient(closest-side, rgba(109, 63, 209, 0.26), transparent 70%); }
.hero.has-photo { margin-top: -73px; padding-top: 140px; }
.hero.has-photo::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(16, 9, 34, 0.94) 0%, rgba(16, 9, 34, 0.74) 46%, rgba(16, 9, 34, 0.38) 100%),
    linear-gradient(180deg, rgba(6, 9, 15, 0.5) 0%, rgba(6, 9, 15, 0) 30%, rgba(6, 9, 15, 0) 70%, var(--ink) 100%);
}
.hero.has-photo .lead { color: rgba(244, 246, 250, 0.84); }
.hero.has-photo h1 { font-size: clamp(2.8rem, 6.4vw, 5.6rem); line-height: 0.98; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero h1 { max-width: 11em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-biz h1 em { color: var(--lilac); }
.hero .lead { margin-top: 24px; }
.status { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; color: var(--muted); font-size: 0.92rem; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.16); }
.hero-phones { position: relative; height: 640px; }
.hero-phones .phone { position: absolute; }
.hero-phones .front { --w: 290px; right: 70px; top: 0; z-index: 2; animation: float 7s ease-in-out infinite; }
.hero-phones .back { --w: 250px; right: 300px; top: 70px; opacity: 0.5; transform: rotate(-6deg); }
/* Small laptops and big tablets in landscape: smaller phones, so they stay clear of the headline. */
@media (min-width: 1001px) and (max-width: 1240px) {
  .hero-phones { height: 560px; }
  .hero-phones .front { --w: 250px; right: 0; }
  .hero-phones .back { --w: 210px; right: 190px; top: 60px; }
}
@keyframes float { 50% { transform: translateY(-12px); } }

/* ---------- Places slider (home) ----------
   Edge to edge: one place fills the screen, its name in big type on the left, the places still to come
   as cards running off the right edge. Moving on, the next card opens out into the full-screen photo
   (site.js), the name's words rise from behind a line, and the remaining cards close up. */
.dest {
  --edge: clamp(20px, 4vw, 64px);
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: -73px; padding-top: 73px;
  height: max(660px, 100svh); max-height: 1100px;
  display: flex; flex-direction: column;
  color: #fff;
}
.dest-bgs { position: absolute; inset: 0; z-index: -1; background: var(--ink); }
.dest-bgs::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; /* over the photos */
  background:
    linear-gradient(90deg, rgba(6, 9, 15, 0.86) 0%, rgba(6, 9, 15, 0.55) 34%, rgba(6, 9, 15, 0.08) 68%),
    linear-gradient(0deg, rgba(10, 13, 20, 1) 0%, rgba(10, 13, 20, 0) 26%),
    linear-gradient(180deg, rgba(6, 9, 15, 0.6) 0%, rgba(6, 9, 15, 0) 18%);
}
.dest-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.dest-bg.on { opacity: 1; z-index: 1; }
.dest-bg.in { opacity: 1; z-index: 2; }
/* A slow drift on whichever photo is showing */
.dest-bg.on, .dest-bg.in { animation: dest-drift 12s var(--out) both; }
@keyframes dest-drift { from { transform: scale(1.12); } to { transform: scale(1.02); } }

.dest-in {
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: 40px minmax(0, 0.92fr) minmax(0, 1.08fr); column-gap: clamp(24px, 3vw, 56px); align-items: center;
  padding: 24px 0 16px var(--edge);
}

/* The rail: where you are in the five */
.dest-rail { align-self: stretch; display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 28px 0; }
.dest-count { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 0.8rem; letter-spacing: 0.16em; color: rgba(255, 255, 255, 0.66); font-variant-numeric: tabular-nums; }
.dest-count b { color: #fff; font-weight: 700; }
.dest-dots { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 28px; }
.dest-dots::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.3) 20%, rgba(255, 255, 255, 0.3) 80%, transparent); }
.dest-dots i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); transition: transform 0.5s var(--out), background-color 0.4s; }
.dest-dots i.on { background: var(--accent); transform: scale(1.9); }

/* The words. Each word of the name sits in a slot and rises into it; the rest follows. */
.dest-copy { container-type: inline-size; min-width: 0; }
.dest-slides { display: grid; }
.dest-slide { grid-area: 1 / 1; visibility: hidden; }
.dest-slide.on, .dest-slide.out { visibility: visible; }
.dest-name {
  margin: 0; font-size: clamp(2.6rem, 13.5cqi, 6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 0.9;
  text-transform: uppercase; text-wrap: balance;
}
.dest-name .w { display: inline-block; overflow: clip; overflow-clip-margin: 0.08em; padding-bottom: 0.04em; vertical-align: top; }
.dest-name .w > span { display: inline-block; transform: translateY(108%); transition: transform 0.45s cubic-bezier(0.7, 0, 0.84, 0); }
.dest-slide.on .dest-name .w > span { transform: none; transition: transform 1s var(--out) 0.32s; }
.dest-slide.on .dest-name .w:nth-child(2) > span { transition-delay: 0.4s; }
.dest-slide.on .dest-name .w:nth-child(3) > span { transition-delay: 0.48s; }
.dest-slide.out .dest-name .w > span { transform: translateY(-108%); }
.dest-blurb, .dest-meta, .dest-credit { opacity: 0; transform: translateY(14px); transition: opacity 0.3s, transform 0.3s; }
.dest-slide.on :is(.dest-blurb, .dest-meta, .dest-credit) { opacity: 1; transform: none; transition: opacity 0.8s var(--out) 0.55s, transform 0.9s var(--out) 0.55s; }
.dest-slide.on .dest-meta { transition-delay: 0.62s; }
.dest-slide.on .dest-credit { transition-delay: 0.68s; }
.dest-blurb { max-width: 32em; margin: 26px 0 16px; font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.6; color: rgba(255, 255, 255, 0.88); text-wrap: pretty; }
.dest-meta { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 0.95rem; font-weight: 500; color: #bde9fb; }
.dest-meta .ico { width: 18px; height: 18px; }
.dest-credit { font-size: 0.78rem; color: rgba(255, 255, 255, 0.6); margin: 0; }
.dest-credit a { color: rgba(255, 255, 255, 0.82); text-underline-offset: 2px; }
.dest-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn-glass {
  color: #fff; background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.2); }
.dest-status { display: inline-flex; align-items: center; gap: 10px; margin: 20px 0 0; font-size: 0.88rem; color: rgba(255, 255, 255, 0.72); }
.dest-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.2); }

/* The cards: the places still to come, next first, running off the right edge. The one showing is
   hidden; site.js orders the rest and slides them along. */
.dest-cards { display: flex; gap: clamp(14px, 1.4vw, 22px); align-items: flex-end; padding: 24px 0; min-width: 0; }
.dest-card {
  position: relative; flex: none; width: clamp(180px, 15vw, 260px); aspect-ratio: 440 / 620; padding: 0; border: 0;
  border-radius: 26px; overflow: hidden; background: #1a1d24; color: #fff; font: inherit; text-align: left; cursor: pointer;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.16);
  transition: translate 0.5s var(--out), box-shadow 0.5s;
}
.dest-card.next { width: clamp(210px, 17.5vw, 300px); }
.dest-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale 0.9s var(--out); }
.dest-card:hover { translate: 0 -8px; box-shadow: 0 40px 70px -24px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.3); }
.dest-card:hover img { scale: 1.06; }
.dest-card.on { display: none; }
.dest-card-text {
  position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; flex-direction: column; padding: 11px 14px; border-radius: 17px;
  background: rgba(14, 17, 24, 0.36); border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
}
.dest-card-name { font-weight: 650; font-size: 1.04rem; letter-spacing: -0.01em; line-height: 1.25; }
.dest-card-kind { font-size: 0.8rem; color: rgba(255, 255, 255, 0.8); }

/* The foot: the next place's name in outline on the left; the controls centred as one frosted pill
   (back, the timer, next). */
.dest-foot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center;
  padding: 0 var(--edge) 30px calc(var(--edge) + 40px + clamp(24px, 3vw, 56px));
}
.dest-next {
  justify-self: start; overflow: hidden; max-width: 100%;
  font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 800; text-transform: uppercase; letter-spacing: -0.035em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.34); white-space: nowrap; transition: opacity 0.35s, translate 0.6s var(--out);
}
.dest-next.swap { opacity: 0; translate: 24px 0; transition: opacity 0.2s, translate 0s 0.2s; }
.dest-nav {
  grid-column: 2; display: flex; align-items: center; gap: 14px; padding: 6px;
  border-radius: 999px; background: rgba(14, 17, 24, 0.42); border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
}
.dest-progress { width: clamp(96px, 9vw, 150px); height: 2px; background: rgba(255, 255, 255, 0.2); border-radius: 2px; overflow: hidden; }
.dest-progress i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.dest-progress i.run { animation: dest-run 7s linear forwards; }
@keyframes dest-run { to { transform: scaleX(1); } }
.dest-arrow {
  width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; flex: none;
  display: grid; place-items: center; cursor: pointer;
  color: #fff; background: rgba(255, 255, 255, 0.08); transition: background-color 0.2s, color 0.2s, scale 0.15s var(--out);
}
.dest-arrow:hover { background: rgba(255, 255, 255, 0.18); }
.dest-arrow:active { scale: 0.92; }
.dest-arrow-next { background: #fff; color: var(--ink); }
.dest-arrow-next:hover { background: var(--accent); color: var(--on-accent); }
.dest-arrow .ico { width: 20px; height: 20px; display: block; }
.dest-arrow .flip { transform: scaleX(-1); }

/* Tablets: the cards drop under the words and scroll sideways */
@media (max-width: 1000px) {
  .dest { height: auto; min-height: 100svh; max-height: none; }
  .dest-in { grid-template-columns: minmax(0, 1fr); align-content: end; row-gap: 22px; padding: 96px 0 12px var(--edge); }
  .dest-rail, .dest-next { display: none; }
  .dest-copy { padding-right: var(--edge); }
  .dest-cards { overflow-x: auto; padding: 8px var(--edge) 12px 0; scroll-snap-type: x mandatory; scrollbar-width: none; align-items: stretch; }
  .dest-cards::-webkit-scrollbar { display: none; }
  .dest-card, .dest-card.next { width: 156px; scroll-snap-align: start; border-radius: 20px; }
  .dest-foot { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); padding-left: var(--edge); }
}
@media (max-width: 720px) {
  .dest-bgs::after {
    background:
      linear-gradient(0deg, rgba(10, 13, 20, 1) 0%, rgba(6, 9, 15, 0.8) 45%, rgba(6, 9, 15, 0.2) 78%),
      linear-gradient(180deg, rgba(6, 9, 15, 0.6) 0%, rgba(6, 9, 15, 0) 22%);
  }
  .dest-name { font-size: clamp(2.4rem, 13cqi, 4rem); }
  .dest-blurb { margin-top: 16px; }
  .dest-actions .btn { flex: 1 1 auto; justify-content: center; }
  .dest-card, .dest-card.next { width: 128px; }
  .dest-card-text { left: 8px; right: 8px; bottom: 8px; padding: 8px 10px; border-radius: 12px; }
  .dest-card-name { font-size: 0.9rem; }
  .dest-card-kind { display: none; }
}

/* ---------- Towns strip ---------- */
.towns { overflow: hidden; padding: clamp(28px, 4vw, 52px) 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.towns-track { display: flex; width: max-content; animation: drift 45s linear infinite; }
.towns-track span { color: var(--text); font-size: clamp(2.2rem, 5.6vw, 4.8rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; white-space: nowrap; display: inline-flex; align-items: center; gap: clamp(28px, 3.4vw, 56px); padding-right: clamp(28px, 3.4vw, 56px); }
.towns-track span::after { content: ""; width: 0.22em; height: 0.22em; border-radius: 50%; background: var(--accent); }
@keyframes drift { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 120px 0; }
.section-tight { padding: 80px 0; }
.intro { max-width: 760px; margin-bottom: 56px; }
.intro .lead { margin-top: 20px; }

/* ---------- The tour: a full-height stage of place photos with the app on top, pinned beside the text ---------- */
.tour { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
.tour-stage { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.tour-bgs { position: absolute; inset: 0; z-index: -1; }
.tour-bgs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.1); transition: opacity 0.9s var(--ease), transform 8s var(--ease); }
.tour-bgs img.on { opacity: 1; transform: scale(1); }
.tour-bgs::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 13, 20, 0.1) 0%, rgba(10, 13, 20, 0.3) 72%, var(--ink) 100%),
    linear-gradient(180deg, var(--ink) 0%, rgba(10, 13, 20, 0) 16%, rgba(10, 13, 20, 0) 84%, var(--ink) 100%);
}
.tour-stage .phone { --w: clamp(230px, 34svh, 320px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 60px 90px -30px rgba(0, 0, 0, 0.85), 0 24px 40px -18px rgba(0, 0, 0, 0.6); }
.tour-text { padding: 0 clamp(20px, 4vw, 64px) 6vh clamp(32px, 5vw, 96px); }
.tour-intro { padding: 16vh 0 0; max-width: 34rem; }
.tour-intro h2 { font-size: clamp(2.6rem, 5vw, 4.6rem); letter-spacing: -0.04em; line-height: 1.02; text-wrap: balance; }
.tour-intro .lead { margin-top: 24px; }
.chapter { min-height: 58vh; max-width: 32rem; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; opacity: 0.28; transition: opacity 0.5s var(--ease); }
.chapter.active { opacity: 1; }
.chapter h3 { font-size: clamp(2rem, 3.4vw, 3.1rem); letter-spacing: -0.035em; line-height: 1.05; text-wrap: balance; }
.chapter p { color: var(--muted); margin: 20px 0 0; font-size: 1.1rem; }
.chapter ul { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.chapter li { display: flex; gap: 12px; font-size: 1rem; }
.chapter li .ico { color: var(--accent); margin-top: 4px; }
.chapter-place { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 32px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.95rem; font-weight: 600; color: var(--text); }
.chapter-place .ico { color: var(--accent); align-self: center; }
.chapter-place small { font-size: 0.78rem; font-weight: 400; color: var(--faint); }
.chapter-place a { color: inherit; text-underline-offset: 2px; }
.chapter-media { display: none; }

/* ---------- How it works: a full-bleed band over the pass ---------- */
.how { position: relative; isolation: isolate; overflow: hidden; padding: clamp(140px, 16vw, 220px) 0 clamp(100px, 11vw, 150px); }
.has-photo { position: relative; isolation: isolate; overflow: hidden; }
.backdrop { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.how::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--ink) 0%, rgba(10, 13, 20, 0.5) 26%, rgba(10, 13, 20, 0.62) 60%, var(--ink) 100%); }
.how h2 { font-size: clamp(2.6rem, 6.2vw, 5.6rem); letter-spacing: -0.04em; line-height: 1; max-width: 11em; text-wrap: balance; }
.how .steps { margin-top: clamp(56px, 8vw, 110px); }
.how .steps li { border-top-color: rgba(255, 255, 255, 0.3); }
.how .steps p { color: rgba(244, 246, 250, 0.8); }
/* Steps whose numbers carry the page: big, in the accent */
.steps.steps-big li::before { font-size: clamp(2.8rem, 4.6vw, 4.2rem); line-height: 1; letter-spacing: -0.04em; color: var(--accent); margin-bottom: 20px; }
.steps.steps-big h3 { font-size: 1.35rem; }
.section-tight .steps.steps-big li::before { color: var(--lilac); }
.photo-credit { position: absolute; right: clamp(16px, 3vw, 40px); bottom: 14px; margin: 0; font-size: 0.75rem; color: rgba(255, 255, 255, 0.6); }
.photo-credit a { color: inherit; text-underline-offset: 2px; }

/* ---------- Plain lists instead of card grids ---------- */
.rows { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.rows > div { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 46px 1fr; gap: 18px; }
.rows > div:nth-child(odd) { border-right: 1px solid var(--line); }
.rows > div:nth-child(even) { padding-left: 28px; }
.rows .ico { width: 46px; height: 46px; padding: 11px; border-radius: 13px; color: var(--accent); background: rgba(91, 200, 245, 0.1); }
.rows-biz .ico { color: var(--lilac); background: rgba(183, 155, 255, 0.12); }
.rows h3 { margin: 4px 0 6px; font-size: 1.25rem; }
.rows p { color: var(--muted); margin: 0; font-size: 0.98rem; }

.numbers { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 36px; }
.numbers div { padding: 18px 18px 18px 0; border-bottom: 1px solid var(--line); }
.numbers b { display: block; font-size: 1.45rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.numbers span { color: var(--muted); font-size: 0.92rem; }

/* ---------- Split: text and phones side by side ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-media { display: flex; justify-content: center; gap: 24px; }
.split-media .phone { --w: 250px; }
.split-media .phone:nth-child(2) { margin-top: 70px; }

/* ---------- Business band ---------- */
.band { background: linear-gradient(180deg, #170e2d, #0d0a18); border-block: 1px solid rgba(183, 155, 255, 0.14); }
.band .lead { margin-top: 20px; }
.lockup { display: flex; align-items: center; gap: 12px; margin: 0 0 26px; font-weight: 600; font-size: 1.05rem; color: var(--lilac); }
.lockup img { width: 44px; height: 44px; border-radius: 11px; }
.band-home { padding: clamp(100px, 12vw, 160px) 0; overflow: hidden; }
.band-home h2 { font-size: clamp(2.6rem, 5.4vw, 4.8rem); letter-spacing: -0.04em; line-height: 1.02; text-wrap: balance; }
.band-home .split-media .phone { --w: clamp(220px, 21vw, 300px); }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-2); border-radius: 24px; overflow: hidden; }
.plan { padding: 40px; }
.plan + .plan { border-left: 1px solid var(--line-2); background: rgba(183, 155, 255, 0.05); }
.plan h3 { display: flex; align-items: center; gap: 12px; }
.plan .save { font-size: 0.78rem; font-weight: 600; color: var(--lilac); border: 1px solid rgba(183, 155, 255, 0.4); padding: 3px 10px; border-radius: 999px; letter-spacing: 0; }
.plan .amount { font-size: 3.4rem; font-weight: 600; letter-spacing: -0.04em; margin: 18px 0 6px; font-variant-numeric: tabular-nums; }
.plan .amount small { font-size: 1rem; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-left: 4px; }
.plan p { color: var(--muted); margin: 0; }
.included { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; }
.included li { display: flex; gap: 12px; }
.included .ico { color: var(--lilac); margin-top: 4px; }
.price-note { margin-top: 28px; max-width: 46em; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--line-2); padding-top: 22px; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-size: 0.85rem; font-weight: 600; color: var(--faint); margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 8px 0 0; font-size: 0.98rem; }

/* ---------- Download ---------- */
.download { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding: clamp(150px, 18vw, 250px) 0 clamp(130px, 15vw, 210px); }
.download::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 50% 42% at 50% 50%, rgba(10, 13, 20, 0.6), rgba(10, 13, 20, 0)), linear-gradient(180deg, var(--ink) 0%, rgba(10, 13, 20, 0.45) 30%, rgba(10, 13, 20, 0.55) 70%, var(--ink) 100%); }
.download h2 { font-size: clamp(2.6rem, 6.6vw, 5.8rem); letter-spacing: -0.04em; line-height: 1; max-width: 10em; margin-inline: auto; text-wrap: balance; }
.download .lead { margin: 24px auto 0; color: rgba(244, 246, 250, 0.84); }
.download .actions { justify-content: center; }
.apps { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin-top: 44px; }
.app { display: flex; align-items: center; gap: 18px; padding: 18px 26px 18px 18px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 22px; text-align: left; background: rgba(10, 13, 20, 0.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: border-color 0.3s, transform 0.3s var(--ease); }
.app:hover { border-color: rgba(255, 255, 255, 0.28); transform: translateY(-2px); }
.app img { width: 60px; height: 60px; border-radius: 15px; }
.app h3 { font-size: 1.08rem; }
.app span { color: rgba(244, 246, 250, 0.74); font-size: 0.9rem; }

/* ---------- Page heads (FAQ, contact, legal) ---------- */
.page-head { padding: 72px 0 16px; }
.page-head .lead { margin-top: 18px; }
.page-head.has-photo { margin-top: -73px; min-height: clamp(400px, 56svh, 600px); display: flex; align-items: flex-end; padding: 150px 0 64px; }
.page-head.has-photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 9, 15, 0.7) 0%, rgba(6, 9, 15, 0.2) 70%),
    linear-gradient(180deg, rgba(6, 9, 15, 0.55) 0%, rgba(6, 9, 15, 0.1) 35%, var(--ink) 100%);
}
.page-head.has-photo h1 { font-size: clamp(2.8rem, 7vw, 6rem); letter-spacing: -0.04em; line-height: 0.98; max-width: 12em; text-wrap: balance; }
.page-head.has-photo .lead { color: rgba(244, 246, 250, 0.86); }
.tag { display: inline-block; margin: 22px 0 0; padding: 5px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.3); font-size: 0.85rem; color: rgba(244, 246, 250, 0.86); }

/* FAQ */
.faq { max-width: 1060px; }
.faq-sec { display: grid; grid-template-columns: minmax(0, 0.34fr) minmax(0, 1fr); gap: 48px; padding: 36px 0; border-top: 1px solid var(--line-2); }
.faq-sec:first-child { border-top: 0; padding-top: 8px; }
.faq-group { position: sticky; top: 100px; align-self: start; font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.03em; line-height: 1.1; padding-top: 18px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: 1.12rem; font-weight: 550; letter-spacing: -0.01em; transition: color 0.2s; }
.faq summary:hover { color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--muted); transition: transform 0.3s var(--ease); margin-top: 5px; }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq details > div { color: var(--muted); padding: 0 40px 22px 0; }

/* Contact */
.contact { max-width: 820px; border-top: 1px solid var(--line); }
.contact > div { display: grid; grid-template-columns: 28px 1fr auto; gap: 18px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.contact .ico { width: 24px; height: 24px; color: var(--accent); }
.contact p { margin: 4px 0 0; color: var(--muted); }
.note { display: flex; gap: 14px; align-items: flex-start; max-width: 820px; padding: 18px 20px; border-radius: 14px; background: var(--ink-2); border: 1px solid var(--line); color: var(--muted); margin-top: 32px; }
.note .ico { color: var(--accent); margin-top: 4px; }
.note p { margin: 0; }

/* Legal */
.prose { max-width: 760px; }
.prose section { padding-top: 32px; }
.prose h2 { font-size: 1.35rem; letter-spacing: -0.02em; margin-bottom: 10px; }
.prose p { color: var(--muted); }

/* Error page */
.error-page { padding: 140px 0; text-align: center; }
.error-page .lead { margin: 20px auto 0; }
.error-page .actions { justify-content: center; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 64px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand p { color: var(--muted); margin-top: 16px; max-width: 26em; font-size: 0.95rem; }
.foot h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); margin-bottom: 14px; font-weight: 600; }
.foot a:not(.brand) { display: block; color: var(--muted); text-decoration: none; padding: 4px 0; font-size: 0.95rem; transition: color 0.2s; }
.foot a:not(.brand):hover { color: var(--text); }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.88rem; }

/* ---------- Scroll reveal (only when JavaScript runs and motion is welcome) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 0.08s; }
.js .reveal.d2 { transition-delay: 0.16s; }
.js .reveal.d3 { transition-delay: 0.24s; }

/* ---------- Affiliate program: forms, the code card and the dashboard ---------- */
.hero-short { padding-bottom: 72px; }
.hero-short h1 { max-width: 14em; }
.hl { color: var(--lilac); font-weight: 600; }
.included-one { grid-template-columns: 1fr; margin-top: 32px; }
.apply { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }

.form { display: grid; gap: 18px; padding: 32px; border: 1px solid var(--line-2); border-radius: 24px; background: var(--ink); }
.form-narrow { max-width: 560px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; font-size: 0.92rem; font-weight: 550; color: var(--text); }
.field input, .field textarea {
  font: inherit; font-weight: 400; font-size: 1rem; color: var(--text); background: var(--ink-2);
  border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--lilac); box-shadow: 0 0 0 3px rgba(183, 155, 255, 0.18); }
.field input.input-validation-error, .field textarea.input-validation-error { border-color: var(--accent); }
.field-error { color: var(--accent); font-weight: 400; font-size: 0.88rem; }
.field-error:empty { display: none; }
.form-error { color: var(--accent); margin: 0; }
.form-error ul { margin: 0; padding-left: 18px; }
.validation-summary-valid { display: none; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 6px; }
.form-foot p { margin: 0; flex: 1 1 200px; }
.form-done { padding: 32px; border: 1px solid rgba(52, 211, 153, 0.3); border-radius: 24px; background: rgba(52, 211, 153, 0.06); }
.form-done .ico { width: 28px; height: 28px; color: var(--green); margin-bottom: 14px; }
.form-done p { color: var(--muted); margin: 10px 0 0; }
.note-warn { margin: 0 0 24px; }

.promo { display: grid; grid-template-columns: 28px 1fr 24px; gap: 18px; align-items: center; padding: 28px 32px; border: 1px solid rgba(183, 155, 255, 0.28); border-radius: 24px; text-decoration: none; background: rgba(183, 155, 255, 0.05); transition: border-color 0.3s, transform 0.3s var(--ease); }
.promo:hover { border-color: rgba(183, 155, 255, 0.5); transform: translateY(-2px); }
.promo .ico { width: 24px; height: 24px; color: var(--lilac); }
.promo p { margin: 4px 0 0; color: var(--muted); }
.promo .promo-go { transition: transform 0.25s var(--ease); }
.promo:hover .promo-go { transform: translateX(4px); }

.code-card { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px 40px; padding: 28px 32px; border: 1px solid var(--line-2); border-radius: 24px; background: var(--ink-2); }
.code-card-hero { margin-top: 36px; max-width: 640px; }
.code-card-hero p { margin: 0; flex: 1 1 240px; }
.code-card span { display: block; margin-bottom: 4px; }
.code { font-size: 2.4rem; font-weight: 650; letter-spacing: 0.12em; color: var(--lilac); font-variant-numeric: tabular-nums; }
.code-link { flex: 1 1 260px; min-width: 0; }
.code-link a { color: var(--text); overflow-wrap: anywhere; }

.numbers-4 { grid-template-columns: repeat(4, 1fr); }
.dash-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; margin-top: 56px; }
.dash-grid h3 { margin-bottom: 14px; }
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ledger li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ledger li > div { display: grid; min-width: 0; }
.ledger b { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { flex: none; font-size: 0.82rem; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.pill-good { border-color: rgba(52, 211, 153, 0.4); color: var(--green); }
.bank { margin-top: 20px; }

@media (max-width: 1000px) {
  .apply, .dash-grid { grid-template-columns: 1fr; gap: 40px; }

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

@media (max-width: 720px) {
  .form { padding: 22px; }
  .field-row { grid-template-columns: 1fr; }
  .promo { grid-template-columns: 24px 1fr; padding: 22px; }
  .promo .promo-go { display: none; }
  .code-card { padding: 22px; }
  .area-in { height: auto; flex-wrap: wrap; padding: 12px 0; gap: 10px 16px; }
  .area-nav { order: 3; width: 100%; margin-left: 0; }
  .area-out { margin-left: auto; }
  .hours-row { grid-template-columns: 1fr 1fr; }
  .hours-row .check { grid-column: 1 / -1; }
  .tiles-wide { grid-template-columns: 1fr 1fr; }
  .panel { padding: 18px; }
  .code { font-size: 2rem; }
}

/* ---------- The staging password page ---------- */
.bare { min-height: 100vh; display: grid; place-items: center; padding: 24px 0; }
.gate { width: min(100% - 32px, 440px); }
.gate-card { padding: 36px 32px; border: 1px solid var(--line-2); border-radius: 28px; background: var(--ink-2); }
.gate-card .brand { margin-bottom: 28px; }
.gate-card h1 { font-size: 2rem; letter-spacing: -0.03em; margin-bottom: 12px; }
.gate-card .form-error { margin: 0 0 16px; }
.gate-form { display: grid; gap: 18px; margin-top: 24px; }
.gate-form .btn { justify-content: center; }

/* ---------- Sign-in pages ---------- */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.gate-wide { width: min(100% - 32px, 560px); }
.gate-alt { margin-top: 12px; display: grid; }
.gate-alt .btn { justify-content: center; }
.gate-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin: 22px 0 0; color: var(--muted); }
.gate-links a, .link { color: var(--text); }
.link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.check a { color: var(--text); }
.form-ok { color: var(--green); margin: 0 0 16px; }

/* ---------- Business area and staff portal ---------- */
.area-main { min-height: 100vh; }
.area-bar { position: sticky; top: 0; z-index: 50; background: rgba(10, 13, 20, 0.88); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.area-in { width: min(100% - 40px, var(--wrap)); margin-inline: auto; height: 64px; display: flex; align-items: center; gap: 24px; }
.brand-sub { color: var(--lilac); font-weight: 600; }
.area-portal .brand-sub { color: var(--green); }
.area-nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.area-nav::-webkit-scrollbar { display: none; }
.area-nav a { text-decoration: none; color: var(--muted); font-size: 0.93rem; padding: 8px 12px; border-radius: 999px; white-space: nowrap; transition: color 0.2s, background-color 0.2s; }
.area-nav a:hover { color: var(--text); }
.area-nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.area-out .btn { padding: 8px 14px; }
.area-body { padding: 36px 0 80px; }
.area-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.area-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); letter-spacing: -0.03em; }
.area-head .kicker { margin-bottom: 10px; }
.area-head p { margin: 8px 0 0; color: var(--muted); }
.area-head .actions { margin: 0; }

.flash { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 14px; margin: 0 0 24px; background: rgba(52, 211, 153, 0.08); border: 1px solid rgba(52, 211, 153, 0.3); color: var(--text); }
.flash .ico { color: var(--green); }
.flash-bad { background: rgba(91, 200, 245, 0.08); border-color: rgba(91, 200, 245, 0.35); }
.flash-bad .ico { color: var(--accent); }
.flash span strong { color: var(--text); }

/* Signed in on another device (one device at a time): over the whole page, nothing behind it usable. */
.ended { max-width: min(440px, calc(100vw - 32px)); padding: 28px 26px; border: 1px solid var(--line-2); border-radius: 24px; background: var(--ink-2); color: var(--text); }
.ended::backdrop { background: rgba(5, 8, 16, 0.72); backdrop-filter: blur(6px); }
.ended h2 { font-size: 1.35rem; letter-spacing: -0.02em; margin: 0 0 10px; }
.ended p { margin: 0 0 12px; }
.ended .btn { margin-top: 8px; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.tile { display: grid; gap: 4px; padding: 20px 22px; border: 1px solid var(--line-2); border-radius: 20px; background: var(--ink-2); text-decoration: none; transition: border-color 0.25s, transform 0.25s var(--ease); }
.tile:hover { border-color: rgba(255, 255, 255, 0.24); transform: translateY(-2px); }
.tile b { font-size: 1.9rem; font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tile b small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.tile b.hot { color: var(--accent); }
.tile span { color: var(--muted); font-size: 0.9rem; }

.area-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; }
.panel { border: 1px solid var(--line-2); border-radius: 22px; background: var(--ink-2); padding: 22px; }
.panel + .panel { margin-top: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.panel-head h2 { font-size: 1.15rem; letter-spacing: -0.015em; }
.panel-head a { color: var(--muted); }
.panel h3 { font-size: 1rem; }
.stack { display: grid; gap: 20px; }
.empty { display: grid; gap: 14px; justify-items: start; padding: 8px 0; margin: 0; }
.empty p { margin: 0; color: var(--muted); }

.rows-list { list-style: none; margin: 0; padding: 0; }
.rows-list li + li { border-top: 1px solid var(--line); }
.row-link, .row-static { display: flex; align-items: center; gap: 14px; padding: 12px 6px; text-decoration: none; border-radius: 12px; }
.row-link { transition: background-color 0.2s; }
.row-link:hover { background: rgba(255, 255, 255, 0.035); }
.row-main { display: grid; min-width: 0; flex: 1; }
.row-main b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-main .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thumb { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex: none; background: #1a1d24; }
.thumb-empty { display: grid; place-items: center; color: var(--faint); }

.chip { flex: none; font-size: 0.8rem; font-weight: 600; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.chip-good { border-color: rgba(52, 211, 153, 0.45); color: var(--green); }
.chip-warn { border-color: rgba(251, 191, 36, 0.45); color: #fbbf24; }
.chip-bad { border-color: rgba(91, 200, 245, 0.5); color: var(--accent); }
.chip-quiet { color: var(--faint); }
.promo-tight { margin-top: 18px; padding: 18px 20px; border-radius: 18px; }

/* Listings */
.back { color: var(--muted); text-decoration: none; display: inline-block; margin-bottom: 10px; }
.back:hover { color: var(--text); }
.area-head h1 .chip { font-size: 0.8rem; vertical-align: middle; margin-left: 8px; letter-spacing: 0; }
.bad { color: var(--accent); }
.warn { color: #fbbf24; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.card { border: 1px solid var(--line-2); border-radius: 22px; background: var(--ink-2); overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.25s, transform 0.25s var(--ease); }
.card:hover { border-color: rgba(255, 255, 255, 0.22); transform: translateY(-2px); }
.card-media { position: relative; display: block; aspect-ratio: 16 / 10; background: #1a1d24; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .chip { position: absolute; top: 12px; left: 12px; background: rgba(10, 13, 20, 0.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.card-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--faint); font-size: 0.9rem; }
.card-empty .ico { width: 28px; height: 28px; }
.card-body { padding: 16px 18px 18px; display: grid; gap: 6px; }
.card-body h2 { font-size: 1.1rem; }
.card-body h2 a { text-decoration: none; }
.card-body p { margin: 0; }
.card-links { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; }
.card-links a { color: var(--muted); font-size: 0.88rem; text-decoration: none; }
.card-links a:hover { color: var(--text); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-size: 0.95rem; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--lilac); }
.tabs-small { border-bottom: 0; margin-bottom: 18px; }
.tabs-small a { border: 1px solid var(--line-2); border-radius: 999px; margin: 0; padding: 7px 14px; font-size: 0.88rem; }
.tabs-small a[aria-current="page"] { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.24); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.panel-title { font-size: 1.1rem; letter-spacing: -0.015em; margin-bottom: 16px; }
.panel .field + .field, .panel .field + .field-row, .panel .field-row + .field, .panel .field-row + .field-row { margin-top: 16px; }
.panel > .check, .panel fieldset { margin-top: 16px; }
.field-row > .field + .field { margin-top: 0; }
.field-row { align-items: start; }
.form-plain { display: grid; gap: 16px; }
.form-plain .field + .field, .form-plain .field-row + .field, .form-plain .field + .field-row { margin-top: 0; }
.field select { font: inherit; font-weight: 400; font-size: 1rem; color: var(--text); background: var(--ink); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; width: 100%; }
.field input, .field textarea { background: var(--ink); }
.field input[type="color"] { height: 48px; padding: 4px; cursor: pointer; }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { font-size: 0.92rem; font-weight: 550; margin-bottom: 8px; padding: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.hours { display: grid; gap: 8px; }
.hours-row { display: grid; grid-template-columns: 130px repeat(4, 1fr); gap: 8px; align-items: center; }
.hours-row input[type="time"] { font: inherit; font-size: 0.92rem; color: var(--text); background: var(--ink); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px; width: 100%; color-scheme: dark; }
.field input[type="date"], .field input[type="datetime-local"] { color-scheme: dark; }
.form-bar { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 12px; padding: 16px 0; margin-top: 20px; background: linear-gradient(transparent, var(--ink) 30%); }
.danger { margin-top: 28px; border: 1px solid rgba(91, 200, 245, 0.3); border-radius: 18px; padding: 14px 18px; }
.danger summary { cursor: pointer; color: var(--accent); font-weight: 550; }
.danger-form { display: grid; gap: 14px; margin-top: 14px; max-width: 440px; }
.btn-danger { background: transparent; border-color: rgba(91, 200, 245, 0.6); color: var(--accent); }
.btn-danger:hover { background: rgba(91, 200, 245, 0.1); }
.row-static { display: flex; align-items: center; gap: 10px; padding: 12px 4px; }
.row-static form { margin: 0; }
.is-past { opacity: 0.55; }

.upload { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 16px 0 20px; }
.upload-drop { flex: 1 1 280px; display: flex; gap: 14px; align-items: center; padding: 16px 18px; border: 1px dashed rgba(255, 255, 255, 0.22); border-radius: 16px; cursor: pointer; position: relative; }
.upload-drop:hover { border-color: var(--lilac); }
.upload-drop .ico { width: 24px; height: 24px; color: var(--lilac); }
.upload-drop > span { display: grid; }
.upload-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.photo-grid li { position: relative; border-radius: 16px; overflow: hidden; background: #1a1d24; border: 1px solid var(--line); }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.photo-grid .chip { position: absolute; top: 10px; left: 10px; background: rgba(10, 13, 20, 0.78); }
.photo-actions { display: flex; gap: 6px; padding: 10px; flex-wrap: wrap; }
.photo-actions form { margin: 0; }
.photo-actions .btn { padding: 6px 12px; font-size: 0.84rem; }

.plan-picks { display: grid; gap: 12px; }
.plan-pick { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 18px; }
.plan-pick p { margin: 4px 0 0; }
.plan-pick b { font-size: 1.5rem; font-weight: 650; letter-spacing: -0.02em; }
.plan-pick b small { font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.plan-pick .btn { grid-column: 1 / -1; justify-content: center; }

.tiles-wide { grid-template-columns: repeat(6, 1fr); }
.tiles-wide .tile:hover { transform: none; border-color: var(--line-2); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 200px; padding-top: 8px; }
.bar { flex: 1; height: 100%; position: relative; display: flex; align-items: flex-end; }
.bar-views { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(183, 155, 255, 0.55); border-radius: 4px 4px 0 0; min-height: 2px; }
.bar-saves { position: absolute; left: 25%; right: 25%; bottom: 0; background: var(--accent); border-radius: 3px 3px 0 0; }
.bar:hover .bar-views { background: var(--lilac); }
.bars-axis { display: flex; justify-content: space-between; margin-top: 8px; }
.h-0 { height: 0%; }
.h-1 { height: 1%; }
.h-2 { height: 2%; }
.h-3 { height: 3%; }
.h-4 { height: 4%; }
.h-5 { height: 5%; }
.h-6 { height: 6%; }
.h-7 { height: 7%; }
.h-8 { height: 8%; }
.h-9 { height: 9%; }
.h-10 { height: 10%; }
.h-11 { height: 11%; }
.h-12 { height: 12%; }
.h-13 { height: 13%; }
.h-14 { height: 14%; }
.h-15 { height: 15%; }
.h-16 { height: 16%; }
.h-17 { height: 17%; }
.h-18 { height: 18%; }
.h-19 { height: 19%; }
.h-20 { height: 20%; }
.h-21 { height: 21%; }
.h-22 { height: 22%; }
.h-23 { height: 23%; }
.h-24 { height: 24%; }
.h-25 { height: 25%; }
.h-26 { height: 26%; }
.h-27 { height: 27%; }
.h-28 { height: 28%; }
.h-29 { height: 29%; }
.h-30 { height: 30%; }
.h-31 { height: 31%; }
.h-32 { height: 32%; }
.h-33 { height: 33%; }
.h-34 { height: 34%; }
.h-35 { height: 35%; }
.h-36 { height: 36%; }
.h-37 { height: 37%; }
.h-38 { height: 38%; }
.h-39 { height: 39%; }
.h-40 { height: 40%; }
.h-41 { height: 41%; }
.h-42 { height: 42%; }
.h-43 { height: 43%; }
.h-44 { height: 44%; }
.h-45 { height: 45%; }
.h-46 { height: 46%; }
.h-47 { height: 47%; }
.h-48 { height: 48%; }
.h-49 { height: 49%; }
.h-50 { height: 50%; }
.h-51 { height: 51%; }
.h-52 { height: 52%; }
.h-53 { height: 53%; }
.h-54 { height: 54%; }
.h-55 { height: 55%; }
.h-56 { height: 56%; }
.h-57 { height: 57%; }
.h-58 { height: 58%; }
.h-59 { height: 59%; }
.h-60 { height: 60%; }
.h-61 { height: 61%; }
.h-62 { height: 62%; }
.h-63 { height: 63%; }
.h-64 { height: 64%; }
.h-65 { height: 65%; }
.h-66 { height: 66%; }
.h-67 { height: 67%; }
.h-68 { height: 68%; }
.h-69 { height: 69%; }
.h-70 { height: 70%; }
.h-71 { height: 71%; }
.h-72 { height: 72%; }
.h-73 { height: 73%; }
.h-74 { height: 74%; }
.h-75 { height: 75%; }
.h-76 { height: 76%; }
.h-77 { height: 77%; }
.h-78 { height: 78%; }
.h-79 { height: 79%; }
.h-80 { height: 80%; }
.h-81 { height: 81%; }
.h-82 { height: 82%; }
.h-83 { height: 83%; }
.h-84 { height: 84%; }
.h-85 { height: 85%; }
.h-86 { height: 86%; }
.h-87 { height: 87%; }
.h-88 { height: 88%; }
.h-89 { height: 89%; }
.h-90 { height: 90%; }
.h-91 { height: 91%; }
.h-92 { height: 92%; }
.h-93 { height: 93%; }
.h-94 { height: 94%; }
.h-95 { height: 95%; }
.h-96 { height: 96%; }
.h-97 { height: 97%; }
.h-98 { height: 98%; }
.h-99 { height: 99%; }
.h-100 { height: 100%; }

/* Bookings, reviews, account */
.when { display: grid; text-align: center; min-width: 74px; padding: 6px 8px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); flex: none; }
.when b { font-size: 0.85rem; font-weight: 600; }
.when span { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.facts { display: grid; grid-template-columns: 120px 1fr; gap: 10px 16px; margin: 0; }
.facts dt { color: var(--muted); font-size: 0.92rem; }
.facts dd { margin: 0; }
.note-text { white-space: pre-line; }
.decide { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.decide .form-foot { margin-top: 10px; }
.decide form { margin: 0; }
.chat { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; max-height: 420px; overflow-y: auto; }
.chat li { max-width: 80%; padding: 10px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); }
.chat li p { margin: 0 0 4px; white-space: pre-line; }
.chat li span { color: var(--faint); }
.chat li.mine { justify-self: end; background: rgba(183, 155, 255, 0.14); border-bottom-right-radius: 6px; }
.chat li.theirs { justify-self: start; border-bottom-left-radius: 6px; }
.chat-send { display: flex; gap: 10px; }
.chat-send input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; color: var(--text); background: var(--ink); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 14px; }
.chat-send input:focus { outline: none; border-color: var(--lilac); }
.review-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
/* Long unbroken words (email addresses, links) wrap instead of pushing the page sideways on a phone. */
.mod-head, .note-text, .panel .small { overflow-wrap: anywhere; }
.review header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; align-items: center; }
.review header div { display: flex; gap: 8px; align-items: center; }
.stars { color: #ffd54f; letter-spacing: 2px; margin: 8px 0 6px; }
.review-text { color: #d6dce6; white-space: pre-line; }
.reply { display: grid; gap: 10px; margin-top: 12px; }
.reply .btn { justify-self: start; }
.recovery { margin-bottom: 20px; border-color: rgba(52, 211, 153, 0.4); }
.codes { list-style: none; padding: 0; margin: 14px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.codes code, .secret { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; background: var(--ink); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px; display: block; font-size: 0.92rem; overflow-wrap: anywhere; }
.qr-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin: 12px 0 16px; }
.qr { border-radius: 14px; background: #fff; }
.avatar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 18px; }
.avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.avatar-empty { display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--lilac)); font-weight: 650; font-size: 1.5rem; }
.avatar-form { display: flex; gap: 8px; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.bank-panel { margin-top: 24px; }
.bank-panel h3 { margin-bottom: 6px; }
.apply-panel { max-width: 760px; }
.code-entry { margin-top: 24px; max-width: 560px; }
.code-entry h3 { margin-bottom: 12px; }
.referred { margin-top: 24px; }

/* ---------- Smaller screens ---------- */
@media (max-width: 1000px) {
  .hero-grid, .split, .tour { grid-template-columns: 1fr; }
  .hero-phones { height: 560px; }
  .hero-phones .front { right: auto; left: 50%; margin-left: -60px; }
  .hero-phones .back { right: auto; left: 50%; margin-left: -230px; }
  .tour-stage { display: none; }
  .tour-text { padding: 0 20px 40px; }
  .tour-intro { padding: 96px 0 24px; }
  .chapter { min-height: 0; max-width: none; opacity: 1; padding: 56px 0 0; }
  .chapter-media { display: grid; place-items: center; position: relative; isolation: isolate; overflow: hidden; margin: 36px -20px 0; padding: 48px 0; }
  .chapter-bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
  .chapter-media .phone { --w: min(260px, 64vw); }
  .chapter-place { margin-top: 14px; padding-top: 0; border-top: 0; }
  .band-home .split-media .phone { --w: min(260px, calc(50vw - 28px)); }
  .faq-sec { grid-template-columns: 1fr; gap: 0; }
  .faq-group { position: static; padding-top: 0; }
  .hero.has-photo::after { background: linear-gradient(180deg, rgba(16, 9, 34, 0.86) 0%, rgba(16, 9, 34, 0.74) 50%, var(--ink) 100%); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav, .bar-cta { display: none; }
  .menu-btn { display: inline-flex; margin-left: auto; }
  .hero { padding: 32px 0 64px; }
  .hero-phones { height: 470px; }
  .hero-phones .front { --w: 220px; margin-left: -50px; }
  .hero-phones .back { --w: 190px; margin-left: -180px; top: 50px; }
  .section { padding: 80px 0; }
  .rows, .included, .plans, .numbers { grid-template-columns: 1fr; }
  .rows > div:nth-child(odd) { border-right: 0; }
  .rows > div:nth-child(even) { padding-left: 0; }
  .page-head.has-photo { min-height: 0; padding: 150px 0 44px; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line-2); }
  .plan { padding: 28px; }
  .split-media { gap: 16px; }
  .split-media .phone { --w: min(44vw, calc(50vw - 28px)); }
  .split-media .phone:nth-child(2) { margin-top: 40px; }
  .steps { grid-template-columns: 1fr; }
  .contact > div { grid-template-columns: 24px 1fr; }
  .contact > div .btn { grid-column: 2; justify-self: start; }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-phones .front, .towns-track { animation: none; }
  .tour-bgs img { transition: opacity 0.4s; transform: none; }
  .screen.stack img { transition: none; }
  .chapter { opacity: 1; }
  /* The places slider: photos cross-fade (site.js) and words simply appear; nothing travels. */
  .dest-bg.on, .dest-bg.in { animation: none; }
  .dest-name .w > span, .dest-slide.on .dest-name .w > span, .dest-slide.out .dest-name .w > span { transform: none; transition: none; }
  .dest-slide.out { visibility: hidden; }
  .dest-card, .dest-card img, .dest-next { transition: none; }
}

/* ---------- The chat assistant, in the site's colours ---------- */
.site-chat {
  font-size: 15px; /* the page's 17px made the topics too wide to sit two to a row */
  line-height: 1.5;
  --sc-accent: #5bc8f5;
  --sc-on-accent: #04121c; /* dark text: white doesn't read on light blue */
  --sc-surface: #10141d;
  --sc-surface-2: #181d29;
  --sc-text: #f4f6fa;
  --sc-muted: #9aa3b4;
  --sc-line: rgba(255, 255, 255, 0.1);
  /* A real family: the chat's styles use it inside the font shorthand, where "inherit" would void them */
  --sc-font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Staff portal ---------- */
.kicker-staff { color: var(--green); }
.brand-sub.staff { color: var(--green); }
.area-portal .area-nav a[aria-current="page"] { background: rgba(52, 211, 153, 0.12); }
.section-title { font-size: 1.1rem; margin: 8px 0 14px; letter-spacing: -0.015em; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.table th { text-align: left; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); padding: 8px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table a { color: var(--text); }
.table code, .mod-head code { font-size: 0.85rem; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
td.hot { color: var(--accent); font-weight: 600; }
.nowrap { white-space: nowrap; }
.actions-cell { text-align: right; }
.inline-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.money-input { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line-2); border-radius: 12px; padding: 0 0 0 12px; background: var(--ink-2); font-weight: 600; }
.money-input input { width: 110px; font: inherit; color: var(--text); background: transparent; border: 0; padding: 9px 10px 9px 2px; }
.money-input input:focus { outline: none; }
.search { display: flex; gap: 8px; }
.search input { width: min(320px, 60vw); font: inherit; font-size: 0.95rem; color: var(--text); background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 9px 14px; }
.search input:focus { outline: none; border-color: var(--green); }
.head-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mod-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin-bottom: 10px; }
.mod-actions { margin-top: 14px; }
.mod-actions form, .form-foot form { margin: 0; }
.takedown summary { list-style: none; display: inline-flex; }
.takedown summary::-webkit-details-marker { display: none; }
.takedown[open] summary { opacity: 0.6; }
.takedown form { margin-top: 12px; min-width: 260px; text-align: left; }
.numbers-3 { grid-template-columns: repeat(3, 1fr); margin-top: 0; margin-bottom: 18px; }
.sub { font-size: 1rem; margin: 18px 0 10px; }
.place-photo { width: 100%; border-radius: 16px; margin-bottom: 12px; aspect-ratio: 16 / 9; object-fit: cover; }
.pager { justify-content: center; margin-top: 16px; }

/* ---------- Business area and portal on smaller screens (after the area's own rules) ---------- */
@media (max-width: 1000px) {
  .area-grid, .form-grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tiles-wide { grid-template-columns: repeat(3, 1fr); }
}

/* Tablets: the menu gets its own row under the name, so every item shows and Sign out stays one line. */
@media (max-width: 1100px) {
  .area-in { height: auto; flex-wrap: wrap; padding: 10px 0 0; gap: 6px 16px; }
  .area-nav { order: 3; width: 100%; margin-left: -12px; padding-bottom: 8px; }
  .area-out { margin-left: auto; }
  .area-out .btn { white-space: nowrap; }
  .table td:first-child { min-width: 180px; }
  .table a[href^="mailto:"], .table .small { overflow-wrap: anywhere; }
}

@media (max-width: 900px) {
  /* Staff tables: each row becomes a card, each value with its column's name. */
  .table-wrap { overflow: visible; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .table tr:last-child { border-bottom: 0; }
  .table td { padding: 3px 0; border: 0; text-align: left; min-width: 0; }
  .table td:first-child { padding-bottom: 8px; }
  .table td[data-label] { position: relative; padding-left: 96px; }
  .table td[data-label]::before { content: attr(data-label); position: absolute; left: 0; top: 4px; width: 88px; color: var(--faint); font-size: 0.82rem; }
  .table td:first-child[data-label] { padding-left: 0; }
  .table td:first-child[data-label]::before { content: none; }
  .table .actions-cell, .table .num { text-align: left; }
  .table .actions-cell { padding-top: 10px; }
}

@media (max-width: 720px) {
  /* Phones: the whole menu at once, in even rows (three across for businesses, four for staff). */
  .area-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-left: 0; overflow: visible; }
  .area-portal .area-nav { grid-template-columns: repeat(4, 1fr); }
  .area-nav a { text-align: center; padding: 9px 4px; font-size: 0.9rem; }
  .area-portal .area-nav a { font-size: 0.84rem; }
  .area-body { padding-top: 24px; }
  /* A listing's sections: all of them in view, as pills. */
  .tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; border-bottom: 0; overflow: visible; }
  .tabs a { text-align: center; margin: 0; padding: 8px 6px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 0.9rem; }
  .tabs a[aria-current="page"] { background: rgba(255, 255, 255, 0.07); border-color: var(--lilac); }
  .panel { padding: 18px; }
  .field-row { grid-template-columns: 1fr; }
  .hours-row { grid-template-columns: 1fr 1fr; }
  .hours-row .check { grid-column: 1 / -1; }
  .tiles-wide { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr; gap: 2px 0; }
  .facts dd { margin-bottom: 10px; }
  .row-static { flex-wrap: wrap; }
  .row-static .row-main { flex-basis: 100%; }
  .chat li { max-width: 92%; }
}

/* ===== Shared links (/p, /t): one card, phone first ===== */
.bare:has(.share) { place-items: start center; padding: 0; }
.share { width: min(560px, 100%); background: var(--ink-2); min-height: 100vh; display: flex; flex-direction: column; }
@media (min-width: 600px) { .bare:has(.share) { padding: 32px 16px; } .share { min-height: 0; border: 1px solid var(--line-2); border-radius: 26px; overflow: hidden; } }
.share-photo { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; display: block; background: #1a1d24; }
.share-body { padding: 24px 22px 8px; }
.share-body h1 { font-size: clamp(1.8rem, 7vw, 2.3rem); line-height: 1.1; margin: 12px 0 10px; letter-spacing: -0.02em; }
.share-tag { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: var(--accent); color: var(--on-accent); }
.share-meta { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.share-meta .ico { color: #ffc94a; }
.share-meta.muted .ico { color: var(--muted); }
.share-text { color: var(--muted); line-height: 1.55; margin: 14px 0 0; }
.share-actions { margin: 22px 0 10px; }
.share-actions .btn { width: 100%; justify-content: center; }
.share-stops { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; counter-reset: stop; }
.share-stops li { counter-increment: stop; }
.share-stops a { display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: 16px; border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.share-stops a::before { content: counter(stop); flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 0.9rem; }
.share-stops img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; background: #1a1d24; }
.share-stops span { display: flex; flex-direction: column; min-width: 0; }
.share-stops b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-stops small { color: var(--muted); }
.share-foot { margin-top: auto; display: flex; gap: 12px; align-items: center; padding: 18px 22px 26px; border-top: 1px solid var(--line); }
.share-foot div { display: flex; flex-direction: column; }
.share-foot span { color: var(--muted); font-size: 0.88rem; }

/* The Staging tag on staging's password page */
.gate-tag { display: inline-block; margin-top: 18px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px; background: #fbbf24; color: #1c1300; }
