/* =============================================================
   Landing · Acceso Anticipado
   All values pulled from colors_and_type.css tokens.
   NO hardcoded colors / sizes / radii / durations.
   ============================================================= */

:root {
  /* Page-scoped tokens that only exist for this layout.
     Everything references the system tokens — never raw values. */
  --aa-dark:          var(--rfi-ink);          /* page bg — #1e1e1e */
  --aa-dark-soft:     var(--rfi-black-15);     /* hover on outline btns */
  --aa-fg:            var(--rfi-bone);         /* body text on navy */
  --aa-fg-muted:      var(--rfi-gray);         /* subtext / separator */
  --aa-accent:        var(--accent);           /* cyan */
  --aa-accent-press:  var(--accent-pressed);   /* pressed cyan */
  --aa-field-bg:      var(--rfi-bone);         /* input fill */
  --aa-field-fg:      var(--rfi-ink);
  --aa-border:        var(--rfi-gray);         /* hairline */

  --aa-col-w:         400px;
  --aa-side-pad:      var(--s-6);
  --aa-stack-gap:     var(--s-8);
  --aa-input-gap:     var(--s-3);    /* 12px ≈ 10px spec */
  --aa-social-gap:    var(--s-2);    /* 8px */
  --aa-hairline:      0.5px;
}

/* Page shell — dark bg + centered 400px column (desktop).
   Mobile-first: column = 100% up to --aa-col-w. */
.aa-page {
  min-height: 100vh;
  background: var(--aa-dark);
  color: var(--aa-fg);
  font-family: var(--font-mono);
  display: flex;
  justify-content: center;
  padding: var(--s-8) var(--aa-side-pad);
}

.aa-col {
  width: 100%;
  max-width: var(--aa-col-w);
  display: flex;
  flex-direction: column;
  gap: var(--aa-stack-gap);
}

/* --- Block 1 · brand header ------------------------------- */
.aa-brand {
  display: flex;
  justify-content: flex-start;
  padding-top: var(--s-4);
}
.aa-brand img {
  width: 240px;
  height: auto;
  display: block;
}

/* --- Block 2 · proposition -------------------------------- */
.aa-propose {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  align-items: flex-start;
}

.aa-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  align-self: flex-end;
  background: var(--aa-accent);
  color: var(--fg-on-accent);
  padding: var(--s-1) var(--s-3);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.aa-badge-ic {
  width: 14px;
  height: 14px;
  display: block;
}

.aa-headline {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.87;
  letter-spacing: -0.01em;
  font-size: clamp(32px, 9vw, 44px);
  color: var(--aa-accent);
  margin: 0;
}

.aa-subline {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.35;
  color: var(--aa-fg);
  margin: 0;
  opacity: 0.85;
}

/* --- Block 3 · form --------------------------------------- */
.aa-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.aa-bullet {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-1) 0;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.35;
  color: var(--aa-fg);
}
.aa-bullet-ic {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: block;
  margin-top: 1px;
}

.aa-form {
  display: flex;
  flex-direction: column;
  gap: var(--aa-input-gap);
}

.aa-input {
  width: 100%;
  background: var(--aa-field-bg);
  color: var(--aa-field-fg);
  border: 0;
  border-radius: var(--radius-sm);
  padding: var(--s-3) var(--s-4);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.2;
  outline: none;
  transition: box-shadow var(--dur-fast) var(--ease-out);
}
.aa-input::placeholder { color: var(--placeholder); }
.aa-input:focus { box-shadow: 0 0 0 2px var(--aa-accent); }
.aa-input[aria-invalid="true"] {
  box-shadow: 0 0 0 2px var(--aa-accent-press); /* uses cyan-deep as error tone on-brand */
}

/* intl-tel-input overrides */
.iti {
  width: 100%;
}
.iti input.iti__tel-input {
  width: 100%;
  background: var(--aa-field-bg);
  color: var(--aa-field-fg);
  border: 0;
  border-radius: var(--radius-sm);
  padding: var(--s-3) var(--s-4);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.2;
  outline: none;
  transition: box-shadow var(--dur-fast) var(--ease-out);
}
.iti input.iti__tel-input::placeholder { color: var(--placeholder); }
.iti input.iti__tel-input:focus { box-shadow: 0 0 0 2px var(--aa-accent); }
.iti input.iti__tel-input[aria-invalid="true"] {
  box-shadow: 0 0 0 2px var(--aa-accent-press);
}

/* Country dropdown — override iti vars for legible text on white bg */
.iti {
  --iti-hover-color: var(--aa-field-fg);
  --iti-border-color: #ccc;
  --iti-dropdown-bg: #fff;
}
.iti__dropdown-content,
.iti__country-name,
.iti__dial-code,
.iti__search-input {
  color: var(--aa-field-fg);
}

/* Checkboxes */
.aa-check-label {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 300;
  line-height: 1.4;
  color: var(--aa-fg-muted);
  cursor: pointer;
}
.aa-check-label a {
  color: var(--aa-fg);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.aa-check-label input[type="checkbox"] {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  accent-color: var(--aa-accent);
  cursor: pointer;
}
.aa-check-label input[aria-invalid="true"] {
  outline: 2px solid var(--aa-accent-press);
  outline-offset: 1px;
}
.aa-check-label--wa {
  color: var(--aa-fg);
  font-weight: 400;
}
.aa-check-label--wa strong {
  color: var(--aa-accent);
}

.aa-error {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--aa-accent);
  line-height: 1;
  margin-top: calc(-1 * var(--s-2));
}

.aa-cta {
  width: 100%;
  background: var(--aa-accent);
  color: var(--fg-on-accent);
  border: 0;
  border-radius: var(--radius-sm);
  padding: var(--s-3) var(--s-4);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  min-height: 44px; /* a11y tap target */
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.aa-cta:hover  { background: var(--aa-accent-press); }
.aa-cta:active { transform: scale(0.98); }
.aa-cta:disabled { opacity: 0.6; cursor: not-allowed; }

.aa-rgpd {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  color: var(--aa-fg-muted);
  margin: 0;
}
.aa-rgpd a {
  color: var(--aa-fg);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- Block 4 · separator + social ------------------------- */
.aa-sep {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--aa-fg-muted);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.aa-sep::before,
.aa-sep::after {
  content: "";
  flex: 1;
  height: var(--aa-hairline);
  background: var(--aa-fg-muted);
  opacity: 0.5;
}

.aa-social {
  display: flex;
  flex-direction: column;
  gap: var(--aa-social-gap);
}

.aa-social-btn {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border: var(--aa-hairline) solid var(--aa-fg-muted);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--aa-fg);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  min-height: 44px;
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.aa-social-btn:hover {
  background: var(--aa-dark-soft);
  border-color: var(--aa-fg);
}
.aa-social-btn .aa-ic {
  width: 16px; height: 16px;
  color: var(--aa-accent);
  flex: 0 0 16px;
}
.aa-social-btn .aa-label { font-weight: 700; }
.aa-social-btn .aa-sub {
  margin-left: auto;
  color: var(--aa-fg-muted);
  font-size: 12px;
  font-weight: 300;
}

/* --- Block 5 · footer ------------------------------------- */
.aa-footer {
  border-top: var(--aa-hairline) solid var(--aa-fg-muted);
  padding-top: var(--s-5);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}
.aa-footer .aa-claim {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.01em;
  font-size: 22px;
  color: var(--aa-fg);
}
.aa-footer .aa-claim-sub {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 12px;
  color: var(--aa-fg-muted);
}
.aa-legal {
  display: flex;
  justify-content: center;
  gap: var(--s-4);
  margin-top: var(--s-4);
}
.aa-legal a {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--aa-fg-muted);
  text-decoration: none;
}
.aa-legal a:hover {
  color: var(--aa-fg);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- Success overlay -------------------------------------- */
.aa-success {
  position: fixed;
  inset: 0;
  background: var(--aa-dark);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--aa-side-pad);
  gap: var(--s-5);
  z-index: 10;
}
.aa-success[data-open="true"] { display: flex; }
.aa-success .aa-check {
  width: 48px; height: 48px;
  color: var(--aa-accent);
}
.aa-success h2 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 40px;
  line-height: 0.9;
  color: var(--aa-fg);
  margin: 0;
}
.aa-success p {
  max-width: var(--aa-col-w);
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.35;
  color: var(--aa-fg);
  margin: 0;
}
.aa-success .aa-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--aa-accent);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: var(--s-3) var(--s-4);
  border: var(--aa-hairline) solid var(--aa-accent);
  border-radius: var(--radius-sm);
  min-height: 44px;
}
