/* ============================================================
   SavePinn — Pinterest Downloader
   Design ported from the PinDown (React/Tailwind) source.
   Palette: Tailwind slate + red-600.
   ============================================================ */

:root {
  --red-50: #fef2f2;
  --red-100: #fee2e2;
  --red-200: #fecaca;
  --red-400: #f87171;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --red-700: #b91c1c;

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --maxw: 80rem;   /* max-w-7xl */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--slate-900);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1rem; }
.narrow { max-width: 56rem; } /* max-w-4xl */
.accent { color: var(--red-600); }

@media (min-width: 640px) { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem; } }

/* ===================== NAVBAR ===================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, .5);
}
.nav-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
@media (min-width: 640px) { .nav-inner { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .nav-inner { padding-inline: 2rem; } }

.brand { display: inline-flex; align-items: center; gap: .5rem; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.125rem;
  height: 2.125rem;
  background: var(--red-600);
  color: var(--white);
  border-radius: .5rem;
  transition: background .15s;
}
.brand:hover .brand-mark { background: var(--red-700); }
.brand-glyph {
  color: var(--white);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1;
  letter-spacing: -0.02em;
}
.brand-name { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; color: var(--slate-900); }
.brand-name span { color: var(--red-600); }
.brand-name.light { color: var(--white); font-size: 1.5rem; }
.brand-name.light span { color: var(--red-500); }

.nav-links { display: none; align-items: center; gap: 2rem; font-weight: 500; color: var(--slate-600); }
.nav-links a { transition: color .15s; }
.nav-links a:hover { color: var(--red-600); }
@media (min-width: 768px) { .nav-links { display: flex; } }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 1rem 3rem;
}
@media (min-width: 768px) { .hero { padding: 5.5rem 1rem 4rem; } }

.hero-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 500px;
  background: linear-gradient(to bottom, var(--red-50), transparent);
  z-index: -1;
}
.hero-inner { max-width: 56rem; margin-inline: auto; text-align: center; }

.hero h1 {
  font-size: 2.25rem;
  line-height: 1.1;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: 1.125rem;
  color: var(--slate-600);
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}
@media (min-width: 768px) {
  .hero h1 { font-size: 3rem; }
  .hero-sub { font-size: 1.25rem; }
}
@media (min-width: 1024px) { .hero h1 { font-size: 3.75rem; } }

/* Search pill */
.search {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: .5rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 9999px;
  box-shadow: 0 10px 15px -3px rgba(226, 232, 240, .5), 0 4px 6px -4px rgba(226, 232, 240, .5);
  transition: border-color .15s, box-shadow .15s;
}
.search:focus-within {
  border-color: var(--red-400);
  box-shadow: 0 0 0 4px var(--red-100);
}
.search input {
  flex: 1;
  min-width: 0;
  padding: .75rem 1rem;
  font-size: 1rem;
  background: transparent;
  border: none;
  outline: none;
  color: var(--slate-900);
}
.search input::placeholder { color: var(--slate-400); }
@media (min-width: 768px) {
  .search input { padding: 1rem 1.5rem; font-size: 1.125rem; }
}

.search-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  background: var(--red-600);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  font-family: inherit;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: background .15s, opacity .15s;
}
.search-btn:hover { background: var(--red-700); }
.search-btn:disabled { opacity: .7; cursor: not-allowed; }
@media (min-width: 768px) { .search-btn { padding: 1rem 2.5rem; } }

.btn-content { display: inline-flex; align-items: center; gap: .5rem; }
.search-btn .btn-label { display: none; }
@media (min-width: 768px) { .search-btn .btn-label { display: inline; } }

.spinner {
  display: none;
  width: 20px; height: 20px;
  border: 2.5px solid rgba(255,255,255,.45);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.search-btn.loading .btn-content { display: none; }
.search-btn.loading .spinner { display: inline-block; }

/* Error box */
.error-box {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  max-width: 42rem;
  margin: 1.5rem auto 0;
  padding: 1rem;
  text-align: left;
  background: var(--red-50);
  border: 1px solid var(--red-200);
  color: var(--red-700);
  border-radius: 1rem;
  animation: fade-in .2s ease;
}
.error-box[hidden] { display: none; }
.error-box svg { flex-shrink: 0; color: var(--red-500); margin-top: 2px; }
.error-box p { font-size: .875rem; font-weight: 500; }

/* Result card */
.result { max-width: 42rem; margin: 2.5rem auto 0; }
.result[hidden] { display: none; }
.result-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: 1.5rem;
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, .08), 0 8px 10px -6px rgba(15, 23, 42, .05);
  animation: pop-in .25s ease;
}
@media (min-width: 768px) {
  .result-card { flex-direction: row; padding: 1.5rem; }
}
.result-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--slate-100);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  justify-content: center;
}
.result-media img, .result-media video { width: 100%; height: 100%; object-fit: cover; }
.result-media .badge {
  position: absolute;
  top: .625rem; left: .625rem;
  background: rgba(15, 23, 42, .8);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .25rem .6rem;
  border-radius: .5rem;
}
@media (min-width: 768px) {
  .result-media { width: 50%; height: 16rem; aspect-ratio: auto; }
}
.result-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .result-info { width: 50%; align-items: flex-start; text-align: left; }
}
.result-info h3 {
  font-weight: 700;
  color: var(--slate-800);
  font-size: 1.125rem;
  margin-bottom: .5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.result-info .type {
  font-size: .8rem;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.result-info .type b { color: var(--slate-700); font-weight: 700; }

.dl-primary {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: 1rem 1.5rem;
  background: var(--slate-900);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: .75rem;
  cursor: pointer;
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, .2);
  transition: background .15s;
}
.dl-primary:hover { background: var(--slate-800); }

.dl-more { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; width: 100%; justify-content: center; }
@media (min-width: 768px) { .dl-more { justify-content: flex-start; } }
.dl-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .85rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--slate-700);
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: .6rem;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.dl-chip:hover { border-color: var(--red-300, #fca5a5); background: var(--red-50); color: var(--red-700); }
.dl-chip .sz { color: var(--slate-400); font-weight: 500; }

/* ===================== SECTION HEAD ===================== */
.section-head { text-align: center; max-width: 48rem; margin: 0 auto 2.75rem; }
.section-head h2 { font-size: 1.875rem; font-weight: 800; color: var(--slate-900); }
.section-head p { margin-top: 1rem; font-size: 1.125rem; color: var(--slate-600); }
@media (min-width: 640px) { .section-head h2 { font-size: 2.25rem; } }

/* ===================== FEATURES ===================== */
.features { padding: 3.5rem 0; background: var(--white); }
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }

.feature-card {
  padding: 2rem;
  border-radius: 1.5rem;
  background: var(--slate-50);
  border: 1px solid var(--slate-100);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.feature-card:hover {
  border-color: var(--red-100);
  background: rgba(254, 242, 242, .5);
  box-shadow: 0 20px 25px -5px rgba(127, 29, 29, .05);
}
.feature-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  display: grid;
  place-items: center;
  color: var(--slate-700);
  margin-bottom: 1.5rem;
  transition: background .2s, color .2s;
}
.feature-card:hover .feature-icon { background: var(--red-600); color: var(--white); }
.feature-card h3 { font-size: 1.25rem; font-weight: 700; color: var(--slate-900); margin-bottom: .75rem; }
.feature-card p { color: var(--slate-600); line-height: 1.65; }

/* ===================== HOW TO ===================== */
.howto { padding: 3.5rem 0; background: var(--slate-50); }
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }

.step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.step-badge {
  position: relative;
  z-index: 1;
  width: 6rem;
  height: 6rem;
  border-radius: 9999px;
  background: var(--white);
  border: 4px solid var(--red-50);
  box-shadow: 0 10px 15px -3px rgba(127, 29, 29, .05);
  display: grid;
  place-items: center;
  color: var(--red-600);
  margin-bottom: 2rem;
}
.step-num {
  position: absolute;
  top: -.75rem; right: -.75rem;
  width: 2rem; height: 2rem;
  border-radius: 9999px;
  background: var(--slate-900);
  color: var(--white);
  font-weight: 700;
  font-size: .875rem;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
}
.step h3 { font-size: 1.5rem; font-weight: 700; color: var(--slate-900); margin-bottom: 1rem; }
.step p { color: var(--slate-600); line-height: 1.65; max-width: 20rem; }
/* connector line (desktop) */
@media (min-width: 768px) {
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 3rem;
    left: 50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--red-200), transparent);
    z-index: 0;
  }
}

/* ===================== FAQ ===================== */
.faq { padding: 3.5rem 0; background: var(--slate-50); }
.accordion { display: flex; flex-direction: column; gap: 1rem; }
.faq-item {
  border: 1px solid var(--slate-200);
  background: var(--white);
  border-radius: 1rem;
  overflow: hidden;
  transition: border-color .2s, background .2s;
}
.faq-item.open { border-color: var(--red-200); background: rgba(254, 242, 242, .3); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--slate-900);
}
.faq-q .chev { flex-shrink: 0; color: var(--slate-400); transition: transform .3s, color .2s; }
.faq-item.open .chev { transform: rotate(180deg); color: var(--red-600); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .25s ease;
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > p {
  overflow: hidden;
  padding: 0 1.5rem;
  color: var(--slate-600);
  line-height: 1.65;
}
.faq-item.open .faq-a > p { padding-bottom: 1.5rem; }

/* ===================== SUPPORTED STRIP ===================== */
.supports {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.75rem;
}
.supports li {
  padding: .35rem .8rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--slate-600);
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 9999px;
}

/* ===================== CONTENT TYPES ===================== */
.types { padding: 3.5rem 0; background: var(--white); }
.type-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .type-grid { grid-template-columns: repeat(2, 1fr); } }
.type-card {
  padding: 2rem;
  border: 1px solid var(--slate-200);
  border-radius: 1.5rem;
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.type-card:hover { border-color: var(--red-200); box-shadow: 0 20px 25px -5px rgba(127, 29, 29, .05); }
.type-tag {
  display: inline-block;
  margin-bottom: 1rem;
  padding: .25rem .65rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--red-700);
  background: var(--red-50);
  border-radius: .5rem;
}
.type-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: .75rem; }
.type-card p { color: var(--slate-600); line-height: 1.7; }
.type-card code { font-size: .9em; color: var(--slate-800); }

/* ===================== DEVICES ===================== */
.devices { padding: 3.5rem 0; background: var(--slate-50); }
.device-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 1024px) { .device-grid { grid-template-columns: repeat(3, 1fr); } }
.device-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: 1.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.device-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.device-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: .85rem;
  background: var(--red-50);
  color: var(--red-600);
  flex-shrink: 0;
}
.device-head h3 { font-size: 1.25rem; font-weight: 700; }
.device-card ol { margin: 0; padding: 0; list-style: none; counter-reset: step; flex: 1; }
.device-card li {
  position: relative;
  padding-left: 2.25rem;
  margin-bottom: .9rem;
  color: var(--slate-600);
  line-height: 1.6;
  counter-increment: step;
}
.device-card li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: .05rem;
  width: 1.5rem; height: 1.5rem;
  border-radius: 9999px;
  background: var(--slate-900);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.device-card strong { color: var(--slate-800); }
.device-note {
  margin-top: .5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--slate-100);
  font-size: .85rem;
  color: var(--slate-500);
}
kbd {
  display: inline-block;
  padding: .05rem .4rem;
  font-family: inherit;
  font-size: .8em;
  color: var(--slate-700);
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-bottom-width: 2px;
  border-radius: .3rem;
}

/* ===================== GUIDE (PROSE) ===================== */
.guide { padding: 3.5rem 0; background: var(--white); }
.prose { color: var(--slate-600); font-size: 1.0625rem; line-height: 1.75; }
.prose h2 { font-size: 1.875rem; font-weight: 800; color: var(--slate-900); line-height: 1.2; margin-bottom: 1.25rem; }
@media (min-width: 640px) { .prose h2 { font-size: 2.25rem; } }
.prose h3 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--slate-900);
  margin: 2.5rem 0 .85rem;
  scroll-margin-top: 5rem;
}
.prose p { margin-bottom: 1.1rem; }
.prose .lead { font-size: 1.15rem; color: var(--slate-700); }
.prose strong { color: var(--slate-800); }
.prose ul { margin: 0 0 1.25rem; padding-left: 1.25rem; list-style: disc; }
.prose ul li { margin-bottom: .5rem; padding-left: .25rem; }
.prose ul li::marker { color: var(--red-500); }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .85em;
  color: var(--slate-800);
  background: var(--slate-100);
  padding: .1rem .35rem;
  border-radius: .3rem;
  word-break: break-word;
}

.toc {
  margin: 2rem 0 .5rem;
  padding: 1.5rem 1.75rem;
  background: var(--slate-50);
  border: 1px solid var(--slate-100);
  border-radius: 1rem;
}
.toc-title { margin-bottom: .75rem !important; font-weight: 700; color: var(--slate-900); }
.toc ol { margin: 0; padding-left: 1.25rem; columns: 1; }
@media (min-width: 640px) { .toc ol { columns: 2; column-gap: 2rem; } }
.toc li { margin-bottom: .4rem; break-inside: avoid; }
.toc a { color: var(--slate-700); transition: color .15s; }
.toc a:hover { color: var(--red-600); }

.table-wrap {
  margin: 0 0 1.5rem;
  overflow-x: auto;
  border: 1px solid var(--slate-200);
  border-radius: 1rem;
}
.prose table { width: 100%; border-collapse: collapse; font-size: .925rem; line-height: 1.5; }
.prose th, .prose td { padding: .8rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--slate-100); }
.prose th { background: var(--slate-50); color: var(--slate-900); font-weight: 700; white-space: nowrap; }
.prose tbody tr:last-child td { border-bottom: none; }
.prose td.yes { color: #15803d; font-weight: 600; }
.prose td.no { color: var(--red-700); font-weight: 600; }
.prose tr.hl td { background: rgba(254, 242, 242, .5); }

/* ===================== CTA ===================== */
.cta { padding: 3.5rem 0; background: var(--red-600); color: var(--white); }
.cta-inner { text-align: center; }
.cta h2 { font-size: 1.875rem; font-weight: 800; }
@media (min-width: 640px) { .cta h2 { font-size: 2.25rem; } }
.cta p { margin: .85rem auto 1.75rem; max-width: 36rem; font-size: 1.125rem; color: var(--red-100); }
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 2rem;
  background: var(--white);
  color: var(--red-700);
  font-weight: 700;
  border-radius: 9999px;
  box-shadow: 0 10px 15px -3px rgba(127, 29, 29, .25);
  transition: transform .15s, box-shadow .15s;
}
.cta-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 20px -4px rgba(127, 29, 29, .3); }

/* ===================== FOOTER ===================== */
.footer { background: var(--slate-900); padding: 4rem 0 2rem; border-top: 1px solid var(--slate-800); }
.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (min-width: 1024px) { .footer-top { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 3rem; } }

.footer-brand { display: flex; flex-direction: column; align-items: center; }
@media (min-width: 1024px) { .footer-brand { align-items: flex-start; } }
.footer-brand .brand { margin-bottom: 1rem; }
.footer-tagline { color: var(--slate-400); text-align: center; max-width: 24rem; }
@media (min-width: 1024px) { .footer-tagline { text-align: left; } }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 3rem;
  width: 100%;
  text-align: left;
}
@media (min-width: 640px) { .footer-cols { grid-template-columns: repeat(4, auto); justify-content: center; } }
@media (min-width: 1024px) { .footer-cols { width: auto; } }
.footer-cols h2 { color: var(--white); font-size: 1rem; font-weight: 700; letter-spacing: 0; margin-bottom: 1rem; }
.footer-cols li { margin-bottom: .75rem; }
.footer-cols a { color: var(--slate-400); transition: color .15s; }
.footer-cols a:hover { color: var(--red-400); }

.footer-bottom {
  border-top: 1px solid var(--slate-800);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--slate-500);
  font-size: .875rem;
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-bottom .disclaimer { font-size: .75rem; }

/* ===================== CONTENT PAGES ===================== */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 2.5rem;
  text-align: center;
  border-bottom: 1px solid var(--slate-100);
}
.page-hero .hero-glow { height: 320px; }
.page-hero h1 { font-size: 2.25rem; font-weight: 800; line-height: 1.15; }
@media (min-width: 768px) { .page-hero { padding: 4.5rem 0 3rem; } .page-hero h1 { font-size: 3rem; } }
.page-intro { margin: 1rem auto 0; max-width: 40rem; font-size: 1.125rem; color: var(--slate-600); }
.page-meta { margin-top: 1rem; font-size: .85rem; font-weight: 600; color: var(--slate-400); }
.page-body { padding: 3rem 0 4rem; }

.prose h2 { font-size: 1.5rem; margin: 2.75rem 0 .85rem; scroll-margin-top: 5rem; }
@media (min-width: 640px) { .prose h2 { font-size: 1.75rem; } }
.prose > h2:first-child, .guide .prose h2 { margin-top: 0; }
.guide .prose h2 { font-size: 1.875rem; margin-bottom: 1.25rem; }
@media (min-width: 640px) { .guide .prose h2 { font-size: 2.25rem; } }
.prose ol { margin: 0 0 1.25rem; padding-left: 1.4rem; }
.prose ol li { margin-bottom: .55rem; padding-left: .25rem; }
.prose ol li::marker { color: var(--red-600); font-weight: 700; }
.prose a:not(.contact-card):not(.cta-btn) { color: var(--red-600); text-decoration: underline; text-underline-offset: 2px; }
.prose a:not(.contact-card):not(.cta-btn):hover { color: var(--red-700); }
.toc a { text-decoration: none !important; color: var(--slate-700) !important; }
.toc a:hover { color: var(--red-600) !important; }

.callout {
  margin: 1.5rem 0 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--red-50);
  border: 1px solid var(--red-100);
  border-radius: 1rem;
}
.callout-title { margin-bottom: .5rem !important; font-weight: 700; color: var(--red-700); }
.callout ul { margin-bottom: 0; }

.contact-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 1.25rem;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.contact-card:hover { border-color: var(--red-200); box-shadow: 0 20px 25px -5px rgba(127, 29, 29, .06); transform: translateY(-2px); }
.contact-icon {
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  margin-bottom: .5rem;
  border-radius: .85rem;
  background: var(--red-50);
  color: var(--red-600);
}
.contact-title { font-weight: 700; color: var(--slate-900); line-height: 1.3; }
.contact-desc { font-size: .9rem; line-height: 1.5; color: var(--slate-600); }
.contact-mail { margin-top: auto; padding-top: .5rem; font-size: .875rem; font-weight: 600; color: var(--red-600); word-break: break-all; }

.notfound-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.cta-btn.solid { background: var(--red-600); color: var(--white); }
.cta-btn.solid:hover { background: var(--red-700); }
.cta-btn.ghost { background: var(--white); color: var(--slate-800); border: 1px solid var(--slate-200); box-shadow: none; }

/* ===================== ANIMATIONS ===================== */
@keyframes fade-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pop-in { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
