:root {
  color-scheme: dark;
  --bg: #171717;
  --surface: #1d1d1f;
  --raised: #252527;
  --text: #f5f3f3;
  --muted: #b9b5b8;
  --accent: #ff537e;
  --accent-hover: #ff7b9c;
  --accent-ink: #201317;
  --accent-soft: #37232b;
  --line: #353538;
  --green: #80d6ac;
  --frame: 84rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--bg); }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin: 0; }
:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 5px; }
.frame { width: min(calc(100% - clamp(2.5rem, 10vw, 10rem)), var(--frame)); margin-inline: auto; }
section[id] { scroll-margin-top: 1.5rem; }
.skip-link { position: absolute; z-index: 5; inset: 1rem auto auto 1rem; padding: .75rem 1rem; background: var(--raised); transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.header-inner {
  width: min(calc(100% - clamp(2.5rem, 5.5vw, 6rem)), 105rem);
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: .6em; font-size: 1.3rem; font-weight: 750; white-space: nowrap; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 1.45em;
  height: 1.45em;
  flex: none;
  border: 1px solid currentColor;
  border-radius: .36em;
  color: var(--accent);
  font: 750 1em/1 system-ui, sans-serif;
}
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.8vw, 2.8rem); font-size: .94rem; font-weight: 550; color: var(--accent); }
.site-nav > a:not(.button):hover, .language summary:hover { color: var(--accent-hover); }
.language { position: relative; }
.language summary { display: flex; align-items: center; gap: .5em; min-height: 2.75rem; list-style: none; cursor: pointer; }
.language summary::-webkit-details-marker { display: none; }
.language-menu {
  position: absolute;
  z-index: 3;
  inset: calc(100% + .45rem) 0 auto auto;
  min-width: 10.5rem;
  margin: 0;
  padding: .35rem;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: .7rem;
  background: var(--raised);
  color: var(--text);
  box-shadow: 0 12px 30px #0006;
}
.language-menu a { display: block; padding: .65rem .75rem; border-radius: .38rem; }
.language-menu a:hover, .language-menu a[aria-current] { background: var(--accent-soft); color: var(--accent-hover); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .65rem 1.2rem;
  border: 1px solid var(--accent);
  border-radius: .65rem;
  color: var(--accent);
  font-weight: 680;
  line-height: 1.3;
  text-align: center;
}
.button:hover { border-color: var(--accent-hover); color: var(--accent-hover); background: var(--accent-soft); }
.button-filled { padding-inline: 1.35rem; border-radius: 2rem; background: var(--accent); color: var(--accent-ink); }
.button-filled:hover { background: var(--accent-hover); color: var(--accent-ink); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
  grid-template-areas: "preview copy";
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  min-height: clamp(35rem, 43vw, 46rem);
  padding-block: 3rem 4rem;
}
.hero-copy { grid-area: copy; min-width: 0; }
.hero h1 { font-size: clamp(3.2rem, 4.5vw, 4.65rem); font-weight: 760; line-height: 1.08; letter-spacing: -.045em; }
.hero-headline { margin-top: 1.25rem; font-size: clamp(1.15rem, 1.6vw, 1.55rem); font-weight: 650; line-height: 1.42; }
.hero-intro { max-width: 34rem; margin-top: .75rem; color: var(--muted); font-size: clamp(1rem, 1.23vw, 1.16rem); line-height: 1.7; }
.hero-download { margin-top: clamp(2rem, 4.4vw, 4.25rem); }
.hero-download .button { min-height: 3.25rem; padding-inline: 1.45rem; }
.platform { margin-top: .8rem; color: var(--muted); font-size: .94rem; line-height: 1.55; }
.release-status { color: var(--muted); font-weight: 650; }

.demo-window { grid-area: preview; container-type: inline-size; min-width: 0; }
.demo-content {
  display: flex;
  flex-direction: column;
  height: 68cqw;
  min-height: 0;
  border: 1px solid #414144;
  border-radius: 1.85cqw;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 1.5cqw 4cqw #0005;
  font-size: 1.63cqw;
  line-height: 1.35;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 2cqw;
  min-height: 5.5cqw;
  padding-inline: 1.8cqw;
  background: var(--raised);
  border-bottom: 1px solid var(--line);
}
.window-lights, .window-brand { display: flex; align-items: center; gap: .88cqw; font-weight: 760; }
.window-lights i { width: 1.55cqw; aspect-ratio: 1; border-radius: 50%; background: #626265; }
.window-brand .brand-mark { font-size: 1.91cqw; }
.window-body { display: grid; grid-template-columns: 18% minmax(0, 1fr) 28.8%; flex: 1; min-height: 0; }
.sidebar, .detail-panel { background: #212123; }
.sidebar {
  padding: 2.5cqw .85cqw;
  border-right: 1px solid var(--line);
  font-weight: 720;
}
.sidebar > span { display: flex; align-items: center; gap: 1.45cqw; min-height: 4.1cqw; padding: .55cqw 1.35cqw; border-radius: .86cqw; }
.sidebar-active { background: var(--accent-soft); color: var(--accent-hover); }
.gear { width: 1em; font-size: 1.25em; line-height: 1; }

.task-panel { display: flex; flex-direction: column; min-width: 0; padding: 2cqw 1.85cqw 1.65cqw; }
.panel-title { font-size: 3cqw; font-weight: 820; margin-bottom: 1.75cqw; }
.demo-form { display: flex; align-items: stretch; gap: 1.05cqw; }
.fake-input, .fake-submit { min-height: 3.76cqw; display: flex; align-items: center; border-radius: .64cqw; }
.fake-input { min-width: 0; flex: 1; gap: 1cqw; padding: 0 1.15cqw; color: var(--muted); border: 1px solid #4c4c50; background: var(--raised); }
.fake-input > span:last-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fake-submit { padding: 0 1.25cqw; font-weight: 760; white-space: nowrap; background: var(--accent); color: var(--accent-ink); }
.demo-tabs {
  display: flex;
  gap: 2.6cqw;
  padding: 0 1.1cqw;
  margin-top: 2cqw;
  border-bottom: 1px solid var(--line);
  font-weight: 690;
  font-size: 1.55cqw;
}
.demo-tabs > span { position: relative; padding: .74cqw 0 1.04cqw; }
.demo-tabs > span:first-child::after { content: ""; position: absolute; inset: auto -.4cqw -1px; height: .4cqw; border-radius: .4cqw .4cqw 0 0; background: var(--accent); }
.task-list { list-style: none; padding: 0; margin: 1.2cqw 0 0; }
.task-row {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 7.2cqw;
  gap: 1cqw;
  padding: .55cqw 1.55cqw;
  border-bottom: 1px solid var(--line);
}
.task-row.transcribing { border: 1px solid var(--accent-soft); border-left: .55cqw solid var(--accent); border-radius: .72cqw; background: var(--accent-soft); padding-left: 1cqw; min-height: 8cqw; }
.task-name { display: flex; align-items: center; gap: 1.15cqw; flex: 0 0 35%; font-weight: 730; white-space: nowrap; }
.task-name .icon, .detail-name .icon { font-size: 1.25em; }
.task-status { min-width: 0; display: flex; align-items: center; gap: .78cqw; flex: 1; font-size: 1.47cqw; font-weight: 650; }
.task-status > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-row.transcribing .task-status { display: flex; align-items: flex-start; flex-direction: column; gap: .15cqw; }
.icon-transcribing { display: none !important; }
.progress-line { display: flex; align-items: center; width: min(100%, 23cqw); gap: 1cqw; white-space: nowrap; font-weight: 500; }
.progress-track { display: block; flex: 1; height: .92cqw; border-radius: 1em; background: #4a3a42; overflow: hidden; }
.progress-track::before { content: ""; display: block; width: 62%; height: 100%; background: var(--accent); border-radius: inherit; }
.task-action { flex: none; display: flex; align-items: center; gap: .55cqw; padding: .38cqw .9cqw; border-radius: .55cqw; border: 1px solid #626265; font-size: 1.35cqw; font-weight: 660; white-space: nowrap; }
.task-action.save, .status-pill { color: var(--accent-hover); border-color: #67414e; background: var(--accent-soft); }
.task-more { flex: none; font-weight: 850; letter-spacing: .12em; }
.task-footer { margin-top: auto; padding-top: 1cqw; border-top: 1px solid var(--line); font-size: 1.55cqw; }
.detail-panel { border-left: 1px solid var(--line); padding: 2.2cqw 1.75cqw 0 2.2cqw; }
.detail-title { font-weight: 810; font-size: 2.1cqw; }
.detail-name { display: flex; align-items: center; gap: 1.25cqw; font-weight: 710; padding: 1.55cqw 0; border-bottom: 1px solid var(--line); }
.detail-info { padding-block: 1.4cqw 1.85cqw; border-bottom: 1px solid var(--line); }
.detail-info p { display: grid; grid-template-columns: 32% 1fr; align-items: center; min-height: 2.72cqw; }
.detail-info p:nth-child(2) > span { justify-self: end; }
.detail-info .progress-track { margin: .48cqw 0 1.15cqw; }
.status-pill { width: fit-content; padding: .2cqw .56cqw; border: 1px solid #67414e; border-radius: .5cqw; font-size: 1.38cqw; font-weight: 740; }
.workflow { padding-top: 1.25cqw; }
.workflow p { font-size: 1.72cqw; font-weight: 790; }
.workflow ol { list-style: none; margin: 1.25cqw 0 0; padding: 0; }
.workflow li { position: relative; display: flex; align-items: flex-start; gap: 1.48cqw; min-height: 6.25cqw; font-weight: 650; }
.workflow li:not(:last-child)::after { content: ""; position: absolute; top: 1.9cqw; bottom: 0; left: .52em; width: 1px; background: #555559; }
.workflow li:first-child::after { background: var(--green); }
.workflow li .icon { z-index: 1; margin-top: .05cqw; }
.workflow small { display: block; color: var(--muted); font-size: 1.4cqw; font-weight: 470; }

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 3rem);
  border-top: 1px solid var(--line);
  padding-block: clamp(2rem, 4vw, 4rem);
}
.feature { display: flex; align-items: flex-start; gap: 1rem; }
.feature h2 { font-size: clamp(1.05rem, 1.35vw, 1.3rem); line-height: 1.35; font-weight: 680; }
.feature p { margin-top: .4rem; color: var(--muted); line-height: 1.5; }
.feature > .icon { margin-top: .13em; color: var(--accent); font-size: 1.55rem; }
.feature > .icon-layers { margin-top: -.12em; }

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  grid-template-areas: "copy artwork";
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(2.75rem, 6vw, 6.5rem);
  border-top: 1px solid var(--line);
}
.showcase-copy { grid-area: copy; }
.showcase-copy h2 { font-size: clamp(1.9rem, 3.15vw, 3rem); line-height: 1.16; letter-spacing: -.035em; }
.showcase-copy p { max-width: 36rem; margin-top: 1.15rem; font-size: clamp(1rem, 1.3vw, 1.17rem); line-height: 1.7; }
.showcase-copy .showcase-note { color: var(--muted); font-size: .97rem; }
.showcase-copy .button { margin-top: 1.65rem; }
.showcase-art { grid-area: artwork; position: relative; isolation: isolate; min-width: 0; }
.showcase-window {
  overflow: hidden;
  border: 1px solid #454548;
  border-radius: .85rem;
  background: var(--surface);
  box-shadow: 0 1rem 2.5rem #0006;
  font-size: clamp(.75rem, 1vw, .95rem);
  line-height: 1.4;
}
.showcase-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 2.5rem;
  padding: .45rem .8rem;
  border-bottom: 1px solid var(--line);
  background: var(--raised);
  color: var(--muted);
  font-weight: 650;
}
.showcase-lights { display: inline-flex; flex: none; gap: .3rem; }
.showcase-lights i { width: .42rem; aspect-ratio: 1; border-radius: 50%; background: #656567; }
.settings-art { display: grid; grid-template-columns: minmax(0, 1fr); }
.settings-window { width: 77%; }
.settings-example { display: grid; gap: .85rem; padding: clamp(.8rem, 2.1vw, 1.5rem); }
.settings-example > div { display: grid; gap: .32rem; }
.preview-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .55rem;
  padding: .45rem .65rem;
  border: 1px solid var(--line);
  border-radius: .45rem;
  background: #18181a;
  color: var(--muted);
}
.settings-example .video-setting { display: flex; align-items: center; gap: .5rem; }
.preview-check {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.15em;
  height: 1.15em;
  border-radius: .22em;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 750;
}
.export-window { z-index: 1; justify-self: end; width: 64%; margin-top: -1.45rem; }
.export-example { padding: .55rem .8rem; }
.export-example > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .6rem;
  padding: .62rem 0;
}
.export-example > div + div { border-top: 1px solid var(--line); }
.export-example .icon { color: var(--accent-hover); }
.format-tag, .player-cc { border-radius: .3rem; padding: .15em .42em; background: var(--accent-soft); color: var(--accent-hover); font-weight: 700; }

.paywall {
  padding-block: clamp(3rem, 6vw, 6rem);
  border-top: 1px solid var(--line);
}
.paywall-intro, .plans, .paywall-note { max-width: 59rem; margin-inline: auto; }
.paywall-intro { margin-bottom: clamp(1.5rem, 3.5vw, 3rem); text-align: center; }
.paywall-intro h2 { font-size: clamp(2rem, 3.8vw, 3.55rem); line-height: 1.1; letter-spacing: -.045em; }
.paywall-intro p { max-width: 37rem; margin: .9rem auto 0; color: var(--muted); line-height: 1.65; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
.plan {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.25rem, 3.5vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}
.plan-premium {
  border-color: var(--accent);
  background: linear-gradient(155deg, #342329, var(--surface) 66%);
}
.plan h3 { font-size: 1.14rem; line-height: 1.35; }
.plan-premium h3, .plan-payment { color: var(--accent-hover); }
.plan-price {
  margin-top: .67rem;
  font-size: clamp(2.2rem, 4vw, 3.45rem);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -.04em;
}
.plan-payment { margin-top: .55rem; font-size: .94rem; line-height: 1.4; }
.plan-features {
  display: grid;
  gap: .8rem;
  width: 100%;
  margin: 1.25rem 0 1.5rem;
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  line-height: 1.45;
}
.plan-features li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: .65rem; }
.plan-features li::before { content: ""; width: .42em; height: .62em; border: solid var(--accent-hover); border-width: 0 .12em .12em 0; transform: rotate(45deg); }
.plan .button, .plan-unavailable { width: 100%; margin-top: auto; }
.plan .button-filled { border-radius: .65rem; }
.plan-unavailable {
  display: grid;
  place-items: center;
  min-height: 2.75rem;
  padding: .6rem .85rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: var(--raised);
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.4;
  text-align: center;
}
.paywall-note { margin-top: 1rem; color: var(--muted); font-size: .94rem; line-height: 1.65; text-align: center; }

.footer { padding-block: 1.5rem 2rem; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.footer .brand { font-size: 1.15rem; }
.footer p { color: var(--muted); line-height: 1.5; }
.not-found { min-height: 60vh; display: grid; justify-items: start; align-content: center; gap: 1.25rem; }

.icon { position: relative; display: inline-block; flex: none; width: 1em; height: 1em; vertical-align: middle; }
.icon::before, .icon::after { position: absolute; }
.icon-download::before { content: ""; inset: 48% 0 0; border: .11em solid currentColor; border-top: 0; border-radius: 0 0 .17em .17em; }
.icon-download::after { content: "↓"; inset: -.4em 0 auto; font: 800 1.14em/1 system-ui; text-align: center; }
.icon-chevron { width: .55em; height: .55em; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-15%) rotate(45deg); }
.icon-globe { border: 1.5px solid currentColor; border-radius: 50%; }
.icon-globe::before { content: ""; inset: 0 24%; border: solid currentColor; border-width: 0 1px; border-radius: 50%; }
.icon-globe::after { content: ""; inset: 46% 0 auto; border-top: 1px solid currentColor; }
.icon-layers, .icon-layers::before, .icon-layers::after { border: .068em solid var(--accent); width: .79em; height: .79em; border-radius: .12em; transform: scaleY(.57) rotate(45deg); }
.icon-layers { margin-inline: .105em; margin-top: -.42em; }
.icon-layers::before, .icon-layers::after { content: ""; inset: 0; border-color: transparent var(--accent) var(--accent) transparent; transform: translate(.19em, .19em); }
.icon-layers::after { transform: translate(.38em, .38em); }
.icon-progress, .icon-extracting { border-radius: 50%; border: .1em solid #4c4c50; border-top-color: var(--accent); border-right-color: var(--accent); border-bottom-color: var(--accent); }
.icon-extracting { border-width: .12em; }
.icon-retry { border-radius: 50%; border: .1em solid currentColor; border-right-color: transparent; transform: rotate(13deg); }
.icon-retry::after { content: ""; top: -.065em; right: -.01em; width: .35em; height: .35em; border: solid currentColor; border-width: 0 .1em .1em 0; border-radius: .04em; }
.icon-list::before { content: ""; left: 30%; top: 19%; width: 65%; height: .11em; background: currentColor; box-shadow: 0 .29em currentColor, 0 .58em currentColor; }
.icon-list::after { content: ""; left: 0; top: 19%; height: .11em; width: .12em; background: currentColor; box-shadow: 0 .29em currentColor, 0 .58em currentColor; }
.icon-link { transform: rotate(-43deg); }
.icon-link::before, .icon-link::after { content: ""; inset: 28% auto; width: 62%; border: .1em solid currentColor; border-radius: .3em; }
.icon-link::before { left: 0; }
.icon-link::after { right: 0; }
.icon-file { width: .78em; border: .085em solid currentColor; border-radius: .12em; }
.icon-file::before { content: ""; right: -.085em; top: -.085em; width: .32em; height: .32em; border: solid currentColor; border-width: 0 0 .085em .085em; background: linear-gradient(45deg, transparent 50%, var(--surface) 51%); }
.icon-file::after { content: ""; left: .14em; right: .14em; top: .48em; height: .07em; background: currentColor; box-shadow: 0 .15em currentColor; }
.icon-complete, .icon-failed, .icon-waiting { width: 1.16em; height: 1.16em; border-radius: 50%; }
.icon-complete { background: var(--green); color: var(--bg); }
.icon-complete::before { content: ""; left: .34em; top: .25em; width: .43em; height: .56em; border: solid currentColor; border-width: 0 .11em .11em 0; transform: rotate(45deg); }
.icon-failed { border: .115em solid var(--accent-hover); color: var(--accent-hover); }
.icon-failed::before { content: "×"; inset: -.17em 0 0; text-align: center; line-height: 1.15; }
.icon-waiting { border: .115em solid var(--text); background: var(--surface); }

@media (max-width: 56rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "preview";
    gap: 2.5rem;
    min-height: 0;
    padding-block: 2.75rem 3.5rem;
  }
  .hero h1 { font-size: clamp(2.75rem, 8.5vw, 3.8rem); }
  .hero-download { margin-top: 1.6rem; }
  .demo-window { width: min(100%, 42rem); }
  .showcase {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "artwork";
    gap: 1.75rem;
  }
  .showcase-art { width: min(100%, 39rem); }
}

@media (max-width: 36rem) {
  .header-inner { flex-wrap: wrap; gap: .4rem; padding-block: .9rem .4rem; }
  .site-nav { justify-content: space-between; flex: 1 1 100%; flex-wrap: wrap; gap: .6rem; font-size: .88rem; }
  .site-nav > a { min-height: 2.75rem; display: inline-flex; align-items: center; }
  .site-nav .button { padding-inline: .9rem; }
  .current-language { display: none; }
  .language summary { padding-inline: .25rem; }
  .demo-content { height: auto; min-height: 65cqw; border-radius: 2.4cqw; font-size: 2.4cqw; }
  .window-bar { min-height: 6cqw; }
  .window-lights i { width: 2cqw; }
  .window-brand .brand-mark { font-size: 2.7cqw; }
  .window-body { grid-template-columns: 1fr; }
  .sidebar, .detail-panel { display: none; }
  .task-panel { padding: 2.5cqw 2.8cqw 1.85cqw; }
  .panel-title { font-size: 4cqw; }
  .fake-input, .fake-submit { min-height: 5.15cqw; }
  .demo-tabs { font-size: 2.4cqw; }
  .task-row { min-height: 6.5cqw; }
  .task-row.transcribing { min-height: 7.35cqw; padding-left: 1cqw; }
  .task-status, .task-footer { font-size: 2.2cqw; }
  .progress-line { width: min(100%, 38cqw); }
  .task-action { font-size: 2cqw; }
  .features { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .paywall-intro, .paywall-note { text-align: start; }
  .footer { flex-direction: column; align-items: flex-start; }
}

@media (forced-colors: active) {
  .button { border-color: ButtonText; }
}
