/* ============================================================
   MTX × DELIVERY — Form Qualificação
   Design System: cinema-black, Oswald uppercase, innovation blue
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  /* Color tokens — MTX brand */
  --color-bg:        #0C0C0C;
  --color-bg-soft:   #161616;
  --color-bg-deep:   #050505;
  --color-text:      #F5F5F5;
  --color-text-mute: #A0A0A0;
  --color-text-low:  #5A5A5A;
  --color-accent:    #0BA4CF; /* innovation */
  --color-brand:     #027F97; /* expert */
  --color-magenta:   #FF3D71; /* kill switch / final CTA */
  --color-line:      rgba(255,255,255,0.08);
  --color-line-2:    rgba(255,255,255,0.16);

  /* Type */
  --font-display: 'Oswald', sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --space-xs: clamp(0.5rem, 1vw, 0.75rem);
  --space-sm: clamp(1rem, 2vw, 1.5rem);
  --space-md: clamp(2rem, 4vw, 3rem);
  --space-lg: clamp(4rem, 8vw, 6rem);
  --space-xl: clamp(6rem, 12vw, 10rem);

  --container: min(960px, 100% - 3rem);
  --radius: 10px;
  --radius-sm: 6px;
}

html, body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100%;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }

/* ============================================================
   ATMOSPHERE — grain + giant X background symbol
   ============================================================ */
.bg-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.05;
  background-image:
    repeating-radial-gradient(circle at 30% 20%, rgba(255,255,255,0.4) 0, transparent 1px),
    repeating-radial-gradient(circle at 70% 80%, rgba(255,255,255,0.3) 0, transparent 1px);
  background-size: 3px 3px, 5px 5px;
  mix-blend-mode: overlay;
}

.bg-symbol {
  position: fixed;
  right: -8vw;
  bottom: -12vw;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30rem, 70vw, 60rem);
  color: var(--color-brand);
  opacity: 0.035;
  line-height: 0.7;
  pointer-events: none;
  z-index: 0;
  user-select: none;
  transform: rotate(-12deg);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(12,12,12,0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.85rem 0;
  border-bottom-color: var(--color-line);
}
.navbar__inner {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.navbar__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.75rem;
  color: var(--color-text);
  text-decoration: none;
}
.navbar__mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  line-height: 1;
}
.navbar__tag {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-mute);
  font-weight: 500;
}
.navbar__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-mute);
  font-weight: 500;
}
.navbar__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 0 rgba(11,164,207,0.6);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0   rgba(11,164,207,0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(11,164,207,0); }
  100% { box-shadow: 0 0 0 0   rgba(11,164,207,0); }
}

/* ============================================================
   SHELL
   ============================================================ */
.shell {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin: 0 auto;
  padding: clamp(6rem, 14vh, 9rem) 0 var(--space-lg);
  min-height: 100vh;
}

/* ============================================================
   PROGRESS
   ============================================================ */
.progress {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: var(--space-md);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.progress.is-active { opacity: 1; }

.progress__track {
  flex: 1;
  height: 2px;
  background: var(--color-line);
  overflow: hidden;
  position: relative;
}
.progress__fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--color-accent);
  transition: width 0.6s cubic-bezier(0.6, 0.05, 0.2, 1);
}
.progress__meta {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  color: var(--color-text-mute);
  font-variant-numeric: tabular-nums;
}
.progress__step {
  color: var(--color-text);
}
.progress__sep {
  margin: 0 0.35rem;
  color: var(--color-text-low);
}
.progress__total {
  color: var(--color-text-low);
}

/* ============================================================
   FORM / STEPS
   ============================================================ */
.form { position: relative; }

.step {
  display: none;
  animation: stepIn 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.step.is-active { display: block; }

@keyframes stepIn {
  from { opacity: 0; transform: translateY(20px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.step__head {
  margin-bottom: var(--space-md);
}
.step__index {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.25em;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--color-accent);
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--color-line-2);
  margin-bottom: 1.5rem;
  font-variant-numeric: tabular-nums;
}
.step__sub {
  margin-top: 1.25rem;
  color: var(--color-text-mute);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  max-width: 60ch;
}

/* ============================================================
   TYPOGRAPHY — display
   ============================================================ */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}
.eyebrow--ok { color: var(--color-accent); }
.eyebrow--no { color: var(--color-magenta); }

.display-hero {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6.8vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
  margin-bottom: 1.5rem;
}
.display-section {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  text-wrap: balance;
}
.accent  { color: var(--color-accent); }
.magenta { color: var(--color-magenta); }

.lead {
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  color: var(--color-text);
  max-width: 60ch;
  margin-bottom: 1rem;
  line-height: 1.6;
}
.lead strong { color: var(--color-text); font-weight: 600; }
.lead--mute  { color: var(--color-text-mute); margin-bottom: 2rem; }

/* ============================================================
   CTA / BUTTONS
   ============================================================ */
.cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin: var(--space-md) 0 var(--space-sm);
}
.cta-meta {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-mute);
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.35s ease, border-color 0.25s ease;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn__arrow {
  transition: transform 0.3s cubic-bezier(0.3, 0.1, 0.2, 1);
  display: inline-block;
}
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary {
  background: var(--color-accent);
  color: var(--color-bg);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 60px -4px rgba(11,164,207,0.65), 0 14px 30px -8px rgba(11,164,207,0.4);
}

.btn--magenta {
  background: var(--color-magenta);
  color: var(--color-bg);
}
.btn--magenta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 60px -4px rgba(255,61,113,0.65), 0 14px 30px -8px rgba(255,61,113,0.4);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-line-2);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.4);
}

/* ============================================================
   RULES (numbered list)
   ============================================================ */
.rules {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-line);
}
.rules li {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  color: var(--color-text-mute);
  font-size: 0.95rem;
}
.rules span {
  font-family: var(--font-display);
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  min-width: 2ch;
}
.rules--end span { color: var(--color-magenta); }

/* ============================================================
   FIELDS / INPUTS
   ============================================================ */
.grid--2 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 640px) {
  .grid--2 { grid-template-columns: 1fr; }
}

.field {
  display: block;
  position: relative;
}
.field__label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-mute);
  margin-bottom: 0.65rem;
}
.field__hint {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: var(--color-text-low);
  line-height: 1.5;
}

.field input[type="text"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--color-line-2);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  color: var(--color-text);
  font-size: 1rem;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  resize: vertical;
  font-family: var(--font-body);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--color-text-low);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(11,164,207,0.04);
  box-shadow: 0 0 0 3px rgba(11,164,207,0.18);
}

.field--big input,
.field--big textarea {
  font-size: 1.1rem;
  padding: 1.15rem 1.2rem;
}

.field__prefix {
  display: flex;
  align-items: stretch;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--color-line-2);
  border-radius: var(--radius);
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.field__prefix:focus-within {
  border-color: var(--color-accent);
  background: rgba(11,164,207,0.04);
  box-shadow: 0 0 0 3px rgba(11,164,207,0.18);
}
.field__prefix span {
  display: inline-flex;
  align-items: center;
  padding: 0 0.5rem 0 1.1rem;
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}
.field__prefix input {
  flex: 1;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 1rem 1.1rem 1rem 0.35rem !important;
}

.field--collapsible {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease, margin 0.4s ease;
  margin-top: 0;
}
.field--collapsible.is-visible {
  max-height: 240px;
  opacity: 1;
  margin-top: 1.5rem;
}

/* ============================================================
   OPTIONS (radio cards)
   ============================================================ */
.options {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.opt {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--color-line-2);
  border-radius: var(--radius);
  cursor: pointer;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.35s ease;
}
.opt::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--color-line-2);
  flex-shrink: 0;
  margin-top: 4px;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt__label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.opt__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-text);
}
.opt__hint {
  font-size: 0.88rem;
  color: var(--color-text-mute);
  line-height: 1.5;
}

.opt:hover {
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.03);
}
.opt:has(input:checked) {
  border-color: var(--color-accent);
  background: linear-gradient(180deg, rgba(11,164,207,0.08), rgba(11,164,207,0.02));
  box-shadow: 0 0 0 1px var(--color-accent) inset, 0 14px 40px -16px rgba(11,164,207,0.5);
}
.opt:has(input:checked)::before {
  border-color: var(--color-accent);
  background: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(11,164,207,0.18), inset 0 0 0 3px var(--color-bg);
}

/* Kill switch options — magenta when selected */
.opt--kill:has(input:checked) {
  border-color: var(--color-magenta);
  background: linear-gradient(180deg, rgba(255,61,113,0.10), rgba(255,61,113,0.02));
  box-shadow: 0 0 0 1px var(--color-magenta) inset, 0 14px 40px -16px rgba(255,61,113,0.5);
}
.opt--kill:has(input:checked)::before {
  border-color: var(--color-magenta);
  background: var(--color-magenta);
  box-shadow: 0 0 0 4px rgba(255,61,113,0.18), inset 0 0 0 3px var(--color-bg);
}
.opt--kill:has(input:checked) .opt__hint { color: var(--color-magenta); }

/* Hot option — agora/urgent */
.opt--hot:has(input:checked) .opt__title::after {
  content: " · agenda quente";
  color: var(--color-magenta);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* ============================================================
   STEP NAV
   ============================================================ */
.step__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-line);
}
@media (max-width: 540px) {
  .step__nav { flex-direction: column-reverse; align-items: stretch; }
  .step__nav .btn { justify-content: center; }
}

/* ============================================================
   END STATES (success / rejected)
   ============================================================ */
.step--end { text-align: left; }
.end-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 5rem;
  line-height: 1;
  display: inline-block;
  margin-bottom: 1.5rem;
  transform: rotate(0deg);
  animation: markIn 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.end-mark--ok { color: var(--color-accent); }
.end-mark--no { color: var(--color-magenta); }
@keyframes markIn {
  from { opacity: 0; transform: scale(0.4) rotate(-45deg); }
  to   { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--color-line);
  background: var(--color-bg-deep);
  padding: 2rem 0;
  margin-top: var(--space-lg);
}
.footer__inner {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-mute);
}
.footer__meta {
  display: flex;
  gap: 2rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-low);
  flex-wrap: wrap;
}

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

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Smaller screens */
@media (max-width: 540px) {
  .navbar__tag { display: none; }
  .navbar__meta { display: none; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
