:root {
  --nc-denim: #2e5fac;
  --nc-denim-dark: #274f91;
  --nc-denim-pale: #eff3fb;
  --nc-coccinelle: #d3111b;
  --nc-citron: #f3bc00;
  --nc-cactus: #01a93a;
  --nc-noir: #191716;
  --nc-gris: #bdc0c6;
  --nc-white: #fff;
  --surface: rgba(255, 255, 255, 0.96);
  --text-muted: #5e626b;
  --border: #dfe4ec;
  --shadow: 0 24px 70px rgba(25, 23, 22, 0.12);
  color-scheme: light;
  font-family: "Lato", "Avenir Next", "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}

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

html {
  min-width: 320px;
  min-height: 100%;
  background: #f7f9fc;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--nc-noir);
  background:
    linear-gradient(135deg, rgba(239, 243, 251, 0.9), rgba(240, 249, 244, 0.78)),
    #f7f9fc;
}

button,
input {
  font: inherit;
}

a {
  color: var(--nc-denim-dark);
}

a:hover {
  color: var(--nc-denim);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #ffcc1f;
  outline-offset: 3px;
}

.page-shell {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(1180px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  flex-direction: column;
}

.site-header {
  display: flex;
  min-height: 112px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: inline-flex;
  border-radius: 8px;
}

.brand-logo {
  display: block;
  width: 218px;
  max-width: 100%;
  height: auto;
}

.secure-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4d525b;
  font-size: 0.875rem;
  font-weight: 700;
}

.secure-label svg {
  width: 18px;
  fill: none;
  stroke: var(--nc-cactus);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.main-content {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 500px);
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
  padding: 40px 0 72px;
}

.intro {
  max-width: 560px;
}

.intro,
.access-card,
.support-block p,
.support-options,
.button-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.eyebrow,
.card-kicker {
  margin: 0 0 14px;
  color: var(--nc-denim);
  font-family: "Exo", "Avenir Next", "Segoe UI", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Exo", "Avenir Next", "Segoe UI", Arial, sans-serif;
}

h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(2.65rem, 5vw, 4.7rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.intro-text {
  max-width: 535px;
  margin: 26px 0 0;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  line-height: 1.65;
}

.benefit-list {
  display: grid;
  margin: 38px 0 0;
  padding: 0;
  gap: 18px;
  list-style: none;
}

.benefit-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
}

.benefit-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  place-items: center;
}

.benefit-icon svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.benefit-icon--green {
  color: #017f2d;
  background: #e1f4e8;
}

.benefit-icon--yellow {
  color: #8a6900;
  background: #fff5d6;
}

.benefit-icon--blue {
  color: var(--nc-denim);
  background: #dfe8f6;
}

.access-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(189, 192, 198, 0.6);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card-accent {
  height: 7px;
  background: linear-gradient(
    90deg,
    var(--nc-denim) 0 48%,
    var(--nc-cactus) 48% 67%,
    var(--nc-citron) 67% 84%,
    var(--nc-coccinelle) 84% 100%
  );
}

.card-content {
  padding: clamp(30px, 5vw, 48px);
}

.card-kicker {
  margin-bottom: 9px;
}

h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  letter-spacing: -0.025em;
  line-height: 1.16;
}

.card-description {
  margin: 16px 0 30px;
  color: var(--text-muted);
  line-height: 1.55;
}

.field-group label {
  display: block;
  margin-bottom: 9px;
  font-weight: 800;
}

.input-wrapper {
  position: relative;
}

.input-wrapper svg {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 21px;
  transform: translateY(-50%);
  fill: none;
  stroke: #727780;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  min-width: 0;
  font-size: 1rem;
  min-height: 56px;
  padding: 13px 16px 13px 49px;
  border: 1px solid #b8bdc7;
  border-radius: 10px;
  color: var(--nc-noir);
  background: var(--nc-white);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.input-wrapper input:hover {
  border-color: #7c838e;
}

.input-wrapper input:focus {
  border-color: var(--nc-denim);
  box-shadow: 0 0 0 4px rgba(46, 95, 172, 0.12);
}

.input-wrapper input[aria-invalid="true"] {
  border-color: var(--nc-coccinelle);
}

.field-help {
  overflow-wrap: anywhere;
  margin: 8px 0 0;
  color: #6b7079;
  font-size: 0.83rem;
}

.field-help span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.code-panel {
  padding-top: 4px;
}

.code-panel[hidden],
form[hidden] {
  display: none;
}

.code-panel h3 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.25;
}

.code-description {
  margin: 10px 0 24px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.code-input {
  width: 100%;
  min-height: 58px;
  padding: 10px 16px;
  border: 1px solid #b8bdc7;
  border-radius: 10px;
  color: var(--nc-noir);
  background: var(--nc-white);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-align: center;
}

.code-input:focus {
  border-color: var(--nc-denim);
  box-shadow: 0 0 0 4px rgba(46, 95, 172, 0.12);
}

.code-input[aria-invalid="true"] {
  border-color: var(--nc-coccinelle);
}

.primary-button {
  display: inline-flex;
  width: 100%;
  min-height: 54px;
  margin-top: 24px;
  padding: 12px 18px;
  border: 0;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: var(--nc-white);
  background: var(--nc-denim);
  box-shadow: 0 10px 24px rgba(46, 95, 172, 0.2);
  cursor: pointer;
  font-family: "Exo", "Avenir Next", "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.primary-button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: var(--nc-denim-dark);
  box-shadow: 0 13px 28px rgba(46, 95, 172, 0.27);
}

.primary-button:active:not(:disabled) {
  transform: translateY(0);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.78;
}

.button-arrow {
  width: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.button-loader {
  display: none;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: var(--nc-white);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.primary-button[data-loading="true"] .button-loader {
  display: block;
}

.primary-button[data-loading="true"] .button-arrow {
  display: none;
}

.secondary-button {
  display: inline-flex;
  min-height: 44px;
  margin: 12px auto 0;
  padding: 8px 12px;
  border: 0;
  align-items: center;
  justify-content: center;
  color: var(--nc-denim-dark);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.secondary-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.form-status {
  overflow-wrap: anywhere;
  min-height: 24px;
  margin: 14px 0 0;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.form-status:empty {
  min-height: 0;
  margin: 0;
}

.form-status[data-kind="error"] {
  color: #a00d15;
}

.form-status[data-kind="info"] {
  color: var(--nc-denim-dark);
}

.form-status[data-kind="success"] {
  color: #017f2d;
}

.support-block {
  display: flex;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  align-items: center;
  gap: 12px;
}

.support-block p {
  display: flex;
  margin: 0;
  flex-wrap: wrap;
  gap: 3px 7px;
  color: #555a63;
  font-size: 0.9rem;
}

.support-options {
  display: grid;
  gap: 14px;
}

.support-options p {
  flex-direction: column;
  align-items: flex-start;
}

.support-block a {
  font-weight: 800;
  text-underline-offset: 3px;
}

.support-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  color: var(--nc-denim);
  background: var(--nc-denim-pale);
  place-items: center;
}

.support-icon svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.site-footer {
  display: flex;
  min-height: 72px;
  border-top: 1px solid rgba(189, 192, 198, 0.55);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #686d75;
  font-size: 0.8rem;
}

.site-footer p {
  margin: 0;
}

.shape {
  position: fixed;
  z-index: 0;
  border-radius: 28%;
  opacity: 0.12;
  pointer-events: none;
}

.shape--blue {
  top: -110px;
  right: 12%;
  width: 270px;
  height: 270px;
  transform: rotate(28deg);
  background: var(--nc-denim);
}

.shape--green {
  right: -100px;
  bottom: 9%;
  width: 260px;
  height: 260px;
  transform: rotate(47deg);
  background: var(--nc-cactus);
}

.shape--yellow {
  bottom: -110px;
  left: 14%;
  width: 220px;
  height: 220px;
  transform: rotate(34deg);
  background: var(--nc-citron);
}

.shape--red {
  top: 42%;
  left: -70px;
  width: 150px;
  height: 150px;
  transform: rotate(22deg);
  background: var(--nc-coccinelle);
}

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

@media (max-width: 880px) {
  .page-shell {
    width: min(680px, calc(100% - 36px));
  }

  .main-content {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 24px;
  }

  .intro {
    max-width: 640px;
  }

  .access-card {
    width: 100%;
    max-width: 560px;
    justify-self: center;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 28px, 520px);
  }

  .site-header {
    min-height: 88px;
  }

  .brand-logo {
    width: 178px;
  }

  .secure-label {
    font-size: 0;
  }

  .secure-label svg {
    width: 22px;
  }

  .main-content {
    gap: 34px;
    padding: 30px 0 48px;
  }

  h1 {
    font-size: clamp(2.35rem, 12vw, 3.4rem);
  }

  .benefit-list {
    margin-top: 30px;
  }

  .card-content {
    padding: 28px clamp(16px, 4vw, 22px);
  }

  .support-block a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }

  .site-footer {
    padding: 20px 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
  }
}

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