:root {
  --pb-blue: #0066FF;
  /* Darken primary blue ~12% for hover (stays in sync if --pb-blue changes) */
  --pb-blue-hover: color-mix(in srgb, var(--pb-blue) 88%, black);
  --text: #1a1a1a;
  --muted: #5c5c5c;
  --border: #e5e5e5;
  --font-sans: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-serif: "Roboto Serif", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  /* Extra space when browser scrolls focused fields above the keyboard (in-app browsers / mobile) */
  scroll-padding-bottom: max(96px, env(safe-area-inset-bottom, 0px));
}
body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #fafafa;
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
}
/* Header — logo (1146px container) */
.site-header {
  width: 100%;
  position: relative;
  z-index: 50;
  padding: 8px 0;
  background: #fff;
}
.site-header__container {
  max-width: 1146px;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
}
@media (min-width: 1024px) {
  .site-header__container { padding-left: 0; padding-right: 0; }
}
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  min-height: 100%;
}
@media (min-width: 1024px) {
  .site-header__row { gap: 30px; }
}
.site-header__logo {
  display: flex;
  margin-right: auto;
  width: 93px;
  height: 35px;
  flex-shrink: 0;
  order: 1;
}
@media (min-width: 640px) {
  .site-header__logo { width: 142px; }
}
@media (min-width: 1024px) {
  .site-header__logo { margin-right: 0; }
}
.site-header__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 24px 18px 40px;
}
@media (min-width: 1024px) {
  .wrap {
    max-width: 1024px;
    padding-left: 24px;
    padding-right: 24px;
  }
  /* Keep campaign form + banner column narrow; result screen uses full .wrap width */
  #campaignMain {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
}
h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  text-align: center;
  font-weight: 700;
  margin-bottom: 12px;
}
.intro {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 22px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,0.06);
}
/* Same source as credit-report-cpl (Next may serve AVIF/WebP from this PNG via /_next/image) */
.cpl-banner-wrap {
  line-height: 0;
}
.cpl-banner {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
/* Bottom stat strip — Poppins 10/16; 328×32, padding 8×12, gap 4, bottom radii 8 */
.cpl-banner-bottom-text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-sizing: border-box;
  width: calc(100% + 32px);
  margin-left: -16px;
  margin-right: -16px;
  margin-top: 0;
  /* Pull into .form-body bottom padding (22px) — same idea as side bleed */
  margin-bottom: -22px;
  padding: 8px 12px;
  opacity: 1;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  font-family: "Poppins", var(--font-sans);
  font-size: 10px;
  line-height: 16px;
  letter-spacing: 0;
  background: #F4FBF6;
  margin-top: 16px;
  text-align: center;
}
.cpl-banner-bottom-text-number {
  font-weight: 600;
  font-style: normal;
  color: #07903C;
}
.cpl-banner-bottom-text-rest {
  font-weight: 400;
  font-style: normal;
}

.form-body { padding: 20px 16px 22px; }
.form-body h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.field { margin-bottom: 14px; }
.field label { font-size: 0.78rem; color: var(--muted); display: block; margin-bottom: 6px; }
input[type="text"], input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}
input:focus {
  outline: none;
  border-color: var(--pb-blue);
  box-shadow: 0 0 0 3px rgba(0,102,204,0.12);
}
.hint { font-size: 0.75rem; color: var(--muted); margin-top: 6px; }
.terms {
  font-size: 0.72rem;
  color: var(--muted);
  margin: 14px 0;
  line-height: 1.45;
}
.terms--checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
}
.terms--checkbox input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--pb-blue);
  cursor: pointer;
}
.terms-label {
  cursor: pointer;
  display: block;
  line-height: 1.45;
}
.terms a { color: var(--pb-blue); text-decoration: none; }
.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--pb-blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-submit:hover:not(:disabled) { background: var(--pb-blue-hover); }
.btn-submit:disabled { opacity: 0.65; cursor: not-allowed; }
.step2 { display: none; margin-top: 8px; }
.step2.visible { display: block; }
.status { margin-top: 12px; font-size: 0.88rem; text-align: center; min-height: 1.2em; white-space: pre-wrap; }
.status.err { color: #b00020; }
.status.ok { color: #0d7a4d; }
.config-hint {
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 16px;
  padding: 10px;
  background: #fffbe6;
  border: 1px solid #ffe58f;
  border-radius: 8px;
}
/* Post–applyShortAuth marketing screen (mirrors credit-report CPL success / follow-up) */
.result-screen { display: block; }
.result-screen[hidden] { display: none !important; }
/* Match .card under #campaignMain — radius, shadow, border */
.result-screen__inner {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  min-height: 60vh;
  padding: 16px 0 32px;
}
.result-screen__container { max-width: 1024px; margin: 0 auto; padding: 0 16px; }
.result-screen__greet {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  text-align: center;
  margin: 12px 0 8px;
  color: var(--text);
}
.result-screen__sub {
  font-size: 0.8125rem;
  color: rgba(28, 29, 31, 0.7);
  text-align: center;
  max-width: 520px;
  margin: 0 auto 16px;
  line-height: 1.45;
}
.result-screen__panel {
  background: #fff;
  border-radius: 16px 16px 0 0;
  /* padding: 16px; */
  /* box-shadow: 0 1px 0 rgba(0,0,0,0.06); */
}
@media (min-width: 1024px) {
  .result-screen__inner {
    min-height: auto;
    padding: 24px 0;
  }
  .result-screen__panel {
    border-radius: 16px;
    /* border: 1px solid #e4e4e3; */
    /* box-shadow: 0 0 14px rgba(0,0,0,0.12); */
    padding: 24px;
  }
  .result-screen__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    align-items: center;
  }
}
.result-screen__hero { max-width: 270px; margin: 0 auto; display: block; height: auto; object-fit: contain; }
.result-screen__headline-wrap { text-align: center; margin-top: 8px; }
.result-screen__headline {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  color: var(--text);
  display: block;
  margin-bottom: 8px;
}
.result-screen__app-line { color: var(--text); font-size: 0.95rem; }
.result-screen__app-name {
  color: var(--pb-blue);
  font-weight: 600;
  position: relative;
  display: inline-block;
}
.result-screen__app-name img { display: block; margin-top: 4px; max-width: 220px; height: auto; margin-left: auto; margin-right: auto; }
.result-screen__prize { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.result-screen__prize-amt {
  font-family: Roboto, system-ui, sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: clamp(2.5rem, 8vw, 3.1rem);
  line-height: 1;
}
.result-screen__cta {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.result-screen__btn-dl {
  width: 100%;
  max-width: 400px;
  padding: 14px;
  background: var(--pb-blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}
.result-screen__btn-dl:hover { background: var(--pb-blue-hover); }
.result-screen__stores {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 400px;
}
.result-screen__stores-note { font-size: 11px; color: #1c1d1f; }
.result-screen__store-icons { display: flex; gap: 8px; }
.result-screen__store-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #a6a6a6;
  background: #000;
  border-radius: 6px;
  padding: 8px;
}
.result-screen__store-icons img { display: block; width: 60px; height: auto; }
/* Desktop: QR | dashed OR | app badges (row); hidden on small screens */
.result-screen__download {
  display: none;
}
.result-screen__qr-frame {
  border: 2px dashed #d0d1d2;
  border-radius: 8px;
  padding: 8px;
  flex-shrink: 0;
}
.result-screen__qr-frame img {
  display: block;
  width: 164px;
  max-width: 100%;
  height: auto;
}
@media (min-width: 1024px) {
  .result-screen__download {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }
  .result-screen__store-lg img {
    width: 140px;
    height: auto;
  }
  .result-screen__store-icons--stack {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .result-screen__stores {
    display: none;
  }
}
.result-screen__or {
  display: none;
}
@media (min-width: 1024px) {
  .result-screen__or {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    flex-shrink: 0;
    min-width: 24px;
    gap: 0;
    color: rgba(28, 29, 31, 0.55);
    font-size: 12px;
    font-weight: 600;
  }
  .result-screen__or::before,
  .result-screen__or::after {
    content: "";
    width: 1px;
    flex: 1 1 0;
    min-height: 20px;
    background: repeating-linear-gradient(to bottom, #d0d1d2 0 4px, transparent 4px 14px);
  }
}
