/* Zoaris — Coming Soon LP */

:root {
  --gold: #c9a84c;
  --gold-light: #e0c06a;
  --white: #ffffff;
  --white-muted: rgba(255, 255, 255, 0.82);
  --white-soft: rgba(255, 255, 255, 0.55);
  --purple-deep: #12081f;
  --purple-mid: #1e0f35;
  --accent-from: #9b4dff;
  --accent-to: #c77dff;
  --accent-btn-from: #7b2ff7;
  --accent-btn-to: #b44dff;
  --input-bg: rgba(30, 14, 52, 0.55);
  --input-border: rgba(255, 255, 255, 0.14);
  --input-border-focus: rgba(183, 120, 255, 0.65);
  --panel-max: 480px;
  --font-sans: "Montserrat", system-ui, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --radius-pill: 999px;
  --radius-field: 999px;
  --header-pad: clamp(20px, 3vw, 40px);
  --logo-text-gap: 20px;
  --logo-size: clamp(56px, 5vw, 76px);
  --panel-pad-x: clamp(24px, 4vw, 56px);
  --panel-pad-y: clamp(32px, 5vh, 48px);
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--white);
  background: var(--purple-deep);
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* ─── Page shell ─── */

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.page__bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: var(--purple-deep);
  background-image: url("../img/imagem-background-desktop.png");
  background-size: cover;
  background-position: 15% center;
  background-repeat: no-repeat;
}

.page__overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(18, 8, 31, 0) 0%,
    rgba(18, 8, 31, 0.08) 42%,
    rgba(18, 8, 31, 0.65) 54%,
    rgba(18, 8, 31, 0.82) 62%,
    rgba(18, 8, 31, 0.9) 100%
  );
}

/* ─── Header / logo ─── */

.header {
  position: absolute;
  top: var(--header-pad);
  left: var(--header-pad);
  z-index: 10;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.header__logo {
  display: block;
  line-height: 0;
  pointer-events: auto;
  filter: drop-shadow(0 0 18px rgba(155, 77, 255, 0.45));
  transition: filter 0.25s ease;
}

.header__logo:hover {
  filter: drop-shadow(0 0 24px rgba(199, 125, 255, 0.65));
}

.header__logo img {
  width: clamp(56px, 5vw, 76px);
  height: auto;
  display: block;
}

/* ─── Main layout ─── */

.main {
  position: relative;
  z-index: 5;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 52%);
  align-items: center;
  min-height: 0;
  padding-bottom: var(--panel-pad-y);
}

.main__spacer {
  min-height: 1px;
}

.main__panel {
  max-width: calc(var(--panel-max) + var(--panel-pad-x) * 2);
  padding: var(--panel-pad-y) var(--panel-pad-x);
  margin-left: auto;
  margin-right: clamp(24px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ─── Eyebrow ─── */

.eyebrow {
  font-size: clamp(10px, 1.1vw, 12px);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.5;
}

/* ─── Intro (eyebrow + divisor) ─── */

.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.intro__eyebrow {
  width: 100%;
  text-align: center;
}

.intro__divider {
  width: 100%;
  margin: 14px 0 22px;
}

/* ─── Divider ─── */

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0 22px;
  max-width: 100%;
}

.page-tagline .divider {
  margin: 24px 0 16px;
}

.divider__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201, 168, 76, 0.55) 20%,
    rgba(201, 168, 76, 0.75) 50%,
    rgba(201, 168, 76, 0.55) 80%,
    transparent
  );
}

.divider__star {
  flex-shrink: 0;
  color: var(--gold-light);
  filter: drop-shadow(0 0 6px rgba(224, 192, 106, 0.6));
  display: flex;
}

/* ─── Headline ─── */

.headline {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 18px;
  max-width: 14ch;
}

.headline__accent {
  background: linear-gradient(135deg, var(--accent-from) 0%, var(--accent-to) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ─── Lead copy ─── */

.lead {
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 400;
  line-height: 1.65;
  color: var(--white-muted);
  max-width: 38ch;
  margin-bottom: 32px;
}

/* ─── Form section ─── */

.form-section {
  scroll-margin-top: 24px;
}

.form-section__title {
  margin-bottom: 20px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: var(--panel-max);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ─── Input fields ─── */

.field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  height: 52px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-field);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.field:focus-within {
  border-color: var(--input-border-focus);
  box-shadow: 0 0 0 3px rgba(155, 77, 255, 0.15);
  background: rgba(40, 18, 68, 0.65);
}

.field__icon {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
}

.field:focus-within .field__icon {
  color: rgba(199, 125, 255, 0.75);
}

.field input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  color: var(--white);
  outline: none;
}

.field input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

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

.field input[type="number"]::-webkit-outer-spin-button,
.field input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ─── Sistema de gestão (radio) ─── */

.field-group {
  border: none;
  margin: 0;
  padding: 0;
  max-width: var(--panel-max);
}

.field-group__legend {
  font-size: 13px;
  font-weight: 500;
  color: var(--white-muted);
  margin-bottom: 10px;
  padding: 0;
}

.field-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-radius: var(--radius-field);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.field-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.field-option span {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s ease;
}

.field-option:has(input:checked) {
  border-color: var(--input-border-focus);
  background: rgba(123, 47, 247, 0.25);
  box-shadow: 0 0 0 3px rgba(155, 77, 255, 0.15);
}

.field-option:has(input:checked) span {
  color: var(--white);
}

.field-option:has(input:focus-visible) {
  outline: 2px solid var(--accent-to);
  outline-offset: 2px;
}

/* ─── CTA button ─── */

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: var(--panel-max);
  margin-top: 8px;
  padding: 16px 24px;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: clamp(11px, 1.2vw, 13px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: linear-gradient(135deg, var(--accent-btn-from) 0%, var(--accent-btn-to) 100%);
  box-shadow:
    0 4px 24px rgba(123, 47, 247, 0.45),
    0 0 48px rgba(155, 77, 255, 0.25);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow:
    0 6px 32px rgba(123, 47, 247, 0.55),
    0 0 56px rgba(180, 77, 255, 0.35);
}

.cta:active {
  transform: translateY(0);
  filter: brightness(0.96);
}

.cta:disabled {
  cursor: wait;
  opacity: 0.85;
  transform: none;
}

.cta--loading .cta__arrow {
  opacity: 0.4;
}

.cta__arrow {
  flex-shrink: 0;
}

.form-feedback {
  max-width: var(--panel-max);
  margin-bottom: 16px;
}

.form-feedback[hidden] {
  display: none;
}

/* ─── Privacy note ─── */

.privacy {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 400;
  color: var(--white-soft);
  line-height: 1.4;
}

.privacy__icon {
  flex-shrink: 0;
  opacity: 0.7;
}

/* ─── Alerts ─── */

.alert {
  padding: 14px 16px;
  border-radius: var(--radius-field);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
  max-width: var(--panel-max);
}

.alert--success {
  background: rgba(76, 175, 120, 0.15);
  border: 1px solid rgba(76, 175, 120, 0.35);
  color: #b8e8c8;
}

.alert--error {
  background: rgba(220, 80, 80, 0.12);
  border: 1px solid rgba(220, 80, 80, 0.35);
  color: #f5b8b8;
}

.alert--error ul {
  list-style: none;
  padding: 0;
}

.alert--error li + li {
  margin-top: 4px;
}

/* ─── Tagline (rodapé decorativo) ─── */

.page-tagline {
  width: 100%;
  max-width: var(--panel-max);
}

.page-tagline__text {
  text-align: center;
}

/* ─── Desktop: campos lado a lado ─── */

@media (min-width: 1025px) {
  :root {
    --panel-max: 620px;
  }

  .field--full {
    width: 100%;
  }

  .form-row--school {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.78fr);
    gap: 10px;
    align-items: stretch;
  }

  .form-row--contact {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.78fr);
    gap: 10px;
    align-items: stretch;
  }

  .form-row .field {
    min-width: 0;
  }

  .field--compact {
    padding-left: 14px;
    padding-right: 14px;
    gap: 10px;
  }

  .field--compact input {
    font-size: 14px;
  }

  .field--compact input::placeholder {
    font-size: 13px;
  }

  .page-tagline {
    position: fixed;
    left: 50%;
    bottom: clamp(28px, 5vh, 56px);
    transform: translateX(-50%);
    z-index: 8;
    width: auto;
    max-width: min(92vw, 480px);
    padding: 0 20px;
    pointer-events: none;
  }

  .page-tagline .divider {
    margin: 0 0 14px;
  }
}

/* ─── Tablet ─── */

@media (max-width: 1024px) {
  .page__bg {
    background-position: 20% center;
  }

  .page__overlay {
    background: linear-gradient(
      90deg,
      rgba(18, 8, 31, 0.1) 0%,
      rgba(18, 8, 31, 0.5) 45%,
      rgba(18, 8, 31, 0.92) 100%
    );
  }

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

  .main__spacer {
    display: none;
  }

  .main__panel {
    margin-left: auto;
    margin-right: auto;
    /*padding-top: clamp(120px, 18vh, 200px);*/
  }

  .headline {
    max-width: 16ch;
  }
}

/* ─── Mobile ─── */

@media (max-width: 640px) {
  .page__bg {
    background-image: url("../img/image-background-mobile.jpg");
    background-position: center top;
    background-size: cover;
  }

  .page__overlay {
    background: linear-gradient(
      180deg,
      rgba(18, 8, 31, 0.1) 0%,
      rgba(18, 8, 31, 0.4) 28%,
      rgba(18, 8, 31, 0.9) 48%,
      rgba(18, 8, 31, 0.97) 100%
    );
  }

  .header {
    top: 20px;
    left: 20px;
  }

  .main {
    align-items: flex-start;
  }

  .main__panel {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 20px 32px;
    padding-top: calc(var(--header-pad) + var(--logo-size) + var(--logo-text-gap));
  }

  .intro {
    margin-top: 0;
  }

  .intro__divider {
    margin: 12px 0 14px;
  }

  .headline {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
    max-width: none;
    margin-bottom: 10px;
  }

  .lead {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .form-section__title {
    margin-bottom: 12px;
  }

  .field {
    height: 50px;
  }

  .cta {
    padding: 15px 16px;
    letter-spacing: 0.08em;
    font-size: 11px;
  }

  .cta span {
    text-align: center;
    line-height: 1.35;
  }

  .page-tagline {
    margin-top: 20px;
    padding-bottom: 12px;
  }

  .page-tagline .divider {
    margin: 20px 0 14px;
  }
}

@media (max-width: 380px) {
  .eyebrow {
    letter-spacing: 0.2em;
    font-size: 9px;
  }

}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  .cta,
  .header__logo {
    transition: none;
  }
}
