/* ---------------------------------------------------------------------------
   Halloween Jumpscare — website styles.

   The source of truth is the app: colours come from lib/ui/theme.dart
   (Palette), the night scene from lib/ui/widgets/spooky_backdrop.dart.
   Variable names repeat the Palette names, so a colour change in the app can
   be carried over by searching for the name, not the hex value.

   The site loads nothing from other servers and has no JavaScript.
   --------------------------------------------------------------------------- */

@font-face {
  /* Creepster by Font Diner, SIL Open Font License 1.1 (fonts/Creepster-OFL.txt). */
  font-family: 'Creepster';
  src: url('../fonts/Creepster-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --background: #0B0B10;
  --surface: #17141F;
  --surface-high: #221D2E;
  --orange: #FF7A1A;
  --ember: #FFB347;
  --purple: #9B5CFF;
  --purple-deep: #3A1458;
  --purple-text: #C6A6FF;
  --text: #F2EEE8;
  --text-muted: #B9B2C4;
  --error: #FF6B6B;
  --on-orange: #1A0E05;
  --outline: #5B5268;
  --border: #2E2640;

  --sky-top: #1B0E2B;
  --sky-mid: #120A1C;
  --flame-deep: #D9300A;

  --card: rgba(23, 20, 31, 0.86);
  --paper: rgba(17, 14, 24, 0.94);

  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-full: 999px;

  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s6: 24px;
  --s8: 32px;
  --s12: 48px;
  --s16: 64px;

  --measure: 68ch;
  --page: 1120px;

  --spooky: 'Creepster', 'Chiller', fantasy;
  --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
}

/* ------------------------------------------------------------------ reset */

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

html {
  scroll-behavior: smooth;
  /* Anchors would otherwise land under the sticky header. */
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--background);
  /* Same night sky as the app backdrop. */
  background-image: linear-gradient(
    180deg,
    var(--sky-top) 0%,
    var(--sky-mid) 45%,
    var(--background) 100%
  );
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ember);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--orange);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ------------------------------------------------------------ typography */

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  margin: 0 0 var(--s4);
}

/* Horror font for titles only, like the app (body text stays sans-serif). */
.spooky,
h1,
h2 {
  font-family: var(--spooky);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--orange);
  /* Ember gradient of SpookyHeader. Glow via filter: text-shadow would show
     through the transparent, gradient-clipped letters. */
  background: linear-gradient(180deg, var(--ember) 0%, var(--orange) 50%, var(--flame-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(255, 74, 0, 0.55)) drop-shadow(0 2px 1px #000);
}

h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.02;
}

h2 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  margin-top: var(--s12);
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: var(--s8);
  color: var(--text);
}

h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--s2);
}

p,
li {
  max-width: var(--measure);
}

p {
  margin: 0 0 var(--s4);
}

ul,
ol {
  padding-left: 1.3em;
  margin: 0 0 var(--s4);
}

li {
  margin-bottom: var(--s2);
}

strong {
  font-weight: 700;
}

small,
.small {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--text-muted);
  line-height: 1.55;
}

/* Orange section label of the app (sectionLabelStyle). */
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: var(--s3);
}

.tagline {
  color: var(--purple-text);
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ---------------------------------------------------------------- layout */

.page {
  position: relative;
  z-index: 1;
}

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--s6);
}

.wrap--narrow {
  max-width: 860px;
}

section {
  padding: var(--s12) 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--orange);
  color: var(--on-orange);
  padding: var(--s3) var(--s4);
  border-radius: 0 0 var(--r-md) 0;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

.center {
  text-align: center;
}

.center p,
.center .lead {
  margin-left: auto;
  margin-right: auto;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 16, 0.78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: var(--s2) var(--s6);
  display: flex;
  align-items: center;
  gap: var(--s4);
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s2);
  text-decoration: none;
  margin-right: auto;
}

.brand img {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 8px rgba(255, 90, 10, 0.55));
}

.brand span {
  font-family: var(--spooky);
  font-size: 1.45rem;
  letter-spacing: 0.05em;
  color: var(--orange);
  text-shadow: 0 0 10px rgba(255, 74, 0, 0.6);
}

.brand:hover span {
  color: var(--ember);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--s1);
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: var(--s2) var(--s3);
  border-radius: var(--r-full);
}

.site-nav a:hover {
  color: var(--text);
  background: var(--surface-high);
}

.site-nav a[aria-current='page'] {
  color: var(--orange);
  background: var(--surface-high);
}

@media (max-width: 560px) {
  .site-header__inner {
    justify-content: center;
  }
  .brand {
    margin-right: 0;
  }
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  min-height: 48px;
  padding: var(--s3) var(--s6);
  border-radius: 14px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.btn--primary {
  background: var(--orange);
  color: var(--on-orange);
  box-shadow: 0 6px 24px rgba(255, 90, 10, 0.3);
}

.btn--primary:hover {
  color: var(--on-orange);
  background: var(--ember);
  box-shadow: 0 8px 30px rgba(255, 90, 10, 0.45);
}

.btn--ghost {
  background: transparent;
  color: var(--ember);
  border-color: var(--outline);
}

.btn--ghost:hover {
  color: var(--ember);
  background: var(--surface-high);
}

/* Store badges: inactive until the app is live, and they look it. */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  border-radius: 14px;
  border: 1px dashed var(--outline);
  background: var(--card);
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.25;
}

.store-badge strong {
  display: block;
  color: var(--text);
  font-size: 0.98rem;
}

.store-badge svg {
  width: 26px;
  height: 26px;
  flex: none;
  fill: currentColor;
}

/* -----------------------------------------------------------------------
   Night scene behind every page (port of SpookyBackdrop): pale moon, fog,
   swaying tree, glowing eyes in the bushes, falling leaves, cobwebs and a
   hanging spider. Purely decorative, aria-hidden, never takes clicks.
   ----------------------------------------------------------------------- */

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.scene img {
  position: absolute;
  max-width: none;
}

/* Moon with a soft halo and two clouds drifting over its lower half. */
.scene__moon {
  position: absolute;
  left: 76%;
  top: 14vh;
  width: clamp(72px, 12vw, 150px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(232, 220, 192, 0.22);
  box-shadow: 0 0 60px 26px rgba(232, 220, 192, 0.1);
  transform: translateX(-50%);
}

.scene__moon::before,
.scene__moon::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(23, 12, 36, 0.72);
  filter: blur(7px);
}

.scene__moon::before {
  left: 45%;
  top: 62%;
  width: 120%;
  height: 30%;
  animation: cloud 26s ease-in-out infinite alternate;
}

.scene__moon::after {
  left: -20%;
  top: 80%;
  width: 90%;
  height: 22%;
  animation: cloud 34s ease-in-out infinite alternate-reverse;
}

@keyframes cloud {
  from { transform: translateX(-12%); }
  to { transform: translateX(14%); }
}

/* Tree on the left edge; the trunk base is at 18% of the image width. */
.scene__tree {
  left: 0;
  bottom: 6vh;
  height: min(74vh, 150vw);
  width: auto;
  transform-origin: 18% 100%;
  animation: sway 9s ease-in-out infinite alternate;
}

@keyframes sway {
  0% { transform: rotate(-0.5deg); }
  45% { transform: rotate(0.35deg); }
  100% { transform: rotate(0.7deg); }
}

.scene__ground {
  left: 0;
  bottom: 0;
  width: 100%;
  height: max(64px, 11vh);
}

.scene__web {
  top: 0;
  width: clamp(130px, 30vmin, 330px);
  height: auto;
}

.scene__web--left {
  left: 0;
}

.scene__web--right {
  right: 0;
  width: clamp(100px, 22vmin, 240px);
  transform: scaleX(-1);
}

/* Spider on its thread, bobbing up and down. */
.spider {
  position: absolute;
  right: 18%;
  top: 0;
  width: 30px;
  animation: dangle 7s ease-in-out infinite alternate;
}

.spider::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 60%;
  width: 1px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.2);
}

.spider img {
  position: relative;
  width: 100%;
  animation: wiggle 0.5s ease-in-out infinite alternate;
}

@keyframes dangle {
  from { transform: translateY(12vh); }
  to { transform: translateY(19vh); }
}

@keyframes wiggle {
  from { transform: rotate(-4deg); }
  to { transform: rotate(4deg); }
}

/* Drifting fog. */
.fog span {
  position: absolute;
  left: 0;
  width: 90vw;
  height: 11vh;
  border-radius: 50%;
  background: rgba(138, 106, 176, 0.09);
  filter: blur(28px);
  animation: drift linear infinite;
}

.fog--back span:nth-child(1) { top: 82vh; animation-duration: 70s; animation-delay: -10s; }
.fog--back span:nth-child(2) { top: 77vh; animation-duration: 95s; animation-delay: -48s; }
.fog--back span:nth-child(3) { top: 72vh; animation-duration: 120s; animation-delay: -90s; }
.fog--front span { background: rgba(138, 106, 176, 0.07); }
.fog--front span:nth-child(1) { top: 90vh; animation-duration: 55s; animation-delay: -20s; }
.fog--front span:nth-child(2) { top: 87vh; animation-duration: 75s; animation-delay: -60s; }

@keyframes drift {
  from { transform: translateX(-95vw); }
  to { transform: translateX(110vw); }
}

/* Eyes in the dark: fade in, blink, look around, fade out, stay hidden. */
.eyes {
  position: absolute;
  opacity: 0;
  transform: translate(-50%, -50%);
  animation: lurk ease-in-out infinite;
}

.eyes img {
  position: static;
  width: 100%;
  animation: blink linear infinite;
  animation-duration: inherit;
  animation-delay: inherit;
}

.eyes--1 { left: 30%; top: 93.5vh; width: 56px; animation-duration: 11s; }
.eyes--2 { left: 62%; top: 96.5vh; width: 45px; animation-duration: 13s; animation-delay: -4.5s; }
/* Kept near the edges so they don't sit on top of the text. */
.eyes--3 { left: 6%; top: 47vh; width: 50px; animation-duration: 9s; animation-delay: -2s; }
.eyes--4 { left: 88%; top: 56vh; width: 62px; animation-duration: 15s; animation-delay: -7s; }
.eyes--5 { left: 74%; top: 80vh; width: 40px; animation-duration: 10s; animation-delay: -1s; }
.eyes--6 { left: 5%; top: 78vh; width: 45px; animation-duration: 17s; animation-delay: -9s; }

@keyframes lurk {
  0% { opacity: 0; }
  8% { opacity: 1; }
  62% { opacity: 1; }
  70% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes blink {
  0%, 20%, 23.5%, 47%, 50.5%, 52%, 55.5%, 100% { transform: scaleY(1); }
  21.7%, 48.7%, 53.7% { transform: scaleY(0.06); }
}

/* Leaves falling from the tree. */
.leaf {
  position: absolute;
  top: 0;
  width: 22px;
  height: 10px;
  border-radius: 50%;
  background: #1A0F1C;
  animation: fall linear infinite;
}

.leaf--1 { left: 12%; animation-duration: 11s; }
.leaf--2 { left: 19%; animation-duration: 14s; animation-delay: -4.7s; }
.leaf--3 { left: 26%; animation-duration: 17s; animation-delay: -9.4s; }

@keyframes fall {
  0% { transform: translate(0, 35vh) rotate(0deg); opacity: 0; }
  6% { opacity: 1; }
  50% { transform: translate(16vw, 64vh) rotate(380deg); }
  94% { opacity: 1; }
  100% { transform: translate(35vw, 96vh) rotate(760deg); opacity: 0; }
}

/* Small screens: thinner scenery so it doesn't crowd the text. */
@media (max-width: 640px) {
  .scene__tree { height: 56vh; opacity: 0.85; }
  .eyes--3, .eyes--4 { display: none; }
}

/* Reduced motion: a still frame with the eyes open, like the app. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .eyes { opacity: 1; }
  .leaf { display: none; }
}

/* ------------------------------------------------------------------ hero */

.hero {
  padding: var(--s16) 0 var(--s12);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--s12);
  align-items: center;
}

.hero h1 {
  margin-bottom: var(--s6);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--s8);
}

.hero__note {
  margin-top: var(--s4);
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--s12);
    text-align: center;
  }
  .hero__grid p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero__actions {
    justify-content: center;
  }
}

/* Pumpkin with the ember glow of GlowingPumpkin. */
.glow-pumpkin {
  position: relative;
  display: grid;
  place-items: center;
}

.glow-pumpkin::before {
  content: '';
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 90, 10, 0.4) 0%,
    rgba(176, 32, 10, 0.13) 55%,
    rgba(176, 32, 10, 0) 72%
  );
  animation: flicker 3.2s ease-in-out infinite;
}

.glow-pumpkin img {
  position: relative;
}

@keyframes flicker {
  0%, 100% { opacity: 1; transform: scale(1); }
  18% { opacity: 0.82; transform: scale(0.97); }
  22% { opacity: 1; }
  55% { opacity: 0.9; transform: scale(1.03); }
  60% { opacity: 0.74; }
  64% { opacity: 0.95; }
}

/* -------------------------------------------------- phone mock of the app */

.phone {
  position: relative;
  width: min(320px, 100%);
  margin: 0 auto;
  aspect-ratio: 9 / 18.5;
  border-radius: 44px;
  border: 10px solid #050308;
  outline: 1px solid var(--outline);
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 45%, var(--background) 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 90px rgba(155, 92, 255, 0.18);
  overflow: hidden;
  text-align: left;
  font-size: 13px;
  line-height: 1.35;
}

.phone::before {
  /* Dynamic Island. */
  content: '';
  position: absolute;
  top: 9px;
  left: 50%;
  width: 84px;
  height: 22px;
  border-radius: 12px;
  background: #000;
  transform: translateX(-50%);
  z-index: 2;
}

.phone__screen {
  position: absolute;
  inset: 0;
  padding: 42px 12px 12px;
  overflow: hidden;
}

.phone__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.phone__header .glow-pumpkin img {
  width: 58px;
  height: 58px;
}

.phone__title {
  font-family: var(--spooky);
  line-height: 1.02;
  letter-spacing: 0.06em;
  background: linear-gradient(180deg, var(--ember) 0%, var(--orange) 50%, var(--flame-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 6px rgba(255, 74, 0, 0.6));
}

.phone__title span {
  display: block;
  font-size: 23px;
}

.phone__title span + span {
  font-size: 27px;
}

.phone__tagline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 12px;
  font-size: 11.5px;
  white-space: nowrap;
}

.phone__tagline::before,
.phone__tagline::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(155, 92, 255, 0), var(--purple));
}

.phone__tagline::after {
  background: linear-gradient(90deg, var(--purple), rgba(155, 92, 255, 0));
}

.phone__tonal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  border-radius: 18px;
  background: var(--purple-deep);
  color: var(--text);
  font-weight: 700;
  font-size: 12.5px;
}

.phone__label {
  margin: 12px 6px 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--orange);
}

.tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  margin-bottom: 5px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
}

.tile--selected {
  border: 1.5px solid var(--orange);
  background: rgba(34, 29, 46, 0.9);
}

.tile svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.tile__play {
  color: var(--purple-text);
}

.tile__play--locked {
  color: var(--outline);
}

.tile__name {
  font-weight: 600;
}

.tile--selected .tile__name {
  color: var(--orange);
}

.tile__meta {
  font-size: 11.5px;
  color: var(--text-muted);
}

.tile__text {
  flex: 1;
  min-width: 0;
}

.tile__end {
  width: 20px !important;
  height: 20px !important;
  color: var(--text-muted);
}

.tile--selected .tile__end {
  color: var(--orange);
}

.phone__fab {
  position: absolute;
  right: 14px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 0 12px;
  height: 50px;
  border-radius: 18px;
  background: var(--orange);
  color: var(--on-orange);
  font-family: var(--spooky);
  font-size: 18px;
  letter-spacing: 0.06em;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
}

.phone__fab svg {
  width: 26px;
  height: 26px;
}

/* The camouflage screen: completely black, as if the phone were off. */
.phone--off {
  width: min(220px, 100%);
  background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}

.phone--off::after {
  /* A faint reflection on the glass, nothing else. */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 38%);
}

/* ----------------------------------------------------------------- cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s4);
  margin-top: var(--s8);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s6);
}

.card h3 {
  margin-top: 0;
  margin-bottom: var(--s2);
  font-size: 1.1rem;
}

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

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--purple-deep);
  display: grid;
  place-items: center;
  margin-bottom: var(--s4);
  font-size: 1.5rem;
}

.card--accent {
  border: 1.5px solid var(--orange);
  box-shadow: 0 0 40px rgba(255, 90, 10, 0.12);
}

.chip {
  display: inline-block;
  margin-top: var(--s3);
  padding: 2px var(--s3);
  border-radius: var(--r-full);
  background: var(--purple-deep);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ------------------------------------------------------- split section */

.split {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: var(--s12);
  align-items: center;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------- steps */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s6);
  margin-top: var(--s8);
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  max-width: none;
  padding-top: 60px;
  position: relative;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--orange);
  color: var(--on-orange);
  display: grid;
  place-items: center;
  font-family: var(--spooky);
  font-size: 1.6rem;
  box-shadow: 0 0 22px rgba(255, 90, 10, 0.4);
}

.steps h3 {
  margin: 0 0 var(--s2);
}

.steps p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* ------------------------------------------------------ sound library */

.sounds {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--s2) var(--s3);
  margin: var(--s8) 0 0;
  padding: 0;
  list-style: none;
  font-size: 1rem;
}

.sounds li {
  max-width: none;
  margin: 0;
}

.sounds .tile {
  padding: 10px 14px;
}

.sounds .tile__meta {
  font-size: 0.85rem;
}

.badge-free {
  color: var(--orange);
  font-weight: 700;
}

/* -------------------------------------------------------------- pricing */

.prices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s4);
  margin-top: var(--s8);
}

.price {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s6);
  text-align: center;
}

.price--best {
  border: 1.5px solid var(--orange);
  box-shadow: 0 0 40px rgba(255, 90, 10, 0.15);
}

.price__amount {
  display: block;
  font-family: var(--spooky);
  font-size: 2.6rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--orange);
  text-shadow: 0 0 14px rgba(255, 74, 0, 0.55);
  margin: var(--s2) 0;
}

.price p {
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------- panels */

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s8);
}

.panel > h2:first-child,
.panel > h3:first-child {
  margin-top: 0;
}

.panel--warn {
  border-color: rgba(255, 107, 107, 0.5);
  background: linear-gradient(180deg, rgba(58, 20, 88, 0.55), rgba(23, 20, 31, 0.9));
}

/* Bullet list with orange marks instead of dots. */
.checklist {
  list-style: none;
  padding: 0;
  margin-top: var(--s4);
}

.checklist li {
  position: relative;
  padding-left: 1.9em;
}

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--orange);
  font-weight: 800;
}

.checklist--warn li::before {
  content: '✕';
  color: var(--error);
}

/* ---------------------------------------------------------------- tables */

.table-scroll {
  overflow-x: auto;
  margin: var(--s4) 0 var(--s6);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: 0.93rem;
}

th,
td {
  text-align: left;
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  font-weight: 700;
  background: var(--surface-high);
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

/* ----------------------------------------------------------------- notes */

.note {
  border-left: 4px solid var(--purple);
  background: rgba(58, 20, 88, 0.35);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: var(--s4) var(--s6);
  margin: var(--s6) 0;
}

.note p:last-child,
.note ul:last-child {
  margin-bottom: 0;
}

.note--warn {
  border-left-color: var(--ember);
  background: rgba(255, 122, 26, 0.09);
}

/* Unfinished content that must be filled in before store review. */
.note--todo {
  border-left-color: var(--error);
  background: rgba(255, 107, 107, 0.12);
}

/* ------------------------------------------------------------------- FAQ */

details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s4) var(--s6);
  margin-bottom: var(--s3);
}

details[open] {
  border-color: var(--outline);
}

summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s4);
}

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

summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--orange);
  flex: none;
  line-height: 1;
}

details[open] summary::after {
  content: '−';
}

details > *:not(summary) {
  margin-top: var(--s3);
}

details p:last-child,
details ol:last-child,
details ul:last-child {
  margin-bottom: 0;
}

.faq-group {
  font-family: var(--body);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
  background: none;
  -webkit-text-fill-color: currentColor;
  filter: none;
  margin: var(--s12) 0 var(--s4);
}

/* ------------------------------------------------------- legal documents */

.paper {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(var(--s6), 5vw, var(--s12));
  margin: var(--s8) auto 0;
}

.legal h2 {
  font-family: var(--body);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--text);
  background: none;
  -webkit-text-fill-color: currentColor;
  filter: none;
  margin-top: var(--s8);
  padding-top: var(--s6);
  border-top: 1px solid var(--border);
}

.legal h2 .num {
  color: var(--orange);
  margin-right: 0.35em;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s6);
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: var(--s2) 0 var(--s6);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--s6);
}

.toc {
  background: var(--surface-high);
  border-radius: var(--r-md);
  padding: var(--s6);
  margin-bottom: var(--s8);
}

.toc h2 {
  margin: 0 0 var(--s3) !important;
  padding: 0 !important;
  border: 0 !important;
  font-size: 1rem !important;
}

.toc ol {
  margin: 0;
  columns: 2;
  column-gap: var(--s8);
  font-size: 0.93rem;
}

.toc li {
  margin-bottom: var(--s1);
  break-inside: avoid;
}

@media (max-width: 640px) {
  .toc ol {
    columns: 1;
  }
}

.mail {
  font-weight: 700;
  font-size: 1.15rem;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: var(--s16);
  border-top: 1px solid var(--border);
  background: rgba(5, 3, 8, 0.9);
  padding: var(--s12) 0 var(--s8);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--s8);
}

@media (max-width: 760px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: var(--s6);
  }
}

.site-footer h4 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: var(--s3);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: var(--s2);
}

.site-footer a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.93rem;
}

.site-footer a:hover {
  color: var(--orange);
  text-decoration: underline;
}

.site-footer .brand {
  margin-bottom: var(--s3);
}

.site-footer__legal {
  margin-top: var(--s8);
  padding-top: var(--s6);
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.site-footer__legal p {
  max-width: none;
  margin-bottom: var(--s2);
}

/* ---------------------------------------------------------------- helpers */

.mt-0 { margin-top: 0; }
.mt-6 { margin-top: var(--s6); }
.mt-8 { margin-top: var(--s8); }
.mb-0 { margin-bottom: 0; }

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

/* ----------------------------------------------------------------- print */

@media print {
  .scene,
  .site-header,
  .site-footer {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
  .paper {
    background: none;
    border: 0;
    padding: 0;
  }
  h1,
  .legal h2 {
    -webkit-text-fill-color: #000;
    color: #000;
    filter: none;
    background: none;
  }
  a {
    color: #000;
  }
}
