/* SaveClip shared visual system */

:root {
  --ink: #17142b;
  --muted: #6f6b82;
  --line: #e8e5f1;
  --surface: #ffffff;
  --canvas: #faf9ff;
  --violet: #6f46f2;
  --violet-dark: #40229d;
  --coral: #dc2743;
  --green: #118368;
  --danger: #b42341;
  --shadow-sm: 0 12px 30px rgba(41, 29, 83, 0.07);
  --shadow-lg: 0 24px 60px rgba(25, 16, 66, 0.22);
  font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 2%, rgba(121, 81, 255, 0.09), transparent 20rem),
    linear-gradient(180deg, #faf9ff 0%, #ffffff 47%, #fbfbff 100%);
  font-family: inherit;
  line-height: 1.55;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(232, 229, 241, 0.88);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand__mark {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #8d5cff, #5e3ce8 56%, #ff6f8a);
  box-shadow: 0 9px 20px rgba(106, 71, 238, 0.32);
}

.brand__logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(106, 71, 238, 0.4);
}

.brand__mark svg {
  width: 21px;
  height: 21px;
}

.brand__name {
  font-size: 1.22rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  padding: 9px 14px;
  color: #57516c;
  font-size: 0.88rem;
  font-weight: 700;
  transition: all 160ms ease;
}

.site-nav__link:hover {
  color: var(--violet);
  background: #f2efff;
}

.site-nav__link[aria-current="page"] {
  color: var(--violet-dark);
  background: #ebe5ff;
}

.header-cta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 10px 16px;
  color: #fff;
  background: var(--violet);
  box-shadow: 0 8px 18px rgba(91, 60, 222, 0.24);
  font-size: 0.85rem;
  font-weight: 800;
  transition: all 160ms ease;
}

.header-cta:hover {
  background: #5936da;
  transform: translateY(-1px);
}

/* Hero Section */
.hero,
.hero--instagram {
  position: relative;
  overflow: hidden;
  padding: 56px 20px 70px;
  color: #fff;
  isolation: isolate;
  background:
    radial-gradient(circle at 85% 20%, rgba(220, 39, 67, 0.4), transparent 35rem),
    radial-gradient(circle at 15% 85%, rgba(111, 70, 242, 0.4), transparent 35rem),
    linear-gradient(135deg, #2c113b 0%, #4a1744 40%, #762256 70%, #9e2a5e 100%);
}

.hero--facebook {
  background:
    radial-gradient(circle at 85% 20%, rgba(24, 119, 242, 0.4), transparent 35rem),
    linear-gradient(135deg, #0b1a30 0%, #102a4d 40%, #163d70 70%, #1877f2 100%);
}

.hero--tiktok {
  background:
    radial-gradient(circle at 85% 20%, rgba(254, 44, 85, 0.35), transparent 35rem),
    radial-gradient(circle at 15% 85%, rgba(37, 244, 238, 0.25), transparent 35rem),
    linear-gradient(135deg, #0f0f14 0%, #1a1a24 40%, #292938 70%, #3a3a4d 100%);
}

.hero__inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.instagram-content-types {
  margin-bottom: 24px;
}

.instagram-content-types__tabs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 5px;
}

.content-type-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}

.content-type-tab:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.content-type-tab.is-active {
  background: #ffffff;
  color: #2c113b;
  border: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.content-type-tab svg {
  width: 15px;
  height: 15px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 16px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #dc2743;
}

.hero h1 {
  font-size: clamp(30px, 5.5vw, 48px);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: #fff;
}

.hero__lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Downloader Card & Input Form — Screenshot 100% Match */
.downloader-card {
  max-width: 680px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 14px;
  padding: 5px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.11);
  border: 1px solid #dbe2ea;
}

.download-form {
  display: flex;
  gap: 5px;
  align-items: center;
}

@media (max-width: 640px) {
  .download-form {
    flex-direction: column;
  }
  .downloader-card {
    width: 100%;
    padding: 5px;
    border-radius: 12px;
  }
  .url-field {
    width: 100%;
  }
  .url-field input {
    height: 44px;
    font-size: 14px;
  }
  .primary-button {
    width: 100%;
    min-width: 0;
    height: 44px;
  }
}

.url-field {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  position: relative;
  background: transparent;
  border: none;
  padding: 0 10px 0 14px;
}

.url-field__icon {
  color: #8fa0b5;
  display: flex;
  align-items: center;
  margin-right: 11px;
  flex-shrink: 0;
}

.url-field__icon svg {
  width: 20px;
  height: 20px;
}

.url-field input {
  width: 100%;
  height: 44px;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 400;
  color: #1e293b;
  outline: none;
}

.url-field input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.clear-button {
  display: none;
  border: none;
  background: #e2e8f0;
  color: #64748b;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: 6px;
}

.clear-button.is-visible {
  display: inline-flex;
}

.paste-button {
  display: none;
}

.paste-button:hover {
  display: none;
}

/* Primary Button with Sunset Instagram Gradient */
.primary-button {
  min-width: 156px;
  height: 44px;
  padding: 0 16px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, #f09433 0%, #dc2743 55%, #cc2366 80%, #bc1888 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(220, 39, 67, 0.3);
  transition: all .2s;
  flex-shrink: 0;
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(220, 39, 67, 0.4);
}

.primary-button svg {
  order: -1;
  width: 16px;
  height: 16px;
}

/* Results are deliberately separate from the link-paste form. */
.fetch-results-section {
  width: 100%;
  margin: 18px auto 0;
}

.fetch-results-section .status {
  margin-top: 0;
}

/* Status Message */
.status {
  margin-top: 14px;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.status--loading { background: #eef2ff; color: #3730a3; }
.status--success { background: #ecfdf5; color: #065f46; }
.status--error { background: #fef2f2; color: #991b1b; }

/* Result Card — Replicating Screenshot Design */
.result-card {
  margin-top: 24px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.result-card__top {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 680px) {
  .result-card__top {
    grid-template-columns: 1fr;
  }
}

.result-card__media {
  width: 100%;
}

.result-card__thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 16px;
  overflow: hidden;
  background: #000000;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-card__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Instagram media must keep the aspect ratio supplied by the source. */
.site-shell[data-platform="Instagram"] .result-card__thumbnail {
  aspect-ratio: auto;
  min-height: 0;
  align-items: flex-start;
}

.site-shell[data-platform="Instagram"] .result-card__thumbnail img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
}

.site-shell[data-platform="Instagram"] .result-card__thumbnail:has(img[hidden]) {
  min-height: 180px;
  aspect-ratio: 1 / 1;
  align-items: center;
}

.media-type-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  background: linear-gradient(135deg, #f09433 0%, #e6683c 35%, #dc2743 70%, #bc1888 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 14px;
  border-radius: 100px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.result-card__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.result-card__uploader {
  font-size: 14px;
  font-weight: 800;
  color: #dc2743;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.result-card__info h2 {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.45;
  margin-bottom: 14px;
}

.result-card__formats-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-top: 6px;
  margin-bottom: 10px;
  display: block;
}

.result-card__details {
  margin-top: 20px;
  border-top: 1px solid #eeeaf4;
  padding-top: 17px;
}

.result-card__kicker {
  display: block;
  margin-bottom: 4px;
  color: #b42341;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.result-card__details h2 {
  color: #141414;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
}

.result-card__desc {
  margin-top: 9px;
  color: #000000;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.result-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.result-stat {
  border-radius: 999px;
  padding: 4px 8px;
  color: #4a4358;
  background: #f6f3fa;
  font-size: 11px;
  font-weight: 800;
}

.formats-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Format choices generated after a link is fetched */
.format-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #e7e3f0;
  border-radius: 12px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.format-button:hover {
  border-color: #d34b76;
  box-shadow: 0 7px 18px rgba(137, 37, 78, 0.12);
  transform: translateY(-1px);
}

.format-button__text {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 7px;
}

.format-button__title {
  overflow: hidden;
  color: #2a2439;
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.format-button__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}

.badge-tag--type { background: #ede9fe; color: #5b21b6; }
.badge-tag--type-audio { background: #fff0db; color: #a44a00; }
.badge-tag--size { background: #eef2f7; color: #4a5568; }
.badge-tag--fmt { background: #e5f7f1; color: #08755b; }

.format-button__action {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  border-radius: 9px;
  padding: 9px 12px;
  color: #fff;
  background: linear-gradient(90deg, #f09433, #dc2743 55%, #bc1888);
  box-shadow: 0 4px 10px rgba(220, 39, 67, 0.22);
  font-size: 12px;
  font-weight: 800;
}

.format-button__action svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 460px) {
  .format-button {
    align-items: flex-start;
    flex-direction: column;
  }

  .format-button__action {
    align-self: stretch;
    justify-content: center;
  }
}

/* Format Card Item Box */
.format-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 16px;
  transition: all .2s ease;
}

.format-item:hover {
  background: #ffffff;
  border-color: #dc2743;
  box-shadow: 0 6px 18px rgba(220, 39, 67, 0.1);
}

.format-item__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fce8ec;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.format-item__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.format-item__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.format-item__title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.format-item__sub {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.badge-pill--img {
  background: #f57c00;
  color: #ffffff;
}

.badge-pill--video {
  background: #dc2743;
  color: #ffffff;
}

.badge-pill--audio {
  background: #7c3aed;
  color: #ffffff;
}

.badge-pill--size {
  background: #e2e8f0;
  color: #334155;
  font-weight: 700;
}

.format-item__btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fce8ec;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: all .2s;
}

.format-item__btn:hover {
  background: #dc2743;
}

.format-item__btn:hover svg {
  stroke: #ffffff;
}

.download-note {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
}

/* Sections */
.section {
  padding: 60px 20px;
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
}

.section--compact {
  padding: 30px 20px;
}

.section-heading {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
}

.section-heading h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section-heading p {
  font-size: 15px;
  color: var(--muted);
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.benefit-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.benefit-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f0ebff;
  color: var(--violet);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.benefit-card__icon svg {
  width: 20px;
  height: 20px;
}

.benefit-card h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 6px;
}

.benefit-card p {
  font-size: 14px;
  color: var(--muted);
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.step-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}

.step-card__number {
  font-size: 16px;
  font-weight: 900;
  color: var(--violet);
  background: #f0ebff;
  padding: 4px 10px;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14px;
  color: var(--muted);
}

/* Platform Cards */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.platform-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .15s, border-color .15s;
}

.platform-card:hover {
  transform: translateY(-2px);
  border-color: var(--violet);
}

.platform-card__top {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}

.platform-card__logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.platform-card__logo--instagram { background: #ffe6eb; color: var(--coral); }
.platform-card__logo--facebook { background: #e8f2ff; color: #1877f2; }
.platform-card__logo--tiktok { background: #f0f0f5; color: #000; }

.platform-card__logo svg {
  width: 22px;
  height: 22px;
}

.platform-card h3 {
  font-size: 18px;
  font-weight: 800;
}

.platform-card p {
  font-size: 13px;
  color: var(--muted);
}

.platform-card__link {
  font-size: 14px;
  font-weight: 800;
  color: var(--violet);
  display: flex;
  align-items: center;
  gap: 4px;
}

.platform-card__link svg {
  width: 16px;
  height: 16px;
}

/* Notice Box */
.notice {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.notice__icon {
  color: #d97706;
  flex-shrink: 0;
}

.notice__icon svg {
  width: 24px;
  height: 24px;
}

.notice h2 {
  font-size: 16px;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 4px;
}

.notice p {
  font-size: 14px;
  color: #78350f;
}

/* FAQ */
.faq-layout {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  color: var(--ink);
}

.faq-item p {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--muted);
}

/* Ready to Download CTA Section (Vibrant Sunset Instagram Gradient) */
.ready-cta {
  background: linear-gradient(100deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  padding: 70px 20px;
  text-align: center;
  color: #ffffff;
  margin-top: 40px;
}

.ready-cta__inner {
  max-width: 800px;
  margin: 0 auto;
}

.ready-cta h2 {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.ready-cta p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 28px;
}

.ready-cta__features {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.ready-cta__feature {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
  padding: 30px 20px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--violet);
}

/* Responsive layout for every shared platform page. */
@media (max-width: 840px) {
  .site-header__inner {
    width: min(100% - 28px, 1180px);
    min-height: 68px;
    gap: 12px;
  }

  .site-nav__link {
    padding: 8px 10px;
  }

  .header-cta {
    padding: 9px 12px;
  }

  .hero,
  .hero--instagram {
    padding: 44px 16px 54px;
  }

  .section {
    padding: 50px 16px;
  }

  .result-card {
    padding: 18px;
  }

  .result-card__top {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
  }
}

@media (max-width: 640px) {
  html,
  body {
    overflow-x: hidden;
  }

  .site-header__inner {
    width: calc(100% - 24px);
    min-height: 62px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .brand__mark {
    width: 34px;
    height: 34px;
  }

  .brand__name {
    font-size: 1.1rem;
  }

  .site-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    padding-bottom: 7px;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav__link {
    flex: 0 0 auto;
    padding: 7px 9px;
    font-size: 0.78rem;
  }

  .header-cta {
    margin-left: auto;
    padding: 8px 10px;
    font-size: 0.78rem;
  }

  .hero,
  .hero--instagram {
    padding: 34px 12px 40px;
  }

  .hero h1 {
    font-size: clamp(27px, 8.5vw, 36px);
  }

  .hero__lead {
    margin-bottom: 22px;
    font-size: 0.96rem;
  }

  .instagram-content-types {
    margin-bottom: 17px;
  }

  .instagram-content-types__tabs {
    width: 100%;
    border-radius: 11px;
  }

  .content-type-tab {
    flex: 1 1 auto;
    justify-content: center;
    padding: 8px 10px;
    font-size: 12px;
  }

  .section,
  .section--compact {
    padding: 38px 14px;
  }

  .section-heading {
    margin-bottom: 26px;
  }

  .section-heading h2 {
    font-size: 24px;
  }

  .result-card {
    margin-top: 16px;
    border-radius: 14px;
    padding: 14px;
  }

  .result-card__top {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .result-card__media {
    max-width: 300px;
    margin: 0 auto;
  }

  .result-card__details {
    margin-top: 16px;
    padding-top: 14px;
  }

  .benefits-grid,
  .steps-grid,
  .platform-grid {
    gap: 14px;
  }

  .benefit-card,
  .step-card,
  .platform-card,
  .notice {
    padding: 18px;
  }

  .notice {
    gap: 12px;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 8px;
  }
}
