/* Shared FBviddl visual language for the Threads tools. */
:root {
  --accent: #1877f2;
  --accent-hover: #1464cc;
}

body.threads-page {
  background:
    radial-gradient(ellipse 78% 430px at 50% 7%, rgba(218, 235, 255, 0.72), transparent 100%),
    radial-gradient(ellipse 58% 480px at 7% 48%, rgba(232, 243, 255, 0.58), transparent 100%),
    radial-gradient(ellipse 64% 520px at 94% 78%, rgba(225, 239, 255, 0.55), transparent 100%),
    #fff;
  color: #0f172a;
}

.threads-page .site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: #e2e8f0;
}

.threads-page .header-inner {
  min-height: 62px;
  gap: 18px;
}

@media (min-width: 961px) {
  .threads-page .header-inner {
    position: relative;
  }

  .threads-page .primary-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

.threads-page .brand-link {
  gap: 8px;
  color: #0f172a;
  font-size: 1.18rem;
  font-weight: 800;
}

.threads-page .brand-link img {
  width: 34px;
  height: 34px;
}

.threads-page .primary-nav {
  gap: 16px;
}

.threads-page .primary-nav a {
  color: #172033;
  font-size: 0.78rem;
}

.threads-page .primary-nav a:hover,
.threads-page .primary-nav a[aria-current='page'] {
  color: #1877f2;
  border-bottom-color: #1877f2;
}

.threads-page .hero-section {
  padding-top: 50px;
  background: transparent;
}

.threads-page .hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.threads-page .threads-title-accent {
  color: #1877f2;
}

.threads-page .composer-form {
  border-color: #d7dfea;
  border-radius: 16px;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.06);
}

.threads-page .composer-form:focus-within {
  border-color: #1877f2;
  box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.14);
}

.threads-page .btn-primary {
  background: #1877f2;
  border-radius: 14px;
  box-shadow: 0 5px 14px rgba(24, 119, 242, 0.2);
}

.threads-page .btn-primary:hover {
  background: #1464cc;
}

.threads-page .section--subtle,
.threads-page .section-subtle {
  background: rgba(239, 246, 255, 0.64);
}

.threads-page .site-footer {
  border-top-color: #dce5ef;
  background: rgba(255, 255, 255, 0.96);
}

/* Reuse the Facebook homepage rhythm and card layout for the Threads landing page. */
.threads-page.home-page .downloader-shell {
  max-width: 990px;
}

.threads-page.home-page .composer-meta {
  width: 100%;
}

.threads-page.home-page .threads-tools-grid .choice-gif {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc((100% - 48px) / 4);
}

.threads-page.home-page .threads-title-accent {
  color: #1877f2;
}

@media (max-width: 960px) {
  .threads-page.home-page .threads-tools-grid .choice-gif {
    width: calc((100% - 16px) / 2);
  }
}

@media (max-width: 420px) {
  .threads-page.home-page .threads-tools-grid .choice-gif {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .threads-page .hero-section {
    padding-top: 34px;
  }

  .threads-page .hero-title {
    font-size: 2.2rem;
  }
}
