/* ══════════════════════════════════════════════════════════════════════════════
   Quake — Lead Capture Landing Page
   Mobile-first (393 px base). Imports design tokens from ../colors_and_type.css
   ══════════════════════════════════════════════════════════════════════════════ */

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

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100%;
  background: #000;
  color: #fff;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.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;
}

/* ══════════════════════════════════════════════════════════════════════════════
   Typography — raw tokens
   ══════════════════════════════════════════════════════════════════════════════ */

:root {
  --text-10: 10px;
  --text-12: 12px;
  --text-14: 14px;
  --text-16: 16px;
  --text-18: 18px;
  --text-20: 20px;
  --text-24: 24px;
  --text-40: 40px;
  --text-50: 50px;
  --text-80: 80px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   Typography — semantic classes
   ══════════════════════════════════════════════════════════════════════════════ */

.type-h1 {
  font-family: var(--font-display);
  font-size: var(--text-80);
  font-weight: 400;
  line-height: 1.20;
}

.type-h2 {
  font-family: var(--font-display);
  font-size: var(--text-50);
  font-weight: 700;
  line-height: 1.20;
}

.type-h2-40 {
  font-family: var(--font-display);
  font-size: var(--text-40);
  font-weight: 700;
  line-height: 1.20;
}

.type-h4 {
  font-family: var(--font-display);
  font-size: var(--text-24);
  font-weight: 600;
  line-height: 1.20;
}

.type-link {
  font-family: var(--font-body);
  font-size: var(--text-20);
  font-weight: 600;
  line-height: 1.50;
}

.type-large-body {
  font-family: var(--font-body);
  font-size: var(--text-18);
  font-weight: 600;
  line-height: 1.50;
}

.type-large-body-18 {
  font-family: var(--font-body);
  font-size: var(--text-18);
  font-weight: 400;
  line-height: 1.30;
}

.type-link-16 {
  font-family: var(--font-body);
  font-size: var(--text-16);
  font-weight: 700;
  line-height: 1.50;
}

.type-heading {
  font-family: var(--font-body);
  font-size: var(--text-16);
  font-weight: 600;
  line-height: 1.50;
}

.type-body {
  font-family: var(--font-body);
  font-size: var(--text-16);
  font-weight: 400;
  line-height: 1.50;
}

.type-subheading {
  font-family: var(--font-body);
  font-size: var(--text-14);
  font-weight: 600;
  line-height: 1.50;
}

.type-small-body {
  font-family: var(--font-body);
  font-size: var(--text-14);
  font-weight: 400;
  line-height: 1.50;
}

.type-body-12 {
  font-family: var(--font-body);
  font-size: var(--text-12);
  font-weight: 400;
  line-height: 1.50;
}

.type-small {
  font-family: var(--font-body);
  font-size: var(--text-10);
  font-weight: 700;
  line-height: 1.50;
}

/* ── Responsive scale for display type ───────────────────────────────────── */
/* .type-h1: fluid 32 → 80px. At 375px this renders ~32px so "Há dias que
   ficam" sits on one line before the <br>. Clamps to spec 80px above 940px. */
.type-h1 { font-size: clamp(24px, 6.4vw, 68px); }

/* countdown nums: scale down on narrow screens */
@media (max-width: 639px) {
  .type-h2 { font-size: 38px; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   Page layout
   ══════════════════════════════════════════════════════════════════════════════ */

.page {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 36px 24px 64px;
}

/* ── Background photo + layered overlay ─────────────────────────────────── */

.page__bg {
  position: fixed;
  inset: 0;
  background: url('../assets/quake-lp-bg.jpg') center / cover no-repeat;
  z-index: -1;
}

.page__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      155deg,
      rgba(50, 10, 75, 0.65)  0%,
      rgba(39, 10, 100, 0.65) 45%,
      rgba(0,  0,   0, 0.65)  100%
    );
}

/* ── Header / Logo ───────────────────────────────────────────────────────── */

.page__header {
  margin-bottom: 56px;
}

.page__logo {
  display: block;
  width: 250px;
  height: auto;
}

/* ── Content ─────────────────────────────────────────────────────────────── */

.page__main {
  flex: 1;
  max-width: 540px;
}

/* ── Eyebrow ─────────────────────────────────────────────────────────────── */

.eyebrow {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--quake-yellow);
  margin-bottom: 20px;
}

/* ── Headline ────────────────────────────────────────────────────────────── */

.headline {
  color: #fff;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
  white-space: nowrap;
}

/* ── Sub ─────────────────────────────────────────────────────────────────── */

.sub {
  color: rgba(255, 255, 255, 0.80);
  margin-bottom: 20px;
}

/* ── Body copy ───────────────────────────────────────────────────────────── */

.body-copy {
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 28px;
}

/* ── CTA intro ───────────────────────────────────────────────────────────── */

.cta-intro {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 28px;
}

/* ── Countdown ───────────────────────────────────────────────────────────── */

.countdown {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 20px;
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 52px;
}

.countdown__num {
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.countdown__sep {
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
  color: rgba(255, 255, 255, 0.20);
  padding-top: 6px;
}

.countdown__label {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.40);
}

/* ── Deadline note ───────────────────────────────────────────────────────── */

.deadline-note {
  color: rgba(255, 255, 255, 0.50);
  margin-bottom: 28px;
}

.deadline-note strong {
  color: rgba(255, 255, 255, 0.80);
  font-weight: 600;
}

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

.form-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.form__input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.20);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--text-16);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--t-base) var(--ease-out),
              background   var(--t-base) var(--ease-out);
}

.form__input::placeholder { color: rgba(255, 255, 255, 0.35); }

.form__input:focus {
  outline: none;
  border-color: var(--quake-yellow);
  background: rgba(255, 255, 255, 0.10);
}

.form__input.is-invalid { border-color: var(--quake-orange); }

.form__btn {
  width: 100%;
  height: 52px;
  padding: 0 28px;
  background: var(--quake-yellow);
  color: var(--quake-purple-800);
  border: none;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t-base) var(--ease-out),
              transform  var(--t-fast);
}

.form__btn:hover:not(:disabled) { background: var(--quake-yellow-soft); }
.form__btn:active:not(:disabled) { transform: translateY(1px); }
.form__btn:disabled { opacity: 0.50; cursor: not-allowed; transform: none; }

/* ── Consent checkbox ────────────────────────────────────────────────────── */

.consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
}

.consent__check {
  flex-shrink: 0;
  margin-top: 1px;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.30);
  border-radius: 3px;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  position: relative;
  transition: background var(--t-fast), border-color var(--t-fast);
}

.consent__check:checked {
  background: var(--quake-yellow);
  border-color: var(--quake-yellow);
}

.consent__check:checked::after {
  content: '';
  position: absolute;
  left: 4px; top: 1px;
  width: 5px; height: 9px;
  border: 2px solid var(--quake-purple-800);
  border-top: 0; border-left: 0;
  transform: rotate(45deg);
}

.consent__check:focus-visible {
  outline: 2px solid var(--quake-yellow);
  outline-offset: 2px;
}

.consent__text { color: rgba(255, 255, 255, 0.48); }

/* ── Inline error ────────────────────────────────────────────────────────── */

.form__error {
  color: var(--quake-orange);
  min-height: 18px;
  margin-top: 12px;
}

/* ── Success state ───────────────────────────────────────────────────────── */

.success-msg {
  display: none;
  padding: 22px 24px;
  border: 1px solid rgba(255, 180, 0, 0.25);
  border-radius: var(--radius-sm);
  background: rgba(255, 180, 0, 0.06);
}

.success-msg.is-visible { display: block; }
.success-msg p { color: rgba(255, 255, 255, 0.88); }

/* ── Closed state ────────────────────────────────────────────────────────── */

.closed-msg { display: none; padding: 8px 0; }
.closed-msg p { color: rgba(255, 255, 255, 0.50); }

/* ══════════════════════════════════════════════════════════════════════════════
   Desktop (≥ 640 px)
   ══════════════════════════════════════════════════════════════════════════════ */

@media (min-width: 640px) {
  .page {
    padding: 56px 80px 80px;
    justify-content: center;
  }

  .page__header { margin-bottom: 50px; }
  .page__logo   { width: 250px; }

  .form-row {
    flex-direction: row;
    gap: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1.5px solid rgba(255, 255, 255, 0.20);
    transition: border-color var(--t-base) var(--ease-out);
    margin-bottom: 14px;
  }

  .form-row:focus-within { border-color: var(--quake-yellow); }

  .form__input {
    flex: 1;
    min-width: 0;
    border: none;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.07);
    padding-left: 20px;
  }

  .form__input:focus {
    border-color: transparent;
    background: rgba(255, 255, 255, 0.10);
  }

  .form__btn {
    width: auto;
    flex-shrink: 0;
    border-radius: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
  }
}

@media (min-width: 1024px) {
  .page__main { max-width: 690px; }
}
