:root {
  --bg: #eef2f8;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --ink: #23324a;
  --muted: #6f7d93;
  --line: #d6dee9;
  --brand: #254a91;
  --brand-soft: #dbe7ff;
  --accent: #c04b2f;
  --success: #2a8a63;
  --success-soft: #e9f7f0;
  --warn-soft: #fff8df;
  --shadow: 0 16px 40px rgba(32, 58, 102, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37, 74, 145, 0.08), transparent 28%),
    linear-gradient(180deg, #f4f7fb 0%, var(--bg) 100%);
  color: var(--ink);
}

button,
a {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  padding: 8px 10px 20px;
}

.top-meta,
.brand-bar,
.survey-card {
  width: min(100%, 560px);
  margin: 0 auto;
}

.top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.76rem;
  padding: 2px 2px 10px;
}

.meta-left,
.meta-live,
.deadline,
.status-row p,
.footer-copy,
.progress-copy,
.call-meta,
.result-subtitle,
.question-hint,
.kicker {
  margin: 0;
}

.meta-left {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.meta-live {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #d34f42;
  font-weight: 800;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 5px rgba(211, 79, 66, 0.14);
}

.brand-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 0 12px;
  border-top: 1px solid rgba(37, 74, 145, 0.08);
  border-bottom: 4px solid var(--brand);
}

.brand-bar h1 {
  margin: 0;
  font-family: "DM Serif Display", serif;
  font-size: clamp(1.7rem, 7vw, 3.3rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--brand);
}

.brand-bar p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.deadline {
  font-weight: 800;
  color: var(--accent);
}

.survey-card {
  margin-top: 14px;
  background: var(--surface);
  border: 1px solid rgba(37, 74, 145, 0.14);
  box-shadow: var(--shadow);
  overflow: hidden;
}

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

.eyebrow-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.eyebrow,
.approval-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.eyebrow {
  background: #db5334;
  color: #fff;
}

.eyebrow-secondary,
.approval-copy {
  color: var(--muted);
  font-size: 0.88rem;
}

.back-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  padding: 0;
}

.card-body {
  padding: 16px 14px 20px;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

.kicker {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.headline {
  margin: 10px 0 0;
  font-family: "DM Serif Display", serif;
  font-size: clamp(1.65rem, 7vw, 2.8rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.alert-box {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  padding: 12px;
  background: var(--warn-soft);
  border-left: 4px solid #e2b84a;
  color: #4d4a39;
  font-size: 0.92rem;
}

.alert-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid #e2b84a;
  border-radius: 999px;
  font-weight: 800;
  color: #c28a08;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--muted);
}

.question-block {
  margin-top: 18px;
}

.question-step {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.question-block h3 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.2;
}

.question-hint {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.option-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.option-button {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 15px 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  border-radius: 18px;
  transition:
    transform 120ms ease,
    border-color 120ms ease,
    box-shadow 120ms ease,
    background 120ms ease;
}

.option-button:active,
.option-button:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 74, 145, 0.35);
  box-shadow: 0 10px 20px rgba(37, 74, 145, 0.08);
  background: var(--surface-soft);
}

.option-marker {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid #c1c8d3;
  flex: 0 0 auto;
}

.option-copy strong {
  display: block;
  font-size: 0.96rem;
}

.option-copy span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.approval-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.approval-pill {
  background: var(--success);
  color: #fff;
}

.result-subtitle {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.value-panel {
  margin-top: 20px;
  padding: 18px 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #f8fbff 0%, #f5fbf7 100%);
  text-align: center;
}

.value-panel p,
.value-panel span {
  margin: 0;
  color: var(--muted);
}

.value-panel strong {
  display: block;
  margin: 8px 0;
  font-size: clamp(1.75rem, 10vw, 3.6rem);
  line-height: 0.95;
  color: var(--success);
}

.benefit-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.benefit-item {
  padding: 12px 12px 12px 38px;
  border: 1px solid #c9e5d6;
  background: var(--success-soft);
  border-radius: 14px;
  position: relative;
  font-size: 0.92rem;
  font-weight: 600;
}

.benefit-item::before {
  content: "✓";
  position: absolute;
  left: 13px;
  top: 11px;
  color: var(--success);
  font-weight: 900;
}

.result-cta-copy {
  margin: 20px 0 0;
  text-align: center;
  font-size: 0.98rem;
  font-weight: 800;
}

.call-button {
  display: block;
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #4da57d 0%, #2a8a63 100%);
  color: #fff;
  text-decoration: none;
  text-align: center;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 18px 30px rgba(42, 138, 99, 0.25);
}

.call-meta {
  margin-top: 12px;
  text-align: center;
  color: var(--muted);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-copy {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-live {
  color: #d34f42;
  font-weight: 900;
}

.progress-track {
  height: 4px;
  background: #e4eaf4;
}

.progress-fill {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, var(--brand) 0%, #5d7fbe 100%);
  transition: width 180ms ease;
}

@media (min-width: 768px) {
  .page-shell {
    padding: 12px 24px 40px;
  }

  .top-meta,
  .brand-bar,
  .survey-card {
    width: min(100%, 920px);
  }

  .brand-bar {
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
  }

  .card-topline {
    padding: 20px 32px;
  }

  .card-body {
    padding: 28px 32px 30px;
  }

  .headline {
    max-width: 760px;
  }

  .question-block {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }

  .card-footer {
    padding: 18px 32px;
  }
}
