/*
 * The Embrace North website. A web page with the customer app's look in it: the app's dark greys, Embrace North blue,
 * Barlow and Barlow Condensed, page titles lit like hollow neon signs (Tilt Neon), and cards with the app's neon edge
 * (apps/member/src/ui/theme.ts and neon.tsx). Photos carry the pages; the neon is the accent, not the wallpaper.
 */

:root {
  --page: #191919;
  --deep: #111111;
  --card: #202020;
  --raised: #262626;
  --ink: rgba(255, 255, 255, 0.88);
  --bright: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --subtle: rgba(255, 255, 255, 0.44);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);

  /* Embrace North blue, the app's accent. */
  --blue: #2ea7f7;
  --blue-light: #7cc8fa;
  --on-blue: #061420;
  --blue-soft: rgba(46, 167, 247, 0.14);
  --blue-edge: rgba(46, 167, 247, 0.62);
  --blue-glow: rgba(46, 167, 247, 0.5);
  /* The neon tube and its dark inside (neon.tsx: the blue mixed with white, and with the page). */
  --tube: #cbe9fd;
  --tube-inside: #1f4157;

  --good: #6dd39a;
  --live: #ff6a3d;
  --low: #ff9157;
  --danger: #ff8178;

  --r-sm: 10px;
  --r: 14px;
  --r-card: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --condensed: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;
  --neon: 'Tilt Neon', 'Barlow Condensed', system-ui, sans-serif;

  --width: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: dark;
}

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

/* Hidden means hidden, whatever display a class gives it (the install button waits for the browser's offer). */
[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--blue-light);
  text-underline-offset: 3px;
}

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

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

h1,
h2,
h3,
h4 {
  color: var(--bright);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h2 {
  font-family: var(--condensed);
  font-weight: 700;
  font-size: clamp(30px, 4.2vw, 44px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h3 {
  font-family: var(--condensed);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.01em;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: 100%;
  max-width: var(--width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.narrow {
  max-width: 760px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 100;
  background: var(--blue);
  color: var(--on-blue);
  padding: 8px 14px;
  border-radius: var(--r-sm);
}

/* ---------- The neon title, as on the app's screens ---------- */

.neon {
  font-family: var(--neon);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.08;
  color: var(--tube-inside);
  -webkit-text-stroke: 1.4px var(--tube);
  paint-order: stroke fill;
  text-shadow:
    0 0 2px var(--blue),
    0 0 9px rgba(46, 167, 247, 0.55),
    0 0 26px rgba(46, 167, 247, 0.32);
  animation: switch-on 0.42s steps(1) both;
}

/* Off, on, off, on, dim, on: the app's titles switch on like this when their screen opens. */
@keyframes switch-on {
  0% { opacity: 0.2; }
  22% { opacity: 1; }
  35% { opacity: 0.2; }
  57% { opacity: 1; }
  68% { opacity: 0.5; }
  80%, 100% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .neon {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

h1.neon {
  font-size: clamp(40px, 7.4vw, 86px);
  margin-bottom: 0.3em;
}

.page-title h1.neon {
  font-size: clamp(38px, 6vw, 64px);
}

.label {
  font-family: var(--condensed);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin: 0 0 10px;
}

.lead {
  font-size: clamp(18px, 2.1vw, 21px);
  color: var(--ink);
  max-width: 640px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 14px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: var(--r);
  border: 1px solid transparent;
  font-family: var(--body);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-blue {
  background: var(--blue);
  color: var(--on-blue);
  box-shadow: 0 0 22px -8px var(--blue-glow);
}

.btn-blue:hover {
  color: var(--on-blue);
  background: #4cb5fa;
  box-shadow: 0 0 28px -6px var(--blue-glow);
}

.btn-line {
  background: rgba(0, 0, 0, 0.25);
  color: var(--bright);
  border-color: var(--line-strong);
}

.btn-line:hover {
  border-color: var(--blue-edge);
  color: var(--bright);
}

.btn-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
  border-radius: 12px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* ---------- Header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 17, 17, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--bright);
  text-decoration: none;
  font-family: var(--condensed);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.14em;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--bright);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 10px;
}

.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--bright);
  background: rgba(255, 255, 255, 0.06);
}

.nav a[aria-current='page'] {
  box-shadow: inset 0 -2px 0 var(--blue);
  border-radius: 10px 10px 4px 4px;
}

.top .btn {
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--bright);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (max-width: 960px) {
  .menu-toggle {
    display: inline-flex;
  }
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px var(--gutter) 18px;
    background: rgba(17, 17, 17, 0.97);
    border-bottom: 1px solid var(--line);
  }
  .nav a {
    font-size: 18px;
    padding: 12px;
  }
  .top[data-open='true'] .nav {
    display: flex;
  }
  .top .wrap > .btn {
    display: none;
  }
  .nav .btn {
    display: inline-flex;
    margin-top: 8px;
  }
}

@media (min-width: 961px) {
  .nav .btn {
    display: none;
  }
}

/* ---------- The hero ---------- */

.hero {
  position: relative;
  min-height: min(86vh, 760px);
  display: flex;
  align-items: flex-end;
  padding: 120px 0 64px;
  overflow: hidden;
  isolation: isolate;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.2) 0%, rgba(17, 17, 17, 0.35) 40%, rgba(25, 25, 25, 0.96) 100%),
    linear-gradient(90deg, rgba(17, 17, 17, 0.7) 0%, rgba(17, 17, 17, 0) 70%);
}

.hero .lead {
  color: var(--bright);
}

.page-title {
  padding: 72px 0 32px;
  position: relative;
}

.page-title.with-photo {
  padding: 140px 0 48px;
  isolation: isolate;
  overflow: hidden;
}

.page-title.with-photo .hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.35) 0%, rgba(25, 25, 25, 0.97) 100%);
}

/* ---------- Sections and cards ---------- */

.section {
  padding: clamp(56px, 8vw, 96px) 0;
}

.section.tint {
  background: linear-gradient(180deg, var(--deep), var(--page));
}

.section-head {
  max-width: 720px;
  margin-bottom: 36px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

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

@media (max-width: 960px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 24px;
}

/* The app's neon edge: a blue line and a soft glow. */
.card.neon-edge,
.neon-edge {
  border-color: var(--blue-edge);
  box-shadow: 0 0 16px -6px var(--blue-glow);
}

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

.card > :last-child {
  margin-bottom: 0;
}

.step-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: var(--blue-soft);
  color: var(--blue-light);
}

.step-icon.heat {
  background: rgba(255, 106, 61, 0.14);
  color: #ff9a6b;
}

.step-icon.rest {
  background: rgba(109, 211, 154, 0.14);
  color: var(--good);
}

/* ---------- Locations ---------- */

.place {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.place:hover {
  color: var(--ink);
  border-color: var(--blue-edge);
  box-shadow: 0 0 22px -8px var(--blue-glow);
  transform: translateY(-2px);
}

.place-photo {
  aspect-ratio: 16 / 10;
  background: var(--raised);
  overflow: hidden;
}

.place-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.place-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.place-body h3 {
  font-size: 30px;
  margin: 0;
  text-transform: uppercase;
}

.place-site {
  font-family: var(--condensed);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-light);
  font-size: 15px;
}

.place-more {
  margin-top: auto;
  padding-top: 12px;
  font-weight: 600;
  color: var(--blue-light);
}

/* ---------- Live counts and times, as the app shows them ---------- */

.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--condensed);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 15px;
  color: var(--bright);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(255, 106, 61, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 106, 61, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(255, 106, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 106, 61, 0); }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  background: rgba(17, 17, 17, 0.6);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
  backdrop-filter: blur(8px);
}

.chip strong {
  color: var(--bright);
  font-weight: 600;
}

.slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 10px;
}

.slot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 12px 10px;
  border-radius: var(--r);
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

a.slot:hover {
  color: var(--ink);
  border-color: var(--blue-edge);
  box-shadow: 0 0 16px -6px var(--blue-glow);
}

.slot-time {
  font-family: var(--condensed);
  font-weight: 700;
  font-size: 22px;
  color: var(--bright);
  line-height: 1;
}

.slot-left {
  font-size: 13px;
  color: var(--muted);
}

.slot.low .slot-left {
  color: var(--low);
}

.slot.full {
  opacity: 0.55;
}

.fill {
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.fill > span {
  display: block;
  height: 100%;
  background: var(--blue);
  border-radius: 4px;
}

.slot.low .fill > span {
  background: var(--low);
}

.period {
  font-family: var(--condensed);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 15px;
  margin: 26px 0 12px;
}

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  text-decoration: none;
  line-height: 1.2;
}

.tab small {
  font-family: var(--condensed);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--muted);
}

.tab b {
  font-family: var(--condensed);
  font-size: 22px;
  color: var(--bright);
}

.tab[aria-current='page'] {
  background: var(--blue);
  border-color: var(--blue);
}

.tab[aria-current='page'] small,
.tab[aria-current='page'] b {
  color: var(--on-blue);
}

.switch {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  margin-bottom: 18px;
}

.switch a {
  padding: 8px 18px;
  border-radius: var(--r-pill);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.switch a[aria-current='page'] {
  background: var(--raised);
  color: var(--bright);
  box-shadow: inset 0 0 0 1px var(--blue-edge);
}

/* ---------- Prices ---------- */

.price-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price {
  font-family: var(--condensed);
  font-weight: 700;
  font-size: 48px;
  line-height: 1;
  color: var(--bright);
  margin: 8px 0 4px;
}

.price small {
  font-size: 20px;
  font-weight: 600;
  color: var(--muted);
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 18px;
  display: grid;
  gap: 8px;
}

.price-card li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.price-card li::before {
  content: '';
  width: 6px;
  height: 6px;
  margin-top: 0.62em;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue);
}

.price-card .btn {
  margin-top: auto;
}

.badge {
  align-self: flex-start;
  font-family: var(--condensed);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--blue-soft);
  color: var(--blue-light);
}

.rows {
  display: grid;
  border-top: 1px solid var(--line);
}

.row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.row-name {
  color: var(--bright);
  font-weight: 600;
}

.row-name small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 15px;
}

.row-price {
  font-family: var(--condensed);
  font-weight: 700;
  font-size: 24px;
  color: var(--bright);
  white-space: nowrap;
}

/* ---------- The app: a phone with the app's screen in it ---------- */

.app-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

@media (max-width: 860px) {
  .app-band {
    grid-template-columns: 1fr;
  }
}

.phone {
  justify-self: center;
  width: min(100%, 320px);
  aspect-ratio: 9 / 18.5;
  border-radius: 46px;
  padding: 12px;
  background: linear-gradient(160deg, #2b2b2b, #0c0c0c);
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 0 60px -30px var(--blue-glow);
}

.phone-screen {
  height: 100%;
  border-radius: 36px;
  background: var(--page);
  overflow: hidden;
  padding: 44px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-screen .neon {
  font-size: 30px;
  margin: 0;
  -webkit-text-stroke-width: 1px;
}

.phone-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.phone-days {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.phone-days span {
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  text-align: center;
  padding: 6px 0;
  font-family: var(--condensed);
  font-weight: 700;
  font-size: 16px;
  color: var(--bright);
  line-height: 1.1;
}

.phone-days span small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.phone-days span.on {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--on-blue);
}

.phone-days span.on small {
  color: var(--on-blue);
}

.phone .slots {
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.phone .slot {
  padding: 9px 10px 8px;
}

.phone .slot-time {
  font-size: 18px;
}

.phone-card {
  border-radius: 14px;
  padding: 12px;
  background: var(--card);
}

.phone-card .label {
  font-size: 11px;
  margin-bottom: 4px;
}

.phone-card b {
  font-family: var(--condensed);
  font-size: 22px;
  color: var(--bright);
}

/* ---------- Install steps ---------- */

.install {
  display: none;
}

.install[data-show='true'] {
  display: block;
}

/* The clip of the iPhone steps (the app's public/add-to-home-screen.mp4): the card's full width, up to a phone's. */
.install-clip {
  display: block;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 400 / 810;
  margin: 16px auto 4px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #1c1c1e;
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 14px;
}

.steps li {
  counter-increment: step;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.steps li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--condensed);
  font-weight: 700;
  font-size: 18px;
  color: var(--blue-light);
  border: 1px solid var(--blue-edge);
  box-shadow: 0 0 12px -4px var(--blue-glow);
}

.ios-share {
  display: inline-block;
  vertical-align: -3px;
  color: var(--blue-light);
}

/* The app's icon, to look for on the home screen: its dark square with the chevrons. */
.app-icon {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #191919;
  border: 1px solid rgba(255, 255, 255, 0.14);
  vertical-align: -7px;
}

.qr {
  width: 168px;
  height: 168px;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
}

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

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 40px 20px 0;
  position: relative;
  font-weight: 600;
  color: var(--bright);
  font-size: 18px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 14px;
  font-size: 28px;
  font-weight: 300;
  color: var(--blue-light);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq .answer {
  padding: 0 0 20px;
  color: var(--ink);
}

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

.form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-weight: 600;
  font-size: 15px;
  color: var(--bright);
}

.field small {
  color: var(--muted);
  font-size: 14px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border-radius: var(--r);
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--bright);
  font: inherit;
  font-size: 17px;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}

.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notice {
  border-radius: var(--r);
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  background: var(--raised);
}

.notice.good {
  border-color: rgba(109, 211, 154, 0.45);
  background: rgba(45, 153, 100, 0.14);
}

.notice.bad {
  border-color: rgba(255, 129, 120, 0.5);
  background: rgba(255, 115, 105, 0.12);
}

.notice strong {
  color: var(--bright);
  display: block;
}

/* ---------- Long reads: policies, job posts ---------- */

.prose {
  max-width: 760px;
}

.prose h2 {
  font-size: 28px;
  margin-top: 1.8em;
}

.prose h3 {
  margin-top: 1.4em;
}

.prose ul,
.prose ol {
  padding-left: 1.2em;
}

.prose li {
  margin-bottom: 0.4em;
}

/* ---------- Photos ---------- */

.photo {
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--raised);
}

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

.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 180px;
  gap: 12px;
}

.gallery .photo:nth-child(1) {
  grid-column: span 4;
  grid-row: span 2;
}

.gallery .photo {
  grid-column: span 2;
}

@media (max-width: 760px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }
  .gallery .photo,
  .gallery .photo:nth-child(1) {
    grid-column: span 1;
    grid-row: span 1;
  }
  .gallery .photo:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}

.facts {
  display: grid;
  gap: 18px;
}

.fact {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.fact svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--blue-light);
}

.fact b {
  display: block;
  color: var(--bright);
}

.hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.hours td {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.hours td:last-child {
  text-align: right;
  color: var(--bright);
}

.hours tr[aria-current='date'] td {
  color: var(--blue-light);
  font-weight: 600;
}

/* ---------- The call to action band and the footer ---------- */

.band {
  border-radius: var(--r-xl);
  padding: clamp(28px, 5vw, 56px);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(46, 167, 247, 0.22) 0%, rgba(46, 167, 247, 0) 55%),
    var(--card);
  border: 1px solid var(--blue-edge);
  box-shadow: 0 0 30px -12px var(--blue-glow);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.band h2 {
  margin: 0 0 6px;
}

.band p {
  margin: 0;
  color: var(--muted);
}

.foot {
  margin-top: 40px;
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--deep);
  font-size: 15px;
}

.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;
  }
}

@media (max-width: 520px) {
  .foot-grid {
    grid-template-columns: 1fr;
  }
}

.foot h4 {
  font-family: var(--condensed);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}

.foot ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.foot a {
  color: var(--ink);
  text-decoration: none;
}

.foot a:hover {
  color: var(--bright);
  text-decoration: underline;
}

.foot-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  color: var(--subtle);
  font-size: 14px;
}

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

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

.center {
  text-align: center;
}

/* ---------- The People's Bathhouse strip, and Mariana Tek's widget ---------- */

.strip {
  background: var(--blue);
  color: var(--on-blue);
  text-align: center;
  font-family: var(--condensed);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 5px 12px;
}

.social {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}

.social a {
  color: var(--muted);
}

.social a:hover {
  color: var(--blue-light);
}

/* Mariana's widgets are light, so they sit on a light panel, as on the old site. */
.mariana {
  background: #f4f6f8;
  color: #111;
  border-radius: var(--r-xl);
  padding: clamp(8px, 2vw, 18px);
  min-height: 420px;
}

.sched {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}

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

/* ---------- The first-visit guide ---------- */

.fv {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.fv-aside {
  position: sticky;
  top: 96px;
}

.fv-step + .fv-step {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.fv-step h2 {
  font-size: 30px;
  margin-top: 1.1em;
}

@media (max-width: 900px) {
  .fv {
    grid-template-columns: 1fr;
  }
  .fv-aside {
    position: static;
  }
}

.quote {
  font-family: var(--condensed);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.2;
  color: var(--bright);
  margin: 0 0 16px;
}

.quote::before {
  content: '“';
  display: block;
  font-family: var(--neon);
  font-size: 80px;
  line-height: 0.6;
  color: var(--tube-inside);
  -webkit-text-stroke: 1.4px var(--tube);
  text-shadow: 0 0 9px rgba(46, 167, 247, 0.55);
  margin-bottom: 14px;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
}

.field .choice input,
.choice input {
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
  accent-color: var(--blue);
}

fieldset.field input {
  width: 100%;
}
