/* ============================================================
   Social Downloader — Professional Theme
   Palette: Forest Green / Pale Sage / Warm Off-White / Dark / Coral
   ============================================================ */

:root {
  --forest: #225B48;
  --forest-dark: #1a4a3a;
  --forest-light: #2d7358;
  --sage: #E8F0E7;
  --sage-dark: #d4e0d2;
  --offwhite: #F8F8F3;
  --ink: #1E2D26;
  --ink-light: #3d4f45;
  --muted: #5a6b62;
  --coral: #E6B7A4;
  --coral-dark: #d4a08e;
  --coral-light: #f0d4c8;
  --white: #ffffff;
  --border: rgba(30, 45, 38, 0.08);
  --border-strong: rgba(30, 45, 38, 0.14);
  --shadow-sm: 0 1px 3px rgba(30, 45, 38, 0.06);
  --shadow-md: 0 4px 16px rgba(30, 45, 38, 0.08);
  --shadow-lg: 0 8px 32px rgba(30, 45, 38, 0.12);
  --shadow-xl: 0 16px 48px rgba(30, 45, 38, 0.16);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --transition: 0.2s ease;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--offwhite);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font: inherit; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--forest);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(34, 91, 72, 0.3);
}
.btn-primary:hover { background: var(--forest-dark); box-shadow: 0 6px 20px rgba(34, 91, 72, 0.4); }
.btn-coral {
  background: var(--coral);
  color: var(--ink);
}
.btn-coral:hover { background: var(--coral-dark); }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-strong);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--forest); color: var(--forest); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 248, 243, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--forest);
  color: var(--white);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.logo-accent { color: var(--forest); }
.main-nav {
  display: flex;
  gap: 4px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: all var(--transition);
}
.nav-link:hover { color: var(--forest); background: var(--sage); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--sage) 0%, var(--offwhite) 100%);
  padding: 56px 20px 48px;
  text-align: center;
}
.hero-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--forest);
  box-shadow: var(--shadow-sm);
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--forest);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.text-accent { color: var(--forest); }
.hero-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.6;
}

/* ---------- Input Card ---------- */
.input-card {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.input-row {
  display: flex;
  gap: 8px;
}
.input-row input {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border-strong);
  background: var(--offwhite);
  color: var(--ink);
  font-size: 15px;
  outline: none;
  transition: all var(--transition);
}
.input-row input::placeholder { color: #9aa8a0; }
.input-row input:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(34, 91, 72, 0.12);
  background: var(--white);
}
.error {
  color: #c0392b;
  font-size: 13.5px;
  text-align: left;
}

/* ---------- Preview ---------- */
.preview {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 14px;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.preview-thumb {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sage);
  aspect-ratio: 16 / 9;
}
.preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.75);
  color: var(--white);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.preview-meta h2 {
  margin: 8px 0 4px;
  font-size: 16px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.muted {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Chips ---------- */
.chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
}
.chip.small { padding: 3px 9px; font-size: 11px; }
.chip.instagram { background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888); }
.chip.facebook  { background: #1877f2; }
.chip.tiktok    { background: linear-gradient(90deg, #25f4ee, #fe2c55); color: #0b0b12; }
.chip.pinterest { background: #e60023; }

/* ---------- Ad Slots ---------- */
.ad-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.ad-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9aa8a0;
}
.ad-placeholder {
  width: 100%;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sage);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
}

/* ---------- Sections ---------- */
.section { padding: 56px 20px; }
.section-alt { background: var(--sage); }
.section-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.section-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
}
.section-sub {
  font-size: 15px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 20px;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
}
.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.step:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.step-number {
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* ---------- Platforms ---------- */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  width: 100%;
}
.platform-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.platform-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.platform-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--white);
}
.platform-icon.instagram { background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888); }
.platform-icon.facebook  { background: #1877f2; }
.platform-icon.tiktok    { background: #010101; border: 1px solid var(--border-strong); }
.platform-icon.pinterest { background: #e60023; }
.platform-card h3 { font-size: 15px; margin-bottom: 4px; }
.platform-card p { font-size: 12.5px; color: var(--muted); }

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: var(--sage);
  color: var(--forest);
  display: grid;
  place-items: center;
}
.feature-card h3 { font-size: 15px; margin-bottom: 4px; }
.feature-card p { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* ---------- FAQ ---------- */
.faq-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.faq-item.active { box-shadow: var(--shadow-md); border-color: var(--forest); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  color: var(--ink);
  transition: all var(--transition);
}
.faq-question:hover { color: var(--forest); }
.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--forest);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 400;
  flex-shrink: 0;
  transition: all var(--transition);
}
.faq-item.active .faq-icon {
  background: var(--forest);
  color: var(--white);
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer p {
  padding: 0 18px 16px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
}
.footer-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 20px 32px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}
.footer-brand { max-width: 300px; }
.footer-brand .logo { color: var(--white); margin-bottom: 14px; }
.footer-brand .logo-accent { color: var(--coral); }
.footer-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.5);
}
.footer-links {
  display: flex;
  gap: 48px;
}
.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--coral);
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.55);
  padding: 3px 0;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 20px;
  text-align: center;
}
.footer-bottom p { font-size: 12.5px; color: rgba(255, 255, 255, 0.35); }

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 90;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--forest-dark); }

/* ---------- Busy Overlay ---------- */
.busy {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  background: rgba(248, 248, 243, 0.85);
  backdrop-filter: blur(8px);
  font-size: 15px;
  color: var(--ink);
}
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--sage);
  border-top-color: var(--forest);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .hero { padding: 40px 16px 36px; }
  .hero-title { font-size: 28px; }
  .hero-sub { font-size: 14.5px; }
  .section { padding: 40px 16px; }
  .section-title { font-size: 24px; }
  .steps { grid-template-columns: 1fr; }
  .platforms-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 20px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .main-nav.open { display: flex; }
  .menu-toggle { display: flex; }
  .nav-cta { display: none; }
  .footer-inner { flex-direction: column; gap: 28px; }
  .footer-links { gap: 32px; }
  .input-row { flex-direction: column; }
  .input-row .btn { width: 100%; }
}

@media (max-width: 400px) {
  .platforms-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 24px; }
}

/* ---------- Legal Pages ---------- */
.legal-hero {
  background: linear-gradient(180deg, var(--sage) 0%, var(--offwhite) 100%);
  padding: 48px 20px 36px;
  text-align: center;
}
.legal-inner h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.legal-updated {
  font-size: 13px;
  color: var(--muted);
}
.legal-content {
  max-width: 640px;
  margin: 0 auto;
}
.legal-content h2 {
  font-size: 19px;
  font-weight: 700;
  margin: 28px 0 10px;
  color: var(--ink);
}
.legal-content h2:first-child {
  margin-top: 0;
}
.legal-content p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-light);
  margin-bottom: 12px;
}
.legal-content ul {
  margin: 0 0 14px 20px;
  padding: 0;
}
.legal-content li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-light);
  margin-bottom: 6px;
}
.legal-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0;
}
.legal-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.legal-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--forest);
}
.legal-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--ink);
}
.legal-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 10px;
}
.legal-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--forest);
}

@media (max-width: 640px) {
  .legal-cards { grid-template-columns: 1fr; }
  .legal-inner h1 { font-size: 26px; }
}

/* ---------- Inline Loading States ---------- */
.spinner-sm {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  flex-shrink: 0;
}
.btn-loading {
  pointer-events: none;
  opacity: 0.75;
}
.btn-outline .spinner-sm,
.btn-coral .spinner-sm {
  border-color: rgba(30, 45, 38, 0.2);
  border-top-color: var(--forest);
}

/* ---------- Thumbnail Placeholder ---------- */
.preview-thumb.no-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sage) 0%, var(--coral-light) 100%);
}
.thumb-placeholder {
  color: var(--forest);
  opacity: 0.5;
}
.preview-thumb video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* ---------- Platform Cards as Links ---------- */
a.platform-card {
  text-decoration: none;
  color: inherit;
}

/* ---------- Platform Pages ---------- */
.platform-hero {
  background: linear-gradient(180deg, var(--sage) 0%, var(--offwhite) 100%);
  padding: 48px 20px 40px;
  text-align: center;
}
.platform-hero-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--forest);
  box-shadow: var(--shadow-sm);
}
.platform-hero h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.platform-sub {
  font-size: 15px;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.6;
}
.platform-layout {
  max-width: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 24px;
  align-items: start;
}
.platform-main h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 28px 0 10px;
  letter-spacing: -0.01em;
}
.platform-main h2:first-child {
  margin-top: 0;
}
.platform-main p {
  font-size: 14.5px;
  color: var(--ink-light);
  line-height: 1.7;
  margin-bottom: 14px;
}
.platform-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0 24px;
}
.platform-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.platform-step .step-number {
  width: 32px;
  height: 32px;
  font-size: 15px;
  margin: 0;
  flex-shrink: 0;
}
.platform-step h4 {
  font-size: 15px;
  margin-bottom: 4px;
}
.platform-step p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
.platform-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0 24px;
}
.platform-feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.platform-feature svg {
  flex-shrink: 0;
  color: var(--forest);
  margin-top: 2px;
}
.platform-feature h4 {
  font-size: 14px;
  margin-bottom: 2px;
}
.platform-feature p {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}
.platform-faq {
  margin-top: 8px;
}
.sidebar {
  position: sticky;
  top: 80px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.sidebar h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 12px;
}
.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: all var(--transition);
}
.sidebar-link:hover {
  background: var(--sage);
}
.sidebar-link.active {
  background: var(--forest);
  color: var(--white);
}
.sidebar-link.instagram { border-left: 3px solid #bc1888; }
.sidebar-link.facebook { border-left: 3px solid #1877f2; }
.sidebar-link.tiktok { border-left: 3px solid #010101; }
.sidebar-link.pinterest { border-left: 3px solid #e60023; }
.sidebar-link.active.instagram,
.sidebar-link.active.facebook,
.sidebar-link.active.tiktok,
.sidebar-link.active.pinterest {
  border-left-color: transparent;
}

@media (max-width: 640px) {
  .platform-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; order: -1; }
  .platform-hero h1 { font-size: 26px; }
  .platform-features { grid-template-columns: 1fr; }
}

/* ---------- Intro Section ---------- */
.intro-section { padding-top: 40px; }
.intro-content {
  max-width: 640px;
  margin: 0 auto;
}
.intro-content p {
  font-size: 15px;
  color: var(--ink-light);
  line-height: 1.75;
  margin-bottom: 14px;
}
.intro-content strong { color: var(--forest); }

/* ---------- Guides Section ---------- */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  margin-top: 20px;
}
.guide-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
}
.guide-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--forest);
}
.guide-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--white);
  margin-bottom: 14px;
}
.guide-icon.instagram { background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888); }
.guide-icon.facebook { background: #1877f2; }
.guide-icon.tiktok { background: #010101; border: 1px solid var(--border-strong); }
.guide-card h3 {
  font-size: 15.5px;
  margin-bottom: 6px;
  line-height: 1.35;
}
.guide-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 12px;
}
.guide-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--forest);
}

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