:root {
  color-scheme: light;
  --paper: #fffdfb;
  --white: #fff;
  --ink: #291e25;
  --muted: #66565f;
  --line: #e9dde1;
  --rose: #a62640;
  --rose-hover: #852035;
  --rose-wash: #faecee;
  --rose-line: #f0d9de;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--rose); }
img { max-width: 100%; display: block; }
h1, h2, h3, p, ol, ul { margin: 0; }
h1, h2, h3 { line-height: 1.13; }
[id] { scroll-margin-top: 24px; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 5px; }

.wrap { width: min(1168px, calc(100% - 64px)); margin-inline: auto; }
.icon { flex: none; width: 1.15em; height: 1.15em; }
.skip-link {
  position: absolute;
  inset: 12px auto auto 12px;
  z-index: 2;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 73px;
  gap: 20px;
}
.brand {
  display: inline-flex;
  justify-self: start;
  gap: 10px;
  align-items: center;
  width: max-content;
  font-size: 1.32rem;
  font-weight: 750;
  letter-spacing: -.045em;
  text-decoration: none;
}
.site-nav { display: flex; gap: 28px; }
.site-nav a, .header-support {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: .94rem;
  font-weight: 650;
  color: var(--muted);
  text-decoration: none;
}
.site-nav a:hover, .header-support:hover { color: var(--rose); }
.header-support { justify-self: end; }

.hero {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  align-items: center;
  margin-top: 28px;
  min-height: 422px;
  padding: 30px clamp(24px, 4.3vw, 55px);
  gap: 10px;
  background: var(--rose-wash);
  border: 1px solid var(--rose-line);
  border-radius: 22px;
}
.hero-art {
  width: 100%;
  height: auto;
  max-width: 520px;
  justify-self: end;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--rose);
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.eyebrow span { width: 7px; height: 7px; border-radius: 2px; background: currentColor; }
.hero h1, .guide-hero h1 {
  margin-block: 14px 18px;
  font-size: clamp(2.2rem, 4.45vw, 4.02rem);
  line-height: 1.04;
  letter-spacing: -.06em;
  font-weight: 760;
}
.hero h1 em { color: var(--rose); font-style: normal; }
.hero-description { max-width: 39ch; color: var(--muted); font-size: clamp(1rem, 1.55vw, 1.13rem); }
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-weight: 660;
  text-decoration: none;
  font-size: .96rem;
}
.button-primary { background: var(--rose); color: var(--white); }
.button-primary:hover { background: var(--rose-hover); color: var(--white); }
.hero .button, .guide-hero .button { margin-top: 24px; }

.section { margin-top: 66px; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 21px;
}
.section h2, .related h2 {
  margin-top: 6px;
  font-size: clamp(1.65rem, 3.4vw, 2.5rem);
  font-weight: 740;
  letter-spacing: -.045em;
}
.section-heading > p { color: var(--muted); }
.bot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bot-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.card-heading { display: flex; align-items: center; gap: 12px; min-width: 0; }
.card-heading h3 { font-size: 1.24rem; font-weight: 735; letter-spacing: -.025em; }
.card-heading p { font-size: .82rem; color: var(--muted); overflow-wrap: anywhere; }
.platform-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
}
.platform-icon .icon { width: 28px; height: 28px; }
.platform-tiktok { background: #f1eaf0; color: #33252d; }
.platform-instagram { background: #fce8ec; color: #a32c60; }
.platform-youtube-shorts { background: #fae9e5; color: #bf313d; }
.card-description { flex: 1; margin-block: 16px 20px; color: var(--muted); }
.card-actions { display: grid; grid-template-columns: 1fr; gap: 2px; }
.card-actions .button {
  justify-content: space-between;
  color: var(--rose);
  background: #fff8f8;
  border-color: var(--rose-line);
}
.card-actions .button:hover { background: var(--rose-wash); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  width: fit-content;
  color: var(--rose);
  font-weight: 650;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }
.card-actions .text-link { color: var(--muted); font-size: .91rem; }

.how-section, .guide-steps { padding-block: 28px; border-block: 1px solid var(--line); }
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding: 0;
  list-style: none;
}
.step-grid li { display: flex; align-items: start; gap: 12px; }
.step-grid li > span {
  flex: none;
  padding-top: 1px;
  color: var(--rose);
  font-size: .88rem;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}
.step-grid h3 { font-size: 1.07rem; line-height: 1.3; }
.step-grid p, .help-intro > p:not(.eyebrow) { margin-top: 6px; color: var(--muted); }

.help-section { display: grid; grid-template-columns: .9fr 1.4fr; gap: clamp(22px, 6vw, 84px); }
.help-intro > p:not(.eyebrow) { margin-top: 12px; }
.help-intro .text-link { margin-top: 4px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 13px;
  min-height: 52px;
  list-style: none;
  cursor: pointer;
  font-weight: 670;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--rose); font-size: 1.2rem; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 18px 14px 0; color: var(--muted); }
.usage-note { margin: 38px 0 30px; color: var(--muted); font-size: .9rem; }

.site-footer { background: #fbf5f5; border-top: 1px solid var(--line); }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: start;
  gap: 28px;
  padding-block: 24px;
}
.footer-brand { font-size: 1.12rem; }
.footer-inner p { margin-top: 3px; color: var(--muted); font-size: .88rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer-inner nav a, .footer-contact {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 5px;
  font-size: .91rem;
  font-weight: 600;
  text-decoration: none;
}
.footer-contact { color: var(--rose); }
.footer-inner nav a:hover, .footer-contact:hover { text-decoration: underline; }

.breadcrumbs { padding-block: 21px; font-size: .88rem; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 9px; color: #896d7c; }
.guide-hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 36px;
  padding: clamp(24px, 4.6vw, 52px);
  background: var(--rose-wash);
  border: 1px solid var(--rose-line);
  border-radius: 22px;
}
.guide-hero-tiktok { background: #f6eef3; border-color: #ebe0e8; }
.guide-hero-youtube-shorts { background: #fbefea; border-color: #f0ded7; }
.guide-hero h1 { font-size: clamp(2.2rem, 4.45vw, 3.7rem); }
.format-panel { padding: 24px; min-width: 0; border-radius: 16px; background: var(--white); border: 1px solid var(--line); }
.format-panel h2 { margin-block: 13px; font-size: 1.26rem; letter-spacing: -.022em; }
.formats { list-style: none; padding: 0; display: grid; gap: 6px; }
.formats code {
  display: inline-block;
  overflow-wrap: anywhere;
  padding: 4px 9px;
  border-radius: 6px;
  background: #faf3f4;
  color: #5b3444;
  font: .87rem/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace;
}
.format-panel p { margin-top: 12px; font-size: .93rem; color: var(--muted); }
.related { margin-top: 45px; padding-top: 22px; border-top: 1px solid var(--line); }
.related h2 { font-size: 1.4rem; }
.related ul { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 4px; padding: 0; list-style: none; }
.not-found { padding-block: 70px; }
.not-found h1 { font-size: 2.55rem; margin-block: 8px 15px; }
.not-found .button { margin-top: 16px; }

@keyframes content-in {
  from { opacity: .35; translate: 0 12px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes art-in {
  from { opacity: .25; transform: translate(12px, 10px) scale(.97); }
  to { opacity: 1; transform: translate(0, 0) scale(1); }
}

@keyframes answer-in {
  from { opacity: .55; translate: 0 -4px; }
  to { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: no-preference) {
  :root { --motion-out: cubic-bezier(.22, 1, .36, 1); scroll-behavior: smooth; }

  .hero-copy > *, .guide-copy > * { animation: content-in 490ms var(--motion-out) both; }
  .hero-copy h1, .guide-copy h1 { animation-delay: 65ms; }
  .hero-copy .hero-description, .guide-copy .hero-description { animation-delay: 120ms; }
  .hero-copy .button, .guide-copy .button { animation-delay: 175ms; }
  .hero-art, .format-panel { animation: art-in 660ms var(--motion-out) 60ms both; }

  .faq details[open] > p { animation: answer-in 230ms var(--motion-out) both; }
  .button { transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease; }
  .button .icon, .text-link .icon, .header-support .icon, .footer-contact .icon {
    transition: transform 210ms var(--motion-out);
  }

  @supports (animation-timeline: view()) and (animation-range: entry 0% entry 85%) {
    .bot-card, .step-grid > li, .help-intro, .faq {
      animation: content-in auto linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 85%;
    }
    .bot-card:nth-child(2) { animation-range: entry 7% entry 91%; }
    .bot-card:nth-child(3) { animation-range: entry 14% entry 97%; }
    .bot-card:focus-within, .faq:focus-within { animation-name: none; }
  }

  @media (hover: hover) and (pointer: fine) {
    .bot-card {
      transition: transform 220ms var(--motion-out), border-color 220ms ease, box-shadow 220ms ease;
    }
    .bot-card:hover {
      transform: translateY(-4px);
      border-color: #dfb9c3;
      box-shadow: 0 10px 23px #68223712;
    }
    .button:hover .icon, .text-link:hover .icon, .header-support:hover .icon, .footer-contact:hover .icon {
      transform: translateX(3px);
    }
  }
}

@media (max-width: 960px) {
  .wrap { width: calc(100% - 40px); }
  .hero { min-height: 352px; }
  .hero-break { display: none; }
  .bot-card { padding: 17px; }
  .card-heading { align-items: start; flex-direction: column; gap: 9px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 8px 24px; }
  .footer-inner nav { grid-column: 1 / -1; grid-row: 2; }
  .footer-contact { justify-self: end; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 62px; grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .hero, .guide-hero { grid-template-columns: 1fr; border-radius: 17px; }
  .hero { margin-top: 18px; padding: 25px 21px 5px; }
  .hero h1, .guide-hero h1 { font-size: clamp(2.15rem, 8.6vw, 3.4rem); }
  .hero-art { width: min(100%, 375px); justify-self: center; margin-top: 2px; }
  .section { margin-top: 43px; }
  .section-heading { display: block; margin-bottom: 16px; }
  .section-heading > p { margin-top: 5px; }
  .bot-grid, .step-grid, .help-section { grid-template-columns: minmax(0, 1fr); }
  .bot-grid { gap: 12px; }
  .bot-card { padding: 19px; }
  .card-heading { flex-direction: row; align-items: center; }
  .card-description { margin-block: 13px 14px; }
  .step-grid { gap: 17px; }
  .guide-hero { gap: 23px; }
  .format-panel { padding: 17px; }
  .help-section { gap: 18px; }
  .footer-inner { grid-template-columns: 1fr; gap: 5px; }
  .footer-inner nav { grid-column: auto; grid-row: auto; }
  .footer-contact { justify-self: start; }
}
@media (max-width: 350px) {
  .wrap { width: calc(100% - 24px); }
  .hero, .guide-hero { padding-inline: 16px; }
}
