:root {
  color-scheme: dark;
  --bg: #06070b;
  --surface: #0c1018;
  --surface-strong: #111724;
  --surface-soft: rgba(255, 255, 255, 0.035);
  --text: #f4f7ff;
  --muted: #98a3b8;
  --muted-strong: #bdc5d5;
  --violet: #8a68ff;
  --cyan: #28d8ff;
  --success: #74f6ba;
  --danger: #ff7894;
  --border: rgba(255, 255, 255, 0.095);
  --border-strong: rgba(255, 255, 255, 0.16);
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.42);
  --radius-lg: 24px;
  --radius-md: 16px;
  --shell: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -18%, rgba(138, 104, 255, 0.1), transparent 33rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(40, 216, 255, 0.7);
  outline-offset: 3px;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.ambient,
.page-noise {
  position: fixed;
  pointer-events: none;
}

.ambient {
  z-index: -2;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  opacity: 0.4;
  filter: blur(110px);
  will-change: transform;
}

.ambient--violet {
  top: 8rem;
  left: -28rem;
  background: var(--violet);
  animation: drift-violet 16s ease-in-out infinite alternate;
}

.ambient--cyan {
  top: -24rem;
  right: -22rem;
  background: var(--cyan);
  animation: drift-cyan 20s ease-in-out infinite alternate;
}

.page-noise {
  inset: 0;
  z-index: -1;
  opacity: 0.026;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.shell {
  width: min(var(--shell), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  background: rgba(6, 7, 11, 0.82);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 780;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  box-shadow: 0 0 28px rgba(138, 104, 255, 0.3);
  color: #07090e;
  font-weight: 850;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 160ms ease;
}

.main-nav a:hover {
  color: var(--text);
}

.hero {
  padding-block: clamp(44px, 6vw, 74px) 54px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(560px, 1.24fr);
  align-items: start;
  gap: clamp(38px, 5vw, 68px);
}

.hero-copy {
  max-width: 520px;
  margin-top: clamp(20px, 4vw, 52px);
  animation: rise-in 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.eyebrow,
.section-label,
.result-kicker {
  margin: 0 0 15px;
  color: var(--success);
  font-size: 0.78rem;
  font-weight: 720;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 14px currentColor;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(3.2rem, 5.8vw, 5.65rem);
  font-weight: 790;
  letter-spacing: -0.07em;
  line-height: 0.91;
}

h1 span {
  background: linear-gradient(100deg, var(--text) 3%, var(--cyan) 48%, var(--violet));
  background-clip: text;
  color: transparent;
  -webkit-background-clip: text;
}

.hero-lead {
  max-width: 540px;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.16rem);
  line-height: 1.65;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.source-links a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.source-links a:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  transform: translateY(-1px);
}

.source-mark {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px currentColor;
}

.source-mark--youtube {
  background: #ff4d67;
  color: #ff4d67;
}

.source-mark--tiktok {
  background: var(--cyan);
  color: var(--cyan);
}

.source-mark--soundcloud {
  background: #ff8a3d;
  color: #ff8a3d;
}

.source-mark--vk {
  background: #4c8bf5;
  color: #4c8bf5;
}

.tool-surface {
  position: relative;
  padding: clamp(18px, 3.2vw, 32px);
  overflow: hidden;
  border: 1px solid rgba(138, 104, 255, 0.26);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(17, 23, 36, 0.94), rgba(8, 11, 17, 0.96));
  box-shadow: var(--shadow), 0 0 76px rgba(138, 104, 255, 0.11);
  animation: rise-in 620ms 80ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tool-surface::before {
  position: absolute;
  top: -10rem;
  right: -8rem;
  width: 26rem;
  height: 20rem;
  border-radius: 50%;
  background: rgba(40, 216, 255, 0.07);
  content: "";
  filter: blur(60px);
  pointer-events: none;
}

.url-form,
.result-region,
.form-message {
  position: relative;
  z-index: 1;
}

.url-form label,
.preset-fieldset legend {
  display: block;
  margin-bottom: 9px;
  color: var(--muted-strong);
  font-size: 0.875rem;
  font-weight: 650;
}

.form-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.form-heading > span {
  margin-bottom: 9px;
  color: #6f7a8f;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.url-control {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 66px;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: rgba(4, 6, 10, 0.62);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.url-control:focus-within {
  border-color: rgba(40, 216, 255, 0.72);
  background: rgba(5, 8, 13, 0.88);
  box-shadow: 0 0 0 4px rgba(40, 216, 255, 0.08), 0 0 48px rgba(40, 216, 255, 0.11);
}

.url-control-icon {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.url-control-icon svg,
.primary-button svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.url-control input {
  min-width: 0;
  height: 64px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
}

.url-control input::placeholder {
  color: #69758b;
}

.paste-button,
.text-button {
  border: 0;
  background: none;
  color: var(--cyan);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 700;
}

.paste-button {
  min-height: 44px;
  margin-right: 10px;
  padding-inline: 15px;
  border-radius: 12px;
  transition: background 160ms ease, color 160ms ease;
}

.paste-button:hover {
  background: rgba(40, 216, 255, 0.08);
  color: #82eaff;
}

.form-footer,
.result-actions,
.job-heading,
.media-summary {
  display: flex;
  align-items: center;
}

.form-footer {
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
}

.form-footer > p,
.form-message,
.job-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.primary-button,
.secondary-button,
.download-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding-inline: 22px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 760;
  text-decoration: none;
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease, background 170ms ease;
}

.primary-button,
.download-button {
  border: 0;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  box-shadow: 0 10px 34px rgba(138, 104, 255, 0.26);
  color: #06080d;
}

.primary-button:hover,
.download-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 42px rgba(138, 104, 255, 0.35);
}

.primary-button:active,
.download-button:active,
.secondary-button:active {
  transform: translateY(0) scale(0.985);
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.secondary-button {
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.secondary-button:hover {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.065);
}

.button-spinner {
  display: none;
  stroke-dasharray: 38 20;
  animation: spin 850ms linear infinite;
}

.tool-surface[data-ui-state="analysis-loading"] .button-arrow {
  display: none;
}

.tool-surface[data-ui-state="analysis-loading"] .button-spinner {
  display: block;
}

.form-message {
  min-height: 20px;
  margin: 11px 0 0 2px;
}

.form-message.is-error {
  color: var(--danger);
}

.result-region {
  min-height: 232px;
  margin-top: 25px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 22px;
  background: rgba(3, 5, 9, 0.42);
}

.empty-state,
.error-state {
  display: flex;
  min-height: 178px;
  align-items: center;
  justify-content: center;
  gap: 22px;
  text-align: left;
}

.empty-state strong,
.error-state strong {
  display: block;
  margin-bottom: 7px;
  font-size: 1.02rem;
}

.empty-state p,
.error-state p {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.empty-visual {
  position: relative;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  flex: 0 0 68px;
  border: 1px solid rgba(138, 104, 255, 0.24);
  border-radius: 20px;
  background: rgba(138, 104, 255, 0.07);
  box-shadow: 0 0 38px rgba(138, 104, 255, 0.12);
}

.empty-visual span {
  position: absolute;
  width: 27px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
}

.empty-visual span:first-child {
  transform: translateY(-10px);
}

.empty-visual span:last-child {
  transform: translateY(10px);
}

.loading-state {
  display: grid;
  min-height: 178px;
  grid-template-columns: minmax(180px, 310px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 4vw, 42px);
}

.loading-preview {
  aspect-ratio: 16 / 9;
  border-radius: 16px;
}

.shimmer {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.065);
}

.shimmer::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 10%, rgba(255, 255, 255, 0.08) 48%, transparent 86%);
  content: "";
  transform: translateX(-100%);
  animation: shimmer 1.45s ease-in-out infinite;
}

.loading-line {
  display: block;
  width: 58%;
  height: 13px;
  margin-bottom: 12px;
  border-radius: 99px;
}

.loading-line--wide {
  width: 86%;
  height: 18px;
}

.stage-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.stage {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 999px;
  color: #69758b;
  font-size: 0.72rem;
}

.stage.is-active {
  border-color: rgba(40, 216, 255, 0.24);
  background: rgba(40, 216, 255, 0.07);
  color: var(--cyan);
}

.error-icon,
.success-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  flex: 0 0 54px;
  border-radius: 17px;
  font-size: 1.3rem;
  font-weight: 800;
}

.error-icon {
  border: 1px solid rgba(255, 120, 148, 0.25);
  background: rgba(255, 120, 148, 0.08);
  color: var(--danger);
}

.text-button {
  min-height: 40px;
  margin-top: 11px;
  padding: 0;
}

.analysis-result,
.job-state,
.ready-state {
  min-height: 178px;
}

.media-summary {
  gap: 22px;
}

.media-thumbnail-wrap {
  position: relative;
  width: min(36%, 270px);
  aspect-ratio: 16 / 9;
  flex: 0 0 min(36%, 270px);
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(40, 216, 255, 0.16), rgba(138, 104, 255, 0.2));
}

.media-thumbnail {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-thumbnail:not([src]),
.media-thumbnail[src=""] {
  visibility: hidden;
}

.provider-badge {
  position: absolute;
  bottom: 9px;
  left: 9px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(5, 7, 11, 0.76);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 700;
}

.media-details {
  min-width: 0;
}

.media-details h2,
.job-heading h2,
.ready-state h2 {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.media-meta,
.ready-state > p:not(.result-kicker) {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.preset-fieldset {
  min-width: 0;
  margin: 24px 0 0;
  padding: 0;
  border: 0;
}

.preset-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.preset-option {
  position: relative;
  display: block;
  min-height: 84px;
  padding: 15px 16px 14px 48px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.028);
  cursor: pointer;
  transition: border-color 170ms ease, background 170ms ease, transform 170ms ease;
}

.preset-option:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.preset-option:has(input:checked) {
  border-color: rgba(40, 216, 255, 0.46);
  background: linear-gradient(145deg, rgba(40, 216, 255, 0.085), rgba(138, 104, 255, 0.055));
  box-shadow: 0 0 34px rgba(40, 216, 255, 0.06);
}

.preset-option input {
  position: absolute;
  top: 18px;
  left: 17px;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--cyan);
}

.preset-option strong,
.preset-option small {
  display: block;
}

.preset-option strong {
  margin-bottom: 5px;
  color: var(--text);
  font-size: 0.88rem;
}

.preset-option small {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
}

.result-actions {
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.job-heading {
  justify-content: space-between;
  gap: 18px;
}

.job-percent {
  color: var(--cyan);
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  font-weight: 760;
  letter-spacing: -0.05em;
}

.progress-track {
  height: 9px;
  margin-top: 34px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.progress-track > span {
  display: block;
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  box-shadow: 0 0 22px rgba(40, 216, 255, 0.34);
  transition: width 280ms ease;
}

.progress-track.is-indeterminate > span {
  width: 28%;
  animation: indeterminate 1.45s ease-in-out infinite;
}

.job-note {
  margin-top: 15px;
}

.ready-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.success-icon {
  margin-bottom: 18px;
  border: 1px solid rgba(116, 246, 186, 0.25);
  background: rgba(116, 246, 186, 0.085);
  box-shadow: 0 0 38px rgba(116, 246, 186, 0.08);
  color: var(--success);
}

.ready-state .result-actions {
  width: 100%;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 18px;
  margin: 30px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.78rem;
  list-style: none;
}

.trust-row li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.trust-row span {
  color: var(--success);
}

.section {
  padding-block: clamp(70px, 10vw, 120px);
  border-top: 1px solid rgba(255, 255, 255, 0.065);
}

.section-heading {
  max-width: 660px;
  margin-bottom: 38px;
}

.section-heading h2,
.split-section h2,
.faq-section h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.section-heading > p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
}

.tool-directory {
  padding-bottom: clamp(58px, 8vw, 88px);
}

.task-directory {
  padding-bottom: clamp(58px, 8vw, 88px);
}

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

.task-card {
  position: relative;
  display: flex;
  min-height: 268px;
  padding: clamp(22px, 3vw, 30px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(138, 104, 255, 0.075), rgba(40, 216, 255, 0.018)),
    rgba(255, 255, 255, 0.018);
  flex-direction: column;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.task-card::after {
  position: absolute;
  top: -90px;
  right: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--task-glow, var(--violet));
  content: "";
  filter: blur(75px);
  opacity: 0.09;
  pointer-events: none;
}

.task-card:hover {
  border-color: rgba(40, 216, 255, 0.28);
  background:
    linear-gradient(145deg, rgba(138, 104, 255, 0.105), rgba(40, 216, 255, 0.035)),
    rgba(255, 255, 255, 0.022);
  transform: translateY(-2px);
}

.task-card--video { --task-glow: #ff5f76; }
.task-card--audio { --task-glow: #8a68ff; }
.task-card--image { --task-glow: #28d8ff; }
.task-card--convert { --task-glow: #74f6ba; }

.task-index {
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.task-card h3 {
  margin: auto 0 0;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.task-card > p {
  max-width: 48ch;
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.task-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 23px;
}

.task-links a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
  font-size: 0.8rem;
  font-weight: 720;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.task-links a::after {
  margin-left: 9px;
  color: var(--cyan);
  content: "→";
}

.task-links a:hover {
  border-color: rgba(40, 216, 255, 0.42);
  background: rgba(40, 216, 255, 0.07);
  color: var(--text);
  transform: translateY(-1px);
}

.tool-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.tool-link-grid a {
  position: relative;
  display: flex;
  min-height: 118px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(138, 104, 255, 0.075), rgba(40, 216, 255, 0.025));
  color: var(--text);
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.tool-link-grid a::after {
  position: absolute;
  top: 18px;
  right: 18px;
  color: #657188;
  content: "→";
  font-size: 1.1rem;
  transition: color 160ms ease, transform 160ms ease;
}

.tool-link-grid a:hover {
  border-color: rgba(40, 216, 255, 0.42);
  background: linear-gradient(145deg, rgba(138, 104, 255, 0.13), rgba(40, 216, 255, 0.06));
  transform: translateY(-2px);
}

.tool-link-grid a:hover::after {
  color: var(--cyan);
  transform: translateX(3px);
}

.tool-link-grid a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.tool-link-grid strong {
  font-size: 0.98rem;
}

.tool-link-grid span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.82rem;
}

.step-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  list-style: none;
}

.step-grid li,
.service-card {
  min-height: 218px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
}

.step-grid li > span {
  display: block;
  margin-bottom: 45px;
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.78rem;
}

.step-grid strong,
.service-card h3 {
  display: block;
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.025em;
}

.step-grid p,
.service-card p,
.rules-list p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.split-section,
.faq-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1fr);
  gap: clamp(42px, 8vw, 110px);
}

.rules-list {
  display: grid;
}

.rules-list article {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 17px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.rules-list article:first-child {
  padding-top: 0;
}

.rules-list article > span {
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.75rem;
}

.rules-list strong {
  font-size: 1rem;
}

.service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
}

.service-card--accent {
  background: linear-gradient(145deg, rgba(138, 104, 255, 0.11), rgba(40, 216, 255, 0.035));
}

.service-card--accent::after {
  position: absolute;
  right: -90px;
  bottom: -130px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--violet);
  content: "";
  filter: blur(70px);
  opacity: 0.16;
}

.service-tag {
  display: inline-block;
  margin-bottom: 82px;
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 720;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.service-card h3 {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.faq-list details {
  border-bottom: 1px solid var(--border);
}

.faq-list summary {
  position: relative;
  padding: 21px 38px 21px 0;
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 19px;
  right: 3px;
  color: var(--cyan);
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  transition: transform 180ms ease;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list details p {
  margin: -3px 0 22px;
  padding-right: 40px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(3, 5, 9, 0.42);
}

/* Kept for the disabled store preview, which intentionally remains outside
   this release while its payment flow is not active. */
.footer-inner {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 46px;
  padding-block: 44px;
}

.footer-inner p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-inner .legal-note {
  max-width: 650px;
  margin: 0;
  line-height: 1.6;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(130px, 0.7fr));
  gap: clamp(30px, 5vw, 68px);
  padding-block: 58px 42px;
}

.brand--small {
  font-size: 0.9rem;
}

.brand--small .brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.footer-brand p,
.footer-bottom p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-brand p {
  max-width: 34ch;
  line-height: 1.65;
}

.footer-column {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
}

.footer-column strong {
  margin-bottom: 4px;
  font-size: 0.76rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.footer-column a {
  color: var(--muted);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 160ms ease;
}

.footer-column a:hover {
  color: var(--cyan);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 20px 30px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom .legal-note {
  max-width: 650px;
  margin: 0;
  line-height: 1.6;
  text-align: right;
}

.contact-cta {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(390px, 1.15fr);
  align-items: end;
  gap: clamp(40px, 7vw, 100px);
}

.contact-cta h2 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 3.7rem);
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.contact-cta > div:first-child > p:last-child {
  max-width: 56ch;
  margin: 18px 0 0;
  color: var(--muted);
}

.contact-actions {
  display: grid;
  gap: 11px;
}

.contact-link {
  position: relative;
  display: grid;
  min-height: 108px;
  padding: 18px 54px 18px 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.026);
  text-decoration: none;
  transition: border-color 170ms ease, background 170ms ease, transform 170ms ease;
}

.contact-link::after {
  position: absolute;
  top: 50%;
  right: 21px;
  color: var(--cyan);
  content: "↗";
  font-size: 1.2rem;
  transform: translateY(-50%);
}

.contact-link:hover {
  border-color: rgba(40, 216, 255, 0.38);
  background: rgba(40, 216, 255, 0.055);
  transform: translateY(-2px);
}

.contact-link--primary {
  border-color: rgba(138, 104, 255, 0.26);
  background: linear-gradient(135deg, rgba(138, 104, 255, 0.12), rgba(40, 216, 255, 0.035));
}

.contact-link span,
.contact-link small {
  color: var(--muted);
  font-size: 0.74rem;
}

.contact-link strong {
  margin: 2px 0;
  font-size: 1rem;
}

.content-main {
  padding-block: clamp(64px, 9vw, 118px);
}

.content-hero {
  max-width: 900px;
}

.content-hero h1 {
  max-width: 850px;
}

.contact-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(44px, 7vw, 76px);
}

.contact-page-grid .contact-link {
  min-height: 150px;
  justify-content: end;
}

.content-section {
  margin-top: clamp(76px, 11vw, 132px);
  padding-top: clamp(66px, 9vw, 100px);
  border-top: 1px solid var(--border);
}

.content-section h2,
.legal-document h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.content-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 35px;
}

.content-card-grid article {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
}

.content-card-grid strong {
  font-size: 1.05rem;
}

.content-card-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.legal-nav {
  position: sticky;
  top: 88px;
  z-index: 5;
  display: flex;
  max-width: max-content;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 42px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(8, 11, 17, 0.88);
  backdrop-filter: blur(16px);
}

.legal-nav a {
  padding: 8px 11px;
  border-radius: 9px;
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 680;
  text-decoration: none;
}

.legal-nav a:hover {
  background: rgba(40, 216, 255, 0.07);
  color: var(--cyan);
}

.legal-layout {
  max-width: 820px;
  margin-top: 60px;
}

.legal-document > section {
  scroll-margin-top: 160px;
  padding-block: 48px;
  border-top: 1px solid var(--border);
}

.legal-number {
  display: block;
  margin-bottom: 16px;
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.74rem;
}

.legal-document p,
.legal-document li {
  color: var(--muted-strong);
  font-size: 0.92rem;
  line-height: 1.75;
}

.legal-document p {
  margin: 20px 0 0;
}

.legal-document ul {
  display: grid;
  gap: 9px;
  margin: 22px 0 0;
  padding-left: 22px;
}

.legal-document a {
  color: var(--cyan);
}

[hidden] {
  display: none !important;
}

@keyframes drift-violet {
  to { transform: translate3d(110px, -35px, 0) scale(1.08); }
}

@keyframes drift-cyan {
  to { transform: translate3d(-90px, 65px, 0) scale(0.94); }
}

@keyframes shimmer {
  to { transform: translateX(100%); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes indeterminate {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(450%); }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-copy {
    max-width: 760px;
    margin-top: 0;
  }

  .trust-row {
    max-width: 680px;
  }
}

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

  .tool-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .step-grid li {
    display: grid;
    min-height: 0;
    grid-template-columns: 44px 1fr;
    column-gap: 12px;
  }

  .step-grid li > span {
    grid-row: 1 / 3;
    margin: 3px 0 0;
  }

  .step-grid p {
    grid-column: 2;
  }

  .split-section,
  .faq-section,
  .contact-cta {
    grid-template-columns: 1fr;
    gap: 38px;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .content-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(var(--shell), calc(100% - 28px));
  }

  .header-inner {
    min-height: 64px;
  }

  .main-nav {
    gap: 13px;
  }

  .site-header .brand > span:last-child {
    display: none;
  }

  .main-nav a {
    font-size: 0.78rem;
  }

  .hero {
    padding-top: 54px;
  }

  .hero-copy {
    margin-bottom: 29px;
  }

  h1 {
    font-size: clamp(3rem, 13vw, 4.5rem);
  }

  .tool-surface {
    border-radius: 22px;
  }

  .url-control {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    min-height: 60px;
    border-radius: 15px;
  }

  .url-control input {
    height: 58px;
    font-size: 1rem;
  }

  .paste-button {
    margin-right: 5px;
    padding-inline: 10px;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .form-footer .primary-button {
    width: 100%;
  }

  .result-region {
    min-height: 270px;
    margin-top: 20px;
    border-radius: 18px;
  }

  .empty-state,
  .error-state {
    min-height: 222px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .loading-state {
    min-height: 222px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .loading-preview {
    max-width: 290px;
  }

  .media-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .media-thumbnail-wrap {
    width: 100%;
    max-width: 360px;
    flex-basis: auto;
  }

  .preset-list,
  .service-grid {
    grid-template-columns: 1fr;
  }

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

  .result-actions > * {
    width: 100%;
  }

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

  .section {
    padding-block: 72px;
  }

  .service-tag {
    margin-bottom: 58px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 32px 22px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-column:last-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-bottom .legal-note {
    text-align: left;
  }

  .contact-page-grid {
    grid-template-columns: 1fr;
  }

  .contact-page-grid .contact-link {
    min-height: 120px;
  }

  .legal-nav {
    top: 75px;
    max-width: 100%;
  }
}

/* Spotify metadata-to-source matcher */
.source-mark--spotify {
  background: #1ed760;
  box-shadow: 0 0 16px rgba(30, 215, 96, 0.38);
}

.status-dot--spotify {
  background: #1ed760;
  box-shadow: 0 0 16px rgba(30, 215, 96, 0.6);
}

.spotify-hero .hero-layout {
  align-items: start;
}

.spotify-disclosure {
  display: flex;
  max-width: 680px;
  align-items: flex-start;
  gap: 12px;
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid rgba(30, 215, 96, 0.22);
  border-radius: 15px;
  background: rgba(30, 215, 96, 0.055);
  color: var(--muted-strong);
  font-size: 0.84rem;
  line-height: 1.55;
}

.spotify-disclosure > span {
  display: grid;
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  border-radius: 50%;
  background: #1ed760;
  color: #041108;
  font-weight: 900;
  place-items: center;
}

.spotify-disclosure p { margin: 0; }
.spotify-disclosure strong { color: var(--text); }

.spotify-surface { min-height: 650px; }
.spotify-result-region { min-height: 390px; }
.spotify-result-region > [hidden] { display: none !important; }

.spotify-track-summary {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.spotify-track-summary img {
  width: 82px;
  height: 82px;
  border-radius: 14px;
  background: #0b0e14;
  object-fit: cover;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.spotify-track-summary h2 {
  margin: 3px 0 4px;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.2;
}

.spotify-candidate-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.spotify-candidate-fieldset legend { font-weight: 800; }
.candidate-help { margin: 5px 0 12px; color: var(--muted); font-size: 0.78rem; }
.spotify-candidates { display: grid; gap: 9px; }

.spotify-candidate {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.024);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.spotify-candidate:hover {
  border-color: rgba(30, 215, 96, 0.28);
  background: rgba(30, 215, 96, 0.035);
  transform: translateY(-1px);
}

.spotify-candidate:has(input:checked) {
  border-color: rgba(30, 215, 96, 0.52);
  background: linear-gradient(135deg, rgba(30, 215, 96, 0.075), rgba(138, 104, 255, 0.045));
  box-shadow: inset 0 0 0 1px rgba(30, 215, 96, 0.08);
}

.spotify-candidate input { margin: 4px 0 0; accent-color: #1ed760; }
.candidate-body { display: grid; min-width: 0; gap: 5px; }
.candidate-top { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.candidate-top strong { overflow: hidden; font-size: 0.9rem; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.candidate-body small { color: var(--muted); font-size: 0.76rem; }
.candidate-body a { width: fit-content; color: #9beab7; font-size: 0.75rem; font-weight: 750; text-decoration: none; }
.candidate-body a:hover { text-decoration: underline; }

.match-badge {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: var(--muted-strong);
  font-size: 0.66rem;
  font-weight: 800;
  white-space: nowrap;
}
.match-badge--high { border-color: rgba(30, 215, 96, 0.3); background: rgba(30, 215, 96, 0.09); color: #9beab7; }
.match-badge--medium { border-color: rgba(255, 194, 71, 0.26); color: #f5cd7c; }

.rights-confirmation {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr);
  gap: 11px;
  margin-top: 14px;
  padding: 12px 13px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.026);
  cursor: pointer;
}
.rights-confirmation input { margin: 3px 0 0; accent-color: #1ed760; }
.rights-confirmation span { display: grid; gap: 3px; }
.rights-confirmation strong { font-size: 0.8rem; }
.rights-confirmation small { color: var(--muted); font-size: 0.72rem; line-height: 1.4; }

@media (max-width: 680px) {
  .spotify-surface { min-height: 600px; }
  .spotify-track-summary { grid-template-columns: 68px minmax(0, 1fr); }
  .spotify-track-summary img { width: 68px; height: 68px; }
  .candidate-top { align-items: stretch; flex-direction: column; gap: 6px; }
  .candidate-top strong { white-space: normal; }
  .match-badge { width: fit-content; }
}

@media (max-width: 390px) {
  .brand > span:last-child {
    font-size: 0.82rem;
  }

  .url-control {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .paste-button {
    grid-column: 1 / -1;
    width: calc(100% - 10px);
    margin: 0 5px 5px;
    border: 1px solid var(--border);
  }

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

  .tool-link-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .provider-badge {
    background: var(--bg);
    backdrop-filter: none;
  }
}

/* File converter */

select {
  font: inherit;
}

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

.converter-hero .hero-copy {
  max-width: 920px;
}

.converter-surface > * {
  position: relative;
  z-index: 1;
}

.drop-zone {
  display: grid;
  min-height: 280px;
  place-items: center;
  align-content: center;
  padding: 34px 20px;
  border: 1px dashed rgba(40, 216, 255, 0.34);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 20%, rgba(40, 216, 255, 0.09), transparent 15rem),
    rgba(3, 6, 11, 0.52);
  cursor: pointer;
  text-align: center;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.drop-zone:hover,
.drop-zone.is-dragging {
  border-color: rgba(40, 216, 255, 0.72);
  background:
    radial-gradient(circle at 50% 20%, rgba(40, 216, 255, 0.15), transparent 15rem),
    rgba(5, 9, 15, 0.74);
  box-shadow: inset 0 0 52px rgba(40, 216, 255, 0.045), 0 0 42px rgba(40, 216, 255, 0.07);
  transform: translateY(-2px);
}

.drop-zone-icon {
  display: grid;
  width: 68px;
  height: 68px;
  margin-bottom: 18px;
  place-items: center;
  border: 1px solid rgba(138, 104, 255, 0.3);
  border-radius: 21px;
  background: linear-gradient(145deg, rgba(138, 104, 255, 0.13), rgba(40, 216, 255, 0.08));
  box-shadow: 0 0 36px rgba(138, 104, 255, 0.12);
  color: var(--cyan);
}

.drop-zone-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.drop-zone strong,
.drop-zone span,
.drop-zone small {
  display: block;
}

.drop-zone strong {
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  letter-spacing: -0.03em;
}

.drop-zone > span:not(.drop-zone-icon) {
  margin-top: 4px;
  color: var(--muted-strong);
  font-size: 0.92rem;
}

.drop-zone small {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.76rem;
}

.selected-upload {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: rgba(3, 6, 11, 0.54);
}

.selected-upload-icon {
  display: grid;
  min-width: 58px;
  height: 58px;
  place-items: center;
  padding-inline: 8px;
  border: 1px solid rgba(138, 104, 255, 0.28);
  border-radius: 16px;
  background: rgba(138, 104, 255, 0.09);
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 820;
  letter-spacing: 0.06em;
}

.selected-upload strong,
.selected-upload span {
  display: block;
}

.selected-upload strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-upload div > span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
}

.selected-upload button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted-strong);
  cursor: pointer;
  font-size: 1.45rem;
}

.selected-upload button:hover {
  border-color: rgba(255, 120, 148, 0.36);
  color: var(--danger);
}

.conversion-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.format-field {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.026);
}

.format-field > span {
  color: var(--muted);
  font-size: 0.76rem;
}

.format-field strong,
.format-field select {
  color: var(--text);
  font-weight: 800;
}

.format-field select {
  min-width: 100px;
  border: 1px solid rgba(40, 216, 255, 0.24);
  border-radius: 10px;
  outline: 0;
  background: #0d1420;
  padding: 8px 30px 8px 10px;
}

.format-field select:focus-visible {
  outline: 3px solid rgba(40, 216, 255, 0.3);
  outline-offset: 2px;
}

.conversion-arrow {
  color: var(--cyan);
  font-size: 1.25rem;
}

.advanced-options {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(138, 104, 255, 0.055), transparent 48%),
    rgba(255, 255, 255, 0.018);
}

.advanced-options summary {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.advanced-options summary::-webkit-details-marker {
  display: none;
}

.advanced-options summary > span:first-child {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.advanced-options summary strong {
  font-size: 0.88rem;
}

.advanced-options summary small {
  color: var(--muted);
  font-size: 0.68rem;
}

.advanced-chevron {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--cyan);
  transition: transform 180ms ease, border-color 180ms ease;
}

.advanced-options[open] .advanced-chevron {
  border-color: rgba(40, 216, 255, 0.26);
  transform: rotate(180deg);
}

.advanced-options-body {
  padding: 2px 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.advanced-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.55fr) repeat(2, minmax(140px, 0.75fr));
  gap: 12px;
  padding-top: 15px;
}

.advanced-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 9px;
  color: var(--muted-strong);
  font-size: 0.74rem;
}

.advanced-field > span:first-child,
.quality-field > span:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.quality-field output {
  color: var(--cyan);
  font-weight: 800;
}

.advanced-field input[type="number"] {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
}

.advanced-field input[type="number"]::placeholder {
  color: #687386;
  font-weight: 500;
}

.dimension-input,
.color-input {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(3, 6, 11, 0.5);
}

.dimension-input:focus-within,
.color-input:focus-within {
  border-color: rgba(40, 216, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(40, 216, 255, 0.08);
}

.dimension-input small,
.color-input small {
  color: var(--muted);
  font-size: 0.68rem;
}

.quality-field input[type="range"] {
  width: 100%;
  height: 5px;
  margin: 11px 0;
  border-radius: 99px;
  outline: 0;
  appearance: none;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  cursor: pointer;
}

.quality-field input[type="range"]::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid #101722;
  border-radius: 50%;
  appearance: none;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(40, 216, 255, 0.45);
}

.quality-field input[type="range"]::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 3px solid #101722;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(40, 216, 255, 0.45);
}

.background-field {
  grid-column: 1 / -1;
}

.color-input {
  width: max-content;
  min-width: 150px;
}

.color-input input[type="color"] {
  width: 48px;
  height: 28px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.privacy-toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  margin-top: 16px;
  cursor: pointer;
}

.privacy-toggle > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.privacy-toggle > span:nth-child(2) {
  position: relative;
  width: 38px;
  height: 22px;
  border: 1px solid var(--border-strong);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  transition: background 160ms ease, border-color 160ms ease;
}

.privacy-toggle > span:nth-child(2)::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--muted-strong);
  content: "";
  transition: transform 160ms ease, background 160ms ease;
}

.privacy-toggle > input:checked + span {
  border-color: rgba(40, 216, 255, 0.45);
  background: rgba(40, 216, 255, 0.17);
}

.privacy-toggle > input:checked + span::after {
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(40, 216, 255, 0.45);
  transform: translateX(16px);
}

.privacy-toggle > input:focus-visible + span {
  outline: 3px solid rgba(40, 216, 255, 0.5);
  outline-offset: 3px;
}

.privacy-toggle strong,
.privacy-toggle small {
  display: block;
}

.privacy-toggle strong {
  font-size: 0.78rem;
}

.privacy-toggle small,
.advanced-hint {
  color: var(--muted);
  font-size: 0.68rem;
}

.privacy-toggle small {
  margin-top: 2px;
}

.advanced-hint {
  margin: 13px 0 0;
}

.converter-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 20px;
}

.converter-action-row .form-message {
  margin: 0;
}

.conversion-status,
.conversion-result,
.converter-error {
  min-height: 310px;
  padding: clamp(12px, 2vw, 20px);
}

.conversion-status {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.conversion-status-copy h2,
.conversion-result h2,
.converter-error h2 {
  margin: 0;
  font-size: clamp(1.45rem, 4vw, 2.2rem);
  letter-spacing: -0.045em;
}

.conversion-status-copy > p:last-child,
.conversion-result > p:not(.result-kicker),
.converter-error div > p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.conversion-progress-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 38px;
}

.job-progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.job-progress > span {
  display: block;
  width: 3%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  box-shadow: 0 0 22px rgba(40, 216, 255, 0.34);
  transition: width 240ms ease;
}

.job-progress.is-indeterminate > span {
  width: 28% !important;
  animation: indeterminate 1.45s ease-in-out infinite;
}

.conversion-progress-row > strong {
  min-width: 58px;
  color: var(--cyan);
  font-size: 1.35rem;
  text-align: right;
}

.conversion-status .danger-button {
  align-self: flex-start;
  margin-top: 30px;
  color: var(--danger);
}

.conversion-result {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.conversion-result .result-actions {
  width: 100%;
}

.converter-error {
  align-items: center;
  justify-content: flex-start;
}

.converter-error .secondary-button {
  margin-left: auto;
}

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

@media (max-width: 820px) {
  .converter-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .converter-page .main-nav a:nth-child(2) {
    display: inline-flex;
  }

  .drop-zone {
    min-height: 240px;
  }

  .conversion-controls {
    grid-template-columns: 1fr;
  }

  .conversion-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

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

  .quality-field,
  .background-field {
    grid-column: 1 / -1;
  }

  .advanced-options summary > span:first-child {
    align-items: flex-start;
    flex-direction: column;
    gap: 1px;
  }

  .converter-action-row {
    align-items: stretch;
    flex-direction: column;
  }

  .converter-action-row .primary-button {
    width: 100%;
  }

  .conversion-status,
  .conversion-result,
  .converter-error {
    min-height: 330px;
  }

  .converter-error {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .converter-error .secondary-button {
    width: 100%;
    margin: 20px 0 0;
  }

  .converter-link-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .job-progress.is-indeterminate > span {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Public image downloader */
.image-hero {
  padding-bottom: 82px;
}

.image-hero .hero-layout {
  align-items: start;
}

.platform-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.platform-cloud span {
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 700;
}

.platform-cloud .platform-cloud--accent {
  border-color: rgba(76, 139, 245, 0.36);
  background: rgba(76, 139, 245, 0.09);
  color: #9fc2ff;
}

.image-surface {
  min-height: 590px;
}

.image-surface .primary-button.is-loading .button-arrow {
  display: none;
}

.image-surface .primary-button.is-loading .button-spinner {
  display: block;
}

.image-result-region {
  min-height: 332px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.image-result-region > [hidden] {
  display: none !important;
}

.image-result-region .empty-state,
.image-loading {
  min-height: 292px;
}

.image-empty-visual {
  position: relative;
  flex: 0 0 116px;
  width: 116px;
  height: 92px;
}

.image-empty-visual span {
  position: absolute;
  display: block;
  width: 76px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(138, 104, 255, 0.12), rgba(40, 216, 255, 0.04));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
}

.image-empty-visual span:nth-child(1) {
  top: 6px;
  left: 6px;
  transform: rotate(-8deg);
}

.image-empty-visual span:nth-child(2) {
  top: 18px;
  left: 23px;
  transform: rotate(2deg);
}

.image-empty-visual span:nth-child(3) {
  top: 29px;
  left: 39px;
  border-color: rgba(40, 216, 255, 0.34);
  transform: rotate(8deg);
}

.image-loading {
  display: flex;
  align-items: center;
  gap: 24px;
}

.image-loading-card {
  flex: 0 0 142px;
  width: 142px;
  aspect-ratio: 1;
  border-radius: 18px;
}

.image-loading strong,
.image-loading p {
  display: block;
  margin: 0;
}

.image-loading p {
  max-width: 31ch;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.image-results-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.image-results-heading h2 {
  max-width: 26ch;
  margin: 3px 0 0;
  overflow: hidden;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-results-heading .secondary-button {
  min-height: 42px;
  padding: 9px 13px;
}

.image-asset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.image-asset-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.image-asset-preview {
  display: grid;
  min-height: 150px;
  overflow: hidden;
  place-items: center;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.025) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.025) 25%, transparent 25%),
    #080b12;
  background-position: 0 0, 8px 8px;
  background-size: 16px 16px;
}

.image-asset-preview img {
  width: 100%;
  height: 170px;
  object-fit: contain;
}

.image-asset-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 13px 14px 10px;
}

.image-asset-copy strong {
  overflow: hidden;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-asset-copy span {
  color: var(--muted);
  font-size: 0.76rem;
}

.image-asset-download {
  width: calc(100% - 24px);
  min-height: 42px;
  margin: 0 12px 12px;
  padding: 9px 12px;
  font-size: 0.82rem;
}

.image-results .job-note {
  margin: 15px 0 0;
}

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

.image-use-grid article {
  display: flex;
  min-height: 126px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(138, 104, 255, 0.07), rgba(255, 255, 255, 0.02));
}

.image-use-grid strong {
  font-size: 1rem;
}

.image-use-grid span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.84rem;
}

@media (max-width: 820px) {
  .image-use-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .image-surface {
    min-height: 540px;
  }

  .image-result-region .empty-state,
  .image-loading {
    min-height: 245px;
  }

  .image-empty-visual {
    display: none;
  }

  .image-loading {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .image-loading-card {
    width: 100%;
    max-width: 180px;
    aspect-ratio: 16 / 9;
  }

  .image-results-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .image-results-heading .secondary-button {
    width: 100%;
  }

  .image-asset-grid {
    grid-template-columns: 1fr;
  }

  .image-asset-preview img {
    height: 210px;
  }
}
