/* wiPAYE design tokens (job A24, 2 Nov 2026). The only place colours, sizes and timings are defined.
   Rules and reasons: docs/design/STYLE-GUIDE.md. Light only (dark mode is "not at launch").
   Branded editions override ONLY the "brand" group below (plus the logo); see STYLE-GUIDE section 12. */
:root{
  color-scheme:light;

  /* brand group: the only tokens a branded edition changes */
  --brand:#702228;          /* Aluwi wine; white on it 10.8:1 */
  --brand-deep:#5A161D;     /* hover, pressed */
  --brand-light:#922D38;    /* charts, second series */
  --brand-tint:#F3E9EA;     /* blush: tinted panels, selected rows */
  --brand-wash:#F8F0F1;     /* row hover */
  --on-brand-soft:#F1C9CD;  /* secondary text on the brand bar */
  --accent:#B8862B;         /* cane gold, rarely; non-text only */
  --accent-ink:#7A5512;     /* gold text on --accent-wash */
  --accent-wash:#F4ECDD;

  /* fixed in every edition */
  --ink:#140705;
  --muted:#6D5F60;
  --page:#FBF7F7;           /* blush white */
  --surface:#FFFFFF;
  --line:#E4DBDB;           /* decorative dividers */
  --field-line:#8F7A7B;     /* inputs, checkboxes, switches: 4.0:1 on white */
  --disabled-bg:#E9E1E1;
  --disabled-ink:#9B8E8F;
  --ok:#2F7D4F;   --ok-ink:#276B43;   --ok-wash:#E7F2EB;
  --warn:#A86A12; --warn-ink:#8E5A0E; --warn-wash:#FBF0DC;
  --err:#C2410C;  --err-ink:#B23A0B;  --err-wash:#FDECE3;
  --scrim:rgba(20,7,5,.45);

  /* type */
  --font:"Source Sans 3","Source Sans Pro","Helvetica Neue",Arial,sans-serif;
  --fs-display:40px; --fs-h1:28px; --fs-h2:18px; --fs-h3:16px; --fs-body:15px; --fs-small:13px; --fs-label:12px;
  --lh-body:1.45;

  /* space and shape */
  --s1:4px; --s2:8px; --s3:12px; --s4:16px; --s5:20px; --s6:24px; --s7:32px; --s8:48px;
  --radius:6px; --radius-sheet:12px;
  --target:44px; --row:56px; --row-compact:40px;
  --content-max:1080px; --nav-w:220px; --form-max:560px;
  --lift:0 1px 2px rgba(112,34,40,.16),0 12px 28px -12px rgba(112,34,40,.38);

  /* motion */
  --t-fast:120ms; --t-mid:200ms; --t-slow:320ms; --stagger:40ms;
  --ease:cubic-bezier(.2,.7,.2,1);
}
@media (max-width:759px){ :root{ --fs-display:32px; --fs-h1:24px; --fs-body:16px; } }
@media (prefers-reduced-motion:reduce){ :root{ --t-fast:0ms; --t-mid:0ms; --t-slow:0ms; --stagger:0ms; } }

:root{--star:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJsAAACgCAYAAAAb3B7iAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAm6ADAAQAAAABAAAAoAAAAAArlKYUAAAUtElEQVR4Ae2cCbAdVZnHQWQgIBgRiBAkYZElbAoIDEgQpEYQQZ2lUBAZB8YpVAodRQYVHKtc2MtdkCkQUEsRHaRECzNWyg2EDMIgssMDDLKGJSBbROf3e3ltzut033v7Ln2376v6ve4+fbr79L+/Puc75/R9q6wSFgrUpMBqNV1nlC+zCzd3JKwHd8MLEBYKdF2B2ZzxHNDBfgn7Q1iJAi8qSY/k1hTYimzbgDrOg1fD30BYgQLhbAWiVEhan7wvn8q/LstXwkuntmORUyCcLSdIxc0Z5F9r6hjjX+O2cLYpQfKLcLa8ItW21yB72mxau61T7RTjkzucrf1nbU2ms62enGIm6y9LtmM1USCcLRGj4qraWau9ODnO+M2mNKxAgXC2AlFaTLJm09nSsUodTYdbFcJyCoSz5QSpsFlUs63N8fZQbV7DcgqEs+UEqbCpdjahac2ms82C6CQgQt7C2fKKtL5tU6l+aZOp41mzRdyGCHkLZ8sr0vp2VrOlzubR9kbtlYblFAhnywlSYTOr2fKH2EHIZhXy+8Z6O5yt/cdvk2nMltcwxtpKNM0LVZItkisoYDNqzZZ2HCocPrpZw9m6/2xfwilfAfZMwxIFwtkSMSquqp21V76D4Bibwx8xIY8IqYWzpWpUWy9zNp0vOgkFWoazFYjShaQNOYeEJQqEsyViV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gRDP9z8vF4PTt5WUkoZ7AKz/xJE6FEmSWP/pVwiJJQQsdMUnLd45lpW3cXmRAKoaRNapbf+CdDnUkohEIo956CzdBwR7Pq5OmjI4NQ6gmlS+OdhjqqE0LJf+dqliszu8mEUAIL5VCdpDgi/9647L8IhVCqd5boE4lRfvvaMAT7IJScLwRmEMqH6qTNfp0qMjnFkFAyVydVhDJUJ4Sis8RIpupEeyWUYp3lEKP2MiEUQimRSDKxiBD2SRFCyZfIrDI5iwnFhGwCoZy+siViVL06MdxJIpTom9uWGJEJoeQRyoeOUW4D4EEo4dviuStnEpVzm7jqRA6urnYHofTpGGRi2DkubkMnofQp2+2GFf+rLw4nlEZfWkvE4n/1Pb+TUPp8aQ11xP93Yz3uyKFk5ewcZCL+v1MNnnflUbJydo5FJtroFyrpdXcedZacHWS+TFwTSsBrOSzJ5f3aqk7EPtxkulOceVcpyETsw+VRwvJ2EDIR+3B5lLC8cwFk4sR3uDzqLHk7ifs4HNAMl0dCydtJnmzUs7lQ3O1LKCW/uoaEhBKqrUtW7hLe6pd5lFBtXUfJ/SQm6apSQuXQfRO5O8ohRoQSKYeSpVGTicuuCOXCA1UaNJlUEsqtk+idE1Vl6XORCalEyV/XRA0N2mqOw5qE4qt7/XUGNq3l3j376Meyk/ntixCjypVKiK0P1ZPUbVfnJJJ2Ugm1h6paomwL//r+lCVOqW/VCzkPKPFAnrmV8PNbEg7ElUu6iluSARAKAEIBQCgAQCgACAUAoQAgFADYwX+RRb81k4CtqwAAAABJRU5ErkJggg==");}
/* wiMoney Masterclass - built on the wiPAYE design system (docs/ALUWI-STYLE-GUIDE.md).
   Colours, sizes and timings come only from docs/aluwi-tokens.css (prepended by tools/build.py).
   One deliberate addition for long reading: --fs-read (17px lesson text). Light only. */
/* lesson text grows a little on big screens (17px up to 1400 wide, 22px from 2200) so the page fills more of the screen */
:root{--fs-read:clamp(17px,8.25px + .625vw,22px);--lh-read:1.6;--measure:68ch}
@media (max-width:759px){:root{--fs-read:17px}}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-behavior:smooth;scroll-padding-top:72px}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
html,body{background:var(--page);color:var(--ink)}
body{font:400 var(--fs-body)/var(--lh-body) var(--font);-webkit-font-smoothing:antialiased;margin:0;min-height:100vh;display:flex;flex-direction:column}
button,input,select,textarea{font:inherit;color:inherit}
h1,h2,h3,h4{text-wrap:balance;margin:0}
p,ul,ol,dl,figure{margin:0}
a{color:var(--brand);text-underline-offset:3px}
img,svg{max-width:100%}
.num,table{font-variant-numeric:tabular-nums}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.bar :focus-visible,.solid :focus-visible{outline-color:#fff}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:16px;top:-60px;z-index:100;background:var(--ink);color:#fff;padding:10px 14px;border-radius:var(--radius);font-weight:600}
.skip:focus{top:8px}

/* brand marks: the logo's own star and wi, never redrawn */
.star{display:inline-block;flex:none;width:16px;height:16px;background:currentColor;-webkit-mask:var(--star) center/contain no-repeat;mask:var(--star) center/contain no-repeat}
.wi{display:inline-block;width:1.15em;height:.85em;margin-right:.04em;vertical-align:-.04em;background:currentColor;-webkit-mask:var(--wi) center/contain no-repeat;mask:var(--wi) center/contain no-repeat}
.ic{width:20px;height:20px;flex:none;fill:currentColor}

/* product bar */
.bar{position:sticky;top:0;z-index:40;background:var(--brand);color:#fff;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));display:flex;align-items:center;gap:14px;min-height:56px}
.brandmark{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:600;white-space:nowrap;color:#fff;text-decoration:none;min-height:44px}
.brandmark .star{width:20px;height:20px;color:#fff}
.brandmark .wi{color:var(--on-brand-soft)}
.brandmark .pn{letter-spacing:.02em}
.bar .sp{flex:1}
.bar nav{display:flex;align-items:center;gap:2px}
.bar nav a{display:inline-flex;align-items:center;min-height:44px;padding:0 12px;border-radius:var(--radius);color:var(--on-brand-soft);font-weight:600;text-decoration:none;white-space:nowrap}
.bar nav a:hover{background:var(--brand-deep);color:#fff}
.bar nav a[aria-current="page"]{color:#fff;box-shadow:inset 0 -3px 0 #fff;border-radius:0}
.menu-btn{display:none;min-width:44px;min-height:44px;border:0;border-radius:var(--radius);background:transparent;color:#fff;cursor:pointer;align-items:center;justify-content:center}
.menu-btn .ic{width:22px;height:22px}
/* small phones: the name, the button and the menu must all fit on the top bar */
@media (max-width:420px){.brandmark{font-size:15px;gap:6px}.brandmark .star{width:16px;height:16px}.bar .btn{padding-inline:8px;font-size:13px}}
@media (max-width:979px){
  .menu-btn{display:inline-flex}
  .bar nav{display:none;position:absolute;left:0;right:0;top:56px;background:var(--brand);flex-direction:column;align-items:stretch;padding:8px 16px 16px;gap:4px;box-shadow:var(--lift)}
  .bar nav.open{display:flex}
  .bar nav a[aria-current="page"]{box-shadow:none;background:var(--brand-deep);border-radius:var(--radius)}
  .bar .btn.on-white{display:none}
}

/* shells */
main{flex:1;min-width:0}
main:focus{outline:none}
.wrap{max-width:var(--content-max);margin:0 auto;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
.page{padding-block:32px 64px;display:grid;grid-template-columns:minmax(0,1fr);gap:24px}
.shell{display:grid;grid-template-columns:300px minmax(0,1fr);align-items:start}
.shell > .content{min-width:0;padding:24px max(16px,env(safe-area-inset-right,0px)) 64px 32px}
.side{position:sticky;top:56px;height:calc(100vh - 56px);overflow-y:auto;background:var(--surface);border-right:1px solid var(--line);padding:16px 10px 32px}
.side-btn{display:none}
@media (max-width:979px){
  .shell{grid-template-columns:minmax(0,1fr)}
  .shell > .content{padding:16px 16px 64px}
  .side{display:none;position:fixed;inset:56px 0 0 0;height:auto;z-index:30;border-right:0}
  .side.open{display:block}
  .side-btn{display:inline-flex;margin-bottom:12px}
}

/* heads and text helpers */
.eyebrow{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:var(--fs-label);font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.eyebrow .star{width:11px;height:11px;color:var(--accent)}
h1{font-size:var(--fs-h1);line-height:1.15;font-weight:700}
h2{font-size:var(--fs-h2);line-height:1.3;font-weight:700}
h3{font-size:var(--fs-h3);line-height:1.35;font-weight:700}
.display{font-size:var(--fs-display);line-height:1.1;font-weight:700}
.lead{font-size:18px;line-height:1.5;max-width:60ch}
.muted{color:var(--muted)} .small{font-size:var(--fs-small)}
.crumbs{font-size:var(--fs-small);color:var(--muted)}
.crumbs a{color:var(--muted)}
.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.between{justify-content:space-between}
.stack{display:grid;gap:10px;align-content:start}
.stack-lg{display:grid;gap:20px;align-content:start}
.grid{display:grid;gap:16px}
.g2{grid-template-columns:repeat(2,minmax(0,1fr))} .g3{grid-template-columns:repeat(3,minmax(0,1fr))} .g4{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:979px){.g3,.g4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:759px){.g2,.g3{grid-template-columns:minmax(0,1fr)}}
@media (max-width:420px){.g4{grid-template-columns:minmax(0,1fr)}}

/* buttons */
.btn{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 18px;border-radius:var(--radius);border:1px solid var(--brand);background:var(--brand);color:#fff;font-weight:600;cursor:pointer;white-space:nowrap;text-decoration:none;transition:background var(--t-fast),transform var(--t-fast)}
.btn:hover{background:var(--brand-deep);border-color:var(--brand-deep)}
.btn:active{background:var(--brand-deep);transform:scale(.98)}
.btn.ghost{background:var(--surface);color:var(--brand)}
.btn.ghost:hover{background:var(--brand-wash)}
.btn.on-white{background:#fff;color:var(--brand);border-color:#fff}
.btn.on-white:hover{background:var(--brand-tint)}
.btn.danger{background:var(--err);border-color:var(--err)}
.btn.big{min-height:48px;font-size:16px;padding:0 22px}
.btn.done{background:var(--ok);border-color:var(--ok)}
.btn[disabled]{background:var(--disabled-bg);border-color:var(--disabled-bg);color:var(--disabled-ink);cursor:not-allowed;transform:none}
.link{min-height:44px;display:inline-flex;align-items:center;gap:6px;border:0;background:none;color:var(--brand);font-weight:600;cursor:pointer;padding:0;text-decoration:underline;text-underline-offset:3px}
@media (max-width:759px){.btn.big{width:100%}}

/* cards, pills, notices */
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:18px 20px;min-width:0}
.lifted{box-shadow:var(--lift);border-color:transparent}
.tint{background:var(--brand-tint);border-color:var(--brand-tint)}
.solid{position:relative;overflow:hidden;background:var(--brand);color:#fff;border-color:var(--brand)}
.solid .wm{position:absolute;right:-40px;top:-46px;width:200px;height:200px;color:rgba(255,255,255,.08);pointer-events:none}
.solid > :not(.wm){position:relative}
.solid .muted,.solid .eyebrow{color:var(--on-brand-soft)}
.solid a:not(.btn){color:#fff}
.pill{display:inline-flex;align-items:center;gap:6px;padding:2px 10px;border-radius:999px;font-size:var(--fs-small);font-weight:600;white-space:nowrap;background:var(--brand-wash);color:var(--muted);letter-spacing:0;text-transform:none}
.pill.ok{background:var(--ok-wash);color:var(--ok-ink)} .pill.warn{background:var(--warn-wash);color:var(--warn-ink)} .pill.err{background:var(--err-wash);color:var(--err-ink)} .pill.brand{background:var(--brand-tint);color:var(--brand)} .pill.tbv{background:var(--accent-wash);color:var(--accent-ink)}
.pill .ic{width:13px;height:13px}
.note{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-radius:var(--radius);background:var(--brand-tint)}
.note .ni{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;flex:none;background:var(--surface);color:var(--brand)}
.note .ni .ic{width:16px;height:16px}
.note.warn{background:var(--warn-wash)} .note.warn .ni{background:var(--warn);color:#fff}
.note.ok{background:var(--ok-wash)} .note.ok .ni{background:var(--ok);color:#fff}
.note > div{min-width:0;display:grid;gap:2px}

/* forms */
.field{display:grid;gap:6px}
.field > label{font-weight:600;font-size:14px}
.hint,.help{font-size:var(--fs-small);color:var(--muted)}
.input{min-height:44px;width:100%;padding:0 12px;border:1px solid var(--field-line);border-radius:var(--radius);background:var(--surface);font-size:16px}
textarea.input{padding:10px 12px;min-height:120px;resize:vertical;line-height:1.45}
.input:focus{border-color:var(--brand)}
.seg{display:inline-flex;flex-wrap:wrap;border:1px solid var(--field-line);border-radius:var(--radius);overflow:hidden;background:var(--surface)}
.seg button{min-height:44px;padding:0 16px;border:0;background:transparent;font-weight:600;cursor:pointer;color:var(--muted)}
.seg button[aria-pressed="true"]{background:var(--brand);color:#fff}
.seg button[aria-pressed="true"][data-st="ok"]{background:var(--ok)}
.seg button[aria-pressed="true"][data-st="edit"]{background:var(--warn-ink)}
.seg button[aria-pressed="true"][data-st="cut"]{background:var(--err)}
.switch-row{display:flex;align-items:center;gap:14px;min-height:44px}
.switch{position:relative;width:56px;height:44px;border:0;background:transparent;cursor:pointer;flex:none;padding:0}
.switch::before{content:"";position:absolute;left:2px;top:7px;width:52px;height:30px;border-radius:15px;background:var(--field-line);transition:background var(--t-mid)}
.switch::after{content:"";position:absolute;top:10px;left:5px;width:24px;height:24px;border-radius:50%;background:#fff;transition:transform var(--t-mid) var(--ease)}
.switch[aria-checked="true"]::before{background:var(--brand)}
.switch[aria-checked="true"]::after{transform:translateX(22px)}

/* tables */
.tblwrap,.tbl-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
table{border-collapse:collapse;width:100%}
th{background:var(--brand);color:#fff;font-weight:600;font-size:var(--fs-small);text-align:right;padding:10px 12px;vertical-align:bottom}
th:first-child,td:first-child{text-align:left}
td{padding:10px 12px;border-top:1px solid var(--line);text-align:right;vertical-align:top}
tfoot td,tr.total td{font-weight:700;background:var(--brand-tint)}
td.l,th.l{text-align:left}

/* progress */
.prog{height:8px;border-radius:4px;background:var(--brand-tint);overflow:hidden}
.prog i{display:block;height:100%;width:0;background:var(--brand);border-radius:4px;transition:width var(--t-slow) var(--ease)}
.solid .prog{background:rgba(255,255,255,.2)} .solid .prog i{background:#fff}

/* course side menu */
.side .grp{font-size:var(--fs-label);font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);padding:6px 12px}
.side .sp{padding:4px 12px 14px;display:grid;gap:6px}
.side details{border-radius:var(--radius)}
.side summary{display:flex;align-items:center;gap:10px;min-height:44px;padding:6px 12px;border-radius:var(--radius);font-weight:600;cursor:pointer;list-style:none}
.side summary::-webkit-details-marker{display:none}
.side summary:hover{background:var(--brand-wash)}
.side summary .mn{flex:none;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-size:12px;background:var(--brand-tint);color:var(--brand)}
.side details.cur > summary{color:var(--brand)}
.side details.alldone summary .mn{background:var(--ok);color:#fff}
.side .ls{display:grid;padding:2px 0 8px 12px}
.side .ls a{display:flex;gap:8px;align-items:flex-start;min-height:44px;padding:10px 10px;border-radius:var(--radius);color:var(--ink);text-decoration:none;font-size:14px;line-height:1.35}
.side .ls a:hover{background:var(--brand-wash)}
.side .ls a[aria-current="page"]{background:var(--brand-tint);color:var(--brand);font-weight:600}
.side .ls .ln{flex:none;min-width:30px;color:var(--muted);font-variant-numeric:tabular-nums}
.side .ls a.is-done .ln{color:var(--ok-ink)}
.side .ls a.is-done::after{content:"";flex:none;margin-left:auto;width:16px;height:16px;border-radius:50%;background:var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9.2 15.6L19.1 5.7L21 7.6L9.2 19.4L3 13.2L4.9 11.3Z'/%3E%3C/svg%3E") center/11px no-repeat}
body.fast .side .ls a:not(.core):not(.ov),body.fast .lgrid li:not(.core){display:none}

/* lesson reading */
.reader{max-width:760px;margin-inline:auto;display:grid;gap:20px;grid-template-columns:minmax(0,1fr)}
/* wide screens: nav | lesson | "On this page", the usual course and docs layout. The lesson column stays a readable
   width; the title and video run across both columns. .toc comes right after .prose so it lands beside it. */
.toc{display:none}
@media (min-width:1400px){
  article.reader{max-width:calc(var(--fs-read)*54);grid-template-columns:minmax(0,1fr) calc(var(--fs-read)*13);column-gap:calc(var(--fs-read)*2)}
  article.reader > *{grid-column:1}
  article.reader > header,article.reader > .lvideo{grid-column:1/-1}
  article.reader > .toc{display:grid;gap:4px;grid-column:2;position:sticky;top:76px;align-self:start;max-height:calc(100vh - 96px);overflow-y:auto;font-size:var(--fs-small)}
  .toc .t{font-size:var(--fs-label);font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);padding:0 8px 4px}
  .toc a{display:block;padding:6px 8px;border-radius:var(--radius);color:var(--ink);text-decoration:none;line-height:1.35}
  .toc a:hover{background:var(--brand-wash)} .toc a.on{background:var(--brand-tint);color:var(--brand);font-weight:600}
  .prose h2{scroll-margin-top:76px}
}
.reader > header{display:grid;gap:10px}
.reader h1{font-size:32px;line-height:1.12}
@media (max-width:759px){.reader h1{font-size:26px}}
.meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.prose{font-size:var(--fs-read);line-height:var(--lh-read);display:grid;gap:16px;grid-template-columns:minmax(0,1fr)}
.prose > p,.prose > ul,.prose > ol,.prose > h2,.prose > h3{max-width:var(--measure)}
.prose h2{font-size:22px;line-height:1.25;margin-top:16px}
.prose h3{font-size:18px;margin-top:8px}
.prose ul,.prose ol{padding-left:22px;display:grid;gap:6px}
.prose li::marker{color:var(--brand);font-weight:600}
.prose strong{font-weight:700}
/* a long web address or email must wrap, never push the page sideways */
.prose{overflow-wrap:break-word}
.prose table{font-size:15px}
/* smallest phones: wide lesson tables must still fit the screen */
@media (max-width:400px){.prose table{font-size:13px}.prose th,.prose td{padding:8px 5px;overflow-wrap:anywhere}}
.hook{font-size:19px;line-height:1.55;display:grid;gap:12px;max-width:var(--measure)}
.objectives,.takeaways,.block,.callout,.gloss,.check,.sources{border-radius:var(--radius);padding:18px 20px;display:grid;gap:10px;grid-template-columns:minmax(0,1fr)}
.objectives > .t,.takeaways > .t,.block > .t,.callout > .t,.gloss > .t,.check > .t,.sources > .t{font-size:var(--fs-label);font-weight:600;letter-spacing:.1em;text-transform:uppercase;display:flex;align-items:center;gap:8px}
.objectives > .t::before,.takeaways > .t::before,.block > .t::before,.callout > .t::before,.gloss > .t::before,.check > .t::before,.sources > .t::before{content:"";flex:none;width:11px;height:11px;background:var(--accent);-webkit-mask:var(--star) center/contain no-repeat;mask:var(--star) center/contain no-repeat}
.objectives{background:var(--brand-tint)} .objectives > .t{color:var(--brand)}
.takeaways{background:var(--brand);color:#fff} .takeaways > .t{color:var(--on-brand-soft)} .takeaways > .t::before{background:#fff} .takeaways li::marker{color:#fff}
.block,.gloss,.check,.sources{background:var(--surface);border:1px solid var(--line)}
.block > .t,.gloss > .t,.check > .t,.sources > .t{color:var(--muted)}
.block.example{box-shadow:var(--lift);border-color:transparent}
.block.local{background:var(--accent-wash);border-color:var(--accent-wash)} .block.local > .t{color:var(--accent-ink)}
.block.tryit{background:var(--ok-wash);border-color:var(--ok-wash)} .block.tryit > .t{color:var(--ok-ink)}
.callout{background:var(--warn-wash)} .callout > .t{color:var(--warn-ink)}
.sources{font-size:14px} .sources ul{padding-left:20px;gap:4px} .sources a{word-break:break-word}
.figure{display:grid;gap:6px} .figure svg{display:block;border-radius:var(--radius);height:auto}
.figure figcaption,.cap{font-size:var(--fs-small);color:var(--muted)}
.flow{display:grid;gap:8px;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.fstep{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:12px 14px;font-size:15px;display:grid;gap:4px;align-content:start}
.fstep > :first-child{font-weight:700;color:var(--brand)}
.gloss dl{display:grid;gap:8px;font-size:15px} .gloss dt{font-weight:700} .gloss dd{margin:0;color:var(--muted)}
.verify{display:inline-block;padding:0 8px;border-radius:999px;font-size:12px;font-weight:600;background:var(--accent-wash);color:var(--accent-ink);vertical-align:1px}

/* quick check */
.qn{display:grid;gap:8px;padding-top:12px;border-top:1px solid var(--line)}
.qn:first-of-type{border-top:0;padding-top:0}
.qq{font-weight:600}
.opts{display:grid;gap:8px}
.opts button{min-height:44px;text-align:left;padding:10px 14px;border:1px solid var(--field-line);border-radius:var(--radius);background:var(--surface);cursor:pointer;font-size:16px;line-height:1.35}
.opts button:hover{background:var(--brand-wash)}
.qn.answered .opts button{cursor:default}
.qn.answered .opts button:hover{background:var(--surface)}
.opts button.right,.qn.answered .opts button.right:hover{border-color:var(--ok);background:var(--ok-wash);font-weight:600}
.opts button.wrong,.qn.answered .opts button.wrong:hover{border-color:var(--err);background:var(--err-wash)}
.opts button.right::after{content:" - correct";color:var(--ok-ink)} .opts button.wrong::after{content:" - not this one";color:var(--err-ink)}
.why{display:none;font-size:15px;color:var(--muted)} .qn.answered .why{display:block}
.score{font-weight:600;color:var(--brand)}

/* lesson foot */
.pager{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.pager a{display:grid;gap:2px;padding:14px 16px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);text-decoration:none;color:var(--ink);min-height:44px}
.pager a:hover{background:var(--brand-wash)} .pager a small{color:var(--muted);font-size:var(--fs-label);letter-spacing:.1em;text-transform:uppercase;font-weight:600}
.pager a b{font-weight:600;color:var(--brand)} .pager .next{text-align:right;grid-column:2}
@media (max-width:759px){.pager{grid-template-columns:minmax(0,1fr)} .pager .next{grid-column:1;text-align:left}}
.finish{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;padding:18px 20px;border-radius:var(--radius);background:var(--brand-tint)}

/* module + course lists */
.lgrid{list-style:none;padding:0;margin:0;display:grid;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);overflow:hidden}
.lgrid li + li{border-top:1px solid var(--line)}
.lgrid a{display:flex;gap:12px;align-items:center;min-height:56px;padding:10px 16px;color:var(--ink);text-decoration:none}
.lgrid a:hover{background:var(--brand-wash)}
.lgrid .n{flex:none;min-width:36px;font-weight:700;color:var(--brand);font-variant-numeric:tabular-nums}
.lgrid .t{flex:1;min-width:0;font-weight:600}
.lgrid .d{flex:none;color:var(--muted);font-size:var(--fs-small);white-space:nowrap}
.lgrid li.is-done .n{color:var(--ok-ink)}
.lgrid li.is-done .d::after{content:" · done";color:var(--ok-ink);font-weight:600}
.mcard{display:grid;gap:10px;align-content:start;text-decoration:none;color:var(--ink)}
a.mcard:hover{border-color:var(--brand)}
.mcard .mn{font-size:var(--fs-label);font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.mcard .mm{margin-top:auto;display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;font-size:var(--fs-small);color:var(--muted)}
.cap-actions{list-style:none;padding:0;display:grid;gap:4px}
.cap-actions li{display:flex;gap:12px;align-items:flex-start;min-height:44px;padding:8px 0}
.cap-actions input{width:22px;height:22px;margin:2px 0 0;accent-color:var(--brand);flex:none}
.cap-actions label{display:grid;gap:2px;cursor:pointer;min-width:0}
.cap-actions li.done span{text-decoration:line-through;color:var(--muted)}
.cap-actions .tl{font-size:var(--fs-small);font-weight:600}
.outcomes ol{padding-left:22px;display:grid;gap:6px}

/* home */
.hero{background:var(--brand);color:#fff;position:relative;overflow:hidden}
.hero .wm{position:absolute;right:-80px;top:-90px;width:420px;height:420px;color:rgba(255,255,255,.06);pointer-events:none}
.hero .wrap{position:relative;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:40px;align-items:center;padding-block:56px}
.hero h1{font-size:44px;line-height:1.08}
.hero .lead{color:var(--on-brand-soft)}
.hero .eyebrow{color:var(--on-brand-soft)} .hero .eyebrow .star{color:#fff}
.hero .facts{display:flex;flex-wrap:wrap;gap:8px 20px;font-size:14px;color:var(--on-brand-soft);list-style:none;padding:0}
.hero .facts li{display:flex;gap:6px;align-items:center} .hero .facts .ic{width:16px;height:16px;color:#fff}
@media (max-width:979px){.hero .wrap{grid-template-columns:minmax(0,1fr);padding-block:36px;gap:28px} .hero h1{font-size:32px}}
.section{padding-block:48px} .section.alt{background:var(--surface);border-block:1px solid var(--line)}
.section > .wrap{display:grid;gap:24px;grid-template-columns:minmax(0,1fr)}
.section h2{font-size:28px;line-height:1.15}
@media (max-width:759px){.section{padding-block:32px} .section h2{font-size:24px}}
.slip{color:var(--ink);display:grid;gap:12px}
.slip .rl,.results .rl{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px solid var(--line)}
.slip .rl span:last-child,.results .rl .v{font-variant-numeric:tabular-nums;font-weight:600;text-align:right;white-space:nowrap}
.slip .net{background:var(--brand-tint);border-radius:var(--radius);padding:12px 14px;border:0;align-items:baseline}
.slip .net span:last-child{font-size:28px;font-weight:700;color:var(--brand)}
.slip input[type=range]{width:100%;accent-color:var(--brand);min-height:44px}
.ticks{list-style:none;padding:0;display:grid;gap:10px}
.ticks li{display:flex;gap:10px;align-items:flex-start}
.ticks .ic{color:var(--ok);margin-top:2px}
.price{font-size:var(--fs-display);font-weight:700;line-height:1;font-variant-numeric:tabular-nums}
.faq details{border-top:1px solid var(--line);padding:4px 0} .faq details:last-child{border-bottom:1px solid var(--line)}
.faq summary{min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-weight:600;cursor:pointer;list-style:none}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-size:22px;color:var(--brand);font-weight:400}
.faq details[open] summary::after{content:"-"}
.faq details p{padding:0 0 14px;max-width:70ch;color:var(--muted)}

/* calculators */
/* the calculator comes first on the page, so it takes the wide column and the list of calculators the narrow one */
.tools-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px;align-items:start}
@media (max-width:979px){.tools-layout{grid-template-columns:minmax(0,1fr)}}
.tool-list{display:grid;gap:2px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:8px}
.tool-list .lvl{font-size:var(--fs-label);font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);padding:10px 10px 4px}
.tool-list a{display:flex;gap:10px;align-items:center;min-height:44px;padding:6px 10px;border-radius:var(--radius);color:var(--ink);text-decoration:none;font-size:14px;font-weight:600}
.tool-list a:hover{background:var(--brand-wash)} .tool-list a[aria-current="page"]{background:var(--brand-tint);color:var(--brand)}
.tool-list .n{flex:none;width:24px;color:var(--muted);font-variant-numeric:tabular-nums}
.tool-panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px;display:grid;gap:14px;grid-template-columns:minmax(0,1fr)}
/* two columns only when the box itself has room for both, whatever the screen size */
.tool-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:24px;align-items:start}
.tool-grid .inputs{display:grid;gap:14px}
.field .in{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 12px;border:1px solid var(--field-line);border-radius:var(--radius);background:var(--surface)}
.field .in span{color:var(--muted);font-size:14px;font-weight:600}
.field .in input{flex:1;min-width:0;border:0;outline:0;background:transparent;font-size:16px;min-height:42px;font-variant-numeric:tabular-nums}
.field .in:focus-within{outline:2px solid var(--accent);outline-offset:2px}
.results{background:var(--brand-tint);border-radius:var(--radius);padding:8px 16px 14px;display:grid}
.results .rl:first-child{border-top:0}
.results .rl{border-color:rgba(112,34,40,.15)}
.results .rl.emphasis .v{font-size:22px;color:var(--brand)}
.results .rl.good .v{color:var(--ok-ink)} .results .rl.warn .v{color:var(--err-ink)}
.results .note{background:var(--surface);font-size:14px;margin-top:10px;display:block}
.bars{display:grid;gap:10px;margin-top:12px}
.bars .t{display:flex;justify-content:space-between;font-size:var(--fs-small);font-weight:600}
.bars .tr{height:12px;border-radius:6px;background:var(--surface);overflow:hidden}
.bars .f{height:100%;background:var(--brand-light);border-radius:6px} .bars .f.gold{background:var(--brand)} .bars .f.stone{background:var(--muted)}
.tool-disc{font-size:var(--fs-small);color:var(--muted)}

/* before launch: one line under the top bar on every page, and lessons that are listed but not open yet */
.prelaunch{margin:0;padding:10px max(16px,env(safe-area-inset-left,0px));background:var(--accent-wash);color:var(--accent-ink);border-bottom:1px solid #E2CFA8;text-align:center;font-size:15px;font-weight:600}
a[data-locked]{color:var(--muted);cursor:default}
a[data-locked]:hover{background:transparent}
.pill.soon{margin-left:8px;white-space:nowrap}

/* report a problem with this page */
.report{padding-block:8px 28px;display:grid;gap:12px;font-size:var(--fs-small)}
.report form{max-width:560px}

/* reviewer */
.rev{border:2px dashed var(--accent);background:var(--accent-wash);border-radius:var(--radius);padding:18px 20px;display:grid;gap:12px;grid-template-columns:minmax(0,1fr)}
.rev h2{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;justify-content:space-between}
.rev .saved{font-size:var(--fs-small);color:var(--accent-ink);font-weight:600}
.revbar{position:sticky;bottom:0;z-index:35;background:var(--accent-wash);color:var(--accent-ink);border-top:1px solid #E2CFA8;padding:6px max(16px,env(safe-area-inset-right,0px)) calc(6px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;font-size:14px;font-weight:600}
.revbar a{color:var(--accent-ink);min-height:44px;display:inline-flex;align-items:center}
.revbar .sp{flex:1}
.rtable td,.rtable th{text-align:left} .rtable td:last-child{white-space:nowrap}
.rtable td .nt{display:block;font-size:var(--fs-small);color:var(--muted);white-space:pre-wrap;max-width:60ch}

/* footer, toast, print */
footer{background:var(--surface);border-top:1px solid var(--line);padding-block:32px;font-size:14px;color:var(--muted)}
footer .cols{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:24px}
footer h3{font-size:var(--fs-label);letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin-bottom:6px}
footer .cols a{display:flex;align-items:center;min-height:36px;color:var(--ink);text-decoration:none} footer .cols a:hover{text-decoration:underline}
footer .pname{font-size:18px;font-weight:600;color:var(--ink)} footer .pname .wi{color:var(--brand)}
footer .legal{margin-top:20px;padding-top:16px;border-top:1px solid var(--line);display:flex;flex-wrap:wrap;gap:6px 20px;justify-content:space-between}
@media (max-width:759px){footer .cols{grid-template-columns:repeat(2,minmax(0,1fr))} footer .cols > :first-child{grid-column:1/-1}}
.toast{position:fixed;left:50%;bottom:72px;transform:translate(-50%,20px);background:var(--ink);color:#fff;padding:10px 16px;border-radius:var(--radius);font-weight:600;opacity:0;pointer-events:none;transition:opacity var(--t-mid),transform var(--t-mid) var(--ease);z-index:60;max-width:calc(100vw - 32px)}
.toast.show{opacity:1;transform:translate(-50%,0)}
.cert{max-width:820px;margin:0 auto;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:48px clamp(16px,6vw,40px);text-align:center;display:grid;gap:16px;justify-items:center;grid-template-columns:minmax(0,1fr);position:relative;overflow:hidden}
.cert .star.big{width:56px;height:56px;color:var(--brand)}
.cert .who{font-size:36px;font-weight:700;border-bottom:2px solid var(--accent);padding:0 clamp(8px,4vw,24px) 6px;min-width:min(260px,100%);overflow-wrap:anywhere}
.status{min-height:1.5em} .status.err{color:var(--err-ink)}
/* lesson video (watch only, viewer's mark over it) */
.lvideo{display:grid;gap:8px;margin:16px 0}
.lv-wrap{position:relative;background:#000;border-radius:var(--radius);overflow:hidden;aspect-ratio:16/9}
.lv-wrap video{display:block;width:100%;height:100%}
.lv-mark{position:absolute;left:8%;top:10%;color:#fff;opacity:.3;font-weight:600;font-size:clamp(12px,1.6vw,18px);text-shadow:0 0 3px #000;pointer-events:none;user-select:none;transition:left 1s,top 1s}
.lv-row{display:flex;gap:12px;justify-content:space-between;align-items:center;flex-wrap:wrap}
.lv-wrap:fullscreen{border-radius:0}
/* our own full screen button sits on the picture, so the way out ("Exit full screen") is always in view; the player's
   built-in one is hidden because it would drop the viewer's mark */
.lv-full{position:absolute;top:10px;right:10px;z-index:2;min-height:36px;padding:6px 12px;border:0;border-radius:var(--radius);background:rgba(0,0,0,.6);color:#fff;font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.lv-full:hover,.lv-full:focus-visible{background:rgba(0,0,0,.85)}
.lv-wrap:fullscreen .lv-full{top:16px;right:16px;min-height:44px;font-size:16px}
.lv-wrap video::-webkit-media-controls-fullscreen-button{display:none}
/* The course is read on screen only: no printing and no saving as a PDF (Danny, 24 Nov 2026). Only the learner's own
   certificate prints; every other page prints one line saying so. */
@media print{
  .bar,.side,.side-btn,footer,.revbar,.rev,.no-print,.toast,.lvideo{display:none!important}
  body{background:#fff;display:block}
  body:not(:has(.cert)) main{display:none!important}
  body:not(:has(.cert))::after{content:"wiMoney Masterclass is for reading on screen. Its pages cannot be printed or saved as a PDF.";display:block;padding:40px;font-size:14pt}
  .cert{border:0}
}

/* older lesson parts kept from the first course */
.lesson-tools{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:15px;font-weight:600}
.lesson-tools a{min-height:44px;display:inline-flex;align-items:center}
.compare{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.cbox{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:14px 16px;font-size:15px;display:grid;gap:8px;align-content:start}
.cbox h5{margin:0;font-size:var(--fs-h3);color:var(--brand)}
.cbox ul{padding-left:18px;display:grid;gap:4px}
.doc{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:6px 14px;font-size:14px;font-variant-numeric:tabular-nums}
.docrow{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px solid var(--line)}
.docrow:first-child{border-top:0}
.docrow span:last-child{text-align:right}
.docnote{font-size:var(--fs-small);color:var(--muted)}
.timeline{list-style:none;padding:0!important;display:grid;gap:0}
.timeline li{display:grid;grid-template-columns:90px minmax(0,1fr);gap:12px;padding:10px 0;border-top:1px solid var(--line);font-size:15px}
.timeline li:first-child{border-top:0}
.timeline li b{color:var(--brand)}
details.card > summary{cursor:pointer;min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none}
details.card > summary::-webkit-details-marker{display:none}
.sources a::after,details.card li a::after{content:" (opens in a new tab)";font-size:12px;color:var(--muted)}

/* ---- motion (Danny, 24 Nov 2026: "more motion and dynamics", "look like it cost a lot of money", "a motion moving
   background ... something branded") ----
   Everything here is decoration on top of a page that already works. Movement starts only when the script adds .motion
   to <html>, and never for people who ask their device for less movement. Only transform and opacity are animated.
   No new colours: the tokens, plus white at low strength on wine as the star watermark already uses. */

/* the background behind every page: one canvas fixed to the screen that the script draws large rings and discs on.
   It sits above the plain page and section backgrounds and below everything with words on it; cards, the wine
   opening, the side menu and the footer cover it. It takes no room and no taps. */
.backdrop{position:fixed;left:0;top:0;width:100%;height:100vh;height:100lvh;z-index:0;pointer-events:none}
.has-backdrop .prelaunch,.has-backdrop footer,.has-backdrop main .wrap,.has-backdrop .shell > .content{position:relative}
.bars .f{transform-origin:left center}
/* a calculator's bar rows share a class name with the wine top bar and were picking up its look (solid wine blocks,
   label and figure run together). This gives them back their own: label and figure on one line, the bar under it. */
.bars .bar{position:static;display:block;z-index:auto;min-height:0;padding:0;background:none;color:inherit;box-shadow:none}
@media print{.backdrop,.mrail{display:none!important}}

/* page to page: the wine bar stays put, the page under it changes */
@view-transition{navigation:auto}
header.bar{view-transition-name:bar}
::view-transition-old(root){animation:vtOut .2s cubic-bezier(.4,0,1,1) both}
::view-transition-new(root){animation:vtIn .45s cubic-bezier(.23,1,.32,1) both}
@keyframes vtOut{to{opacity:0;transform:translateY(-8px)}}
@keyframes vtIn{from{opacity:0;transform:translateY(14px)}}
@media (prefers-reduced-motion:reduce){::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}}

/* how far down a lesson you are: a thin line at the very top */
.readbar{position:fixed;left:0;top:0;height:3px;width:100%;background:var(--accent);transform:scaleX(0);transform-origin:left;z-index:45;pointer-events:none}

/* the pay slip stands on a small stage so it can lean towards the pointer, with two faint sheets behind it */
.slip-stage{min-width:0;perspective:1200px}
.slip-tilt{position:relative;transform-style:preserve-3d;will-change:transform}
.slip-tilt .sheet{position:absolute;inset:0;border-radius:var(--radius);background:rgba(255,255,255,.1);pointer-events:none;transform:translate3d(10px,10px,-30px) rotate(1.2deg)}
.slip-tilt .sheet.b{background:rgba(255,255,255,.06);transform:translate3d(20px,19px,-60px) rotate(2.4deg)}
@media (min-width:980px){
  .slip-tilt .sheet{transform:translate3d(16px,15px,-40px) rotate(1.6deg)}
  .slip-tilt .sheet.b{transform:translate3d(32px,29px,-80px) rotate(3.2deg)}
}
.slip .net span:last-child{display:inline-block;transform-origin:right center}
.hero .facts{font-variant-numeric:tabular-nums}
/* the label on the white pay slip was taking the hero's pale pink, which cannot be read on white */
.hero .slip .eyebrow{flex-wrap:nowrap;align-items:flex-start} .hero .slip .eyebrow .star{margin-top:2px}
.hero .slip .eyebrow{color:var(--muted)} .hero .slip .eyebrow .star{color:var(--accent)}

/* modules strip: while you scroll the list of modules, a slim strip under the top bar shows how far along you are */
.mrail{position:fixed;left:0;right:0;top:56px;z-index:39;background:var(--surface);border-bottom:1px solid var(--line);pointer-events:none;opacity:0;transform:translateY(-100%);transition:transform .4s cubic-bezier(.23,1,.32,1),opacity .25s}
.mrail.show{opacity:1;transform:none}
.mrail .wrap{display:flex;justify-content:space-between;align-items:center;height:38px}
.mrail i{flex:none;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-size:11px;font-weight:700;font-variant-numeric:tabular-nums;background:var(--brand-tint);color:var(--brand);transition:transform .35s cubic-bezier(.23,1,.32,1),background .25s,color .25s}
.mrail i.on{background:var(--brand);color:#fff}
.mrail i.now{transform:scale(1.22)}
@media (max-width:420px){.mrail i{width:18px;height:18px;font-size:10px}}

/* the "Course contents" button is for phones and tablets; on a wide screen the list is already open beside the lesson
   (the button was showing there too, because the button style comes later in this file) */
@media (min-width:980px){.btn.side-btn{display:none}}

/* a progress mark with nothing in it yet was showing as a small blank blob */
.pill:empty{display:none}

/* lessons that are not open yet: quiet on purpose, with the note kept to the right */
.lgrid a[data-locked] .n,.lgrid a[data-locked] .t{color:var(--muted)}
.lgrid a[data-locked] .t{font-weight:400}
.lgrid a[data-locked] .pill.soon{margin-left:auto;flex:none}
/* phones: the note drops under the lesson name, so the name keeps the width of the row */
@media (max-width:559px){.lgrid a[data-locked]{flex-wrap:wrap;row-gap:4px}.lgrid a[data-locked] .pill.soon{margin-left:48px;margin-right:calc(100% - 48px - 12em)}}

@media (prefers-reduced-motion:no-preference){
  html{scroll-behavior:smooth}
  .motion .backdrop{animation:fade 1.6s ease both}

  /* things rise into place as they come into view; --i staggers neighbours */
  .motion [data-rise]{opacity:0;transform:translateY(24px) scale(.985);transition:opacity .75s cubic-bezier(.23,1,.32,1),transform .75s cubic-bezier(.23,1,.32,1);transition-delay:calc(var(--i,0) * 60ms)}
  .motion [data-rise].in{opacity:1;transform:none}
  /* the small gold star beside a section label turns into place */
  .motion .eyebrow[data-rise] .star{transform:rotate(-140deg) scale(.4);transition:transform 1s cubic-bezier(.23,1,.32,1) .15s}
  .motion .eyebrow[data-rise].in .star{transform:none}
  /* ticks land a moment after their line */
  .motion .ticks li[data-rise] .ic{transform:scale(.3);opacity:0;transition:transform .5s cubic-bezier(.23,1,.32,1),opacity .3s;transition-delay:calc(var(--i,0) * 60ms + 220ms)}
  .motion .ticks li[data-rise].in .ic{transform:none;opacity:1}

  /* the opening of the home page, in order: label, headline word by word, text, buttons, facts, then the pay slip */
  .motion .hero h1 .ln{display:inline-block;overflow:hidden;vertical-align:top;padding-bottom:.14em;margin-bottom:-.14em}
  .motion .hero h1 .ln > span{display:inline-block;transform:translateY(110%);animation:lineUp .9s cubic-bezier(.23,1,.32,1) forwards;animation-delay:calc(.15s + var(--i,0) * .06s)}
  .motion .hero .eyebrow,.motion .hero .lead,.motion .hero .row,.motion .hero .facts{opacity:0;animation:fadeUp .8s cubic-bezier(.23,1,.32,1) forwards}
  .motion .hero .eyebrow{animation-delay:.05s} .motion .hero .lead{animation-delay:.5s} .motion .hero .row{animation-delay:.62s} .motion .hero .facts{animation-delay:.74s}
  .motion .hero .eyebrow .star{animation:starIn 1.1s cubic-bezier(.23,1,.32,1) .1s both}
  .motion .hero .slip{opacity:0;animation:cardIn 1.1s cubic-bezier(.23,1,.32,1) .4s forwards}
  .motion .hero .slip > *{opacity:0;animation:fade .6s ease forwards;animation-delay:calc(.75s + var(--r,0) * .07s)}
  .motion .slip-tilt .sheet{animation:sheetIn 1s cubic-bezier(.23,1,.32,1) 1s backwards}
  .motion .hero .wm,.motion .solid .wm{animation:turn 120s linear infinite;transform-origin:50% 50%}
  .motion .hero .wm.b{right:auto;left:-140px;top:auto;bottom:-220px;width:520px;height:520px;animation-duration:170s;animation-direction:reverse}
  .motion .hero .slip .net span:last-child{transition:transform .3s cubic-bezier(.23,1,.32,1)}
  .motion .hero .slip.tick .net span:last-child{transform:scale(1.06)}

  /* buttons: pressed feel everywhere, and on a real pointer a fill that wipes across */
  .btn{position:relative;overflow:hidden;isolation:isolate;transform:translate(var(--mx,0px),var(--my,0px));transition:transform .2s cubic-bezier(.23,1,.32,1),box-shadow .25s,border-color var(--t-mid)}
  .btn:active{transform:translate(var(--mx,0px),var(--my,0px)) scale(.97);box-shadow:none}
  .btn[disabled]{transform:none}
  .btn.done{animation:pop .4s cubic-bezier(.23,1,.32,1)}
  .opts button.right{animation:pop .4s cubic-bezier(.23,1,.32,1)}
  .opts button{transition:transform .16s cubic-bezier(.23,1,.32,1)}
  .opts button:active{transform:scale(.985)}
  .card{transition:transform .35s cubic-bezier(.23,1,.32,1),box-shadow .35s,border-color var(--t-mid)}
  header.bar{transition:box-shadow .3s}
  .scrolled header.bar{box-shadow:0 10px 30px -18px rgba(0,0,0,.6)}
  .bar nav.open{animation:fadeUp .28s cubic-bezier(.23,1,.32,1)}
  .faq details[open] p{animation:fadeUp .4s cubic-bezier(.23,1,.32,1)}
  .toc a{transition:background .25s,color .25s}
  .motion .lvideo{animation:fadeUp .7s cubic-bezier(.23,1,.32,1)}
  .lv-wrap{transition:box-shadow .4s}

  /* other ways of arriving: a picture grows a little, the two halves of a pair come from their own sides, and the
     rows of a table or list follow their box one at a time */
  .motion [data-rise="s"]{transform:scale(.96)}
  @media (min-width:760px){.motion [data-rise="l"]{transform:translateX(-16px)} .motion [data-rise="r"]{transform:translateX(16px)}}
  .motion [data-rise="c"] :is(tbody tr,li,dt){opacity:0;transition:opacity .5s ease;transition-delay:calc(.25s + var(--i,0) * 55ms)}
  .motion [data-rise="c"].in :is(tbody tr,li,dt){opacity:1}
  .motion [data-rise] > .t::before{transform:rotate(-140deg) scale(.4);transition:transform .9s cubic-bezier(.23,1,.32,1) .2s}
  .motion [data-rise].in > .t::before{transform:none}
  /* the top of every page: its lines come up in order */
  .motion main header > *{opacity:0;animation:fadeUp .7s cubic-bezier(.23,1,.32,1) forwards}
  .motion main header > :nth-child(2){animation-delay:.07s} .motion main header > :nth-child(3){animation-delay:.14s} .motion main header > :nth-child(4){animation-delay:.21s} .motion main header > :nth-child(n+5){animation-delay:.28s}
  .motion main header .eyebrow .star{animation:starIn 1.1s cubic-bezier(.23,1,.32,1) .15s both}
  .motion.first .prelaunch{animation:fadeDown .7s cubic-bezier(.23,1,.32,1) .2s both}
  /* lesson pages */
  .motion .toc{animation:fade .8s ease .4s both}
  .toc a{transition:background .25s,color .25s,transform .3s cubic-bezier(.23,1,.32,1)} .toc a.on{transform:translateX(3px)}
  .qn.answered .why{animation:fadeUp .35s cubic-bezier(.23,1,.32,1)}
  .opts button.wrong{animation:nudge .35s ease-out}
  /* my plan: a ticked step */
  .cap-actions input:checked{animation:tickpop .35s cubic-bezier(.23,1,.32,1)}
  .cap-actions li span{transition:color .3s}
  /* things that open: a group of sources, a question, the menu on a phone, the report form */
  details.card[open] > :not(summary){animation:fadeUp .35s cubic-bezier(.23,1,.32,1)}
  .faq summary::after{transition:transform .3s cubic-bezier(.23,1,.32,1)} .faq details[open] summary::after{transform:rotate(180deg)}
  .bar nav.open a{animation:fadeUp .35s cubic-bezier(.23,1,.32,1) both}
  .bar nav.open a:nth-child(2){animation-delay:.04s} .bar nav.open a:nth-child(3){animation-delay:.08s} .bar nav.open a:nth-child(4){animation-delay:.12s} .bar nav.open a:nth-child(5){animation-delay:.16s} .bar nav.open a:nth-child(n+6){animation-delay:.2s}
  .menu-btn{transition:transform .16s cubic-bezier(.23,1,.32,1)} .menu-btn:active{transform:scale(.9)}
  .report form{animation:fadeUp .35s cubic-bezier(.23,1,.32,1)}
  #signin-google{animation:fadeUp .5s cubic-bezier(.23,1,.32,1)}
  /* calculators: the boxes to fill in arrive in order */
  .tool-panel .field{animation:fadeUp .5s cubic-bezier(.23,1,.32,1) both}
  .tool-panel .field:nth-child(2){animation-delay:.05s} .tool-panel .field:nth-child(3){animation-delay:.1s} .tool-panel .field:nth-child(4){animation-delay:.15s} .tool-panel .field:nth-child(n+5){animation-delay:.2s}
  .card.lean{transition:transform .12s ease-out,box-shadow .35s}

  @media (hover:hover) and (pointer:fine){
    .pager a b{transition:transform .3s cubic-bezier(.23,1,.32,1)} .pager a:hover b{transform:translateX(-4px)} .pager a.next:hover b{transform:translateX(4px)}
    .btn::before{content:"";position:absolute;inset:-1px;z-index:-1;background:var(--brand-deep);transform:scaleX(0);transform-origin:left;transition:transform .4s cubic-bezier(.23,1,.32,1)}
    .btn:hover::before{transform:scaleX(1)}
    .btn.ghost::before{background:var(--brand-wash)} .btn.on-white::before{background:var(--brand-tint)}
    .btn.ghost:hover{background:var(--surface)} .btn.on-white:hover{background:#fff} .btn:not(.ghost):not(.on-white):not(.danger):not(.done):hover{background:var(--brand)}
    .btn.danger::before,.btn.done::before,.btn[disabled]::before{display:none}
    .btn:hover{transform:translate(var(--mx,0px),calc(var(--my,0px) - 2px));box-shadow:0 10px 24px -12px rgba(60,16,20,.55)}
    .btn:active{transform:translate(var(--mx,0px),var(--my,0px)) scale(.97);box-shadow:none}
    .btn[disabled]:hover{transform:none;box-shadow:none}
    a.card:hover,.grid > .card:hover{transform:translateY(-5px);box-shadow:0 22px 40px -26px rgba(60,16,20,.5)}
    .lgrid a:not([data-locked]) .t{transition:transform .3s cubic-bezier(.23,1,.32,1)}
    .lgrid a:not([data-locked]):hover .t{transform:translateX(4px)}
    #site-nav a{position:relative}
    #site-nav a::after{content:"";position:absolute;left:10px;right:10px;bottom:6px;height:2px;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform .3s cubic-bezier(.23,1,.32,1)}
    #site-nav a:hover::after{transform:scaleX(1)}
    .lv-wrap:hover{box-shadow:0 26px 50px -30px rgba(60,16,20,.6)}
  }
}
/* safety: a few seconds after loading, whatever opens a page is shown even if its animation never ran */
.settled.motion main header > *,.settled.motion .hero .eyebrow,.settled.motion .hero .lead,.settled.motion .hero .row,.settled.motion .hero .facts,.settled.motion .hero .slip,.settled.motion .hero .slip > *,.settled.motion .backdrop,.settled.motion .toc,.settled.motion .prelaunch{opacity:1!important}
.settled.motion .hero h1 .ln > span{transform:none!important}
@keyframes lineUp{to{transform:none}}
@keyframes fade{from{opacity:0}to{opacity:1}}
@keyframes fadeUp{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes cardIn{from{opacity:0;transform:translateY(44px) rotateX(10deg) scale(.96)}to{opacity:1;transform:none}}
@keyframes sheetIn{from{opacity:0;transform:translate3d(0,0,-1px)}}
@keyframes starIn{from{transform:rotate(-200deg) scale(.2)}}
@keyframes fadeDown{from{opacity:0;transform:translateY(-10px)}}
@keyframes nudge{25%{transform:translateX(-4px)}60%{transform:translateX(3px)}}
@keyframes tickpop{40%{transform:scale(1.25)}}
@keyframes pop{40%{transform:scale(1.03)}}
@keyframes turn{to{transform:rotate(360deg)}}
