:root {
  color-scheme: light;
  --paper: #f7f4ed;
  --ink: #11142e;
  --accent: #1528e8;
  --accent-pale: #eeedfb;
  --panel: #eeebe3;
  --rule: #c9c5bc;
  --muted: #454754;
  --measure: 73rem;
  font-family: "Avenir Next", Avenir, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: .12em; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }

.shell { width: min(var(--measure), calc(100% - 3rem)); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: absolute;
  z-index: 1;
  left: 1rem;
  top: 1rem;
  padding: .6rem 1rem;
  background: var(--paper);
}

.site-header, .footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-header {
  min-height: 3.56rem;
  padding-inline: 1rem .65rem;
  border-bottom: 1.5px solid var(--ink);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 1.08rem;
  font-size: 1.62rem;
  font-weight: 700;
  letter-spacing: -.048em;
  line-height: 1.15;
  text-decoration: none;
  color: var(--ink);
}
.brand img { display: block; flex: 0 0 auto; }
nav { display: flex; gap: clamp(.85rem, 3vw, 2.42rem); }
nav a { display: inline-flex; align-items: center; min-block-size: 2.75rem; color: var(--ink); font-weight: 600; text-decoration: none; }
nav a:hover, nav a[aria-current] { text-decoration: underline; }
.site-header nav { font-size: 1.15rem; }

.intro {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 5.45fr);
  gap: clamp(1.7rem, 4vw, 4rem);
  align-items: center;
  padding-block: clamp(1.8rem, 5vw, 4rem);
}
.intro h1 {
  max-inline-size: 12ch;
  font-size: clamp(3.5rem, 5.06vw, 4.85rem);
  font-weight: 700;
  letter-spacing: -.056em;
  line-height: .94;
  text-wrap: balance;
}
.intro p {
  max-width: 29rem;
  margin-block: 1rem 1.3rem;
  font-size: clamp(1.12rem, 1.53vw, 1.4rem);
  font-weight: 550;
  letter-spacing: -.022em;
  line-height: 1.35;
}
.primary-link {
  display: inline-flex;
  align-items: center;
  min-block-size: 2.75rem;
  padding: .67rem 1.3rem .71rem;
  border-radius: .23rem;
  background: var(--accent);
  color: white;
  font-size: clamp(1.08rem, 1.49vw, 1.42rem);
  font-weight: 700;
  letter-spacing: -.025em;
  text-decoration: none;
}
.primary-link:active { background: #0a178d; }

.sample {
  border: 1px solid var(--rule);
  border-radius: .35rem;
  background: var(--panel);
  padding: clamp(.85rem, 2.25vw, 1.85rem);
}
.sample-wave { display: block; width: 100%; height: clamp(1.8rem, 3.5vw, 2.5rem); }
.sample-transcript {
  margin: .85rem 0 .65rem;
  padding: 0;
  border-top: 1px solid var(--rule);
  list-style: none;
  font-size: clamp(.92rem, 1.32vw, 1.18rem);
  font-weight: 550;
  line-height: 1.45;
}
.sample-transcript li {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: baseline;
  gap: clamp(.55rem, 1.5vw, 1.3rem);
  padding-block: .46rem;
  border-bottom: 1px solid var(--rule);
}
.sample-transcript time { color: var(--accent); font-size: .86em; font-variant-numeric: tabular-nums; }
.sample figcaption { color: var(--muted); font-size: .88rem; line-height: 1.4; }

.section { border-top: 1.5px solid var(--ink); scroll-margin-top: 1rem; }
.section h2 {
  font-size: clamp(2rem, 2.91vw, 2.8rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.052em;
}
.compare { padding-block: 1.15rem 1.9rem; }
.filters, .filter-options { display: flex; flex-wrap: wrap; align-items: center; }
.filters { gap: .2rem .75rem; justify-content: space-between; padding-block: .65rem .7rem; }
.filter-options { gap: .15rem .45rem; }
@media (scripting: enabled) {
  .filters[hidden] { display: flex !important; visibility: hidden; }
}
.filters button {
  cursor: pointer;
  min-block-size: 2.75rem;
  padding: .4rem .64rem;
  border: 1px solid transparent;
  border-radius: .26rem;
  background: transparent;
  color: var(--ink);
  font-size: clamp(.92rem, 1.22vw, 1.15rem);
  font-weight: 650;
}
.filters button:active { background: var(--panel); }
.filters button[aria-pressed="true"] { color: var(--accent); background: var(--accent-pale); border-color: var(--accent); }
#filter-status { color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; }

@media (hover: hover) and (pointer: fine) {
  .primary-link:hover { background: #0c1cbb; }
  .filters button[aria-pressed="false"]:hover { border-color: var(--rule); }
}

@media (prefers-reduced-motion: no-preference) {
  .primary-link, .filters button { transition: transform 140ms cubic-bezier(.23, 1, .32, 1); }
  .primary-link:active:not(:focus-visible), .filters button:active:not(:focus-visible) { transform: scale(.97); }
}

table { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: left; }
.tool-column { width: 24.6%; }
.site-column { width: 21.1%; }
th, td {
  padding: .58rem .7rem;
  border-bottom: 1px solid var(--rule);
  font-size: clamp(.94rem, 1.26vw, 1.2rem);
  line-height: 1.42;
  overflow-wrap: anywhere;
}
thead th { background: var(--panel); }
th { font-weight: 700; font-size: clamp(.98rem, 1.35vw, 1.3rem); }
td a { display: inline-flex; align-items: center; min-block-size: 2.75rem; font-weight: 620; }
.product-preview { max-inline-size: 50rem; margin-block-start: 1.5rem; scroll-margin-top: 1rem; }
.product-preview-logo { display: block; inline-size: 6.1rem; block-size: auto; margin-block: .8rem; }
.product-preview-image { display: block; }
.product-preview-image img { display: block; inline-size: 100%; block-size: auto; border-radius: .35rem; }
.use-cases, .method { padding-block: .95rem 1.25rem; }
.use-cases ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem clamp(1rem, 3.2vw, 3rem);
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.use-cases li { border-top: 1px solid var(--rule); padding-top: .6rem; }
.use-cases h3 { font-size: clamp(1.13rem, 1.67vw, 1.6rem); line-height: 1.2; }
.use-cases h3 a { display: inline-flex; align-items: center; min-block-size: 2.75rem; }
.use-cases p { max-width: 35ch; line-height: 1.5; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3.2vw, 3rem);
  margin: .93rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li { counter-increment: step; }
.steps h3 {
  display: flex;
  gap: .75rem;
  align-items: baseline;
  margin-bottom: .4rem;
  font-size: clamp(1.13rem, 1.67vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: 1.15;
}
.steps h3::before { content: counter(step) "."; color: var(--accent); font-size: 1.15em; }
.steps p { max-width: 20rem; font-size: clamp(.96rem, 1.24vw, 1.17rem); line-height: 1.32; letter-spacing: -.019em; }
.guide-link { margin-top: .65rem; font-size: .95rem; font-weight: 650; }
.site-footer { border-top: 1.5px solid var(--ink); }
.footer-main { min-height: 3.55rem; padding-inline: .3rem; }
.site-footer .brand { font-size: 1.35rem; gap: .86rem; }
.site-footer nav { font-size: .99rem; }
.editorial-note { max-width: 52rem; margin-block: 0 1.15rem; font-size: .88rem; line-height: 1.45; }

.guide-main { padding-block: 2.25rem 2rem; }
.guide-content { max-width: 70ch; margin-inline: auto; }
.breadcrumb { align-items: center; flex-wrap: wrap; gap: 0 .5rem; color: var(--muted); font-size: .9rem; }
.breadcrumb a { color: var(--accent); text-decoration: underline; }
.guide-content h1 { margin-block: .45rem .75rem; font-size: clamp(2.45rem, 5vw, 4.2rem); line-height: .98; letter-spacing: -.06em; font-weight: 700; text-wrap: balance; }
.guide-intro { max-width: 60ch; font-size: 1.2rem; line-height: 1.5; }
.guide-figure { margin-block: 1.55rem 0; }
.guide-figure img { display: block; width: 100%; height: auto; border-radius: .35rem; }
.guide-figure figcaption, .product-preview figcaption { margin-block-start: .55rem; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.guide-section { border-top: 1px solid var(--ink); margin-top: 1.8rem; padding-top: 1.05rem; scroll-margin-top: 1rem; }
.guide-section h2 { margin-bottom: .7rem; font-size: clamp(1.55rem, 3vw, 2rem); letter-spacing: -.045em; line-height: 1.13; font-weight: 700; }
.guide-section p, .guide-section li { margin-block: .4rem; line-height: 1.55; }
.guide-section ul, .guide-section ol { padding-inline-start: 1.5rem; }
.guide-section ol li + li { margin-top: .7rem; }
.guide-section ol li::marker { color: var(--accent); font-weight: 700; }
.guide-content a { overflow-wrap: anywhere; }
.guide-definitions { margin-block: .8rem 1rem; }
.guide-definitions div { border-bottom: 1px solid var(--rule); padding-block: .68rem; }
.guide-definitions dt { font-weight: 700; }
.guide-definitions dd { margin: .28rem 0 0; line-height: 1.55; }
.guide-note { margin-block: 1rem; padding: .65rem .9rem; border-inline-start: .18rem solid var(--accent); background: var(--panel); }
.guide-code {
  padding: .75rem .9rem;
  border: 1px solid var(--rule);
  border-radius: .35rem;
  background: var(--panel);
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.subtitle-tool { padding: 1rem; border: 1px solid var(--rule); border-radius: .35rem; }
.subtitle-tool label { display: block; font-weight: 700; }
.subtitle-tool textarea {
  display: block;
  inline-size: 100%;
  margin-block: .45rem .8rem;
  padding: .65rem;
  border: 1px solid var(--muted);
  border-radius: .26rem;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
  resize: vertical;
}
.subtitle-tool .primary-link { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.subtitle-tool [aria-invalid="true"] { border-color: #a22a27; }
#subtitle-status { font-weight: 650; }
#subtitle-result { margin-block-start: .8rem; }

@media (max-width: 760px) {
  .shell { width: calc(100% - 2.25rem); }
  .site-header { padding-inline: 0; }
  .site-header nav { gap: .7rem; font-size: .94rem; }
  .brand { font-size: 1.4rem; gap: .56rem; }
  .brand img { width: 29px; height: auto; }
  .intro { grid-template-columns: 1fr; gap: 1.35rem; padding-block: 1.55rem; }
  .intro h1 { max-inline-size: 15ch; font-size: clamp(2.65rem, 9vw, 4.3rem); }
  .steps, .use-cases ul { grid-template-columns: 1fr; gap: 1.06rem; }
  .steps p { max-width: none; }
  .guide-link { margin-top: .95rem; }
}

@media (max-width: 420px) {
  .shell { width: calc(100% - 1.5rem); }
  th, td { padding-inline: .35rem; font-size: .88rem; }
  .tool-column { width: 6.5rem; }
  .site-column { width: 23%; }
  .footer-main { flex-wrap: wrap; row-gap: .35rem; padding-block: .55rem; }
}

