:root {
  color-scheme: dark;
  --bg: #07090f;
  --panel: #111722;
  --panel-soft: #17202f;
  --line: rgba(255, 255, 255, 0.1);
  --gold: #d8b76a;
  --gold-strong: #f0cf79;
  --text: #f7f3ea;
  --muted: #aab3c2;
  --good: #60d394;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(216, 183, 106, 0.2), transparent 30%),
    linear-gradient(135deg, #06080e 0%, #0e1521 45%, #050608 100%);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.topbar,
.screen,
article {
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    var(--panel);
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 26px 30px;
}

.topbar h1,
.screen h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.topbar p,
.screen p {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-strong);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.screen {
  min-height: 560px;
  padding: clamp(22px, 4vw, 42px);
}

.screen-consult {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 34px;
  align-items: center;
}

.hero-copy p {
  max-width: 640px;
  line-height: 1.7;
}

.plate-card,
.payment-card form {
  display: grid;
  gap: 14px;
}

.plate-card {
  padding: 26px;
  border: 1px solid rgba(216, 183, 106, 0.28);
  background: rgba(0, 0, 0, 0.26);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  background: #0b1019;
  color: var(--text);
  padding: 0 14px;
  outline: none;
}

textarea {
  min-height: 112px;
  padding: 14px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--gold);
}

button,
.whatsapp-button {
  min-height: 50px;
  border: 0;
  background: linear-gradient(135deg, var(--gold-strong), var(--gold));
  color: #14100a;
  cursor: pointer;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.ghost-button {
  min-width: 140px;
  border: 1px solid rgba(216, 183, 106, 0.35);
  background: transparent;
  color: var(--gold-strong);
}

.screen-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 22px;
}

.vehicle-layout,
.pix-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 18px;
}

article {
  padding: 22px;
}

.details-card {
  margin-top: 18px;
}

.card-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.card-heading p {
  margin: 0;
  color: var(--gold-strong);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-heading span {
  color: var(--muted);
  font-size: 0.82rem;
}

.vehicle-summary,
.details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.details-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vehicle-summary div,
.detail-item {
  min-height: 78px;
  padding: 14px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

dt,
.detail-item span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

dd,
.detail-item strong {
  display: block;
  margin: 8px 0 0;
  color: var(--text);
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}

.ipva-card strong {
  display: block;
  color: var(--gold-strong);
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  line-height: 1;
}

.ipva-card small {
  display: block;
  margin: 12px 0 22px;
  color: var(--muted);
}

.discount-box {
  display: grid;
  gap: 6px;
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid rgba(96, 211, 148, 0.32);
  background: linear-gradient(135deg, rgba(96, 211, 148, 0.14), rgba(216, 183, 106, 0.08));
}

.discount-box span,
.payment-total-card span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.discount-box strong {
  color: var(--good);
  font-size: 2rem;
  line-height: 1;
}

.discount-box small {
  margin: 0;
  color: var(--text);
  line-height: 1.45;
}

.payment-total-card {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid rgba(216, 183, 106, 0.2);
  background: rgba(0, 0, 0, 0.18);
}

.payment-total-card div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.payment-total-card div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.payment-total-card strong {
  color: var(--text);
  text-align: right;
}

.payment-total-card .payment-final strong {
  color: var(--gold-strong);
  font-size: 1.25rem;
}

.payment-note,
.plate-card small {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.pix-card {
  border-color: rgba(216, 183, 106, 0.32);
}

.qr-box {
  position: relative;
  display: grid;
  place-items: center;
  width: min(230px, 100%);
  aspect-ratio: 1;
  padding: 14px;
  margin: 4px auto 18px;
  border: 1px solid rgba(216, 183, 106, 0.45);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(232, 226, 212, 0.96)),
    #f7f3ea;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.24),
    inset 0 0 0 6px rgba(255, 255, 255, 0.42);
}

.qr-box img {
  display: block;
  width: 100%;
  max-width: 188px;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

#pix-copy {
  min-height: 88px;
  max-height: 116px;
  font-size: 0.78rem;
  line-height: 1.45;
}

.pix-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.confirmation-screen {
  display: grid;
  place-items: center;
}

.confirmation-card {
  width: min(680px, 100%);
  border-color: rgba(96, 211, 148, 0.45);
}

.confirmation-card p {
  line-height: 1.7;
}

.whatsapp-button {
  display: grid;
  place-items: center;
  margin-top: 18px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .topbar,
  .screen-header {
    display: grid;
  }

  .screen-consult,
  .vehicle-layout,
  .pix-layout {
    grid-template-columns: 1fr;
  }

  .details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .app-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  .screen,
  article {
    padding: 18px;
  }

  .vehicle-summary,
  .details-grid,
  .pix-actions {
    grid-template-columns: 1fr;
  }
}
