: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, .site-nav summary:hover { color: var(--accent-hover); }
.language, .account-dropdown { position: relative; }
.site-nav summary { display: flex; align-items: center; gap: .5em; min-height: 2.75rem; list-style: none; cursor: pointer; }
.site-nav summary::-webkit-details-marker { display: none; }
.language-menu, .account-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, .account-menu a:not([hidden]), .account-menu button { display: block; padding: .65rem .75rem; border-radius: .38rem; }
.language-menu a:hover, .language-menu a[aria-current], .account-menu a:hover, .account-menu button:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
}
.account-menu button { width: 100%; border: 0; background: transparent; color: inherit; font: inherit; text-align: start; cursor: pointer; }

.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-brand { 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.35rem, 2.15vw, 2rem); font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
.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(1.75rem, 3vw, 2.75rem); }
.installer-links { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: .65rem; }
.installer-links > :only-child { grid-column: 1 / -1; justify-self: start; }
.installer-links .button { min-height: 3.25rem; padding-inline: 1rem; gap: .55rem; }
.installer-links .icon { font-size: .85rem; }
.installer-dropdown { position: relative; }
.installer-dropdown summary { display: flex; height: 100%; list-style: none; cursor: pointer; }
.installer-dropdown summary::-webkit-details-marker { display: none; }
.installer-dropdown[open] summary .icon-chevron { transform: translateY(15%) rotate(225deg); }
.installer-menu {
  position: absolute;
  z-index: 3;
  inset: calc(100% + .45rem) auto auto 0;
  width: max-content;
  min-width: 100%;
  max-width: calc(100vw - 2.5rem);
  margin: 0;
  padding: .35rem;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: .7rem;
  background: var(--raised);
  box-shadow: 0 12px 30px #0006;
}
.installer-menu .button {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  min-height: 2.75rem;
  border-color: transparent;
  color: var(--text);
  text-align: start;
}
.installer-menu .button:hover { color: var(--accent-hover); }
.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.watch, .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;
  max-width: 70rem;
  gap: clamp(3rem, 5vw, 4.5rem);
  border-top: 1px solid var(--line);
  padding-block: clamp(2.75rem, 5vw, 5rem);
}
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  grid-template-areas: "copy image";
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.feature:nth-child(even) {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  grid-template-areas: "image copy";
}
.feature-copy { grid-area: copy; overflow-wrap: anywhere; }
.feature h2 { font-size: clamp(1.7rem, 3.1vw, 2.85rem); line-height: 1.16; letter-spacing: -.025em; }
.feature p { margin-top: .85rem; color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.15rem); line-height: 1.65; }
.guide-link { display: inline-block; margin-top: .95rem; color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.guide-link:hover { color: var(--accent-hover); }
.feature-image {
  grid-area: image;
  display: block;
  width: 100%;
  max-width: 35rem;
  height: auto;
  border: 1px solid var(--line);
  border-radius: clamp(.75rem, 1.6vw, 1.35rem);
  background: var(--surface);
}

.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; }
.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 { 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 { color: var(--muted); font-size: .94rem; font-weight: 550; letter-spacing: normal; }
.plan-minutes { margin-top: .85rem; color: var(--text); font-weight: 650; line-height: 1.45; }
.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-checkouts, .plan-unavailable { width: 100%; margin-top: auto; }
.plan-checkouts { display: grid; gap: .55rem; }
.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; }
.paywall-note a { color: var(--accent-hover); text-decoration: underline; text-underline-offset: .2em; }

.footer { padding-block: 2.25rem 3rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.75rem 2rem; }
.footer .brand { font-size: 1.15rem; }
.footer p { max-width: 22rem; margin-top: .8rem; color: var(--muted); line-height: 1.5; }
.footer h2 { font-size: .95rem; font-weight: 650; }
.footer ul { display: grid; gap: .7rem; margin: .8rem 0 0; padding: 0; list-style: none; color: var(--muted); }
.footer nav a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: .2em; }
.not-found, .desktop-download { 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-play::before { content: ""; inset: 10% 8% 10% 19%; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.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-extracting { border-radius: 50%; border: .12em solid var(--accent); border-left-color: #4c4c50; }
.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: 64rem) {
  .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-brand { font-size: clamp(2.75rem, 8.5vw, 3.8rem); }
  .hero-download { margin-top: 1.6rem; }
  .demo-window { width: min(100%, 42rem); }
}

@media (max-width: 44rem) {
  .feature, .feature:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "image";
    gap: 1.15rem;
  }
}

@media (max-width: 48rem) {
  .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; }
}

@media (max-width: 36rem) {
  .installer-links { grid-template-columns: 1fr; }
  .installer-links > :only-child { justify-self: stretch; }
  .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; }
  .plans { grid-template-columns: 1fr; }
  .paywall-intro, .paywall-note { text-align: start; }
  .footer { grid-template-columns: 1fr; }
}

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

.site-nav #websiteAccount[hidden], .site-nav #googleLogin[hidden] { display: none; }
.account-email { max-width: min(10rem, 45vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.membership-page {
  min-height: 100svh;
  background: radial-gradient(ellipse at 50% 14rem, #39252d 0, transparent 34rem), var(--bg);
}
.membership-page .site-header { border-bottom: 1px solid var(--line); }
.membership-page .header-inner { width: min(calc(100% - 2.5rem), 68rem); }
.membership-page .site-nav { flex: 0 1 auto; justify-content: flex-end; margin-inline-start: auto; }
.membership-layout { width: min(calc(100% - 2rem), 30rem); margin-inline: auto; padding-block: clamp(2.5rem, 9vh, 6.75rem) 3rem; }
.membership-card {
  padding: clamp(1.3rem, 6vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--surface);
  box-shadow: 0 1.5rem 4rem #09060766;
}
.membership-heading p { margin-bottom: .6rem; color: var(--accent-hover); font-size: .82rem; font-weight: 700; }
.membership-heading h1 { font-size: clamp(1.75rem, 6vw, 2.65rem); line-height: 1.12; overflow-wrap: anywhere; }
.membership-status { min-height: 1.5em; margin-top: .9rem; color: var(--muted); line-height: 1.55; overflow-wrap: anywhere; }
.membership-status:is([data-state="active"], [data-state="inactive"], [data-state="invalid"], [data-state="limited"]) {
  padding: .7rem .85rem;
  border-inline-start: 2px solid currentColor;
  border-radius: .25rem;
  background: var(--raised);
}
.membership-status[data-state="active"] { color: var(--green); }
.membership-status:is([data-state="invalid"], [data-state="limited"]) { color: var(--accent-hover); }
.membership-account:not([hidden]) {
  display: grid;
  gap: .28rem;
  margin-top: 1.5rem;
  padding: .7rem .85rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  color: var(--muted);
  font-size: .85rem;
  overflow-wrap: anywhere;
}
.membership-account strong { color: var(--text); font-size: .95rem; }
.membership-form:not([hidden]) { display: grid; gap: .65rem; margin-top: 1.5rem; }
.membership-form label { font-size: .92rem; font-weight: 680; }
.membership-form input {
  width: 100%;
  min-height: 3.3rem;
  padding: .65rem .85rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: var(--bg);
  color: var(--text);
  font: 1rem ui-monospace, monospace;
  letter-spacing: .06em;
}
.membership-form input[aria-invalid="true"] { border-color: var(--accent-hover); }
.membership-form input::placeholder { color: var(--muted); opacity: .8; }
.membership-card .button { width: 100%; min-height: 3.05rem; border-radius: .65rem; }
.membership-card .button[hidden] { display: none; }
.membership-card > .button { margin-top: 1.5rem; }
.membership-form button { margin-top: .4rem; font-family: inherit; cursor: pointer; }
.membership-form button:disabled { opacity: .55; cursor: wait; }
.membership-help { margin-top: 1.65rem; padding-top: 1.1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; line-height: 1.6; }
.membership-help a { text-decoration: underline; text-underline-offset: .18em; }
.membership-back { display: inline-flex; gap: .5rem; margin: 1.15rem .2rem 0; color: var(--muted); font-size: .9rem; }
.membership-back:hover, .membership-help a:hover { color: var(--accent-hover); }

.legal-nav { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem 1.25rem; font-size: .9rem; }
.legal-nav a[aria-current="page"] { color: var(--text); text-decoration: underline; text-underline-offset: .2em; }
.legal-page { max-width: 46rem; padding-block: clamp(2rem, 6vw, 4.5rem); overflow-wrap: anywhere; }
.legal-page h1 { margin-block: 0 .4rem; font-size: clamp(2rem, 6vw, 3.25rem); line-height: 1.2; }
.legal-page h2 { margin-block: 1.8rem .65rem; font-size: 1.2rem; }
.legal-page p { line-height: 1.75; }
.legal-page a { text-decoration: underline; text-underline-offset: .2em; }
.legal-updated { color: var(--muted); font-size: .9rem; }
.legal-contact { margin-block-start: 2rem; }

.guide-page { max-width: 46rem; padding-block: clamp(2rem, 6vw, 4.5rem); overflow-wrap: anywhere; }
.guide-page h1 { font-size: clamp(1.8rem, 5vw, 3.25rem); line-height: 1.2; }
.guide-page p, .guide-page li { color: var(--muted); line-height: 1.75; }
.guide-intro { margin-block: 1rem 1.5rem; font-size: 1.1rem; }
.guide-page section { margin-top: clamp(2rem, 5vw, 3rem); border-top: 1px solid var(--line); padding-top: 1.5rem; }
.guide-page h2 { margin-bottom: 1rem; font-size: 1.4rem; line-height: 1.4; }
.guide-page h3 { margin-block: 1.25rem .45rem; font-size: 1.05rem; line-height: 1.5; }
.guide-page ol { margin: 0; padding-inline-start: 1.6rem; }
.guide-page li + li { margin-top: .7rem; }
