@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../planetg/fonts/barlow-400.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../planetg/fonts/barlow-500.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../planetg/fonts/barlow-600.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../planetg/fonts/barlowcond-600.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../planetg/fonts/barlowcond-700.woff2") format("woff2");
}

:root {
  --ink: #070b14;
  --night: #0c1220;
  --scrim: rgba(7, 11, 20, 0.82);
  --white: #ffffff;
  --mute: rgba(255, 255, 255, 0.72);
  --amber: #ffb020;
  --amber-hot: #ffc857;
  --teal: #2ec4b6;
  --rail: rgba(255, 255, 255, 0.14);
  --rail-active: #ffffff;
  --danger: #ff5c5c;
  --font: "Barlow", system-ui, sans-serif;
  --display: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  --snap-pad: clamp(1.25rem, 4vw, 2rem);
  --rail-w: 3.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  height: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  font-weight: 400;
  color: var(--white);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--ink);
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

.feed {
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-padding: 0;
  overscroll-behavior-y: contain;
}

.snap {
  position: relative;
  min-height: 100dvh;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  isolation: isolate;
}

.snap__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.snap__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  transition: transform 1.2s var(--ease);
}

.snap.is-active .snap__media img {
  transform: scale(1);
}

.snap__media--map {
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(46, 196, 182, 0.12), transparent 55%),
    linear-gradient(160deg, #0a1628 0%, #091018 45%, #120a18 100%);
}

.snap__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 11, 20, 0.35) 0%, transparent 28%),
    linear-gradient(180deg, transparent 42%, rgba(7, 11, 20, 0.55) 68%, var(--scrim) 100%);
}

.snap__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: var(--snap-pad);
  padding-right: calc(var(--snap-pad) + var(--rail-w) + 0.75rem);
  padding-bottom: calc(var(--snap-pad) + 2.5rem);
  max-width: 42rem;
}

.author {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.author__mark {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.35rem;
  background: var(--night);
  border: 1px solid rgba(255, 255, 255, 0.25);
  object-fit: cover;
}

.caption {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.35rem, 9vw, 3.75rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 12ch;
}

.lede {
  margin: 0 0 1.25rem;
  font-size: clamp(1rem, 2.6vw, 1.125rem);
  line-height: 1.45;
  color: var(--mute);
  max-width: 34ch;
}

.lede strong {
  color: var(--white);
  font-weight: 600;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

.btn:active {
  transform: scale(0.97);
}

.btn--play {
  background: var(--white);
  color: var(--ink);
}

.btn--play:hover {
  background: var(--amber-hot);
}

.btn--play[aria-disabled="true"] {
  cursor: default;
  opacity: 0.92;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn__badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.65;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.list {
  margin: 0 0 1.15rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  max-width: 36ch;
}

.list li {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.55rem;
  align-items: start;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--mute);
}

.list li strong {
  color: var(--white);
  font-weight: 600;
}

.list svg {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  color: var(--amber);
}

.mode-stack {
  display: grid;
  gap: 0.9rem;
  margin: 0 0 1.15rem;
  max-width: 28rem;
}

.mode {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem 1rem;
  align-items: start;
  padding: 0 0 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.mode:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.mode__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.mode__desc {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  color: var(--mute);
  line-height: 1.4;
  grid-column: 1 / -1;
}

.mode__tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
  margin-top: 0.2rem;
}

.mode__tag--free {
  background: rgba(46, 196, 182, 0.2);
  color: var(--teal);
}

.mode__tag--pro {
  background: rgba(255, 176, 32, 0.2);
  color: var(--amber-hot);
}

.pro-points {
  margin: 0 0 1.15rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  max-width: 34ch;
}

.pro-points li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.95rem;
  color: var(--mute);
  line-height: 1.4;
}

.pro-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 12px rgba(255, 176, 32, 0.55);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
}

.legal-links a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  color: var(--mute);
}

.legal-links a:hover {
  color: var(--white);
}

.fine {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.68);
  max-width: 40ch;
}

.pin {
  position: absolute;
  z-index: 2;
  left: 58%;
  top: 38%;
  width: 2.4rem;
  height: 2.4rem;
  transform: translate(-50%, -100%);
  animation: pin-drop 0.9s var(--ease) both;
  pointer-events: none;
  will-change: transform, opacity;
}

@keyframes pin-drop {
  from {
    opacity: 0;
    transform: translate(-50%, -160%) scale(0.7);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -100%) scale(1);
  }
}

.pin svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}

.pin__pulse {
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.15rem 0 0;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(255, 176, 32, 0.35);
  animation: pulse 2.2s var(--ease) infinite;
}

.pin__glow {
  position: absolute;
  left: 50%;
  top: 92%;
  width: 4.5rem;
  height: 4.5rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 176, 32, 0.55) 0%, rgba(255, 176, 32, 0.12) 42%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

@keyframes pulse {
  0%,
  100% {
    transform: translateX(-50%) scale(0.7);
    opacity: 0.7;
  }
  50% {
    transform: translateX(-50%) scale(1.6);
    opacity: 0;
  }
}

.rail {
  position: fixed;
  right: max(0.65rem, env(safe-area-inset-right));
  bottom: max(4.5rem, calc(env(safe-area-inset-bottom) + 3.5rem));
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: center;
  width: var(--rail-w);
}

@media (min-width: 900px) {
  .rail {
    gap: 0.85rem;
  }
}

.rail__btn {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  color: var(--white);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.rail__btn svg {
  width: 1.35rem;
  height: 1.35rem;
}

.rail__btn:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.rail__btn.is-active,
.rail__btn[aria-current="true"] {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.rail__label {
  display: none;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: -0.35rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

@media (min-width: 900px) {
  .rail__label {
    display: block;
  }
}

.dots {
  position: fixed;
  right: max(1.35rem, calc(env(safe-area-inset-right) + 1.1rem));
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: none;
  flex-direction: column;
  gap: 0.45rem;
}

@media (min-width: 900px) {
  .dots {
    display: flex;
  }
}

.dots button {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  transform: scaleY(1);
  transform-origin: center;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.dots button[aria-current="true"] {
  background: var(--white);
  transform: scaleY(2.4);
}

.hint {
  position: fixed;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.4s var(--ease);
}

.hint.is-hidden {
  opacity: 0;
}

.hint svg {
  width: 1.1rem;
  height: 1.1rem;
  animation: bob 1.4s var(--ease) infinite;
}

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

.toast {
  position: fixed;
  left: 50%;
  bottom: max(4.5rem, calc(env(safe-area-inset-bottom) + 3.5rem));
  transform: translateX(-50%) translateY(1rem);
  z-index: 40;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  max-width: min(90vw, 22rem);
  text-align: center;
}

.toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (min-width: 900px) {
  .snap__body {
    max-width: 36rem;
    padding-left: clamp(2rem, 8vw, 6rem);
    padding-bottom: 3.5rem;
  }

  .caption {
    max-width: 14ch;
  }

  .rail {
    right: max(1.5rem, env(safe-area-inset-right));
    bottom: 50%;
    transform: translateY(20%);
  }
}

.legal-page {
  min-height: 100dvh;
  background:
    radial-gradient(ellipse 70% 50% at 20% 0%, rgba(46, 196, 182, 0.12), transparent 50%),
    var(--ink);
  color: var(--white);
  padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem) 3rem;
}

.legal-page a {
  color: var(--amber-hot);
}

.legal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-top a {
  color: var(--mute);
  text-decoration: none;
}

.legal-top a:hover {
  color: var(--white);
}

.legal-doc {
  max-width: 40rem;
}

.legal-doc h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 6vw, 3rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.legal-doc h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  margin: 1.75rem 0 0.5rem;
}

.legal-doc p,
.legal-doc li {
  color: var(--mute);
  line-height: 1.55;
}

.legal-lead {
  color: rgba(255, 255, 255, 0.55) !important;
  margin-top: 0;
}

.caption {
  max-width: 18ch;
}

.inline-h3 {
  display: inline;
  margin: 0;
  font: inherit;
  font-weight: 700;
  color: var(--white);
}

.snap--faq .snap__body {
  max-width: 28rem;
}

.faq {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.35rem;
  max-height: min(42vh, 22rem);
  overflow-y: auto;
  padding-right: 0.25rem;
  -webkit-overflow-scrolling: touch;
}

.faq__item {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.55rem;
  background: rgba(7, 11, 20, 0.45);
  backdrop-filter: blur(8px);
}

.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 0.7rem 0.85rem;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 0.98rem;
}

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

.faq__item summary::after {
  content: "+";
  float: right;
  color: var(--amber);
  font-weight: 700;
}

.faq__item[open] summary::after {
  content: "–";
}

.faq__item p {
  margin: 0;
  padding: 0 0.85rem 0.75rem;
  color: var(--mute);
  font-size: 0.92rem;
  line-height: 1.45;
}

@media (min-width: 900px) {
  .caption {
    max-width: 20ch;
  }

  .faq {
    max-height: none;
  }
}
