/* Начитай landing — product UI design system */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-muted: #f5f5f5;
  --bg-featured: #fafafa;
  --ink: #151515;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --accent: #fc4b3d;
  --radius: 8px;
  --radius-sm: 6px;
  --font: "Roboto", system-ui, -apple-system, sans-serif;
  --header-h: 64px;
  --section-gap: clamp(3.5rem, 8vw, 6rem);
  --container: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.4s;
  --title-btn-gap: clamp(1.5rem, 3vw, 2rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* ── Header ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand:hover {
  opacity: 0.85;
}

.brand__logo {
  height: clamp(20px, 3vw, 24px);
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.2;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.btn--primary:hover {
  background: #2a2a2a;
  border-color: #2a2a2a;
}

.btn--secondary {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn--secondary:hover {
  background: var(--bg-muted);
  border-color: var(--ink);
}

.btn--on-dark.btn--primary {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.btn--on-dark.btn--primary:hover {
  background: #f0f0f0;
  border-color: #f0f0f0;
}

.btn--on-dark.btn--secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--on-dark.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn--block {
  width: 100%;
}

/* ── Layout ── */

.section {
  padding: var(--section-gap) clamp(1.25rem, 4vw, 2.5rem);
}

.section--surface-a {
  background: var(--bg);
}

.section--surface-b {
  background: var(--bg-muted);
}

.section__inner {
  max-width: var(--container);
  margin: 0 auto;
}

.section__title {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  max-width: 22ch;
}

.section__title--center {
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ── Hero ── */

.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 2.5rem) clamp(1.5rem, 3vw, 2rem);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  max-width: var(--container);
  margin: 0 auto;
}

.hero__title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 var(--title-btn-gap);
  max-width: 12ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__lead {
  margin: 0;
  padding-top: clamp(2rem, 4.5vw, 4rem);
  color: var(--text-muted);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.55;
  max-width: 36ch;
}

/* ── Audio Examples ── */

.audio-examples {
  padding-top: clamp(1rem, 2vw, 1.5rem);
  padding-bottom: 0;
}

.audio-examples__cta {
  display: flex;
  justify-content: center;
  margin-top: var(--title-btn-gap);
  margin-bottom: var(--section-gap);
}

/* ── Platform showcase ── */

.platform-showcase {
  padding-top: 0;
}

.platform-showcase__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.platform-showcase__header {
  max-width: 720px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.platform-showcase__title {
  font-size: clamp(1.75rem, 3.8vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
}

.platform-showcase__lead {
  margin: 0 auto;
  max-width: 52ch;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.6;
  color: var(--text-muted);
}

.platform-showcase__cta {
  display: flex;
  justify-content: center;
  margin-top: var(--title-btn-gap);
  width: 100%;
}

.platform-showcase__visual {
  margin: 0;
  width: 100%;
}

.platform-showcase__visual img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.hero-showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
}

.hero-showcase__viewport {
  grid-column: 1 / -1;
  grid-row: 1;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
}

.hero-slide.is-active {
  display: grid;
}

.hero-slide__cover-panel {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  padding-bottom: clamp(4.75rem, 10vw, 5.75rem);
  overflow: hidden;
  background: var(--bg-muted);
}

.hero-slide__cover-bg {
  display: none;
}

.hero-cover {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  width: min(240px, 82%);
}

.hero-cover__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: clamp(1rem, 2.5vw, 1.25rem);
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  text-align: center;
}

.hero-cover__img {
  display: block;
  width: min(132px, 100%);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.hero-cover__play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-top: 0.15rem;
  margin-bottom: 0.1rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  transition: opacity 0.15s;
}

.hero-cover__play:hover {
  opacity: 0.85;
}

.hero-cover__play:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.hero-cover__play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-cover__play-icon svg {
  display: block;
  width: 1.125rem;
  height: 1.125rem;
  margin-left: 2px;
}

.hero-cover__play.is-playing .hero-cover__play-icon svg {
  margin-left: 0;
}

.hero-cover__play-icon--pause {
  display: none;
}

.hero-cover__play.is-playing .hero-cover__play-icon--play {
  display: none;
}

.hero-cover__play.is-playing .hero-cover__play-icon--pause {
  display: flex;
}

.hero-cover__audio {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-cover__card-title {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}

.hero-cover__card-author {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.hero-slide__text-panel {
  display: flex;
  flex-direction: column;
  min-height: 480px;
  max-height: 480px;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--bg);
  border-left: 1px solid var(--border);
  overflow: hidden;
}

.hero-slide__meta {
  margin-bottom: 0.75rem;
}

.hero-slide__book {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-slide__author {
  margin: 0.2rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-slide__chapter {
  margin: 0 0 1rem;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero-slide__excerpt {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.35rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink);
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.hero-slide__excerpt p {
  margin: 0 0 0.85rem;
}

.hero-slide__excerpt p:last-child {
  margin-bottom: 0;
}

.hero-showcase__controls {
  grid-column: 1;
  grid-row: 1;
  z-index: 6;
  align-self: end;
  justify-self: center;
  margin-top: 0;
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  pointer-events: none;
}

.hero-showcase__controls > * {
  pointer-events: auto;
}

.hero-showcase__btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  transition: background 0.15s, border-color 0.15s;
}

.hero-showcase__btn:hover {
  background: var(--bg-muted);
  border-color: var(--border-strong);
}

.hero-showcase__btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.hero-showcase__dots {
  display: flex;
  gap: 0.35rem;
}

.hero-showcase__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--border-strong);
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.hero-showcase__dot.is-active {
  background: var(--ink);
  transform: scale(1.15);
}

/* ── Comparison ── */

.comparison__inner {
  max-width: var(--container);
}

.comparison__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison__table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: fixed;
}

.comparison__table th,
.comparison__table td {
  padding: clamp(0.85rem, 1.75vw, 1.15rem) clamp(0.75rem, 1.5vw, 1.25rem);
  text-align: left;
  vertical-align: top;
  font-size: 0.9375rem;
  line-height: 1.55;
  border-bottom: 1px dotted var(--border-strong);
}

.comparison__table thead th {
  border-bottom: 1px dotted var(--border-strong);
  padding-bottom: clamp(1rem, 2vw, 1.35rem);
}

.comparison__table tbody tr:last-child th,
.comparison__table tbody tr:last-child td {
  border-bottom: none;
}

.comparison__table-corner {
  width: 22%;
}

.comparison__table-head {
  width: 26%;
  font-weight: 700;
  color: var(--text-muted);
}

.comparison__table-head--brand {
  color: var(--ink);
}

.comparison__table-label {
  font-weight: 700;
  color: var(--ink);
}

.comparison__table-muted {
  color: var(--text-muted);
}

.comparison__table-highlight {
  color: var(--ink);
  font-weight: 400;
}

.comparison__logo {
  height: clamp(18px, 2.5vw, 22px);
  width: auto;
  display: block;
}

/* ── How it works ── */

.how__inner {
  max-width: var(--container);
}

.how__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: 2.5rem;
}

.step {
  display: flex;
  flex-direction: column;
}

.step__media {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 1.25rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-muted);
  cursor: zoom-in;
  text-align: left;
  transition: border-color 0.15s, opacity 0.15s;
}

.step__media:hover {
  border-color: var(--border-strong);
}

.step__media:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.step__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

.step__zoom {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--ink);
  pointer-events: none;
}

.step__num {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.step__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.step__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.how__cta-wrap {
  display: flex;
  justify-content: center;
}

/* ── Features / Advantages ── */

.features__inner {
  max-width: var(--container);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
}

.feature {
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2rem);
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.feature:nth-child(2n) {
  border-right: none;
}

.feature:nth-last-child(-n + 2) {
  border-bottom: none;
}

.feature__num {
  display: none;
}

.feature__title {
  font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.feature__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 40ch;
}

/* ── Economics / Metrics ── */

.economics__inner {
  max-width: var(--container);
  text-align: center;
}

.metrics__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
}

.metric__value {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
  max-width: 14ch;
  text-align: center;
}

.metric__label {
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 20ch;
}

.metric__value--text {
  display: none;
}

/* ── FAQ ── */

.faq__inner {
  max-width: 720px;
}

.faq__list {
  border-top: 1px solid var(--border);
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  transition: color 0.15s;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question:hover {
  color: var(--text-muted);
}

.faq__question:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.faq__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform 0.2s var(--ease);
}

.faq__icon::before {
  top: 50%;
  left: 2px;
  right: 2px;
  height: 1.5px;
  margin-top: -0.75px;
}

.faq__icon::after {
  left: 50%;
  top: 2px;
  bottom: 2px;
  width: 1.5px;
  margin-left: -0.75px;
}

.faq__item[open] .faq__icon::after {
  transform: scaleY(0);
}

.faq__answer {
  padding: 0 0 1.25rem;
}

.faq__answer p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 60ch;
}

/* ── CTA ── */

.cta {
  background: var(--ink);
  color: #fff;
  padding-block: clamp(4rem, 10vw, 6rem);
}

.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.cta__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.cta__text {
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
  max-width: 42ch;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ── Partner Modal ── */

.partner-modal {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  max-width: 440px;
  width: calc(100% - 2rem);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.partner-modal::backdrop {
  background: rgba(21, 21, 21, 0.4);
}

.partner-modal__inner {
  position: relative;
  padding: 2rem;
}

.partner-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.partner-modal__close:hover {
  background: var(--bg-muted);
}

.partner-modal__close:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.partner-modal__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
}

.partner-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.field__input {
  font: inherit;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.15s;
}

.field__input:focus {
  outline: none;
  border-color: var(--ink);
}

.field__input.is-invalid {
  border-color: var(--accent);
}

select.field__input,
.field__input--select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding-right: 2.5rem;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23151515' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 12px;
}

.field__select-wrap {
  display: block;
  width: 100%;
}

.field--select .field__input {
  min-height: 2.75rem;
}

select.field__input {
  cursor: pointer;
}

/* ── Step lightbox ── */

.step-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(21, 21, 21, 0.72);
}

.step-lightbox.is-open {
  display: flex;
}

.step-lightbox__panel {
  position: relative;
  width: 50vw;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 3rem);
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
}

.step-lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.15s, border-color 0.15s;
}

.step-lightbox__nav:hover {
  background: var(--bg-muted);
  border-color: var(--border-strong);
}

.step-lightbox__nav:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.step-lightbox__nav--prev {
  left: 0.75rem;
}

.step-lightbox__nav--next {
  right: 0.75rem;
}

.step-lightbox__counter {
  position: absolute;
  left: 50%;
  bottom: 0.75rem;
  z-index: 2;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.25rem 0.65rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.step-lightbox__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.step-lightbox__close:hover {
  background: var(--bg-muted);
}

.step-lightbox__close:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.step-lightbox__img {
  display: block;
  width: 100%;
  height: auto;
}

.partner-form__note {
  min-height: 1.25rem;
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ── Footer ── */

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem) 2rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.site-footer a:hover {
  color: var(--ink);
}

/* ── Scroll reveal ── */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-delay="1"] { --reveal-delay: 0.08s; }
[data-reveal-delay="2"] { --reveal-delay: 0.16s; }
[data-reveal-delay="3"] { --reveal-delay: 0.24s; }

/* ── Responsive ── */

@media (max-width: 960px) {
  .step-lightbox__panel {
    width: min(92vw, 640px);
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .hero__title {
    max-width: none;
  }

  .hero__lead {
    padding-top: 0;
    max-width: none;
  }

  .hero-slide {
    grid-template-columns: 1fr;
  }

  .hero-slide__cover-panel {
    min-height: 380px;
    padding-bottom: clamp(4.25rem, 9vw, 5rem);
  }

  .hero-cover {
    width: min(220px, 88%);
  }

  .hero-cover__img {
    width: min(120px, 100%);
  }

  .hero-slide__text-panel {
    min-height: auto;
    max-height: none;
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .hero-showcase {
    grid-template-columns: 1fr;
  }

  .hero-showcase__controls {
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
  }

  .comparison__table {
    min-width: 640px;
  }

  .comparison__table th,
  .comparison__table td {
    padding-inline: 0.65rem;
  }

  .how__steps {
    grid-template-columns: 1fr;
  }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .feature {
    border-right: none;
  }

  .feature:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

  .feature:last-child {
    border-bottom: none;
  }

  .metrics__list {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section__title {
    max-width: none;
  }

  .cta__actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

  .cta__actions .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .site-header .btn--sm {
    padding: 0.45rem 0.75rem;
    font-size: 0.8125rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
