:root{
  --bg: #ffffff;
  --text: #161616;
  --text-soft: #5a5a5a;
  --accent: #161616;          /* black, like the ad */
  --accent-dark: #000000;
  --accent-soft: #f3f3f3;
  --line: #161616;
  --track: #e6e6e6;
  --error: #d62828;
  --radius: 16px;
  --font: 'Comic Neue', 'Comic Sans MS', 'Comic Sans', 'Chalkboard SE', 'Marker Felt', sans-serif;
  --font-head: var(--font);
}

*{box-sizing:border-box;}
html,body{height:100%;}
body{
  margin:0;
  font-family:var(--font);
  font-weight:700;
  color:var(--text);
  background:#fff;
  overflow:hidden;
  -webkit-font-smoothing:antialiased;
}

/* photos: blend any off-white JPG background into the pure white page */
img{mix-blend-mode:multiply;}

.progress-track{
  position:fixed;
  top:0; left:0; right:0;
  height:6px;
  background:var(--track);
  z-index:50;
}
.progress-bar{
  height:100%;
  width:0%;
  background:var(--accent);
  transition:width .5s cubic-bezier(.4,0,.2,1);
}

.app{
  position:relative;
  height:100vh;
  height:100dvh;
  width:100%;
}

.step{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:8vh 6vw;
  overflow-y:auto;
  opacity:0;
  pointer-events:none;
  transform:translateY(24px) scale(.98);
  transition:opacity .45s cubic-bezier(.4,0,.2,1), transform .45s cubic-bezier(.4,0,.2,1);
}
.step.active{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0) scale(1);
}
.step.leaving-up{
  opacity:0;
  transform:translateY(-24px) scale(.98);
}

.step-inner{
  max-width:640px;
  width:100%;
  margin:auto;
}

/* ---------- Intro (ad look) ---------- */
[data-step="intro"]{padding-bottom:84px;}
[data-step="intro"] .step-inner{
  max-width:720px;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.hero-icon{margin:0 0 6px;}
.hero-icon img{
  display:block;
  width:min(260px,52vw);
  height:auto;
  margin:0 auto;
  animation:float 3.2s ease-in-out infinite;
}
@keyframes float{
  0%,100%{transform:translateY(0) rotate(-1deg);}
  50%{transform:translateY(-6px) rotate(1deg);}
}

.headline{
  font-family:var(--font-head);
  font-weight:700;
  text-transform:uppercase;
  line-height:1;
  margin:6px 0 22px;
  letter-spacing:.01em;
}
.headline .hl-big{
  display:block;
  font-size:clamp(34px,7.4vw,64px);
  line-height:1.08;
}
.headline .hl-small{
  display:block;
  font-size:clamp(18px,3.6vw,30px);
  letter-spacing:.32em;
  margin:10px 0 8px;
  padding-left:.32em;
}
.intro-text{
  max-width:600px;
  font-size:clamp(16px,2.2vw,19px);
  line-height:1.5;
  margin:0 auto 32px;
}

/* decorative row of P's, echoing the ad */
.p-strip{
  position:fixed;
  left:0; right:0; bottom:0;
  height:46px;
  overflow:hidden;
  display:flex;
  justify-content:space-around;
  align-items:flex-end;
  padding:0 2vw;
  font-family:var(--font-head);
  font-weight:700;
  font-size:56px;
  line-height:1;
  color:var(--text);
  pointer-events:none;
  opacity:0;
  transition:opacity .45s ease;
}
body.on-intro .p-strip{opacity:1;}
.p-strip span{display:block; transform:translateY(34%);}

h1,h2{
  font-family:var(--font-head);
  font-weight:700;
  line-height:1.2;
}
h1{font-size:clamp(28px,4.2vw,44px); margin:0 0 6px;}
h2{font-size:clamp(28px,4.6vw,44px); margin:0 0 10px; text-transform:uppercase;}

.subhead{
  font-size:clamp(16px,2vw,20px);
  color:var(--text-soft);
  margin:0 0 34px;
}
.statement-sub{
  font-size:18px;
  color:var(--text-soft);
  margin:6px 0 28px;
}
.statement-sub.small{margin:2px 0 26px; font-size:16px;}

.q-label{
  font-family:var(--font-head);
  font-size:clamp(21px,3.2vw,30px);
  font-weight:700;
  line-height:1.35;
  margin-bottom:26px;
}
.q-num{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:30px;
  height:30px;
  padding:0 7px;
  background:var(--accent);
  color:#fff;
  border-radius:50%;
  font-size:15px;
  font-weight:700;
  margin-right:10px;
  vertical-align:middle;
  position:relative;
  top:-2px;
}
.q-sub{
  font-weight:700;
  margin-right:6px;
}
.req{color:var(--text); margin-left:3px;}

.quote{
  position:relative;
  margin-bottom:30px;
}
.quote-mark{
  font-family:Georgia, serif;
  font-size:72px;
  color:#d9d9d9;
  position:absolute;
  top:-38px; left:-6px;
  line-height:1;
  z-index:0;
}
.quote p{
  position:relative;
  z-index:1;
  font-size:19px;
  line-height:1.55;
  color:var(--text);
  margin:0 0 14px;
}
.quote-photo{
  display:block;
  max-width:260px;
  width:100%;
  height:auto;
  margin:18px auto 6px;
  position:relative;
  z-index:1;
}
[data-step="q_consent"] .step-inner{text-align:center;}
[data-step="q_consent"] .quote p{text-align:center;}
[data-step="q_consent"] .quote-mark{
  position:static;
  display:block;
  margin-bottom:-16px;
}
[data-step="q_consent"] .consent-row{
  text-align:left;
  max-width:440px;
  margin-left:auto;
  margin-right:auto;
}

.field-input, .field-textarea, .field-select{
  width:100%;
  font-family:var(--font);
  font-weight:700;
  font-size:22px;
  color:var(--text);
  background:transparent;
  border:none;
  border-bottom:3px solid var(--track);
  border-radius:0;
  padding:10px 2px;
  outline:none;
  transition:border-color .25s ease;
}
.field-input::placeholder, .field-textarea::placeholder{color:#b5b5b5; font-weight:400;}
.field-textarea{resize:vertical; min-height:80px; line-height:1.45;}
.field-input:focus, .field-textarea:focus, .field-select:focus{
  border-bottom-color:var(--line);
}
.field-input.shake, .field-textarea.shake, .field-select.shake{
  animation:shake .4s ease;
  border-bottom-color:var(--error);
}
@keyframes shake{
  0%,100%{transform:translateX(0);}
  20%{transform:translateX(-6px);}
  40%{transform:translateX(6px);}
  60%{transform:translateX(-4px);}
  80%{transform:translateX(4px);}
}
.field-select{
  appearance:none;
  -webkit-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10'%3E%3Cpath d='M1 1l7 7 7-7' stroke='%23161616' stroke-width='2.5' fill='none'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 4px center;
  cursor:pointer;
}

.hint{font-size:14px; font-weight:400; color:var(--text-soft); margin-top:8px;}
.field-error{
  color:var(--error);
  font-size:15px;
  min-height:20px;
  margin-top:8px;
}

.btn{
  font-family:var(--font);
  font-weight:700;
  font-size:18px;
  border:2.5px solid var(--line);
  border-radius:14px;
  padding:12px 28px;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.btn-primary{
  background:var(--accent);
  color:#fff;
  box-shadow:4px 4px 0 #cfcfcf;
}
.btn-primary:hover{
  transform:translate(-1px,-2px);
  box-shadow:6px 6px 0 #cfcfcf;
}
.btn-primary:active{transform:translate(2px,2px); box-shadow:1px 1px 0 #cfcfcf;}
.btn-primary:disabled{opacity:.6; cursor:default;}
.btn-ok{margin-top:22px;}
.arrow{transition:transform .2s ease;}
.btn:hover .arrow{transform:translateX(4px);}
.enter-hint{
  font-size:12px;
  font-weight:400;
  opacity:.85;
  border:1px solid rgba(255,255,255,.55);
  border-radius:6px;
  padding:2px 6px;
}

.choice-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:8px;
}
@media (max-width:600px){
  .choice-grid{grid-template-columns:1fr;}
}
.choice-card{
  display:flex;
  align-items:flex-start;
  gap:12px;
  text-align:left;
  background:#fff;
  border:2.5px solid var(--line);
  border-radius:var(--radius);
  padding:16px 18px;
  font-family:var(--font);
  font-weight:700;
  font-size:17px;
  color:var(--text);
  cursor:pointer;
  box-shadow:4px 4px 0 #e2e2e2;
  transition:background .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.choice-card em{color:var(--text-soft); font-weight:400; font-style:normal; display:block; font-size:14px; margin-top:2px;}
.choice-card:hover{
  transform:translate(-1px,-2px);
  box-shadow:6px 6px 0 #d6d6d6;
}
.choice-card.selected{
  background:var(--accent);
  color:#fff;
  box-shadow:4px 4px 0 #cfcfcf;
}
.choice-card.selected em{color:#d0d0d0;}
.choice-letter{
  flex:0 0 auto;
  width:28px; height:28px;
  border-radius:50%;
  border:2px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size:14px;
  color:var(--text);
}
.choice-card.selected .choice-letter{
  background:#fff;
  border-color:#fff;
  color:var(--accent);
}

.consent-row{
  display:flex;
  align-items:flex-start;
  gap:10px;
  font-size:15px;
  font-weight:400;
  color:var(--text-soft);
  margin:10px 0 4px;
  cursor:pointer;
}
.consent-row input{margin-top:4px; accent-color:#161616; width:18px; height:18px; flex:0 0 auto;}
.consent-row a{color:var(--text); font-weight:700;}

.hp-field{
  position:absolute !important;
  left:-9999px !important;
  width:1px; height:1px;
  opacity:0;
}

.check-icon{
  width:72px; height:72px;
  border-radius:50%;
  background:var(--accent);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:34px;
  margin:0 auto 18px;
  animation:pop .5s cubic-bezier(.34,1.56,.64,1);
}
@keyframes pop{
  0%{transform:scale(0);}
  70%{transform:scale(1.15);}
  100%{transform:scale(1);}
}
[data-step="done"] .step-inner{text-align:center;}

.step-nav{
  position:fixed;
  right:22px;
  bottom:22px;
  display:flex;
  flex-direction:column;
  gap:8px;
  z-index:40;
}
.nav-btn{
  width:40px; height:40px;
  border-radius:12px;
  border:2px solid var(--line);
  background:#fff;
  color:var(--text);
  font-family:var(--font);
  font-weight:700;
  font-size:16px;
  cursor:pointer;
  transition:background .2s ease, color .2s ease;
}
.nav-btn:hover{background:var(--accent); color:#fff;}
.nav-btn:disabled{opacity:.3; cursor:default;}
.nav-btn:disabled:hover{background:#fff; color:var(--text);}

@media (max-width:600px){
  .step{padding:8vh 24px;}
  .enter-hint{display:none;}
  .p-strip{font-size:44px; height:36px;}
  [data-step="intro"]{padding-bottom:70px;}
}

.demo-banner{
  position:fixed;
  top:6px; left:0; right:0;
  z-index:60;
  background:#161616;
  color:#fff;
  font-size:12px;
  text-align:center;
  padding:6px 12px;
}
