/* Candidate pages. One reading column, a slim navy band, and a navy pause between sections.
   Light theme only. Callouts are tinted boxes with no side line. */
body{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;background:var(--white);-webkit-tap-highlight-color:transparent}
button,input,label{touch-action:manipulation}
:focus{outline:none}
:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
[data-focus]:focus,main:focus{outline:none}

/* ---- band ---- */
.band{position:sticky;top:0;z-index:20;background:var(--navy);color:var(--white)}
.band-in{max-width:768px;margin:0 auto;padding:18px 24px;min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.band-logo{display:block;width:112px;height:auto;flex:0 0 auto}
.band-meta{display:flex;align-items:baseline;gap:16px;min-width:0}
.band-section{font-size:14px;color:#cdd6ee;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.band-clock{font-size:26px;font-weight:300;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:.5px;transition:color .6s}
.is-last-minute .band-clock{color:var(--yellow)}
.band-sub{display:flex;align-items:center;justify-content:space-between;gap:16px;max-width:768px;min-height:18px;margin:-10px auto 0;padding:0 24px 10px}
.band-who{min-width:0;font-size:13px;line-height:1.3;color:#cdd6ee;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.day-track{flex:0 0 46%;margin-left:auto;display:flex;align-items:center;gap:8px;font-size:11px;line-height:1;color:#cdd6ee;white-space:nowrap}
.day-line{position:relative;flex:1;height:2px;background:#2a3a73}
.day-line i{position:absolute;top:50%;width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:50%;background:var(--yellow);transition:left .4s ease-out}
.band-progress{display:block;width:100%;height:4px;border:0;background:#1a2a63;-webkit-appearance:none;appearance:none}
.band-progress::-webkit-progress-bar{background:#1a2a63}
.band-progress::-webkit-progress-value{background:var(--light-azure);transition:width .25s}
.band-progress::-moz-progress-bar{background:var(--light-azure)}

/* ---- connection notice: calm, tinted, never a warning colour ---- */
.notice{background:var(--light-yellow);color:var(--navy);font-size:15px;padding:12px 24px;text-align:center}

/* ---- the sheet ---- */
.sheet{flex:1 0 auto;width:100%;max-width:768px;margin:0 auto;padding:64px 24px 88px}
.loading{color:var(--grey)}
.eyebrow{margin:0 0 10px;font-size:13px;font-weight:700;letter-spacing:2px;line-height:1.4;text-transform:uppercase;color:var(--blue)}
h1{margin:0 0 24px;font-size:36px;font-weight:300;line-height:1.2;letter-spacing:-.01em}
h2{margin:32px 0 8px;font-size:22px;font-weight:700;line-height:1.3}
h3{margin:24px 0 6px;font-size:18px;font-weight:700;line-height:1.3}
p{margin:0 0 16px}
ul,ol{margin:0 0 16px;padding-left:24px}
li{margin-bottom:6px}
.lead{font-size:18px;color:var(--ink-body)}
.quiet{color:var(--grey);font-size:15px}
a{color:var(--blue)}

/* ---- buttons ---- */
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:54px;padding:18px 34px;border:1px solid transparent;border-radius:4px;
  font:700 14px/1.2 var(--font);letter-spacing:1.2px;text-transform:uppercase;cursor:pointer;
  transition:transform .18s,background .18s,opacity .18s;-webkit-appearance:none;appearance:none}
.btn:disabled{opacity:.55;cursor:default}
.btn-blue{background:var(--blue);color:var(--white)}
.btn-blue:hover:not(:disabled){background:var(--blue-hover);transform:translateY(-2px)}
.btn-yellow{background:var(--yellow);color:var(--navy)}
.btn-yellow:hover:not(:disabled){background:var(--yellow-hover);transform:translateY(-2px)}
.btn-plain{background:var(--white);color:var(--navy);border-color:var(--rule)}
.btn-plain:hover:not(:disabled){border-color:var(--blue);transform:translateY(-2px)}

/* ---- consent ---- */
.ai-notice{margin:0 0 36px;padding:24px;border-radius:4px;background:var(--light-yellow)}
.ai-notice h2{margin:0 0 8px}
.ai-notice > :last-child{margin-bottom:0}
.consent-title{margin-top:0}
.consent-body{margin-bottom:32px}
.consent-body > :first-child{margin-top:0}
.consent-action{padding:24px;border-radius:4px;background:var(--tint)}
.consent-action p:last-child{margin-bottom:0}
.consent-action .btn{margin-bottom:12px}

/* ---- second go: two choices of equal weight ---- */
.choice-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:stretch}
.choice-pair .btn{padding-left:16px;padding-right:16px;line-height:1.35}

/* ---- section ready: the navy pause between sections ---- */
body[data-phase="section_ready"]{background:var(--navy);color:var(--white)}
body[data-phase="section_ready"] .band-progress{display:none}
.ready{animation:ready-in .5s ease-out both}
@keyframes ready-in{from{opacity:0}to{opacity:1}}
.steps{display:flex;gap:4px;list-style:none;margin:0 0 28px;padding:0;max-width:220px}
.steps li{flex:1;height:4px;margin:0;border-radius:1px;background:#2a3a73}
.steps li.is-done{background:var(--azure)}
.steps li.is-here{background:var(--yellow)}
.ready .eyebrow{color:var(--light-azure)}
.ready h1{color:var(--white);margin-bottom:20px}
.ready-intro{font-size:18px;color:#dfe6f5;margin-bottom:32px}
.facts{margin:0 0 36px;padding:0;list-style:none}
.facts li{display:flex;gap:16px;margin:0;padding:12px 0;border-top:1px solid rgba(255,255,255,.14);color:#dfe6f5}
.facts li:last-child{border-bottom:1px solid rgba(255,255,255,.14)}
.facts b{flex:0 0 112px;font-weight:700;color:var(--white)}
.ready .btn{min-width:200px;margin-bottom:18px}
.ready :focus-visible{outline-color:var(--yellow)}
.ready-note{margin:0;font-size:15px;color:#cdd6ee}
.ready-note span{font-variant-numeric:tabular-nums}

/* ---- moments in the day ---- */
.moment-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:12px}
.moment-head .eyebrow{margin-bottom:0}
.day-clock{margin:0 0 2px;font-size:54px;font-weight:300;line-height:1.05;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.spot{display:block;flex:0 0 auto;width:96px;height:96px}
.moment-how{margin:-16px 0 28px;font-size:15px;color:#cdd6ee}
.moment-how p{margin-bottom:8px}

/* ---- the speed round ---- */
.run{display:inline-block;padding:2px 10px;border-radius:4px;background:var(--yellow);color:var(--navy);font-size:13px;white-space:nowrap}
.run b{font-size:16px;font-variant-numeric:tabular-nums}
.speed-card{animation:speed-in .14s ease-out both}
@keyframes speed-in{from{opacity:.2;transform:translateX(14px)}to{opacity:1;transform:none}}
.speed-card .prompt{font-size:24px;line-height:1.35;font-weight:700}
.speed-card .data{font-size:17px}
.speed-card .options-check .opt-face{min-height:96px;font-size:24px}
.speed-card .opt-face{font-size:20px;min-height:68px}
.speed-card .opt-tap:active .opt-face{background:var(--yellow);border-color:var(--yellow)}
.speed-end .spot{margin-bottom:20px}
.speed-count{margin:0 0 4px;font-size:88px;font-weight:700;line-height:1;color:var(--yellow);font-variant-numeric:tabular-nums}

/* ---- device check ---- */
.device-stage{margin-bottom:20px}
.self-view{display:block;width:100%;max-width:320px;aspect-ratio:4 / 3;object-fit:cover;background:#1a2a63;border-radius:4px;transform:scaleX(-1)}
.level-row{display:flex;align-items:center;gap:12px;max-width:320px;margin:10px 0 0;font-size:14px;color:#dfe6f5}
.level{flex:1;height:8px;border:0;border-radius:2px;overflow:hidden;background:#2a3a73;-webkit-appearance:none;appearance:none}
.level::-webkit-progress-bar{background:#2a3a73}
.level::-webkit-progress-value{background:var(--light-azure)}
.level::-moz-progress-bar{background:var(--light-azure)}

/* ---- item ---- */
.item-head{display:flex;justify-content:space-between;align-items:baseline;gap:16px}
.item-clock{font-size:14px;color:var(--grey);font-variant-numeric:tabular-nums;white-space:nowrap}
.item-bar{display:block;width:100%;height:3px;margin:0 0 16px;border:0;background:var(--line);-webkit-appearance:none;appearance:none}
.item-bar::-webkit-progress-bar{background:var(--line)}
.item-bar::-webkit-progress-value{background:var(--azure)}
.item-bar::-moz-progress-bar{background:var(--azure)}
.opt-tap{width:100%;padding:0;border:0;background:none;font:inherit;color:inherit;text-align:left}
.opt-tap:disabled{cursor:default}
.opt-tap:focus-visible{outline:3px solid var(--blue);outline-offset:2px;border-radius:4px}

/* ---- spoken ---- */
.spoken-panel{display:flex;gap:20px;align-items:flex-start;padding:16px;border-radius:4px;background:var(--tint)}
.self-view-small{flex:0 0 200px;width:200px}
.spoken-status{flex:1;min-width:0}
.spoken-line{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.spoken-stage{margin:0;font-weight:700}
.spoken-clock{font-size:26px;font-weight:300;line-height:1.2;font-variant-numeric:tabular-nums}
.is-recording .spoken-stage::before{content:'';display:inline-block;width:10px;height:10px;margin-right:8px;border-radius:50%;background:var(--blue)}
.spoken-note{margin:6px 0 0;font-size:15px;color:var(--ink-body)}
.spoken-status .item-bar{margin:8px 0 0}
.spoken-action{margin-top:12px}
.spoken-action:empty{display:none}
.item-sheet{padding-top:40px}
.rule{position:sticky;top:104px;z-index:10;margin:0 0 20px;padding:14px 18px;border-radius:4px;background:var(--light-yellow);font-size:15px;line-height:1.5;color:var(--navy)}
.rule p{margin:0}
.rule b{display:block;font-size:13px;letter-spacing:.2px;margin-bottom:2px}
.prompt{font-size:19px;line-height:1.6;margin:0 0 24px;color:var(--navy)}
.prompt p:last-child,.prompt ul:last-child,.prompt ol:last-child{margin-bottom:0}
.prompt h2,.prompt h3,.prompt h4{font-size:19px;margin:16px 0 4px}

.table-wrap{overflow-x:auto;margin:0 0 24px;border:1px solid var(--rule);border-radius:4px;-webkit-overflow-scrolling:touch}
.data{width:100%;border-collapse:collapse;font-size:15px;line-height:1.4}
.data th{padding:10px 14px;text-align:left;font-weight:700;background:var(--paper);border-bottom:1px solid var(--rule);white-space:nowrap}
.data td{padding:10px 14px;border-bottom:1px solid var(--line);color:var(--ink-body)}
.data tr:last-child td{border-bottom:0}
.data .num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}

fieldset{margin:0 0 8px;padding:0;border:0;min-width:0}
.options{display:grid;gap:10px}
.opt{position:relative;display:block;cursor:pointer}
.opt input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.opt-face{display:flex;align-items:center;gap:14px;min-height:60px;padding:12px 16px;background:var(--white);border:1px solid var(--rule);border-radius:4px;line-height:1.4;transition:border-color .12s,background .12s}
.opt-key{flex:0 0 auto;width:30px;height:30px;display:grid;place-items:center;border-radius:4px;background:var(--paper);color:var(--grey);font-size:14px;font-weight:700}
.opt:hover .opt-face{border-color:var(--blue)}
.opt input:checked + .opt-face{border-color:var(--blue);background:var(--tint);box-shadow:inset 0 0 0 1px var(--blue)}
.opt input:checked + .opt-face .opt-key{background:var(--blue);color:var(--white)}
.opt input:focus-visible + .opt-face{outline:3px solid var(--blue);outline-offset:2px}

.options-check{grid-template-columns:1fr 1fr}
.options-check .opt-face{justify-content:center;min-height:84px;font-size:18px;font-weight:700;letter-spacing:1.2px}

.options-scale{grid-template-columns:repeat(4,1fr);gap:8px}
.options-scale .opt-face{flex-direction:column;justify-content:flex-start;text-align:center;gap:8px;height:100%;min-height:104px;padding:12px 6px;font-size:14px}
.opt-na{margin-top:10px}
.opt-na .opt-face{min-height:52px;font-size:15px;color:var(--ink-body)}

.field-label{display:block;font-weight:700;margin-bottom:6px}
.entry{display:flex;align-items:center;gap:10px;max-width:320px}
.entry-input{flex:1;min-width:0;height:60px;padding:0 16px;border:1px solid var(--rule);border-radius:4px;background:var(--white);color:var(--navy);
  font:400 22px var(--font);font-variant-numeric:tabular-nums}
.entry-input:focus{border-color:var(--blue);outline:3px solid var(--blue);outline-offset:1px}
.entry-text{display:block;width:100%;padding:12px 16px;border:1px solid var(--rule);border-radius:4px;background:var(--white);color:var(--navy);font:inherit;resize:vertical}
.entry-text:focus{border-color:var(--blue);outline:3px solid var(--blue);outline-offset:1px}
.entry-unit{font-size:18px;color:var(--grey);white-space:nowrap}

.item-msg{min-height:26px;margin:10px 0 0;font-size:15px;color:var(--navy)}
.actions{display:flex;gap:12px;margin-top:8px;padding:12px 0;background:var(--white)}
.actions .btn-blue{flex:0 1 200px}
.nogoback{margin:6px 0 0;font-size:14px;color:var(--grey)}
.keys{display:none;margin:2px 0 0;font-size:14px;color:var(--grey)}
@media (hover:hover) and (pointer:fine){.keys{display:block}}

/* ---- end screens ---- */
body[data-phase="finished"]{background:var(--tint)}
.finish{position:relative}
.finish h1{margin-bottom:20px}
.snapshot{margin:28px 0;padding:24px;border-radius:4px;background:var(--white)}
.snapshot h2{margin:0 0 16px;font-size:22px}
.snapshot h3{margin:0 0 2px}
.snapshot-item{padding:14px 0 0;border-top:1px solid var(--line)}
.snapshot-item + .snapshot-item{margin-top:14px}
.snapshot-item p{margin:0;color:var(--ink-body)}
.confetti{position:absolute;inset:-24px 0 auto;height:0;pointer-events:none}
.confetti i{position:absolute;top:0;width:9px;height:9px;border-radius:1px;background:var(--yellow);opacity:0;animation:confetti-fall 1.5s ease-out both}
.confetti i:nth-child(1){left:6%;animation-delay:.02s}
.confetti i:nth-child(2){left:13%;width:6px;animation-delay:.18s}
.confetti i:nth-child(3){left:21%;height:6px;animation-delay:.08s}
.confetti i:nth-child(4){left:29%;animation-delay:.26s}
.confetti i:nth-child(5){left:36%;width:6px;animation-delay:.04s}
.confetti i:nth-child(6){left:44%;height:6px;animation-delay:.2s}
.confetti i:nth-child(7){left:51%;animation-delay:.12s}
.confetti i:nth-child(8){left:58%;width:6px;animation-delay:.3s}
.confetti i:nth-child(9){left:65%;height:6px;animation-delay:.06s}
.confetti i:nth-child(10){left:72%;animation-delay:.22s}
.confetti i:nth-child(11){left:79%;width:6px;animation-delay:.1s}
.confetti i:nth-child(12){left:85%;height:6px;animation-delay:.28s}
.confetti i:nth-child(13){left:91%;animation-delay:.16s}
.confetti i:nth-child(14){left:97%;width:6px;animation-delay:.24s}
@keyframes confetti-fall{
  0%{opacity:0;transform:translateY(0) rotate(0)}
  15%{opacity:1}
  70%{opacity:1}
  100%{opacity:0;transform:translateY(260px) rotate(240deg)}
}

/* ---- phone ---- */
@media (max-width:900px){
  h1{font-size:30px}
}
@media (max-width:600px){
  h1{font-size:26px}
  h2{font-size:19px}
  .band-in{padding:12px 16px;min-height:58px}
  .band-logo{width:84px}
  .band-section{font-size:13px}
  .band-clock{font-size:22px}
  .band-meta{gap:12px}
  .sheet{padding:40px 16px 64px}
  .item-sheet{padding-top:24px;padding-bottom:32px}
  .rule{top:84px}
  .band-sub{margin-top:-8px;padding:0 16px 8px;gap:12px}
  .day-track{flex-basis:52%}
  .day-clock{font-size:44px}
  .spot{width:76px;height:76px}
  .speed-card .prompt{font-size:21px}
  .speed-card .data{font-size:15px}
  .speed-card .options-check .opt-face{min-height:84px;font-size:22px}
  .snapshot{padding:18px 16px}
  .snapshot h2{font-size:19px}
  .ai-notice{padding:18px 16px}
  .choice-pair{grid-template-columns:1fr}
  .spoken-panel{flex-direction:column}
  .self-view-small{flex:none;width:160px}
  .prompt{font-size:18px}
  .actions{position:sticky;bottom:0;z-index:5;margin-left:-16px;margin-right:-16px;padding:10px 16px calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--line)}
  .actions .btn{flex:1 1 0;padding-left:12px;padding-right:12px}
  .actions .btn-blue{flex:2 1 0}
  .actions-quiet{position:static;margin:4px 0 0;padding:4px 0;border-top:0}
  .actions-quiet .btn{flex:0 0 auto;min-height:44px;padding:12px 24px}
  .options-scale{grid-template-columns:1fr}
  .options-scale .opt-face{flex-direction:row;text-align:left;min-height:56px;font-size:16px;padding:10px 14px}
  .facts b{flex-basis:96px}
  .ready .btn{width:100%}
}

@media (prefers-reduced-motion:reduce){
  .confetti{display:none}
  *,*::before,*::after{animation:none !important;transition:none !important}
  .btn:hover:not(:disabled){transform:none}
}
