/* RobinSave online trial. Same colours and shapes as the product (prototype/style.css).
   One heavy colour (green). Orange only marks the two dates. Red means "recording" or "something is wrong". */
:root{
  --ink:#14302a;--soft:#4f6159;--paper:#f6f4ec;--paper-2:#eeebdf;--white:#fff;
  --green:#1f5a4a;--green-deep:#174438;--mint:#e3eee6;--mint-2:#d4e6d9;--line:#d8ddd2;
  --date:#a9491a;--red:#b0352e;--red-soft:#f8e1de;--red-deep:#7d1f19;--ok:#23704a;--yellow:#e5a823;--yellow-ink:#3b2a05;
  --ink-2:#2c443d;--edge:#7d8a80;--off:#c9d1c9;--off-ink:#33443e;--robin:#f2a25c;
  --dur-press:120ms;--dur-fast:160ms;--dur-base:240ms;--ease-out:cubic-bezier(.22,1,.36,1);
  --gutter:24px;
}
@media (prefers-reduced-motion:reduce){:root{--dur-press:.01ms;--dur-fast:.01ms;--dur-base:.01ms}}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%;scroll-behavior:auto}
body{margin:0;background:var(--paper);color:var(--ink);font-family:'Segoe UI','PingFang TC','Microsoft JhengHei','Noto Sans TC','Noto Sans CJK TC',sans-serif;
  font-size:19px;line-height:1.75;line-break:strict;-webkit-tap-highlight-color:transparent}
h1,h2,h3{letter-spacing:0;text-wrap:balance;margin:0}
p{margin:0 0 .6em;text-wrap:pretty}
ol,ul,dl,dd{margin:0;padding:0}
button,select,input{font:inherit;color:inherit}
button{cursor:pointer;border:0;touch-action:manipulation}
button:disabled{cursor:not-allowed}
:focus-visible{outline:3px solid var(--date);outline-offset:3px;border-radius:6px}
small{font-size:15px}
::selection{background:#f6c39d;color:var(--ink)}

/* top bar */
.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px var(--gutter);border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none;font-size:24px;font-weight:750;line-height:1.2}
.brand svg{width:40px;height:40px;color:var(--green);flex-shrink:0}
.brand-dot{fill:var(--robin)}.brand-line{fill:none;stroke:#fff;stroke-width:3.2;stroke-linecap:round}
.brand small{display:block;font-size:14px;font-weight:600;color:var(--soft)}
.badge{font-size:15px;font-weight:650;color:var(--green);background:var(--mint);padding:6px 14px;border-radius:99px;white-space:nowrap}

main{max-width:1160px;margin:0 auto;padding:0 var(--gutter) 40px}
.alert{margin:20px 0 0;padding:14px 18px;border-radius:12px;background:var(--red-soft);color:var(--red-deep);font-weight:650}
.alert.calm{background:var(--mint);color:var(--green-deep)}

/* intro */
.intro{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:48px;align-items:start;padding:52px 0 36px}
h1{font-size:clamp(34px,5.2vw,60px);line-height:1.22;font-weight:800;margin-bottom:18px}
.lead{font-size:22px;margin-bottom:4px}
.safe{font-size:22px;font-weight:750;color:var(--green);margin-bottom:26px}
.dates{display:grid;gap:10px;max-width:34em}
.dates div{display:grid;grid-template-columns:11.5em minmax(0,1fr);gap:4px 14px;align-items:baseline}
.dates dt{font-weight:700}.dates b{color:var(--date);font-size:1.12em;font-variant-numeric:tabular-nums}
.bring{background:var(--white);border:1px solid var(--line);border-radius:16px;padding:24px 26px}
.bring h2{font-size:20px;margin-bottom:10px}
.bring ol{list-style:none;counter-reset:bring}
.bring li{counter-increment:bring;display:grid;grid-template-columns:44px minmax(0,1fr);column-gap:10px;padding:12px 0;border-top:1px solid var(--line)}
.bring li:before{content:counter(bring);grid-row:span 2;font-size:38px;font-weight:800;line-height:1.1;color:var(--green);font-variant-numeric:tabular-nums}
.bring b{font-size:23px;line-height:1.3}.bring span{font-size:16px;color:var(--soft);line-height:1.6}

.rules{background:var(--mint);border-radius:16px;padding:20px 26px}
.rules h2{font-size:20px;margin-bottom:6px}
.rules ul{list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:4px 32px}
.rules li{padding-left:1.1em;position:relative}
.rules li:before{content:'';position:absolute;left:0;top:.72em;width:8px;height:8px;border-radius:50%;background:var(--green)}

/* steps: a straight line down the page, big numbers, trouble notes beside each step */
.steps{list-style:none;margin-top:28px}
.step{display:grid;grid-template-columns:72px minmax(0,1fr) 300px;gap:0 28px;padding:38px 0;border-top:1px solid var(--line);scroll-margin-top:8px}
.step-n{font-size:60px;font-weight:800;line-height:1;color:var(--green);font-variant-numeric:tabular-nums}
.step h2{font-size:30px;line-height:1.3}
.step-time{font-size:16px;color:var(--soft);margin-bottom:14px}
.step-main>:last-child{margin-bottom:0}
.step-main>p,.step-main>ul,.step-main>ol{max-width:34em}
#start{margin-top:14px}
.trouble{background:var(--paper-2);border-radius:14px;padding:16px 18px;align-self:start;font-size:16px;line-height:1.65}
.trouble h3{font-size:16px;color:var(--soft);margin-bottom:6px}
.trouble dt{font-weight:700;margin-top:10px}.trouble dt:first-child{margin-top:0}
.trouble dd{color:var(--ink-2)}

.checks,.how,.questions,.tips{padding-left:1.4em}
.checks li,.how li,.questions li,.tips li{margin:6px 0;padding-left:4px}
.how li::marker,.questions li::marker,.tips li::marker{font-weight:800;color:var(--green)}
.questions li{font-size:21px;font-weight:650}
.quiet{font-size:16px;color:var(--soft)}
.url{font-size:17px;font-weight:650;color:var(--green);word-break:break-all;background:var(--white);border:1px solid var(--line);border-radius:10px;padding:8px 12px;display:inline-block}

/* buttons: filled green is the one thing to press next; mint is everything else you can press */
.primary,.secondary,.record,.choice{border-radius:12px;font-weight:700;transition:transform var(--dur-press) var(--ease-out),background-color var(--dur-fast) var(--ease-out)}
.primary:active:not(:disabled),.secondary:active,.record:active:not(:disabled),.choice:active{transform:scale(.97)}
.primary{background:var(--green);color:#fff;padding:12px 22px}
.primary:hover:not(:disabled){background:var(--green-deep)}
.primary:disabled{background:var(--off);color:var(--off-ink)}
.secondary{background:var(--mint);color:var(--green-deep);padding:12px 20px}
.secondary:hover{background:var(--mint-2)}
.big{font-size:22px;padding:16px 30px;min-height:62px}
.link{display:inline-flex;align-items:center;text-decoration:none;margin-bottom:6px}
.quiet-button{background:transparent;color:var(--green);font-size:17px;font-weight:650;padding:10px 12px;min-height:44px;text-decoration:underline;text-underline-offset:4px}

/* recording */
.record{background:var(--green);color:#fff;font-size:22px;padding:16px 34px;min-height:62px;border-radius:99px}
.record:hover:not(:disabled):not(.on){background:var(--green-deep)}
.record.on{background:var(--red);animation:listening 1.4s var(--ease-out) infinite}
.record:disabled{opacity:.6}
@keyframes listening{0%{box-shadow:0 0 0 0 #b0352e66}80%,100%{box-shadow:0 0 0 18px #b0352e00}}
@media (prefers-reduced-motion:reduce){.record.on{animation:none;outline:4px solid #b0352e55;outline-offset:4px}}
.rec-row{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin:6px 0 4px}
.level{appearance:none;-webkit-appearance:none;width:150px;height:8px;border:0;border-radius:4px;background:var(--line);overflow:hidden;visibility:hidden}
.record.on~.level{visibility:visible}
.level::-webkit-progress-bar{background:var(--line)}
.level::-webkit-progress-value{background:var(--ok)}
.level::-moz-progress-bar{background:var(--ok)}
.say-line{font-size:30px;font-weight:800;color:var(--green);line-height:1.4;margin:10px 0 14px}
.review{margin-top:14px;padding:16px 18px;background:var(--white);border:1px solid var(--line);border-radius:14px}
.review-q{font-weight:700;margin:14px 0 8px}
.pair{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-width:420px}
.choice{background:var(--mint);color:var(--green-deep);padding:12px 10px;min-height:62px}
.choice:hover{background:var(--mint-2)}
.choice b{font-size:24px}
.result{font-weight:700;margin:12px 0 0;min-height:0}
.result:empty{display:none}
.result.good{color:var(--ok)}.result.bad{color:var(--red)}
.tips{margin-top:8px}

/* consent */
.say{background:var(--white);border:1px solid var(--line);border-radius:14px;padding:18px 22px;font-size:22px;line-height:1.8;margin:14px 0 10px}
.say p{margin:0}
.tick{display:flex;align-items:flex-start;gap:14px;background:var(--mint);border-radius:12px;padding:14px 18px;font-size:21px;font-weight:700;cursor:pointer;margin-bottom:22px}
.tick input{width:30px;height:30px;flex-shrink:0;margin:4px 0 0;accent-color:var(--green)}
.tick small{display:block;font-weight:500;color:var(--soft)}
.fields{display:flex;flex-wrap:wrap;gap:12px 22px;align-items:center;margin:4px 0 18px}
.field{display:flex;align-items:center;gap:8px;margin:0;font-weight:650}
.field b{font-size:28px;color:var(--green);line-height:1}.field small{color:var(--soft);font-weight:500}
.field select{min-height:48px;padding:6px 12px;border:1px solid var(--edge);border-radius:10px;background:var(--white);font-weight:500}

/* step 5 and 6 */
.cards{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 4px}
.card{display:inline-flex;align-items:baseline;gap:8px;border-radius:10px;padding:4px 12px;font-size:16px;color:#fff}
.card b{font-size:19px}
.card.red{background:var(--red)}.card.yellow{background:var(--yellow);color:var(--yellow-ink)}.card.green{background:var(--ok)}
.ask{font-size:28px;font-weight:800;color:var(--green);line-height:1.45;margin:6px 0 12px}
.ask.small{font-size:22px}
.note-box{margin-top:16px;display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px}
.note-text{flex-basis:100%;margin:0;font:inherit;white-space:pre-wrap;background:var(--white);border:1px dashed var(--edge);border-radius:12px;padding:14px 18px;line-height:1.7}

/* step 7 */
.summary{font-size:22px;font-weight:700;margin-bottom:6px}
.people{list-style:none;margin-bottom:14px;color:var(--soft);font-size:17px}
.save-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px}
.saved{margin-top:18px;background:var(--mint);border-radius:14px;padding:18px 22px}
.saved p{margin-bottom:.5em}.saved p:last-child{margin-bottom:0}
.saved-title{font-size:24px;font-weight:800;color:var(--green-deep)}
.saved b{word-break:break-all}

.foot{border-top:1px solid var(--line);padding:26px 0 0;margin-top:8px}
.unsaved{position:sticky;bottom:14px;z-index:5;width:max-content;max-width:calc(100% - 28px);margin:0 auto 14px;display:flex;align-items:center;gap:14px;
  background:var(--ink);color:#fff;border-radius:99px;padding:8px 8px 8px 22px;font-size:17px;font-weight:650;box-shadow:0 8px 24px #14302a33}
.unsaved-go{background:#fff;color:var(--ink);border-radius:99px;padding:8px 18px;font-weight:700;min-height:44px}
.reading{overflow:hidden}.reading .unsaved{display:none}

/* the full-screen page the older adult looks at: one sentence, one button */
.reader{position:fixed;inset:0;z-index:20;background:var(--paper);display:grid;grid-template-rows:auto 1fr;overflow:auto}
.reader-top{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;padding:10px var(--gutter);border-bottom:1px solid var(--line)}
.reader-top p{margin:0}
.reader-note{font-size:15px;color:var(--soft)}
.reader-progress{font-size:20px;font-weight:700}
.reader-top .quiet-button{justify-self:end}
.reader-body{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:6px;padding:20px var(--gutter) 28px}
.reader-hint{font-size:22px;color:var(--soft);margin:0}
.reader-phrase{font-size:clamp(40px,8.6vw,104px);font-weight:800;line-height:1.3;color:var(--green);margin:0 0 3vh;max-width:14em;min-height:2.6em;display:flex;align-items:center}
.big-record{font-size:clamp(26px,3.4vw,36px);padding:26px 58px;min-width:min(340px,100%);min-height:96px}
.reader .level{width:220px;margin-top:18px}
.reader-status{font-size:21px;color:var(--soft);margin:10px 0 0;min-height:1.75em}
.reader-minor{display:flex;gap:10px;justify-content:center;min-height:44px}
.reader-thanks{font-size:clamp(34px,6vw,64px);font-weight:800;color:var(--green);line-height:1.35;margin:0 0 4vh}
.reader-actions{display:flex;flex-wrap:wrap;gap:16px;justify-content:center}
.reader-actions .big{font-size:26px;padding:22px 34px;min-height:84px}

/* a phone held sideways: keep the sentence and the button on one screen */
@media (max-height:480px){
  .reader-top{padding-top:4px;padding-bottom:4px}
  .reader-body{padding-top:8px;padding-bottom:10px;gap:2px}
  .reader-hint{display:none}
  .reader-phrase{font-size:clamp(30px,6vw,44px);min-height:0;margin-bottom:8px}
  .big-record{min-height:64px;padding:14px 40px;font-size:24px}
  .reader .level{margin-top:8px}
  .reader-status{font-size:17px;margin-top:4px}
  .reader-thanks{font-size:32px;margin-bottom:12px}
  .reader-actions .big{min-height:60px;padding:12px 24px;font-size:22px}
}

/* simple page for a wrong address */
.lost{max-width:640px;margin:0 auto;padding:80px var(--gutter)}
.lost h1{font-size:40px}

@media (max-width:980px){
  .intro{grid-template-columns:1fr;gap:28px;padding:36px 0 28px}
  .step{grid-template-columns:56px minmax(0,1fr);gap:0 18px}
  .step-n{font-size:48px}
  .trouble{grid-column:2;margin-top:20px}
}
@media (max-width:640px){
  :root{--gutter:16px}
  body{font-size:18px}
  .topbar{padding:12px var(--gutter)}.brand{font-size:20px}.brand svg{width:34px;height:34px}
  .badge{font-size:15px;padding:4px 10px}
  .lead,.safe{font-size:20px}
  .dates div{grid-template-columns:1fr}
  .rules{padding:18px 18px}.rules ul{grid-template-columns:1fr}
  .bring{padding:18px 18px}
  .step{grid-template-columns:1fr;padding:30px 0}
  .step-n{font-size:40px;margin-bottom:2px}
  .step h2{font-size:26px}
  .trouble{grid-column:1}
  .say{font-size:20px;padding:16px 16px}
  .say-line{font-size:26px}.ask{font-size:24px}.ask.small{font-size:20px}
  .big{width:100%}
  .link{justify-content:center}
  .record:not(.big-record){width:100%}
  .rec-row .level{width:100%}
  .pair{max-width:none}
  .reader-top{grid-template-columns:1fr auto;row-gap:0}
  .reader-note{grid-column:1/-1;grid-row:2}
  .big-record{padding:24px 28px}
  .reader-actions{flex-direction:column;width:100%}
  .unsaved{font-size:16px;padding-left:16px}
}
