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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--screen-background);
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

/* Page wrapper: positioning context for the screen texture + ghost words layers */
.page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  /* Eases the nav + top of the hero from near-black (matching the hero
     photo's actual dark corners, ~#0a0a0c) down into --screen-background,
     so the nav bar doesn't read as a flat-gray strip floating above a much
     darker photo. Fades out well before typical hero heights so it blends
     into the flat page color for the rest of the page. */
  background-image: linear-gradient(to bottom, #0a0a0c, var(--screen-background) 900px);
  background-repeat: no-repeat;
}

/* Ghost watermark words — web equivalent of the app's BodyGhostWords.
   Primary word sits large on the right, secondary smaller on the left. */
.ghost-words {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
}

.ghost-word {
  position: absolute;
  font-family: var(--font-display);
  color: var(--ghost-text);
  white-space: nowrap;
  line-height: 1;
}

.ghost-word--primary {
  right: -0.03em;
  top: 8%;
  font-size: clamp(64px, 12vw, 180px);
}

.ghost-word--secondary {
  left: -0.03em;
  bottom: 6%;
  font-size: clamp(36px, 7vw, 100px);
}

/* Real content sits above the ghost-word layer */
.page > .site-nav,
.page > main,
.page > footer {
  position: relative;
  z-index: 2;
}

/* Typography */
.display-xl,
.display-lg,
.display-md {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  margin: 0;
}

.display-xl {
  font-size: clamp(40px, 8vw, 88px);
  letter-spacing: -1px;
  line-height: 0.95;
}

.display-lg {
  font-size: clamp(28px, 5vw, 48px);
  letter-spacing: -0.5px;
  line-height: 1;
}

.display-md {
  font-size: clamp(20px, 3vw, 28px);
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--label-color);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--event-orange);
}

p {
  color: var(--text-muted);
  margin: 0 0 var(--space-4);
}

/* Bordered-box pattern (info cells, notes boxes, section boxes) */
.info-cell,
.bordered-box {
  border: 0.5px solid var(--grid-border);
  background: var(--info-cell-bg);
  padding: var(--space-3) var(--space-4);
}

.info-cell {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.info-cell .label {
  font-size: 8px;
  letter-spacing: 2px;
}

.info-cell .value {
  font-size: 11px;
  color: var(--text-white);
}

.info-cell-row {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.info-cell-row .info-cell {
  flex: 1 1 160px;
}

.bordered-box {
  padding: var(--space-5);
}

.bordered-box .label {
  display: block;
  margin-bottom: var(--space-3);
}

/* Layout helpers */
.container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.section {
  padding: var(--space-8) 0;
}

/* Nav shell — same max-width/centering as .container so the logo and links
   line up with the page content's actual edges instead of the full
   viewport width. */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content-max-width);
  margin: 0 auto;
  height: var(--nav-height);
  padding: 0 var(--space-5);
  border-bottom: 0.5px solid var(--grid-border);
}

.site-nav__logo {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 1px;
  text-decoration: none;
  color: var(--text-white);
}

.site-nav__links {
  display: flex;
  gap: var(--space-5);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__links a {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  color: var(--text-muted);
}

.site-nav__links a:hover,
.site-nav__links a[aria-current="page"] {
  color: var(--event-orange);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  border: 0.5px solid var(--grid-border);
  background: transparent;
  color: var(--text-white);
  cursor: pointer;
}

.btn-primary {
  background: var(--event-orange);
  border-color: var(--event-orange);
  color: #141618;
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
}

.btn-danger {
  background: transparent;
  border-color: var(--its-over-color);
  color: var(--its-over-color);
}

.btn-danger:disabled {
  opacity: 0.5;
  cursor: default;
}

/* Official Apple/Google Play store badges — self-contained artwork (own
   pill background, mark, and text baked into each SVG), so unlike .btn they
   get no background/border/padding of our own; that would fight the
   badge's own chrome. Both sized to the same 40px height so they match. */
.store-badge {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  opacity: 1;
  transition: opacity 0.15s ease;
}

.store-badge:hover {
  opacity: 0.85;
}

/* Apps aren't published yet — badges are present but inert (no href) until
   the real store links land. Dimmed by default, no hover-darken (that
   implied clickability); the `title` attribute still surfaces "Coming
   soon" on hover as a fallback to the visible label above the badges. */
.store-badge[aria-disabled="true"] {
  opacity: 0.55;
  cursor: default;
}

.store-badge[aria-disabled="true"]:hover {
  opacity: 0.55;
}

.store-badge img {
  height: 40px;
  width: auto;
}

/* Status indicators — qualified with .value so they beat .info-cell .value's
   specificity regardless of source order */
.value.status-positive,
.status-positive {
  color: var(--still-here-color);
}

.value.status-negative,
.status-negative {
  color: var(--its-over-color);
}

.value.status-pending,
.status-pending {
  color: var(--event-orange);
}

/* Footer */
.site-footer {
  border-top: 0.5px solid var(--grid-border);
  padding: var(--space-6) 0;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
}

.site-footer a {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
}

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

@media (max-width: 640px) {
  .site-nav__links {
    gap: var(--space-3);
  }
}
