/* Swanie's Portfolio — marketing site */
:root {
  --bg-deep: #000416;
  --bg-card: rgba(12, 18, 42, 0.72);
  --border: rgba(212, 168, 83, 0.18);
  --gold: #d4a853;
  --gold-dim: #9a7a3d;
  --cyan: #5eead4;
  --text: #e8ecf4;
  --muted: #8b95a8;
  --radius: 14px;
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.3, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  /* Anchor targets (#features) land below sticky header */
  scroll-padding-top: calc(7rem + env(safe-area-inset-top, 0px));
  max-width: 100%;
  overflow-x: hidden;
  /* Firefox / Android: stop sideways “rubber band” when scrolling vertically */
  overscroll-behavior-x: none;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text);
  background: var(--bg-deep);
  line-height: 1.55;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

/* Subtle texture under gradients — opacity follows system light/dark preference */
.bg-pattern {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("bg-pattern.svg");
  background-size: 200px 200px;
  background-repeat: repeat;
  opacity: 0.16;
}

@media (prefers-color-scheme: dark) {
  .bg-pattern {
    opacity: 0.26;
  }
}

@media (prefers-color-scheme: light) {
  .bg-pattern {
    opacity: 0.09;
  }
}

/* Ambient background — slow drift so the page feels alive */
.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(212, 168, 83, 0.14), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(94, 234, 212, 0.08), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(212, 168, 83, 0.07), transparent);
}

.bg-layer::after {
  content: "";
  position: absolute;
  inset: -15%;
  opacity: 0.55;
  background:
    radial-gradient(ellipse 55% 45% at 75% 45%, rgba(94, 234, 212, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 55%, rgba(212, 168, 83, 0.12), transparent 52%);
  animation: aurora-drift 22s ease-in-out infinite alternate;
}

@keyframes aurora-drift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-4%, 3%) scale(1.06);
  }
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1080px;
  min-width: 0;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

/* Header — sticks while the rest of the page scrolls underneath */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-left: -1.25rem;
  margin-right: -1.25rem;
  padding: max(0.65rem, env(safe-area-inset-top, 0px)) 1.25rem 0.85rem;
  margin-bottom: 0.25rem;
  background: rgba(0, 4, 22, 0.82);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border-bottom: 1px solid rgba(212, 168, 83, 0.14);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.35);
  transition:
    background 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    backdrop-filter 0.28s ease;
}

html.is-scrolled .site-header {
  background: rgba(0, 4, 22, 0.94);
  border-bottom-color: rgba(212, 168, 83, 0.28);
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(94, 234, 212, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  height: 44px;
  width: auto;
  max-width: min(160px, 38vw);
  border-radius: 10px;
  display: block;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  box-shadow: 0 0 24px rgba(212, 168, 83, 0.25);
  transition: transform 0.35s var(--ease-spring), filter 0.35s ease, box-shadow 0.35s ease;
}

.logo:hover .logo-mark {
  transform: scale(1.04);
  filter: drop-shadow(0 0 14px rgba(212, 168, 83, 0.45));
  box-shadow: 0 0 32px rgba(212, 168, 83, 0.35);
}

.logo-text-stack {
  display: block;
  line-height: 1.25;
  min-width: 0;
}

.logo-text {
  display: inline;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.logo-tagline {
  display: inline-block;
  width: 100%;
  margin-top: 0.2rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0;
  color: rgba(232, 236, 244, 0.78);
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.nav-links a:hover {
  color: var(--cyan);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* Hero */
.hero {
  padding: 2.25rem 0 3.5rem;
  text-align: center;
}

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

@keyframes badge-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.25), 0 0 20px rgba(94, 234, 212, 0.08);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.12), 0 0 28px rgba(94, 234, 212, 0.15);
  }
}

@keyframes gold-shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(94, 234, 212, 0.45);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  animation: fade-rise 0.65s var(--ease-out) backwards, badge-glow 4s ease-in-out infinite 0.8s;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(2rem, 5vw, 2.85rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 1rem;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
  animation: fade-rise 0.7s 0.08s var(--ease-out) backwards;
}

.hero h1 span {
  display: inline;
  background: linear-gradient(
    105deg,
    var(--gold) 0%,
    #f0d78c 35%,
    var(--gold) 55%,
    #c9a04a 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gold-shimmer 7s ease-in-out infinite;
  text-shadow: none;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 42ch;
  margin: 0 auto 2rem;
  animation: fade-rise 0.7s 0.16s var(--ease-out) backwards;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  animation: fade-rise 0.7s 0.24s var(--ease-out) backwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.22s var(--ease-spring), box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, #e8c56e 0%, var(--gold) 40%, #a67c2e 100%);
  background-size: 200% 200%;
  color: #0a0a12;
  box-shadow: 0 4px 24px rgba(212, 168, 83, 0.35);
}

.btn-primary:hover:not([aria-disabled="true"]):not(.is-disabled) {
  transform: translateY(-2px);
  background-position: 100% 50%;
  box-shadow: 0 8px 36px rgba(212, 168, 83, 0.5);
}

.btn-secondary:hover:not([aria-disabled="true"]):not(.is-disabled) {
  transform: translateY(-2px);
  background: rgba(94, 234, 212, 0.18);
  box-shadow: 0 8px 28px rgba(94, 234, 212, 0.12);
}

.btn-primary[disabled],
.btn-primary[aria-disabled="true"],
span.btn-primary {
  opacity: 0.55;
  cursor: default;
  box-shadow: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: rgba(94, 234, 212, 0.4);
  color: var(--cyan);
}

.btn-ghost:hover:not([aria-disabled="true"]):not(.is-disabled) {
  transform: translateY(-2px);
  background: rgba(94, 234, 212, 0.06);
}

.btn-secondary {
  background: rgba(94, 234, 212, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(94, 234, 212, 0.35);
}

.is-disabled,
.btn[aria-disabled="true"] {
  opacity: 0.6;
  pointer-events: none;
  cursor: default;
  box-shadow: none;
}

.hero-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  animation: fade-rise 0.65s 0.32s var(--ease-out) backwards;
}

.pitch-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 0.9rem;
  margin-top: -0.5rem;
  min-width: 0;
}

.pitch-item {
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.25s ease;
  animation: fade-rise 0.55s var(--ease-out) backwards;
}

.pitch-item:nth-child(1) {
  animation-delay: 0.12s;
}

.pitch-item:nth-child(2) {
  animation-delay: 0.2s;
}

.pitch-item:nth-child(3) {
  animation-delay: 0.28s;
}

.pitch-item:hover {
  transform: translateY(-4px);
  border-color: rgba(94, 234, 212, 0.28);
  box-shadow: 0 14px 40px rgba(0, 4, 22, 0.45), 0 0 0 1px rgba(212, 168, 83, 0.12);
}

.pitch-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.pitch-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Features */
section {
  margin-bottom: 3.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.section-sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1.75rem;
}

.feature-grid {
  display: grid;
  /* Explicit columns: auto-fill + minmax was unreliable in Firefox narrow viewports */
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
  min-width: 0;
}

@media (min-width: 560px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.25s ease;
  animation: fade-rise 0.5s var(--ease-out) backwards;
}

.feature-grid .card:nth-child(1) {
  animation-delay: 0.04s;
}

.feature-grid .card:nth-child(2) {
  animation-delay: 0.08s;
}

.feature-grid .card:nth-child(3) {
  animation-delay: 0.12s;
}

.feature-grid .card:nth-child(4) {
  animation-delay: 0.16s;
}

.feature-grid .card:nth-child(5) {
  animation-delay: 0.2s;
}

.feature-grid .card:nth-child(6) {
  animation-delay: 0.24s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 168, 83, 0.32);
  box-shadow: 0 16px 44px rgba(0, 4, 22, 0.5), 0 0 0 1px rgba(94, 234, 212, 0.1);
}

.card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.65rem;
  line-height: 1;
  transition: transform 0.35s var(--ease-spring);
}

.card:hover .card-icon {
  transform: scale(1.12) rotate(-4deg);
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Screenshots — full-width strip, arrows below (no side squeeze on narrow viewports) */
.shots-carousel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  margin-left: -1.25rem;
  margin-right: -1.25rem;
  padding: 0 0.15rem;
}

.shots-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 1rem;
}

.shots-arrow {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(212, 168, 83, 0.38);
  background: rgba(5, 6, 15, 0.92);
  color: rgba(212, 168, 83, 0.95);
  font-size: 1.85rem;
  font-weight: 300;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.shots-arrow:hover {
  border-color: rgba(212, 168, 83, 0.65);
  color: #f4e6c8;
  background: rgba(22, 26, 52, 0.95);
}

.shots-arrow:active {
  transform: scale(0.96);
}

.shots-arrow.is-disabled,
.shots-arrow:disabled {
  opacity: 0.32;
  cursor: default;
  pointer-events: none;
}

.shots-scroll {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: visible;
  /* Keep horizontal panning inside this row so it does not nudge the page (Firefox). */
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scroll-padding-left: 0.5rem;
  scroll-padding-right: 0.5rem;
  margin-left: 0;
  margin-right: 0;
  padding: 0.5rem 0.35rem 1rem;
  scrollbar-gutter: stable;
  scrollbar-color: rgba(212, 168, 83, 0.45) rgba(5, 6, 15, 0.5);
}

/* During any horizontal scroll, disable snap + card lift so hover doesn’t
   thrash transforms against the scrollbar (fixes flicker / blur). */
.shots-scroll.is-scrolling {
  scroll-snap-type: none;
}

.shots-scroll.is-scrolling .shot-frame {
  transform: none !important;
  transition: none;
}

.shots-scroll:focus-visible {
  outline: 2px solid rgba(212, 168, 83, 0.55);
  outline-offset: 4px;
}

.shots-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1rem;
  width: max-content;
  padding: 0.15rem 0 0.35rem;
}

.shot-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  width: clamp(200px, 52vw, 260px);
  scroll-snap-align: start;
}

/* Screenshot “device” — bezel + screen; earpiece is decorative chrome only */
.shot-frame {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  display: flex;
  flex-direction: column;
  padding: 11px 10px 14px;
  border-radius: 32px;
  background: linear-gradient(
    155deg,
    rgba(58, 54, 78, 0.92) 0%,
    rgba(22, 26, 52, 1) 42%,
    rgba(8, 10, 24, 1) 100%
  );
  border: 1px solid rgba(212, 168, 83, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    inset 0 -3px 14px rgba(0, 0, 0, 0.38),
    0 3px 0 rgba(0, 0, 0, 0.25),
    0 18px 44px rgba(0, 0, 0, 0.52);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease, border-color 0.3s ease;
}

.shot-device-screen {
  flex: 1;
  min-height: 0;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #05060f;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.55);
}

.shot-device-earpiece {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  max-width: 88px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.55), transparent);
  z-index: 2;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .shot-card:hover .shot-frame {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(212, 168, 83, 0.38);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      inset 0 -3px 14px rgba(0, 0, 0, 0.38),
      0 24px 56px rgba(0, 0, 0, 0.5),
      0 0 48px rgba(94, 234, 212, 0.1);
  }
}

.shot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shot-placeholder {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 1rem;
  background: rgba(5, 6, 15, 0.94);
  z-index: 1;
}

.shot-card figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-wrap: balance;
  max-width: 13rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  transition: color 0.2s ease;
}

.shot-caption-sub {
  display: block;
  font-weight: 500;
  font-size: 0.78rem;
  color: rgba(200, 206, 220, 0.88);
  margin-top: 0.12rem;
  transition: color 0.22s ease;
}

@media (hover: hover) and (pointer: fine) {
  .shot-frame:hover ~ figcaption,
  .shot-card figcaption:hover {
    color: rgba(244, 238, 220, 0.98);
  }

  .shot-frame:hover ~ figcaption .shot-caption-sub,
  .shot-card figcaption:hover .shot-caption-sub {
    color: rgba(224, 188, 112, 0.98);
  }
}

@media (max-width: 480px) {
  .shot-card figcaption {
    font-size: 0.8rem;
    max-width: 11.5rem;
    line-height: 1.35;
  }

  .shot-caption-sub {
    font-size: 0.74rem;
  }

  .shots-carousel {
    gap: 0.55rem;
    margin-left: -1rem;
    margin-right: -1rem;
  }

  .shots-nav {
    gap: 0.55rem 0.85rem;
  }

  .shots-arrow {
    width: 38px;
    height: 38px;
    font-size: 1.55rem;
  }
}

/* Pro strip */
.pro-strip {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  background: linear-gradient(
    125deg,
    rgba(94, 234, 212, 0.12) 0%,
    rgba(212, 168, 83, 0.14) 45%,
    rgba(94, 234, 212, 0.1) 100%
  );
  background-size: 200% 200%;
  border: 1px solid rgba(94, 234, 212, 0.28);
  animation: pro-strip-shift 10s ease-in-out infinite alternate;
  transition: box-shadow 0.35s ease, transform 0.35s var(--ease-out);
}

.pro-strip:hover {
  box-shadow: 0 12px 40px rgba(0, 4, 22, 0.35);
  transform: translateY(-2px);
}

@keyframes pro-strip-shift {
  0% {
    background-position: 0% 40%;
  }
  100% {
    background-position: 100% 60%;
  }
}

.pro-strip h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.pro-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 65ch;
}

.testing-card {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.testing-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.testing-card ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--muted);
}

.testing-card li {
  margin-bottom: 0.35rem;
}

.testing-links {
  margin: 0.25rem 0 0;
}

/* QR deck — site URL + optional Play tester invite (generated in-browser via js/qrcode.min.js) */
.qr-deck {
  min-width: 0;
  max-width: 100%;
  margin-top: 1.35rem;
  padding: 1.15rem 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(94, 234, 212, 0.28);
  background: rgba(12, 18, 42, 0.72);
}

.qr-deck-intro {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
  text-align: left;
  overflow-wrap: anywhere;
}

.qr-help {
  margin: 0 0 1rem;
  border-radius: 10px;
  border: 1px solid rgba(212, 168, 83, 0.15);
  background: rgba(0, 4, 22, 0.28);
  padding: 0 0.85rem;
}

.qr-help summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--gold-dim);
  padding: 0.65rem 0;
  list-style: none;
}

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

.qr-help summary::marker {
  content: "";
}

.qr-help-body {
  padding: 0 0 0.75rem;
  border-top: 1px solid rgba(212, 168, 83, 0.1);
}

.qr-help-body p {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.qr-deck-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
  justify-items: stretch;
  width: 100%;
  min-width: 0;
}

@media (max-width: 640px) {
  .qr-deck-grid {
    grid-template-columns: 1fr;
  }
}

.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: 1rem 0.85rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(0, 4, 22, 0.35);
}

.qr-card-title {
  margin: 0 0 0.35rem;
  width: 100%;
  max-width: 100%;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
}

.qr-card-sub {
  margin: 0 0 0.75rem;
  width: 100%;
  max-width: 100%;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.tester-qr-pending,
.tester-qr-live {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.tester-qr-live[hidden],
.tester-qr-pending[hidden] {
  display: none !important;
}

.tester-qr-placeholder-box {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px dashed rgba(212, 168, 83, 0.35);
  background: rgba(0, 4, 22, 0.35);
}

.tester-qr-placeholder-text {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
  text-align: left;
  overflow-wrap: anywhere;
}

.tester-qr-placeholder-text code {
  color: var(--gold-dim);
  font-size: 0.85em;
}

.tester-qr-frame {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: min(220px, 100%);
  margin-left: auto;
  margin-right: auto;
  padding: 0.5rem;
  border-radius: 12px;
  background: #fff;
  line-height: 0;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}

.qr-host {
  display: block;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
}

.tester-qr-frame .qr-host canvas,
.tester-qr-frame .qr-host img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
  border-radius: 6px;
}

.tester-qr-frame .qr-host table {
  display: block;
  max-width: 100% !important;
  border-radius: 6px;
  overflow: hidden;
}

.tester-qr-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  text-align: center;
  max-width: 100%;
}

.tester-qr-link:hover {
  text-decoration: underline;
}

.reviewers-details {
  margin-top: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(12, 18, 42, 0.45);
  padding: 0 1rem;
}

.reviewers-details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--cyan);
  padding: 0.85rem 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

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

.reviewers-details summary::marker {
  content: "";
}

.reviewers-details summary::after {
  content: "▸";
  font-size: 0.65rem;
  opacity: 0.75;
  transition: transform 0.2s ease;
}

.reviewers-details[open] summary::after {
  transform: rotate(90deg);
}

.reviewers-details-body {
  padding: 0 0 1rem;
  border-top: 1px solid rgba(212, 168, 83, 0.12);
}

.reviewers-details-body ul {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.reviewers-details-body li {
  margin-bottom: 0.45rem;
}

.reviewers-details-more {
  margin: 0.75rem 0 0;
}

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

.site-footer a {
  color: var(--cyan);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Legal / inner pages */
.legal-page {
  padding-top: 1rem;
  max-width: 720px;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.legal-page .meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.1rem;
  margin: 1.75rem 0 0.5rem;
  color: var(--gold);
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-page ul {
  padding-left: 1.25rem;
}

.legal-page .callout {
  background: var(--bg-card);
  border-left: 3px solid var(--gold);
  padding: 1rem 1rem 1rem 1.15rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--cyan);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.back-link:hover {
  text-decoration: underline;
}

/* Respect system preference: keep content readable without motion */
@media (prefers-reduced-motion: reduce) {
  .site-header {
    transition: none;
  }

  .bg-layer::after {
    animation: none;
    transform: none;
    opacity: 0.35;
  }

  .hero-badge {
    animation: none;
    box-shadow: none;
  }

  .hero h1 span {
    animation: none;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: var(--gold);
  }

  .hero-badge,
  .hero h1,
  .hero-lead,
  .cta-row,
  .hero-note,
  .pitch-item,
  .feature-grid .card {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .pro-strip {
    animation: none;
    background-size: 100% 100%;
  }

  .pitch-item:hover,
  .card:hover,
  .shot-card:hover .shot-frame,
  .shots-arrow:hover,
  .shots-arrow:active,
  .pro-strip:hover,
  .logo:hover .logo-mark {
    transform: none;
  }

  .card:hover .card-icon {
    transform: none;
  }

  .shot-card figcaption,
  .shot-caption-sub {
    transition: none;
  }

  .nav-links a::after {
    transition: none;
  }

  .reviewers-details summary::after {
    transition: none;
  }
}
