/* ==========================================================================
   Anime Wall — shared stylesheet
   Self-contained, no external dependencies. System font stack only.
   ========================================================================== */

/*
 * Palette sampled directly from the Play feature graphic (assets/img/feature-graphic.png)
 * via k-means dominant-colour extraction, so the site and the store artwork are one system:
 *   #060D35 28.6%  deep navy      -> page base
 *   #141C5D 22.5%  midnight blue  -> raised background
 *   #282988 13.9%  indigo         -> surfaces
 *   #5E3E9E 11.7%  slate violet   -> secondary accent
 *   #996DC2 10.6%  medium purple  -> primary accent
 *   #DDCDEF  5.4%  lavender       -> primary text
 *   #2267D1  4.8%  royal blue     -> tertiary accent
 *   #5AB5F5  2.5%  sky cyan       -> highlight / CTA
 */
:root {
  --bg-0: #04081f;
  --bg-1: #060d35;
  --bg-2: #0d1443;
  --surface: #141c5d;
  --surface-2: #282988;
  --border: rgba(153, 109, 194, 0.18);
  --border-strong: rgba(153, 109, 194, 0.4);
  --text-0: #f2ecfb;
  --text-1: #ddcdef;
  --text-2: #9c9ac4;
  --accent-1: #996dc2;   /* medium purple — from the artwork's mage */
  --accent-2: #5e3e9e;   /* slate violet */
  --accent-3: #5ab5f5;   /* sky cyan — the artwork's energy glow */
  --accent-4: #2267d1;   /* royal blue */
  --accent-grad: linear-gradient(120deg, var(--accent-1), var(--accent-3) 55%, var(--accent-4) 95%);
  --danger: #ff6b6b;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 40px rgba(153, 109, 194, 0.3);
  --max-w: 1180px;
  --nav-h: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text-1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  padding-left: 1.25em;
}

h1, h2, h3, h4 {
  color: var(--text-0);
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

::selection {
  background: var(--accent-2);
  color: #fff;
}

/* Focus visibility for keyboard users */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent-3);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

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

.skip-link {
  position: absolute;
  top: -50px;
  left: 12px;
  background: var(--accent-2);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Background aurora + noise ---------- */
.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--bg-0);
}

.bg-aurora::before,
.bg-aurora::after {
  content: "";
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  will-change: transform;
}

.bg-aurora::before {
  top: -25vmax;
  left: -15vmax;
  background: radial-gradient(circle at 30% 30%, var(--accent-2), transparent 70%);
  animation: aurora-drift-1 26s ease-in-out infinite alternate;
}

.bg-aurora::after {
  bottom: -30vmax;
  right: -20vmax;
  background: radial-gradient(circle at 60% 60%, var(--accent-1), transparent 70%);
  animation: aurora-drift-2 32s ease-in-out infinite alternate;
}

.bg-aurora .aurora-3 {
  position: absolute;
  top: 10vmax;
  right: -10vmax;
  width: 55vmax;
  height: 55vmax;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--accent-3), transparent 70%);
  filter: blur(100px);
  opacity: 0.22;
  animation: aurora-drift-3 38s ease-in-out infinite alternate;
}

@keyframes aurora-drift-1 {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(8vmax, 6vmax) scale(1.15); }
}

@keyframes aurora-drift-2 {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-6vmax, -8vmax) scale(1.1); }
}

@keyframes aurora-drift-3 {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-5vmax, 5vmax) scale(0.9); }
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 90%);
}

/* Sakura petal canvas layer */
#petal-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(6, 13, 53, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-0);
}

/* Real launcher icon — the app's own artwork, not a stand-in glyph. */
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  box-shadow: 0 0 18px rgba(153, 109, 194, 0.55);
  flex-shrink: 0;
}

/* Play feature graphic, shown as the hero's app card. */
.hero-banner {
  margin: 0 0 1.75rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 40px rgba(153, 109, 194, 0.18);
  max-width: 560px;
  animation: bannerIn 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-banner img {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes bannerIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-banner {
    animation: none;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--text-1);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text-0);
  background: var(--surface-2);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--accent-grad);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 4px 20px rgba(255, 93, 162, 0.3);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
  white-space: nowrap;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 93, 162, 0.45);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text-0);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(10, 10, 17, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 10px 20px 20px;
    gap: 4px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  }

  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links a {
    padding: 12px 14px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-cta {
    margin-top: 6px;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background 0.2s, border-color .2s;
}

.btn-primary {
  background: var(--accent-grad);
  background-size: 200% 200%;
  color: #fff;
  box-shadow: 0 10px 34px rgba(255, 93, 162, 0.35);
  animation: sweep-gradient 6s ease infinite;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 44px rgba(153, 109, 194, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-0);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-2px);
}

@keyframes sweep-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 60px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(153, 109, 194, 0.12);
  border: 1px solid rgba(153, 109, 194, 0.35);
  color: #d7c8ff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 8px var(--accent-3);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  font-weight: 800;
  margin-bottom: 20px;
}

.gradient-text {
  background: var(--accent-grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sweep-gradient 6s ease infinite;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-1);
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  color: var(--text-2);
  font-size: 0.88rem;
}

.hero-meta strong {
  color: var(--text-0);
}

/* Hero visual: floating wallpaper cards */
.hero-visual {
  position: relative;
  height: 460px;
  perspective: 1200px;
}

.float-card {
  position: absolute;
  width: 150px;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  animation: float-drift 7s ease-in-out infinite;
}

.float-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.float-card .fallback-tile {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 93, 162, 0.5), transparent 55%),
    radial-gradient(circle at 75% 75%, rgba(51, 224, 255, 0.45), transparent 55%),
    linear-gradient(160deg, var(--surface-2), var(--bg-2));
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.6rem;
}

.card-a { top: 4%; left: 6%; width: 168px; animation-delay: 0s; }
.card-b { top: 2%; right: 2%; width: 140px; animation-delay: 1.4s; animation-duration: 8s; }
.card-c { bottom: 10%; left: 22%; width: 130px; animation-delay: 0.6s; animation-duration: 6.4s; }
.card-d { bottom: 0%; right: 14%; width: 160px; animation-delay: 2.1s; animation-duration: 7.6s; }
.card-e { top: 38%; left: -2%; width: 118px; animation-delay: 3s; animation-duration: 6.8s; }

@keyframes float-drift {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-22px) rotate(2deg); }
}

.hero-glow-ring {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  animation: spin-slow 40s linear infinite;
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

/* ---------- Sections ---------- */
section {
  padding: 90px 0;
  position: relative;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
}

.section-head p {
  color: var(--text-2);
  font-size: 1.02rem;
}

.tag-pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-3);
  background: rgba(51, 224, 255, 0.1);
  border: 1px solid rgba(51, 224, 255, 0.3);
  margin-bottom: 14px;
}

/* reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger helper (JS sets --d) */
.stagger {
  transition-delay: var(--d, 0ms);
}

/* ---------- Stat counters ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 760px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-card {
  background: linear-gradient(160deg, var(--surface), var(--bg-1));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
}

.stat-num {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  color: var(--text-2);
  font-size: 0.85rem;
  margin-top: 6px;
}

/* ---------- Feature cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.feature-card {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--surface), var(--bg-1));
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
  transform-style: preserve-3d;
  will-change: transform;
}

.feature-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
  background: var(--accent-grad);
  box-shadow: 0 6px 20px rgba(153, 109, 194, 0.35);
}

.feature-card h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-2);
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- Collections marquee ---------- */
.marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee-scroll 34s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-1);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.chip .swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* ---------- Phone mockup / screenshots ---------- */
.screens-row {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 20px 6px 30px;
  scroll-snap-type: x mandatory;
}

.screens-row::-webkit-scrollbar {
  height: 8px;
}

.screens-row::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: 999px;
}

.phone-frame {
  flex: 0 0 auto;
  width: 220px;
  scroll-snap-align: center;
  border-radius: 34px;
  padding: 10px;
  background: linear-gradient(160deg, #232336, #14141e);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease-out);
}

.phone-frame:hover {
  transform: translateY(-10px) rotate(-1deg);
}

.phone-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-2);
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.phone-screen .screen-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
  font-size: 0.78rem;
  color: var(--text-2);
  background:
    radial-gradient(circle at 25% 15%, rgba(255, 93, 162, 0.35), transparent 55%),
    radial-gradient(circle at 80% 85%, rgba(51, 224, 255, 0.3), transparent 55%),
    linear-gradient(160deg, var(--surface-2), var(--bg-2));
}

.phone-notch {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 16px;
  border-radius: 999px;
  background: #0a0a10;
  z-index: 2;
}

/* ---------- Disclaimer callout ---------- */
.disclaimer-box {
  border: 1px solid rgba(255, 182, 72, 0.35);
  background: rgba(255, 182, 72, 0.07);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.disclaimer-box .icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.disclaimer-box p {
  margin: 0;
  color: var(--text-1);
  font-size: 0.94rem;
}

.disclaimer-box a {
  color: var(--accent-4);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 93, 162, 0.15), rgba(153, 109, 194, 0.15) 50%, rgba(51, 224, 255, 0.12));
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
}

.cta-band p {
  color: var(--text-1);
  max-width: 50ch;
  margin: 0 auto 28px;
}

/* ---------- FAQ (support page) ---------- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-0);
  font-size: 1rem;
  font-weight: 700;
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-question .chevron {
  transition: transform 0.3s var(--ease-out);
  color: var(--accent-3);
  flex-shrink: 0;
}

.faq-item.open .chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-out);
  padding: 0 20px;
  color: var(--text-2);
  font-size: 0.94rem;
}

.faq-item.open .faq-answer {
  padding-bottom: 18px;
}

/* ---------- Legal page layout ---------- */
.legal-page {
  padding-top: 60px;
}

.legal-header {
  max-width: 760px;
  margin: 0 auto 40px;
}

.legal-header .updated {
  color: var(--text-2);
  font-size: 0.9rem;
}

.legal-body {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 48px);
}

.legal-body h2 {
  font-size: 1.3rem;
  margin-top: 2em;
  padding-top: 0.4em;
  border-top: 1px solid var(--border);
}

.legal-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-body h3 {
  font-size: 1.05rem;
  margin-top: 1.4em;
}

.legal-body a {
  color: var(--accent-3);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-body code {
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
}

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.legal-toc a {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-1);
}

.legal-toc a:hover {
  border-color: var(--border-strong);
  color: var(--text-0);
}

.callout {
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.92rem;
}

.callout-info {
  background: rgba(51, 224, 255, 0.08);
  border: 1px solid rgba(51, 224, 255, 0.28);
}

.callout-warn {
  background: rgba(255, 182, 72, 0.08);
  border: 1px solid rgba(255, 182, 72, 0.3);
}

.dmca-steps {
  counter-reset: dmca;
  list-style: none;
  padding: 0;
}

.dmca-steps li {
  counter-increment: dmca;
  position: relative;
  padding: 14px 18px 14px 52px;
  margin-bottom: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.dmca-steps li::before {
  content: counter(dmca);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  display: grid;
  place-items: center;
}

/* ---------- Contact cards (support page) ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.contact-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}

.contact-card .icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.contact-card a.email {
  color: var(--accent-3);
  font-weight: 700;
  word-break: break-word;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 54px 0 34px;
  color: var(--text-2);
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 34px;
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

.footer-grid h4 {
  color: var(--text-0);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a:hover {
  color: var(--text-0);
}

.footer-disclaimer {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-size: 0.82rem;
  color: var(--text-2);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ---------- Utility ---------- */
.mt-lg { margin-top: 48px; }
.text-center { text-align: center; }

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal-scale {
    opacity: 1;
    transform: none;
  }

  #petal-canvas {
    display: none;
  }
}
