:root {
  --face: #1f2427;
  --accent: #1ea7ff;
  --font: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* updated every frame by hero.js */
  --ink: #e8ecef;
  --brand-opacity: 0;
  --hint-opacity: 1;
  --caption-opacity: 0;
  --caption-shift: 24px;

  --page-bg: #f0f4f5;
  --page-ink: #16191c;
  --muted: #5d676e;
  --line: rgba(22, 25, 28, 0.12);
}

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

html {
  background: var(--page-bg);
  color: var(--page-ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
}

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

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

a {
  color: inherit;
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(16px, 3vw, 32px) clamp(20px, 4vw, 56px);
  color: var(--ink);
  pointer-events: none;
}

.site-header > * {
  pointer-events: auto;
}

.site-header.is-on-dark {
  color: #e8ecef;
}

.site-header__brand {
  opacity: var(--brand-opacity);
  transition: opacity 0.2s linear;
}

.site-header__brand img {
  width: auto;
  height: clamp(24px, 3vw, 34px);
}

.site-header__nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(14px, 2.2vw, 32px);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-header__nav a {
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.lang {
  display: inline-flex;
  gap: 8px;
  margin-left: 4px;
  padding-left: 14px;
  border-left: 1px solid currentColor;
}

.site-header__nav .lang a {
  opacity: 0.4;
  letter-spacing: 0.08em;
}

.site-header__nav .lang a[aria-current="page"] {
  opacity: 1;
}

.site-header__nav a:hover,
.site-header__nav a:focus-visible {
  opacity: 1;
}

.site-header .site-header__quote {
  display: none;
}

/* Hero */

.hero {
  position: relative;
  height: 380vh;
  background: var(--face);
}

.hero__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  contain: strict;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__hint {
  position: absolute;
  left: 50%;
  bottom: clamp(24px, 6vh, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #e8ecef;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: var(--hint-opacity);
  transform: translateX(-50%);
}

.hero__hint-line {
  position: relative;
  width: 1px;
  height: 48px;
  overflow: hidden;
  background: rgba(232, 236, 239, 0.2);
}

.hero__hint-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  animation: hint-drop 2.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes hint-drop {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

.hero__caption {
  position: absolute;
  left: 50%;
  bottom: clamp(28px, 9vh, 96px);
  width: min(90vw, 720px);
  color: var(--ink);
  text-align: center;
  opacity: var(--caption-opacity);
  transform: translate(-50%, var(--caption-shift));
}

.hero__eyebrow {
  margin: 0 0 8px;
  font-size: clamp(0.7rem, 1.2vw, 0.85rem);
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.7;
}

.hero__title {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
}

/* Content */

.section {
  padding: clamp(96px, 16vh, 180px) 0;
}

.section__inner {
  width: min(100% - 40px, 1120px);
  margin: 0 auto;
}

.section__eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.section__title {
  max-width: 18ch;
  margin: 0 0 24px;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.1;
}

.section__lead {
  max-width: 56ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 300;
  line-height: 1.7;
}

.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: clamp(56px, 10vh, 96px) 0 0;
  border-top: 1px solid var(--line);
}

.specs__item {
  padding: 28px 24px 0 0;
}

.specs dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.specs dd {
  margin: 0;
  font-size: 1.25rem;
}

.section--tight {
  padding-top: clamp(48px, 8vh, 96px);
}

.section__title--wide {
  max-width: 24ch;
}

/* Benefits */

.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: clamp(40px, 7vh, 72px) 0 0;
  padding: 0;
  list-style: none;
}

.benefit {
  padding: 32px 28px 36px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.benefit__num {
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
}

.benefit__title,
.compare__col h3,
.step h3 {
  margin: 20px 0 12px;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
}

.benefit p,
.compare__col p,
.step p {
  margin: 0;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.65;
}

.benefits--three {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.benefits--three .benefit__title {
  margin-top: 0;
}

.benefit .benefit__source {
  margin-top: 16px;
  font-size: 0.8rem;
}

.benefit__source a,
.evidence figcaption a {
  color: inherit;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

/* Evidence (studies) */

.evidence {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: clamp(40px, 7vh, 72px);
}

.evidence__item {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 32px 28px;
  border-top: 2px solid var(--accent);
  background: #fff;
  border-radius: 0 0 20px 20px;
}

.evidence__figure {
  margin: 0 0 16px;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

.evidence blockquote {
  flex: 1;
  margin: 0 0 24px;
  font-size: 1.02rem;
  line-height: 1.6;
}

.evidence figcaption {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

/* Software */

.tech {
  padding: clamp(96px, 16vh, 160px) 0;
  background: var(--face);
  color: #e8ecef;
}

.tech .section__lead {
  color: rgba(232, 236, 239, 0.72);
}

.tech__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  margin: clamp(48px, 8vh, 80px) 0 0;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(232, 236, 239, 0.1);
  list-style: none;
}

.tech__item {
  padding: 32px 28px 36px;
  background: var(--face);
}

.tech__item h3 {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
}

.tech__item p {
  margin: 0;
  color: rgba(232, 236, 239, 0.72);
  font-weight: 300;
  line-height: 1.65;
}

/* Digital ID */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.note {
  max-width: 52ch;
  margin: 28px 0 0;
  padding: 16px 20px;
  border-left: 2px solid var(--accent);
  background: rgba(30, 167, 255, 0.07);
  font-size: 0.92rem;
  line-height: 1.6;
}

.dni-visual__motion,
.dni-visual__still {
  display: block;
  width: min(100%, 360px);
  height: auto;
  margin: 0 auto;
}

.dni-visual__still {
  display: none;
}

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

/* PMS and installation */

.install {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(36px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
}

.install .section__title {
  margin-bottom: 0;
}

.install__points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.install__points li {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(30, 167, 255, 0.1);
  color: #0b5f94;
  font-size: 0.85rem;
  font-weight: 600;
}

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

/* Statement (full-bleed; .statement__media can hold a looping background video) */

.statement {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(84vh, 820px);
  padding: clamp(96px, 16vh, 160px) 0;
  overflow: hidden;
  background: var(--face);
  color: #e8ecef;
}

.statement__media {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 115%, rgba(30, 167, 255, 0.22), transparent 70%);
}

.statement__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.statement .section__inner {
  position: relative;
}

.statement__text {
  max-width: 17ch;
  margin: 0;
  font-size: clamp(2.2rem, 5.6vw, 4.8rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.statement__text span {
  display: block;
  color: var(--accent);
}

/* Comparison */

.compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: clamp(40px, 7vh, 72px);
}

.compare__col {
  padding: 32px 28px 36px;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.compare__col h3 {
  margin-top: 0;
}

.compare__col--romai {
  border-color: transparent;
  background: var(--face);
  color: #e8ecef;
  box-shadow: 0 24px 60px rgba(31, 36, 39, 0.18);
}

.compare__col--romai h3 {
  color: var(--accent);
}

.compare__col--romai p {
  color: rgba(232, 236, 239, 0.78);
}

/* How it works */

.howto {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin-top: clamp(40px, 7vh, 72px);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 0 0 32px 64px;
  counter-increment: step;
}

.step:last-child {
  padding-bottom: 0;
}

.step::before {
  content: counter(step);
  position: absolute;
  top: -2px;
  left: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}

.step h3 {
  margin-top: 4px;
  margin-bottom: 6px;
}

.howto__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #e7eaec;
}

.howto__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

/* FAQ */

.faq {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin: clamp(40px, 7vh, 72px) 0 0;
}

.faq__item {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  padding: 0 28px;
}

.faq__item summary {
  padding: 22px 0;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item p {
  margin: 0;
  padding: 0 0 22px;
  color: var(--muted);
  line-height: 1.7;
}

.faq.is-collapsed .faq__item:nth-child(n + 4) {
  display: none;
}

.faq__more {
  margin-top: 28px;
}

.faq__more[hidden] {
  display: none;
}

/* Call to action */

.cta {
  padding: clamp(96px, 16vh, 160px) 0;
  background: var(--face);
  color: #e8ecef;
  text-align: center;
}

.cta .section__title,
.cta .section__lead {
  margin-right: auto;
  margin-left: auto;
}

.cta .section__lead {
  margin-bottom: 40px;
  color: rgba(232, 236, 239, 0.7);
}

.button {
  display: inline-block;
  padding: 16px 32px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #04121c;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(30, 167, 255, 0.35);
}

.button--ghost {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--page-ink);
  color: var(--page-ink);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  box-shadow: inset 0 0 0 1px var(--page-ink), 0 12px 32px rgba(22, 25, 28, 0.12);
}

.contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 36px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.contact a {
  color: rgba(232, 236, 239, 0.8);
  text-decoration: none;
  transition: color 0.2s;
}

.contact a:hover,
.contact a:focus-visible {
  color: var(--accent);
}

/* Pricing */

.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  max-width: 880px;
  margin-top: clamp(40px, 7vh, 72px);
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px 36px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
}

.plan--featured {
  border-color: var(--face);
  background: var(--face);
  color: #e8ecef;
}

.plan__badge {
  position: absolute;
  top: 40px;
  right: 36px;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #04121c;
  font-size: 0.72rem;
  font-weight: 600;
}

.plan__name {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.plan__for {
  margin: 6px 0 28px;
  color: var(--muted);
  font-size: 0.92rem;
}

.plan--featured .plan__for,
.plan--featured .plan__unit,
.plan--featured .plan__fee,
.plan--featured .plan__features {
  color: rgba(232, 236, 239, 0.72);
}

.plan__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 0;
}

.plan__amount {
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

.plan__unit {
  color: var(--muted);
  font-size: 0.85rem;
}

.plan__fee {
  margin: 12px 0 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.plan__fee b {
  color: var(--accent);
  font-size: 1.15rem;
}

.plan--featured .plan__fee {
  border-color: rgba(232, 236, 239, 0.14);
}

.plan__features {
  flex: 1;
  margin: 0 0 36px;
  padding: 0;
  color: var(--muted);
  line-height: 1.5;
  list-style: none;
}

.plan__features li {
  position: relative;
  padding-left: 26px;
}

.plan__features li + li {
  margin-top: 12px;
}

.plan__features li::before {
  content: "";
  position: absolute;
  top: 0.35em;
  left: 2px;
  width: 10px;
  height: 6px;
  border: solid var(--accent);
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}

.plan .button {
  align-self: flex-start;
}

.pricing__note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.plan:nth-child(2) {
  transition-delay: 0.08s;
}

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.benefit:nth-child(2),
.compare__col:nth-child(2),
.step:nth-child(2) {
  transition-delay: 0.08s;
}

.benefit:nth-child(3),
.compare__col:nth-child(3),
.step:nth-child(3) {
  transition-delay: 0.16s;
}

.benefit:nth-child(4),
.tech__item:nth-child(4) {
  transition-delay: 0.24s;
}

.evidence__item:nth-child(2),
.tech__item:nth-child(2) {
  transition-delay: 0.08s;
}

.evidence__item:nth-child(3),
.tech__item:nth-child(3) {
  transition-delay: 0.16s;
}

/* 360° viewer */

.viewer {
  padding: clamp(64px, 10vh, 120px) 0 clamp(48px, 8vh, 96px);
}

.viewer__stage {
  position: relative;
  height: min(78vh, 760px);
  min-height: 420px;
  margin-top: clamp(16px, 4vh, 40px);
  overflow: hidden;
  cursor: grab;
  user-select: none;
}

.viewer__stage:active {
  cursor: grabbing;
}

.viewer__poster,
.viewer__canvas {
  position: absolute;
  transition: opacity 0.8s ease;
}

.viewer__poster {
  top: 50%;
  left: 50%;
  width: auto;
  height: 76%;
  max-width: none;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.viewer__canvas {
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.viewer__stage.is-ready .viewer__canvas {
  opacity: 1;
}

.viewer__stage.is-ready .viewer__poster {
  opacity: 0;
}

.viewer__hint {
  position: absolute;
  left: 50%;
  bottom: 12px;
  margin: 0;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transform: translateX(-50%);
  transition: opacity 0.4s;
  pointer-events: none;
}

.viewer__stage.is-interacted .viewer__hint {
  opacity: 0;
}

.site-footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer img {
  width: auto;
  height: 28px;
  margin-bottom: 16px;
}

.site-footer p {
  margin: 0;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.site-footer__title {
  margin: 0 0 16px;
  color: var(--page-ink);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__links li + li {
  margin-top: 10px;
}

.site-footer a {
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--page-ink);
}

.site-footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
}

@media (max-width: 760px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__grid > :first-child {
    grid-column: 1 / -1;
  }
}

/* Legal pages */

.page-legal {
  --ink: var(--page-ink);
  --brand-opacity: 1;
}

.page-legal .site-header {
  position: absolute;
}

.legal {
  padding: clamp(120px, 18vh, 180px) 0 clamp(64px, 10vh, 120px);
}

.legal .section__inner {
  max-width: 760px;
}

.legal h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
}

.legal__updated {
  margin: 0 0 48px;
  color: var(--muted);
  font-size: 0.85rem;
}

.legal h2 {
  margin: 40px 0 12px;
  font-size: 1.15rem;
  font-weight: 600;
}

.legal p,
.legal li {
  color: #3d464c;
  line-height: 1.75;
}

.legal ul {
  padding-left: 20px;
}

.legal a {
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.legal mark {
  padding: 0 4px;
  border-radius: 4px;
  background: #fff3b0;
}

@media (max-width: 600px) {
  body:not(.page-legal) .site-header {
    background: #fff;
    color: var(--page-ink);
    opacity: var(--brand-opacity);
    transform: translateY(0);
    transition: transform 0.28s ease, opacity 0.2s linear;
    box-shadow: 0 1px 0 rgba(22, 25, 28, 0.08);
  }

  body:not(.page-legal) .site-header > * {
    pointer-events: none;
  }

  body:not(.page-legal) .site-header.is-ready:not(.is-hidden) > * {
    pointer-events: auto;
  }

  body:not(.page-legal) .site-header.is-hidden {
    transform: translateY(-110%);
  }

  body:not(.page-legal) .site-header__brand {
    opacity: 1;
  }

  body:not(.page-legal) .site-header__nav {
    display: none;
  }

  .site-header .site-header__quote {
    display: inline-block;
    padding: 10px 14px;
    font-size: 0.72rem;
    line-height: 1.15;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__hint-line::after {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .dni-visual__motion {
    display: none;
  }

  .dni-visual__still {
    display: block;
  }
}

/* Lead form */

.lead {
  width: min(440px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: #fff;
  color: var(--page-ink);
  box-shadow: 0 24px 80px rgba(4, 18, 28, 0.28);
}

.lead::backdrop {
  background: rgba(4, 18, 28, 0.62);
}

.lead__form {
  position: relative;
  max-height: calc(100vh - 32px);
  padding: 36px 32px 28px;
  overflow: auto;
}

.lead__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--page-ink);
  cursor: pointer;
}

.lead__close:hover,
.lead__close:focus-visible {
  background: rgba(22, 25, 28, 0.06);
}

.lead__eyebrow {
  margin: 0 48px 14px 0;
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.lead__progress {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.lead__progress span {
  width: 36px;
  height: 3px;
  border-radius: 999px;
  background: var(--line);
}

.lead__progress span.is-on {
  background: var(--accent);
}

.lead__title {
  margin: 0 0 8px;
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lead__text {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.5;
}

.lead__field {
  margin-bottom: 14px;
}

.lead__field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 600;
}

.lead__field input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7f9fa;
  color: var(--page-ink);
  font: inherit;
  font-size: 1.05rem;
}

.lead__field input:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
  background: #fff;
}

.lead__phone {
  display: flex;
  gap: 8px;
}

.lead__prefix {
  display: flex;
  flex: 0 0 84px;
  align-items: center;
  padding: 14px 10px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7f9fa;
}

.lead__prefix:focus-within {
  outline: 2px solid var(--accent);
  border-color: transparent;
  background: #fff;
}

.lead__plus {
  color: var(--page-ink);
  font-size: 1.35rem;
  line-height: 1.2;
}

.lead__prefix input {
  width: 4ch;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.lead__prefix input:focus {
  outline: none;
  background: transparent;
}

.lead__phone-number {
  flex: 1;
  min-width: 0;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.lead__error {
  margin: 6px 0 0;
  color: #9c3b3b;
  font-size: 0.82rem;
  line-height: 1.4;
}

.lead__error:empty {
  display: none;
}

.lead__check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 6px 0 8px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.lead__check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.lead__check a {
  color: inherit;
}

.lead .button {
  width: 100%;
  margin-top: 12px;
  text-align: center;
}

.button:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
  box-shadow: none;
}

.lead__back {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.lead__back:hover,
.lead__back:focus-visible {
  color: var(--page-ink);
}

.lead__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 600px) {
  .lead__form {
    padding: 32px 22px 22px;
  }

  .lead__title {
    font-size: 1.45rem;
  }
}
