:root,
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07070a;
  --panel: #1b1b22;
  --panel-strong: #22222b;
  --line: rgba(255, 255, 255, 0.16);
  --text: #f6f3ee;
  --muted: #b7b1a8;
  --red: #ff3b3b;
  --red-deep: #c70f0f;
  --good: #34d399;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --glow: rgba(255, 59, 59, 0.18);
  --inset: rgba(255, 255, 255, 0.07);
  --em: #ffd4d4;
  --featured: #26181c;
  --featured-line: rgba(255, 92, 92, 0.55);
  --chip: rgba(255, 255, 255, 0.05);
  --track: rgba(255, 255, 255, 0.1);
  --toast: #1b1b22;
  --input: rgba(255, 255, 255, 0.04);
  --invert-bg: #ffffff;
  --invert-text: #111111;
  --danger: #fecaca;
  --media-bg: #111111;
  --cta-top: #ff4f4f;
  --cta-bottom: #c80f0f;
  --cta-text: #ffffff;
  --cta-shadow: rgba(199, 15, 15, 0.35);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f0ea;
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --line: rgba(28, 24, 20, 0.12);
  --text: #16141c;
  --muted: #5c574f;
  --red: #e11d1d;
  --red-deep: #b10e0e;
  --good: #059669;
  --shadow: 0 18px 50px rgba(22, 20, 28, 0.08);
  --glow: rgba(225, 29, 29, 0.14);
  --inset: rgba(255, 255, 255, 0.9);
  --em: #c01212;
  --featured: #fff4f2;
  --featured-line: rgba(193, 18, 18, 0.32);
  --chip: rgba(22, 20, 28, 0.04);
  --track: rgba(22, 20, 28, 0.08);
  --toast: #ffffff;
  --input: #f6f3ee;
  --invert-bg: #16141c;
  --invert-text: #ffffff;
  --danger: #b42318;
  --media-bg: #e7e2d8;
  --cta-top: #ff4f4f;
  --cta-bottom: #c80f0f;
  --cta-text: #ffffff;
  --cta-shadow: rgba(199, 15, 15, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", Inter, -apple-system, system-ui, sans-serif;
  transition: background-color 0.2s ease, color 0.2s ease;
}

body {
  position: relative;
  overflow-x: hidden;
  padding-bottom: max(120px, calc(80px + env(safe-area-inset-bottom, 0px)));
}

.page {
  min-height: 100%;
  transition: filter 0.28s ease, transform 0.28s ease;
}

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

.glow {
  position: fixed;
  width: 560px;
  height: 560px;
  right: -80px;
  top: -180px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--glow), transparent 68%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}

.glow-b {
  display: none;
}

.topbar,
main,
.nav,
.site-footer {
  position: relative;
  z-index: 1;
}

.nav,
.topbar,
main,
.site-footer {
  width: min(1120px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.nav,
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
}

.topbar-lead {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand,
.nav .brand,
.topbar .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.logo {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--red), var(--red-deep));
  box-shadow: 0 10px 28px var(--cta-shadow);
  font-size: 13px;
  color: #fff;
}

.logo-x,
.logo-mark {
  display: none;
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.brand-name {
  margin: 0;
  font-size: 17px;
  font-weight: 650;
}

.brand-tag,
.hint,
.meta,
.channel,
.progress-meta,
.empty,
.quota {
  color: var(--muted);
}

.brand-tag {
  margin: 2px 0 0;
  font-size: 13px;
}

.nav nav,
.account {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link,
.site-footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.cta,
.url-row button,
.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--cta-top), var(--cta-bottom));
  color: var(--cta-text);
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 40px var(--cta-shadow);
}

.cta-xl {
  min-width: 280px;
  min-height: 58px;
  padding: 18px 34px;
  font-size: 18px;
}

.cta-nav {
  padding: 11px 16px;
  font-size: 14px;
  white-space: nowrap;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: none;
  flex-shrink: 0;
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .icon-moon {
  fill: currentColor;
  stroke: none;
}

html[data-theme="light"] .theme-toggle .icon-sun,
html[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

.theme-toggle:hover,
.profile-toggle:hover {
  border-color: color-mix(in srgb, var(--text) 35%, var(--line));
}

.profile-toggle {
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  flex-shrink: 0;
  text-decoration: none;
}

.profile-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-toggle[aria-current="page"] {
  background: var(--invert-bg);
  color: var(--invert-text);
  border-color: transparent;
}

.profile-main {
  padding-bottom: 120px;
}

.profile-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 0 8px;
}

.profile-hero h1 {
  font-size: clamp(36px, 5.5vw, 56px);
}

.profile-title-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.profile-title-row h1 {
  grid-column: 2;
  justify-self: center;
  margin: 18px 0 20px;
}

.profile-back {
  grid-column: 1;
  justify-self: start;
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
}

.profile-back svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-back:hover {
  border-color: color-mix(in srgb, var(--text) 35%, var(--line));
}

.profile-hero .lede {
  margin: 0 auto;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
  gap: 20px;
  width: 100%;
  max-width: 960px;
  margin: 40px auto 0;
}

.profile-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: inset 0 1px 0 var(--inset);
  padding: 28px;
  min-width: 0;
}

.profile-card h2 {
  margin: 0 0 20px;
  font-size: 22px;
}

.profile-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.profile-dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

.profile-dl dt {
  margin: 0 0 4px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 650;
}

.profile-dl dd {
  margin: 0;
  font-weight: 650;
  overflow-wrap: break-word;
  word-break: normal;
}

.profile-card .option-label {
  margin-top: 22px;
}

.profile-features {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.profile-card-terms,
.profile-card-logout {
  grid-column: 1 / -1;
}

.profile-card-logout {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 28px;
}

.logout-btn,
.danger-btn {
  background: transparent;
  color: var(--danger);
  border: 1px solid color-mix(in srgb, var(--danger) 35%, var(--line));
  border-radius: 999px;
  padding: 12px 20px;
  font: inherit;
  font-weight: 650;
}

.logout-btn:hover,
.danger-btn:hover {
  border-color: var(--danger);
}

.danger-btn {
  color: var(--text);
  border-color: var(--line);
}

.danger-btn:hover {
  color: var(--danger);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.check-row input {
  margin-top: 0.3rem;
  flex-shrink: 0;
}

.legal-dl {
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
}

.legal-dl div {
  display: grid;
  gap: 4px;
}

.legal-dl dt {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.legal-dl dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.cta:hover,
.url-row button:hover,
.download-btn:hover {
  filter: brightness(1.06);
}

.url-row button:disabled,
.download-btn:disabled,
.cta:disabled {
  opacity: 0.55;
  cursor: wait;
}

.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
}

.marketing main {
  padding: 0 0 120px;
}

.landing-hero,
.close {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 56px 0 64px;
}

.landing-hero h1,
.close h2,
.hero h1,
.auth-card h1,
.pricing h2,
.faq h2 {
  margin: 18px 0 20px;
  font-family: "Plus Jakarta Sans", Inter, -apple-system, system-ui, sans-serif;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.pricing h2,
.faq h2,
.close h2 {
  font-size: clamp(36px, 6vw, 64px);
}

.hero em,
.close em {
  font-style: italic;
  font-weight: 800;
  color: var(--em);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--red);
  font-weight: 650;
}

.lede {
  max-width: 560px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  justify-content: center;
  margin: 40px 0 16px;
  width: 100%;
  max-width: 720px;
}

.hero-converter {
  width: 100%;
  text-align: left;
}

.landing-hero .progress-card,
.landing-hero .convert-result {
  width: 100%;
  max-width: 720px;
  margin-top: 24px;
  text-align: left;
}

.convert-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
}

.convert-result p {
  margin: 0;
  font-weight: 650;
}

.hint {
  margin: 0;
  font-size: 14px;
}

.proof,
.faq,
.pricing,
.grid-3,
.legal,
.library,
.composer,
.preview,
.progress-card {
  margin-top: 96px;
}

.proof {
  text-align: center;
}

.proof > p {
  margin: 0 0 20px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--muted);
}

.proof-row,
.grid-3,
.price-grid {
  display: grid;
  gap: 20px;
}

.proof-row {
  grid-template-columns: repeat(4, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.price-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 48px;
}

.proof-row span,
.grid-3 article,
.price-card,
.preview,
.progress-card,
.card,
.auth-card,
.convert-result,
.empty {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: inset 0 1px 0 var(--inset);
}

.proof-row span,
.grid-3 article,
.price-card {
  padding: 28px;
}

.grid-3 h3,
.price-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.grid-3 p,
.price-card p,
.faq p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.pricing,
.faq {
  text-align: center;
}

.pricing .lede,
.faq .lede {
  margin-top: 8px;
}

.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 28px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
}

.billing-toggle button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 16px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.billing-toggle button.active {
  background: var(--text);
  color: var(--bg);
}

.save-pill {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.01em;
  background: #e11d1d;
  color: #fff;
  padding: 3px 8px;
  border-radius: 999px;
}

.price-card .amount {
  font-size: 48px;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-weight: 800;
  letter-spacing: -0.05em;
  margin: 12px 0 4px;
}

.price-card .amount .per-day {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
}

.price-card .billed {
  font-size: 14px;
  margin-bottom: 4px;
}

.price-card .save-hint {
  color: #e11d1d;
  font-weight: 700;
  font-size: 13px;
  margin: 0 0 8px;
}

.price-card {
  text-align: left;
}

.price-card.featured {
  border-color: var(--featured-line);
  background: var(--featured);
  transform: translateY(-8px);
}

.price-card ul {
  padding-left: 18px;
  color: var(--muted);
  min-height: 140px;
}

.price-card .cta {
  width: 100%;
  margin-top: 8px;
}

.faq {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  text-align: left;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 18px;
}

.faq details p {
  margin-top: 12px;
}

.seo-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 48px 0 0;
}

.seo-platforms a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
}

.seo-platforms a[aria-current="page"] {
  background: linear-gradient(180deg, var(--cta-top), var(--cta-bottom));
  color: var(--cta-text);
  border-color: transparent;
}

.seo-article {
  margin-top: 64px;
  max-width: 720px;
}

.seo-article h2,
.seo-article h3 {
  margin: 0 0 16px;
  letter-spacing: -0.04em;
}

.seo-article h3 {
  margin-top: 28px;
  font-size: 22px;
}

.seo-article p,
.seo-article li {
  color: var(--muted);
  line-height: 1.75;
}

.seo-article p {
  margin: 0 0 14px;
}

.seo-article ol {
  margin: 0;
  padding-left: 20px;
}

.seo-faq {
  margin-top: 28px;
  text-align: left;
}

.close {
  padding-top: 120px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 48px 0 120px;
  color: var(--muted);
  font-size: 13px;
}

.cta-sticky {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 8;
  transform: translateX(-50%);
  display: none;
  min-width: min(88vw, 360px);
}

.app-hero,
.hero:not(.landing-hero) {
  padding: 48px 0 8px;
}

.app-hero h1,
.hero:not(.landing-hero) h1 {
  font-size: clamp(40px, 6vw, 68px);
}

.hero:not(.landing-hero) .lede {
  margin: 0;
  max-width: 640px;
}

.hero.profile-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 0 8px;
}

.hero.profile-hero h1 {
  font-size: clamp(36px, 5.5vw, 56px);
}

.hero.profile-hero .profile-title-row h1 {
  margin: 18px 0 20px;
}

.hero.profile-hero .lede {
  margin: 0 auto;
  width: 100%;
  max-width: 28em;
}

.composer {
  margin-top: 40px;
}

.url-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  border-radius: 28px;
  box-shadow: inset 0 1px 0 var(--inset);
}

input[type="url"],
.auth-card input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  padding: 16px 18px;
  outline: none;
}

.preview {
  display: grid;
  grid-template-columns: 340px 1fr;
  overflow: hidden;
  margin-top: 40px;
}

.preview img,
.card img {
  width: 100%;
  object-fit: cover;
  background: var(--media-bg);
}

.preview img {
  height: 100%;
  min-height: 240px;
}

.preview-body,
.card-body,
.progress-card,
.auth-card {
  padding: 32px;
}

.channel {
  margin: 0 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.preview-body h2 {
  margin: 0 0 10px;
  font-size: 30px;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 28px 0;
}

.option-label {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
}

.qualities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.qualities button {
  background: var(--chip);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
}

.qualities button.active {
  background: var(--invert-bg);
  color: var(--invert-text);
}

.playlist-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.download-btn {
  width: 100%;
  font-size: 16px;
  min-height: 54px;
}

.progress-head,
.library-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.progress-head p,
.library-head h2 {
  margin: 0;
}

.bar {
  margin: 16px 0 10px;
  height: 8px;
  border-radius: 999px;
  background: var(--track);
  overflow: hidden;
}

.bar-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #ff7a7a, var(--red));
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.library-grid .card {
  overflow: hidden;
  border-radius: 24px;
}

.library-grid .card img {
  display: block;
  aspect-ratio: 16 / 9;
}

.card h3 {
  margin: 0 0 6px;
}

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

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.card-actions .icon-btn {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--text);
  background: var(--chip);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.card-actions .icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-actions .icon-btn:hover {
  border-color: color-mix(in srgb, var(--text) 35%, var(--line));
}

.card-actions .danger {
  color: var(--danger);
}

.empty {
  grid-column: 1 / -1;
  padding: 40px;
  text-align: center;
}

.hidden {
  display: none !important;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9;
  max-width: 360px;
  background: var(--toast);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
}

.auth-wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 64px 0 120px;
}

.auth-card {
  background: var(--panel-strong);
}

.auth-card h1 {
  font-size: 48px;
  margin: 12px 0 28px;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--bg) 35%, transparent);
}

body.auth-open {
  overflow: hidden;
}

body.auth-open .page {
  filter: blur(14px);
  transform: scale(1.01);
  pointer-events: none;
  user-select: none;
}

.auth-modal .auth-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: min(90vh, 760px);
  overflow: auto;
  padding: 28px 28px 24px;
}

.auth-modal .auth-card h1 {
  font-size: clamp(28px, 5vw, 36px);
  margin: 8px 0 20px;
}

.auth-modal .cta-xl {
  width: 100%;
  min-width: 0;
  margin-top: 8px;
}

.auth-modal .tabs button {
  flex: 1;
  white-space: nowrap;
  justify-content: center;
}

.auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.auth-close:hover {
  border-color: color-mix(in srgb, var(--text) 35%, var(--line));
}

.plans-modal .plans-card {
  width: min(860px, 100%);
  max-height: min(92vh, 920px);
  text-align: center;
}

.plans-modal .lede {
  margin: 0 auto 4px;
  max-width: 36em;
}

.plans-modal .billing-toggle {
  margin: 20px auto 22px;
}

.plans-modal .price-grid {
  margin-top: 0;
  text-align: left;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plans-modal .price-card {
  padding: 22px;
}

.plans-modal .price-card .amount {
  font-size: 36px;
}

.plans-modal .price-card .cta[disabled] {
  opacity: 0.55;
  cursor: default;
  box-shadow: none;
}

body.plans-open {
  overflow: hidden;
}

body.plans-open .topbar,
body.plans-open main {
  filter: blur(14px);
  pointer-events: none;
  user-select: none;
}

@media (max-width: 720px) {
  .plans-modal .price-grid {
    grid-template-columns: 1fr;
  }
}

.auth-card label {
  display: block;
  margin: 16px 0;
}

.auth-card input {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--input);
}

.tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 24px;
}

.tabs button {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
}

.tabs button.active {
  background: var(--invert-bg);
  color: var(--invert-text);
}

.auth-card .download-btn {
  margin-top: 12px;
}

.error {
  color: var(--danger);
  min-height: 1.2em;
}

.legal {
  max-width: 720px;
  margin: 48px auto 120px;
  line-height: 1.8;
  color: var(--muted);
}

.legal h1,
.legal h2 {
  color: var(--text);
}

html {
  -webkit-text-size-adjust: 100%;
}

h1,
h2,
h3,
.lede,
.card h3,
.preview-body h2 {
  overflow-wrap: break-word;
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-select {
  display: grid;
  place-items: center;
}

.lang-select select {
  appearance: none;
  height: 42px;
  padding: 0 32px 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.04em;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23888' stroke-width='1.6' stroke-linecap='round' d='M2 2l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.lang-select select:focus {
  outline: 2px solid color-mix(in srgb, var(--red) 45%, transparent);
  outline-offset: 2px;
}

.quota {
  font-size: 13px;
}

@media (max-width: 900px) {
  .nav,
  .topbar,
  main,
  .site-footer {
    width: min(100% - 32px, 1120px);
  }

  .nav-link {
    display: none;
  }

  .proof-row {
    grid-template-columns: 1fr 1fr;
  }

  .grid-3,
  .price-grid,
  .preview,
  .url-row,
  .site-footer {
    grid-template-columns: 1fr;
    display: grid;
  }

  .price-card.featured {
    transform: none;
  }

  .landing-hero {
    padding-top: 36px;
    padding-bottom: 48px;
  }

  .cta-sticky {
    display: none;
  }

  .marketing {
    padding-bottom: 88px;
  }

  .account {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .topbar {
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
  }

  .billing-toggle {
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  .billing-toggle button {
    justify-content: center;
  }
}

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

  .nav,
  .topbar,
  main,
  .site-footer {
    width: min(100% - 24px, 1120px);
  }

  .landing-hero h1,
  .close h2,
  .hero h1,
  .auth-card h1,
  .pricing h2,
  .faq h2,
  .app-hero h1,
  .hero:not(.landing-hero) h1 {
    font-size: clamp(30px, 10vw, 48px);
    letter-spacing: -0.04em;
  }

  .lede {
    font-size: 16px;
  }

  .hero-actions {
    margin-top: 28px;
  }

  .url-row {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .url-row button,
  .cta-xl {
    width: 100%;
    min-width: 0;
  }

  .proof-row,
  .grid-3,
  .price-grid {
    grid-template-columns: 1fr;
  }

  .proof,
  .faq,
  .pricing,
  .grid-3,
  .legal,
  .library {
    margin-top: 64px;
  }

  .close {
    padding-top: 72px;
  }

  .site-footer {
    text-align: center;
    padding-bottom: 80px;
  }

  .account {
    justify-content: flex-start;
  }

  .quota {
    width: 100%;
  }

  .cta-nav,
  .account .ghost {
    flex: 0 1 auto;
  }

  .toast {
    left: 16px;
    right: 16px;
    max-width: none;
  }

  .preview-body,
  .card-body,
  .progress-card,
  .auth-card {
    padding: 22px;
  }

  .convert-result {
    flex-direction: column;
    align-items: stretch;
  }

  .convert-result .cta {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .nav,
  .topbar {
    padding: 16px 0;
    gap: 12px;
  }

  .cta-xl {
    min-width: 0;
  }

  .account {
    gap: 8px;
  }

  .cta-nav {
    padding: 10px 14px;
  }

  .logo {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .theme-toggle {
    width: 38px;
    height: 38px;
  }

  .profile-toggle,
  .profile-back {
    width: 38px;
    height: 38px;
  }

  .lang-select select {
    height: 38px;
    padding: 0 28px 0 12px;
    font-size: 12px;
  }

  .eyebrow {
    letter-spacing: 0.12em;
    font-size: 11px;
  }

  .landing-hero,
  .close {
    padding: 24px 0 36px;
  }

  .library-grid {
    grid-template-columns: 1fr;
  }

  .auth-modal {
    padding: 12px;
    align-items: end;
  }

  .auth-modal .auth-card {
    width: 100%;
    padding: 22px 18px 18px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .tabs button {
    padding: 10px 10px;
    font-size: 13px;
  }

  .preview-body h2 {
    font-size: 22px;
  }

  .price-card .amount {
    font-size: 36px;
  }

  .glow {
    width: 280px;
    height: 280px;
    right: -120px;
    top: -140px;
  }

  .legal {
    margin-top: 24px;
    margin-bottom: 80px;
  }
}

.source-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 5px;
  margin: 0 0 16px;
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: inset 0 1px 0 var(--inset);
}

.composer .source-tabs,
.landing-hero .source-tabs {
  width: 100%;
}

.landing-hero .source-tabs {
  margin: 28px auto 0;
  max-width: 640px;
}

.landing-hero .hero-actions {
  margin-top: 16px;
}

.source-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 650;
  white-space: nowrap;
  min-width: 0;
}

.source-tabs button svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.source-tabs button[aria-selected="true"] {
  background: linear-gradient(180deg, var(--cta-top), var(--cta-bottom));
  color: var(--cta-text);
}

html[data-source="x"] {
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html[data-source="x"] body {
  font-family: inherit;
}

html[data-source="x"] .logo-play {
  display: none;
}

html[data-source="x"] .logo-x {
  display: block;
}

html[data-source="x"] .logo {
  border-radius: 10px;
  background: var(--invert-bg);
  color: var(--invert-text);
  box-shadow: none;
}

html[data-source="x"] .hero em,
html[data-source="x"] .close em {
  font-style: normal;
  color: var(--text);
}

html[data-theme="light"][data-source="x"] {
  --bg: #f7f9fa;
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --line: rgba(15, 20, 25, 0.12);
  --text: #0f1419;
  --muted: #536471;
  --red: #0f1419;
  --red-deep: #000000;
  --good: #00ba7c;
  --shadow: 0 18px 50px rgba(15, 20, 25, 0.08);
  --glow: rgba(15, 20, 25, 0.1);
  --inset: rgba(255, 255, 255, 0.9);
  --em: #0f1419;
  --featured: #eff3f4;
  --featured-line: rgba(15, 20, 25, 0.22);
  --chip: rgba(15, 20, 25, 0.05);
  --track: rgba(15, 20, 25, 0.08);
  --toast: #ffffff;
  --input: #eff3f4;
  --invert-bg: #0f1419;
  --invert-text: #ffffff;
  --danger: #f4212e;
  --media-bg: #eff3f4;
  --cta-top: #0f1419;
  --cta-bottom: #000000;
  --cta-text: #ffffff;
  --cta-shadow: rgba(15, 20, 25, 0.28);
}

html[data-theme="dark"][data-source="x"] {
  --bg: #000000;
  --panel: #16181c;
  --panel-strong: #16181c;
  --line: rgba(231, 233, 234, 0.16);
  --text: #e7e9ea;
  --muted: #71767b;
  --red: #e7e9ea;
  --red-deep: #ffffff;
  --good: #00ba7c;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --glow: rgba(231, 233, 234, 0.08);
  --inset: rgba(255, 255, 255, 0.04);
  --em: #e7e9ea;
  --featured: #202327;
  --featured-line: rgba(231, 233, 234, 0.28);
  --chip: rgba(231, 233, 234, 0.06);
  --track: rgba(231, 233, 234, 0.12);
  --toast: #16181c;
  --input: #202327;
  --invert-bg: #eff3f4;
  --invert-text: #0f1419;
  --danger: #f4212e;
  --media-bg: #202327;
  --cta-top: #eff3f4;
  --cta-bottom: #ffffff;
  --cta-text: #0f1419;
  --cta-shadow: rgba(0, 0, 0, 0.4);
}

html[data-source="linkedin"] .logo-play,
html[data-source="pinterest"] .logo-play,
html[data-source="tiktok"] .logo-play,
html[data-source="linkedin"] .logo-x,
html[data-source="pinterest"] .logo-x,
html[data-source="tiktok"] .logo-x {
  display: none;
}

html[data-source="linkedin"] .logo-linkedin,
html[data-source="pinterest"] .logo-pinterest,
html[data-source="tiktok"] .logo-tiktok {
  display: block;
}

html[data-source="linkedin"] .logo,
html[data-source="pinterest"] .logo,
html[data-source="tiktok"] .logo {
  border-radius: 10px;
}

html[data-theme="light"][data-source="linkedin"] {
  --bg: #f3f2ef;
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --line: rgba(0, 0, 0, 0.1);
  --text: #191919;
  --muted: #666666;
  --red: #0a66c2;
  --red-deep: #004182;
  --good: #057642;
  --shadow: 0 18px 50px rgba(10, 102, 194, 0.1);
  --glow: rgba(10, 102, 194, 0.16);
  --inset: rgba(255, 255, 255, 0.9);
  --em: #0a66c2;
  --featured: #e8f3ff;
  --featured-line: rgba(10, 102, 194, 0.28);
  --chip: rgba(10, 102, 194, 0.08);
  --track: rgba(10, 102, 194, 0.12);
  --toast: #ffffff;
  --input: #eef3f8;
  --invert-bg: #0a66c2;
  --invert-text: #ffffff;
  --danger: #b24020;
  --media-bg: #eef3f8;
  --cta-top: #0a66c2;
  --cta-bottom: #004182;
  --cta-text: #ffffff;
  --cta-shadow: rgba(10, 102, 194, 0.28);
}

html[data-theme="dark"][data-source="linkedin"] {
  --bg: #1b1f23;
  --panel: #262a2e;
  --panel-strong: #2d3135;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f3f2ef;
  --muted: #b0b3b8;
  --red: #70b5f9;
  --red-deep: #378fe9;
  --good: #57c26b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  --glow: rgba(112, 181, 249, 0.12);
  --inset: rgba(255, 255, 255, 0.04);
  --em: #70b5f9;
  --featured: #2d3135;
  --featured-line: rgba(112, 181, 249, 0.3);
  --chip: rgba(112, 181, 249, 0.1);
  --track: rgba(255, 255, 255, 0.1);
  --toast: #262a2e;
  --input: #1b1f23;
  --invert-bg: #70b5f9;
  --invert-text: #1b1f23;
  --danger: #f48b72;
  --media-bg: #1b1f23;
  --cta-top: #70b5f9;
  --cta-bottom: #378fe9;
  --cta-text: #1b1f23;
  --cta-shadow: rgba(0, 0, 0, 0.35);
}

html[data-theme="light"][data-source="pinterest"] {
  --bg: #fff7f8;
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --line: rgba(17, 17, 17, 0.1);
  --text: #111111;
  --muted: #5f5f5f;
  --red: #e60023;
  --red-deep: #ad081b;
  --good: #0a8a3a;
  --shadow: 0 18px 50px rgba(230, 0, 35, 0.1);
  --glow: rgba(230, 0, 35, 0.14);
  --inset: rgba(255, 255, 255, 0.9);
  --em: #e60023;
  --featured: #ffe8ec;
  --featured-line: rgba(230, 0, 35, 0.24);
  --chip: rgba(230, 0, 35, 0.07);
  --track: rgba(230, 0, 35, 0.12);
  --toast: #ffffff;
  --input: #f5f5f5;
  --invert-bg: #e60023;
  --invert-text: #ffffff;
  --danger: #e60023;
  --media-bg: #f5f5f5;
  --cta-top: #e60023;
  --cta-bottom: #ad081b;
  --cta-text: #ffffff;
  --cta-shadow: rgba(230, 0, 35, 0.28);
}

html[data-theme="dark"][data-source="pinterest"] {
  --bg: #121212;
  --panel: #1e1e1e;
  --panel-strong: #242424;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f5f5f5;
  --muted: #a8a8a8;
  --red: #ff3355;
  --red-deep: #e60023;
  --good: #39d98a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --glow: rgba(230, 0, 35, 0.16);
  --inset: rgba(255, 255, 255, 0.04);
  --em: #ff3355;
  --featured: #2a1619;
  --featured-line: rgba(255, 51, 85, 0.32);
  --chip: rgba(255, 51, 85, 0.1);
  --track: rgba(255, 255, 255, 0.1);
  --toast: #1e1e1e;
  --input: #2a2a2a;
  --invert-bg: #ff3355;
  --invert-text: #121212;
  --danger: #ff3355;
  --media-bg: #2a2a2a;
  --cta-top: #ff3355;
  --cta-bottom: #e60023;
  --cta-text: #ffffff;
  --cta-shadow: rgba(0, 0, 0, 0.4);
}

html[data-source="tiktok"] .hero em,
html[data-source="tiktok"] .close em {
  font-style: normal;
}

html[data-theme="light"][data-source="tiktok"] {
  --bg: #f6f6f6;
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --line: rgba(22, 24, 35, 0.12);
  --text: #161823;
  --muted: #6b6d76;
  --red: #161823;
  --red-deep: #000000;
  --good: #00c2a8;
  --shadow: 0 18px 50px rgba(22, 24, 35, 0.08);
  --glow: rgba(254, 44, 85, 0.14);
  --inset: rgba(255, 255, 255, 0.9);
  --em: #fe2c55;
  --featured: #fff0f4;
  --featured-line: rgba(254, 44, 85, 0.28);
  --chip: rgba(22, 24, 35, 0.05);
  --track: rgba(22, 24, 35, 0.1);
  --toast: #ffffff;
  --input: #f1f1f2;
  --invert-bg: #161823;
  --invert-text: #ffffff;
  --danger: #fe2c55;
  --media-bg: #f1f1f2;
  --cta-top: #161823;
  --cta-bottom: #000000;
  --cta-text: #ffffff;
  --cta-shadow: rgba(22, 24, 35, 0.28);
}

html[data-theme="dark"][data-source="tiktok"] {
  --bg: #000000;
  --panel: #121212;
  --panel-strong: #161616;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f1f1f2;
  --muted: #8a8b91;
  --red: #25f4ee;
  --red-deep: #fe2c55;
  --good: #25f4ee;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  --glow: rgba(37, 244, 238, 0.14);
  --inset: rgba(255, 255, 255, 0.04);
  --em: #25f4ee;
  --featured: #1a0d12;
  --featured-line: rgba(254, 44, 85, 0.4);
  --chip: rgba(37, 244, 238, 0.08);
  --track: rgba(255, 255, 255, 0.1);
  --toast: #121212;
  --input: #1c1c1c;
  --invert-bg: #25f4ee;
  --invert-text: #000000;
  --danger: #fe2c55;
  --media-bg: #1c1c1c;
  --cta-top: #25f4ee;
  --cta-bottom: #fe2c55;
  --cta-text: #000000;
  --cta-shadow: rgba(254, 44, 85, 0.28);
}

html[data-source="tiktok"] .logo {
  color: var(--cta-text);
}

@media (max-width: 600px) {
  .topbar-lead,
  .account {
    width: 100%;
  }

  .account {
    justify-content: flex-start;
  }

  .source-tabs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    padding: 6px;
    width: 100%;
    max-width: 100%;
    border-radius: 20px;
  }

  .source-tabs button {
    grid-column: span 2;
    min-height: 44px;
    padding: 8px 6px;
    font-size: 13px;
  }

  .source-tabs button svg {
    display: none;
  }

  .source-tabs button:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .source-tabs button:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

.admin-link {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
}

.admin-link[hidden] {
  display: none !important;
}

.admin-main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 80px;
  display: grid;
  gap: 22px;
}

.admin-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-kpi,
.admin-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.admin-kpi {
  padding: 18px 20px;
}

.admin-kpi p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.admin-kpi strong {
  display: block;
  margin: 6px 0 4px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.admin-kpi span {
  color: var(--muted);
  font-size: 13px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 14px;
}

.admin-card {
  padding: 20px 22px 18px;
  overflow: hidden;
}

.admin-card h2 {
  margin: 0 0 16px;
  font-size: 16px;
}

.admin-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  min-height: 160px;
}

.admin-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  height: 160px;
}

.admin-bar i {
  display: block;
  width: 100%;
  max-width: 28px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, var(--cta-top), var(--cta-bottom));
}

.admin-bar span,
.admin-bar small {
  font-size: 11px;
  color: var(--muted);
}

.admin-paths {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.admin-paths li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.admin-paths code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th {
  text-align: left;
  color: var(--muted);
  font-weight: 650;
  font-size: 12px;
  padding: 0 10px 10px 0;
}

.admin-table td {
  padding: 10px 12px 10px 0;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

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

@media (max-width: 900px) {
  .admin-kpis,
  .admin-grid {
    grid-template-columns: 1fr;
  }
}
