/* A1 · Your Survey, In Their Voice. SDUSD's star palette inside an Impacter frame. */
@font-face { font-family: "DM Sans"; src: url("/wellness/g/assets/fonts/DMSans-Variable.ttf") format("truetype-variations"); font-weight: 100 1000; font-display: swap; }
:root {
  /* SDUSD star palette, sampled from their logo (Spring 2026 memo letterhead) */
  --p0: #E8492A; --p1: #F7B63B; --p2: #94B83C; --p3: #A62A76; --p4: #1F7CC4;
  --pl0: #FF8F72; --pl1: #FFD27A; --pl2: #BEDD6E; --pl3: #EE90C8; --pl4: #86C2F5; /* lighter, for text on navy */
  --navy: #0A2D4B; --navy-2: #0F3A5F; --navy-3: #174A75;
  --paper: #F4F7FA; --paper-dim: rgb(244 247 250 / .62); --paper-faint: rgb(244 247 250 / .38);
  --coral: #F37163; /* Impacter */
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: clamp(18px, 5vw, 72px);
  --petal: var(--p4); --petal-l: var(--pl4);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100svh; background: var(--navy); color: var(--paper); font: 400 18px/1.5 var(--font); -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; overflow-x: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, p, ol { margin: 0; padding: 0; } ol { list-style: none; }
:focus-visible { outline: 3px solid var(--pl1); outline-offset: 4px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--paper); color: var(--navy); padding: 10px 14px; border-radius: 6px; z-index: 50; }
.skip:focus { top: 12px; }

/* Frame */
.bar { position: relative; z-index: 10; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 18px var(--gutter); }
.bar__brand { display: block; width: 148px; } .logo { display: block; width: 100%; height: auto; aspect-ratio: 1866 / 517; } .bar__brand .logo { filter: brightness(0) invert(1); }
.lang { display: flex; gap: 10px; align-items: baseline; font-size: 15px; font-weight: 500; color: var(--paper-faint); }
.lang button { padding: 6px 4px; color: var(--paper-dim); border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.lang button[aria-pressed="true"] { color: var(--paper); border-bottom-color: var(--pl1); }
.lang button:hover { color: var(--paper); }
.bar__tag { justify-self: end; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; letter-spacing: .01em; color: var(--paper-dim); text-align: right; }
.bar__tag img { background: #fff; border-radius: 50%; padding: 2px; flex: none; }

/* Seal: SDUSD's star, turns one step per question */
.seal { position: fixed; z-index: 0; right: -14vmax; bottom: -16vmax; width: 46vmax; height: 46vmax; opacity: .11; pointer-events: none; filter: saturate(.9); }
.seal img { width: 100%; height: 100%; transition: transform 1.1s var(--ease); }

.stage { position: relative; z-index: 2; flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: clamp(8px, 2vh, 28px) var(--gutter) 24px; outline: none; }
.view { animation: enter .55s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Intro */
.intro { max-width: 980px; padding-top: clamp(24px, 7vh, 88px); }
.intro h1 { font-size: clamp(44px, 7.4vw, 104px); line-height: .98; font-weight: 600; letter-spacing: -.035em; text-wrap: balance; }
.intro h1 em { font-style: normal; color: var(--pl1); }
.intro__lede { margin-top: clamp(20px, 3.2vh, 36px); max-width: 38em; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.45; color: var(--paper-dim); text-wrap: pretty; }
.intro__lede b { color: var(--paper); font-weight: 500; }
.intro__row { margin-top: clamp(28px, 5vh, 52px); display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; }
.go { display: inline-flex; align-items: center; gap: 14px; padding: 18px 30px 18px 32px; border-radius: 999px; background: var(--pl1); color: var(--navy); font-weight: 700; font-size: 19px; letter-spacing: -.005em; transition: transform .2s var(--ease), background .2s; }
.go:hover { transform: translateX(3px); background: #FFE09E; }
.go svg { width: 20px; height: 20px; }
.intro__fine { font-size: 15px; color: var(--paper-faint); max-width: 30em; }
.intro__bands { margin-top: clamp(36px, 7vh, 80px); display: flex; height: 10px; max-width: 760px; gap: 3px; }
.intro__bands i { flex: 1; background: var(--c); border-radius: 2px; }

/* Item */
.item { display: grid; gap: clamp(18px, 3vh, 34px); }
.item__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-size: 15px; color: var(--paper-dim); }
.item__n { font-size: 15px; font-weight: 700; color: var(--petal-l); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.item__cat { font-weight: 500; }
.item__draft { margin-left: auto; font-size: 13px; color: var(--pl1); border: 1px solid rgb(255 210 122 / .5); padding: 3px 10px; border-radius: 999px; }
.say { font-size: clamp(30px, 4.6vw, 66px); line-height: 1.12; font-weight: 400; letter-spacing: -.02em; max-width: 19em; text-wrap: balance; min-height: 2.3em; }
.say .w { opacity: .34; transition: opacity .18s, color .18s; }
.say .w.said { opacity: 1; }
.say .w.now { color: var(--petal-l); text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .14em; }
.say.is-idle .w { opacity: 1; }

.player { display: flex; align-items: center; gap: 18px; max-width: 640px; }
.pbtn { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--paper); color: var(--navy); display: grid; place-items: center; transition: transform .2s var(--ease), background .2s; }
.pbtn:hover { transform: scale(1.06); background: #fff; }
.pbtn svg { width: 22px; height: 22px; fill: currentColor; }
.pbtn .i-pause { display: none; } .pbtn[data-state="play"] .i-play { display: none; } .pbtn[data-state="play"] .i-pause { display: block; }
.track { flex: 1; height: 28px; position: relative; cursor: pointer; display: flex; align-items: center; }
.track::before { content: ""; position: absolute; left: 0; right: 0; height: 3px; border-radius: 2px; background: rgb(244 247 250 / .2); }
.track i { position: absolute; left: 0; height: 3px; border-radius: 2px; background: var(--petal-l); width: 0; }
.ptime { font-size: 14px; color: var(--paper-dim); font-variant-numeric: tabular-nums; min-width: 3.4em; text-align: right; }
.pnote { font-size: 14px; color: var(--pl1); }

.lower { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }

/* Scale: a ruler, not a row of buttons */
.scale { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 2px solid rgb(244 247 250 / .28); position: relative; }
.scale li { position: relative; }
.scale button { width: 100%; padding: 14px 6px 4px 0; text-align: left; display: grid; gap: 8px; align-content: start; min-height: 150px; }
.scale .num { font-size: clamp(56px, 7vw, 104px); line-height: .9; font-weight: 200; letter-spacing: -.04em; color: var(--paper-faint); font-variant-numeric: tabular-nums; transition: color .2s, font-weight .2s, transform .35s var(--ease); transform-origin: left bottom; }
.scale .lbl { font-size: 15px; line-height: 1.25; color: var(--paper-dim); max-width: 8.5em; hyphens: auto; }
.scale li::before { content: ""; position: absolute; top: -2px; left: 0; height: 2px; width: 0; background: var(--petal-l); transition: width .45s var(--ease); }
.scale button:hover .num { color: var(--paper); }
.scale button[aria-checked="true"] .num { color: var(--paper); font-weight: 700; transform: scale(1.06); }
.scale button[aria-checked="true"] .lbl { color: var(--paper); font-weight: 600; }
.scale li.on::before { width: 100%; height: 6px; top: -4px; }
.scale__hint { margin-top: 14px; font-size: 14px; color: var(--paper-faint); }

/* Tell us why */
.why { border-top: 2px solid var(--coral); padding-top: 14px; }
.why h2 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; letter-spacing: -.02em; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.why h2 small { font-size: 14px; font-weight: 500; color: var(--paper-faint); letter-spacing: 0; }
.modes { display: flex; gap: 22px; margin: 10px 0 14px; font-size: 16px; font-weight: 500; }
.modes button { padding: 4px 0; color: var(--paper-dim); border-bottom: 2px solid transparent; }
.modes button[aria-selected="true"] { color: var(--paper); border-bottom-color: var(--coral); }
.rec { display: flex; align-items: center; gap: 18px; min-height: 84px; }
.rbtn { flex: none; width: 68px; height: 68px; border-radius: 50%; background: var(--coral); display: grid; place-items: center; box-shadow: 0 0 0 0 rgb(243 113 99 / .5); transition: transform .2s var(--ease); }
.rbtn:hover { transform: scale(1.05); }
.rbtn i { width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: border-radius .2s, width .2s, height .2s; }
.rbtn[aria-pressed="true"] { animation: pulse 1.6s infinite; }
.rbtn[aria-pressed="true"] i { border-radius: 4px; width: 20px; height: 20px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(243 113 99 / .5); } 100% { box-shadow: 0 0 0 20px rgb(243 113 99 / 0); } }
.wave { flex: 1; display: flex; align-items: center; gap: 3px; height: 56px; min-width: 0; overflow: hidden; }
.wave i { flex: 1 1 0; max-width: 5px; min-width: 2px; height: 4px; border-radius: 2px; background: rgb(244 247 250 / .3); transition: height .12s linear, background .2s; }
.wave.live i { background: var(--coral); }
.rtime { font-size: 15px; color: var(--paper-dim); font-variant-numeric: tabular-nums; min-width: 2.6em; }
.rec__msg { margin-top: 8px; font-size: 14px; color: var(--paper-dim); min-height: 1.5em; }
.rec__msg b { color: var(--pl2); font-weight: 600; }
.typed { width: 100%; min-height: 108px; resize: vertical; background: rgb(244 247 250 / .07); border: 1px solid rgb(244 247 250 / .28); border-radius: 8px; padding: 12px 14px; color: var(--paper); line-height: 1.45; }
.typed::placeholder { color: var(--paper-dim); }
.typed:focus { outline: 3px solid var(--pl1); outline-offset: 2px; }

/* Pager */
.pager { display: flex; justify-content: space-between; align-items: center; padding-top: 6px; }
.pager button { font-size: 18px; font-weight: 600; padding: 12px 4px; display: inline-flex; align-items: center; gap: 10px; color: var(--paper); border-bottom: 2px solid transparent; transition: border-color .2s, transform .2s var(--ease); }
.pager button:hover:not(:disabled) { border-bottom-color: var(--petal-l); }
.pager button:disabled { opacity: .3; cursor: default; }
.pager .next { color: var(--navy); background: var(--paper); padding: 14px 26px; border-radius: 999px; }
.pager .next:hover:not(:disabled) { border-bottom-color: transparent; transform: translateX(3px); }
.pager svg { width: 18px; height: 18px; }

/* End */
.end { padding-top: clamp(12px, 4vh, 48px); }
.end h1 { font-size: clamp(40px, 6vw, 88px); line-height: 1; font-weight: 600; letter-spacing: -.035em; text-wrap: balance; }
.end__lede { margin-top: 18px; max-width: 36em; font-size: clamp(19px, 1.7vw, 23px); color: var(--paper-dim); }
.end__lede b { color: var(--paper); font-weight: 500; }
.recap { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 5vw, 64px); }
.recap li { display: grid; grid-template-columns: 2.2em 1fr auto; gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid rgb(244 247 250 / .18); font-size: 16px; }
.recap .rn { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--c); }
.recap .rv { color: var(--paper-dim); }
.recap .rv b { color: var(--paper); font-weight: 600; }
.recap .rw { font-size: 13px; color: var(--paper-faint); }
.recap .rw.yes { color: var(--pl2); }
.end__row { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; }
.ghost { font-weight: 600; font-size: 17px; border-bottom: 2px solid var(--pl1); padding: 6px 0; text-decoration: none; color: var(--paper); }
.ghost:hover { color: var(--pl1); }

/* Footer: progress + provenance */
.foot { position: relative; z-index: 5; padding: 14px var(--gutter) 22px; max-width: 1280px; width: 100%; margin: 0 auto; display: grid; gap: 12px; }
.ticks { display: flex; gap: 4px; }
.ticks button { display: block; width: 100%; height: 20px; position: relative; }
.ticks li { flex: 1; }
.ticks button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 7px; height: 5px; border-radius: 2px; background: var(--c); opacity: .28; transition: opacity .25s, height .25s, bottom .25s; }
.ticks .done button::after { opacity: .85; }
.ticks .cur button::after { opacity: 1; height: 9px; bottom: 5px; }
.ticks button:hover::after { opacity: 1; }
.foot__note { font-size: 13px; line-height: 1.45; color: var(--paper-faint); max-width: 74em; }
.foot__note a { color: var(--paper-dim); }

@media (max-width: 900px) {
  .lower { grid-template-columns: 1fr; }
  .bar { grid-template-columns: 1fr auto; grid-template-areas: "brand tag" "lang lang"; row-gap: 6px; }
  .bar__brand { grid-area: brand; } .lang { grid-area: lang; } .bar__tag { grid-area: tag; }
  .bar__tag span { max-width: 8.5em; line-height: 1.2; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .bar__brand { width: 120px; }
  .scale { grid-template-columns: repeat(5, 1fr); }
  .scale button { min-height: 124px; padding-right: 2px; }
  .scale .lbl { font-size: 12.5px; max-width: none; overflow-wrap: anywhere; }
  .recap { grid-template-columns: 1fr; }
  .item__draft { margin-left: 0; }
  .say { min-height: 0; }
  .seal { opacity: .12; }
  .pager .next { padding: 13px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .view { animation: none; } .seal img, .scale li::before, .scale .num { transition: none; }
  .rbtn[aria-pressed="true"] { animation: none; }
}
