/**
 * Metro One Dispo — matches Campaign /campaign Dispo Blast assembled layout
 * (buildDispoBlastEmailHtml) + Campaign page chrome (glass sections, #0a0f18).
 */

:root {
  --m1-blue: #183754;
  --m1-blue-email: #183755;
  --m1-orange: #be4e28;
  --m1-slate-dark: #0a0f18;
  --m1-glass-bg: rgba(24, 55, 84, 0.15);
  --m1-glass-border: rgba(255, 255, 255, 0.1);
  --dispo-card-from: #0f172a;
  --dispo-card-to: #1e293b;
  --dispo-border: #334155;
  --dispo-sky: #38bdf8;
  --font-outfit: "Outfit", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body.dispo-app {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-outfit);
  font-size: 16px;
  line-height: 1.5;
  color: #e2e8f0;
  background: var(--m1-slate-dark);
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar — desk parity */
.dispo-app {
  scrollbar-width: thin;
  scrollbar-color: #183754 #0a0f18;
}
.dispo-app *::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.dispo-app *::-webkit-scrollbar-track {
  background: #0a0f18;
}
.dispo-app *::-webkit-scrollbar-thumb {
  background: #183754;
  border-radius: 20px;
  border: 2px solid #0a0f18;
}

.campaign-shell {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}
@media (min-width: 640px) {
  .campaign-shell {
    padding: 2rem 1.5rem 4rem;
  }
}

/* Header — Campaign Engine style */
.campaign-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(24, 55, 84, 0.3);
}
.campaign-header__logo {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.campaign-header__icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: rgba(24, 55, 84, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--m1-orange);
}
.campaign-header__title {
  margin: 0;
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  color: #fff;
}
.campaign-header__eyebrow {
  margin: 0.25rem 0 0;
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #64748b;
}

/* Glass section — matches .glass-effect + rounded-2xl border-white/10 */
.glass-section {
  background: var(--m1-glass-bg);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--m1-glass-border);
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
  .glass-section {
    padding: 1.5rem;
    border-radius: 1.25rem;
  }
}
.glass-section__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-size: 0.6875rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--m1-orange);
}
.glass-section p {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.9375rem;
  line-height: 1.6;
}
.glass-section a {
  color: #38bdf8;
  font-weight: 700;
  text-decoration: none;
}
.glass-section a:hover {
  color: var(--m1-orange);
}

/* ——— Dispo detail card (same as email body) ——— */
.dispo-layout {
  max-width: 37.5rem;
  margin: 0 auto;
  padding: 1rem 0.75rem 2.5rem;
}
@media (min-width: 640px) {
  .dispo-layout {
    padding: 1.5rem 1rem 2.5rem;
  }
}

.dispo-card {
  background: linear-gradient(180deg, var(--dispo-card-from) 0%, var(--dispo-card-to) 100%);
  border-radius: 1rem;
  border: 1px solid var(--m1-blue-email);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
@media (min-width: 640px) {
  .dispo-card {
    border-radius: 1rem;
  }
}

.dispo-card__logo {
  padding: 1.25rem 1rem 0.5rem;
  text-align: center;
}
@media (min-width: 640px) {
  .dispo-card__logo {
    padding: 1.75rem 1.5rem 0.5rem;
  }
}
.dispo-card__logo img {
  display: block;
  margin: 0 auto;
  max-width: min(240px, 100%);
  max-height: 72px;
  width: auto;
  height: auto;
  border: 0;
}

.dispo-card__body {
  padding: 0.5rem 1rem 1.5rem;
  color: #f8fafc;
}
@media (min-width: 640px) {
  .dispo-card__body {
    padding: 0.5rem 1.75rem 1.75rem;
  }
}

.dispo-title {
  margin: 0 0 1rem;
  font-size: clamp(1.15rem, 4.5vw, 1.625rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.dispo-hero-wrap {
  margin: 0 0 1rem;
  text-align: center;
}
.dispo-hero {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 0.5rem;
  border: 1px solid var(--dispo-border);
}

.dispo-address {
  margin: 0 0 0.5rem;
  font-size: clamp(1rem, 3vw, 1.125rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}
.dispo-meta {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  color: #cbd5e1;
}
.dispo-meta--muted {
  color: #94a3b8;
  margin-bottom: 1.25rem;
}

.dispo-rally {
  margin: 0 0 1.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--m1-orange);
  text-align: center;
  text-transform: uppercase;
}

/* Price stack — mobile-first single column (email table parity) */
.dispo-prices {
  background: #0f172a;
  border-radius: 0.625rem;
  border: 1px solid var(--dispo-border);
  margin-bottom: 1.25rem;
  overflow: hidden;
}
.dispo-price-row {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--dispo-border);
}
.dispo-price-row:last-child {
  border-bottom: 0;
}
@media (min-width: 640px) {
  .dispo-price-row {
    padding: 0.875rem 1.125rem;
  }
}
.dispo-price-row__label {
  margin: 0;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
}
.dispo-price-row__value {
  margin: 0.35rem 0 0;
  font-weight: 800;
}
.dispo-price-row__value--start {
  font-size: clamp(1.125rem, 4vw, 1.375rem);
  color: var(--dispo-sky);
}
.dispo-price-row__value--arv {
  font-size: clamp(1rem, 3.5vw, 1.25rem);
  color: #fff;
  font-weight: 700;
}
.dispo-price-row__value--bin {
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  color: var(--m1-orange);
}

.dispo-urgency {
  margin: 0 0 1.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.5;
  color: #dc2626;
}

.dispo-block {
  margin: 0 0 1rem;
  padding: 1rem;
  background: #1e293b;
  border-radius: 0.5rem;
  border-left: 4px solid var(--m1-blue-email);
}
.dispo-block__label {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
}
.dispo-block__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #e2e8f0;
  white-space: pre-wrap;
}

.dispo-coe {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: #cbd5e1;
}
.dispo-coe strong {
  color: #fff;
}

.dispo-contact {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: #f8fafc;
}
.dispo-contact a {
  color: var(--m1-orange);
  font-weight: 700;
  text-decoration: none;
}

.dispo-comps {
  margin: 0 0 1.25rem;
  padding: 1rem;
  background: #0f172a;
  border-radius: 0.5rem;
  border: 1px solid var(--dispo-border);
}
.dispo-comps__label {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
}
.dispo-comps__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #cbd5e1;
  white-space: pre-wrap;
}

.dispo-cta-wrap {
  text-align: center;
  margin-top: 1.5rem;
}
.dispo-cta {
  display: inline-block;
  background: var(--m1-blue-email);
  color: #fff !important;
  padding: 0.875rem 1.75rem;
  text-decoration: none;
  border-radius: 0.375rem;
  font-weight: 700;
  font-size: 0.9375rem;
  font-family: var(--font-outfit);
}
.dispo-cta:hover {
  background: #1e4a6e;
  color: #fff !important;
}

.dispo-footer {
  margin: 1.75rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--dispo-border);
  font-size: 0.6875rem;
  line-height: 1.5;
  color: #64748b;
  text-align: center;
}
