/* P2 Sites: the questionnaire ads link to (/start/). Loads after site.css, which holds the colors and the font. */
body.st { min-height:100dvh; display:flex; flex-direction:column; }
.st-top { position:sticky; top:0; z-index:10; background:var(--paper); }
.st-top .in { display:flex; justify-content:center; padding:14px 24px; }
.st-top .logo svg { height:32px; width:auto; display:block; }
.st-prog { height:4px; background:var(--fog); }
.st-prog i { display:block; height:100%; width:0; background:var(--blue); border-radius:0 4px 4px 0; transition:width .35s cubic-bezier(.2,.8,.2,1); }

.st-main { flex:1; width:100%; max-width:880px; margin:0 auto; padding:28px 16px 40px; }
.st-screen { animation:st-in .32s cubic-bezier(.2,.8,.2,1); }
.st-screen.from-back { animation-name:st-back; }
.st-screen.still { animation:none; }
@keyframes st-in { from { opacity:0; transform:translateX(24px); } }
@keyframes st-back { from { opacity:0; transform:translateX(-24px); } }

.st-back { display:inline-flex; align-items:center; gap:6px; background:none; border:0; padding:6px 0; margin:0 0 6px; font:600 15px var(--f); color:var(--steel); cursor:pointer; }
.st-back::before { content:""; width:8px; height:8px; border-left:2px solid; border-bottom:2px solid; transform:rotate(45deg); }
.st-back:hover { color:var(--ink); }
.st-step { font-size:14px; font-weight:700; color:var(--blue); margin:0 0 8px; }
.st-main h1 { font-size:clamp(30px, 5.4vw, 48px); line-height:1.08; letter-spacing:-.022em; outline:0; max-width:18ch; }
.st-intro { font-size:17px; line-height:1.45; color:#3d3d42; margin:12px 0 0; max-width:44ch; }

/* the big answer cards: two across on a phone, filling the screen; six answers go three across on a computer */
.st-opts { display:grid; grid-template-columns:repeat(2, 1fr); grid-auto-rows:1fr; gap:12px; margin-top:24px; }
.st-opt { position:relative; display:flex; flex-direction:column; align-items:flex-start; justify-content:space-between; gap:6px;
  min-height:clamp(150px, 21dvh, 200px); padding:18px; text-align:left; background:var(--fog); color:var(--ink); border:0; border-radius:18px;
  font:inherit; cursor:pointer; -webkit-tap-highlight-color:transparent; touch-action:manipulation;
  transition:background .16s, color .16s, transform .16s cubic-bezier(.2,.8,.2,1), box-shadow .16s; }
.st-opt b { font-size:18px; line-height:1.2; font-weight:700; letter-spacing:-.01em; margin-top:auto; }
.st-opt small { font-size:14px; line-height:1.3; color:var(--steel); }
.st-ico { width:52px; height:52px; border-radius:14px; background:var(--paper); color:var(--ink); display:grid; place-items:center; transition:background .16s, color .16s; }
.st-ico svg { width:28px; height:28px; }
.st-tick { position:absolute; top:16px; right:16px; width:30px; height:30px; border-radius:50%; background:var(--paper); color:var(--blue); display:grid; place-items:center; opacity:0; transform:scale(.4); transition:opacity .14s, transform .22s cubic-bezier(.3,1.6,.5,1); }
.st-tick svg { width:17px; height:17px; }
.st-opt:active { transform:scale(.965); }
.st-opt.on { background:var(--blue); color:#fff; }
.st-opt.on small { color:rgba(255,255,255,.82); }
.st-opt.on .st-ico { background:rgba(255,255,255,.16); color:#fff; }
.st-opt.on .st-tick { opacity:1; transform:scale(1); }
.st-opt:focus-visible, .st-plans button:focus-visible, .st-form input:focus-visible { outline:3px solid var(--blue); outline-offset:2px; }
@media (hover:hover) {
  .st-opt:not(.on):hover { box-shadow:inset 0 0 0 2px var(--ink); transform:translateY(-2px); }
  .st-opt:not(.on):active { transform:scale(.965); }
}

/* contact */
.st-fields { display:grid; grid-template-columns:repeat(2, 1fr); gap:14px; margin-top:24px; }
.st-fields label { display:block; min-width:0; }
.st-fields label.full { grid-column:1 / -1; }
.st-fields span { display:block; font-size:15px; font-weight:600; margin-bottom:6px; }
.st-fields input { width:100%; height:56px; padding:0 16px; font:500 17px var(--f); color:var(--ink); background:var(--fog); border:0; border-radius:12px; }
.st-fields input[aria-invalid="true"] { box-shadow:inset 0 0 0 2px #C8102E; }
.st-err { display:block; font-style:normal; font-size:14px; line-height:1.3; color:#C8102E; margin-top:6px; }
.st-err[hidden] { display:none; }
.st-trap { position:absolute; left:-9999px; }
.btn.st-go { display:block; width:100%; text-align:center; margin-top:20px; padding:19px 26px; font-size:18px; border-radius:14px; }
.btn.st-go:disabled { opacity:.6; cursor:default; }
.st-note { font-size:14px; line-height:1.5; color:var(--steel); margin:14px 0 0; }
.st-note a { color:inherit; }
.st-follow { color:var(--ink); font-weight:500; }

/* the plan */
.st-plans { display:grid; grid-template-columns:repeat(3, 1fr); gap:6px; background:var(--fog); padding:5px; border-radius:14px; margin-top:22px; }
.st-plans button { position:relative; min-height:50px; padding:6px 4px; border:0; border-radius:10px; background:transparent; color:var(--ink); font:700 16px var(--f); cursor:pointer; line-height:1.15; touch-action:manipulation; }
.st-plans button.on { background:var(--paper); box-shadow:0 1px 4px rgba(11,11,12,.14); }
.st-plans em { display:block; font-style:normal; font-size:12px; font-weight:600; color:var(--blue); margin-top:2px; }
.st-plan { background:var(--ink); color:#fff; border-radius:18px; padding:24px 22px; margin-top:12px; display:grid; gap:20px; animation:st-in .25s ease-out; }
.st-blurb { margin:0 0 16px; font-size:17px; line-height:1.4; color:#d6d6da; }
.st-lp { margin:0 0 2px; font-size:14px; font-weight:700; color:#fff; }
.st-amt { margin:0; font-size:48px; line-height:1.05; font-weight:700; letter-spacing:-.025em; }
.st-amt small { font-size:17px; font-weight:500; letter-spacing:0; }
.st-reg, .st-mo { margin:4px 0 0; font-size:15px; line-height:1.4; color:#d6d6da; }
.st-mo { font-size:17px; font-weight:600; color:#fff; }
.st-plan ul { list-style:none; margin:0; padding:0; }
.st-plan li { display:flex; gap:10px; padding:7px 0; font-size:16px; line-height:1.35; }
.st-plan li svg { flex:none; width:18px; height:18px; margin-top:2px; color:#fff; }

/* what's true whichever answer they tap */
.st-trust { width:100%; max-width:880px; margin:0 auto; padding:24px 16px 32px; border-top:1px solid #eee; display:grid; gap:16px; }
.st-trust h2 { font-size:16px; line-height:1.3; letter-spacing:-.005em; max-width:none; }
.st-trust p { margin:3px 0 0; font-size:15px; line-height:1.45; color:var(--steel); }
.st-trust .st-who { color:var(--ink); font-weight:600; margin:0; }

/* small phones */
@media (max-width:360px) {
  .st-opt { padding:14px; }
  .st-opt b { font-size:16px; }
  .st-ico { width:44px; height:44px; }
}
/* phones: contact fields one to a line */
@media (max-width:560px) {
  .st-fields { grid-template-columns:1fr; }
}
/* computers and tablets: a bigger stage */
@media (min-width:720px) {
  .st-top .in { padding:18px 24px; }
  .st-top .logo svg { height:36px; }
  .st-main { padding:48px 24px 56px; }
  .st-opts { gap:16px; margin-top:32px; }
  .st-opts.wide { grid-template-columns:repeat(3, 1fr); }
  .st-opt { padding:24px; min-height:clamp(180px, 24vh, 220px); }
  .st-opt b { font-size:21px; }
  .st-opt small { font-size:15px; }
  .st-ico { width:60px; height:60px; }
  .st-ico svg { width:32px; height:32px; }
  .btn.st-go { width:auto; min-width:280px; display:inline-block; }
  .st-plan { grid-template-columns:1fr 1.1fr; gap:32px; padding:32px; }
  .st-trust { grid-template-columns:repeat(3, 1fr); padding:28px 24px 40px; }
  .st-trust .st-who { grid-column:1 / -1; }
}
@media (prefers-reduced-motion:reduce) {
  .st-screen, .st-plan { animation:none; }
  .st-opt, .st-prog i, .st-tick { transition:none; }
}
