/* PizzaVox — minimal black on white, dark-blue accent. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/vendor/fonts/inter/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/vendor/fonts/inter/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --bg-elev: #ffffff;
  --fg: #0b0b0d;
  --fg-soft: #55565c;
  --fg-faint: #8a8b91;
  --line: #e6e6ea;
  --line-strong: #cfd0d6;
  --accent: #1e3a8a;
  --accent-strong: #172c69;
  --accent-soft: #e8edfa;
  --accent-fg: #ffffff;
  --ok: #157347;
  --err: #b42318;
  --btn-bg: #0b0b0d;
  --btn-fg: #ffffff;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px rgb(0 0 0 / 0.04);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0d;
    --bg-soft: #151518;
    --bg-elev: #151518;
    --fg: #f4f4f5;
    --fg-soft: #a6a7ad;
    --fg-faint: #75767c;
    --line: #26262b;
    --line-strong: #3a3a41;
    --accent: #8fb0ff;
    --accent-strong: #b3caff;
    --accent-soft: #17213d;
    --accent-fg: #0b0b0d;
    --ok: #4ade80;
    --err: #f87171;
    --btn-bg: #f4f4f5;
    --btn-fg: #0b0b0d;
    --shadow: none;
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  font-weight: 750;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
}

h3 {
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.icon {
  width: 24px;
  height: 24px;
  flex: none;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 10;
  background: var(--btn-bg);
  color: var(--btn-fg);
  padding: 8px 14px;
  border-radius: 999px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ------------------------------------------------------------ header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.04em;
}
.logo__mark {
  width: 34px;
  height: 34px;
}
.logo__word span {
  color: var(--accent);
}
.logo--small {
  font-size: 1.2rem;
}
.logo--small .logo__mark {
  width: 28px;
  height: 28px;
}

.site-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.site-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--fg-soft);
  padding: 8px 12px;
  border-radius: 999px;
}
.site-nav a:hover {
  color: var(--fg);
  background: var(--bg-soft);
}
.site-nav a[aria-current="page"] {
  color: var(--fg);
  background: var(--bg-soft);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.85rem;
  border: 1px solid var(--line-strong);
  padding: 6px 12px;
  border-radius: 999px;
}
.lang-switch .icon {
  width: 16px;
  height: 16px;
}
.lang-switch:hover {
  border-color: var(--fg);
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }
  .lang-switch {
    margin-left: auto;
  }
}

/* ----------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.btn:hover {
  opacity: 0.88;
}
.btn:active {
  transform: scale(0.98);
}
.btn[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}
.btn .icon {
  width: 20px;
  height: 20px;
}
.btn--accent {
  background: var(--accent);
  color: var(--accent-fg);
}
.btn--ghost {
  background: transparent;
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn--ghost:hover {
  box-shadow: inset 0 0 0 1px var(--fg);
  opacity: 1;
}
.btn--small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.9rem;
}

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--fg-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-btn:hover {
  color: var(--fg);
}

/* -------------------------------------------------------------- home */

.hero {
  padding: clamp(48px, 9vw, 110px) 20px clamp(40px, 6vw, 72px);
  text-align: center;
}
.hero__logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  margin-bottom: 28px;
}
.hero__logo .icon {
  width: clamp(56px, 10vw, 80px);
  height: clamp(56px, 10vw, 80px);
}
.hero h1 {
  max-width: 15em;
  margin: 0 auto 0.4em;
}
.hero__lead {
  max-width: 36em;
  margin: 0 auto 2em;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--fg-soft);
}
.hero__privacy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 650;
  font-size: 0.92rem;
}
.hero__privacy .icon {
  width: 18px;
  height: 18px;
}

.section {
  padding-block: clamp(40px, 7vw, 80px);
}
.section__head {
  max-width: 40em;
  margin-bottom: 32px;
}
.section__head p {
  color: var(--fg-soft);
}
.section--soft {
  background: var(--bg-soft);
}

/* tool cards */
.tool-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 720px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }
}
.tool-grid > li {
  display: flex;
}
.tool-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.tool-card:hover {
  border-color: var(--fg);
}
.tool-card:hover .tool-card__arrow {
  transform: translateX(4px);
  color: var(--fg);
}
.tool-card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
}
.tool-card__icon .icon {
  width: 28px;
  height: 28px;
}
.tool-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.tool-card__name {
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.015em;
}
.tool-card__desc {
  color: var(--fg-soft);
  font-size: 0.95rem;
  line-height: 1.45;
}
.tool-card__arrow {
  color: var(--fg-faint);
  transition: transform 0.15s ease, color 0.15s ease;
}

/* trust badges — identical size by construction */
.badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 16px;
}
@media (max-width: 720px) {
  .badges {
    grid-template-columns: 1fr;
  }
}
.badge {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--line);
}
.badge__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--btn-bg);
  color: var(--btn-fg);
}
.badge h3 {
  margin: 6px 0 0;
  font-size: 1.3rem;
}
.badge p {
  margin: 0;
  color: var(--fg-soft);
}

/* counter */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: stretch;
  gap: 16px;
}
@media (max-width: 720px) {
  .stats {
    grid-template-columns: 1fr;
  }
}
.stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 44px);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
}
.stat--accent {
  background: var(--accent);
  color: var(--accent-fg);
}
.stat__num {
  font-size: clamp(2.8rem, 8vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  margin-top: 12px;
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 24em;
}

/* steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: step;
}
@media (max-width: 720px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
.steps li {
  counter-increment: step;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 700;
  font-size: 0.95rem;
}
.steps h3 {
  margin-bottom: 6px;
}
.steps p {
  margin: 0;
  color: var(--fg-soft);
}

/* faq */
.faq {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 40px 20px 0;
  font-weight: 650;
  font-size: 1.05rem;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--fg-soft);
}
.faq details[open] summary::after {
  content: "−";
}
.faq details > div {
  padding: 0 0 20px;
  color: var(--fg-soft);
  max-width: 46em;
}
.faq details > div p:last-child {
  margin: 0;
}

/* ---------------------------------------------------------- tool page */

.tool-hero {
  padding: clamp(36px, 6vw, 64px) 0 24px;
  text-align: center;
}
.tool-hero__icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  border-radius: 18px;
  background: var(--accent-soft);
  color: var(--accent);
}
.tool-hero__icon .icon {
  width: 32px;
  height: 32px;
}
.tool-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}
.tool-hero p {
  max-width: 34em;
  margin: 0 auto;
  color: var(--fg-soft);
  font-size: 1.1rem;
}

.panel {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 32px);
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  box-shadow: var(--shadow);
}

.privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px auto 0;
  color: var(--fg-soft);
  font-size: 0.9rem;
  text-align: center;
}
.privacy-note .icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

/* drop zone */
.drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 220px;
  padding: 32px 20px;
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.drop:hover,
.drop.is-over {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.drop__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
}
.drop__title {
  font-weight: 700;
  font-size: 1.15rem;
}
.drop__hint {
  color: var(--fg-soft);
  font-size: 0.92rem;
}

/* selected file row */
.file-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}
.file-row__icon {
  color: var(--accent);
}
.file-row__meta {
  flex: 1;
  min-width: 0;
}
.file-row__name {
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-row__size {
  color: var(--fg-soft);
  font-size: 0.88rem;
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--fg-soft);
  cursor: pointer;
}
.icon-btn:hover {
  background: var(--line);
  color: var(--fg);
}
.icon-btn .icon {
  width: 18px;
  height: 18px;
}

/* form controls */
.options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 20px 0;
}
@media (max-width: 560px) {
  .options {
    grid-template-columns: 1fr;
  }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field--full {
  grid-column: 1 / -1;
}
.field > label,
.field > .field__label {
  font-weight: 600;
  font-size: 0.9rem;
}
.field__hint {
  color: var(--fg-soft);
  font-size: 0.85rem;
}
select,
input[type="text"],
input[type="number"] {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 1rem;
}
select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8b91' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}
select:focus,
input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  cursor: pointer;
}
.check input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}

/* segmented control (radio pills) */
.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: var(--bg-soft);
}
.segmented label {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 8px;
  border-radius: 10px;
  font-weight: 650;
  font-size: 0.95rem;
  text-align: center;
  cursor: pointer;
  color: var(--fg-soft);
}
.segmented label small {
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--fg-faint);
}
.segmented input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.segmented label:has(input:checked) {
  background: var(--bg-elev);
  color: var(--fg);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.12);
}
.segmented label:has(input:focus-visible) {
  outline: 2px solid var(--accent);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.actions--center {
  justify-content: center;
}
.actions .btn {
  flex: 1 1 auto;
}

/* ------------------------------------------- progress (sound-wave bars) */

.progress {
  padding: 8px 0;
  text-align: center;
}
.wavebar {
  --p: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 64px;
  margin: 0 auto 16px;
  max-width: 360px;
}
.wavebar i {
  flex: 1;
  max-width: 8px;
  height: calc(var(--h) * 1%);
  min-height: 6px;
  border-radius: 99px;
  background: var(--line-strong);
  transition: background 0.25s ease;
}
.wavebar i.on {
  background: var(--accent);
}
.wavebar.is-busy i {
  animation: bounce 1.1s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.07s);
}
@keyframes bounce {
  0%,
  100% {
    transform: scaleY(0.55);
  }
  50% {
    transform: scaleY(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .wavebar.is-busy i {
    animation: none;
  }
}
.progress__pct {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.progress__label {
  color: var(--fg-soft);
  margin: 4px 0 0;
}
.progress__detail {
  color: var(--fg-faint);
  font-size: 0.88rem;
  margin: 4px 0 0;
}
.progress .actions {
  margin-top: 16px;
}

/* messages */
.alert {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--err) 10%, transparent);
  color: var(--err);
  font-size: 0.95rem;
  margin: 16px 0 0;
}
.alert--info {
  background: var(--accent-soft);
  color: var(--accent);
}
.alert p {
  margin: 0;
}

/* result */
.result__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.result__ok {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-fg);
}
.result__ok .icon {
  width: 22px;
  height: 22px;
}
.result__title {
  font-weight: 700;
  font-size: 1.15rem;
}
.result__meta {
  color: var(--fg-soft);
  font-size: 0.9rem;
}
.result audio {
  width: 100%;
  margin: 4px 0 20px;
}

.transcript {
  width: 100%;
  min-height: 260px;
  max-height: 60vh;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 1rem;
  line-height: 1.6;
  resize: vertical;
  margin-bottom: 16px;
}
.live-text {
  max-height: 180px;
  overflow: auto;
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--fg-soft);
  font-size: 0.92rem;
  text-align: left;
}
.live-text:empty {
  display: none;
}

/* trim editor */
.trim-wave {
  position: relative;
  height: 140px;
  margin: 20px 0 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  touch-action: none;
  user-select: none;
}
.trim-wave canvas {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}
.trim-sel {
  position: absolute;
  top: 0;
  bottom: 0;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border-left: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  pointer-events: none;
}
.trim-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28px;
  margin-left: -14px;
  cursor: ew-resize;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  background: transparent;
}
.trim-handle::before {
  content: "";
  width: 12px;
  height: 36px;
  border-radius: 6px;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--bg);
}
.trim-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--fg);
  pointer-events: none;
  display: none;
}
.trim-times {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin: 16px 0 20px;
}
.trim-times .field input {
  font-variant-numeric: tabular-nums;
}
.trim-length {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.trim-length strong {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 560px) {
  .trim-times {
    grid-template-columns: 1fr 1fr;
  }
  .trim-length {
    grid-column: 1 / -1;
  }
}

/* SEO content under the tool */
.tool-content {
  max-width: 760px;
  margin: 0 auto;
}
.tool-content h2:not(:first-child) {
  margin-top: 1.6em;
}
.tool-content h2:first-child {
  margin-top: 0;
}
.tool-content .steps {
  grid-template-columns: 1fr;
}

.ad-slot {
  max-width: 760px;
  margin: 32px auto;
  min-height: 100px;
}

[hidden] {
  display: none !important;
}

/* ------------------------------------------------------- prose pages */

.prose-page {
  max-width: 780px;
  padding-top: clamp(36px, 6vw, 64px);
  padding-bottom: 64px;
}
.prose-page h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
}
.prose h2 {
  font-size: 1.35rem;
  margin-top: 2em;
}
.prose h3 {
  margin-top: 1.5em;
}
.prose p,
.prose li {
  color: var(--fg-soft);
}
.prose strong {
  color: var(--fg);
}
.prose a {
  color: var(--accent);
  text-underline-offset: 3px;
}
.prose ul {
  padding-left: 1.2em;
}
.prose li {
  margin-bottom: 0.4em;
}
.prose .updated {
  color: var(--fg-faint);
  font-size: 0.9rem;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1em 0 1.5em;
}
.prose th,
.prose td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.prose th {
  color: var(--fg);
}
.prose td {
  color: var(--fg-soft);
}
.prose-table {
  overflow-x: auto;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  margin: 1.5em 0;
}
.contact-card .icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
}
.contact-card a {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
}

.not-found {
  padding: clamp(60px, 12vw, 140px) 20px;
  text-align: center;
}
.not-found__code {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  height: 90px;
  margin-bottom: 28px;
}
.not-found__code i {
  width: 10px;
  border-radius: 99px;
  background: var(--line-strong);
}
.not-found__code i:nth-child(odd) {
  background: var(--accent);
}
.not-found p {
  color: var(--fg-soft);
  max-width: 30em;
  margin: 0 auto 1.6em;
}

/* ------------------------------------------------------------ footer */

.site-footer {
  margin-top: 40px;
  padding: 56px 0 32px;
  border-top: 1px solid var(--line);
  font-size: 0.93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
}
@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
.footer-brand p {
  margin-top: 14px;
  color: var(--fg-soft);
  max-width: 24em;
}
.site-footer h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-faint);
  font-weight: 650;
  margin-bottom: 14px;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li {
  margin-bottom: 8px;
}
.site-footer li a {
  text-decoration: none;
  color: var(--fg-soft);
}
.site-footer li a:hover {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.network .net,
.network .net a {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.net__name {
  font-weight: 650;
  color: var(--fg);
}
.net__tag {
  font-size: 0.8rem;
  color: var(--fg-faint);
}
.net--current .net__name {
  color: var(--accent);
}
.net--soon .net__name {
  color: var(--fg-faint);
  font-weight: 550;
}
.footer-bottom {
  margin: 40px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--fg-faint);
}
.footer-bottom a {
  color: inherit;
}

.section--flush {
  padding-block-start: 0;
}
.field--end {
  justify-content: flex-end;
  min-height: 48px;
}
.again {
  text-align: center;
  margin: 20px 0 0;
}
.actions--spaced {
  margin-top: 20px;
}
.alert + .alert {
  margin-top: 10px;
}
