:root{
  --red:#c8141d;
  --red-dark:#9b1118;
  --red-soft:#fff3f4;
  --text:#19191d;
  --muted:#666a73;
  --border:rgba(200,20,29,0.14);
  --font-display:"Barlow Condensed", sans-serif;
  --font-body:"Inter", sans-serif;
}

*{box-sizing:border-box}

html,body{
  margin:0;
  min-height:100%;
  background:#fafafa;
  color:var(--text);
  font-family:var(--font-body);
}

body{
  padding:20px 16px 24px;
}

.page-shell{
  max-width:760px;
  margin:0 auto;
}

.app{
}

.screen{
  display:none;
}

.screen.is-active{
  display:block;
}

.screen-inner{
  width:100%;
  max-width:620px;
  margin:0 auto;
  padding:8px 0 24px;
  animation:fadeIn .24s ease;
}

@keyframes fadeIn{
  from{opacity:0;transform:translateY(12px)}
  to{opacity:1;transform:translateY(0)}
}

@keyframes slideUp{
  from{opacity:0;transform:translateY(16px)}
  to{opacity:1;transform:translateY(0)}
}

.brand-row {
    margin: 20px auto 38px auto;
    display: flex;
    justify-content: left;
}

.brand-row-middle {
    margin: 20px auto 38px auto;
    display: flex;
    justify-content: center;
}

.brand-logo{
  display:block;
  width:100px;
  height:auto;
}

.eyebrow{
  display:inline-block;
  font-size:16px;
  font-weight:800;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--red);
  margin:20px 0 0px 0;
}

h1,h2,h3{
  margin:0;
  line-height:.96;
  font-family:var(--font-display);
  letter-spacing:-.02em;
}

.hero-title{
  font-size:clamp(54px, 14vw, 88px);
  max-width:540px;
}

.section-title{
  margin-top: 6px;
  font-size:clamp(42px, 11vw, 68px);
}

.hero-subtitle,
.section-subtitle{
  margin:16px 0 0;
  color:#353740;
  font-size:18px;
  line-height:1.55;
  max-width:560px;
}

.section-subtitle{
  font-size:16px;
}

.info-pills {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: transparent;
  border: solid 1px rgba(25,25,29,0.12);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}

.pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.simple-pills{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:22px;
}

.simple-pill{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--border);
  color:var(--red);
  font-size:13px;
  font-weight:700;
}

.btn,
.link-btn,
.dev-dot{
  border:none;
  cursor:pointer;
  transition:transform .16s ease, opacity .16s ease, background .16s ease, border-color .16s ease;
  font-family:var(--font-body);
}

.btn:hover,
.link-btn:hover,
.dev-dot:hover{
  transform:translateY(-1px);
}

.btn{
  min-height:54px;
  padding:0 22px;
  border-radius:16px;
  font-size:15px;
  font-weight:700;
}

.btn-primary{
  background:var(--red);
  color:#fff;
  box-shadow:0 2px 8px rgba(200,20,29,0.15);
}

.btn-primary:hover{
  box-shadow:0 4px 16px rgba(200,20,29,0.25);
}

.btn-primary:active{
  transform:scale(0.97);
  box-shadow:0 1px 4px rgba(200,20,29,0.2);
}

.btn-secondary{
  background:#fff;
  color:var(--text);
  border:1px solid var(--border);
}

.link-btn{
  background:transparent;
  color:var(--red);
  font-size:14px;
  font-weight:700;
  padding:0;
}

.welcome-screen .btn-primary{
  margin-top:28px;
  width:100%;
}

.top-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}

.progress-wrap{
  margin-top:20px;
}

.progress-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:13px;
  font-weight:700;
  color:var(--muted);
}

.progress-bar{
  margin-top:10px;
  width:100%;
  height:10px;
  background:#f4d9dc;
  border-radius:999px;
  overflow:hidden;
}

.progress-fill{
  width:20%;
  height:100%;
  background:linear-gradient(90deg, var(--red-dark), var(--red));
  border-radius:999px;
  transition:width .4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:0 0 8px rgba(200,20,29,0.3);
}

.question-wrap{
  margin-top:14px;
}

.question-label{
  display:inline-block;
  margin: 26px 0 0 0;
  color:var(--red);
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:12px;
  font-weight:800;
}

.question-text{
  font-size:clamp(34px, 9vw, 54px);
  max-width:580px;
}

.answers-list{
  margin-top:6px;
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}

.answer-option{
  width:100%;
  text-align:left;
  padding:16px;
  min-height:78px;
  border-radius:18px;
  border:1px solid var(--border);
  background:#fff;
  display:flex;
  align-items:center;
  gap:14px;
  cursor:pointer;
  transition:all .2s ease;
}

.answer-option:hover{
  border-color:rgba(200,20,29,0.28);
  transform:translateY(-1px);
  box-shadow:0 4px 12px rgba(200,20,29,0.08);
}

.answer-option:active{
  transform:scale(0.98);
}

.answer-option.selected{
  border-color:rgba(200,20,29,0.38);
  background:var(--red-soft);
  transform:translateY(0);
  box-shadow:0 2px 8px rgba(200,20,29,0.1);
}

.answer-letter{
  width:42px;
  height:42px;
  border-radius:12px;
  background:#f6f6f7;
  color:var(--red);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  font-size:15px;
  flex:0 0 42px;
  transition:all .2s ease;
}

.answer-option.selected .answer-letter{
  background:var(--red);
  color:#fff;
}

.answer-text{
  font-size:16px;
  font-weight:700;
  color:var(--text);
  line-height:1.35;
}

.actions-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:28px;
}

.email-form{
  margin-top:24px;
}

.field{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.field label{
  font-size:14px;
  font-weight:700;
}

.field input{
  width:100%;
  min-height:56px;
  border-radius:16px;
  border:1px solid var(--border);
  background:#fff;
  padding:0 16px;
  font-size:16px;
  outline:none;
  transition:border-color .2s ease, box-shadow .2s ease;
}

.field input:focus{
  border-color:rgba(200,20,29,0.42);
  box-shadow:0 0 0 3px rgba(200,20,29,0.08);
}

/* ROW */
.checkbox-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
  padding-top: 4px;
}

/* CUSTOM CHECKBOX */
.checkbox-row input {
  appearance: none;
  -webkit-appearance: none;

  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  box-sizing: border-box;
  border: 2px solid var(--red);
  border-radius: 4px;
  background: #fff;

  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* HOVER */
.checkbox-row input:hover {
  border-color: var(--red-dark);
}

/* CHECKED STATE */
.checkbox-row input:checked {
  background: var(--red);
  border-color: var(--red);
  transform: scale(1.05);
}

/* CHECKMARK */
.checkbox-row input:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 7px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -60%) rotate(45deg);
}

/* TEXT */
.checkbox-row span {
  color: var(--text);
}

.success-screen{
  text-align:center;
  padding-top:28px;
}

.success-screen .eyebrow,
.success-screen .section-title,
.success-screen .email-preview,
.success-screen .success-note,
.success-screen .btn{
  animation:slideUp .4s ease both;
}

.success-screen .eyebrow{ animation-delay:.1s }
.success-screen .section-title{ animation-delay:.2s }
.success-screen .email-preview{ animation-delay:.3s }
.success-screen .success-note{ animation-delay:.4s }
.success-screen .btn:first-of-type{ animation-delay:.5s }
.success-screen .btn:last-of-type{ animation-delay:.55s }

.success-badge {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--red); /* red circle */
  
  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0 auto 18px;
}

/* SVG */
.success-icon {
  width: 44px;
  height: 44px;
  fill: white; /* check color */
}

.email-preview{
  margin:18px auto 0;
  width:100%;
  max-width:100%;
  padding:14px 18px;
  border-radius:16px;
  background:var(--red-soft);
  color:var(--red);
  font-size:17px;
  font-weight:400;
}

.success-note{
  margin:16px auto 0;
  max-width:400px;
  color:var(--muted);
  line-height:1.55;
}

.success-screen .btn{
  margin:12px auto 0;
}

.dev-switcher{
  position:fixed;
  left:50%;
  bottom:12px;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  background:rgba(25,25,29,0.86);
}

.dev-dot{
  width:10px;
  height:10px;
  padding:0;
  border-radius:999px;
  background:rgba(255,255,255,0.42);
}

.dev-dot.active-dot{
  background:#fff;
}

@media (max-width:640px){
  body{
    padding:16px 24px 24px;
  }

  .screen-inner{
    max-width:100%;
  }

  .top-row{
    flex-direction:column;
  }

  .btn{
    width:100%;
  }

  .actions-row .btn{
    flex:1 1 100%;
  }

  .brand-logo{
    width:200px;
  }

  .hero-subtitle,
  .section-subtitle{
    font-size:16px;
  }

  .question-text{
    font-size:33px;
    line-height: 1.1;
    letter-spacing: normal;
  }

  .answer-option{
    min-height:72px;
    padding:14px;
  }

  .answer-text{
    font-size:15px;
  }
}
/* Error toast */
.error-toast{
  position:fixed;
  top:20px;
  left:50%;
  transform:translateX(-50%);
  background:#b71c1c;
  color:#fff;
  padding:14px 24px;
  border-radius:12px;
  font-size:14px;
  font-weight:600;
  font-family:var(--font-body);
  box-shadow:0 4px 20px rgba(0,0,0,0.25);
  z-index:1000;
  animation:toastIn .3s ease;
  max-width:calc(100% - 48px);
  text-align:center;
}

@keyframes toastIn{
  from{opacity:0;transform:translateX(-50%) translateY(-12px)}
  to{opacity:1;transform:translateX(-50%) translateY(0)}
}

/* Spinner inside buttons */
.spinner{
  width:20px;
  height:20px;
  border:3px solid #fff;
  border-top-color:transparent;
  border-radius:50%;
  animation:spin .7s linear infinite;
  display:inline-block;
  vertical-align:middle;
  margin-right:8px;
}

.btn-primary .spinner{
  border-color:rgba(255,255,255,0.4);
  border-top-color:transparent;
}

@keyframes spin{to{transform:rotate(360deg)}}

/* Disabled button state */
.btn:disabled{
  opacity:0.5;
  cursor:not-allowed;
  transform:none;
}

/* Link buttons */
a.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
}

/* Shake animation for consent reminder */
@keyframes shake{
  0%,100%{transform:translateX(0)}
  20%,60%{transform:translateX(-4px)}
  40%,80%{transform:translateX(4px)}
}

.shake{
  animation:shake .4s ease;
}

.consent-highlight{
  outline:2px solid var(--red);
  outline-offset:4px;
  border-radius:8px;
  transition:outline .3s ease;
}
