/* PISSn marketing site — shared styles */
:root {
  --gold: #f5c400;
  --gold-dark: #e0b000;
  --gold-soft: #ffe08a;
  --ink: #111111;
  --muted: #6b7280;
  --bg: #f7f7f8;
  --surface: #ffffff;
  --line: #e8e8ec;
  --danger: #e85d4e;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --max: 72rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.page-home {
  background: #d8dde0;
  overflow: hidden;
  height: 100svh;
  touch-action: pan-y;
}

#map {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.page-home .maplibregl-ctrl-attrib {
  background: rgba(247, 247, 248, 0.75) !important;
  font-size: 10px;
}

.page-home .site-nav,
.page-home .hero-shell {
  position: relative;
  z-index: 2;
}

a {
  color: inherit;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--gold-dark);
}

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

/* —— Nav —— */
.site-nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  left: 0;
  right: 0;
  transition: background 0.25s var(--ease), backdrop-filter 0.25s ease,
    box-shadow 0.25s ease;
}

body:not(.page-home) .site-nav {
  position: sticky;
  top: 0;
  max-width: none;
  padding-left: max(1.5rem, calc((100% - var(--max)) / 2 + 1.5rem));
  padding-right: max(1.5rem, calc((100% - var(--max)) / 2 + 1.5rem));
  background: rgba(247, 247, 248, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-nav a {
  text-decoration: none;
}

.nav-brand {
  font-weight: 800;
  font-style: italic;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

/* —— Hero (locked map + swapping card) —— */
.hero-shell {
  position: relative;
  height: 100svh;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 4.75rem 1rem 1.25rem;
  pointer-events: none;
}

.hero-stage {
  pointer-events: auto;
  width: min(40rem, calc(100% - 0.5rem));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  max-height: calc(100svh - 6rem);
}

.hero-card {
  position: relative;
  width: 100%;
  height: clamp(28rem, 62svh, 38rem);
  padding: 0;
  border-radius: 1.5rem;
  background: rgba(247, 247, 248, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 18px 50px rgba(17, 17, 17, 0.08);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  overflow: hidden;
  max-height: calc(100svh - 10.5rem);
}

button.btn {
  font: inherit;
}

.hero-panel {
  position: absolute;
  inset: 0;
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px);
  overflow: hidden;
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease),
    visibility 0.5s;
}

.hero-panel.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  z-index: 1;
}

.hero-panel.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  z-index: 0;
}

.hero-panel .band-title {
  margin-bottom: 0.85rem;
}

.hero-panel .steps {
  margin-top: 1.25rem;
  gap: 1.25rem;
}

.hero-panel .cta-row {
  margin-top: 0.25rem;
}

.hero-panel#panel-download {
  text-align: center;
}

.hero-panel#panel-download .band-copy {
  margin: 0 auto 1.35rem;
  text-align: center;
}

.hero-panel#panel-download .cta-row {
  justify-content: center;
}

.hero-panel#panel-download .trust-line {
  margin-top: 1.25rem;
}

.hero-chrome {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.hero-dots {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.hero-dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.28);
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s ease, width 0.2s var(--ease);
}

.hero-dot:hover {
  background: rgba(17, 17, 17, 0.45);
}

.hero-dot.is-active {
  width: 1.35rem;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 196, 0, 0.28);
}

.hero-hint {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.55);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.hero-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(17, 17, 17, 0.62);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.hero-legal a {
  text-decoration: none;
}

.hero-legal a:hover {
  color: var(--ink);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-brand {
  margin: 0 0 1rem;
  font-size: clamp(3.5rem, 14vw, 7.5rem);
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.hero-brand span {
  display: inline-block;
  border-bottom: 0.08em solid var(--gold);
  padding-bottom: 0.05em;
  animation: underline-in 1s var(--ease) 0.25s both;
}

@keyframes underline-in {
  from {
    border-bottom-color: transparent;
  }
  to {
    border-bottom-color: var(--gold);
  }
}

.hero-headline {
  margin: 0 0 0.75rem;
  max-width: 16ch;
  font-size: clamp(1.5rem, 4.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero-headline .hero-line {
  display: block;
}

.hero-sub {
  margin: 0 0 1.75rem;
  max-width: 34ch;
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 500;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  color: inherit;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(245, 196, 0, 0.35);
}

.btn-primary:hover {
  background: var(--gold-dark);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  color: var(--ink);
  border: 1px solid rgba(17, 17, 17, 0.08);
}

/* —— Below-fold panel (covers fixed map) —— */
.below {
  position: relative;
  z-index: 3;
  background: var(--bg);
  box-shadow: 0 -24px 48px rgba(17, 17, 17, 0.06);
}

.band {
  padding: clamp(3.5rem, 8vw, 6.5rem) 1.5rem;
  border-bottom: 1px solid var(--line);
}

.band-alt {
  background: var(--surface);
}

.band-inner {
  max-width: 42rem;
  margin: 0 auto;
}

.band-split {
  display: grid;
  gap: 1.5rem 3rem;
}

@media (min-width: 800px) {
  .band-split {
    grid-template-columns: 1fr 1.15fr;
    align-items: end;
    max-width: 52rem;
  }
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.band-title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.band-copy {
  margin: 0;
  font-size: 1.08rem;
  color: var(--muted);
  font-weight: 500;
  max-width: 36ch;
  line-height: 1.55;
}

.band-copy-wide {
  max-width: 42ch;
}

.steps {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  align-items: start;
}

.step-num {
  font-weight: 800;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold-dark);
  letter-spacing: -0.03em;
  line-height: 1.4;
}

.steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 36ch;
}

.band-download {
  background: linear-gradient(165deg, #fff8e0 0%, var(--bg) 55%);
  border-bottom: none;
  text-align: center;
}

.band-download-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.band-download .band-copy {
  margin-bottom: 1.5rem;
  text-align: center;
}

.band-download .cta-row {
  justify-content: center;
}

.trust-line {
  margin: 1.5rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* —— Interior pages —— */
.page {
  padding: 2.5rem 1.5rem 4rem;
  max-width: 42rem;
  margin: 0 auto;
  animation: rise 0.7s var(--ease) both;
}

.page-wide {
  max-width: 48rem;
}

.page h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.page .lede {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.page h2 {
  margin: 2.25rem 0 0.65rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page p,
.page li {
  color: #374151;
  font-size: 0.98rem;
}

.page ul {
  padding-left: 1.2rem;
}

.page li {
  margin-bottom: 0.4rem;
}

.contact-block {
  margin-top: 1.5rem;
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.contact-block strong {
  display: block;
  margin-bottom: 0.35rem;
}

.contact-block a {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
}

.meta {
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* —— Footer —— */
.site-footer {
  padding: 2rem 1.5rem 2.5rem;
  border-top: 1px solid var(--line);
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer-rich {
  max-width: none;
  display: grid;
  gap: 1.25rem;
  padding: 2.75rem 1.5rem 3rem;
  background: var(--surface);
  border-top: 1px solid var(--line);
  justify-items: start;
}

@media (min-width: 720px) {
  .site-footer-rich {
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: auto auto;
    padding-left: max(1.5rem, calc((100% - var(--max)) / 2 + 1.5rem));
    padding-right: max(1.5rem, calc((100% - var(--max)) / 2 + 1.5rem));
    align-items: start;
  }

  .site-footer-rich nav {
    justify-self: end;
  }

  .footer-legal {
    grid-column: 1 / -1;
  }
}

.footer-brand .nav-brand {
  display: inline-block;
  margin-bottom: 0.35rem;
}

.footer-brand p {
  margin: 0;
  font-weight: 600;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.site-footer a {
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover {
  color: var(--ink);
}

.footer-legal {
  margin: 0;
  font-size: 0.82rem;
}

@media (max-width: 640px) {
  .nav-links {
    gap: 0.65rem;
    font-size: 0.75rem;
  }

  .site-nav {
    padding: 0.85rem 1rem;
  }

  .hero-shell {
    padding: 3.75rem 0.65rem 0.55rem;
  }

  .hero-stage {
    width: 100%;
    gap: 0.5rem;
    max-height: calc(100dvh - 4.3rem);
  }

  .hero-card {
    height: calc(100dvh - 8.75rem);
    max-height: calc(100dvh - 8.75rem);
    border-radius: 1.2rem;
  }

  .hero-panel {
    padding: 1.15rem 1.1rem;
  }

  .hero-brand {
    font-size: clamp(2.35rem, 11vw, 3.1rem);
    margin-bottom: 0.55rem;
  }

  .hero-headline {
    font-size: clamp(1.15rem, 4.8vw, 1.4rem);
    margin-bottom: 0.45rem;
    max-width: none;
  }

  .hero-sub {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    max-width: none;
  }

  .hero-panel .band-title {
    font-size: clamp(1.3rem, 5.5vw, 1.65rem);
    margin-bottom: 0.45rem;
  }

  .hero-panel .band-copy,
  .hero-panel .band-copy-wide {
    font-size: 0.9rem;
    line-height: 1.45;
    max-width: none;
  }

  .hero-panel .steps {
    margin-top: 0.65rem;
    gap: 0.65rem;
  }

  .hero-panel .steps li {
    gap: 0.65rem 0.75rem;
  }

  .hero-panel .step-num {
    font-size: 0.9rem;
    line-height: 1.3;
  }

  .hero-panel .steps h3 {
    font-size: 0.95rem;
    margin-bottom: 0.12rem;
  }

  .hero-panel .steps p {
    font-size: 0.82rem;
    line-height: 1.35;
    max-width: none;
  }

  .hero-panel#panel-download .band-copy {
    margin-bottom: 1rem;
  }

  .hero-panel#panel-download .trust-line {
    margin-top: 0.85rem;
    font-size: 0.78rem;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
  }

  .btn {
    width: 100%;
    padding: 0.72rem 1rem;
    font-size: 0.86rem;
  }

  .hero-chrome {
    gap: 0.3rem;
  }

  .hero-hint {
    font-size: 0.65rem;
  }

  .hero-legal {
    font-size: 0.68rem;
    gap: 0.55rem;
  }

  .hero-dot {
    width: 0.45rem;
    height: 0.45rem;
  }

  .hero-dot.is-active {
    width: 1.1rem;
  }
}

@media (max-width: 640px) and (max-height: 720px) {
  .hero-card {
    height: calc(100dvh - 8.1rem);
    max-height: calc(100dvh - 8.1rem);
  }

  .hero-panel {
    padding: 0.95rem 1rem;
  }

  .hero-brand {
    font-size: 2.15rem;
    margin-bottom: 0.4rem;
  }

  .hero-headline {
    font-size: 1.1rem;
  }

  .hero-sub {
    font-size: 0.84rem;
    margin-bottom: 0.75rem;
  }

  .hero-panel .steps {
    gap: 0.5rem;
    margin-top: 0.5rem;
  }

  .hero-panel .steps p {
    font-size: 0.78rem;
  }

  .hero-hint {
    display: none;
  }
}

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

  .page,
  .reveal,
  .hero-brand span,
  .hero-panel,
  .hero-stage,
  .hero-card {
    animation: none !important;
    transition: none !important;
  }

  .hero-panel.is-active {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
  }

  .hero-panel:not(.is-active) {
    opacity: 0 !important;
    visibility: hidden !important;
  }

  .btn:hover {
    transform: none;
  }
}
