:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --hover: #fbfbfd;
  --text: #1d1d1f;
  --text-body: #424245;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --text-4: #aeaeb2;
  --faint: #d2d2d7;
  --hairline: rgba(0, 0, 0, 0.07);
  --accent: #0071e3;
  --accent-link: #0066cc;
  --indigo: #5e5ce6;
  --heat: #ff6b00;
  --heat-bg: rgba(255, 107, 0, 0.1);
  --live: #30d158;
  --grad-cta: linear-gradient(135deg, #0071e3 0%, #5e5ce6 100%);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
  --r-pill: 999px;
  --r-chip: 6px;
  --r-thumb: 12px;
  --r-card: 18px;
  --r-panel: 22px;
  --r-hero: 26px;
  --r-sheet: 16px;
  --sh-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.05);
  --sh-panel: 0 1px 3px rgba(0, 0, 0, 0.05), 0 14px 40px rgba(0, 0, 0, 0.05);
  --sh-lift: 0 12px 32px rgba(0, 0, 0, 0.1);
  --sh-cta: 0 20px 54px rgba(0, 113, 227, 0.24);
  --track: #e8e8ed;
  --max-read: 720px;
  --max-grid: 1080px;
  --pad-x: 22px;
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-optical-sizing: auto;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input { font: inherit; }

button {
  border: 0;
  cursor: pointer;
}

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

button,
a,
input[type='range'] { -webkit-tap-highlight-color: transparent; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
.drop-zone:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.3);
  outline-offset: 3px;
}

.page-shell { min-width: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  background: rgba(245, 245, 247, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: border-color 240ms var(--ease-out-quart), box-shadow 240ms var(--ease-out-quart);
}

.site-header.is-scrolled {
  border-bottom-color: var(--hairline);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
}

.header-inner,
main,
.site-footer {
  width: min(100%, calc(var(--max-grid) + (var(--pad-x) * 2)));
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

.header-inner {
  min-height: 54px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 24px;
  height: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 2px;
  padding: 5px;
  border-radius: var(--r-chip);
  background: var(--accent);
}

.brand-mark span {
  min-height: 7px;
  display: block;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.96);
}

.brand-mark span:nth-child(2) { min-height: 11px; opacity: 0.78; }
.brand-mark span:nth-child(3) { min-height: 14px; opacity: 0.6; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
}

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 180ms var(--ease-out-quart);
}

.site-nav a:hover { color: var(--accent-link); }

.local-badge {
  justify-self: end;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
}

.pulse-dot,
.toolbar-state-dot,
.lock-mark {
  width: 7px;
  height: 7px;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--live);
}

.pulse-dot { animation: pulse-dot 2.2s infinite; }

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(48, 209, 88, 0); }
  100% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0); }
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  gap: clamp(32px, 7vw, 86px);
  padding-block: clamp(48px, 8vw, 92px) clamp(38px, 6vw, 64px);
}

.eyebrow,
.toolbar-kicker {
  display: flex;
  align-items: center;
  margin: 0;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.hero-copy h1,
.section-heading h2,
.formats-intro h2,
.privacy-section h2 {
  margin: 14px 0 0;
  color: var(--text);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero-copy h1 em,
.formats-intro h2 em {
  color: var(--accent);
  font-style: normal;
}

.hero-lede {
  max-width: 30rem;
  margin: 20px 0 0;
  color: var(--text-2);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.7;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 16px;
  margin-top: 24px;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.6;
}

.hero-art {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border-radius: var(--r-hero);
  background: var(--grad-cta);
  box-shadow: var(--sh-cta);
}

.hero-orb,
.privacy-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none;
}

.hero-orb-one {
  width: 260px;
  height: 260px;
  top: -104px;
  right: -72px;
  background: rgba(255, 255, 255, 0.24);
}

.hero-orb-two {
  width: 220px;
  height: 220px;
  bottom: -130px;
  left: -50px;
  background: rgba(170, 142, 255, 0.7);
}

.art-core {
  position: absolute;
  inset: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--r-panel);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.art-kicker,
.art-meta {
  color: rgba(255, 255, 255, 0.76);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.art-flow {
  display: flex;
  align-items: center;
  gap: 12px;
}

.format-tag {
  min-width: 76px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.flow-arrow {
  color: rgba(255, 255, 255, 0.84);
  font-size: 24px;
  font-weight: 400;
}

.art-copy {
  margin: 0;
  color: #ffffff;
  font-size: clamp(23px, 3.2vw, 34px);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.18;
}

.art-meta {
  display: flex;
  gap: 14px;
}

.converter-section,
.formats-section { padding-block: clamp(40px, 6vw, 64px); }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-heading h2 { font-size: clamp(28px, 4vw, 42px); }

.section-aside {
  max-width: 20rem;
  margin: 0;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.65;
  text-align: right;
}

.workspace-panel,
.format-panel {
  overflow: hidden;
  border-radius: var(--r-panel);
  background: var(--surface);
  box-shadow: var(--sh-panel);
}

.workspace-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(18px, 3vw, 28px);
  border-bottom: 1px solid var(--hairline);
}

.toolbar-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.toolbar-kicker {
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.format-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, 0.05);
}

.format-option {
  min-width: 52px;
  min-height: 44px;
  padding-inline: 12px;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 220ms var(--ease-out-quart), box-shadow 220ms var(--ease-out-quart), color 220ms var(--ease-out-quart), transform 180ms var(--ease-out-quart);
}

.format-option:hover { color: var(--text); }

.format-option.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.format-option:active { transform: scale(0.96); }

.toolbar-right,
.quality-control {
  display: flex;
  align-items: center;
}

.toolbar-right { gap: 20px; }
.quality-control { gap: 12px; }

.quality-control label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-2);
  font-size: 12px;
  white-space: nowrap;
}

.quality-control output {
  min-width: 2ch;
  color: var(--text);
  font-weight: 600;
}

.quality-control input {
  width: 108px;
  accent-color: var(--accent);
  cursor: pointer;
}

.toolbar-state {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-2);
  font-size: 12px;
  white-space: nowrap;
}

.drop-zone {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 18px;
  padding: 28px;
  border: 1px dashed var(--faint);
  border-radius: var(--r-card);
  background: var(--hover);
  text-align: center;
  transition: background 200ms var(--ease-out-quart), border-color 200ms var(--ease-out-quart), transform 200ms var(--ease-out-quart);
}

.drop-zone:hover,
.drop-zone.is-dragging {
  border-color: var(--accent);
  background: rgba(0, 113, 227, 0.05);
}

.drop-zone.is-dragging { transform: scale(0.995); }

.drop-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
  border-radius: var(--r-thumb);
  background: rgba(0, 113, 227, 0.08);
  color: var(--accent);
  transition: transform 200ms var(--ease-out-quart), box-shadow 200ms var(--ease-out-quart);
}

.drop-zone:hover .drop-icon,
.drop-zone.is-dragging .drop-icon {
  transform: translateY(-2px);
}

.icon {
  display: block;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.drop-icon .icon {
  width: 24px;
  height: 24px;
}

.drop-zone h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.drop-zone p {
  margin: 7px 0 0;
  color: var(--text-2);
  font-size: 14px;
}

.inline-action {
  color: var(--accent-link);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.drop-hint {
  margin-top: 17px;
  color: var(--text-3);
  font-size: 12px;
}

.drop-formats {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.queue-section,
.result-section {
  padding: 26px clamp(18px, 3vw, 28px) 28px;
  border-top: 1px solid var(--hairline);
}

.queue-header,
.result-heading,
.queue-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.queue-header h3,
.result-heading h3 {
  margin: 7px 0 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.text-button {
  min-height: 44px;
  padding: 0 5px;
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  transition: color 180ms var(--ease-out-quart);
}

.text-button:hover { color: var(--accent-link); }

.file-list,
.result-list {
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  background: var(--hover);
}

.file-row,
.result-row {
  min-height: 68px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 13px;
  padding: 11px 14px;
  transition: background 180ms var(--ease-out-quart);
}

.file-row + .file-row,
.result-row + .result-row { border-top: 1px solid var(--hairline); }

.file-row:hover,
.result-row:hover { background: var(--surface); }

.file-thumb,
.result-thumb {
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: var(--r-thumb);
  background: var(--track);
}

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

.file-info,
.result-info { min-width: 0; }

.file-name,
.result-name {
  overflow: hidden;
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-meta,
.result-meta {
  margin: 4px 0 0;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 10px;
}

.file-status {
  color: var(--text-2);
  font-size: 12px;
  white-space: nowrap;
}

.file-status.is-error { color: var(--heat); }

.remove-file,
.download-one {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text-2);
  font-size: 19px;
  transition: background 180ms var(--ease-out-quart), color 180ms var(--ease-out-quart), transform 180ms var(--ease-out-quart);
}

.remove-file:hover,
.download-one:hover {
  background: rgba(0, 113, 227, 0.08);
  color: var(--accent-link);
}

.remove-file:active,
.download-one:active { transform: scale(0.94); }

.queue-actions {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}

.queue-status {
  color: var(--text-2);
  font-size: 13px;
}

.primary-button,
.secondary-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 19px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  transition: background 200ms var(--ease-out-quart), box-shadow 200ms var(--ease-out-quart), transform 180ms var(--ease-out-quart), color 200ms var(--ease-out-quart);
}

.primary-button {
  background: var(--accent);
  color: #ffffff;
}

.primary-button:hover {
  background: var(--accent-link);
  box-shadow: var(--sh-lift);
  transform: translateY(-2px);
}

.primary-button:active,
.secondary-button:active { transform: scale(0.97); }
.primary-button:disabled { cursor: wait; opacity: 0.58; }

.secondary-button {
  border: 1px solid var(--hairline);
  background: var(--surface);
  box-shadow: var(--sh-card);
  color: var(--text);
}

.secondary-button:hover {
  box-shadow: var(--sh-lift);
  color: var(--accent-link);
  transform: translateY(-2px);
}

.result-badge {
  padding: 5px 9px;
  border-radius: var(--r-pill);
  background: rgba(0, 113, 227, 0.08);
  color: var(--accent-link);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
}

.result-badge.is-error {
  background: var(--heat-bg);
  color: var(--heat);
}

.workspace-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 15px 0 0;
  color: var(--text-3);
  font-size: 12px;
  text-align: center;
}

.formats-section {
  display: grid;
  grid-template-columns: minmax(230px, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: clamp(32px, 7vw, 84px);
}

.formats-intro h2 { font-size: clamp(30px, 4.4vw, 48px); }

.formats-intro > p:last-child {
  max-width: 19rem;
  margin: 18px 0 0;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.85;
}

.format-row {
  min-height: 94px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 18px clamp(18px, 3vw, 26px);
  transition: background 180ms var(--ease-out-quart);
}

.format-row + .format-row { border-top: 1px solid var(--hairline); }
.format-row:hover { background: var(--hover); }

.format-symbol {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--r-thumb);
  background: rgba(0, 113, 227, 0.08);
  color: var(--accent-link);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
}

.format-row h3 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.format-row p {
  margin: 4px 0 0;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.6;
}

.format-use {
  color: var(--text-3);
  font-size: 12px;
  white-space: nowrap;
}

.format-row-more {
  min-height: 74px;
  grid-template-columns: auto minmax(0, 1fr);
}

.more-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.more-formats span {
  padding: 5px 8px;
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
}

.format-row-more p {
  margin: 0;
  text-align: right;
}

.privacy-section {
  position: relative;
  overflow: hidden;
  margin: clamp(18px, 3vw, 30px) 0 clamp(54px, 8vw, 84px);
  padding: clamp(30px, 5vw, 52px);
  border-radius: var(--r-hero);
  background: var(--grad-cta);
  box-shadow: var(--sh-cta);
}

.privacy-orb-one {
  width: 300px;
  height: 300px;
  top: -160px;
  right: -70px;
  background: rgba(255, 255, 255, 0.22);
}

.privacy-orb-two {
  width: 250px;
  height: 250px;
  bottom: -165px;
  left: 16%;
  background: rgba(169, 144, 255, 0.66);
}

.privacy-content {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  max-width: 760px;
}

.privacy-mark {
  width: 68px;
  height: 68px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--r-thumb);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.privacy-mark span {
  display: block;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.96);
}

.privacy-mark span:nth-child(1) { height: 42%; }
.privacy-mark span:nth-child(2) { height: 72%; opacity: 0.78; }
.privacy-mark span:nth-child(3) { height: 100%; opacity: 0.6; }

.privacy-section .eyebrow { color: rgba(255, 255, 255, 0.74); }

.privacy-section h2 {
  margin-top: 12px;
  color: #ffffff;
  font-size: clamp(28px, 4vw, 44px);
}

.privacy-section p:not(.eyebrow) {
  max-width: 34rem;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  line-height: 1.8;
}

.privacy-chip {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  margin-top: 20px;
  padding-inline: 13px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-footer {
  padding-block: 0 32px;
  color: var(--text-3);
  font-size: 12px;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) auto minmax(220px, 0.85fr);
  align-items: start;
  gap: clamp(24px, 5vw, 64px);
  padding-block: 32px 28px;
  border-top: 1px solid var(--hairline);
}

.footer-brand-link {
  min-height: 44px;
}

.footer-description {
  max-width: 19rem;
  margin: 10px 0 0;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.65;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  padding-top: 5px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
}

.footer-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-nav a,
.footer-parent {
  transition: color 180ms var(--ease-out-quart), border-color 180ms var(--ease-out-quart), background 180ms var(--ease-out-quart);
}

.footer-nav a:hover {
  color: var(--accent-link);
}

.footer-parent {
  display: block;
  min-height: 88px;
  padding: 6px 0;
}

.footer-parent:hover .footer-parent-title {
  color: var(--accent-link);
}

.footer-parent-kicker,
.footer-parent-title,
.footer-parent-description {
  display: block;
}

.footer-parent-kicker {
  color: var(--accent-link);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
}

.footer-parent-title {
  margin-top: 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.footer-parent-title span {
  display: inline-block;
  margin-left: 3px;
  color: var(--accent-link);
  transition: transform 180ms var(--ease-out-quart);
}

.footer-parent:hover .footer-parent-title span {
  transform: translate(2px, -2px);
}

.footer-parent-description {
  margin-top: 5px;
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.5;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  color: var(--text-3);
  line-height: 1.5;
}

.toast {
  max-width: min(360px, calc(100vw - 32px));
  position: fixed;
  z-index: 30;
  right: 22px;
  bottom: 22px;
  padding: 13px 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sheet);
  background: var(--surface);
  box-shadow: var(--sh-panel);
  color: var(--text);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 200ms var(--ease-out-quart), transform 200ms var(--ease-out-quart);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.is-hidden { display: none !important; }

@media (max-width: 780px) {
  .hero-section,
  .formats-section { grid-template-columns: 1fr; }

  .hero-section { gap: 34px; }

  .hero-art {
    min-height: 280px;
    max-width: 620px;
  }

  .section-heading { display: block; }

  .section-aside {
    max-width: 30rem;
    margin-top: 14px;
    text-align: left;
  }

  .formats-intro > p:last-child { max-width: 32rem; }

  .footer-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px 36px;
  }

  .footer-parent {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 620px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .local-badge { font-size: 11px; }

  .hero-section { padding-top: clamp(42px, 12vw, 68px); }
  .hero-copy h1 { font-size: clamp(32px, 10.5vw, 48px); }

  .workspace-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .toolbar-copy,
  .toolbar-right { width: 100%; }

  .toolbar-right {
    justify-content: space-between;
    gap: 14px;
  }

  .format-picker {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .format-option {
    min-width: 0;
    padding-inline: 4px;
  }

  .quality-control {
    flex: 1;
    justify-content: space-between;
  }

  .quality-control input {
    flex: 1;
    max-width: 178px;
  }

  .drop-zone {
    min-height: 244px;
    margin: 14px;
    padding: 22px 16px;
  }

  .queue-header,
  .result-heading { align-items: flex-start; }

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

  .primary-button { width: 100%; }

  .file-row,
  .result-row {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px;
  }

  .result-row { grid-template-columns: 40px minmax(0, 1fr) auto auto; }

  .file-thumb,
  .result-thumb {
    width: 40px;
    height: 40px;
  }

  .file-status { display: none; }

  .format-row { grid-template-columns: 42px minmax(0, 1fr); }
  .format-use { display: none; }

  .format-row-more {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .format-row-more p { text-align: left; }

  .privacy-content {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 18px;
  }

  .privacy-mark {
    width: 54px;
    height: 54px;
    padding: 10px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-block: 28px 24px;
  }

  .footer-nav { padding-top: 0; }

  .footer-parent {
    min-height: 0;
    max-width: 24rem;
  }

  .footer-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

@media (max-width: 390px) {
  .header-inner,
  main,
  .site-footer { padding-inline: 16px; }

  .toolbar-right {
    align-items: flex-start;
    flex-direction: column;
  }

  .quality-control { width: 100%; }
  .quality-control input { max-width: none; }
  .art-core { inset: 18px; }
}

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

  .art-core,
  .format-tag,
  .privacy-mark,
  .privacy-chip {
    background: var(--accent-link);
    border-color: var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .art-core { background: var(--indigo); }
}

@media (prefers-contrast: more) {
  :root { --hairline: rgba(0, 0, 0, 0.2); }

  .art-core,
  .format-tag,
  .privacy-mark,
  .privacy-chip {
    background: var(--accent-link);
    border: 2px solid var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .art-core { background: var(--indigo); }
}

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

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

/* Static SEO landing pages */
.landing-page .site-nav {
  gap: 22px;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.74fr);
  align-items: center;
  gap: clamp(32px, 7vw, 84px);
  padding-block: clamp(48px, 8vw, 88px) clamp(34px, 5vw, 56px);
}

.landing-hero h1,
.guide-intro h2 {
  margin: 14px 0 0;
  color: var(--text);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.landing-hero h1 em,
.guide-intro h2 em {
  color: var(--accent);
  font-style: normal;
}

.landing-lede {
  max-width: 34rem;
  margin: 18px 0 0;
  color: var(--text-2);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.7;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}

.landing-actions .primary-button,
.landing-actions .secondary-button {
  text-decoration: none;
}

.landing-summary {
  padding: clamp(24px, 4vw, 34px);
  border-radius: var(--r-panel);
  background: var(--surface);
  box-shadow: var(--sh-panel);
}

.landing-summary-label {
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.landing-format-flow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 18px;
}

.landing-format-flow span:not(.landing-flow-arrow) {
  min-width: 76px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 14px;
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}

.landing-format-flow span:last-child {
  background: var(--accent);
  color: #ffffff;
}

.landing-flow-arrow {
  color: var(--text-3);
  font-size: 22px;
}

.landing-summary p {
  margin: 18px 0 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.75;
}

.landing-summary-list {
  display: grid;
  gap: 0;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
}

.landing-summary-list li {
  padding: 11px 0;
  color: var(--text-2);
  font-size: 13px;
}

.landing-summary-list li + li {
  border-top: 1px solid var(--hairline);
}

.landing-converter {
  padding-top: clamp(32px, 5vw, 52px);
}

.guide-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: clamp(32px, 7vw, 84px);
  padding-block: clamp(48px, 7vw, 72px);
}

.guide-intro h2 {
  font-size: clamp(29px, 4vw, 44px);
}

.guide-intro > p:last-child {
  max-width: 19rem;
  margin: 18px 0 0;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.85;
}

.guide-panel {
  overflow: hidden;
  border-radius: var(--r-panel);
  background: var(--surface);
  box-shadow: var(--sh-panel);
}

.guide-row {
  padding: 22px clamp(20px, 3vw, 28px);
}

.guide-row + .guide-row {
  border-top: 1px solid var(--hairline);
}

.guide-row h3 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.guide-row p {
  margin: 8px 0 0;
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.85;
}

.resize-toolbar + .resize-output-toolbar {
  padding-top: 0;
  border-top: 1px solid var(--hairline);
}

.resize-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.resize-field,
.resize-lock {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  font-size: 13px;
}

.resize-field input {
  width: 82px;
  min-height: 44px;
  border: 1px solid var(--faint);
  border-radius: var(--r-sheet);
  background: var(--hover);
  color: var(--text);
  font: inherit;
  padding: 5px 8px;
}

.resize-lock input {
  accent-color: var(--accent);
}

.resize-times {
  color: var(--text-3);
}

.related-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 16px;
  margin-top: 20px;
  color: var(--accent-link);
  font-size: 13px;
}

.related-tools a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.tool-links-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(32px, 7vw, 84px);
  padding-block: clamp(48px, 7vw, 72px);
  border-top: 1px solid var(--hairline);
}

.tool-links-heading h2 {
  font-size: clamp(29px, 4vw, 44px);
}

.tool-links-heading > p:last-child {
  max-width: 19rem;
  margin: 18px 0 0;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.85;
}

.tool-links-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border-radius: var(--r-panel);
  background: var(--surface);
  box-shadow: var(--sh-panel);
}

.tool-link-group + .tool-link-group {
  border-left: 1px solid var(--hairline);
}

.tool-link-group h3 {
  margin: 0;
  padding: 15px 16px;
  color: var(--text);
  font-size: 14px;
  border-bottom: 1px solid var(--hairline);
}

.tool-link-group a {
  display: block;
  padding: 12px 16px;
  transition: background 180ms var(--ease-out-quart);
}

.tool-link-group a + a {
  border-top: 1px solid var(--hairline);
}

.tool-link-group a:hover {
  background: var(--hover);
}

.tool-link-group span,
.tool-link-group small {
  display: block;
}

.tool-link-group span {
  color: var(--accent-link);
  font-size: 14px;
  font-weight: 650;
}

.tool-link-group small {
  margin-top: 4px;
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.45;
}

.privacy-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(250px, 0.75fr);
  align-items: end;
  gap: clamp(32px, 7vw, 88px);
  padding-block: clamp(72px, 10vw, 124px) clamp(50px, 7vw, 80px);
}

.privacy-page-hero h1,
.privacy-page-note h2 {
  margin: 0;
  color: var(--text);
  letter-spacing: -0.05em;
}

.privacy-page-hero h1 {
  max-width: 13ch;
  font-size: clamp(38px, 5.5vw, 68px);
  line-height: 1.08;
}

.privacy-page-hero em,
.privacy-page-note em {
  color: var(--accent-link);
  font-style: normal;
}

.privacy-page-lede {
  max-width: 37rem;
  margin: 23px 0 0;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.8;
}

.privacy-highlight {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(0, 113, 227, 0.16);
  border-radius: var(--r-panel);
  background: linear-gradient(145deg, #edf6ff, #ffffff);
  box-shadow: var(--sh-card);
}

.privacy-highlight-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 16px;
  font-weight: 750;
}

.privacy-highlight strong {
  color: var(--text);
  font-size: 16px;
}

.privacy-highlight p {
  margin: 7px 0 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.7;
}

.privacy-policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: clamp(62px, 9vw, 110px);
}

.privacy-policy-card {
  min-height: 280px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--hairline);
  border-radius: var(--r-panel);
  background: var(--surface);
  box-shadow: var(--sh-card);
}

.privacy-card-index {
  margin: 0;
  color: var(--accent-link);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.privacy-policy-card h2 {
  margin: 17px 0 13px;
  color: var(--text);
  font-size: clamp(21px, 2vw, 25px);
  letter-spacing: -0.03em;
}

.privacy-policy-card p {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.8;
}

.privacy-policy-card p + p {
  margin-top: 13px;
}

.privacy-policy-card a {
  color: var(--accent-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.privacy-updated {
  color: var(--text-3) !important;
}

.privacy-page-note {
  margin-bottom: clamp(56px, 8vw, 96px);
  padding: clamp(30px, 5vw, 52px);
  border-radius: var(--r-hero);
  background: var(--text);
}

.privacy-page-note .eyebrow {
  color: #a9d4ff;
}

.privacy-page-note h2 {
  max-width: 19ch;
  color: #ffffff;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15;
}

.privacy-page-note .primary-button {
  margin-top: 28px;
  background: #ffffff;
  color: var(--text);
}

.privacy-page-note .primary-button:hover {
  background: #e8f3ff;
}

@media (max-width: 780px) {
  .landing-hero,
  .guide-section,
  .tool-links-section,
  .privacy-page-hero {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    gap: 32px;
  }

  .guide-intro > p:last-child {
    max-width: 32rem;
  }

  .tool-links-heading > p:last-child {
    max-width: 32rem;
  }

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

  .tool-link-group:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid var(--hairline);
    border-left: 0;
  }
}

@media (max-width: 620px) {
  .privacy-policy-grid {
    grid-template-columns: 1fr;
  }

  .privacy-policy-card {
    min-height: 0;
  }

  .landing-hero h1 {
    font-size: clamp(32px, 10.5vw, 48px);
  }

  .landing-summary {
    padding: 22px;
  }

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

  .tool-link-group + .tool-link-group,
  .tool-link-group:last-child {
    grid-column: auto;
    border-top: 1px solid var(--hairline);
    border-left: 0;
  }
}
