/* Nariffy landing — light theme, editorial + audio SaaS */

:root {
  color-scheme: light;
  --paper: #f6f4ef;
  --ink: #1a2233;
  --amber: #d9a441;
  --signal: #5b7fff;
  --sage: #c7d1c2;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --font-body: "Spectral", "Georgia", "Times New Roman", serif;
  --font-heading: "Inter Tight", system-ui, -apple-system, sans-serif;
  --shadow-soft: 0 24px 80px rgba(26, 34, 51, 0.08);
  --shadow-lift: 0 12px 40px rgba(26, 34, 51, 0.12);
  --header-h: 72px;
  --bg: var(--paper);
  --bg-muted: #ebe7de;
  --surface: #ffffff;
  --surface-2: #f0ece4;
  --text: var(--ink);
  --text-muted: rgba(26, 34, 51, 0.62);
  --border: rgba(26, 34, 51, 0.08);
  --grain-opacity: 0.04;
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --duration-air: 0.85s;
  --duration-glide: 0.65s;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

a {
  color: var(--signal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: var(--grain-opacity);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.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, 3rem);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

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

.brand:hover {
  text-decoration: none;
  opacity: 0.88;
}

.brand__logo {
  height: clamp(26px, 3.5vw, 32px);
  width: auto;
  display: block;
  border-radius: 0;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--signal);
  color: #fff;
  box-shadow: 0 10px 28px rgba(91, 127, 255, 0.35);
}

.btn--primary:hover {
  box-shadow: 0 14px 36px rgba(91, 127, 255, 0.45);
}

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

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

.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3rem) 0;
  overflow: clip;
  background: #f6f4ef;
}

.hero__glow,
.hero__grid {
  display: none;
}

.hero__inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
}

.hero__top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.hero__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
}

.hero__cta {
  width: 100%;
}

.hero__cta .btn {
  width: 100%;
  justify-content: center;
}

.eyebrow {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.eyebrow--section {
  margin-bottom: 0.5rem;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 4.6vw, 3.35rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
  max-width: 14ch;
}

.hero__lead {
  margin: 0;
  width: 100%;
  max-width: none;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.55vw, 1.1rem);
  line-height: 1.48;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.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;
  min-height: min(624px, 86.4vh);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

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

.hero-slide__cover-panel {
  position: relative;
  min-height: 504px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  overflow: hidden;
}

.hero-slide__cover-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(1.08);
}

.hero-slide__cover-panel--1 .hero-slide__cover-bg {
  background-image: radial-gradient(120% 100% at 20% 0%, rgba(217, 164, 65, 0.45), transparent 55%),
    radial-gradient(90% 90% at 100% 100%, rgba(91, 127, 255, 0.55), transparent 50%), url("assets/gr2.jpg");
}

.hero-slide__cover-panel--2 .hero-slide__cover-bg {
  background-image: radial-gradient(100% 90% at 0% 100%, rgba(199, 209, 194, 0.5), transparent 55%),
    radial-gradient(80% 80% at 100% 0%, rgba(91, 127, 255, 0.4), transparent 50%), url("assets/gr1.jpg");
}

.hero-slide__cover-panel--3 .hero-slide__cover-bg {
  background-image: url("assets/gr4.jpg");
  background-size: cover;
  background-position: center center;
}

.hero-slide__cover-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 17, 21, 0.08), rgba(15, 17, 21, 0.22));
  pointer-events: none;
}

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

.hero-cover__img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(15, 17, 21, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-cover__img:not([src]),
.hero-cover__img[src=""] {
  display: none;
}

.hero-cover:has(.hero-cover__img[src]:not([src=""])) .hero-cover__placeholder {
  display: none;
}

.hero-cover__placeholder {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1.1rem;
  border-radius: 12px;
  background: rgba(246, 244, 239, 0.82);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 20px 50px rgba(15, 17, 21, 0.2);
  text-align: left;
}

@keyframes hero-play-pulse {
  0%,
  100% {
    box-shadow: 0 8px 24px rgba(91, 127, 255, 0.45), 0 0 0 0 rgba(91, 127, 255, 0.35);
  }
  50% {
    box-shadow: 0 12px 32px rgba(91, 127, 255, 0.55), 0 0 0 10px rgba(91, 127, 255, 0);
  }
}

.hero-cover__play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.35rem;
  height: 3.35rem;
  margin-bottom: 0.35rem;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  background: var(--signal);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(91, 127, 255, 0.45);
  animation: hero-play-pulse 2.4s ease-in-out infinite;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-cover__play:hover {
  transform: scale(1.08);
  background: color-mix(in srgb, var(--signal) 88%, #fff);
}

.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: 2rem;
  height: 2rem;
}

.hero-cover__play-icon svg circle {
  stroke: rgba(255, 255, 255, 0.9);
}

.hero-cover__play-icon svg path {
  fill: #fff;
}

.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__play.is-playing {
  animation: none;
}

.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__placeholder-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  line-height: 1.25;
  color: var(--ink);
}

.hero-cover__placeholder-author {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-slide__text-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 504px;
  max-height: 504px;
  padding: clamp(1.35rem, 3vw, 2rem);
  background: var(--surface);
  overflow: hidden;
}

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

.hero-slide__book {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

.hero-slide__chapter {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}

.hero-slide__excerpt {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 0.35rem;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.62;
  scrollbar-width: thin;
  scrollbar-color: rgba(26, 34, 51, 0.22) transparent;
}

.hero-slide__excerpt::-webkit-scrollbar {
  width: 6px;
}

.hero-slide__excerpt::-webkit-scrollbar-thumb {
  background: rgba(26, 34, 51, 0.22);
  border-radius: 999px;
}

.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: center;
  justify-self: center;
  margin-top: calc(clamp(6.75rem, 21%, 8.25rem) + 80px);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  pointer-events: none;
}

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

.hero-showcase__btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: rgba(26, 34, 51, 0.88);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform 0.2s, background 0.2s;
}

.hero-showcase__btn:hover {
  transform: translateY(-1px);
  background: var(--ink);
}

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

.hero-showcase__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(246, 244, 239, 0.45);
  cursor: pointer;
  transition: width 0.25s, background 0.25s;
}

.hero-showcase__dot.is-active {
  width: 22px;
  background: #fff;
}

@media (max-width: 960px) {
  .hero__top {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .hero__title {
    max-width: none;
  }

  .hero__lead {
    max-width: none;
  }

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

  .hero-slide__cover-panel {
    min-height: 360px;
  }

  .hero-slide__text-panel {
    min-height: 432px;
    max-height: none;
  }

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

  .hero-showcase__controls {
    margin-top: calc(clamp(7.5rem, 30vw, 9.5rem) + 80px);
  }
}

.section {
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.25rem, 4vw, 3rem);
}

.section__inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section__header {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.section__header--tight {
  margin-bottom: 1.75rem;
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.section__title--block {
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
}

.section__subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.metrics {
  background: var(--bg);
  margin-top: -100px;
  padding-top: clamp(1.05rem, 2.8vw, 1.95rem);
  position: relative;
  z-index: 2;
}

.metrics .section__inner {
  max-width: 1240px;
}

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

.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.metric-card__value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--signal);
}

.metric-card__label {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* How it works — tabbed layout */
.how__inner {
  max-width: 1240px;
}

.how__header {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.how__title {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
  max-width: 26ch;
}

.how__lead {
  margin: 0;
  width: 100%;
  max-width: none;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.55vw, 1.1rem);
  line-height: 1.48;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.how__workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.how__aside {
  min-width: 0;
  width: 100%;
  justify-self: end;
}

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

.how__tab {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--ink) 42%, transparent);
  transition: color 0.35s var(--ease-soft), background 0.35s var(--ease-soft),
    border-color 0.35s var(--ease-soft), transform 0.35s var(--ease-soft),
    box-shadow 0.35s var(--ease-soft);
}

.how__tab:hover {
  color: var(--signal);
  background: color-mix(in srgb, var(--signal) 8%, transparent);
  border-color: color-mix(in srgb, var(--signal) 18%, transparent);
}

.how__tab.is-active {
  color: var(--signal);
  background: color-mix(in srgb, var(--signal) 14%, #fff);
  border-color: color-mix(in srgb, var(--signal) 28%, transparent);
  box-shadow: 0 8px 24px rgba(91, 127, 255, 0.12);
  transform: translateX(4px);
}

.how__icon {
  flex-shrink: 0;
  display: inline-flex;
  color: currentColor;
  opacity: 0.85;
}

.how__label {
  line-height: 1.3;
}

.how__stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  padding: 0;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 2px solid #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}

.how__panel {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity var(--duration-glide) var(--ease-premium),
    transform var(--duration-glide) var(--ease-premium),
    visibility var(--duration-glide);
  z-index: 0;
}

.how__panel.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  z-index: 1;
}

.how__panel-card.is-entering {
  animation: howPanelEnter 0.8s var(--ease-premium) both;
}

@keyframes howPanelEnter {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.how__panel-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: none;
  border-radius: 0;
  overflow: hidden;
}

.how__media {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  background: #fff;
  overflow: hidden;
}

.how__shot {
  width: 100%;
  height: 100%;
  max-height: none;
  display: block;
  border-radius: 20px 20px 0 0;
  object-fit: cover;
  object-position: right top;
}

.how__panel-copy {
  display: block;
  flex-shrink: 0;
  margin: 0;
  padding: clamp(1.15rem, 2.2vw, 1.5rem) clamp(1.35rem, 2.8vw, 2rem) clamp(1.35rem, 2.8vw, 1.75rem);
  background: #fff;
  border-top: 1px solid var(--border);
}

.how__panel-title {
  margin: 0 0 0.45rem;
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}

.how__panel-desc {
  margin: 0;
  max-width: 56ch;
  color: var(--text-muted);
  font-size: clamp(0.95rem, 1.35vw, 1.03rem);
  line-height: 1.55;
}

.how__cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: calc(2.5rem + 20px);
}

.how__cta-wrap .btn {
  min-width: min(100%, 560px);
  padding-inline: 3.5rem;
}

/* Comparison table */
.compare {
  background: var(--bg);
}

.compare__inner {
  max-width: 1240px;
}

.compare__header {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.compare__title {
  margin: 0;
  max-width: 14ch;
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--ink);
}

.compare__lead {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.55vw, 1.1rem);
  line-height: 1.48;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
  -webkit-hyphens: auto;
}

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

.compare__table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  border-spacing: 0;
}

.compare__table thead tr {
  border-bottom: none;
}

.compare__table tbody tr {
  border-bottom: 1px dotted color-mix(in srgb, var(--ink) 22%, transparent);
}

.compare__table tbody tr:last-child {
  border-bottom: none;
}

.compare__th,
.compare__cell,
.compare__row-label {
  padding: clamp(1.1rem, 2.2vw, 1.45rem) clamp(0.75rem, 2vw, 1.25rem);
  text-align: left;
  vertical-align: top;
  font-size: clamp(0.92rem, 1.35vw, 1.02rem);
  line-height: 1.45;
}

.compare__th {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  padding-top: 0;
}

.compare__th--label {
  width: 22%;
}

.compare__th--muted,
.compare__cell--muted {
  color: color-mix(in srgb, var(--ink) 48%, transparent);
  font-weight: 500;
}

.compare__row-label {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--ink);
  width: 22%;
}

.compare__th--brand {
  color: var(--signal);
  font-weight: 600;
}

.compare__cell--brand {
  color: var(--ink);
  font-weight: 600;
}

/* Advantages — three cards */
.audience {
  background: var(--bg);
  padding-bottom: clamp(6rem, 16vw, 11rem);
}

.audience__inner {
  max-width: 1240px;
}

.advantages__title {
  margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
  max-width: 20ch;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-align: left;
  color: var(--ink);
}

.advantages__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.advantage-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1.25rem, 2.5vw, 1.5rem);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.advantage-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--ink);
  opacity: 0.72;
}

.advantage-card__icon svg {
  display: block;
}

.advantage-card__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}

.advantage-card__text {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(0.98rem, 1.35vw, 1.05rem);
  line-height: 1.58;
}

@media (max-width: 960px) {
  .how__header {
    grid-template-columns: 1fr;
  }

  .how__title,
  .how__lead {
    max-width: none;
  }

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

  .how__aside {
    justify-self: stretch;
  }

  .how__nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }

  .how__tab {
    width: auto;
    padding: 0.55rem 0.75rem;
  }

  .how__tab.is-active {
    transform: none;
  }

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

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

  .compare__title {
    max-width: none;
  }

  .cta__text {
    max-width: 100%;
  }
}

.cta {
  position: relative;
  padding-block: clamp(4rem, 10vw, 6rem);
}

.cta__bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/gr6.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cta__inner {
  position: relative;
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 880px) {
  .cta__inner {
    grid-template-columns: 1fr minmax(280px, 400px);
    align-items: start;
  }
}

.cta__copy {
  width: fit-content;
  max-width: 100%;
}

.cta__copy .section__title {
  color: #fff;
  max-width: 100%;
}

.cta__title-nowrap {
  white-space: nowrap;
}

.cta__text {
  margin: 0;
  width: 100%;
  max-width: 70%;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.55vw, 1.1rem);
  line-height: 1.48;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.cta-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lift);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.field__label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.35;
}

.field__input {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field__input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--signal) 55%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 22%, transparent);
}

.field__input.is-invalid {
  border-color: #e85d5d;
  box-shadow: 0 0 0 3px rgba(232, 93, 93, 0.22);
}

.field__input.is-invalid:focus {
  border-color: #e85d5d;
  box-shadow: 0 0 0 3px rgba(232, 93, 93, 0.28);
}

select.field__input {
  cursor: pointer;
}

.cta-form__note {
  min-height: 1.25rem;
  margin: 0;
  font-size: 0.9rem;
  color: var(--amber);
}

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

/* Mobile & tablet — metrics: full-width stack */
/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(5px);
  transition: opacity var(--duration-air) var(--ease-premium),
    transform var(--duration-air) var(--ease-premium),
    filter var(--duration-air) var(--ease-premium);
  transition-delay: var(--reveal-delay, 0s);
}

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

[data-reveal-delay="1"] {
  --reveal-delay: 0.1s;
}

[data-reveal-delay="2"] {
  --reveal-delay: 0.2s;
}

@media (max-width: 1024px) {
  .metrics__list {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }

  .metric-card {
    width: 100%;
    min-width: 0;
  }

  .metric-card__label {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

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

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

  .how__panel {
    transition: none;
  }
}
