/* =================================================================
   RD Cloud Tutoriais DirectAdmin - Stylesheet
   100% local, sem CDNs, sem fontes externas, otimizado PageSpeed
   ================================================================= */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

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

:root {
  /* RD Cloud brand */
  --rd-red: #E63946;
  --rd-red-soft: #FF5C68;
  --rd-orange: #FF7A00;
  --rd-cyan: #38BDF8;
  --rd-green: #22C55E;

  /* Surfaces (dark theme) */
  --bg: #0A0E1A;
  --bg-elev: #111729;
  --surface: #14182B;
  --surface-2: #1B2138;
  --border: #232A44;
  --border-strong: #2E3759;

  /* Text */
  --text: #F8FAFC;
  --text-soft: #CBD5E1;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  /* Code */
  --code-bg: #0D1322;
  --code-border: #1F2845;
  --code-text: #E2E8F0;

  /* Radii / motion */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;
  --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 10px 30px rgba(0,0,0,.35);
  --shadow-glow: 0 0 0 1px rgba(230,57,70,.35), 0 8px 30px rgba(230,57,70,.25);

  --maxw: 1180px;
  --t-fast: 140ms ease;
  --t-base: 220ms ease;

  /* Font stack: sistema, zero requisições externas */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Roboto",
               "Helvetica Neue", Arial, "Noto Sans", sans-serif,
               "Apple Color Emoji", "Segoe UI Emoji";
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
               "Liberation Mono", "Courier New", monospace;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Background "tech": grid sutil + glow vermelho no topo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(230,57,70,.18), transparent 60%),
    radial-gradient(700px 400px at 10% 10%, rgba(56,189,248,.10), transparent 60%),
    linear-gradient(180deg, transparent 0, transparent 100%);
  z-index: -2;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  z-index: -1;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rd-cyan); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: #7DD3FC; }
a:focus-visible { outline: 2px solid var(--rd-red); outline-offset: 3px; border-radius: 4px; }

button { font: inherit; cursor: pointer; }

::selection { background: var(--rd-red); color: #fff; }

/* ---------- Skip link (acessibilidade) ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--rd-red); color: #fff;
  padding: 10px 14px; border-radius: var(--r-sm);
  font-weight: 600; z-index: 9999;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

@media (max-width: 640px) { .container { padding: 0 18px; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,14,26,.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 24px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 800; letter-spacing: -.01em;
  font-size: 18px;
}
.logo:hover { color: var(--text); }
.logo-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--rd-red) 0%, var(--rd-orange) 100%);
  display: grid; place-items: center;
  color: #fff; font-weight: 900; font-size: 14px;
  box-shadow: 0 4px 14px rgba(230,57,70,.4);
}
.logo-mark span { transform: translateY(-1px); }
.logo-text small {
  display: block; font-size: 11px; font-weight: 500;
  color: var(--text-muted); letter-spacing: .04em; text-transform: uppercase;
  margin-top: -2px;
}

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: var(--text-soft); padding: 8px 14px; border-radius: var(--r-sm);
  font-weight: 500; font-size: 14.5px;
}
.nav a:hover { background: var(--surface); color: var(--text); }
.nav a.cta {
  background: var(--rd-red); color: #fff; padding: 9px 18px;
  font-weight: 600; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(230,57,70,.35);
}
.nav a.cta:hover { background: var(--rd-red-soft); color: #fff; transform: translateY(-1px); }

.nav-toggle {
  display: none; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--r-sm);
  width: 42px; height: 42px; align-items: center; justify-content: center;
}
.nav-toggle:hover { background: var(--surface-2); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--bg-elev); border-bottom: 1px solid var(--border);
    padding: 14px; gap: 4px;
    transform: translateY(-200%); opacity: 0;
    transition: transform var(--t-base), opacity var(--t-base);
  }
  .nav.open { transform: translateY(0); opacity: 1; }
  .nav a { padding: 12px 14px; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 76px 0 56px;
  position: relative;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px;
  align-items: center;
}
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 42px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(230,57,70,.10); color: var(--rd-red-soft);
  border: 1px solid rgba(230,57,70,.35);
  padding: 6px 14px; border-radius: 999px; font-size: 13px;
  font-weight: 600; letter-spacing: .02em; margin-bottom: 22px;
}
.eyebrow .dot {
  width: 7px; height: 7px; background: var(--rd-red); border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230,57,70,.55); }
  50% { box-shadow: 0 0 0 8px rgba(230,57,70,0); }
}

.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05; letter-spacing: -.02em;
  font-weight: 800;
  margin-bottom: 20px;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--rd-red) 0%, var(--rd-orange) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 18px; color: var(--text-soft); max-width: 580px;
  margin-bottom: 28px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; border: 1px solid transparent;
  transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
}
.btn-primary { background: var(--rd-red); color: #fff; box-shadow: 0 8px 24px rgba(230,57,70,.35); }
.btn-primary:hover { background: var(--rd-red-soft); color: #fff; transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--text); border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface); color: var(--text); border-color: var(--text-muted); }

/* Hero visual mock do painel DirectAdmin */
.hero-visual {
  position: relative; padding: 18px; border-radius: var(--r-xl);
  background: linear-gradient(160deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-2);
}
.hero-visual::before {
  content: ""; position: absolute; inset: -1px; border-radius: var(--r-xl);
  background: linear-gradient(135deg, rgba(230,57,70,.4), transparent 40%, rgba(56,189,248,.25));
  z-index: -1; filter: blur(8px); opacity: .6;
}
.panel-window {
  background: var(--bg-elev); border-radius: var(--r-md);
  overflow: hidden; border: 1px solid var(--border);
}
.panel-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.panel-bar .dots { display: flex; gap: 6px; }
.panel-bar .dots i {
  width: 11px; height: 11px; border-radius: 50%; display: inline-block;
  background: #FF5F57;
}
.panel-bar .dots i:nth-child(2) { background: #FEBC2E; }
.panel-bar .dots i:nth-child(3) { background: #28C840; }
.panel-bar .url {
  flex: 1; font-family: var(--font-mono); font-size: 12px;
  color: var(--text-muted); padding: 4px 10px;
  background: var(--bg); border-radius: 4px;
  border: 1px solid var(--border);
}
.panel-body { padding: 20px; }
.panel-row { display: flex; gap: 16px; margin-bottom: 14px; }
.panel-row:last-child { margin-bottom: 0; }
.feat-tile {
  flex: 1; background: var(--surface); border: 1px solid var(--border);
  padding: 14px; border-radius: 10px;
  display: flex; flex-direction: column; gap: 6px;
  transition: transform var(--t-fast), border-color var(--t-fast);
}
.feat-tile:hover { transform: translateY(-2px); border-color: var(--rd-red); }
.feat-tile .ico {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(230,57,70,.12); color: var(--rd-red);
  display: grid; place-items: center;
}
.feat-tile .ico svg { width: 18px; height: 18px; }
.feat-tile strong { font-size: 13px; color: var(--text); font-weight: 600; }
.feat-tile span { font-size: 11px; color: var(--text-muted); }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-title {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15; font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 17px; color: var(--text-soft);
  max-width: 700px; margin-bottom: 40px;
}
.section-eyebrow {
  display: inline-block; color: var(--rd-red-soft);
  font-size: 13px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: 14px;
}

/* ---------- Advantages grid ---------- */
.advantages {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 860px) { .advantages { grid-template-columns: 1fr; } }
.adv-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform var(--t-base), border-color var(--t-base);
}
.adv-card:hover { transform: translateY(-4px); border-color: var(--rd-red); }
.adv-card .ico-wrap {
  width: 52px; height: 52px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(230,57,70,.18), rgba(255,122,0,.10));
  border: 1px solid rgba(230,57,70,.30);
  display: grid; place-items: center;
  margin-bottom: 18px;
  color: var(--rd-red-soft);
}
.adv-card .ico-wrap svg { width: 26px; height: 26px; }
.adv-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.adv-card p { color: var(--text-muted); font-size: 14.5px; }

/* ---------- Tutorials grid ---------- */
.tut-controls {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  margin-bottom: 32px;
}
.search-box {
  flex: 1; min-width: 260px;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 0 16px; border-radius: 999px;
  transition: border-color var(--t-fast);
}
.search-box:focus-within { border-color: var(--rd-red); }
.search-box svg { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }
.search-box input {
  flex: 1; background: transparent; border: 0; outline: 0;
  color: var(--text); font-size: 15px; padding: 14px 0;
  font-family: inherit;
}
.search-box input::placeholder { color: var(--text-dim); }

.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-soft); padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  transition: all var(--t-fast);
}
.pill:hover { color: var(--text); border-color: var(--text-muted); }
.pill.active { background: var(--rd-red); border-color: var(--rd-red); color: #fff; }

.tut-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}
.tut-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform var(--t-base), border-color var(--t-base), background var(--t-base);
  position: relative; overflow: hidden;
  color: var(--text);
}
.tut-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--rd-red), var(--rd-orange));
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-base);
}
.tut-card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface-2); color: var(--text); }
.tut-card:hover::before { transform: scaleX(1); }
.tut-card .tut-ico {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(230,57,70,.10); color: var(--rd-red-soft);
  display: grid; place-items: center;
}
.tut-card .tut-ico svg { width: 22px; height: 22px; }
.tut-card h3 {
  font-size: 17px; font-weight: 700; line-height: 1.3;
  color: var(--text);
}
.tut-card p { color: var(--text-muted); font-size: 14px; line-height: 1.55; }
.tut-card .tut-meta {
  display: flex; gap: 10px; align-items: center;
  font-size: 12px; color: var(--text-dim);
  margin-top: auto;
}
.tut-card .tut-meta .badge {
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 3px 9px; border-radius: 999px;
  color: var(--text-soft); font-weight: 600;
}
.tut-card .read-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: var(--rd-red-soft);
}
.tut-card .read-more svg { width: 14px; height: 14px; transition: transform var(--t-fast); }
.tut-card:hover .read-more svg { transform: translateX(4px); }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 880px; margin: 0 auto; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); margin-bottom: 12px; overflow: hidden;
}
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; background: transparent; border: 0;
  padding: 20px 22px; color: var(--text); text-align: left;
  font-weight: 600; font-size: 16px;
  transition: background var(--t-fast);
}
.faq-q:hover { background: var(--surface-2); }
.faq-q .chev {
  width: 22px; height: 22px; flex-shrink: 0; color: var(--text-muted);
  transition: transform var(--t-base);
}
.faq-item.open .faq-q .chev { transform: rotate(180deg); color: var(--rd-red); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height var(--t-base) ease;
}
.faq-item.open .faq-a { max-height: 600px; }
.faq-a-inner {
  padding: 0 22px 22px; color: var(--text-soft);
  font-size: 15px; line-height: 1.7;
}
.faq-a-inner p + p { margin-top: 10px; }

/* ---------- Tutorial article page ---------- */
.tut-page-wrap {
  display: grid; grid-template-columns: 1fr 260px;
  gap: 56px; padding: 56px 0;
}
@media (max-width: 980px) { .tut-page-wrap { grid-template-columns: 1fr; gap: 32px; } }

.breadcrumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-muted); margin-bottom: 24px;
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--rd-red-soft); }
.breadcrumbs .sep { color: var(--text-dim); }

.tut-article header h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15; font-weight: 800; letter-spacing: -.02em;
  margin-bottom: 16px;
}
.tut-article header .meta {
  display: flex; gap: 16px; flex-wrap: wrap; color: var(--text-muted);
  font-size: 14px; margin-bottom: 30px;
}
.tut-article header .meta span {
  display: inline-flex; align-items: center; gap: 6px;
}
.tut-article header .meta svg { width: 16px; height: 16px; color: var(--rd-red-soft); }

.lead-box {
  background: linear-gradient(135deg, rgba(230,57,70,.08), rgba(56,189,248,.05));
  border: 1px solid var(--border);
  border-left: 3px solid var(--rd-red);
  padding: 20px 24px; border-radius: var(--r-md);
  margin-bottom: 32px;
  color: var(--text-soft); font-size: 16px;
}

.tut-article h2 {
  font-size: 26px; font-weight: 800; letter-spacing: -.01em;
  margin: 40px 0 16px; line-height: 1.25;
  display: flex; align-items: center; gap: 12px;
}
.tut-article h2 .step-num {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--rd-red), var(--rd-orange));
  color: #fff; border-radius: 10px;
  font-size: 17px; font-weight: 700;
  box-shadow: 0 6px 18px rgba(230,57,70,.35);
}
.tut-article h3 {
  font-size: 20px; font-weight: 700; letter-spacing: -.01em;
  margin: 30px 0 12px;
}
.tut-article p { margin: 0 0 16px; color: var(--text-soft); font-size: 16px; }
.tut-article ul, .tut-article ol {
  margin: 0 0 20px; padding-left: 22px; color: var(--text-soft);
}
.tut-article li { margin-bottom: 8px; }
.tut-article strong { color: var(--text); font-weight: 700; }
.tut-article a { color: var(--rd-cyan); font-weight: 500; }
.tut-article a:hover { text-decoration: underline; }

.tut-article hr {
  border: 0; border-top: 1px solid var(--border); margin: 32px 0;
}

/* Code blocks (inline + block) */
.tut-article code {
  font-family: var(--font-mono); font-size: .92em;
  background: var(--code-bg); color: var(--code-text);
  padding: 2px 7px; border-radius: 5px;
  border: 1px solid var(--code-border);
}
.tut-article pre {
  background: var(--code-bg); border: 1px solid var(--code-border);
  border-radius: var(--r-md);
  padding: 18px 20px; margin: 16px 0 24px;
  overflow-x: auto; font-family: var(--font-mono);
  font-size: 14px; line-height: 1.55; color: var(--code-text);
  position: relative;
}
.tut-article pre code {
  background: transparent; border: 0; padding: 0; color: inherit;
}

/* Callouts */
.callout {
  display: flex; gap: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--rd-cyan);
  padding: 16px 18px; border-radius: var(--r-md);
  margin: 18px 0 26px;
}
.callout.warn { border-left-color: var(--rd-orange); }
.callout.tip { border-left-color: var(--rd-green); }
.callout .ico {
  flex-shrink: 0; width: 22px; height: 22px; color: var(--rd-cyan);
}
.callout.warn .ico { color: var(--rd-orange); }
.callout.tip .ico { color: var(--rd-green); }
.callout p { margin: 0; color: var(--text-soft); font-size: 15px; line-height: 1.6; }
.callout strong { color: var(--text); }

/* Step illustration (SVG mock) */
.step-illust {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 20px;
  margin: 20px 0;
  display: flex; justify-content: center; align-items: center;
  min-height: 180px;
}
.step-illust svg { max-width: 100%; height: auto; }

/* TOC sidebar */
.toc {
  position: sticky; top: 88px;
  align-self: start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 20px;
  font-size: 14px;
}
.toc h4 {
  font-size: 12px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 12px;
}
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: tocstep; }
.toc li { counter-increment: tocstep; margin-bottom: 8px; }
.toc a {
  display: block; padding: 6px 8px; border-radius: 6px;
  color: var(--text-soft); font-size: 13.5px; line-height: 1.4;
  border-left: 2px solid transparent;
}
.toc a::before {
  content: counter(tocstep) ". ";
  color: var(--rd-red-soft); font-weight: 700; margin-right: 4px;
}
.toc a:hover { background: var(--surface-2); color: var(--text); border-left-color: var(--rd-red); }

@media (max-width: 980px) { .toc { position: static; } }

/* Related cards / next steps */
.related {
  margin-top: 40px; padding-top: 30px;
  border-top: 1px solid var(--border);
}
.related h3 {
  font-size: 20px; font-weight: 700; margin-bottom: 18px;
}
.related-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.related-grid a {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 14px 16px; border-radius: var(--r-md);
  color: var(--text); font-size: 14.5px; font-weight: 600;
  transition: all var(--t-fast);
}
.related-grid a:hover { border-color: var(--rd-red); transform: translateX(3px); color: var(--text); }
.related-grid a svg {
  width: 18px; height: 18px; color: var(--rd-red-soft); flex-shrink: 0;
}

/* ---------- CTA banner ---------- */
.cta-band {
  background: linear-gradient(135deg, rgba(230,57,70,.12) 0%, rgba(255,122,0,.08) 100%);
  border: 1px solid rgba(230,57,70,.30);
  border-radius: var(--r-xl);
  padding: 48px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  margin: 40px 0;
}
.cta-band h3 {
  font-size: clamp(22px, 2.5vw, 30px); line-height: 1.2; font-weight: 800;
  margin-bottom: 6px;
}
.cta-band p { color: var(--text-soft); font-size: 16px; margin: 0; }
.cta-band .btn-primary { flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
  margin-top: 60px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px;
  margin-bottom: 36px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-col h5 {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 700; margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-soft); font-size: 14.5px; }
.footer-col a:hover { color: var(--rd-red-soft); }
.footer-about p { color: var(--text-muted); font-size: 14.5px; max-width: 360px; margin-top: 14px; }

.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-muted);
}
.footer-bottom .badges { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-bottom .badges span {
  background: var(--surface); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 999px; font-size: 12px;
  color: var(--text-soft); font-weight: 600;
}

/* ---------- Animations on scroll (simple) ---------- */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Utilities ---------- */
.hidden { display: none !important; }
.mt-0 { margin-top: 0 !important; }
.text-center { text-align: center; }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .toc, .cta-band, .nav-toggle { display: none !important; }
  body { background: white; color: black; }
  body::before, body::after { display: none; }
  a { color: black; text-decoration: underline; }
}
