@font-face {
  font-family: Jost;
  src: url(/assets/jost.woff2?v=480989dc8c042094) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --base: #050505;
  --ink: #f5f5f5;
  --muted: #b6b6b6;
  --line: #222;
  --surface: #101010;
  --glass: linear-gradient(155deg, #181818, #101010 72%);
  --border: #777;
  --page-width: min(100% - clamp(40px, 8vw, 144px), 1392px);
  --page-top: clamp(20px, 4vw, 48px);
  --page-gap: clamp(28px, 4.5vw, 60px);
  font: 16px/1.5 Jost, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
}

.frame {
  width: var(--page-width);
  margin: 0 auto;
  padding: var(--page-top) 0 64px;
}

.landing {
  --section-gap: clamp(26px, 4vw, 56px);
  --module-gap: clamp(10px, 1.4vw, 20px);
}

.brand {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.brand a { color: inherit; text-decoration: none; }
.brand a:focus-visible { border-radius: 3px; }

.wordmark {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1;
}

.brand nav { display: flex; flex-wrap: wrap; gap: .35rem clamp(.8rem, 3vw, 2rem); }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; }
.nav-link:hover { text-decoration: underline; text-underline-offset: .25em; }
.tagline { color: var(--muted); }

.content { width: min(100%, 34rem); margin: var(--page-gap) auto 0; }
.landing .content { width: 100%; margin-top: 0; }
.admin .content { width: min(100%, 1120px); }
.checkout .content { width: min(100%, 62rem); }

.skip-link {
  position: fixed;
  z-index: 2;
  inset: 12px auto auto 12px;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--base);
  clip-path: inset(50%);
}

.skip-link:focus { clip-path: none; }
.content:focus { outline: none; }

.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: var(--section-gap);
  padding: clamp(36px, 5vw, 88px) 0 var(--section-gap);
}

.hero h1 {
  font-size: clamp(48px, calc(4.5vw + 13px), 110px);
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: -.055em;
  line-height: .95;
}

.hero p {
  max-width: 35ch;
  margin: 20px 0 22px;
  font-size: clamp(17px, 2vw, 20px);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .action { width: auto; }
.hero-visual {
  display: block;
  width: 100%;
  height: clamp(220px, 30vw, 420px);
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #080808;
}

#white-welcome[open] {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #080808;
}
#white-welcome::backdrop { background: #080808; }
#white-welcome video {
  display: block;
  width: min(100%, 100dvh);
  height: auto;
  aspect-ratio: 1;
  pointer-events: none;
}
html:has(#white-welcome[open]) { overflow: hidden; }


.product, .purchase {
  margin-bottom: var(--section-gap);
  scroll-margin-block: 20px;
}

.landing h2 {
  margin-bottom: clamp(12px, 2vw, 20px);
  font-size: clamp(1.45rem, 3vw, 2.45rem);
}

.module-grid, .purchase-grid {
  display: grid;
  gap: var(--module-gap);
  align-items: stretch;
}

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

.module, .checkout-options, .pending {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.checkout-options, .pending, .updates {
  background: var(--glass);
}

.login-steps { margin: 0; padding-inline-start: 1.3em; color: var(--muted); }
.login-steps li + li { margin-top: 6px; }
.login-status {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  color: var(--ink);
}

.module { padding: clamp(16px, 2vw, 26px); }
.studio-next {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 30px;
}
.studio-next .actions { width: auto; flex: 0 0 auto; }
.studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
.voice-studio { background: var(--glass); container-type: inline-size; }
.voice-studio fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.voice-studio legend { padding: 0 0 8px; color: var(--muted); }
.studio-presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.studio-presets label { display: grid; min-width: 0; cursor: pointer; }
.studio-presets input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.studio-presets span {
  padding: 10px 4px;
  min-height: 44px;
  text-align: center;
  overflow-wrap: anywhere;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.studio-presets input:checked + span { background: var(--ink); color: var(--base); }
.studio-presets input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.studio-signal { margin: 18px 0 12px; }
.studio-signal meter { width: 100%; height: 9px; display: block; accent-color: var(--ink); }
.studio-signal meter::-webkit-meter-bar { background: var(--line); border: 0; border-radius: 10px; }
.studio-signal meter::-webkit-meter-optimum-value { background: var(--ink); border-radius: 10px; }
.studio-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@container (min-width: 24rem) {
  .studio-presets { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@container (max-width: 15rem) {
  .studio-actions { grid-template-columns: minmax(0, 1fr); }
}
.voice-studio #voice-status { margin-top: 12px; color: var(--ink); }
.studio-week-name { font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--ink); }
.studio-week .action { margin-top: 12px; }
.voice-studio audio { width: 100%; }
#renew { scroll-margin-block: 20px; }
.module h3 { margin: 0 0 8px; font-size: clamp(1.12rem, 1.8vw, 1.5rem); line-height: 1.2; }
.module p { margin: 0; overflow-wrap: anywhere; }
.module details { margin: 10px 0 0; padding: 0; }
.module summary { margin: 0; }
.module.guide-card { margin: 0; padding: 0; }
.guide-card > summary {
  position: relative;
  display: block;
  min-height: 100%;
  padding: clamp(16px, 2vw, 26px);
  border-radius: inherit;
  list-style: none;
}
.guide-card[open] > summary { min-height: auto; }
.guide-card > summary::-webkit-details-marker { display: none; }
.guide-label {
  display: block;
  margin-bottom: 8px;
  padding-inline-end: 40px;
  font-size: clamp(1.12rem, 1.8vw, 1.5rem);
  font-weight: 600;
  line-height: 1.2;
}
.guide-preview { display: block; margin-top: 16px; color: var(--muted); }
.guide-card > summary::after {
  position: absolute;
  inset-block-start: clamp(15px, 2vw, 25px);
  inset-inline-end: clamp(14px, 2vw, 24px);
  display: grid;
  place-items: center;
  width: 30px;
  aspect-ratio: 1;
  content: "+";
  border: 1px solid var(--border);
  border-radius: 50%;
}
.guide-card[open] {
  background: var(--glass);
  border-color: var(--border);
}
.guide-card[open] > summary::after { content: "−"; }
.guide-card > summary:focus-visible { outline-offset: -3px; }
.guide-detail { padding: 0 clamp(16px, 2vw, 26px) clamp(16px, 2vw, 26px); }
.guide-detail p { padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink); }

@media (hover: hover) {
  .guide-card > summary:hover::after { background: var(--ink); color: var(--base); }
}

.updates { scroll-margin-block: 20px; }

.releases { list-style: none; margin: 0; padding: 0; }
.releases li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 2px 12px;
  padding: 4px 0;
}
.releases strong { overflow-wrap: anywhere; }
.releases span { color: var(--muted); font-size: .9em; }

.plan .action { width: fit-content; margin-top: 16px; }
.plan p + p { margin-top: 10px; }
.faq p { margin-bottom: 10px; }

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 36px);
  align-items: start;
}
.checkout-help {
  padding: clamp(14px, 2vw, 22px) 0;
  border-block-start: 1px solid var(--line);
}
.checkout-help h2, .download-card h2 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
.checkout-help p { margin-bottom: 14px; }
.checkout .content h1 { margin-bottom: 12px; }
.checkout-help .action { border-color: var(--line); }
.checkout-help .action:hover { border-color: var(--muted); }
.subscription-status { margin-top: -6px; }
.download-card {
  display: grid;
  gap: 12px;
  padding: clamp(16px, 3vw, 26px);
  background: var(--surface);
}
.download-card :is(h2, p) { margin: 0; }
.download-card > p { max-width: 46ch; }
.download-card .action.primary { margin-block: 4px; }
.download-meta { font-variant-numeric: tabular-nums; }
.download-card .action { width: fit-content; max-width: 100%; }
.download-help p { margin: 12px 0 0; }
.download-help a { color: var(--ink); text-underline-offset: .2em; }
.checkout-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  margin: 0 0 16px;
  list-style: none;
}
.checkout-steps li {
  padding: 0 0 7px;
  border-bottom: 2px solid var(--line);
  color: var(--muted);
}
.checkout-steps [aria-current="step"] {
  border-color: var(--ink);
  color: var(--ink);
  font-weight: 600;
}
.checkout-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 132px), 1fr));
  gap: 8px;
}
.checkout-links .action { padding-inline: 12px; }

h1, h2 { margin: 0 0 16px; line-height: 1.15; font-weight: 600; letter-spacing: -.025em; }
h1 { font-size: clamp(2rem, 6vw, 3rem); }
h2 { font-size: clamp(1.35rem, 3vw, 2rem); }
p { margin: 0 0 20px; color: var(--muted); }

.action {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  transition: background .18s ease, border-color .18s ease, transform .14s ease;
}

.action:hover { background: var(--line); border-color: var(--ink); }
.action:active { transform: translateY(1px) scale(.99); }
.primary { background: var(--ink); color: var(--base); border-color: var(--ink); }
.primary:hover { background: #ccc; border-color: #ccc; }

:where(a, button, summary, input):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.actions, .price-options {
  display: grid;
  gap: 10px;
}

.price-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.checkout-options { padding: clamp(16px, 3vw, 26px); }
.checkout-options .price-list { margin-bottom: 12px; }
.checkout-options > p { margin-bottom: 12px; }
.price-options .action { background: var(--ink); color: var(--base); border-color: var(--ink); }
.price-options .action:hover { background: #ccc; border-color: #ccc; }

.price-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 0;
  margin: 0 0 20px;
  list-style: none;
  font-weight: 550;
  font-size: 21px;
}

.price-list, .code { font-variant-numeric: tabular-nums; }

.notice, details {
  border-block-start: 1px solid var(--line);
  padding-block: 16px;
  margin-block: 18px;
}

.pending { margin-block: 18px; padding: 18px; }
.actions > p { margin: 0; }
.pending :is(h2, p) { margin: 0; }
.pending h2 { font-size: 1.25rem; }
.payment-state {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink);
}
.payment-time { font-variant-numeric: tabular-nums; }
#invoice { scroll-margin-block: 20px; }
.notice {
  color: var(--ink);
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

details { padding-block: 8px; }
summary { cursor: pointer; min-height: 44px; padding-block: 9px; margin-bottom: 12px; }
details:not([open]) summary { margin-bottom: 0; }

.code {
  user-select: all;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 14px;
  border-radius: 8px;
}

.admin-account { font-weight: 600; }
.admin-account small { margin-top: 3px; font-weight: 400; }
.table { overflow: auto; }
.table:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 12px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 500; }
@media (min-width: 881px) {
  th { background: var(--surface); }
  tbody tr:focus-within { background: var(--surface); }
}
td { white-space: normal; overflow-wrap: anywhere; }
td small { display: block; color: var(--muted); line-height: 1.35; }
.table-actions { min-width: 9.5em; vertical-align: middle; }
.table-actions form + form { margin-top: 6px; }
.table-actions .action { padding: 6px 12px; }
.cell-label { display: none; }
.small { font-size: 14px; }

@media (max-width: 880px) {
  .table { overflow: visible; }
  .table table, .table tbody { display: block; }
  .table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
  }
  .table tbody {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 12px;
  }
  .table tbody tr {
    display: grid;
    align-content: start;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    padding: 8px 14px 14px;
  }
  .table td {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 8px;
    padding: 7px 0;
  }
  .table .cell-label { display: block; color: var(--muted); }
  .table .table-actions {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 116px), 1fr));
    border-bottom: 0;
    padding: 10px 0 0;
  }
  .table-actions form + form { margin-top: 0; }
  .table-actions .action { height: 100%; }
}

@media (max-width: 760px) {
  :root { --page-width: calc(100% - 32px); }
  .hero { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .download-card .action { width: 100%; }
  .checkout .content { width: min(100%, 34rem); }
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { gap: 18px; padding-top: 24px; }
  .hero h1 { font-size: clamp(2.35rem, 7vw, 3rem); }
  .hero p { margin: 12px 0 14px; }
  .hero-actions .action { flex: 1 1 auto; }
  .hero-visual { height: clamp(184px, 60vw, 320px); }
  .plan .action { width: 100%; }
  .studio-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 761px) and (max-width: 820px) {
  .hero { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 20px; }
  .hero h1 { font-size: clamp(43px, 5.75vw, 48px); }
}

@media (max-width: 370px) {
  .brand { padding-bottom: 10px; }
  .landing .brand { display: grid; gap: 4px; }
  .landing .brand nav { justify-content: space-between; gap: 4px 12px; }
}

@media (max-width: 540px) {
  .module-grid, .purchase-grid { grid-template-columns: 1fr; }
  .studio-next { display: grid; grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 480px) {
  .price-options { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .action { transition: none; }
  .action:active { transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  html:has(.landing) { scroll-behavior: smooth; }
  .guide-card { transition: border-color .2s ease; }
  .guide-card > summary::after { transition: background .16s ease, color .16s ease; }
  .guide-card[open] .guide-detail { animation: section-arrival .25s ease-out; }
  @supports (interpolate-size: allow-keywords) and selector(details::details-content) {
    .guide-card::details-content {
      interpolate-size: allow-keywords;
      height: 0;
      overflow: clip;
      transition: height .25s ease, content-visibility .25s allow-discrete;
    }
    .guide-card[open]::details-content { height: auto; }
  }
  .landing :is(#how-it-works, #subscription):target > h2,
  .landing #updates:target {
    animation: section-arrival .68s ease-out;
  }
}

@keyframes section-arrival {
  from { opacity: .7; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 1920px) {
  :root { font-size: clamp(19px, 1.05vw, 29px); --page-width: min(90%, 1640px); }
  .admin .content { width: 100%; }
  .action, .nav-link { min-height: 2.65rem; }
  :where(a, button, summary, input):focus-visible { outline-width: 3px; }
}
