/* Tokens */

:root {
  --cr-navy-950: #05081A;
  --cr-navy-900: #0A1030;
  --cr-navy-800: #141C4A;
  --cr-bg: #060A1C;
  --cr-bg-soft: #0C1230;
  --cr-indigo: #2A3B8F;
  --cr-cyan: #29B6D8;
  --cr-cyan-light: #7FE0F2;
  --cr-cyan-mid: #1B87A3;
  --cr-cyan-dark: #14748C;
  --cr-cyan-pale: #BDEFFA;
  --cr-cta: #FFA24D;
  --cr-cta-dark: #E8630A;

  --cr-cyan-deep: #0E5A6E;

  /* Channels for alpha variants: rgb(var(--x-rgb) / .5) */
  --cr-cyan-rgb: 41 182 216;
  --cr-cyan-light-rgb: 127 224 242;
  --cr-navy-950-rgb: 5 8 26;
  --cr-surface-rgb: 10 16 36;
  --text-rgb: 230 236 250;
  --shadow-rgb: 0 0 0;
  --white-rgb: 255 255 255;

  --text-primary: #F3F6FD;
  --text-muted: rgba(203, 214, 240, 0.62);
  --text-placeholder: rgb(var(--text-rgb) / 0.55);
  --cta-text: var(--cr-navy-950);

  --line-soft: rgb(var(--cr-cyan-rgb) / 0.18);
  --line: rgb(var(--cr-cyan-rgb) / 0.22);
  --line-strong: rgb(var(--cr-cyan-rgb) / 0.45);
  --glass-border: rgb(var(--cr-cyan-rgb) / 0.16);
  --focus-ring: 0 0 0 .2rem rgb(var(--cr-cyan-rgb) / 0.22);
  --shadow-lift: 0 14px 28px rgb(var(--shadow-rgb) / 0.45);

  --header-h: 49px;
}

/* Base */

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--cr-cyan) var(--cr-bg-soft);
}

::selection {
  background: var(--cr-cyan);
  color: #fff;
}

::-moz-selection {
  background: var(--cr-cyan);
  color: #fff;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--cr-bg-soft);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--cr-cyan), var(--cr-cyan-mid));
  border-radius: 99px;
  border: 2px solid var(--cr-bg-soft);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--cr-cyan-light), var(--cr-cyan));
}

::-webkit-scrollbar-corner {
  background: var(--cr-bg-soft);
}

body {
  font-family: 'Instrument Sans', 'Segoe UI', sans-serif;
  background: var(--cr-bg);
  color: var(--text-primary);
  overflow-x: hidden;
  padding-top: var(--header-h);
}

h1, h2, h3, h4,
.btn-orange,
.btn-secondary,
.btn-submit,
.step-pill {
  font-family: 'Bricolage Grotesque', 'Instrument Sans', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 8% 12%, rgb(var(--cr-cyan-rgb) / 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 45% at 94% 82%, rgba(28, 39, 96, 0.35) 0%, transparent 58%),
    radial-gradient(ellipse 90% 55% at 50% 105%, rgb(var(--cr-cyan-rgb) / 0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

section,
nav,
footer {
  position: relative;
  z-index: 1;
}

#hero,
#form {
  scroll-margin-top: var(--header-h);
}

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

.text-accent {
  color: var(--cr-cyan) !important;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--cr-cyan-light);
  outline-offset: 3px;
  box-shadow: none;
}

/* Header */

.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1030;
  background: linear-gradient(120deg, var(--cr-navy-900) 0%, var(--cr-navy-800) 100%);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 4px 22px rgb(var(--shadow-rgb) / 0.45);
  animation: headerSlideDown .5s ease both;
}

@keyframes headerSlideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.sticky-header img {
  height: 44px;
}

.logo-sm {
  max-height: 2rem;
}

.px-1 {
  padding-right: 0.625rem !important;
  padding-left: 0.625rem !important;
}

.pointer {
  cursor: pointer;
}

/* Particles */

.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}

.ember {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: floatUp var(--dur, 7s) var(--delay, 0s) infinite ease-in;
  filter: blur(0.5px);
}

@keyframes floatUp {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0;
  }

  8% {
    opacity: var(--op, 0.45);
  }

  85% {
    opacity: var(--op, 0.25);
  }

  100% {
    transform: translateY(-115vh) translateX(var(--drift, 40px)) scale(0.15);
    opacity: 0;
  }
}

/* Form card */

.form-card {
  background: rgb(var(--cr-surface-rgb) / 0.50);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow:
    0 30px 80px rgb(var(--shadow-rgb) / 0.55),
    inset 0 1px 0 rgb(var(--white-rgb) / 0.05);
  animation: cardReveal .75s ease both;
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-card .form-header {
  padding: 2rem;
  text-align: center;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}

.form-card .form-body {
  padding: 2rem;
}

.form-card .form-control,
.form-card .form-select {
  border-radius: 10px;
  padding: .72rem 1rem;
  background: rgb(var(--white-rgb) / 0.05);
  border: 1.5px solid var(--line);
  color: var(--text-primary);
  font-size: .92rem;
  transition: all .25s ease;
}

.form-card .form-control::placeholder {
  color: var(--text-placeholder);
}

.form-card .form-control:focus,
.form-card .form-select:focus {
  background: rgb(var(--white-rgb) / 0.09);
  border-color: var(--cr-cyan);
  box-shadow: var(--focus-ring);
  color: var(--text-primary);
  outline: none;
}

.form-card label {
  font-weight: 600;
  font-size: .85rem;
  color: rgb(var(--text-rgb) / 0.85);
  margin-bottom: .4rem;
}

#etapa-2 #street,
#etapa-2 #street-label {
  display: block !important;
}

#carregandoCEP {
  font-size: .8rem;
  color: var(--text-muted) !important;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}

/* Phone country picker */

.phone-input-wrap {
  display: flex;
  align-items: stretch;
  background: rgb(var(--white-rgb) / 0.05);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  transition: all .25s ease;
  overflow: visible;
  position: relative;
}

.phone-input-wrap:focus-within {
  background: rgb(var(--white-rgb) / 0.09);
  border-color: var(--cr-cyan);
  box-shadow: var(--focus-ring);
}

.phone-input-wrap:has(.phone-number-input:invalid:not(:placeholder-shown)) { border-color: #dc3545; }

.phone-country { flex-shrink: 0; }

.phone-country-btn {
  display: flex;
  align-items: center;
  gap: .3rem;
  height: 100%;
  padding: 0 .7rem;
  min-height: 2.9rem;
  border: none;
  border-right: 1.5px solid var(--line);
  border-radius: 8.5px 0 0 8.5px;
  background: transparent;
  cursor: pointer;
  transition: background .18s;
  white-space: nowrap;
}

.phone-country-btn:hover { background: rgb(var(--cr-cyan-rgb) / 0.10); }

.phone-flag { width: 1.33em; height: 1em; font-size: 1.1rem; flex-shrink: 0; border-radius: 2px; }

.phone-ddi { font-size: .88rem; font-weight: 700; color: var(--text-primary); letter-spacing: .01em; }

.phone-caret { opacity: .5; color: var(--text-muted); transition: transform .2s ease; flex-shrink: 0; }

.phone-country-btn[aria-expanded="true"] .phone-caret { transform: rotate(180deg); }

.phone-fixed-prefix {
  display: flex;
  align-items: center;
  padding-left: 1rem;
  min-height: 2.9rem;
  font-size: .92rem;
  font-weight: 700;
  color: var(--cr-cyan-light);
  flex-shrink: 0;
  cursor: help;
  user-select: none;
}

.phone-fixed-prefix[hidden] { display: none; }

.phone-fixed-prefix:not([hidden]) + .phone-number-input { padding-left: .35rem; }

.phone-country-list {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  width: 300px;
  max-width: calc(100vw - 2rem);
  max-height: 280px;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 0;
  background: rgb(var(--cr-navy-950-rgb) / 0.97);
  border: 1.5px solid rgb(var(--cr-cyan-rgb) / 0.28);
  border-radius: 10px;
  box-shadow: 0 12px 24px rgb(var(--shadow-rgb) / 0.5);
  z-index: 200;
}

.phone-country-list.is-open { display: block; }

.pcl-search-item {
  position: sticky;
  top: 0;
  padding: .45rem .6rem;
  background: rgb(var(--cr-navy-950-rgb) / 0.98);
  border-bottom: 1px solid rgb(var(--white-rgb) / 0.08);
  border-radius: 10px 10px 0 0;
  z-index: 1;
}

.phone-country-search {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: .4rem;
  padding: .28rem .5rem;
  font: inherit;
  font-size: .83rem;
  color: var(--text-primary);
  background: rgb(var(--white-rgb) / 0.06);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.phone-country-search:focus {
  border-color: var(--cr-cyan);
  box-shadow: 0 0 0 .15rem rgb(var(--cr-cyan-rgb) / 0.22);
}

.phone-country-list--empty::after {
  content: "Sin resultados";
  display: block;
  padding: .6rem .85rem;
  font-size: .83rem;
  color: var(--text-muted);
}

.phone-country-list li {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .42rem .85rem;
  cursor: pointer;
  transition: background .14s;
}

.phone-country-list li:hover,
.phone-country-list li.is-active { background: rgb(var(--cr-cyan-rgb) / 0.16); }

.phone-country-list li[aria-selected="true"] { background: rgb(var(--cr-cyan-rgb) / 0.26); }

.pcl-flag { width: 1.33em; height: 1em; font-size: 1rem; flex-shrink: 0; border-radius: 2px; }
.pcl-name { flex: 1; font-size: .87rem; color: var(--text-primary); }
.pcl-ddi { font-size: .82rem; color: var(--text-muted); font-weight: 700; }

.phone-number-input {
  border: none !important;
  border-radius: 0 8.5px 8.5px 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  flex: 1;
  min-width: 0;
}

.phone-number-input:focus {
  box-shadow: none !important;
  border-color: transparent !important;
  background: transparent !important;
}

/* Buttons */

.btn-orange {
  --bs-btn-color: var(--cta-text);
  --bs-btn-hover-color: var(--cta-text);
  --bs-btn-active-color: var(--cta-text);
  --bs-btn-disabled-color: var(--cta-text);
  background: linear-gradient(135deg, var(--cr-cta), var(--cr-cta-dark));
  color: var(--cta-text);
  border: none;
  font-weight: 700;
  padding: 14px 36px;
  font-size: 1.05rem;
  border-radius: 10px;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
  text-transform: uppercase;
  letter-spacing: .5px;
  position: relative;
  overflow: hidden;
}

.btn-orange::before {
  content: '';
  position: absolute;
  top: 0;
  left: -110%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgb(var(--white-rgb) / 0.30), transparent);
  transition: left .5s ease;
}

.btn-orange:hover::before {
  left: 150%;
}

.btn-orange:hover {
  color: var(--cta-text);
  transform: translateY(-3px) scale(1.035);
  box-shadow: var(--shadow-lift);
}

.btn-secondary {
  background: rgb(var(--white-rgb) / 0.06) !important;
  border: 1px solid rgb(var(--white-rgb) / 0.18) !important;
  color: rgb(var(--text-rgb) / 0.82) !important;
  border-radius: 10px;
  transition: all .25s ease;
}

.btn-secondary:hover {
  background: rgb(var(--white-rgb) / 0.12) !important;
  color: #fff !important;
}

.btn-submit {
  padding: 16px;
  border-radius: 12px;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.btn-submit:not(:disabled):hover {
  color: var(--cta-text);
  transform: translateY(-3px) scale(1.035);
  box-shadow: var(--shadow-lift);
}

.btn-submit:disabled {
  opacity: .42;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Form steps */

.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-pill {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: rgb(var(--white-rgb) / 0.06);
  border: 2px solid rgb(var(--white-rgb) / 0.18);
  color: rgb(var(--text-rgb) / 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .3px;
  transition: all .35s ease;
}

.step-pill.active {
  background: linear-gradient(135deg, var(--cr-cyan-light), var(--cr-cyan));
  border-color: var(--cr-cyan-light);
  color: var(--cr-navy-950);
  box-shadow: 0 6px 14px rgb(var(--shadow-rgb) / 0.35), 0 0 0 3px rgb(var(--cr-cyan-light-rgb) / 0.25);
  transform: scale(1.14);
}

.step-pill.done {
  background: rgb(var(--cr-cyan-rgb) / 0.18);
  border-color: var(--cr-cyan);
  color: var(--cr-cyan-light);
}

.step-line {
  flex: 1;
  height: 2px;
  background: rgb(var(--white-rgb) / 0.14);
  transition: background .35s ease;
  max-width: 60px;
}

.step-line.done {
  background: var(--cr-cyan);
}

/* Checkbox + terms */

.terms-check {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  color: var(--text-muted);
}

/* Custom checkbox: box pops, then the check draws itself */
.terms-check-box {
  position: relative;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
}

.terms-check-box input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 6px;
  border: 1.5px solid var(--line-strong);
  background: rgb(var(--white-rgb) / 0.05);
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}

.terms-check-box input[type="checkbox"]:hover {
  border-color: var(--cr-cyan);
  background: rgb(var(--cr-cyan-rgb) / 0.1);
}

.terms-check-box input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--cr-cyan-light);
  outline-offset: 3px;
}

.terms-check-box input[type="checkbox"]:checked {
  background: var(--cr-cyan);
  border-color: var(--cr-cyan);
  animation: checkPop .35s cubic-bezier(.25, 1, .5, 1);
}

.terms-check-box svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  fill: none;
  stroke: var(--cr-navy-950);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 15;
  stroke-dashoffset: 15;
  transition: stroke-dashoffset .15s ease-in;
}

.terms-check-box input[type="checkbox"]:checked + svg {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset .3s cubic-bezier(.65, 0, .35, 1) .1s;
}

@keyframes checkPop {
  40% {
    transform: scale(.82);
  }

  100% {
    transform: scale(1);
  }
}

.terms-check-text {
  margin: 0;
  line-height: 1.5;
}

.form-card .terms-check label {
  font-weight: 400;
  font-size: inherit;
  color: inherit;
  margin: 0;
  cursor: pointer;
}

.btn-terms-toggle {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: inline;
  font: inherit;
  color: var(--cr-cyan);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-terms-toggle:hover {
  color: var(--cr-cyan-light);
}

/* Collapsible: grid rows 0fr → 1fr animates to the content's real height */
.row > .terms-content {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0;
  opacity: 0;
  visibility: hidden;
  font-size: 0.85em;
  transition:
    grid-template-rows .5s cubic-bezier(.4, 0, .2, 1),
    opacity .35s ease,
    visibility 0s linear .5s;
}

.row > .terms-content.terms-open {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  transition:
    grid-template-rows .5s cubic-bezier(.4, 0, .2, 1),
    opacity .4s ease .1s,
    visibility 0s;
}

/* Grid item that collapses to 0; the box's top margin collapses with it */
.terms-clip {
  min-height: 0;
  overflow: hidden;
}

/* The box clips its own scrollbar so it follows the rounded corners */
.terms-box {
  margin-top: 10px;
  overflow: hidden;
  background: rgb(var(--white-rgb) / 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
}

.terms-scroll {
  max-height: 180px;
  overflow-y: auto;
  padding: 15px;
  scrollbar-width: thin;
  scrollbar-color: rgb(var(--white-rgb) / 0.25) transparent;
}

.terms-scroll::-webkit-scrollbar {
  width: 6px;
}

.terms-scroll::-webkit-scrollbar-track {
  background: transparent;
  margin: 6px 0;
}

.terms-scroll::-webkit-scrollbar-thumb {
  background: rgb(var(--white-rgb) / 0.25);
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .row > .terms-content,
  .row > .terms-content.terms-open {
    transition: none;
  }
}

.terms-heading {
  font-size: 1em;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .5rem;
}

/* Print / digital choice */

.revista-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.revista-option {
  flex: 1;
  min-width: 180px;
  cursor: pointer;
  display: flex;
}

.revista-fieldset {
  border: 0;
  min-width: 0;
}

.revista-fieldset legend {
  float: none;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.5;
  color: rgb(var(--text-rgb) / 0.85);
}

.revista-option {
  position: relative;
}

.revista-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.revista-option input[type="radio"]:focus-visible + .revista-card {
  outline: 2px solid var(--cr-cyan-light);
  outline-offset: 3px;
}

.revista-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 2px solid rgb(var(--cr-cyan-rgb) / 0.20);
  background: rgb(var(--white-rgb) / 0.04);
  transition: border-color 0.2s, background 0.2s;
}

.revista-card svg {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  opacity: 0.7;
  color: rgb(var(--text-rgb) / 0.55);
  transition: opacity 0.2s, color 0.2s;
}

.revista-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.revista-titulo {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  color: rgb(var(--text-rgb) / 0.92);
  transition: color 0.2s;
}

.revista-texto {
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--text-muted);
  transition: color 0.2s;
}

.revista-option:hover .revista-card {
  border-color: rgb(var(--cr-cyan-rgb) / 0.5);
  background: rgb(var(--white-rgb) / 0.07);
}

.revista-option input[type="radio"]:checked + .revista-card {
  border-color: var(--cr-cyan);
  background: rgb(var(--cr-cyan-rgb) / 0.12);
}

.revista-option input[type="radio"]:checked + .revista-card svg {
  opacity: 1;
  color: var(--cr-cyan-light);
}

.revista-option input[type="radio"]:checked + .revista-card .revista-titulo {
  color: var(--cr-cyan-light);
}

.revista-option input[type="radio"]:checked + .revista-card .revista-texto {
  color: rgb(var(--text-rgb) / 0.75);
}

/* Selectric */

.selectric-wrapper {
  position: relative;
  cursor: pointer;
  width: 100%;
}

.selectric-wrapper.form-select {
  appearance: none !important;
  background-image: none !important;
  padding: 0 !important;
  border: none !important;
  height: auto !important;
  box-shadow: none !important;
  background-color: transparent !important;
}

.selectric-hide-select {
  position: absolute !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  width: 1px !important;
  height: 1px !important;
  z-index: -100 !important;
}

.selectric-hide-select select {
  opacity: 0 !important;
  display: none !important;
  position: absolute !important;
}

.selectric-input {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: none !important;
  outline: none !important;
  background: none !important;
  z-index: -100 !important;
}

.selectric {
  border-radius: 10px !important;
  border: 1.5px solid var(--line) !important;
  background: rgb(var(--white-rgb) / 0.05) !important;
  background-image: none !important;
  position: relative;
  transition: all .25s ease;
}

.selectric .label {
  padding: .72rem 1rem !important;
  font-size: .92rem !important;
  color: var(--text-primary) !important;
  height: auto !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  display: block;
  text-align: left;
}

.selectric-placeholder .selectric .label {
  color: var(--text-placeholder) !important;
}

.selectric .button {
  height: 100% !important;
  width: 40px !important;
  background: transparent !important;
  color: transparent !important;
  font-size: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  right: 0;
}

.selectric .button::after {
  content: none !important;
}

.selectric .button::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid rgb(var(--text-rgb) / 0.55);
}

.selectric-focus .selectric,
.selectric-open .selectric {
  border-color: var(--cr-cyan) !important;
  box-shadow: var(--focus-ring) !important;
  background: rgb(var(--white-rgb) / 0.09) !important;
}

.selectric-open .selectric .button::before {
  border-top: none;
  border-bottom: 5px solid rgb(var(--text-rgb) / 0.55);
}

.selectric-items {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  border-radius: 10px !important;
  border: 1.5px solid rgb(var(--cr-cyan-rgb) / 0.28) !important;
  box-shadow: 0 12px 24px rgb(var(--shadow-rgb) / 0.5) !important;
  background: rgb(var(--cr-navy-950-rgb) / 0.97) !important;
  margin-top: 4px !important;
  overflow: hidden;
  z-index: 999999 !important;
  isolation: auto;
}

.selectric-open .selectric-items {
  display: block !important;
}

.selectric-items .selectric-scroll {
  max-height: 250px;
  overflow-y: auto;
}

.selectric-items ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.selectric-items li {
  padding: .72rem 1rem !important;
  font-size: .92rem !important;
  color: rgb(var(--text-rgb) / 0.82) !important;
  border-bottom: 1px solid rgb(var(--white-rgb) / 0.06) !important;
  transition: background .2s ease, color .2s ease;
  text-align: left;
  cursor: pointer;
  display: block;
}

.selectric-items li:last-child {
  border-bottom: none !important;
}

.selectric-items li:hover,
.selectric-items li.highlighted {
  background: rgb(var(--cr-cyan-rgb) / 0.16) !important;
  color: var(--cr-cyan-light) !important;
}

.selectric-items li.selected {
  background: rgb(var(--cr-cyan-rgb) / 0.26) !important;
  color: var(--cr-cyan-light) !important;
}

.selectric-search-wrap {
  padding: 8px 10px;
  border-bottom: 1px solid rgb(var(--white-rgb) / 0.08);
  position: sticky;
  top: 0;
  background: rgb(var(--cr-navy-950-rgb) / 0.98);
  z-index: 1;
}

.selectric-search-input {
  width: 100%;
  background: rgb(var(--white-rgb) / 0.06);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: .85rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color .2s ease;
}

.selectric-search-input::placeholder {
  color: var(--text-placeholder);
}

.selectric-search-input:focus {
  border-color: var(--cr-cyan);
}

/* Footer */

.footer {
  background: var(--cr-bg-soft);
  border-top: 1px solid rgb(var(--white-rgb) / 0.08);
}

footer.footer {
  padding-top: 2.5rem !important;
  padding-bottom: 2.5rem !important;
}

.footer-text {
  color: rgb(var(--text-rgb) / 0.68);
}

.footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: rgb(var(--text-rgb) / 0.55);
  transition: color .2s ease;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--cr-cyan-light);
}

/* Scroll reveal + progress */

.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform-origin: 0 center;
  transform: scaleX(0);
  z-index: 2000;
  pointer-events: none;
  background: linear-gradient(90deg,
      var(--cr-indigo) 0%,
      var(--cr-cyan) 40%,
      var(--cr-cyan-mid) 72%,
      var(--cr-cyan-pale) 100%);
  opacity: 0;
}

@supports (animation-timeline: scroll()) {
  .scroll-progress {
    animation: sd-progress-fill linear both;
    animation-timeline: scroll(root);
  }

  @keyframes sd-progress-fill {
    from {
      transform: scaleX(0);
      opacity: 0;
    }

    1% {
      opacity: 1;
    }

    to {
      transform: scaleX(1);
      opacity: 1;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .scroll-progress {
      display: none;
    }
  }
}

@media (max-width: 767.98px) {
  footer.footer {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .form-card .form-header {
    padding: 1.5rem 1.25rem;
  }

  .form-card .form-body {
    padding: 1.5rem 1.25rem;
  }

  .selectric-items li {
    padding: .9rem 1rem !important;
  }

  .selectric-items .selectric-scroll {
    max-height: 200px;
  }
}

@media (max-width: 575.98px) {
  .btn-orange {
    padding: 12px 28px;
    font-size: .95rem;
  }

  .form-card .form-header,
  .form-card .form-body {
    padding: 1.25rem 1rem;
  }
}

@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 !important;
  }
}

/* Hero */

.hero-split {
  min-height: 640px;
  position: relative;
  overflow: hidden;
  z-index: 10;
  width: 100%;
}

.hero-inner {
  display: flex;
  max-width: 1280px;
  min-height: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-form-bg {
  position: relative;
  overflow-x: clip;
  background-color: var(--cr-navy-950);
}

.hero-form-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-form-backdrop::before {
  content: '';
  position: absolute;
  inset: -120px -40px;
  z-index: 0;
  background-image: url(../img/bg2.webp);
  filter: blur(6px);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  transform: translateY(var(--parallax-hero, 0px));
  will-change: transform;
  pointer-events: none;
}

.hero-form-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgb(var(--cr-navy-950-rgb) / 0.30) 0%, rgb(var(--cr-navy-950-rgb) / 0.50) 45%, rgb(var(--cr-navy-950-rgb) / 0.78) 100%);
  pointer-events: none;
}

.hero-split::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgb(var(--cr-navy-950-rgb) / 0.06) 0%, rgb(var(--cr-navy-950-rgb) / 0.30) 58%, rgb(var(--cr-navy-950-rgb) / 0.62) 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 65%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 65%, transparent 100%);
  pointer-events: none;
}

.hero-visual {
  flex: 0.85 1 0%;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}

.hero-copy {
  flex: 1.3 1 0%;
  position: relative;
  z-index: 2;
}

.hero-copy-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 3.5rem 3rem 5.5rem;
  box-sizing: border-box;
}

/* Hero clock */

.hero-clock {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 460px;
  height: 460px;
  opacity: .20;
  pointer-events: none;
  z-index: -1;
  transform-origin: center;
  animation: crClockIn 1.4s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes crClockIn {
  from {
    opacity: 0;
    transform: scale(.85);
  }
}

.hero-clock .clock-face-ring {
  fill: none;
  stroke: var(--cr-cyan-light);
  stroke-width: 1;
}

.hero-clock .clock-face-ring-inner {
  opacity: .5;
  stroke-width: .5;
}

.hero-clock .clock-ticks-min line {
  stroke: var(--cr-cyan-light);
  stroke-width: 1;
  opacity: .4;
}

.hero-clock .clock-ticks-hour line {
  stroke: var(--cr-cyan-light);
  stroke-width: 2.5;
  stroke-linecap: round;
  opacity: .75;
}

.hero-clock .clock-numerals text {
  fill: var(--cr-cyan-light);
  font-size: 22px;
  font-weight: 600;
}

.hero-clock .clock-hand {
  stroke: var(--cr-cyan-light);
  stroke-linecap: round;
}

.hero-clock .clock-hand-hour {
  stroke-width: 6;
}

.hero-clock .clock-hand-min {
  stroke-width: 4;
}

.hero-clock .clock-hand-sec {
  stroke-width: 1.75;
  opacity: .9;
  transform-box: view-box;
  transform-origin: 120px 120px;
  animation: crSecondSweep 18s linear infinite;
}

@keyframes crSecondSweep {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-clock,
  .hero-clock .clock-hand-sec {
    animation: none;
  }
}

.hero-clock .clock-hub-ring {
  fill: none;
  stroke: var(--cr-cyan-light);
  stroke-width: 1.5;
  opacity: .8;
}

.hero-clock .clock-hub {
  fill: var(--cr-cyan-light);
}

@media (max-width: 991.98px) {
  .hero-clock {
    width: 340px;
    height: 340px;
    top: -8%;
    left: -9%;
  }
}

@media (max-width: 575.98px) {
  .hero-clock {
    width: 240px;
    height: 240px;
    opacity: .16;
  }
}

/* Hero copy + mockups */

.hero-title {
  font-weight: 400;
  font-size: clamp(1.9rem, 1.1rem + 3vw, 2.75rem);
  line-height: 1.18;
  color: #fff;
  max-width: 22ch;
  margin: 0 0 1.1rem;
}

.hero-lead {
  color: rgba(238, 242, 252, 0.94);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 60ch;
  margin-bottom: .9rem;
}

.hero-title strong {
  font-weight: 800;
  color: var(--cr-cyan-light);
}

.hero-lead strong {
  font-weight: 700;
  color: #fff;
}

.hero-lead:last-of-type {
  margin-bottom: 1.5rem;
}

.hero-copy .btn-orange {
  align-self: flex-start;
}

.hero-stage-wrap {
  perspective: 1300px;
  position: relative;
  z-index: 2;
}

.hero-stage {
  position: relative;
  width: 320px;
  height: 430px;
  transform-style: preserve-3d;
  transition: transform .4s ease;
}

.hero-device {
  position: absolute;
  display: block;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.hero-device-revista {
  left: 6px;
  top: 8px;
  width: 232px;
  z-index: 1;
  filter: drop-shadow(0 30px 60px rgb(var(--shadow-rgb) / 0.5));
  animation: crFloatBook 7s ease-in-out infinite;
}

.hero-device-devices {
  right: -40px;
  bottom: -20px;
  width: 260px;
  z-index: 2;
  filter: drop-shadow(0 22px 44px rgb(var(--shadow-rgb) / 0.45));
  animation: crFloatPhone 6.5s ease-in-out infinite;
  animation-delay: -2s;
}

@media (min-width: 992px) {
  .hero-stage {
    width: 440px;
    height: 540px;
  }

  .hero-device-revista {
    left: 0;
    top: 10px;
    width: 350px;
  }

  .hero-device-devices {
    right: -30px;
    bottom: -10px;
    width: 336px;
  }
}

@keyframes crFloatBook {
  0%,
  100% {
    transform: rotate(-2deg) translateY(0);
  }

  50% {
    transform: rotate(-2deg) translateY(-10px);
  }
}

@keyframes crFloatPhone {
  0%,
  100% {
    transform: rotate(4deg) translateY(0);
  }

  50% {
    transform: rotate(4deg) translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-device-revista,
  .hero-device-devices {
    animation: none;
  }
}

@media (max-width: 991.98px) {
  .hero-split {
    min-height: auto;
  }

  .hero-inner {
    flex-direction: column;
    min-height: auto;
  }

  .hero-visual {
    min-height: 420px;
    padding: 3rem 0 2.5rem;
  }

  .hero-split::after {
    background:
      linear-gradient(180deg, transparent 0%, transparent 40%, rgb(var(--cr-navy-950-rgb) / 0.45) 75%, rgb(var(--cr-navy-950-rgb) / 0.45) 100%);
  }

  .hero-copy-content {
    padding: 0 1.75rem 3.25rem;
  }

  .hero-title,
  .hero-lead {
    max-width: none;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .hero-stage {
    width: 520px;
    height: 330px;
  }

  .hero-device-revista {
    left: 0;
    top: 16px;
    width: 280px;
  }

  .hero-device-devices {
    right: -10px;
    top: 34px;
    bottom: auto;
    width: 290px;
  }
}

@media (max-width: 575.98px) {
  .hero-stage {
    transform: scale(.82);
  }

  .hero-title {
    font-size: 1.8rem;
  }
}

/* Curriculum */

.curriculum-section {
  background: var(--cr-navy-800);
  padding: 5.5rem 0;
  position: relative;
  overflow: hidden;
  z-index: 5;
}

.curriculum-section .container {
  position: relative;
  z-index: 1;
}

.curriculum-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.curriculum-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgb(var(--white-rgb) / 0.05);
  color: var(--text-primary);
  font-size: 1.15rem;
  transition: border-color .2s ease, background-color .2s ease;
}

.curriculum-toggle:hover {
  border-color: var(--line-strong);
  background: rgb(var(--cr-cyan-rgb) / 0.12);
}

.curriculum-toggle[hidden],
.curriculum-toggle .bi-play-fill,
.curriculum-toggle.is-paused .bi-pause-fill {
  display: none;
}

.curriculum-toggle.is-paused .bi-play-fill {
  display: inline;
}

.curriculum-title {
  font-weight: 800;
  font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.4rem);
  line-height: 1.22;
  color: var(--text-primary);
  max-width: 32rem;
  margin: 0;
}

.curriculum-track-wrap {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.curriculum-track {
  overflow: hidden;
  padding: 1rem 0 2rem;
  cursor: grab;
  touch-action: pan-y;
}

.curriculum-track.is-dragging {
  cursor: grabbing;
}

.curriculum-track:focus-visible {
  outline: 2px solid var(--cr-cyan);
  outline-offset: 4px;
}

.curriculum-track-inner {
  display: flex;
  align-items: stretch;
  gap: 1.1rem;
  width: max-content;
  padding-left: clamp(2rem, 20vw, 14rem);
  will-change: transform;
  user-select: none;
}

.curriculum-edge {
  position: absolute;
  top: 0;
  bottom: 2rem;
  width: 64px;
  pointer-events: none;
  z-index: 2;
}

.curriculum-edge-l {
  left: 0;
  background: linear-gradient(90deg, var(--cr-navy-800) 0%, transparent 100%);
}

.curriculum-edge-r {
  right: 0;
  background: linear-gradient(270deg, var(--cr-navy-800) 0%, transparent 100%);
}

.curriculum-card {
  position: relative;
  flex: 0 0 auto;
  width: min(78vw, 300px);
  min-height: 172px;
  overflow: hidden;
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, rgba(20, 28, 74, 0.55) 0%, rgb(var(--cr-surface-rgb) / 0.75) 100%);
  border: 1px solid var(--line-soft);
  box-shadow: 0 12px 30px rgba(4, 8, 22, 0.25);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.curriculum-card:hover,
.curriculum-card:focus-within {
  transform: translateY(-6px);
  border-color: rgb(var(--cr-cyan-rgb) / 0.45);
  box-shadow: 0 18px 38px rgba(4, 8, 22, 0.32);
}

.curriculum-card-alt {
  background: linear-gradient(160deg, rgba(28, 39, 96, 0.55) 0%, rgb(var(--cr-surface-rgb) / 0.75) 100%);
}

.curriculum-card-ghost {
  position: absolute;
  top: -.5rem;
  right: .5rem;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 6.5rem;
  line-height: 1;
  color: rgb(var(--cr-cyan-rgb) / 0.10);
  pointer-events: none;
  user-select: none;
}

.curriculum-card-num {
  font-family: 'Bricolage Grotesque', 'Instrument Sans', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .06em;
  color: var(--cr-cyan-light);
  margin-bottom: .75rem;
}

.curriculum-card-text {
  color: rgb(var(--text-rgb) / 0.94);
  font-size: clamp(1.3rem, 1.1rem + 1.4vw, 1.55rem);
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: -.01em;
  margin: auto 0 0;
}

.curriculum-loop-divider {
  flex: 0 0 auto;
  align-self: stretch;
  width: 1px;
  margin-top: .5rem;
  background: linear-gradient(180deg,
      transparent 0%,
      rgb(var(--cr-cyan-rgb) / 0.5) 18%,
      rgb(var(--cr-cyan-rgb) / 0.5) 82%,
      transparent 100%);
}

.curriculum-cta {
  display: inline-block;
  margin-top: 1.25rem;
}

@media (min-width: 768px) {
  .curriculum-card {
    width: 320px;
    min-height: 210px;
    padding: 2rem 1.75rem;
  }

  .curriculum-track-inner {
    gap: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .curriculum-section {
    padding: 4rem 0;
  }

  .curriculum-title {
    max-width: none;
  }
}

/* Conversion row */

.conversion-row {
  background: transparent;
  border-top: 1px solid rgb(var(--white-rgb) / 0.12);
  padding: 4.5rem 0;
  position: relative;
  z-index: 6;
}

.conv-grid {
  display: grid;
  grid-template-columns: minmax(0, 600px) auto;
  justify-content: center;
  gap: 2.25rem;
  align-items: start;
}

.video-card-slot {
  display: flex;
}

.video-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 360px;
  border-radius: 18px;
  overflow: hidden;
  background: rgb(var(--cr-surface-rgb) / 0.45);
  border: 1px solid var(--line-soft);
  box-shadow: 0 24px 60px rgb(var(--shadow-rgb) / 0.5);
  z-index: 4;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #000;
  overflow: hidden;
}

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

.video-el {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 66px;
  height: 66px;
  border: 0;
  border-radius: 50%;
  background: rgb(var(--cr-cyan-rgb) / 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 10px 24px rgb(var(--shadow-rgb) / 0.35);
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease, background-color .3s ease;
}

.video-frame:hover .video-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgb(var(--cr-cyan-rgb) / 0.6);
  box-shadow: 0 14px 30px rgb(var(--shadow-rgb) / 0.45);
}

.video-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 9, 26, 0.05) 0%, transparent 45%, rgba(5, 9, 26, 0.55) 100%);
  pointer-events: none;
}

.video-frame.is-playing::after {
  display: none;
}

.video-info {
  padding: 1rem 1.25rem 1.15rem;
}

.video-info .video-name {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  display: block;
}

.video-info .video-desc {
  color: rgb(var(--text-rgb) / 0.75);
  font-size: .85rem;
  display: block;
  margin-top: .2rem;
}

.video-cta {
  display: none;
}

/* Tablet + phone: the vertical video becomes a compact horizontal teaser above the form,
   and only opens to full 9:16 once playing */
@media (max-width: 991.98px) {
  .conv-grid {
    grid-template-columns: minmax(0, 640px);
    gap: 1.25rem;
  }

  .video-card-slot {
    order: -1;
  }

  .video-card {
    width: 100%;
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: center;
    background: rgb(var(--cr-surface-rgb) / 0.9);
    border-color: var(--line);
  }

  .video-info {
    padding: 1.5rem 1.75rem;
    cursor: pointer;
  }

  .video-info .video-name {
    font-size: 1.25rem;
  }

  .video-info .video-desc {
    font-size: .95rem;
    line-height: 1.45;
    margin-top: .35rem;
  }

  .video-cta {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-top: 1rem;
    font-family: 'Bricolage Grotesque', 'Instrument Sans', sans-serif;
    font-weight: 700;
    font-size: .9rem;
    color: var(--cr-cyan-light);
    transition: color .2s ease;
  }

  .video-cta .bi {
    font-size: 1.2rem;
  }

  .video-info:hover .video-cta {
    color: #fff;
  }


  .form-card {
    order: 2;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgb(var(--cr-surface-rgb) / 0.9);
  }
}

@media (max-width: 575.98px) {
  .video-card {
    grid-template-columns: 112px minmax(0, 1fr);
    border-radius: 14px;
  }

  .video-info {
    padding: 1rem 1.1rem;
  }

  .video-info .video-name {
    font-size: 1.05rem;
  }

  .video-info .video-desc {
    font-size: .85rem;
  }

  .video-cta {
    margin-top: .6rem;
  }

  .video-play {
    width: 44px;
    height: 44px;
    font-size: 1.15rem;
  }
}

/* Video modal (tablet/phone) */

.video-modal {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 1rem;
  border: 0;
  background: transparent;
  display: none;
  align-items: center;
  justify-content: center;
}

.video-modal[open] {
  display: flex;
  animation: videoModalIn .35s cubic-bezier(.16, 1, .3, 1) both;
}

.video-modal::backdrop {
  background: rgb(var(--cr-navy-950-rgb) / 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

html:has(.video-modal[open]) {
  overflow: hidden;
}

.video-modal-box {
  position: relative;
  height: min(calc(100dvh - 9rem), calc((100vw - 2rem) * 16 / 9));
  aspect-ratio: 9 / 16;
}

.video-modal-frame {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgb(var(--shadow-rgb) / 0.6);
}

.video-modal-close {
  position: absolute;
  top: -3.25rem;
  right: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgb(var(--white-rgb) / 0.22);
  background: rgb(var(--white-rgb) / 0.08);
  color: #fff;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}

.video-modal-close:hover {
  background: rgb(var(--white-rgb) / 0.16);
  border-color: rgb(var(--white-rgb) / 0.4);
}

@keyframes videoModalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(.97);
  }
}

/* About the author */

.author-cr-section {
  position: relative;
  background: var(--cr-navy-800);
  z-index: 5;
}

.author-cr-shape {
  position: relative;
  overflow: hidden;
  padding: 6.5rem 0;
  border-radius: 50% 50% 0 0 / 200px 200px 0 0;
  width: 140vw;
  left: 50%;
  right: 50%;
  margin-left: -70vw;
  margin-right: -70vw;
}

.author-cr-shape::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 160vmax;
  height: 160vmax;
  background-image: url(../img/bg3.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(6px);
  transform: translate(-50%, -50%) translateY(var(--parallax-author, 0px)) rotate(0deg);
  transform-origin: center center;
  will-change: transform;
  z-index: 0;
  animation: crBgSpin 70s linear infinite;
}

@keyframes crBgSpin {
  from {
    transform: translate(-50%, -50%) translateY(var(--parallax-author, 0px)) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) translateY(var(--parallax-author, 0px)) rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .author-cr-shape::before {
    animation: none;
  }
}

.author-cr-shape::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(90deg,
      rgb(var(--white-rgb) / 0.60) 0%,
      rgb(var(--white-rgb) / 0.42) 32%,
      rgb(var(--white-rgb) / 0.12) 55%,
      transparent 72%);
}

.author-cr-shape .container {
  position: relative;
  z-index: 2;
  width: 100vw;
}

.author-cr-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.author-cr-copy {
  max-width: 50ch;
}

.author-cr-title {
  font-weight: 800;
  font-size: clamp(1.9rem, 1.1rem + 3vw, 2.6rem);
  line-height: 1.16;
  color: var(--cr-navy-950);
  margin: 0 0 1.25rem;
}

.author-cr-text {
  color: rgb(var(--cr-navy-950-rgb) / 0.88);
  font-size: 1rem;
  line-height: 1.72;
  margin: 0;
}

.author-cr-name {
  color: var(--cr-cyan-deep);
  font-weight: 700;
}

.author-cr-portrait {
  position: relative;
  height: 480px;
}

.author-cr-ring {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) translateY(var(--parallax-ring, 0px)) translate(var(--magnet-x, 0px), var(--magnet-y, 0px));
  will-change: transform;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 2px solid rgb(var(--cr-cyan-light-rgb) / 0.55);
  box-shadow: 0 30px 70px rgb(var(--shadow-rgb) / 0.50);
  z-index: 1;
}

.author-cr-photo {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) translateY(var(--parallax-photo, 0px)) translate(var(--magnet-x, 0px), var(--magnet-y, 0px));
  will-change: transform;
  width: 340px;
  height: 480px;
  object-fit: cover;
  object-position: center 10%;
  clip-path: path('M0,0 L340,0 L340,310 A170,170 0 0 1 0,310 Z');
  z-index: 2;
}

@media (max-width: 991.98px) {
  .author-cr-shape {
    padding: 4.5rem 0;
    border-radius: 50% 50% 0 0 / 200px 200px 0 0;
  }

  .author-cr-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    justify-items: center;
  }

  .author-cr-copy {
    max-width: 56ch;
    order: 1;
    text-align: left;
    justify-self: start;
  }

  .author-cr-portrait {
    order: 0;
    height: 410px;
  }

  .author-cr-ring {
    width: 290px;
    height: 290px;
  }

  .author-cr-photo {
    width: 290px;
    height: 410px;
    clip-path: path('M0,0 L290,0 L290,265 A145,145 0 0 1 0,265 Z');
  }
}

@media (max-width: 575.98px) {
  .author-cr-shape {
    border-radius: 50% 50% 0 0 / 100px 100px 0 0;
  }

  .author-cr-title {
    font-size: 1.7rem;
  }

  .author-cr-portrait {
    height: 340px;
  }

  .author-cr-ring {
    width: 240px;
    height: 240px;
  }

  .author-cr-photo {
    width: 240px;
    height: 340px;
    clip-path: path('M0,0 L240,0 L240,220 A120,120 0 0 1 0,220 Z');
  }
}

/* Team */

.team-cr-section {
  position: relative;
  background: linear-gradient(180deg, var(--cr-navy-800) 0%, var(--cr-navy-900) 100%);
  padding: 6rem 0 5.5rem;
  overflow: hidden;
  z-index: 5;
}

.team-cr-section .container {
  position: relative;
  z-index: 1;
}

.team-cr-head {
  max-width: 62ch;
  margin: 0 auto 3rem;
  text-align: center;
}

.team-cr-title {
  font-weight: 800;
  font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.4rem);
  line-height: 1.22;
  color: var(--text-primary);
  margin: 0 0 1rem;
}

.team-cr-text {
  color: rgb(var(--text-rgb) / 0.78);
  font-size: 1rem;
  line-height: 1.72;
  margin: 0;
}

.team-cr-row {
  display: flex;
  margin-top: 6rem;
}

.team-cr-col {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 300px;

  transition: flex-grow .6s cubic-bezier(.65, 0, .35, 1);
}

@media (min-width: 768px) {
  .team-cr-row:hover .team-cr-col {
    flex-grow: 0.8;

    transition: flex-grow .45s cubic-bezier(.22, 1, .36, 1);
  }

  .team-cr-row:hover .team-cr-col:hover {
    flex-grow: 1.6;
  }
}

.team-cr-card {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
  background: linear-gradient(175deg, rgba(28, 39, 96, 0.42) 0%, rgba(9, 14, 34, 0.92) 82%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-right: none;
  border-radius: 0;
  padding: 0 .75rem 1.1rem;
  transition: background .45s cubic-bezier(.65, 0, .35, 1), box-shadow .45s cubic-bezier(.65, 0, .35, 1);
}

.team-cr-col:last-child .team-cr-card {
  border-right: 1px solid var(--line);
}

.team-cr-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 58%;
  background: linear-gradient(to top, rgba(4, 7, 18, 0.82) 0%, rgba(4, 7, 18, 0) 100%);
  border-radius: 0;
  pointer-events: none;
  z-index: 1;
}

.team-cr-col:first-child .team-cr-card {
  border-radius: 16px 0 0 16px;
}

.team-cr-col:first-child .team-cr-card::after {
  border-radius: 0 0 0 16px;
}

.team-cr-col:last-child .team-cr-card::after {
  border-radius: 0 0 16px 0;
}

.team-cr-col:last-child .team-cr-card {
  border-radius: 0 16px 16px 0;
}

.team-cr-col:hover .team-cr-card {
  background: linear-gradient(175deg, rgb(var(--cr-cyan-rgb) / 0.28) 0%, rgba(9, 14, 34, 0.94) 82%);
  box-shadow: 0 30px 64px rgb(var(--shadow-rgb) / 0.55);
}

.team-cr-photo {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 124%;
  width: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 0;
  z-index: 0;
}

.team-cr-col:first-child .team-cr-photo {
  border-radius: 0 0 0 16px;
}

.team-cr-col:last-child .team-cr-photo {
  border-radius: 0 0 16px 0;
}

.team-cr-name {
  position: relative;
  z-index: 2;
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  text-align: center;
  text-shadow: 0 2px 10px rgb(var(--shadow-rgb) / 0.65);
  transition: font-size .45s cubic-bezier(.65, 0, .35, 1);
}

@media (min-width: 768px) {
  .team-cr-col:hover .team-cr-name {
    font-size: 1.15rem;
    transition: font-size .45s cubic-bezier(.22, 1, .36, 1);
  }
}

.team-cr-cta-wrap {
  text-align: center;
  margin-top: 3rem;
}

@media (max-width: 991.98px) {
  .team-cr-col {
    height: 260px;
  }
}

@media (max-width: 767.98px) {
  .team-cr-section {
    padding: 4.5rem 0;
  }

  .team-cr-head {
    margin-bottom: 2.5rem;
  }

  .team-cr-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 1.1rem;
    margin-top: 4rem;
  }

  .team-cr-col {
    height: 220px;
  }

  .team-cr-card {
    border: 1px solid var(--line);
    border-radius: 16px;
  }

  .team-cr-col:first-child .team-cr-card,
  .team-cr-col:last-child .team-cr-card {
    border-radius: 16px;
  }

  .team-cr-photo,
  .team-cr-col:first-child .team-cr-photo,
  .team-cr-col:last-child .team-cr-photo {
    height: 116%;
    border-radius: 0 0 16px 16px;
  }

  .team-cr-card::after,
  .team-cr-col:first-child .team-cr-card::after,
  .team-cr-col:last-child .team-cr-card::after {
    border-radius: 0 0 16px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-cr-col,
  .team-cr-card,
  .team-cr-name,
  .team-cr-row:hover .team-cr-col,
  .team-cr-col:hover .team-cr-name {
    transition: none;
  }
}

/* Thank-you page */

.thanks-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.thanks-main {
  flex: 1;
  display: flex;
  align-items: center;
}

.thanks-section {
  width: 100%;
  padding: 4.5rem 0;
  position: relative;
  z-index: 3;
}

.thanks-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 560px);
  justify-content: center;
  align-items: center;
  gap: 3.5rem;
}

.thanks-visual {
  display: flex;
  justify-content: center;
}

.thanks-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--cr-navy-950);
  background: linear-gradient(135deg, var(--cr-cyan-light), var(--cr-cyan));
  box-shadow: 0 8px 20px rgb(var(--shadow-rgb) / 0.4), 0 0 0 6px rgb(var(--cr-cyan-light-rgb) / 0.12);
}

.thanks-title {
  font-weight: 800;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.1rem);
  line-height: 1.2;
  color: #fff;
  margin: 0 0 .6rem;
}

.thanks-lead {
  color: rgb(var(--text-rgb) / 0.82);
  font-size: .98rem;
  line-height: 1.6;
  margin: 0;
}

.thanks-next {
  text-align: center;
}

.thanks-next-text {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.5;
  max-width: 34ch;
  margin: 0 auto 1.75rem;
}

.thanks-countdown {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 auto .9rem;
}

.thanks-countdown-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.thanks-countdown-track,
.thanks-countdown-progress {
  fill: none;
  stroke-width: 6;
}

.thanks-countdown-track {
  stroke: rgb(var(--cr-cyan-rgb) / 0.16);
}

.thanks-countdown-progress {
  stroke: var(--cr-cyan-light);
  stroke-linecap: round;
  transition: stroke-dashoffset .1s linear;
}

.thanks-countdown-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bricolage Grotesque', 'Instrument Sans', sans-serif;
  font-weight: 800;
  font-size: 2.6rem;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.thanks-countdown-label {
  color: var(--text-muted);
  font-size: .88rem;
  margin: 0 0 1.5rem;
}

@media (max-width: 991.98px) {
  .thanks-section {
    padding: 2.5rem 0 4rem;
  }

  .thanks-grid {
    grid-template-columns: minmax(0, 560px);
    gap: 1.5rem;
  }
}
