/* Refinamento visual dos cinco downloaders. Totalmente limitado às páginas de plataforma. */
:is(.facebook-theme, .instagram-theme, .tiktok-theme, .kwai-theme, .twitter-theme) {
  --dp-accent: #ff5a36;
  --dp-accent-soft: rgba(255, 90, 54, .11);
  --dp-line: rgba(20, 21, 27, .10);
  --dp-surface: rgba(255, 255, 255, .90);
  --dp-text: #15161c;
  --dp-muted: #626773;
}

.facebook-theme { --dp-accent: #0866ff; --dp-accent-soft: rgba(8, 102, 255, .10); }
.instagram-theme { --dp-accent: #d62976; --dp-accent-soft: rgba(214, 41, 118, .10); }
.tiktok-theme { --dp-accent: #fe2c55; --dp-accent-soft: rgba(254, 44, 85, .10); }
.kwai-theme { --dp-accent: #ff5a00; --dp-accent-soft: rgba(255, 90, 0, .11); }
.twitter-theme { --dp-accent: #252932; --dp-accent-soft: rgba(37, 41, 50, .09); }

:is(.facebook-theme, .instagram-theme, .tiktok-theme, .kwai-theme, .twitter-theme) main {
  overflow: clip;
}

:is(.facebook-theme, .instagram-theme, .tiktok-theme) .hero-section,
.kwai-theme .kwai-hero,
.twitter-theme .twitter-hero {
  position: relative;
  isolation: isolate;
  padding-top: clamp(68px, 8vw, 104px);
  padding-bottom: clamp(68px, 8vw, 98px);
}

:is(.facebook-theme, .instagram-theme, .tiktok-theme) .hero-section::after,
.kwai-theme .kwai-hero::after,
.twitter-theme .twitter-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -130px;
  bottom: -150px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: var(--dp-accent-soft);
  filter: blur(3px);
  pointer-events: none;
  animation: dp-orbit 10s ease-in-out infinite;
}

@keyframes dp-orbit {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-18px, -22px, 0) scale(1.06); }
}

:is(.facebook-theme, .instagram-theme, .tiktok-theme) .hero-section h1,
.kwai-theme .kwai-copy h1,
.twitter-theme .twitter-copy h1 {
  max-width: 920px;
  font-size: clamp(42px, 6.5vw, 72px);
  line-height: 1;
  letter-spacing: -.055em;
  text-wrap: balance;
}

:is(.facebook-theme, .instagram-theme, .tiktok-theme) .hero-copy,
.kwai-theme .kwai-copy > p,
.twitter-theme .twitter-copy > p {
  max-width: 760px;
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.7;
}

:is(.facebook-theme, .instagram-theme, .tiktok-theme) .download-card,
.kwai-theme .kwai-download-card,
.twitter-theme .twitter-download-card {
  border: 1px solid color-mix(in srgb, var(--dp-accent) 18%, var(--dp-line));
  border-radius: 25px;
  background: var(--dp-surface);
  box-shadow: 0 25px 70px rgba(16, 18, 25, .12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color .28s ease, box-shadow .28s ease, transform .28s ease;
}

:is(.facebook-theme, .instagram-theme, .tiktok-theme) .download-card:hover,
.kwai-theme .kwai-download-card:hover,
.twitter-theme .twitter-download-card:hover {
  border-color: color-mix(in srgb, var(--dp-accent) 38%, var(--dp-line));
  box-shadow: 0 30px 84px rgba(16, 18, 25, .16);
  transform: translateY(-3px);
}

:is(.facebook-theme, .instagram-theme, .tiktok-theme) .download-input input,
.kwai-theme .kwai-download-card input,
.twitter-theme .twitter-download-card input {
  border-radius: 14px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

:is(.facebook-theme, .instagram-theme, .tiktok-theme) .download-input input:focus,
.kwai-theme .kwai-download-card input:focus,
.twitter-theme .twitter-download-card input:focus {
  border-color: color-mix(in srgb, var(--dp-accent) 58%, transparent);
  box-shadow: 0 0 0 5px var(--dp-accent-soft);
  transform: translateY(-1px);
}

:is(.facebook-theme, .instagram-theme, .tiktok-theme) .download-card button,
.kwai-theme .kwai-download-card button,
.twitter-theme .twitter-download-card button {
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 14px 32px color-mix(in srgb, var(--dp-accent) 24%, transparent);
  transition: box-shadow .22s ease, filter .22s ease, transform .22s ease;
}

:is(.facebook-theme, .instagram-theme, .tiktok-theme) .download-card button:hover,
.kwai-theme .kwai-download-card button:hover,
.twitter-theme .twitter-download-card button:hover {
  filter: saturate(1.08) brightness(1.03);
  box-shadow: 0 18px 40px color-mix(in srgb, var(--dp-accent) 30%, transparent);
  transform: translateY(-2px);
}

:is(.facebook-theme, .instagram-theme, .tiktok-theme) .hero-content,
:is(.facebook-theme, .instagram-theme) .hero-section .position-relative,
.kwai-theme .kwai-hero-inner,
.twitter-theme .twitter-hero-grid {
  animation: dp-enter .7s cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes dp-enter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

:is(.facebook-theme, .instagram-theme, .tiktok-theme, .kwai-theme, .twitter-theme) .platform-seo {
  padding: clamp(64px, 7vw, 84px) 0 clamp(74px, 8vw, 96px);
  background:
    radial-gradient(circle at 7% 0, var(--platform-seo-accent-soft), transparent 23%),
    linear-gradient(180deg, #fff 0%, #f7f8fb 100%);
}

:is(.facebook-theme, .instagram-theme, .tiktok-theme, .kwai-theme, .twitter-theme) .platform-seo-inner {
  width: min(1120px, calc(100% - 40px));
}

:is(.facebook-theme, .instagram-theme, .tiktok-theme, .kwai-theme, .twitter-theme) .platform-seo-intro {
  max-width: 860px;
  margin-bottom: 42px;
}

:is(.facebook-theme, .instagram-theme, .tiktok-theme, .kwai-theme, .twitter-theme) .platform-seo-intro h2 {
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.02;
}

:is(.facebook-theme, .instagram-theme, .tiktok-theme, .kwai-theme, .twitter-theme) .platform-seo h2 {
  font-size: clamp(29px, 3.7vw, 43px);
}

:is(.facebook-theme, .instagram-theme, .tiktok-theme, .kwai-theme, .twitter-theme) .platform-seo p {
  font-size: 15px;
  line-height: 1.72;
}

:is(.facebook-theme, .instagram-theme, .tiktok-theme, .kwai-theme, .twitter-theme) .platform-seo-panel {
  margin-bottom: 18px;
  padding: clamp(25px, 4vw, 42px);
  border-radius: 24px;
  box-shadow: 0 18px 52px rgba(20, 21, 28, .065);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

:is(.facebook-theme, .instagram-theme, .tiktok-theme, .kwai-theme, .twitter-theme) .platform-seo-panel:hover {
  border-color: color-mix(in srgb, var(--platform-seo-accent) 32%, var(--alload-line, #eae5ee));
  box-shadow: 0 24px 64px rgba(20, 21, 28, .09);
  transform: translateY(-3px);
}

:is(.facebook-theme, .instagram-theme, .tiktok-theme, .kwai-theme, .twitter-theme) .platform-seo-heading {
  margin-bottom: 25px;
}

:is(.facebook-theme, .instagram-theme, .tiktok-theme, .kwai-theme, .twitter-theme) .platform-seo-steps {
  gap: 10px;
}

:is(.facebook-theme, .instagram-theme, .tiktok-theme, .kwai-theme, .twitter-theme) .platform-seo-steps li {
  min-height: 218px;
  gap: 15px;
  padding: 18px;
  border-radius: 17px;
  transition: border-color .24s ease, box-shadow .24s ease, transform .24s ease;
}

:is(.facebook-theme, .instagram-theme, .tiktok-theme, .kwai-theme, .twitter-theme) .platform-seo-steps li:hover {
  border-color: color-mix(in srgb, var(--platform-seo-accent) 32%, var(--alload-line, #eae5ee));
  box-shadow: 0 18px 38px rgba(20, 21, 28, .08);
  transform: translateY(-4px);
}

:is(.facebook-theme, .instagram-theme, .tiktok-theme, .kwai-theme, .twitter-theme) .platform-seo-steps h3 {
  font-size: 15px;
}

:is(.facebook-theme, .instagram-theme, .tiktok-theme, .kwai-theme, .twitter-theme) .platform-seo-steps p {
  font-size: 12.5px;
  line-height: 1.62;
}

:is(.facebook-theme, .instagram-theme, .tiktok-theme, .kwai-theme, .twitter-theme) .platform-seo-devices {
  padding: 50px 0 28px;
}

:is(.facebook-theme, .instagram-theme, .tiktok-theme, .kwai-theme, .twitter-theme) .platform-seo-grid {
  gap: 14px;
}

:is(.facebook-theme, .instagram-theme, .tiktok-theme, .kwai-theme, .twitter-theme) .platform-seo-card {
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 14px 38px rgba(20, 21, 28, .05);
  transition: border-color .24s ease, box-shadow .24s ease, transform .24s ease;
}

:is(.facebook-theme, .instagram-theme, .tiktok-theme, .kwai-theme, .twitter-theme) .platform-seo-card:hover {
  border-color: color-mix(in srgb, var(--platform-seo-accent) 30%, var(--alload-line, #eae5ee));
  box-shadow: 0 22px 48px rgba(20, 21, 28, .08);
  transform: translateY(-4px);
}

:is(.facebook-theme, .instagram-theme, .tiktok-theme, .kwai-theme, .twitter-theme) .platform-seo-card h2,
:is(.facebook-theme, .instagram-theme, .tiktok-theme, .kwai-theme, .twitter-theme) .platform-seo-card h3 {
  font-size: clamp(21px, 2.4vw, 27px);
}

:is(.facebook-theme, .instagram-theme, .tiktok-theme, .kwai-theme, .twitter-theme) .platform-seo-faq {
  padding-top: 48px;
}

:is(.facebook-theme, .instagram-theme, .tiktok-theme, .kwai-theme, .twitter-theme) .platform-seo-faq details {
  border-radius: 15px;
  box-shadow: 0 9px 26px rgba(20, 21, 28, .045);
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

:is(.facebook-theme, .instagram-theme, .tiktok-theme, .kwai-theme, .twitter-theme) .platform-seo-faq details:hover,
:is(.facebook-theme, .instagram-theme, .tiktok-theme, .kwai-theme, .twitter-theme) .platform-seo-faq details[open] {
  border-color: color-mix(in srgb, var(--platform-seo-accent) 34%, var(--alload-line, #eae5ee));
  box-shadow: 0 15px 36px rgba(20, 21, 28, .075);
  transform: translateY(-2px);
}

@supports (animation-timeline: view()) {
  :is(.facebook-theme, .instagram-theme, .tiktok-theme, .kwai-theme, .twitter-theme) :is(.platform-seo-intro, .platform-seo-panel, .platform-seo-devices, .platform-seo-information, .platform-seo-faq) {
    animation: dp-view-reveal linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 24%;
  }

  @keyframes dp-view-reveal {
    from { opacity: .3; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

html[data-theme="dark"] :is(.facebook-theme, .instagram-theme, .tiktok-theme, .kwai-theme, .twitter-theme) {
  --dp-line: rgba(255, 255, 255, .10);
  --dp-surface: rgba(18, 21, 29, .92);
  --dp-text: #f5f5f7;
  --dp-muted: #adb2bd;
}

html[data-theme="dark"] .twitter-theme {
  --dp-accent: #f2f3f5;
  --dp-accent-soft: rgba(255, 255, 255, .09);
}

html[data-theme="dark"] :is(.facebook-theme, .instagram-theme, .tiktok-theme, .kwai-theme, .twitter-theme) .platform-seo {
  background:
    radial-gradient(circle at 7% 0, var(--platform-seo-accent-soft), transparent 24%),
    linear-gradient(180deg, #0d0f14 0%, #10131a 100%);
}

@media (max-width: 1020px) {
  :is(.facebook-theme, .instagram-theme, .tiktok-theme, .kwai-theme, .twitter-theme) .platform-seo-steps li {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  :is(.facebook-theme, .instagram-theme, .tiktok-theme) .hero-section,
  .kwai-theme .kwai-hero,
  .twitter-theme .twitter-hero {
    padding-top: 50px;
    padding-bottom: 58px;
  }

  :is(.facebook-theme, .instagram-theme, .tiktok-theme) .hero-section h1,
  .kwai-theme .kwai-copy h1,
  .twitter-theme .twitter-copy h1 {
    font-size: clamp(38px, 11.5vw, 54px);
  }

  :is(.facebook-theme, .instagram-theme, .tiktok-theme, .kwai-theme, .twitter-theme) .platform-seo {
    padding: 58px 0 72px;
  }

  :is(.facebook-theme, .instagram-theme, .tiktok-theme, .kwai-theme, .twitter-theme) .platform-seo-inner {
    width: min(100% - 24px, 1120px);
  }

  :is(.facebook-theme, .instagram-theme, .tiktok-theme, .kwai-theme, .twitter-theme) .platform-seo-intro h2 {
    font-size: clamp(34px, 10vw, 46px);
  }

  :is(.facebook-theme, .instagram-theme, .tiktok-theme, .kwai-theme, .twitter-theme) .platform-seo-panel,
  :is(.facebook-theme, .instagram-theme, .tiktok-theme, .kwai-theme, .twitter-theme) .platform-seo-card {
    padding: 22px;
    border-radius: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(.facebook-theme, .instagram-theme, .tiktok-theme, .kwai-theme, .twitter-theme) *,
  :is(.facebook-theme, .instagram-theme, .tiktok-theme, .kwai-theme, .twitter-theme) *::before,
  :is(.facebook-theme, .instagram-theme, .tiktok-theme, .kwai-theme, .twitter-theme) *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
