:root {
  --bg: #eaf6ff;
  --surface: rgba(247, 252, 255, 0.82);
  --surface-strong: #fdfefe;
  --ink: #183247;
  --muted: #547086;
  --line: rgba(24, 50, 71, 0.1);
  --brand: #3f8fd9;
  --brand-deep: #1f5f99;
  --leaf: #4e8a68;
  --sky: #7bc5f7;
  --gold: #f2b647;
  --berry: #2a6c93;
  --shadow: 0 28px 80px rgba(53, 109, 156, 0.16);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 8%, rgba(123, 197, 247, 0.38), transparent 24%),
    radial-gradient(circle at 88% 10%, rgba(63, 143, 217, 0.2), transparent 26%),
    radial-gradient(circle at 50% 30%, rgba(242, 182, 71, 0.16), transparent 22%),
    linear-gradient(180deg, #f6fbff 0%, #e9f5ff 44%, #dceeff 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 48px;
}

.page-shell-home {
  width: min(1260px, calc(100% - 28px));
}

body.splash-only {
  min-height: 100vh;
}

body.splash-only .page-shell-home {
  width: min(960px, calc(100% - 28px));
  min-height: 100vh;
  display: grid;
  align-items: center;
}

.splash-gate {
  position: relative;
  z-index: 14;
  padding-top: 18px;
}

.splash-gate-card {
  width: min(760px, 100%);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  padding: 34px 34px 36px;
  border-radius: 32px;
  border: 1px solid rgba(24, 50, 71, 0.08);
  background:
    radial-gradient(circle at 50% -10%, rgba(242, 182, 71, 0.28), transparent 30%),
    linear-gradient(180deg, rgba(240, 250, 255, 0.98), rgba(224, 241, 255, 0.95) 64%, rgba(214, 233, 247, 0.98) 100%);
  box-shadow: var(--shadow);
  text-align: center;
}

.splash-cloud,
.splash-window-grid,
.skyline-band {
  pointer-events: none;
}

.splash-cloud {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 30px rgba(63, 143, 217, 0.18);
  animation: driftCloud 10s ease-in-out infinite;
}

.splash-cloud-one {
  top: 24px;
  left: 26px;
  width: 118px;
  height: 34px;
}

.splash-cloud-two {
  right: 36px;
  top: 58px;
  width: 154px;
  height: 44px;
  animation-delay: 1.4s;
}

.splash-window-grid {
  position: absolute;
  right: 28px;
  bottom: 24px;
  display: grid;
  grid-template-columns: repeat(4, 12px);
  gap: 8px;
  opacity: 0.5;
}

.splash-window-grid span {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(255, 243, 198, 0.95), rgba(255, 222, 129, 0.9));
  box-shadow: 0 0 12px rgba(255, 214, 120, 0.35);
}

.splash-gate-card h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 0.94;
}

.splash-gate-card .hero-text {
  max-width: 42ch;
  margin-inline: auto;
}

.splash-gate-card .hero-actions {
  justify-content: center;
}

body.splash-only .splash-gate {
  padding: 32px 0;
}

body.role-ready .splash-gate {
  display: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(246, 251, 255, 0.9), rgba(246, 251, 255, 0.54));
}

.topbar-home {
  padding: 24px 0 8px;
}

.brand,
h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
}

.brand {
  font-size: 1.2rem;
  font-weight: 700;
}

.brand-home {
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
}

.nav a:hover {
  color: var(--brand-deep);
}

.nav-home a {
  padding: 8px 0;
}

.hero,
.section {
  margin-top: 28px;
}

.hero-single {
  grid-template-columns: 1fr;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}

.hero-copy,
.hero-card,
.panel {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.hero-copy {
  border-radius: var(--radius-xl);
  padding: 42px;
}

.home-main {
  display: grid;
  gap: 28px;
}

.cinema-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 20px;
  padding: 34px;
  overflow: hidden;
  border-radius: 38px;
  border: 1px solid rgba(24, 50, 71, 0.08);
  background:
    radial-gradient(circle at 50% -10%, rgba(242, 182, 71, 0.2), transparent 32%),
    linear-gradient(180deg, rgba(246, 252, 255, 0.98), rgba(230, 244, 255, 0.96) 55%, rgba(214, 233, 247, 0.98) 100%);
  box-shadow: var(--shadow);
}

.skyline-band {
  position: absolute;
  inset: auto 0 0 0;
  height: 148px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 0 36px 0 24px;
  opacity: 0.9;
}

.skyline-building {
  position: relative;
  display: block;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg, rgba(93, 157, 212, 0.92), rgba(51, 102, 156, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.skyline-building::before {
  content: "";
  position: absolute;
  inset: 12px 10px 10px;
  background:
    radial-gradient(circle, rgba(255, 232, 170, 0.9) 0 38%, transparent 42%) 0 0 / 18px 18px repeat;
  opacity: 0.82;
}

.skyline-building-a { width: 84px; height: 88px; }
.skyline-building-b { width: 114px; height: 122px; }
.skyline-building-c { width: 94px; height: 106px; }
.skyline-building-d { width: 136px; height: 138px; }
.skyline-building-e { width: 88px; height: 98px; }

.cinema-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(6px);
  pointer-events: none;
}

.cinema-glow-left {
  inset: 40px auto auto -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(242, 182, 71, 0.34), transparent 70%);
}

.cinema-glow-right {
  inset: auto -50px 10px auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(123, 197, 247, 0.3), transparent 70%);
}

.cinema-copy,
.cinema-stack {
  position: relative;
  z-index: 1;
}

.cinema-copy {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px 10px 16px 6px;
}

.cinema-copy h1 {
  font-size: clamp(3.2rem, 8vw, 6.3rem);
  line-height: 0.92;
  max-width: 11ch;
}

.eyebrow-home {
  color: var(--berry);
}

.hero-text-home {
  max-width: 54ch;
  font-size: 1.18rem;
}

.hero-actions-home {
  margin-top: 18px;
}

.button-home {
  min-height: 52px;
  padding-inline: 20px;
}

.role-preview-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(30, 34, 48, 0.08);
  background: rgba(255, 255, 255, 0.68);
  width: fit-content;
}

.role-preview-chip,
.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(30, 34, 48, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.role-preview-chip:hover,
.filter-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(63, 143, 217, 0.24);
}

.role-preview-chip.is-active,
.filter-chip.is-active {
  background: var(--brand-deep);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(31, 95, 153, 0.18);
}

.filter-chip-soft.is-active {
  background: linear-gradient(135deg, var(--brand), #66b4ee);
}

.hero-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.hero-stat-tile {
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(63, 143, 217, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(231, 244, 255, 0.88));
  box-shadow: 0 14px 30px rgba(63, 143, 217, 0.08);
}

.hero-stat-tile strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
  margin-bottom: 6px;
}

.hero-stat-tile span {
  color: var(--muted);
  font-size: 0.96rem;
}

.splash-choice-card {
  margin-top: 18px;
  padding: 20px 22px;
  border-radius: 24px;
  border: 1px solid rgba(30, 34, 48, 0.08);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 36px rgba(66, 42, 24, 0.08);
}

.splash-choice-card h3 {
  margin: 4px 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 0.98;
}

.cinema-stack {
  display: grid;
  gap: 14px;
  align-content: end;
}

.cinema-card {
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(63, 143, 217, 0.12);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 40px rgba(63, 143, 217, 0.1);
}

.cinema-card p,
.route-card p,
.immersive-card p {
  margin-bottom: 0;
}

.cinema-card-accent {
  background: linear-gradient(135deg, rgba(63, 143, 217, 0.96), rgba(123, 197, 247, 0.94));
  color: #fff;
}

.cinema-card-accent .mini-label,
.cinema-card-accent p {
  color: rgba(255, 255, 255, 0.88);
}

.cinema-card-dark {
  background: linear-gradient(145deg, rgba(24, 50, 71, 0.96), rgba(39, 87, 120, 0.96));
  color: #fff;
}

.cinema-card-dark .mini-label,
.cinema-card-dark p {
  color: rgba(255, 255, 255, 0.8);
}

.story-band {
  overflow: hidden;
  border-top: 1px solid rgba(63, 143, 217, 0.12);
  border-bottom: 1px solid rgba(63, 143, 217, 0.12);
  background: rgba(241, 249, 255, 0.8);
}

.story-marquee {
  display: flex;
  gap: 18px;
  padding: 16px 8px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  color: var(--muted);
}

.story-marquee span::after {
  content: "•";
  margin-left: 18px;
  color: var(--brand);
}

.section-home {
  padding-top: 4px;
}

.section-heading-home {
  margin-bottom: 22px;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.route-card {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  padding: 28px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.route-card::before {
  content: "";
  position: absolute;
  inset: auto -60px -80px auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 70%);
}

.route-card-applicant {
  background:
    linear-gradient(160deg, rgba(243, 250, 255, 0.96), rgba(225, 242, 255, 0.9)),
    linear-gradient(140deg, rgba(63, 143, 217, 0.16), rgba(123, 197, 247, 0.12));
}

.route-card-landlord {
  background:
    linear-gradient(160deg, rgba(240, 249, 255, 0.96), rgba(219, 236, 247, 0.9)),
    linear-gradient(140deg, rgba(31, 95, 153, 0.16), rgba(78, 138, 104, 0.12));
}

.route-card h3 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 0.95;
  margin: 10px 0 14px;
  max-width: 14ch;
}

.route-card.is-spotlight {
  transform: translateY(-3px);
  border-color: rgba(63, 143, 217, 0.24);
  box-shadow: 0 32px 70px rgba(63, 143, 217, 0.16);
}

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

.source-explorer {
  padding: 28px;
  display: grid;
  gap: 22px;
  background:
    linear-gradient(180deg, rgba(247, 252, 255, 0.98), rgba(228, 243, 255, 0.94));
}

.source-explorer-controls {
  display: grid;
  gap: 12px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.source-explorer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 18px;
}

.source-card {
  border-radius: 24px;
  border: 1px solid rgba(63, 143, 217, 0.12);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 40px rgba(63, 143, 217, 0.1);
}

.source-card-main {
  padding: 26px;
}

.source-card-main h3 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 0.96;
  max-width: 16ch;
}

.source-card-main p {
  color: var(--muted);
  max-width: 58ch;
}

.source-card-side {
  padding: 22px;
  background:
    linear-gradient(145deg, rgba(24, 50, 71, 0.95), rgba(39, 87, 120, 0.94));
  color: #fff;
}

.source-card-side .mini-label {
  color: rgba(255, 255, 255, 0.78);
}

.source-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 6px;
}

.source-details div {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(232, 245, 255, 0.92);
}

.source-details dt {
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--brand-deep);
  font-weight: 700;
}

.source-details dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

.source-step-list {
  margin: 18px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 12px;
}

.source-step-list li {
  color: rgba(255, 255, 255, 0.84);
}

.immersive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.immersive-card {
  min-height: 230px;
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(248, 252, 255, 0.96), rgba(231, 245, 255, 0.84));
}

.immersive-card h3 {
  font-size: 1.8rem;
  line-height: 0.98;
  margin: 8px 0 12px;
  max-width: 14ch;
}

.resource-grid-home .resource-card-home {
  background:
    linear-gradient(180deg, rgba(249, 253, 255, 0.96), rgba(233, 245, 255, 0.9));
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--brand-deep);
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 0.95;
}

.hero-text,
.section-heading p,
.calculator-copy,
.guide-card p,
.resource-card p,
#resultsCopy,
.mini-panel span:last-child {
  color: var(--muted);
}

.hero-text {
  max-width: 58ch;
  margin: 18px 0 0;
  font-size: 1.15rem;
}

.hero-actions,
.resource-links,
.legend,
.checker-actions,
.listing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 28px;
}

.language-switch {
  display: inline-flex;
  gap: 10px;
  margin-bottom: 18px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(31, 36, 48, 0.08);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--brand), #6dbaf0);
  color: #fff;
  box-shadow: 0 14px 28px rgba(63, 143, 217, 0.22);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(63, 143, 217, 0.16);
}

.button[disabled] {
  cursor: not-allowed;
  transform: none;
  opacity: 0.78;
}

.button-appstore {
  border-color: rgba(24, 50, 71, 0.16);
  background: linear-gradient(135deg, rgba(24, 50, 71, 0.94), rgba(49, 81, 110, 0.94));
  color: #fff;
  box-shadow: 0 14px 28px rgba(24, 50, 71, 0.18);
}

.button-appstore:hover {
  transform: none;
}

.splash-subnote {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.button-switch-role {
  min-height: 40px;
  padding-inline: 14px;
  white-space: nowrap;
}

.hero-scene {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(205, 229, 245, 0.7), rgba(140, 183, 214, 0.78));
}

.hero-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 42, 63, 0.08), rgba(15, 42, 63, 0.22) 52%, rgba(15, 42, 63, 0.62) 100%);
  animation: heroLightSweep 10s ease-in-out infinite;
}

.hero-scene-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-scene-overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 24px;
  color: #f8fcff;
}

.hero-scene-overlay h3 {
  margin: 8px 0 10px;
  font-size: 1.8rem;
  line-height: 0.96;
}

.hero-scene-overlay p {
  margin: 0;
  color: rgba(248, 252, 255, 0.86);
}

.hero-scene::after {
  animation: sceneFloat 12s ease-in-out infinite;
}

.hero-scene::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-image:
    linear-gradient(180deg, transparent 0%, transparent 16%, rgba(31, 84, 122, 0.95) 16%, rgba(31, 84, 122, 0.95) 100%),
    repeating-linear-gradient(90deg, transparent 0 26px, rgba(255, 231, 163, 0.82) 26px 36px, transparent 36px 52px);
  background-size: 100% 100%, 70% 42%;
  background-position: center bottom, center 74%;
}

.cinema-card,
.route-card,
.immersive-card,
.resource-card-home,
.source-card {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.cinema-card:hover,
.route-card:hover,
.immersive-card:hover,
.resource-card-home:hover,
.source-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 54px rgba(63, 143, 217, 0.18);
  border-color: rgba(63, 143, 217, 0.22);
}

.anim-tile {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  will-change: transform, opacity;
}

.anim-tile.anim-in {
  animation: tileReveal 620ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: var(--tile-delay, 0ms);
}

.anim-tile:hover {
  animation-play-state: paused;
}

.photo-story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@keyframes tileReveal {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
  }
  55% {
    opacity: 1;
    transform: translateY(-4px) scale(1.006);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.image-gallery-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 0.85fr;
  gap: 18px;
}

.image-gallery-card {
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(63, 143, 217, 0.16);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.image-gallery-card img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.image-gallery-card-large img {
  height: 100%;
  min-height: 300px;
}

.image-gallery-card figcaption {
  padding: 16px 18px 18px;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(248, 252, 255, 0.96), rgba(232, 245, 255, 0.92));
}

.photo-story-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(63, 143, 217, 0.16);
  box-shadow: var(--shadow);
}

.photo-story-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 50, 74, 0.08), rgba(18, 50, 74, 0.22) 55%, rgba(18, 50, 74, 0.65) 100%);
}

.photo-story-card-sky {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 240, 171, 0.92), transparent 20%),
    linear-gradient(180deg, rgba(173, 225, 255, 1) 0%, rgba(133, 202, 245, 1) 48%, rgba(87, 144, 190, 1) 100%);
}

.photo-story-card-stoop {
  background:
    linear-gradient(180deg, rgba(177, 225, 255, 1) 0%, rgba(144, 200, 239, 0.96) 36%, rgba(109, 146, 172, 0.8) 36%, rgba(120, 88, 70, 0.94) 100%);
}

.photo-story-card-keys {
  background:
    radial-gradient(circle at 70% 22%, rgba(255, 214, 119, 0.95), transparent 16%),
    linear-gradient(145deg, rgba(216, 241, 255, 1) 0%, rgba(148, 205, 240, 1) 60%, rgba(77, 124, 163, 1) 100%);
}

.photo-story-overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 24px 22px 22px;
  color: #f8fcff;
}

.photo-story-overlay h3 {
  margin: 8px 0;
  font-size: 1.5rem;
}

.photo-story-overlay p {
  margin: 0;
  color: rgba(248, 252, 255, 0.86);
}

.photo-story-card-sky::after,
.photo-story-card-stoop::after,
.photo-story-card-keys::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background-repeat: no-repeat;
  background-position: center bottom;
}

.photo-story-card-sky::after {
  background-image:
    linear-gradient(180deg, transparent 0%, transparent 18%, rgba(26, 82, 121, 0.95) 18%, rgba(26, 82, 121, 0.95) 100%),
    repeating-linear-gradient(90deg, transparent 0 26px, rgba(255, 231, 163, 0.82) 26px 36px, transparent 36px 52px);
  background-size: 100% 100%, 70% 42%;
  background-position: center bottom, center 78%;
}

.photo-story-card-stoop::after {
  background-image:
    linear-gradient(180deg, transparent 0%, transparent 12%, rgba(91, 59, 42, 0.98) 12%, rgba(91, 59, 42, 0.98) 100%),
    linear-gradient(90deg, rgba(210, 167, 128, 0.94) 0 22%, transparent 22% 30%, rgba(210, 167, 128, 0.94) 30% 54%, transparent 54% 62%, rgba(210, 167, 128, 0.94) 62% 86%, transparent 86% 100%);
  background-size: 100% 100%, 100% 72%;
  background-position: center bottom;
}

.photo-story-card-keys::after {
  background-image:
    radial-gradient(circle at 64% 52%, rgba(255, 215, 111, 0.92) 0 9%, transparent 10%),
    linear-gradient(135deg, transparent 0 44%, rgba(247, 203, 89, 0.95) 44% 56%, transparent 56% 100%),
    linear-gradient(180deg, transparent 0%, transparent 40%, rgba(72, 113, 149, 0.94) 40%, rgba(72, 113, 149, 0.94) 100%);
  background-size: 38% 38%, 38% 38%, 100% 100%;
  background-position: 68% 26%, 68% 26%, center bottom;
}

@keyframes driftCloud {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(10px); }
}

@keyframes heroLightSweep {
  0%, 100% {
    opacity: 0.88;
    transform: translateX(0);
  }
  50% {
    opacity: 1;
    transform: translateX(8px);
  }
}

@keyframes sceneFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

.lang-button {
  min-width: 110px;
}

.lang-button.is-active {
  background: var(--ink);
  color: #fff;
  border-color: transparent;
}

.button-block {
  width: 100%;
}

.text-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--brand-deep);
  font-weight: 700;
}

.favorites-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.favorite-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(31, 36, 48, 0.08);
}

.favorite-card p {
  margin: 4px 0 0;
  color: var(--muted);
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.hero-stats article,
.mini-panel,
.results-box,
.match-card,
.listing-card {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(31, 36, 48, 0.08);
}

.hero-stats article {
  padding: 16px;
}

.hero-stats strong,
.mini-panel strong {
  display: block;
  margin-bottom: 4px;
}

.hero-card {
  border-radius: var(--radius-xl);
  padding: 22px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.95), rgba(244, 239, 230, 0.95)),
    linear-gradient(135deg, rgba(63, 125, 74, 0.15), rgba(37, 116, 169, 0.15));
}

.hero-card.hero-scene {
  padding: 0;
  background: transparent;
}

.hero-card-grid {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 14px;
  min-height: 100%;
}

.mini-panel {
  padding: 18px;
}

.mini-panel.accent {
  background: linear-gradient(135deg, rgba(219, 92, 50, 0.9), rgba(201, 138, 18, 0.92));
  color: #fff;
}

.mini-panel.accent span:last-child,
.mini-panel.accent .mini-label {
  color: rgba(255, 255, 255, 0.85);
}

.mini-label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.8rem;
  color: var(--brand-deep);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section {
  padding: 10px 0 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 4px 0 0;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 0.95;
}

.section-heading p {
  max-width: 45ch;
  margin: 0;
  font-size: 1.05rem;
}

.search-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 18px;
}

.panel {
  border-radius: var(--radius-xl);
  padding: 22px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.visually-hidden {
  display: none !important;
}

.tab-button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.tab-button.is-active {
  background: var(--brand);
  color: #fff;
  border-color: transparent;
}

.subtab-button {
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.subtab-button.is-active {
  background: rgba(31, 36, 48, 0.92);
  color: #fff;
  border-color: transparent;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.subtab-panel {
  display: none;
}

.subtab-panel.is-active {
  display: block;
}

.stacked-panel {
  display: block;
}

.stacked-panel + .stacked-panel {
  margin-top: 18px;
}

.listings-filter-panel {
  padding: 24px;
}

.listings-filter-grid {
  margin-top: 0;
}

.search-panel {
  display: none;
}

.search-panel.is-active {
  display: block;
}

.question-step {
  display: none;
}

.question-step.is-active {
  display: block;
}

.question-flow {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

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

.official-panel {
  margin-top: 0;
}

.section8-card {
  background: rgba(220, 235, 247, 0.72);
}

.calculator-shell {
  margin-top: 18px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(31, 36, 48, 0.1);
}

.calculator-subtitle {
  margin: 0 0 16px;
  font-family: "Space Grotesk", sans-serif;
}

.calculator-results {
  background: rgba(242, 244, 247, 0.92);
}

.full-span {
  grid-column: 1 / -1;
}

.notice-warning {
  background: rgba(255, 243, 205, 0.85);
  border-color: rgba(201, 138, 18, 0.28);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.auth-grid,
.chat-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.role-card {
  padding: 28px;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
  gap: 18px;
}

.auth-hero {
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.95), rgba(244, 239, 230, 0.95)),
    linear-gradient(135deg, rgba(216, 92, 49, 0.12), rgba(44, 122, 168, 0.12));
}

.auth-steps-panel,
.auth-form-panel {
  padding: 28px;
}

.auth-role-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.auth-role-card {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 18px 20px;
  text-align: left;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 36, 48, 0.1);
  background: rgba(255, 255, 255, 0.76);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.auth-role-card:hover {
  transform: translateY(-1px);
  border-color: rgba(216, 92, 49, 0.22);
}

.auth-role-card strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
}

.auth-role-card span {
  color: var(--muted);
}

.auth-role-card.is-active {
  background: rgba(216, 92, 49, 0.1);
  border-color: rgba(216, 92, 49, 0.26);
  box-shadow: 0 18px 36px rgba(66, 42, 24, 0.08);
}

.auth-copy-block {
  margin-bottom: 18px;
}

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

.auth-divider {
  position: relative;
  margin: 22px 0;
  text-align: center;
  color: var(--muted);
}

.auth-divider::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  border-top: 1px solid rgba(31, 36, 48, 0.12);
  z-index: 0;
}

.auth-divider span {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0 12px;
  background: rgba(255, 250, 242, 0.95);
}

.chat-sidebar,
.chat-panel {
  padding: 24px;
}

.chat-panel-full {
  display: grid;
  gap: 16px;
}

.chat-messages {
  display: grid;
  gap: 14px;
  max-height: 420px;
  overflow: auto;
}

.chat-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.chat-toolbar-copy {
  display: grid;
  gap: 8px;
}

.chat-status {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

.chat-mode-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.chat-badge-live {
  background: rgba(78, 138, 104, 0.14);
  color: #2f6c47;
  border: 1px solid rgba(78, 138, 104, 0.24);
}

.chat-badge-fallback {
  background: rgba(242, 182, 71, 0.18);
  color: #8a5a0f;
  border: 1px solid rgba(242, 182, 71, 0.28);
}

.chat-badge-neutral {
  background: rgba(63, 143, 217, 0.12);
  color: var(--brand-deep);
  border: 1px solid rgba(63, 143, 217, 0.22);
}

.chat-message {
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 36, 48, 0.08);
}

.chat-message p {
  margin: 8px 0 0;
  color: var(--muted);
}

.chat-message-welcome {
  border-style: dashed;
}

.chat-message-assistant {
  background: rgba(255, 255, 255, 0.8);
}

.chat-message-user {
  background: rgba(219, 92, 50, 0.12);
}

.chat-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.chat-suggested-wrap {
  display: grid;
  gap: 10px;
}

.chat-suggested-wrap .eyebrow {
  margin-bottom: 0;
}

.chat-suggested-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chat-suggestion {
  min-height: 40px;
}

.chat-message-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.chat-message-links-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-deep);
}

.chat-message-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(63, 143, 217, 0.18);
  background: rgba(233, 245, 255, 0.95);
  color: var(--brand-deep);
  font-weight: 600;
}

.chat-message-link:hover {
  border-color: rgba(63, 143, 217, 0.32);
  background: rgba(221, 240, 255, 1);
}

textarea {
  width: 100%;
  min-height: 110px;
  border-radius: 16px;
  border: 1px solid rgba(31, 36, 48, 0.12);
  background: rgba(255, 255, 255, 0.9);
  padding: 14px 16px;
  resize: vertical;
}

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

.hero-home {
  background:
    radial-gradient(circle at top left, rgba(219, 92, 50, 0.18), transparent 36%),
    radial-gradient(circle at bottom right, rgba(37, 116, 169, 0.18), transparent 34%);
  border-radius: var(--radius-xl);
  padding: 12px;
}

.listing-source-card,
.feature-card,
.income-checker-card {
  margin-top: 0;
}

.hidden {
  display: none;
}

.filters {
  display: grid;
  gap: 14px;
  align-self: start;
}

.filters h3,
.results-summary h3,
.calculator h3,
.guide-card h3,
.resource-card h3 {
  margin: 0;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 600;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(31, 36, 48, 0.14);
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.9);
}

input:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  background: rgba(31, 36, 48, 0.06);
}

input[type="range"] {
  padding: 0;
}

.checkbox {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.checkbox input {
  width: 18px;
  height: 18px;
  min-height: auto;
}

.results-column {
  display: grid;
  gap: 18px;
}

.results-summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.legend {
  justify-content: end;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

.pill-green {
  background: rgba(63, 125, 74, 0.12);
  color: var(--leaf);
}

.pill-gold {
  background: rgba(201, 138, 18, 0.14);
  color: #7f5805;
}

.pill-sky {
  background: rgba(37, 116, 169, 0.12);
  color: var(--sky);
}

.listing-grid,
.calculator-grid,
.guide-grid,
.resource-grid,
.match-grid {
  display: grid;
  gap: 18px;
}

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

.listing-card {
  padding: 20px;
}

.listing-top,
.listing-meta,
.listing-tags,
.listing-footer,
.match-header,
.favorites-header,
.favorite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.listing-top,
.listing-footer,
.match-header,
.favorites-header {
  justify-content: space-between;
  align-items: center;
}

.listing-card h3,
.match-card h4 {
  margin: 0;
}

.listing-subtitle,
.listing-meta,
.listing-note,
.match-card p {
  color: var(--muted);
}

.listing-subtitle {
  margin: 8px 0 16px;
}

.listing-meta {
  margin-bottom: 16px;
}

.listing-tags {
  margin-bottom: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(31, 36, 48, 0.07);
  font-size: 0.88rem;
  font-weight: 700;
}

.tag.voucher {
  background: rgba(37, 116, 169, 0.14);
  color: var(--sky);
}

.tag.match {
  background: rgba(63, 125, 74, 0.14);
  color: var(--leaf);
}

.tag.near {
  background: rgba(201, 138, 18, 0.14);
  color: #7f5805;
}

.tag.miss {
  background: rgba(219, 92, 50, 0.12);
  color: var(--brand-deep);
}

.listing-price {
  font-size: 1.65rem;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
}

.listing-score {
  font-weight: 700;
  color: var(--leaf);
}

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

.calculator-wide {
  grid-column: 1 / -1;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

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

.results-box,
.match-card {
  padding: 18px;
}

.notice {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(201, 138, 18, 0.12);
  border: 1px solid rgba(201, 138, 18, 0.18);
}

.notice-soft {
  background: rgba(37, 116, 169, 0.08);
  border-color: rgba(37, 116, 169, 0.14);
}

.checker-actions {
  margin-top: 18px;
}

.results-box {
  margin-top: 18px;
}

.results-box strong {
  font-family: "Space Grotesk", sans-serif;
}

.results-list {
  display: grid;
  gap: 10px;
}

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

.match-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.match-card.good {
  border-color: rgba(63, 125, 74, 0.25);
}

@media (max-width: 980px) {
  .cinema-hero,
  .route-grid,
  .source-explorer-grid,
  .immersive-grid,
  .auth-shell,
  .auth-grid,
  .chat-layout {
    grid-template-columns: 1fr;
  }

  .cinema-copy h1 {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .page-shell,
  .page-shell-home {
    width: min(100% - 20px, 1260px);
  }

  .topbar,
  .section-heading {
    align-items: start;
  }

  .hero-copy,
  .panel,
  .cinema-hero {
    padding: 22px;
  }

  .cinema-hero {
    border-radius: 30px;
  }

  .hero-stats,
  .hero-stat-row,
  .feature-grid,
  .guide-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .source-details {
    grid-template-columns: 1fr;
  }
}

.match-card.near {
  border-color: rgba(201, 138, 18, 0.25);
}

.match-card.nope {
  border-color: rgba(219, 92, 50, 0.25);
}

.inline-status {
  font-weight: 700;
}

.inline-status.match {
  color: var(--leaf);
}

.inline-status.near {
  color: #7f5805;
}

.inline-status.miss {
  color: var(--brand-deep);
}

.guide-grid-wide,
.resource-grid-wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 36px 20px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero,
  .search-layout,
  .calculator-grid,
  .guide-grid,
  .guide-grid-wide,
  .feature-grid,
  .photo-story-grid,
  .image-gallery-grid,
  .resource-grid,
  .resource-grid-wide,
  .match-grid,
  .listing-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .results-summary {
    flex-direction: column;
    align-items: start;
  }

  .form-grid,
  .form-grid-wide,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .favorite-card {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
  }

  .topbar {
    position: static;
    flex-direction: column;
    align-items: start;
  }

  .hero-copy,
  .hero-card,
  .panel {
    padding: 18px;
  }

  .skyline-band {
    height: 110px;
    padding: 0 18px 0 12px;
  }

  .photo-story-card {
    min-height: 260px;
  }

  .hero-scene {
    min-height: 220px;
  }

  h1 {
    font-size: 2.55rem;
  }
}
