* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  /*font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "SF Pro Display", "Inter", "Segoe UI", sans-serif;
  font-family: 'Inter', sans-serif;
  font-family: 'Roboto', sans-serif;
  font-family: 'Poppins', sans-serif;
  font-family: 'Lora', serif;
  font-family: 'Merriweather', serif;
  font-family: 'Montserrat', sans-serif;
  font-family: 'Playfair Display', serif;
  font-family: 'Source Sans Pro', sans-serif;
  font-family: 'Lato', sans-serif;*/
  font-family: 'Lora', serif;
  color: #f5f5f5;
}

body {
  background: #050506;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 1.5rem;
}

.page-wrapper {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.site-header {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.9;
}

.header-top {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
}

/* LOGO + texto "Over the Limit" */
.brand-block {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

@keyframes logoAnimation {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.logo {
  animation: logoAnimation 3s ease-in-out infinite; /* Animação suave */
}

.logo img {
  display: block;
  height: 32px;
  width: auto;
}

.brand-name {
  margin-left: 0.35rem; /* afasta do halo do logo */
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* tagline por baixo */
.site-header .tagline {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* PT / EN / ES */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.4rem;
    flex-direction: row; /* horizontal */
}

/* ===== AURA DO LOGO – INDEX ===== */

.logo {
  position: relative;
  display: inline-block;
}

.logo::before {
  content: "";
  position: absolute;
  inset: -12px; /* tamanho da aura em volta */
  background: radial-gradient(
    circle,
    rgba(255,255,255,0.45) 0%,
    rgba(255,255,255,0.18) 35%,
    rgba(255,255,255,0) 70%
  );
  filter: blur(6px);
  opacity: 0.85;
  z-index: -1;
  pointer-events: none;
  mix-blend-mode: screen;
  border-radius: 50%;
}

/* mobile */
@media (max-width: 640px) {
  .logo img {
    height: 26px;
  }

  .brand-name {
    font-size: 0.85rem;
    letter-spacing: 0.18em;
  }

  .site-header .tagline {
    font-size: 0.7rem;
    max-width: 12rem;
  }
  
  .lang-switch {
	flex-direction: column;
	align-items: flex-start; /* opcional: começa alinhado à esquerda */
	gap: 6px;
  }
  
  .lang-switch button {
	width: 100%; /* botão ocupa toda a linha */
  }
}

.lang-btn {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 10, 10, 0.85);
  color: #f5f5f5;
  padding: 0.2rem 0.7rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.lang-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.35);
}

.lang-btn.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

main {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: flex-start;
}

.hero-block {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.hero-title h1 {
  font-size: clamp(2.9rem, 4.2vw, 3.6rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.hero-sub {
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}

.hero-text {
  margin-top: 1.2rem;
  font-size: 0.98rem;
  line-height: 1.7;
  max-width: 520px;
  color: rgba(245, 245, 245, 0.94);
}

.hero-variant {
  margin-top: 1.6rem;
  padding: 1.2rem 1rem;
  border-radius: 1.1rem;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: rgba(10, 10, 10, 0.75);
}

.hero-variant .section-label {
  margin-bottom: 0.4rem;
}

.hero-variant .section-title {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.hero-variant .hero-sub {
  margin-bottom: 0.4rem;
  opacity: 0.78;
}

.hero-variant .hero-text {
  margin-bottom: 0.6rem;
  max-width: 460px;
}

/* COUNTDOWN */

.countdown-wrapper {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.countdown-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.8;
  margin-bottom: 0.8rem;
}

.countdown {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1rem;
}

.time-box {
  /* tamanho base (telemóveis mais pequenos) */
  width: 3.2rem;
  height: 3.2rem;

  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 10, 0.8);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.8);

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.2rem;

  padding: 0; /* importante para não deformar o quadrado */
}

.time-value {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.time-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}

.spots {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  opacity: 0.8;
}

.footer-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  opacity: 0.85;
  margin-top: 0.8rem;
}

.footer-card-icon {
  flex-shrink: 0;
}

.form-section {
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), rgba(10, 10, 10, 0.95));
  padding: 1.6rem 1.5rem 1.7rem;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.03);
  z-index: 1; /* Coloca o vidro fosco acima do fundo */
}

.form-section h2 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.form-section p {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 1.2rem;
}

.field-group {
  margin-bottom: 0.9rem;
}

.field-group label {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 0.3rem;
  opacity: 0.9;
}

.field-group input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(5, 5, 5, 0.92);
  color: #f5f5f5;
  font-size: 0.9rem;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.field-group input::placeholder {
  color: rgba(200, 200, 200, 0.55);
}

.field-group input:focus {
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
  background: rgba(8, 8, 8, 0.98);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.9rem 0 1.1rem;
  font-size: 0.84rem;
  opacity: 0.9;
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #ffffff;
  cursor: pointer;
}

.checkbox-row label {
  cursor: pointer;
}

.small-note {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  opacity: 0.75;
}

button[type="submit"] {
  margin-top: 0.2rem;
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: #ffffff;
  color: #000;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.12s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

button[type="submit"]:hover {
  background: #000;
  color: #fff;
  border-color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.85);
}

button[type="submit"]:active {
  transform: translateY(0);
  box-shadow: none;
}

.error-msg {
  color: #ff8080;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  min-height: 0.85rem;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.error-msg.active {
  opacity: 1;
}

.input-error {
  border-color: rgba(255, 80, 80, 0.8) !important;
  box-shadow: 0 0 0 1px rgba(255, 80, 80, 0.6);
}

.info-sections {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  margin-top: 0;
}

.content-section {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
  gap: 1.6rem;
  align-items: flex-start;
}

.section-label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
}

.section-title {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.content-section p {
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.92;
}

.content-highlight {
  padding: 1rem 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), rgba(10, 10, 10, 0.95));
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.03);
  z-index: 1; /* Coloca o vidro fosco acima do fundo */
}

.content-highlight ul {
  padding-left: 1rem;
  margin-bottom: 0.75rem;
}

.content-highlight li {
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.content-highlight .muted {
  font-size: 0.8rem;
  opacity: 0.78;
}

.lotacao-info {
  font-size: 0.8rem;
  opacity: 0.78;
}

.final-cta {
  margin-top: 1rem;
}

.cta-btn-ghost {
  margin-top: 0.9rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: #f5f5f5;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.12s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.cta-btn-ghost:hover {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.85);
  transform: translateY(-1px);
}

.cta-btn-ghost:active {
  transform: translateY(0);
  box-shadow: none;
}

.fade-section {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

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

.preview-only {
  display: none;
}

body.preview .preview-only {
  display: block;
}

body.preview .hero-text {
  margin-bottom: 1.4rem;
}

body.preview .content-section.preview-only {
  margin-top: 0.6rem;
  padding-top: 0.9rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.18);
}

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

  .header-top {
    display: grid;
    grid-template-columns: 1fr auto; /* esquerda conteúdo, direita botões */
    grid-template-rows: auto auto;   /* linha 1 = OVER, linha 2 = edição */
    column-gap: 16px;
    align-items: center;
  }

  .header-top > :nth-child(1) {
    grid-area: 1 / 1 / 2 / 2;
  }

  .header-top > :nth-child(2) {
    grid-area: 2 / 1 / 3 / 2;
  }

  .header-top .lang-switch {
    grid-area: 1 / 2 / 3 / 3;   /* ocupa da linha 1 até à 3 → span 2 linhas */
    align-self: center;         /* centra verticalmente em relação às duas */
    display: flex;
    flex-direction: column;     /* botões na vertical */
    gap: 8px;
  }

  .form-section {
    order: -1;
  }

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

  .hero-title h1 {
    font-size: 2.4rem;
  }
}

@media (max-width: 520px) {
  .page-wrapper {
    gap: 2rem;
  }

  .form-section {
    padding: 1.3rem 1.1rem 1.5rem;
  }

  .hero-title h1 {
    font-size: 2.1rem;
  }

  .countdown {
    gap: 0.6rem;
  }
}

/* DESKTOP — hero-block + hero-meta à esquerda, form à direita */
@media (min-width: 769px) {

  .main-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
  }

  /* ESQUERDA — hero principal */
  .hero-block {
    grid-column: 1;
    grid-row: 1;
  }

  /* ESQUERDA — countdown + footer por baixo do hero */
  .hero-meta {
    grid-column: 1;
    grid-row: 2;
    margin-top: 1.5rem;
  }

  /* DIREITA — form */
  .form-section {
    grid-column: 2;
    grid-row: 1 / span 2; /* ocupa a coluna inteira */
    margin-top: 0;
  }

  /* container das caixas */
  .countdown {
    gap: 1.25rem;          /* separação maior */
  }

  /* cada caixa individual */
  .countdown .time-box {
    padding: 1.3rem 1rem;  /* mais altura e largura */
    min-width: 4.6rem;     /* caixas mais largas */
    border-radius: 1.2rem;
    transform: scale(1.05); /* ligeiro boost para dar presença */
    width: 5.2rem;
    height: 5.2rem;
  }

  /* número principal */
  .countdown .time-value {
    font-size: 2.6rem;     /* antes 2.1rem */
    font-weight: 700;
    line-height: 1.1;
  }

  /* label abaixo (dias/horas/min/seg) */
  .countdown .time-label {
    font-size: 0.9rem;     /* maior */
    letter-spacing: 0.22em;
    margin-top: 0.35rem;
  }
}

@media (max-width: 768px) {
  header.site-header {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
  }

  .main-layout {
    display: flex;
    flex-direction: column;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* 1º: countdown + nota de cartão */
  .hero-meta {
    order: 1;
  }

  /* 2º: formulário */
  .form-section {
    order: 2;
  }

  /* 3º: hero principal (título + texto + variantes) */
  .hero-block {
    margin-top: 0.5rem !important;
    order: 3;
  }
}

/* AUMENTO MODERADO DO COUNTDOWN ENTRE 425px E 768px */
@media (min-width: 426px) and (max-width: 768px) {

  .countdown {
    gap: 1.1rem; /* espaçamento mais respirado */
  }

  .countdown .time-box {
    width: 4.7rem;
    height: 4.7rem;
  }

  .countdown .time-value {
    font-size: 2.35rem;    /* maior que mobile, menor que desktop */
    font-weight: 700;
  }

  .countdown .time-label {
    font-size: 0.82rem;
    margin-top: 0.35rem;
    letter-spacing: 0.20em;
  }
}

@media (max-width: 375px) {
  /* Evitar wrap no hero.title em telemóveis muito pequenos */
  .hero-title h1 {
    font-size: clamp(1.6rem, 6vw, 2rem);
    line-height: 1.1;
  }

  /* Countdown compacto para ecrãs muito pequenos */
  .countdown {
    gap: 0.4rem;
  }

  .countdown .time-box {
    min-width: auto;
  }

  .countdown .time-value {
    font-size: 1.3rem;   /* reduzir número */
  }

  .countdown .time-label {
    font-size: 0.65rem;  /* reduzir texto “Dias / Horas / Min / Seg” */
  }
}

/* MOBILE — reduzir espaço entre header e main layout */
@media (max-width: 768px) {
  .page-wrapper {
    gap: 1.1rem;
  }

  .main-layout {
    margin-top: 0;
  }

  .hero-meta {
    margin-top: 0.5rem;
  }
}