/* ============================================================
   Soper Home — theme tokens
   Rebuilt from the live Perspective funnel (dark page, light-blue
   accent, white body copy, same light-blue progress bar).
   ============================================================ */
:root {
  --color-text: #FFFFFF;
  --color-eyebrow: #B8B8B8;
  --color-bg: #202020;
  --color-field-bg: #69B1FF;   /* primary brand light-blue — buttons, answer-card chips */
  --color-field-bg-hover: #4f9bf0;
  --color-accent: #69B1FF;     /* headline highlight */
  --color-star: #FACC15;
  --color-progress: #69B1FF;
  --color-border: #3A3A3A;
  --color-media-bg: #EAEAEA;   /* light-gray backing behind icon-style answer cards */
  --color-input-text: #1A1A1A; /* text inside white form fields, not the page text color */
  --color-error: #FF6B5E;
  --radius: 14px;
  --radius-sm: 10px;
  --font: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 640px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; }

/* ---------- Header ---------- */
.site-header {
  padding: 16px 24px;
  background: var(--color-bg);
}
.site-header__logo img {
  height: 34px;
  width: auto;
}

/* ---------- Layout ---------- */
.app {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
}

.screen {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 24px 56px;
  animation: screenEnter 480ms ease both;
}
.screen--tight-top { padding-top: 8px; }
@keyframes screenEnter {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.narrow { max-width: var(--max-width); margin-left: auto; margin-right: auto; }

/* ---------- Typography ---------- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 10px;
}

h1.headline {
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--color-text);
}
h1.headline .accent { color: var(--color-accent); }

h2.question {
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--color-text);
  text-align: left;
  margin: 20px 0 4px;
}
h2.question .accent { color: var(--color-accent); }
.question-sub {
  text-align: left;
  font-size: 15px;
  color: var(--color-eyebrow);
  margin: 0 0 24px;
}

@media (min-width: 640px) {
  h1.headline { font-size: 34px; }
  h2.question { font-size: 30px; }
}

.question-head { text-align: left; margin-bottom: 4px; }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  background: var(--color-field-bg);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  transition: background 150ms ease, transform 150ms ease;
}
.btn-primary:hover { background: var(--color-field-bg-hover); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary-wrap { display: flex; justify-content: center; margin: 4px 0 32px; }

/* ---------- Choice answers (image / icon cards) ----------
   2-up on phones, 4-up from 768px — confirmed by loading the live
   source funnel at 375 / 768 / 1280px: it stays 2 columns right up to
   768px, where it jumps straight to 4, and 1280px desktop still shows
   4 columns inside a narrow centered column rather than going wider or
   full-bleed. An odd leftover item (the 5th count option) left-aligns
   and wraps to its own row instead of centering itself. */
.answers-media-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 32px;
}
.answers-media-grid .answer-card { width: calc(50% - 8px); }
@media (min-width: 768px) {
  .answers-media-grid.cols-4 .answer-card { width: calc(25% - 12px); }
}

.answer-card {
  display: flex;
  flex-direction: column;
  border: none;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-media-bg);
  transition: transform 150ms ease, box-shadow 150ms ease;
  text-align: center;
}
.answer-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.3); }
.answer-card:active { transform: scale(0.98); }
.answer-card:disabled { opacity: 0.7; }
.answer-card__media {
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
  background: var(--color-media-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.answer-card__media img { width: 100%; height: 100%; object-fit: cover; }
.answer-card__label {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 10px;
  background: var(--color-field-bg);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
}

/* ---------- Contact form ---------- */
.contact-form { margin-bottom: 20px; }
.input-wrap { position: relative; margin-bottom: 14px; }
.input-wrap .field-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  font-size: 17px;
  pointer-events: none;
}
.input-wrap input[type="text"],
.input-wrap input[type="email"],
.input-wrap input[type="tel"] {
  width: 100%;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 16px 16px 16px 46px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  color: var(--color-input-text);
}
.input-wrap input:focus { outline: none; border-color: var(--color-field-bg); }

.phone-wrap {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 14px;
}
.phone-wrap:focus-within { border-color: var(--color-field-bg); }
.phone-code {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: #F0F0F0;
  border-right: 1px solid var(--color-border);
  font-size: 16px;
  color: var(--color-input-text);
  white-space: nowrap;
}
.phone-wrap input[type="tel"] {
  border: none;
  flex: 1;
  min-width: 0;
  padding: 16px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  color: var(--color-input-text);
  background: #fff;
}
.phone-wrap input[type="tel"]:focus { outline: none; }

.field-error {
  color: var(--color-error);
  font-size: 13px;
  margin: -10px 0 14px 4px;
  display: none;
}
.field-error.visible { display: block; }

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 24px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text);
}
.consent-row input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--color-field-bg);
  flex-shrink: 0;
}
.consent-row a { text-decoration: underline; color: var(--color-accent); }

/* ---------- Reviews bar ---------- */
.reviews-bar { text-align: left; margin: 8px 0 12px; }
.reviews-bar__avatars { display: flex; justify-content: flex-start; margin-bottom: 8px; }
.reviews-bar__avatars img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--color-bg);
  object-fit: cover;
  margin-left: -10px;
}
.reviews-bar__avatars img:first-child { margin-left: 0; }
.reviews-bar__stars { color: var(--color-star); font-size: 18px; letter-spacing: 2px; margin-bottom: 6px; }
.reviews-bar__text { font-size: 14px; color: var(--color-text); }
.reviews-bar__text strong { font-weight: 700; }

/* ---------- Hero image ---------- */
.hero-image { margin-bottom: 20px; border-radius: var(--radius); overflow: hidden; }
.hero-image img { width: 100%; display: block; }

/* ---------- Thank-you page ---------- */
.thanks-eyebrow {
  color: var(--color-text);
  font-weight: 700;
  font-size: 18px;
  margin: 8px 0 2px;
}
.thanks-headline {
  color: var(--color-text);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 20px;
}
@media (min-width: 640px) {
  .thanks-headline { font-size: 40px; }
}
.thanks-body {
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-eyebrow);
  text-align: left;
  margin-bottom: 24px;
}
.thanks-steps { list-style: none; margin: 0 0 28px; padding: 0; }
.thanks-steps li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}
.thanks-steps img { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.thanks-steps div { margin: 0; font-size: 15px; line-height: 1.4; color: var(--color-text); }
.thanks-steps strong { font-weight: 700; }
.thanks-cta {
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 14px;
}
.btn-secondary-wrap { display: flex; justify-content: center; margin: 4px 0 32px; }
.btn-secondary {
  display: inline-flex;
  width: 100%;
  max-width: 420px;
  justify-content: center;
  background: var(--color-field-bg);
  color: #000;
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}

/* ---------- Confetti ---------- */
.confetti-piece {
  position: fixed;
  top: -10px;
  width: 8px;
  height: 14px;
  opacity: 0.9;
  z-index: 999;
  pointer-events: none;
  animation: confettiFall linear forwards;
}
@keyframes confettiFall {
  to { transform: translateY(110vh) rotate(540deg); opacity: 0.4; }
}

/* ---------- Progress bar ---------- */
.progress-bar {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 50;
}
.progress-bar__fill {
  height: 100%;
  width: 0%;
  background: var(--color-progress);
  transition: width 320ms ease;
}

/* ---------- Misc ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}
