/* ============================================================
   BackStage — Design System
   Tokens, base, components, motion, responsive.
   ============================================================ */

:root {
  color-scheme: light dark;

  /* — Surfaces & ink — */
  --c-bg: #f6f7fb;
  --c-bg-soft: #eef0f7;
  --c-surface: #ffffff;
  --c-surface-2: #f8fafc;
  --c-text: #0b1020;
  --c-text-soft: #334155;
  --c-text-muted: #64748b;
  --c-border: #e6e8ef;
  --c-border-strong: #cbd5e1;
  --c-overlay: rgba(11, 16, 32, 0.55);

  /* — Brand (BackStage) — */
  --brand-1: #00a1e0;   /* primary  */
  --brand-2: #1976d2;   /* info     */
  --brand-3: #384b58;   /* secondary slate */
  --brand-grad: linear-gradient(135deg, #0077b3 0%, #00a1e0 45%, #4cc1ec 100%);
  --brand-grad-text: linear-gradient(110deg, #0077b3 0%, #1976d2 100%);
  --hero-grad: linear-gradient(135deg, #0077b3 0%, #00a1e0 45%, #4cc1ec 100%);
  --brand-tint: rgba(0, 161, 224, 0.10);
  --brand-ring: rgba(0, 161, 224, 0.35);

  /* — Feedback — */
  --c-success: #21ba45;
  --c-error: #c10015;
  --c-warn: #f2c037;

  /* — Accent (botões primários, links Ver, badges de destaque) — */
  --c-accent: #9c27b0;
  --c-accent-light: #ba68c8;
  --c-accent-dark: #7b1fa2;
  --c-accent-soft: rgba(156, 39, 176, 0.12);
  --c-accent-grad: linear-gradient(135deg, #ba68c8 0%, #9c27b0 50%, #7b1fa2 100%);
  --c-accent-ring: rgba(156, 39, 176, 0.35);
  --sh-glow-accent: 0 0 0 1px var(--c-accent-ring), 0 18px 40px -12px rgba(156, 39, 176, .45);

  /* — Spacing — base 4 — */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px;
  --s-12: 48px; --s-16: 64px; --s-20: 80px; --s-24: 96px; --s-32: 128px;

  /* — Radius — */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-2xl: 32px;
  --r-full: 999px;

  /* — Shadow — */
  --sh-1: 0 1px 2px rgba(11, 16, 32, .04), 0 1px 3px rgba(11, 16, 32, .04);
  --sh-2: 0 4px 12px rgba(11, 16, 32, .06), 0 2px 4px rgba(11, 16, 32, .04);
  --sh-3: 0 16px 32px -8px rgba(11, 16, 32, .12), 0 6px 14px -6px rgba(11, 16, 32, .06);
  --sh-4: 0 32px 64px -16px rgba(11, 16, 32, .22), 0 12px 24px -10px rgba(11, 16, 32, .08);
  --sh-glow: 0 0 0 1px var(--brand-ring), 0 18px 40px -12px rgba(0, 161, 224, .35);

  /* — Motion — */
  --m-fast: 150ms cubic-bezier(.4, 0, .2, 1);
  --m-base: 260ms cubic-bezier(.4, 0, .2, 1);
  --m-slow: 520ms cubic-bezier(.16, 1, .3, 1);

  /* — Layout — */
  --nav-h: 68px;
  --container: 1200px;
  --container-narrow: 760px;
  --z-nav: 50;
  --z-overlay: 80;
  --z-modal: 100;

  /* — Typography — */
  --ff-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-display: "Outfit", "Inter", system-ui, sans-serif;
}

/* — Dark theme — */
[data-theme="dark"],
[data-theme="system"] {
  /* keep light defaults; system overridden by media query below */
}

[data-theme="dark"] {
  --c-bg: #060912;
  --c-bg-soft: #0a0f1f;
  --c-surface: #0f1525;
  --c-surface-2: #141a2c;
  --c-text: #f1f5f9;
  --c-text-soft: #cbd5e1;
  --c-text-muted: #94a3b8;
  --c-border: #1f2740;
  --c-border-strong: #2f3a5a;
  --c-overlay: rgba(0, 0, 0, 0.7);
  --brand-1: #38bff0;
  --brand-2: #4d9fe8;
  --brand-3: #5d7383;
  --brand-grad: linear-gradient(135deg, #00598f 0%, #00a1e0 45%, #4dc6ef 100%);
  --brand-grad-text: linear-gradient(110deg, #7fd3f2 0%, #b5e4f7 100%);
  --hero-grad: linear-gradient(135deg, #04080f 0%, #0a1626 50%, #112c47 100%);
  --brand-tint: rgba(56, 191, 240, 0.12);
  --brand-ring: rgba(56, 191, 240, 0.45);
  --sh-1: 0 1px 2px rgba(0, 0, 0, .4);
  --sh-2: 0 4px 14px rgba(0, 0, 0, .5);
  --sh-3: 0 16px 32px -8px rgba(0, 0, 0, .6);
  --sh-4: 0 32px 64px -16px rgba(0, 0, 0, .7);
  --sh-glow: 0 0 0 1px var(--brand-ring), 0 18px 40px -12px rgba(56, 191, 240, .55);
}

@media (prefers-color-scheme: dark) {
  [data-theme="system"] {
    --c-bg: #060912;
    --c-bg-soft: #0a0f1f;
    --c-surface: #0f1525;
    --c-surface-2: #141a2c;
    --c-text: #f1f5f9;
    --c-text-soft: #cbd5e1;
    --c-text-muted: #94a3b8;
    --c-border: #1f2740;
    --c-border-strong: #2f3a5a;
    --c-overlay: rgba(0, 0, 0, 0.7);
    --brand-1: #38bff0;
    --brand-2: #4d9fe8;
    --brand-3: #5d7383;
    --brand-grad: linear-gradient(135deg, #00598f 0%, #00a1e0 45%, #4dc6ef 100%);
    --brand-grad-text: linear-gradient(110deg, #7fd3f2 0%, #b5e4f7 100%);
    --hero-grad: linear-gradient(135deg, #04080f 0%, #0a1626 50%, #112c47 100%);
    --brand-tint: rgba(56, 191, 240, 0.12);
    --brand-ring: rgba(56, 191, 240, 0.45);
    --sh-1: 0 1px 2px rgba(0, 0, 0, .4);
    --sh-2: 0 4px 14px rgba(0, 0, 0, .5);
    --sh-3: 0 16px 32px -8px rgba(0, 0, 0, .6);
    --sh-4: 0 32px 64px -16px rgba(0, 0, 0, .7);
    --sh-glow: 0 0 0 1px var(--brand-ring), 0 18px 40px -12px rgba(56, 191, 240, .55);
  }
}

/* ============================================================
   Base / reset
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--c-text);
  background: var(--c-bg);
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--m-fast);
}

a:hover {
  color: var(--brand-1);
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* — Focus ring (acessibilidade) — */
:focus-visible {
  outline: 2px solid var(--brand-1);
  outline-offset: 3px;
  border-radius: 4px;
}

button:focus-visible,
.button:focus-visible,
a.button:focus-visible {
  outline-offset: 4px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--brand-1);
  box-shadow: 0 0 0 3px var(--brand-tint);
}

/* — Skip link — */
.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  z-index: var(--z-modal);
  padding: 8px 14px;
  background: var(--c-surface);
  color: var(--c-text);
  border-radius: var(--r-sm);
  font-weight: 700;
  transition: top var(--m-fast);
}

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

/* ============================================================
   Background ambient — gradient mesh + waveform
   ============================================================ */

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

.ambient::before,
.ambient::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .55;
  will-change: transform;
}

.ambient::before {
  width: 580px;
  height: 580px;
  top: -180px;
  left: -120px;
  background: radial-gradient(circle, var(--brand-1), transparent 65%);
  animation: drift1 22s ease-in-out infinite alternate;
}

.ambient::after {
  width: 520px;
  height: 520px;
  top: 30vh;
  right: -180px;
  background: radial-gradient(circle, var(--brand-2), transparent 65%);
  animation: drift2 26s ease-in-out infinite alternate;
}

[data-theme="dark"] .ambient::before,
[data-theme="dark"] .ambient::after {
  opacity: .35;
}

@media (prefers-color-scheme: dark) {
  [data-theme="system"] .ambient::before,
  [data-theme="system"] .ambient::after {
    opacity: .35;
  }
}

@keyframes drift1 {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(60px, 80px); }
}

@keyframes drift2 {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(-80px, -50px); }
}

/* ============================================================
   Navigation
   ============================================================ */

.site-nav,
.admin-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  padding: 0 var(--s-8);
  background: color-mix(in srgb, var(--c-bg) 75%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--c-border) 70%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-logo {
  display: block;
  width: auto;
  height: 34px;
}

.brand-logo-dark {
  display: none;
}

.admin-brand-label {
  padding: 3px 10px;
  background: var(--brand-tint);
  color: var(--brand-1);
  border-radius: var(--r-full);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  color: var(--c-text-soft);
  font-size: 0.94rem;
  font-weight: 600;
}

.nav-links > a {
  position: relative;
  padding: 6px 0;
}

.nav-links > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--c-accent-grad);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--m-base);
}

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

.nav-links > a:hover,
.nav-links > a:focus-visible {
  color: var(--c-accent);
}

.nav-links > a.button:hover,
.nav-links > a.button:focus-visible {
  color: white;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  background: var(--c-surface);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-sm);
  color: var(--c-text);
  cursor: pointer;
  position: relative;
  z-index: calc(var(--z-nav) + 1);
}

.nav-toggle .material-symbols-outlined {
  font-size: 1.5rem;
}

.nav-toggle::after {
  /* Fallback visual caso Material Symbols ainda não tenha carregado */
  content: "";
  position: absolute;
  inset: 12px;
  background:
    linear-gradient(currentColor, currentColor) 0 25% / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 50% / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 75% / 100% 2px no-repeat;
  opacity: 0;
}

.nav-toggle:not(:has(.material-symbols-outlined))::after { opacity: 1; }
@supports not selector(:has(*)) {
  .nav-toggle .material-symbols-outlined:empty + ::after { opacity: 1; }
}

/* — Theme toggle (segmented) — */
.theme-toggle,
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
}

.theme-toggle button,
.lang-toggle button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--r-full);
  color: var(--c-text-muted);
  cursor: pointer;
  transition: background var(--m-fast), color var(--m-fast);
}

.theme-toggle button .material-symbols-outlined { font-size: 1.05rem; }

.theme-toggle button:hover,
.lang-toggle button:hover {
  background: var(--c-accent-soft);
  color: var(--c-accent);
}

.theme-toggle button[aria-pressed="true"],
.lang-toggle button[aria-pressed="true"] {
  background: var(--c-accent-grad);
  color: white;
  box-shadow: var(--sh-1);
}

.theme-toggle button[aria-pressed="true"] .material-symbols-outlined {
  color: white;
}

.lang-toggle button {
  width: 36px;
  overflow: hidden;
}

.lang-toggle button svg {
  display: block;
  width: 22px;
  height: auto;
  border-radius: 3px;
  opacity: 0.55;
  transition: opacity var(--m-fast), transform var(--m-fast);
}

.lang-toggle button:hover svg,
.lang-toggle button[aria-pressed="true"] svg {
  opacity: 1;
}

.lang-toggle button[aria-pressed="true"] svg {
  transform: scale(1.05);
  box-shadow: 0 0 0 1px rgba(255,255,255,.4);
}

/* ============================================================
   Buttons
   ============================================================ */

.button,
button.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 46px;
  padding: 0 var(--s-6);
  color: white;
  background: var(--c-accent-grad);
  background-size: 180% 180%;
  background-position: 0% 50%;
  border: 0;
  border-radius: var(--r-sm);
  font-weight: 700;
  letter-spacing: -0.005em;
  cursor: pointer;
  box-shadow: var(--sh-3), inset 0 0 0 1px rgba(255, 255, 255, .14);
  transition: transform var(--m-base), box-shadow var(--m-base), background-position var(--m-slow);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-glow-accent), inset 0 0 0 1px rgba(255, 255, 255, .2);
  background-position: 100% 50%;
}

.button:active {
  transform: translateY(0);
}

.button.secondary {
  color: var(--c-text);
  background: var(--c-surface);
  border: 1px solid var(--c-border-strong);
  box-shadow: var(--sh-1);
}

.button.secondary:hover {
  border-color: var(--c-accent);
  background: var(--c-surface);
  box-shadow: var(--sh-2);
  color: var(--c-accent);
}

.button.small {
  min-height: 38px;
  padding: 0 var(--s-4);
  font-size: 0.9rem;
}

.button .material-symbols-outlined {
  font-size: 1.15rem;
}

.link-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--brand-1);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: color var(--m-fast);
}

.link-button:hover {
  color: var(--c-text);
}

.link-button.danger {
  color: var(--c-error);
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: var(--s-12);
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--s-24) var(--s-6) var(--s-20);
}

/* Hero com fundo brand gradient full-bleed + curva no rodapé */
.hero-tinted {
  max-width: none;
  padding-left: max(var(--s-6), calc((100vw - var(--container)) / 2));
  padding-right: max(var(--s-6), calc((100vw - var(--container)) / 2));
  padding-bottom: calc(var(--s-20) + 80px);
  color: white;
  margin-bottom: -80px;
}

.hero-tinted::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--hero-grad);
}

.hero-tinted::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(800px circle at 0% 0%, rgba(255,255,255,.18), transparent 55%),
    radial-gradient(600px circle at 100% 100%, rgba(255,255,255,.12), transparent 55%);
}

[data-theme="dark"] .hero-tinted::after {
  background:
    radial-gradient(900px circle at 0% 0%, rgba(56, 191, 240, .10), transparent 60%),
    radial-gradient(700px circle at 100% 100%, rgba(156, 39, 176, .12), transparent 60%);
}

@media (prefers-color-scheme: dark) {
  [data-theme="system"] .hero-tinted::after {
    background:
      radial-gradient(900px circle at 0% 0%, rgba(56, 191, 240, .10), transparent 60%),
      radial-gradient(700px circle at 100% 100%, rgba(156, 39, 176, .12), transparent 60%);
  }
}

.hero-tinted .eyebrow {
  background: rgba(255,255,255,.18);
  color: white;
  border-color: rgba(255,255,255,.25);
}

.hero-tinted h1,
.hero-tinted .hero-copy p,
.hero-tinted .hero-copy .hero-lead,
.hero-tinted .hero-meta span { color: white; }

.hero-tinted .hero-meta strong {
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
}

.hero-tinted .hero-meta div {
  position: relative;
  padding-bottom: 8px;
}

.hero-tinted .hero-meta div::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: var(--c-accent);
  box-shadow: 0 0 12px rgba(156, 39, 176, 0.55);
}

.hero-tinted h1 .grad {
  background: linear-gradient(135deg, #fff, #e0e7ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-tinted .hero-copy p,
.hero-tinted .hero-copy .hero-lead { color: rgba(255,255,255,.85); }

.hero-tinted .button.secondary {
  background: rgba(255,255,255,.12);
  color: white;
  border-color: rgba(255,255,255,.4);
  backdrop-filter: blur(8px);
}

.hero-tinted .hero-meta { border-top-color: rgba(255,255,255,.2); }

.hero-divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 80px;
  display: block;
  z-index: 1;
  pointer-events: none;
}

.hero-divider path {
  fill: var(--c-bg);
}

.hero-copy > .eyebrow {
  margin-bottom: var(--s-4);
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1.05;
  font-weight: 700;
  margin-bottom: var(--s-5);
}

.hero h1 .grad {
  background: var(--brand-grad-text);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero p,
.hero .hero-lead {
  max-width: 540px;
  color: var(--c-text-muted);
  font-size: 1.14rem;
  line-height: 1.7;
  margin-bottom: var(--s-8);
}

.hero .hero-lead > :first-child { margin-top: 0; }
.hero .hero-lead > :last-child { margin-bottom: 0; }
.hero .hero-lead strong { color: inherit; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

.hero-meta {
  margin-top: var(--s-8);
  display: flex;
  gap: var(--s-8);
  flex-wrap: wrap;
}

.hero-meta div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-meta strong {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  line-height: 1;
  background: var(--brand-grad-text);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-meta span {
  font-size: 0.82rem;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* — Hero "studio" mockup — */
.product-preview {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 460px;
  padding: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-4);
  overflow: hidden;
  animation: float 8s ease-in-out infinite;
}

.product-preview::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  background: var(--brand-grad);
  border-radius: var(--r-2xl);
  opacity: .35;
  filter: blur(24px);
}

.product-preview-image {
  display: block;
  grid-template-rows: none;
  padding: 0;
  background: transparent;
  border: 0;
}

.product-preview-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-2xl);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  box-shadow: var(--sh-4);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 var(--s-4);
  background: var(--c-surface-2);
  border-bottom: 1px solid var(--c-border);
}

.window-bar::before,
.window-bar::after,
.window-bar > span {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--c-border-strong);
}

.window-bar::before { background: #ff5f56; }
.window-bar::after { background: #27c93f; }
.window-bar > span { background: #ffbd2e; }

.preview-grid {
  display: grid;
  grid-template-columns: 130px 1fr;
  padding: var(--s-5);
  gap: var(--s-4);
}

.preview-grid aside {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.preview-grid aside i {
  display: block;
  height: 10px;
  background: var(--c-surface-2);
  border-radius: var(--r-full);
}

.preview-grid aside i:nth-child(1) { width: 60%; }
.preview-grid aside i:nth-child(2) { width: 90%; background: var(--brand-tint); }
.preview-grid aside i:nth-child(3) { width: 75%; }
.preview-grid aside i:nth-child(4) { width: 50%; }

.preview-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}

.preview-tiles span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--c-text-soft);
}

.preview-waveform {
  height: 64px;
  margin: 0 var(--s-5) var(--s-5);
  background:
    linear-gradient(90deg, var(--brand-1), var(--brand-2));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 64' preserveAspectRatio='none'%3E%3Cg fill='black'%3E%3Crect x='2' y='28' width='4' height='8' rx='2'/%3E%3Crect x='10' y='22' width='4' height='20' rx='2'/%3E%3Crect x='18' y='14' width='4' height='36' rx='2'/%3E%3Crect x='26' y='6' width='4' height='52' rx='2'/%3E%3Crect x='34' y='20' width='4' height='24' rx='2'/%3E%3Crect x='42' y='10' width='4' height='44' rx='2'/%3E%3Crect x='50' y='24' width='4' height='16' rx='2'/%3E%3Crect x='58' y='2' width='4' height='60' rx='2'/%3E%3Crect x='66' y='18' width='4' height='28' rx='2'/%3E%3Crect x='74' y='12' width='4' height='40' rx='2'/%3E%3Crect x='82' y='24' width='4' height='16' rx='2'/%3E%3Crect x='90' y='8' width='4' height='48' rx='2'/%3E%3Crect x='98' y='20' width='4' height='24' rx='2'/%3E%3Crect x='106' y='4' width='4' height='56' rx='2'/%3E%3Crect x='114' y='22' width='4' height='20' rx='2'/%3E%3Crect x='122' y='14' width='4' height='36' rx='2'/%3E%3Crect x='130' y='6' width='4' height='52' rx='2'/%3E%3Crect x='138' y='20' width='4' height='24' rx='2'/%3E%3Crect x='146' y='10' width='4' height='44' rx='2'/%3E%3Crect x='154' y='24' width='4' height='16' rx='2'/%3E%3Crect x='162' y='2' width='4' height='60' rx='2'/%3E%3Crect x='170' y='18' width='4' height='28' rx='2'/%3E%3Crect x='178' y='12' width='4' height='40' rx='2'/%3E%3Crect x='186' y='24' width='4' height='16' rx='2'/%3E%3Crect x='194' y='8' width='4' height='48' rx='2'/%3E%3Crect x='202' y='20' width='4' height='24' rx='2'/%3E%3Crect x='210' y='4' width='4' height='56' rx='2'/%3E%3Crect x='218' y='22' width='4' height='20' rx='2'/%3E%3Crect x='226' y='14' width='4' height='36' rx='2'/%3E%3Crect x='234' y='6' width='4' height='52' rx='2'/%3E%3Crect x='242' y='20' width='4' height='24' rx='2'/%3E%3Crect x='250' y='10' width='4' height='44' rx='2'/%3E%3Crect x='258' y='24' width='4' height='16' rx='2'/%3E%3Crect x='266' y='2' width='4' height='60' rx='2'/%3E%3Crect x='274' y='18' width='4' height='28' rx='2'/%3E%3Crect x='282' y='12' width='4' height='40' rx='2'/%3E%3Crect x='290' y='24' width='4' height='16' rx='2'/%3E%3Crect x='298' y='8' width='4' height='48' rx='2'/%3E%3Crect x='306' y='20' width='4' height='24' rx='2'/%3E%3Crect x='314' y='4' width='4' height='56' rx='2'/%3E%3Crect x='322' y='22' width='4' height='20' rx='2'/%3E%3Crect x='330' y='14' width='4' height='36' rx='2'/%3E%3Crect x='338' y='6' width='4' height='52' rx='2'/%3E%3Crect x='346' y='20' width='4' height='24' rx='2'/%3E%3Crect x='354' y='10' width='4' height='44' rx='2'/%3E%3Crect x='362' y='24' width='4' height='16' rx='2'/%3E%3Crect x='370' y='2' width='4' height='60' rx='2'/%3E%3Crect x='378' y='18' width='4' height='28' rx='2'/%3E%3Crect x='386' y='12' width='4' height='40' rx='2'/%3E%3Crect x='394' y='24' width='4' height='16' rx='2'/%3E%3Crect x='402' y='8' width='4' height='48' rx='2'/%3E%3Crect x='410' y='20' width='4' height='24' rx='2'/%3E%3Crect x='418' y='4' width='4' height='56' rx='2'/%3E%3Crect x='426' y='22' width='4' height='20' rx='2'/%3E%3Crect x='434' y='14' width='4' height='36' rx='2'/%3E%3Crect x='442' y='6' width='4' height='52' rx='2'/%3E%3Crect x='450' y='20' width='4' height='24' rx='2'/%3E%3Crect x='458' y='10' width='4' height='44' rx='2'/%3E%3Crect x='466' y='24' width='4' height='16' rx='2'/%3E%3Crect x='474' y='2' width='4' height='60' rx='2'/%3E%3Crect x='482' y='18' width='4' height='28' rx='2'/%3E%3Crect x='490' y='12' width='4' height='40' rx='2'/%3E%3Crect x='498' y='24' width='4' height='16' rx='2'/%3E%3Crect x='506' y='8' width='4' height='48' rx='2'/%3E%3Crect x='514' y='20' width='4' height='24' rx='2'/%3E%3Crect x='522' y='4' width='4' height='56' rx='2'/%3E%3Crect x='530' y='22' width='4' height='20' rx='2'/%3E%3Crect x='538' y='14' width='4' height='36' rx='2'/%3E%3Crect x='546' y='6' width='4' height='52' rx='2'/%3E%3Crect x='554' y='20' width='4' height='24' rx='2'/%3E%3Crect x='562' y='10' width='4' height='44' rx='2'/%3E%3Crect x='570' y='24' width='4' height='16' rx='2'/%3E%3Crect x='578' y='2' width='4' height='60' rx='2'/%3E%3Crect x='586' y='18' width='4' height='28' rx='2'/%3E%3C/g%3E%3C/svg%3E")
    no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 64' preserveAspectRatio='none'%3E%3Cg fill='black'%3E%3Crect x='2' y='28' width='4' height='8' rx='2'/%3E%3Crect x='10' y='22' width='4' height='20' rx='2'/%3E%3Crect x='18' y='14' width='4' height='36' rx='2'/%3E%3Crect x='26' y='6' width='4' height='52' rx='2'/%3E%3Crect x='34' y='20' width='4' height='24' rx='2'/%3E%3Crect x='42' y='10' width='4' height='44' rx='2'/%3E%3Crect x='50' y='24' width='4' height='16' rx='2'/%3E%3Crect x='58' y='2' width='4' height='60' rx='2'/%3E%3Crect x='66' y='18' width='4' height='28' rx='2'/%3E%3Crect x='74' y='12' width='4' height='40' rx='2'/%3E%3Crect x='82' y='24' width='4' height='16' rx='2'/%3E%3Crect x='90' y='8' width='4' height='48' rx='2'/%3E%3Crect x='98' y='20' width='4' height='24' rx='2'/%3E%3Crect x='106' y='4' width='4' height='56' rx='2'/%3E%3Crect x='114' y='22' width='4' height='20' rx='2'/%3E%3Crect x='122' y='14' width='4' height='36' rx='2'/%3E%3Crect x='130' y='6' width='4' height='52' rx='2'/%3E%3Crect x='138' y='20' width='4' height='24' rx='2'/%3E%3Crect x='146' y='10' width='4' height='44' rx='2'/%3E%3Crect x='154' y='24' width='4' height='16' rx='2'/%3E%3Crect x='162' y='2' width='4' height='60' rx='2'/%3E%3Crect x='170' y='18' width='4' height='28' rx='2'/%3E%3Crect x='178' y='12' width='4' height='40' rx='2'/%3E%3Crect x='186' y='24' width='4' height='16' rx='2'/%3E%3Crect x='194' y='8' width='4' height='48' rx='2'/%3E%3Crect x='202' y='20' width='4' height='24' rx='2'/%3E%3Crect x='210' y='4' width='4' height='56' rx='2'/%3E%3Crect x='218' y='22' width='4' height='20' rx='2'/%3E%3Crect x='226' y='14' width='4' height='36' rx='2'/%3E%3Crect x='234' y='6' width='4' height='52' rx='2'/%3E%3Crect x='242' y='20' width='4' height='24' rx='2'/%3E%3Crect x='250' y='10' width='4' height='44' rx='2'/%3E%3Crect x='258' y='24' width='4' height='16' rx='2'/%3E%3Crect x='266' y='2' width='4' height='60' rx='2'/%3E%3Crect x='274' y='18' width='4' height='28' rx='2'/%3E%3Crect x='282' y='12' width='4' height='40' rx='2'/%3E%3Crect x='290' y='24' width='4' height='16' rx='2'/%3E%3Crect x='298' y='8' width='4' height='48' rx='2'/%3E%3Crect x='306' y='20' width='4' height='24' rx='2'/%3E%3Crect x='314' y='4' width='4' height='56' rx='2'/%3E%3Crect x='322' y='22' width='4' height='20' rx='2'/%3E%3Crect x='330' y='14' width='4' height='36' rx='2'/%3E%3Crect x='338' y='6' width='4' height='52' rx='2'/%3E%3Crect x='346' y='20' width='4' height='24' rx='2'/%3E%3Crect x='354' y='10' width='4' height='44' rx='2'/%3E%3Crect x='362' y='24' width='4' height='16' rx='2'/%3E%3Crect x='370' y='2' width='4' height='60' rx='2'/%3E%3Crect x='378' y='18' width='4' height='28' rx='2'/%3E%3Crect x='386' y='12' width='4' height='40' rx='2'/%3E%3Crect x='394' y='24' width='4' height='16' rx='2'/%3E%3Crect x='402' y='8' width='4' height='48' rx='2'/%3E%3Crect x='410' y='20' width='4' height='24' rx='2'/%3E%3Crect x='418' y='4' width='4' height='56' rx='2'/%3E%3Crect x='426' y='22' width='4' height='20' rx='2'/%3E%3Crect x='434' y='14' width='4' height='36' rx='2'/%3E%3Crect x='442' y='6' width='4' height='52' rx='2'/%3E%3Crect x='450' y='20' width='4' height='24' rx='2'/%3E%3Crect x='458' y='10' width='4' height='44' rx='2'/%3E%3Crect x='466' y='24' width='4' height='16' rx='2'/%3E%3Crect x='474' y='2' width='4' height='60' rx='2'/%3E%3Crect x='482' y='18' width='4' height='28' rx='2'/%3E%3Crect x='490' y='12' width='4' height='40' rx='2'/%3E%3Crect x='498' y='24' width='4' height='16' rx='2'/%3E%3Crect x='506' y='8' width='4' height='48' rx='2'/%3E%3Crect x='514' y='20' width='4' height='24' rx='2'/%3E%3Crect x='522' y='4' width='4' height='56' rx='2'/%3E%3Crect x='530' y='22' width='4' height='20' rx='2'/%3E%3Crect x='538' y='14' width='4' height='36' rx='2'/%3E%3Crect x='546' y='6' width='4' height='52' rx='2'/%3E%3Crect x='554' y='20' width='4' height='24' rx='2'/%3E%3Crect x='562' y='10' width='4' height='44' rx='2'/%3E%3Crect x='570' y='24' width='4' height='16' rx='2'/%3E%3Crect x='578' y='2' width='4' height='60' rx='2'/%3E%3Crect x='586' y='18' width='4' height='28' rx='2'/%3E%3C/g%3E%3C/svg%3E")
    no-repeat center / contain;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* ============================================================
   Sections / containers
   ============================================================ */

.section,
.admin-page {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--s-20) var(--s-6);
}

.section.muted {
  max-width: none;
  padding-left: max(var(--s-6), calc((100vw - var(--container)) / 2));
  padding-right: max(var(--s-6), calc((100vw - var(--container)) / 2));
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.section.muted > * { max-width: var(--container); margin-left: auto; margin-right: auto; }

.section.narrow,
.narrow-admin {
  max-width: var(--container-narrow);
}

.page-top {
  padding-top: calc(var(--nav-h) + var(--s-12));
}

.section-heading {
  max-width: 720px;
  margin: 0 0 var(--s-12);
  text-align: left;
}

.section-heading::before {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-bottom: var(--s-4);
  background: var(--brand-grad);
  border-radius: 2px;
}

.section-heading-with-media {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-10);
  align-items: center;
}

.section-heading-with-media::before {
  grid-column: 1;
}

.chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-1) 12%, transparent);
  color: var(--brand-1);
  font-size: 0.78rem;
  font-weight: 600;
}

.chip-muted {
  background: color-mix(in srgb, var(--c-text-muted) 12%, transparent);
  color: var(--c-text);
  border: 1px solid var(--c-border);
}

/* — Cookie consent banner — */
.cookie-banner {
  position: fixed;
  left: var(--s-4);
  right: var(--s-4);
  bottom: var(--s-4);
  max-width: 720px;
  margin: 0 auto;
  padding: var(--s-4) var(--s-5);
  background: var(--c-surface);
  color: var(--c-text);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-2);
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
  z-index: 9999;
  animation: cookie-in 0.4s ease-out;
}

.cookie-banner[hidden] { display: none; }

.cookie-banner-text {
  flex: 1 1 320px;
  margin: 0;
  font-size: 0.9rem;
  color: var(--c-text-soft);
  line-height: 1.5;
}

.cookie-banner-actions {
  display: flex;
  gap: var(--s-2);
  align-items: center;
  flex-wrap: wrap;
}

.cookie-banner-actions .button { padding: 8px 16px; font-size: 0.88rem; }

@keyframes cookie-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .cookie-banner { padding: var(--s-3); }
  .cookie-banner-actions { width: 100%; justify-content: flex-end; }
}

.section-heading-with-media .section-heading-text { min-width: 0; }
.section-heading-with-media .section-heading-text p { max-width: none; }

.section-heading-media {
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-2);
  background: var(--c-surface-2);
}

.section-heading-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 1024px) {
  .section-heading-with-media {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }
}

.section-heading h1,
.section-heading h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.15;
}

.section-heading h1 + p,
.section-heading h2 + p,
.section-heading p {
  margin-top: var(--s-4);
  color: var(--c-text-muted);
  font-size: 1.05rem;
  max-width: 620px;
}

.section-heading .eyebrow + h1,
.section-heading .eyebrow + h2 {
  margin-top: var(--s-3);
}

.eyebrow {
  display: inline-block;
  padding: 5px 12px;
  background: var(--brand-tint);
  color: var(--brand-1);
  border-radius: var(--r-full);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================================
   Cards / grids
   ============================================================ */

.grid {
  display: grid;
  gap: var(--s-5);
}

.cards {
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-6);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  transition: transform var(--m-base), border-color var(--m-base), box-shadow var(--m-base);
  isolation: isolate;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--c-accent-grad);
  opacity: 0;
  transition: opacity var(--m-base);
}

.card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--sh-3);
}

.card:hover::before {
  opacity: 0.05;
}

.card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--c-text-muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--brand-tint);
  color: var(--brand-1);
  border-radius: var(--r-md);
  font-size: 1.6rem;
}

.card-logo,
.client-logo {
  display: block;
  max-width: 140px;
  max-height: 50px;
  object-fit: contain;
  margin-bottom: var(--s-2);
}

.client-logo {
  padding: 8px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
}

.status {
  align-self: flex-start;
  padding: 4px 10px;
  background: var(--brand-tint);
  color: var(--brand-1);
  border-radius: var(--r-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* — Pricing cards — */
.pricing {
  position: relative;
  padding-top: var(--s-8);
}

.pricing > p {
  min-height: calc(1.5em * 3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pricing.recommended {
  border-color: transparent;
  background: var(--c-surface);
  box-shadow: var(--sh-glow);
}

.pricing.recommended::before {
  opacity: 0.06;
}

.pricing.recommended .status {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-accent);
  color: white;
  box-shadow: 0 8px 20px -6px rgba(156, 39, 176, 0.55);
  padding: 6px 14px;
  font-weight: 800;
  box-shadow: var(--sh-2);
}

.pricing-list {
  display: grid;
  gap: 2px;
  margin: var(--s-5) 0;
  padding: 0;
  list-style: none;
}

.pricing-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: var(--s-2);
  padding: var(--s-2) 0;
  border-top: 1px solid var(--c-border);
  color: var(--c-text-soft);
  font-size: 0.84rem;
  line-height: 1.45;
}

.pricing-list li::before {
  content: "check";
  color: var(--c-success);
  font-family: "Material Symbols Outlined";
  font-size: 1.05rem;
  line-height: 1.4;
}

.pricing-list li.unavailable {
  color: var(--c-text-muted);
  text-decoration: line-through;
}

.pricing-list li.unavailable::before {
  content: "remove";
  color: var(--c-text-muted);
  text-decoration: none;
}

.pricing-list small {
  display: block;
  grid-column: 2;
  color: var(--c-text-muted);
  font-size: 0.74rem;
  text-decoration: none;
}

.pricing-price {
  margin-top: auto;
  padding-top: var(--s-4);
  border-top: 1px solid var(--c-border);
}

.pricing-price span {
  display: block;
  color: var(--c-text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.pricing-price strong {
  display: block;
  font-family: var(--ff-display);
  font-size: 1.7rem;
  margin-bottom: var(--s-4);
}

/* — Audience cards — */
.audience-card {
  min-height: 100%;
}

.check-list {
  display: grid;
  gap: var(--s-2);
  margin: var(--s-4) 0 0;
  padding: 0;
  list-style: none;
  color: var(--c-text-soft);
  font-size: 0.94rem;
}

.check-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: var(--s-2);
  line-height: 1.5;
}

.check-list li::before {
  content: "check_circle";
  color: var(--c-success);
  font-family: "Material Symbols Outlined";
  font-size: 1.1rem;
}

/* ============================================================
   Artist app section
   ============================================================ */

.app-artists,
.media-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: var(--s-12);
  align-items: center;
}

.media-split-copy h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.15;
  margin: var(--s-3) 0 var(--s-4);
}

.media-split-copy p {
  color: var(--c-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 560px;
}

.media-split-image {
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--sh-4);
  background: var(--c-surface-2);
}

.media-split-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media (max-width: 900px) {
  .media-split { grid-template-columns: 1fr; gap: var(--s-6); }
}

.app-artists-copy h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.15;
  margin: var(--s-3) 0 var(--s-4);
}

.app-artists-copy p {
  color: var(--c-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 560px;
}

.phone-preview {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--s-2);
  min-height: 420px;
  padding: var(--s-8);
  color: white;
  background: linear-gradient(160deg, #1d1d1d 0%, #384b58 50%, #00a1e0 130%);
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-4);
  overflow: hidden;
  isolation: isolate;
}

.phone-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px circle at 0% 0%, rgba(167, 139, 250, .35), transparent 50%),
    radial-gradient(500px circle at 100% 100%, rgba(34, 211, 238, .35), transparent 50%);
}

.phone-preview .material-symbols-outlined {
  font-size: 5rem;
  background: rgba(255, 255, 255, .12);
  border-radius: var(--r-full);
  padding: var(--s-4);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .18);
}

.phone-preview strong {
  font-family: var(--ff-display);
  font-size: 1.4rem;
}

.phone-preview small {
  color: rgba(255, 255, 255, .8);
  font-size: 0.94rem;
}

/* ============================================================
   FAQ
   ============================================================ */

.faq-list {
  display: grid;
  gap: var(--s-2);
}

details {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  transition: border-color var(--m-base), box-shadow var(--m-base);
}

details[open] {
  border-color: var(--brand-1);
  box-shadow: var(--sh-2);
}

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

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

summary::after {
  content: "expand_more";
  font-family: "Material Symbols Outlined";
  font-size: 1.4rem;
  color: var(--brand-1);
  transition: transform var(--m-base);
}

details[open] summary::after {
  transform: rotate(180deg);
}

details > p {
  padding: 0 var(--s-5) var(--s-5);
  color: var(--c-text-muted);
  line-height: 1.7;
}

/* ============================================================
   CTA
   ============================================================ */

.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: var(--s-12) auto var(--s-20);
  max-width: var(--container);
  padding: var(--s-16) var(--s-8);
  color: white;
  background: var(--brand-grad);
  border-radius: var(--r-2xl);
  text-align: center;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(700px circle at 20% 0%, rgba(255, 255, 255, .25), transparent 50%),
    radial-gradient(500px circle at 80% 100%, rgba(255, 255, 255, .15), transparent 50%);
}

.cta h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin-bottom: var(--s-3);
}

.cta p {
  max-width: 640px;
  margin: 0 auto var(--s-6);
  color: rgba(255, 255, 255, .88);
  font-size: 1.05rem;
}

.cta .button {
  background: white;
  color: var(--brand-1);
  box-shadow: var(--sh-2);
}

.cta .button:hover {
  background: white;
  color: var(--c-text);
  box-shadow: var(--sh-3);
}

/* Variante "flat": quando user escolhe background_style != default,
   o cartão gradient interno some e o CTA usa o fundo da seção. */
.cta-flat {
  background: none;
  color: var(--c-text);
  max-width: none;
  margin: 0;
  border-radius: 0;
}

.cta-flat::before { display: none; }

.cta-flat h2 { color: var(--c-text); }
.cta-flat p { color: var(--c-text-muted); }

.cta-flat .button {
  background: var(--c-accent-grad);
  color: white;
}

.cta-flat .button:hover {
  background: var(--c-accent-grad);
  color: white;
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  padding: var(--s-12) var(--s-6);
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--s-12);
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: row;
  gap: var(--s-5);
  align-items: stretch;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  min-width: 0;
}

.footer-brand-icon {
  flex: 0 0 auto;
  width: auto;
  height: 100%;
  max-height: 120px;
  align-self: stretch;
  filter: invert(1);
  opacity: 0.85;
}

[data-theme="dark"] .footer-brand-icon { filter: none; opacity: 1; }

@media (prefers-color-scheme: dark) {
  [data-theme="system"] .footer-brand-icon { filter: none; opacity: 1; }
}

.footer-brand p {
  color: var(--c-text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
  max-width: 360px;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-muted);
  margin-bottom: var(--s-3);
}

.footer-col a {
  display: block;
  padding: 4px 0;
  color: var(--c-text-soft);
  font-size: 0.94rem;
}

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  padding-top: var(--s-6);
  border-top: 1px solid var(--c-border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-size: 0.86rem;
  color: var(--c-text-muted);
}

/* ============================================================
   Forms
   ============================================================ */

.form {
  display: grid;
  gap: var(--s-4);
}

label {
  display: grid;
  gap: var(--s-2);
  color: var(--c-text-soft);
  font-size: 0.92rem;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  background: var(--c-surface);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-sm);
  color: var(--c-text);
  font: inherit;
  transition: border-color var(--m-fast), box-shadow var(--m-fast);
}

textarea {
  resize: vertical;
}

.check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--s-2);
  cursor: pointer;
}

.check input {
  width: auto;
  margin: 0;
}

.error {
  color: var(--c-error);
  font-weight: 700;
}

.error-list {
  margin: var(--s-4) 0;
  padding-left: var(--s-5);
  color: var(--c-error);
}

/* — Banners — */
.banner {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  margin-bottom: var(--s-5);
  font-weight: 600;
}

.banner.success {
  background: rgba(5, 150, 105, .1);
  color: var(--c-success);
  border: 1px solid rgba(5, 150, 105, .25);
}

.banner.info {
  background: var(--brand-tint);
  color: var(--brand-1);
  border: 1px solid var(--brand-ring);
}

/* ============================================================
   Login
   ============================================================ */

.login {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--nav-h));
  padding: var(--s-8);
}

.login-card {
  width: min(100%, 440px);
  padding: var(--s-8);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
}

.login-card h1 {
  font-size: 1.8rem;
  margin-bottom: var(--s-2);
}

/* ============================================================
   Admin
   ============================================================ */

.admin-nav {
  position: sticky;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
}

.admin-page {
  max-width: 1280px;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
}

.stats {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--s-4);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--s-5);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  text-decoration: none;
  color: inherit;
  transition: transform var(--m-base), border-color var(--m-base), box-shadow var(--m-base);
}

.stat:hover {
  transform: translateY(-2px);
  border-color: var(--brand-ring);
  box-shadow: var(--sh-2);
  color: inherit;
}

.stat strong {
  display: block;
  font-family: var(--ff-display);
  font-size: 2rem;
  background: var(--brand-grad-text);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.stat span {
  color: var(--c-text-muted);
  font-size: 0.9rem;
}

.table-wrap {
  overflow-x: auto;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--c-border);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--c-surface-2);
  color: var(--c-text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

tr:hover td {
  background: var(--c-surface-2);
}

.row-actions {
  white-space: nowrap;
  vertical-align: middle;
}

.row-actions > * {
  display: inline-flex;
  vertical-align: middle;
  margin-right: var(--s-3);
}

.row-actions > *:last-child {
  margin-right: 0;
}

.row-actions form {
  margin: 0;
}

.empty-state {
  padding: var(--s-12) var(--s-6);
  text-align: center;
  color: var(--c-text-muted);
}

.empty-state .material-symbols-outlined {
  font-size: 3rem;
  opacity: 0.4;
  margin-bottom: var(--s-3);
}

.empty-state h3 {
  margin-bottom: var(--s-2);
  color: var(--c-text);
}

.image-current {
  display: inline-block;
  margin-bottom: var(--s-2);
  color: var(--brand-1);
  font-size: 0.88rem;
  font-weight: 700;
}

/* — Ações em ícones — */
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  color: var(--c-text-soft);
  cursor: pointer;
  transition: background var(--m-fast), color var(--m-fast), border-color var(--m-fast);
}

.icon-button:hover {
  background: var(--brand-tint);
  color: var(--brand-1);
  border-color: var(--brand-ring);
}

.icon-button.danger { color: var(--c-error); }
.icon-button.danger:hover { background: color-mix(in srgb, var(--c-error) 12%, transparent); border-color: var(--c-error); }

.icon-button .material-symbols-outlined { font-size: 1.15rem; }

/* — Lead/Demo cards (admin) — */
.lead-cards {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}

.lead-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-5);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  transition: border-color var(--m-base), box-shadow var(--m-base);
}

.lead-card:hover {
  border-color: var(--brand-ring);
  box-shadow: var(--sh-2);
}

.lead-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-3);
}

.lead-card-head > div {
  flex: 1 1 auto;
  min-width: 0;
}

.lead-card-head .status {
  flex-shrink: 0;
  white-space: nowrap;
  align-self: flex-start;
  margin-right: 0;
}

.lead-card-head h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 4px 0;
}

.lead-card-meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--c-text-muted);
  line-height: 1.4;
}

.lead-card-meta a {
  color: var(--brand-1);
  font-weight: 600;
}

.lead-card-subject {
  margin: 0;
  color: var(--c-text-soft);
  font-size: 0.94rem;
}

.lead-card-message {
  margin: 0;
  color: var(--c-text-soft);
  font-size: 0.94rem;
  line-height: 1.55;
  padding: var(--s-3);
  background: var(--c-surface-2);
  border-radius: var(--r-sm);
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lead-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lead-card-tag {
  padding: 3px 10px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  font-size: 0.78rem;
  color: var(--c-text-soft);
}

.lead-card-tag.accent {
  background: var(--brand-tint);
  border-color: var(--brand-ring);
  color: var(--brand-1);
  font-weight: 600;
}

.lead-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding-top: var(--s-3);
  margin-top: auto;
  border-top: 1px solid var(--c-border);
}

.lead-card-date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--c-text-muted);
}

.lead-card-date .material-symbols-outlined {
  font-size: 1rem;
}

/* — Pagination — */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  margin-top: var(--s-5);
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--s-3);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  color: var(--c-text-soft);
  font-weight: 600;
  font-size: 0.9rem;
}

.pagination a:hover {
  border-color: var(--brand-1);
  color: var(--brand-1);
}

.pagination .current {
  background: var(--brand-grad);
  color: white;
  border-color: transparent;
}

.pagination .disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ============================================================
   Modal de confirmação
   ============================================================ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: var(--c-overlay);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--s-6);
  opacity: 0;
  transition: opacity var(--m-base);
}

.modal-backdrop.open {
  display: flex;
  opacity: 1;
}

.modal {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  padding: var(--s-8);
  max-width: 460px;
  width: 100%;
  box-shadow: var(--sh-4);
  border: 1px solid var(--c-border);
  transform: scale(0.95);
  transition: transform var(--m-base);
}

.modal-backdrop.open .modal {
  transform: scale(1);
}

.modal h2 {
  font-size: 1.3rem;
  margin-bottom: var(--s-3);
}

.modal p {
  color: var(--c-text-muted);
  margin-bottom: var(--s-6);
}

.modal-actions {
  display: flex;
  gap: var(--s-3);
  justify-content: flex-end;
}

/* ============================================================
   Theme — light/dark visibility helpers
   ============================================================ */

[data-theme="dark"] .brand-logo-light,
[data-theme="dark"] .light-only { display: none; }
[data-theme="dark"] .brand-logo-dark { display: block; }

@media (prefers-color-scheme: dark) {
  [data-theme="system"] .brand-logo-light,
  [data-theme="system"] .light-only { display: none; }
  [data-theme="system"] .brand-logo-dark { display: block; }
}

/* ============================================================
   Variantes de fundo de seção (visual rhythm)
   Todas usam tokens (--brand-*, --c-*) que já adaptam claro/escuro.
   ============================================================ */

/* — Mesh: 2 orbs gradient blurred no fundo — */
.section-mesh {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.section-mesh::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 0% 0%, var(--brand-tint), transparent 55%),
    radial-gradient(700px 500px at 100% 100%, color-mix(in srgb, var(--brand-2) 14%, transparent), transparent 55%);
}

[data-theme="dark"] .section-mesh::before {
  background:
    radial-gradient(900px 600px at 0% 0%, color-mix(in srgb, var(--brand-1) 18%, transparent), transparent 55%),
    radial-gradient(700px 500px at 100% 100%, color-mix(in srgb, var(--brand-2) 18%, transparent), transparent 55%);
}

@media (prefers-color-scheme: dark) {
  [data-theme="system"] .section-mesh::before {
    background:
      radial-gradient(900px 600px at 0% 0%, color-mix(in srgb, var(--brand-1) 18%, transparent), transparent 55%),
      radial-gradient(700px 500px at 100% 100%, color-mix(in srgb, var(--brand-2) 18%, transparent), transparent 55%);
  }
}

/* — Tinted: gradiente diagonal sutil da paleta — */
.section-tinted {
  position: relative;
  isolation: isolate;
}

.section-tinted::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(135deg, var(--brand-tint), transparent 60%);
}

[data-theme="dark"] .section-tinted::before,
.section-tinted.invert::before {
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-2) 12%, transparent), transparent 60%);
}

@media (prefers-color-scheme: dark) {
  [data-theme="system"] .section-tinted::before {
    background: linear-gradient(135deg, color-mix(in srgb, var(--brand-2) 12%, transparent), transparent 60%);
  }
}

/* — Waveform: pattern de barras na parte inferior — */
.section-waveform {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.section-waveform::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, var(--brand-tint) 100%);
  opacity: .6;
}

.section-waveform::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  z-index: -1;
  pointer-events: none;
  background: var(--brand-grad);
  opacity: .08;
  -webkit-mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 140' preserveAspectRatio='none'%3E%3Cg fill='black'%3E%3Crect x='0' y='80' width='6' height='40' rx='3'/%3E%3Crect x='14' y='60' width='6' height='60' rx='3'/%3E%3Crect x='28' y='40' width='6' height='80' rx='3'/%3E%3Crect x='42' y='20' width='6' height='100' rx='3'/%3E%3Crect x='56' y='50' width='6' height='70' rx='3'/%3E%3Crect x='70' y='30' width='6' height='90' rx='3'/%3E%3Crect x='84' y='70' width='6' height='50' rx='3'/%3E%3Crect x='98' y='10' width='6' height='110' rx='3'/%3E%3Crect x='112' y='55' width='6' height='65' rx='3'/%3E%3Crect x='126' y='35' width='6' height='85' rx='3'/%3E%3Crect x='140' y='75' width='6' height='45' rx='3'/%3E%3Crect x='154' y='25' width='6' height='95' rx='3'/%3E%3Crect x='168' y='65' width='6' height='55' rx='3'/%3E%3Crect x='182' y='45' width='6' height='75' rx='3'/%3E%3Crect x='196' y='85' width='6' height='35' rx='3'/%3E%3C/g%3E%3C/svg%3E") repeat-x bottom / 210px 100%;
          mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 140' preserveAspectRatio='none'%3E%3Cg fill='black'%3E%3Crect x='0' y='80' width='6' height='40' rx='3'/%3E%3Crect x='14' y='60' width='6' height='60' rx='3'/%3E%3Crect x='28' y='40' width='6' height='80' rx='3'/%3E%3Crect x='42' y='20' width='6' height='100' rx='3'/%3E%3Crect x='56' y='50' width='6' height='70' rx='3'/%3E%3Crect x='70' y='30' width='6' height='90' rx='3'/%3E%3Crect x='84' y='70' width='6' height='50' rx='3'/%3E%3Crect x='98' y='10' width='6' height='110' rx='3'/%3E%3Crect x='112' y='55' width='6' height='65' rx='3'/%3E%3Crect x='126' y='35' width='6' height='85' rx='3'/%3E%3Crect x='140' y='75' width='6' height='45' rx='3'/%3E%3Crect x='154' y='25' width='6' height='95' rx='3'/%3E%3Crect x='168' y='65' width='6' height='55' rx='3'/%3E%3Crect x='182' y='45' width='6' height='75' rx='3'/%3E%3Crect x='196' y='85' width='6' height='35' rx='3'/%3E%3C/g%3E%3C/svg%3E") repeat-x bottom / 210px 100%;
}

[data-theme="dark"] .section-waveform::after {
  opacity: .14;
}

@media (prefers-color-scheme: dark) {
  [data-theme="system"] .section-waveform::after { opacity: .14; }
}

/* — Dots: pattern de pontos suaves — */
.section-dots {
  position: relative;
  isolation: isolate;
}

.section-dots::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle at center, var(--c-border-strong) 1px, transparent 1.5px);
  background-size: 32px 32px;
  background-position: 0 0;
  opacity: .5;
  mask: linear-gradient(180deg, transparent, black 20%, black 80%, transparent);
  -webkit-mask: linear-gradient(180deg, transparent, black 20%, black 80%, transparent);
}

[data-theme="dark"] .section-dots::before {
  background-image: radial-gradient(circle at center, color-mix(in srgb, var(--brand-1) 30%, transparent) 1px, transparent 1.5px);
  opacity: .8;
}

@media (prefers-color-scheme: dark) {
  [data-theme="system"] .section-dots::before {
    background-image: radial-gradient(circle at center, color-mix(in srgb, var(--brand-1) 30%, transparent) 1px, transparent 1.5px);
    opacity: .8;
  }
}

/* ============================================================
   Waveform divider (entre seções)
   ============================================================ */

.wave-divider {
  display: block;
  width: 100%;
  height: 60px;
  margin: 0;
  background:
    linear-gradient(90deg, transparent, var(--brand-1) 30%, var(--brand-2) 70%, transparent);
  -webkit-mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cg fill='black'%3E%3Crect x='0' y='28' width='3' height='4' rx='1.5'/%3E%3Crect x='8' y='24' width='3' height='12' rx='1.5'/%3E%3Crect x='16' y='18' width='3' height='24' rx='1.5'/%3E%3Crect x='24' y='12' width='3' height='36' rx='1.5'/%3E%3Crect x='32' y='6' width='3' height='48' rx='1.5'/%3E%3Crect x='40' y='14' width='3' height='32' rx='1.5'/%3E%3Crect x='48' y='22' width='3' height='16' rx='1.5'/%3E%3Crect x='56' y='10' width='3' height='40' rx='1.5'/%3E%3Crect x='64' y='2' width='3' height='56' rx='1.5'/%3E%3Crect x='72' y='18' width='3' height='24' rx='1.5'/%3E%3Crect x='80' y='26' width='3' height='8' rx='1.5'/%3E%3Crect x='88' y='14' width='3' height='32' rx='1.5'/%3E%3Crect x='96' y='8' width='3' height='44' rx='1.5'/%3E%3Crect x='104' y='20' width='3' height='20' rx='1.5'/%3E%3Crect x='112' y='4' width='3' height='52' rx='1.5'/%3E%3Crect x='120' y='16' width='3' height='28' rx='1.5'/%3E%3Crect x='128' y='24' width='3' height='12' rx='1.5'/%3E%3Crect x='136' y='10' width='3' height='40' rx='1.5'/%3E%3Crect x='144' y='2' width='3' height='56' rx='1.5'/%3E%3Crect x='152' y='18' width='3' height='24' rx='1.5'/%3E%3Crect x='160' y='26' width='3' height='8' rx='1.5'/%3E%3Crect x='168' y='14' width='3' height='32' rx='1.5'/%3E%3Crect x='176' y='6' width='3' height='48' rx='1.5'/%3E%3Crect x='184' y='20' width='3' height='20' rx='1.5'/%3E%3Crect x='192' y='12' width='3' height='36' rx='1.5'/%3E%3Crect x='200' y='4' width='3' height='52' rx='1.5'/%3E%3C/g%3E%3C/svg%3E") repeat-x center / 200px 100%;
  mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cg fill='black'%3E%3Crect x='0' y='28' width='3' height='4' rx='1.5'/%3E%3Crect x='8' y='24' width='3' height='12' rx='1.5'/%3E%3Crect x='16' y='18' width='3' height='24' rx='1.5'/%3E%3Crect x='24' y='12' width='3' height='36' rx='1.5'/%3E%3Crect x='32' y='6' width='3' height='48' rx='1.5'/%3E%3Crect x='40' y='14' width='3' height='32' rx='1.5'/%3E%3Crect x='48' y='22' width='3' height='16' rx='1.5'/%3E%3Crect x='56' y='10' width='3' height='40' rx='1.5'/%3E%3Crect x='64' y='2' width='3' height='56' rx='1.5'/%3E%3Crect x='72' y='18' width='3' height='24' rx='1.5'/%3E%3Crect x='80' y='26' width='3' height='8' rx='1.5'/%3E%3Crect x='88' y='14' width='3' height='32' rx='1.5'/%3E%3Crect x='96' y='8' width='3' height='44' rx='1.5'/%3E%3Crect x='104' y='20' width='3' height='20' rx='1.5'/%3E%3Crect x='112' y='4' width='3' height='52' rx='1.5'/%3E%3Crect x='120' y='16' width='3' height='28' rx='1.5'/%3E%3Crect x='128' y='24' width='3' height='12' rx='1.5'/%3E%3Crect x='136' y='10' width='3' height='40' rx='1.5'/%3E%3Crect x='144' y='2' width='3' height='56' rx='1.5'/%3E%3Crect x='152' y='18' width='3' height='24' rx='1.5'/%3E%3Crect x='160' y='26' width='3' height='8' rx='1.5'/%3E%3Crect x='168' y='14' width='3' height='32' rx='1.5'/%3E%3Crect x='176' y='6' width='3' height='48' rx='1.5'/%3E%3Crect x='184' y='20' width='3' height='20' rx='1.5'/%3E%3Crect x='192' y='12' width='3' height='36' rx='1.5'/%3E%3Crect x='200' y='4' width='3' height='52' rx='1.5'/%3E%3C/g%3E%3C/svg%3E") repeat-x center / 200px 100%;
  opacity: .35;
}

/* ============================================================
   Spinner / loading
   ============================================================ */

.spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 720ms linear infinite;
}

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

button.button[data-loading="true"] {
  pointer-events: none;
  opacity: .85;
}

button.button[data-loading="true"] .button-content { display: none; }
button.button[data-loading="true"] .button-loading { display: inline-flex !important; gap: 8px; align-items: center; }
.button-loading { display: none; }

/* ============================================================
   Skeleton loaders
   ============================================================ */

.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--c-surface-2);
  border-radius: var(--r-sm);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--c-text) 6%, transparent), transparent);
  animation: shimmer 1.6s linear infinite;
}

.skeleton-line { height: 12px; margin-bottom: 8px; }
.skeleton-line.lg { height: 18px; }
.skeleton-line.sm { height: 8px; width: 60%; }

@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ============================================================
   Card tilt (microinteração)
   ============================================================ */

.card[data-tilt] {
  transform-style: preserve-3d;
  transition: transform var(--m-base);
  will-change: transform;
}

@media (hover: hover) {
  .card[data-tilt]:hover {
    transform: perspective(1000px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg)) translateY(-4px);
  }
}

/* ============================================================
   Hero "now playing" indicator
   ============================================================ */

.now-playing {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(16, 185, 129, .12);
  color: var(--c-success);
  border-radius: var(--r-full);
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(16, 185, 129, .25);
}

.now-playing .pulse {
  width: 8px;
  height: 8px;
  background: var(--c-success);
  border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
  box-shadow: 0 0 0 0 var(--c-success);
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, .55); }
  70%  { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ============================================================
   Error pages (404 / 500)
   ============================================================ */

.error-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--nav-h));
  padding: var(--s-12) var(--s-6);
  text-align: center;
}

.error-page-inner { max-width: 520px; }

.error-code {
  font-family: var(--ff-display);
  font-size: clamp(5rem, 18vw, 10rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: var(--s-4);
  background: var(--brand-grad-text);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.error-page h1 {
  font-size: 1.6rem;
  margin-bottom: var(--s-3);
}

.error-page p {
  color: var(--c-text-muted);
  margin-bottom: var(--s-6);
  font-size: 1.05rem;
}

.error-waveform {
  width: 200px;
  height: 40px;
  margin: 0 auto var(--s-6);
  background: var(--brand-grad);
  -webkit-mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40'%3E%3Cg fill='black'%3E%3Crect x='2' y='18' width='3' height='4' rx='1.5'/%3E%3Crect x='10' y='14' width='3' height='12' rx='1.5'/%3E%3Crect x='18' y='8' width='3' height='24' rx='1.5'/%3E%3Crect x='26' y='2' width='3' height='36' rx='1.5'/%3E%3Crect x='34' y='10' width='3' height='20' rx='1.5'/%3E%3Crect x='42' y='16' width='3' height='8' rx='1.5'/%3E%3Crect x='50' y='6' width='3' height='28' rx='1.5'/%3E%3Crect x='58' y='12' width='3' height='16' rx='1.5'/%3E%3Crect x='66' y='4' width='3' height='32' rx='1.5'/%3E%3Crect x='74' y='14' width='3' height='12' rx='1.5'/%3E%3Crect x='82' y='8' width='3' height='24' rx='1.5'/%3E%3Crect x='90' y='2' width='3' height='36' rx='1.5'/%3E%3Crect x='98' y='10' width='3' height='20' rx='1.5'/%3E%3Crect x='106' y='16' width='3' height='8' rx='1.5'/%3E%3Crect x='114' y='6' width='3' height='28' rx='1.5'/%3E%3Crect x='122' y='12' width='3' height='16' rx='1.5'/%3E%3Crect x='130' y='4' width='3' height='32' rx='1.5'/%3E%3Crect x='138' y='14' width='3' height='12' rx='1.5'/%3E%3Crect x='146' y='8' width='3' height='24' rx='1.5'/%3E%3Crect x='154' y='2' width='3' height='36' rx='1.5'/%3E%3Crect x='162' y='10' width='3' height='20' rx='1.5'/%3E%3Crect x='170' y='16' width='3' height='8' rx='1.5'/%3E%3Crect x='178' y='6' width='3' height='28' rx='1.5'/%3E%3Crect x='186' y='12' width='3' height='16' rx='1.5'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40'%3E%3Cg fill='black'%3E%3Crect x='2' y='18' width='3' height='4' rx='1.5'/%3E%3Crect x='10' y='14' width='3' height='12' rx='1.5'/%3E%3Crect x='18' y='8' width='3' height='24' rx='1.5'/%3E%3Crect x='26' y='2' width='3' height='36' rx='1.5'/%3E%3Crect x='34' y='10' width='3' height='20' rx='1.5'/%3E%3Crect x='42' y='16' width='3' height='8' rx='1.5'/%3E%3Crect x='50' y='6' width='3' height='28' rx='1.5'/%3E%3Crect x='58' y='12' width='3' height='16' rx='1.5'/%3E%3Crect x='66' y='4' width='3' height='32' rx='1.5'/%3E%3Crect x='74' y='14' width='3' height='12' rx='1.5'/%3E%3Crect x='82' y='8' width='3' height='24' rx='1.5'/%3E%3Crect x='90' y='2' width='3' height='36' rx='1.5'/%3E%3Crect x='98' y='10' width='3' height='20' rx='1.5'/%3E%3Crect x='106' y='16' width='3' height='8' rx='1.5'/%3E%3Crect x='114' y='6' width='3' height='28' rx='1.5'/%3E%3Crect x='122' y='12' width='3' height='16' rx='1.5'/%3E%3Crect x='130' y='4' width='3' height='32' rx='1.5'/%3E%3Crect x='138' y='14' width='3' height='12' rx='1.5'/%3E%3Crect x='146' y='8' width='3' height='24' rx='1.5'/%3E%3Crect x='154' y='2' width='3' height='36' rx='1.5'/%3E%3Crect x='162' y='10' width='3' height='20' rx='1.5'/%3E%3Crect x='170' y='16' width='3' height='8' rx='1.5'/%3E%3Crect x='178' y='6' width='3' height='28' rx='1.5'/%3E%3Crect x='186' y='12' width='3' height='16' rx='1.5'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
}

/* ============================================================
   Admin sidebar layout
   ============================================================ */

.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: var(--s-5) var(--s-4);
  background: var(--c-surface);
  border-right: 1px solid var(--c-border);
  overflow-y: auto;
}

.admin-sidebar .brand {
  margin-bottom: var(--s-6);
}

.admin-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.admin-sidebar nav a {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-3);
  border-radius: var(--r-sm);
  color: var(--c-text-soft);
  font-weight: 600;
  font-size: 0.94rem;
  transition: background var(--m-fast), color var(--m-fast);
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
  background: var(--brand-tint);
  color: var(--brand-1);
}

.admin-sidebar nav a .material-symbols-outlined {
  font-size: 1.25rem;
}

.admin-sidebar-foot {
  padding-top: var(--s-4);
  border-top: 1px solid var(--c-border);
  margin-top: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.admin-user {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-2);
  border-radius: var(--r-sm);
}

.admin-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-grad);
  color: white;
  font-weight: 700;
  font-size: 0.92rem;
}

.admin-user-info { min-width: 0; }
.admin-user-info strong { display: block; font-size: 0.9rem; color: var(--c-text); }
.admin-user-info span { display: block; font-size: 0.78rem; color: var(--c-text-muted); }

.admin-content {
  min-width: 0;
}

.admin-mobile-nav {
  display: none;
}

.admin-mobile-nav-toggle {
  display: none !important;
}

/* — Search/filter bar admin — */
.search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
  padding: var(--s-3);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
}

.search-bar form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  flex: 1 1 100%;
  width: 100%;
}

.search-bar input,
.search-bar select {
  width: auto;
  height: 40px;
  padding: 0 var(--s-3);
  border-radius: var(--r-sm);
  font-size: 0.94rem;
}

.search-bar input[type="search"] {
  flex: 1 1 240px;
  min-width: 0;
}

.search-bar select {
  flex: 0 1 200px;
}

.search-bar .button {
  min-height: 40px;
  padding: 0 var(--s-4);
  font-size: 0.92rem;
}

/* — Image preview no upload — */
.upload-preview {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-2);
  padding: var(--s-2);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
}

.upload-preview img {
  max-width: 80px;
  max-height: 60px;
  border-radius: var(--r-sm);
  object-fit: cover;
  background: var(--c-surface);
}

.upload-preview a {
  color: var(--brand-1);
  font-size: 0.86rem;
  font-weight: 600;
}

/* — Rich content (renderiza HTML do Trix) — */

.rich-content > * + * { margin-top: var(--s-3); }
.rich-content h1, .rich-content h2, .rich-content h3 {
  font-family: var(--ff-display);
  margin-top: var(--s-5);
  margin-bottom: var(--s-2);
}
.rich-content h1 { font-size: 1.6rem; }
.rich-content h2 { font-size: 1.35rem; }
.rich-content h3 { font-size: 1.15rem; }
.rich-content ul, .rich-content ol {
  padding-left: var(--s-6);
}
.rich-content li + li { margin-top: 4px; }
.rich-content blockquote {
  border-left: 3px solid var(--brand-1);
  padding: var(--s-2) var(--s-4);
  background: var(--brand-tint);
  border-radius: var(--r-sm);
  font-style: italic;
}
.rich-content a { color: var(--brand-1); text-decoration: underline; }
.rich-content pre, .rich-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--c-surface-2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.92em;
}
.rich-content pre {
  padding: var(--s-3) var(--s-4);
  overflow-x: auto;
}
.rich-content img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--r-md);
  box-shadow: var(--sh-2);
  margin: var(--s-5) auto;
}
.rich-content figure {
  margin: var(--s-5) 0;
}
.rich-content figure img {
  margin: 0 auto;
}
.rich-content figcaption {
  margin-top: var(--s-2);
  text-align: center;
  font-size: 0.88rem;
  color: var(--c-text-muted);
  font-style: italic;
}

/* Trix renderiza attachments como <figure class="attachment attachment--preview"> */
.rich-content .attachment {
  display: block;
  margin: var(--s-5) 0;
}
.rich-content .attachment img { margin: 0 auto; }

/* — Trix editor (admin) — */

trix-editor {
  display: block;
  background: var(--c-surface);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-sm);
  padding: var(--s-3) var(--s-4);
  color: var(--c-text);
}
trix-editor:focus {
  outline: none;
  border-color: var(--brand-1);
  box-shadow: 0 0 0 3px var(--brand-tint);
}
trix-toolbar {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-bottom: 0;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  margin-bottom: -1px;
  padding: 6px;
}
trix-toolbar + trix-editor { border-top-left-radius: 0; border-top-right-radius: 0; }
trix-toolbar .trix-button-group { background: transparent; border: 0; }
trix-toolbar .trix-button {
  background: transparent;
  border: 0;
  color: var(--c-text-soft);
}
trix-toolbar .trix-button:hover { background: var(--brand-tint); color: var(--brand-1); }
trix-toolbar .trix-button.trix-active { background: var(--brand-tint); color: var(--brand-1); }

/* ============================================================
   Breadcrumb
   ============================================================ */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
  font-size: 0.92rem;
  color: var(--c-text-muted);
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--c-text-soft);
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--r-sm);
  transition: background var(--m-fast), color var(--m-fast);
}

.breadcrumb a:hover {
  background: var(--brand-tint);
  color: var(--brand-1);
}

.breadcrumb .material-symbols-outlined {
  font-size: 1.05rem;
}

.breadcrumb .sep {
  opacity: 0.5;
}

/* ============================================================
   DEMO: layouts desconstruídos
   ============================================================ */

.demo-section {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--s-20) var(--s-6);
  border-bottom: 1px dashed var(--c-border-strong);
}

.demo-label {
  position: absolute;
  top: var(--s-4);
  left: var(--s-6);
  padding: 4px 10px;
  background: var(--c-text);
  color: var(--c-bg);
  border-radius: var(--r-full);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 5;
}

/* — Variante 1: Editorial assimétrico — */
.style-editorial {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-8);
  align-items: start;
}

.style-editorial .heading {
  text-align: left;
  max-width: 540px;
}

.style-editorial .section-number {
  font-family: var(--ff-display);
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 800;
  line-height: 0.85;
  background: var(--brand-grad-text);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  opacity: 0.55;
}

.style-editorial .cards {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-8);
}

.style-editorial .cards .card:nth-child(2),
.style-editorial .cards .card:nth-child(4) {
  margin-top: var(--s-12);
}

.style-editorial .cards .card:nth-child(3) {
  margin-top: var(--s-6);
}

@media (max-width: 900px) {
  .style-editorial { grid-template-columns: 1fr; }
  .style-editorial .section-number { font-size: 4rem; opacity: 0.3; position: absolute; top: var(--s-8); right: var(--s-6); pointer-events: none; }
  .style-editorial .cards { grid-template-columns: 1fr; gap: var(--s-4); }
  .style-editorial .cards .card { margin-top: 0 !important; }
}

/* — Variante 2: Bento grid — */
.style-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}

.style-bento .heading {
  text-align: left;
}

.style-bento .bento-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--s-4);
}

.style-bento .bento-hero {
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
  padding: var(--s-8);
  background: var(--brand-grad);
  color: white;
  border-radius: var(--r-2xl);
  position: relative;
  overflow: hidden;
}

.style-bento .bento-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px circle at 20% 0%, rgba(255,255,255,.3), transparent 50%),
    radial-gradient(400px circle at 100% 100%, rgba(255,255,255,.15), transparent 50%);
}

.style-bento .bento-hero > * { position: relative; }

.style-bento .bento-hero .material-symbols-outlined {
  font-size: 3.5rem;
  margin-bottom: var(--s-3);
}

.style-bento .bento-hero h3 {
  font-size: 1.8rem;
  margin-bottom: var(--s-3);
}

.style-bento .bento-hero p {
  color: rgba(255, 255, 255, .9);
  max-width: 420px;
}

.style-bento .bento-cell {
  padding: var(--s-5);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
}

.style-bento .bento-cell .material-symbols-outlined {
  font-size: 1.8rem;
  color: var(--brand-1);
  margin-bottom: var(--s-2);
}

.style-bento .bento-cell h3 { font-size: 1.05rem; margin-bottom: var(--s-2); }
.style-bento .bento-cell p { color: var(--c-text-muted); font-size: 0.9rem; line-height: 1.5; }

.style-bento .bento-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}

@media (max-width: 900px) {
  .style-bento .bento-grid { grid-template-columns: 1fr; }
  .style-bento .bento-hero { grid-row: auto; min-height: 240px; }
  .style-bento .bento-row { grid-template-columns: 1fr; }
}

/* — Variante 3: Sticky lateral — */
.style-sticky {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: var(--s-12);
  align-items: start;
}

.style-sticky .heading {
  position: sticky;
  top: calc(var(--nav-h) + var(--s-6));
  text-align: left;
}

.style-sticky .heading h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  margin: var(--s-3) 0;
}

.style-sticky .heading p {
  color: var(--c-text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.style-sticky .heading::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin-top: var(--s-5);
  background: var(--brand-grad);
  border-radius: 2px;
}

.style-sticky .cards-stack {
  display: grid;
  gap: var(--s-4);
}

.style-sticky .card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--s-4);
  align-items: start;
  padding: var(--s-5);
}

@media (max-width: 900px) {
  .style-sticky { grid-template-columns: 1fr; gap: var(--s-6); }
  .style-sticky .heading { position: static; }
}

/* — Variante 4: Off-center à esquerda — */
.style-offcenter .heading {
  text-align: left;
  max-width: 580px;
  margin-bottom: var(--s-10);
}

.style-offcenter .heading::before {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background: var(--brand-grad);
  border-radius: 2px;
  margin-bottom: var(--s-4);
}

.style-offcenter .heading .eyebrow {
  background: transparent;
  color: var(--brand-1);
  padding: 0;
  border-radius: 0;
}

.style-offcenter .cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}

@media (max-width: 900px) {
  .style-offcenter .cards { grid-template-columns: 1fr; }
}

/* ============================================================
   Reveal on scroll
   ============================================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 900ms cubic-bezier(.22, 1, .36, 1), transform 900ms cubic-bezier(.22, 1, .36, 1);
}

[data-reveal][data-reveal-from="left"] { transform: translateX(-72px); }
[data-reveal][data-reveal-from="right"] { transform: translateX(72px); }
[data-reveal][data-reveal-from="up"] { transform: translateY(56px); }
[data-reveal][data-reveal-from="down"] { transform: translateY(-56px); }

[data-reveal].in {
  opacity: 1;
  transform: none;
}

/* Stagger automático para listas (tbody, .grid, .cards-stack) */
.table-wrap tbody [data-reveal],
.cards [data-reveal],
.cards-stack [data-reveal],
.bento-grid [data-reveal],
.grid [data-reveal] {
  transition-delay: calc(var(--reveal-index, 0) * 110ms);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
  .cards            { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner     { grid-template-columns: 1fr 1fr; }
  .footer-brand     { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --nav-h: 60px; }

  .site-nav,
  .admin-nav {
    padding: 0 var(--s-4);
    gap: var(--s-2);
    /* IMPORTANTE: remove backdrop-filter para não criar stacking context
       que prenderia o position:fixed do .nav-links dentro do <nav>. */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--c-bg);
  }

  .brand-logo {
    height: 28px;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: var(--s-4);
    background: var(--c-bg);
    border-top: 1px solid var(--c-border);
    transform: translateX(100%);
    transition: transform var(--m-base);
    overflow-y: auto;
    z-index: var(--z-overlay);
    visibility: hidden;
  }

  .nav-links.open {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-links > a,
  .nav-links > form {
    padding: var(--s-3) var(--s-2);
    border-bottom: 1px solid var(--c-border);
  }

  .nav-links > a::after { display: none; }

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

  .hero {
    grid-template-columns: 1fr;
    gap: var(--s-8);
    padding-top: var(--s-12);
    padding-bottom: var(--s-12);
  }

  .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }

  .product-preview { min-height: 360px; }

  .section,
  .admin-page { padding-top: var(--s-12); padding-bottom: var(--s-12); }

  .section-heading { margin-bottom: var(--s-8); }

  .cards            { grid-template-columns: 1fr; }
  .stats            { grid-template-columns: repeat(2, 1fr); }

  /* Admin: tabelas viram cards empilhados */
  .admin-page .table-wrap {
    background: transparent;
    border: 0;
    overflow: visible;
  }
  .admin-page .table-wrap table { display: block; }
  .admin-page .table-wrap thead { display: none; }
  .admin-page .table-wrap tbody {
    display: grid;
    gap: var(--s-3);
  }
  .admin-page .table-wrap tr {
    display: grid;
    gap: 6px;
    padding: var(--s-4);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
  }
  .admin-page .table-wrap tr:hover td { background: transparent; }
  .admin-page .table-wrap td {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: var(--s-3);
    padding: 4px 0;
    border-bottom: 0;
    align-items: start;
    text-align: left;
    vertical-align: top;
    white-space: normal;
    word-break: break-word;
  }
  .admin-page .table-wrap td::before {
    content: attr(data-label);
    color: var(--c-text-muted);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.6;
  }
  .admin-page .table-wrap td[data-label="Ações"] {
    grid-template-columns: 1fr;
    margin-top: var(--s-2);
    border-top: 1px dashed var(--c-border);
    padding-top: var(--s-3);
  }
  .admin-page .table-wrap td[data-label="Ações"]::before { display: none; }
  .admin-page .table-wrap td[data-label="Ações"] .row-actions {
    flex-wrap: wrap;
  }
  .admin-page .table-wrap .empty-state { grid-column: 1 / -1; }

  .app-artists      { grid-template-columns: 1fr; gap: var(--s-8); }
  .footer-inner     { grid-template-columns: 1fr; }
  .footer-brand     { grid-column: 1; }

  .cta              { padding: var(--s-12) var(--s-6); margin: var(--s-8) var(--s-4); }
}

@media (max-width: 480px) {
  .hero { padding: var(--s-10) var(--s-4); }
  .actions .button { width: 100%; }
}

/* ============================================================
   Admin mobile — sidebar vira drawer
   ============================================================ */

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

  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(80vw, 320px);
    height: 100vh;
    z-index: var(--z-modal);
    transform: translateX(-100%);
    transition: transform var(--m-base);
    box-shadow: var(--sh-4);
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-sidebar::before {
    /* backdrop: aparece quando drawer está aberto via ::after no body? Não - usamos overlay separado */
  }

  .admin-mobile-nav-toggle {
    display: inline-flex !important;
    position: fixed !important;
    top: 12px;
    left: 12px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: var(--c-surface) !important;
    border: 1px solid var(--c-border-strong);
    border-radius: var(--r-sm);
    z-index: calc(var(--z-modal) + 1);
    box-shadow: var(--sh-2);
  }

  .admin-content {
    padding-top: 60px;
  }

  /* backdrop quando drawer aberta */
  body:has(.admin-sidebar.open)::before {
    content: "";
    position: fixed;
    inset: 0;
    background: var(--c-overlay);
    backdrop-filter: blur(4px);
    z-index: calc(var(--z-modal) - 1);
  }
}
