/* Spectrum+ page. Page-level rules are scoped to body[data-product="spectrum"], .sp-main and .sp-foot so site.css is untouched. */
@font-face{
  font-family:"Archivo";
  src:url("/assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight:400 900;
  font-stretch:62% 125%;
  font-display:swap;
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:"Archivo";
  src:url("/assets/fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight:400 900;
  font-stretch:62% 125%;
  font-display:swap;
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
:root{
  --sp-font:"Archivo",system-ui,-apple-system,"Segoe UI",sans-serif;
  --paper:#e3e3e0;
  --paper-2:#d5d5d1;
  --sheet:#ededeb;
  --toner:#1f1e1c;
  --toner-2:#474744;
  --hl-yours:#f4ff3a;
  --hl-changed:#ff5aa8;
  --hl-due:#3df28f;
  --sp-1:4px;
  --sp-2:8px;
  --sp-3:12px;
  --sp-4:16px;
  --sp-5:24px;
  --sp-6:32px;
  --sp-7:48px;
  --sp-8:72px;
  --sp-9:112px;
  --gut:16px;
  --ease:cubic-bezier(.2,.8,.2,1);
  --halftone:radial-gradient(circle at center,rgba(31,30,28,.24) .9px,transparent 1.3px);
  --rule:rgba(31,30,28,.4);
  --on-hl:#1f1e1c;
  --hl-blend:multiply;
  --noise:.18;
  --occ-hover:rgba(244,255,58,.45);
  --vignette:rgba(31,30,28,.11);
  --shadow:3px 14px 34px -8px rgba(31,30,28,.32),0 1px 3px rgba(31,30,28,.18);
  --shadow-lift:14px 30px 60px -14px rgba(31,30,28,.4),0 2px 6px rgba(31,30,28,.2);
  --shadow-dock:6px 26px 50px -12px rgba(31,30,28,.45),0 2px 6px rgba(31,30,28,.22);
  --shadow-drawer:-10px 0 34px -8px rgba(31,30,28,.32),-1px 0 3px rgba(31,30,28,.18);
  --shadow-notif:0 .4em 1em -.3em rgba(31,30,28,.35);
  --shadow-tab:2px 3px 6px -2px rgba(31,30,28,.3);
  --shade:rgba(31,30,28,.07);
  --backdrop:rgba(31,30,28,.45);
  --hair:rgba(31,30,28,.2);
  --hair-strong:rgba(31,30,28,.5);
  --accent-ink:#5C6100;
  --bezel:#1f1e1c;
  --bezel-edge:transparent;
  --hl-pe:.14em;--hl-me:-.14em;
}
@media (min-width:600px){:root{--gut:24px}}
@media (min-width:900px){:root{--gut:32px}}
/* dark paper: same tokens, inverted. Highlights stay bright and carry dark ink (--on-hl). */
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --paper:#1a1a18;--paper-2:#2a2a27;--sheet:#242422;--toner:#ebe9e4;--toner-2:#b4b2ac;
  --rule:rgba(235,233,228,.32);
  --halftone:radial-gradient(circle at center,rgba(235,233,228,.2) .9px,transparent 1.3px);
  --hl-blend:normal;--noise:.1;--occ-hover:rgba(244,255,58,.18);
  --vignette:rgba(0,0,0,.28);
  --shadow:3px 14px 34px -8px rgba(0,0,0,.7),0 1px 3px rgba(0,0,0,.5);
  --shadow-lift:14px 30px 60px -14px rgba(0,0,0,.75),0 2px 6px rgba(0,0,0,.5);
  --shadow-dock:6px 26px 50px -12px rgba(0,0,0,.8),0 2px 6px rgba(0,0,0,.5);
  --shadow-drawer:-10px 0 34px -8px rgba(0,0,0,.7),-1px 0 3px rgba(0,0,0,.5);
  --shadow-notif:0 .4em 1em -.3em rgba(0,0,0,.6);
  --shadow-tab:2px 3px 6px -2px rgba(0,0,0,.6);
  --shade:rgba(0,0,0,.25);--backdrop:rgba(0,0,0,.6);
  --hair:rgba(235,233,228,.16);--hair-strong:rgba(235,233,228,.4);
  --accent-ink:#F4FF3A;
  --bezel:#0d0d0c;--bezel-edge:rgba(235,233,228,.22);--hl-pe:0;--hl-me:0;
}}
:root[data-theme="dark"]{
  --paper:#1a1a18;--paper-2:#2a2a27;--sheet:#242422;--toner:#ebe9e4;--toner-2:#b4b2ac;
  --rule:rgba(235,233,228,.32);
  --halftone:radial-gradient(circle at center,rgba(235,233,228,.2) .9px,transparent 1.3px);
  --hl-blend:normal;--noise:.1;--occ-hover:rgba(244,255,58,.18);
  --vignette:rgba(0,0,0,.28);
  --shadow:3px 14px 34px -8px rgba(0,0,0,.7),0 1px 3px rgba(0,0,0,.5);
  --shadow-lift:14px 30px 60px -14px rgba(0,0,0,.75),0 2px 6px rgba(0,0,0,.5);
  --shadow-dock:6px 26px 50px -12px rgba(0,0,0,.8),0 2px 6px rgba(0,0,0,.5);
  --shadow-drawer:-10px 0 34px -8px rgba(0,0,0,.7),-1px 0 3px rgba(0,0,0,.5);
  --shadow-notif:0 .4em 1em -.3em rgba(0,0,0,.6);
  --shadow-tab:2px 3px 6px -2px rgba(0,0,0,.6);
  --shade:rgba(0,0,0,.25);--backdrop:rgba(0,0,0,.6);
  --hair:rgba(235,233,228,.16);--hair-strong:rgba(235,233,228,.4);
  --accent-ink:#F4FF3A;
  --bezel:#0d0d0c;--bezel-edge:rgba(235,233,228,.22);--hl-pe:0;--hl-me:0;
}

html:has(body[data-product="spectrum"]){
  scrollbar-color:var(--toner) var(--paper-2);
  scrollbar-width:thin;
  overflow-x:clip;
}
body[data-product="spectrum"]{
  background:var(--paper);
  overflow-x:clip;
}
body[data-product="spectrum"]::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:5;
  pointer-events:none;
  opacity:var(--noise);
  mix-blend-mode:multiply;
  background-size:240px 240px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .12 0 0 0 0 .11 0 0 0 1.4 -.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.sp-main,.sp-foot{
  color:var(--toner);
  font-family:var(--sp-font);
  font-stretch:100%;
  font-weight:400;
  font-size:1.0625rem;
  line-height:1.55;
}
.sp-main ::selection,.sp-foot ::selection,.sp-main::selection,.sp-foot::selection{background:var(--hl-yours);color:var(--on-hl)}
.sp-main :focus-visible,.sp-foot :focus-visible{outline:3px solid var(--hl-changed);outline-offset:2px}
.sp-main [hidden],.sp-foot [hidden]{display:none!important}
:where(.sp-main,.sp-foot) :is(h1,h2,h3,h4,p,ul,ol,figure,dl){margin:0}
:where(.sp-main,.sp-foot) :is(h1,h2,h3,h4){font-size:inherit;font-weight:inherit;letter-spacing:normal;line-height:inherit}
:where(.sp-main,.sp-foot) p{max-width:65ch}
:where(.sp-main,.sp-foot) a{color:inherit;text-decoration-line:underline;text-decoration-thickness:2px;text-underline-offset:.2em}
:where(.sp-main,.sp-foot) a:hover{text-decoration-color:var(--hl-changed)}
:where(.sp-main,.sp-foot) strong{font-weight:650}
.sp-defs{position:absolute;width:0;height:0}

.wrap{max-width:1180px;margin-inline:auto;padding-inline:var(--gut)}
.fine{font-size:.9rem;line-height:1.45;color:var(--toner-2)}

.sp-main h1,.sec-title,.close-title,.wordmark{
  font-stretch:66%;
  letter-spacing:-.02em;
  text-wrap:balance;
}
.sp-main h1{font-size:clamp(3rem,9vw,6rem);font-weight:890;line-height:.9}
.sec-title{font-size:clamp(2.25rem,6vw,3.75rem);font-weight:860;line-height:.95;margin-bottom:var(--sp-5);max-width:18ch}
.close-title{font-size:clamp(3rem,9vw,6rem);font-weight:890;line-height:.9;max-width:12ch}

.sec{padding-top:var(--sp-8)}
@media (min-width:900px){.sec{padding-top:var(--sp-9)}}

/* highlighter stroke */
.row-title,.hl,.hl--changed,.hl--due{
  --hl:var(--hl-yours);
  background-image:linear-gradient(var(--hl),var(--hl));
  background-repeat:no-repeat;
  background-position:0 60%;
  background-size:0% 82%;
  -webkit-box-decoration-break:clone;
  box-decoration-break:clone;
  border-radius:.2em .5em .3em .4em;
  mix-blend-mode:var(--hl-blend);
  padding-inline:.14em var(--hl-pe);
  margin-inline:-.14em var(--hl-me);
  transition:background-size 520ms var(--ease),color 520ms var(--ease);
}
.hl--changed{--hl:var(--hl-changed)}
.hl--due{--hl:var(--hl-due)}
.hl,.hl--changed,.hl--due{background-size:100% 82%}
.js [data-sweep]:not(.swept){background-size:0% 82%}
.js:not(.ready) .row-title{background-size:0% 82%}
.no-tr .row-title{transition:none!important}
.hl,.hl--changed,.hl--due{color:var(--on-hl)}
.js [data-sweep]:not(.swept),.js:not(.ready) .row-title{color:inherit}

/* sheets */
.sheet{
  position:relative;
  background:radial-gradient(ellipse 125% 105% at 50% 45%,transparent 58%,var(--vignette) 100%),var(--sheet);
  box-shadow:var(--shadow);
  border-radius:2px 3px 2px 4px;
}

/* download tickets */
.tickets{display:flex;flex-wrap:wrap;gap:var(--sp-3)}
.ticket{
  display:inline-flex;align-items:center;gap:var(--sp-2);
  min-height:48px;padding:var(--sp-3) var(--sp-5);
  font-weight:650;font-size:1rem;line-height:1.2;
  color:var(--on-hl);text-decoration:none;
  background-image:linear-gradient(var(--hl-yours),var(--hl-yours));
  mix-blend-mode:var(--hl-blend);
  border:2px solid var(--on-hl);
  border-radius:.3em .6em .35em .5em;
  transition:transform 150ms,background-color 150ms;
}
.ticket[aria-disabled="true"]{cursor:default;border-style:dashed}
a.ticket{cursor:pointer}
.nw{white-space:nowrap}
@media (max-width:359px){.ticket{padding-inline:var(--sp-4);font-size:.95rem}}
a.ticket:hover{transform:translateY(-1px);background-color:rgba(255,255,255,.35)}
a.ticket:active{transform:translateY(1px)}
.ico{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* hero */
.hero-sheet{padding:var(--sp-5) var(--sp-3) var(--sp-6);margin-top:var(--sp-4);--tilt:-.6deg;transform:rotate(var(--tilt))}
@media (max-width:599px){.hero-sheet{--tilt:-.4deg}}
.strip{
  display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-3) var(--sp-5);
  padding-bottom:var(--sp-4);margin-bottom:var(--sp-6);
  border-bottom:2px solid var(--toner);
}
.wordmark{font-size:1.9rem;font-weight:890;line-height:1}
.plus{
  display:inline-block;margin-left:.06em;padding:0 .14em;
  color:var(--on-hl);background:var(--hl-yours);border-radius:.15em .35em .2em .3em;
  mix-blend-mode:var(--hl-blend);
}
.strip-link{font-weight:650;min-height:44px;display:inline-flex;align-items:center}
.stamp{
  margin-left:auto;padding:var(--sp-1) var(--sp-3);
  font-weight:800;font-stretch:90%;font-size:.95rem;letter-spacing:.14em;line-height:1.2;
  border:2.5px solid var(--toner);border-radius:3px 6px 3px 5px;
  transform:rotate(-6deg);
  opacity:.86;
  filter:url(#ink);
}
@media (max-width:599px){
  .strip{gap:var(--sp-2) var(--sp-4)}
  .strip-link{order:3;flex-basis:100%}
  .stamp{font-size:.78rem;letter-spacing:.1em;padding:2px var(--sp-2)}
}
.hero-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--sp-7)}
.hero-grid>*{min-width:0}
.hero-copy{display:flex;flex-direction:column;align-items:flex-start;gap:var(--sp-5)}
.sub{font-size:1.125rem;max-width:62ch}
.hero-copy .fine{margin-top:calc(var(--sp-2) * -1)}

.demo{
  padding:var(--sp-2);
  border:1.5px solid var(--toner);
  border-radius:3px 5px 3px 4px;
  background:var(--paper);
}
.demo-title{font-size:1rem;font-weight:650;color:var(--toner-2)}
.occ-label{margin-top:var(--sp-3);font-size:.95rem}
.occ{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:var(--sp-1);margin-top:var(--sp-2)}
.occ button{
  width:100%;min-width:0;min-height:44px;padding:0;
  font:inherit;font-weight:650;font-variant-numeric:tabular-nums;
  color:var(--toner);background-color:transparent;
  border:2px solid var(--toner);border-radius:.3em .5em .3em .45em;
  cursor:pointer;
  transition:background-color 150ms,transform 150ms;
}
.occ button:hover{background-color:var(--occ-hover)}
.occ button:active{transform:translateY(1px)}
.occ button[aria-checked="true"]{color:var(--on-hl);background-color:var(--hl-yours);mix-blend-mode:var(--hl-blend)}
.posts{list-style:none;padding:0;margin:var(--sp-4) 0 0;border-bottom:1px dashed var(--rule)}
.post{
  display:grid;grid-template-columns:5.5rem minmax(0,1fr);gap:var(--sp-3);
  padding:var(--sp-2) 0;
  border-top:1px dashed var(--rule);
  font-size:.98rem;line-height:1.4;
}
.post.is-other{opacity:.7}
@media (min-width:900px) and (max-resolution:1.49dppx){.post.is-other{filter:url(#toner)}}
.code{font-variant-numeric:tabular-nums;font-weight:650}
.tag{
  display:inline-block;margin-left:var(--sp-2);
  font-size:.8rem;color:var(--toner-2);white-space:nowrap;
  text-decoration-line:underline;text-decoration-style:dotted;text-decoration-thickness:1.5px;text-underline-offset:.2em;
}
.count{margin-top:var(--sp-4);font-weight:650;font-size:1.05rem}
.demo .fine{margin-top:var(--sp-1)}

@media (min-width:600px){
  .hero-sheet{padding:var(--sp-6)}
  .demo{padding:var(--sp-5)}
  .occ{gap:var(--sp-2)}
}
@media (min-width:900px){
  .hero-sheet{
    padding:var(--sp-6) var(--sp-7) var(--sp-7);
    margin-inline:calc(50% - 50vw + 12px);
    margin-top:var(--sp-5);
    --tilt:-.8deg;
    min-height:calc(100svh - 64px - 2 * var(--sp-5));
  }
  .hero-grid{grid-template-columns:minmax(0,11fr) minmax(0,9fr);gap:var(--sp-7);align-items:start}
  .hero-sheet>.strip,.hero-sheet>.hero-grid{max-width:1116px;margin-inline:auto}
}

/* comparison */
.cmp{width:100%;border-collapse:collapse}
.cmp th{
  text-align:left;font-weight:650;font-size:.95rem;color:var(--toner-2);
  padding:var(--sp-3) var(--sp-4);border-bottom:2px solid var(--toner);
}
.cmp td{padding:var(--sp-4);vertical-align:top;border-bottom:1px dashed var(--rule);width:50%}
.cmp td:first-child{background-image:var(--halftone);background-size:6px 6px}
.cmp td::before{content:attr(data-label);display:none}
.strike{position:relative;display:block;width:fit-content;max-width:100%}
.strike::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  transform:rotate(-.7deg);
  background-image:linear-gradient(transparent calc(50% - 1px),var(--toner) calc(50% - 1px),var(--toner) calc(50% + 1px),transparent calc(50% + 1px));
  background-size:100% 1.55em;background-repeat:repeat-y;
}
@media (max-width:600px){
  .cmp thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%)}
  .cmp,.cmp tbody,.cmp tr,.cmp td{display:block;width:100%}
  .cmp tr{padding-bottom:var(--sp-3);margin-bottom:var(--sp-3);border-bottom:1px dashed var(--rule)}
  .cmp td{padding:var(--sp-3);border:0}
  .cmp td::before{display:block;font-size:.8rem;color:var(--toner-2);margin-bottom:var(--sp-1)}
  .cmp td:last-child{padding-top:var(--sp-2)}
}

/* background checks and widget */
.split{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--sp-7)}
.split>*{min-width:0}
@media (max-width:899px){.split--text{gap:var(--sp-2)}}
.split p+p{margin-top:var(--sp-4)}
@media (min-width:900px){
  .split{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);align-items:center;gap:var(--sp-8)}
  .split--text{grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);align-items:start}
  .split--text .sec-title{margin-bottom:0}
}

.fact-list{list-style:disc;padding-left:1.2em;max-width:65ch}
.fact-list li{padding:var(--sp-3) 0 var(--sp-3) var(--sp-1);border-top:1px dashed var(--rule)}
.fact-list li:first-child{border-top:0;padding-top:0}

/* close and footer */
.close{padding:var(--sp-7) var(--sp-4);display:flex;flex-direction:column;align-items:flex-start;gap:var(--sp-5)}
.close .fine{margin-top:calc(var(--sp-2) * -1)}
@media (min-width:600px){.close{padding:var(--sp-8) var(--sp-7)}}
.foot{padding-top:var(--sp-8);padding-bottom:var(--sp-7);display:grid;gap:var(--sp-3)}
.foot p{font-size:.95rem}

/* scenes */
.scene__grid{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--sp-7)}
@media (min-width:900px){.scene__grid{grid-template-columns:minmax(0,1fr) minmax(0,320px);align-items:center}}
.scene__copy{min-width:0}
.scene__copy p+p{margin-top:var(--sp-4)}
.stage{display:grid;justify-items:center;min-width:0}

/* the phone: everything inside is sized in em against a font-size that tracks the phone's width */
.phone{
  container-type:inline-size;
  display:flex;
  width:100%;max-width:320px;aspect-ratio:9/19.5;
  margin:0;padding:8px;overflow:hidden;
  background:var(--bezel);
  border-radius:34px 36px 33px 35px;
  box-shadow:var(--shadow),0 0 0 1.5px var(--bezel-edge);
}
/* real screenshots fill the phone's screen; the notification card drops in over the home screen */
.phone .shot{flex:1 1 auto;min-width:0;min-height:0;width:100%;height:100%;object-fit:cover;object-position:top;border-radius:27px;background:var(--sheet)}
.phone--home{position:relative}
.phone--home .notif-shot{position:absolute;top:3%;left:6%;width:88%;height:auto;border-radius:6% / 16%;box-shadow:var(--shadow-notif)}

/* full-page mock */
.course-visual{display:flex;flex-direction:column;align-items:flex-start;gap:var(--sp-4);min-width:0}
.course-copy{width:100%;min-width:0;display:grid;gap:var(--sp-2);padding:var(--sp-4);font-size:.95rem}
.cc-head{padding-bottom:var(--sp-2);border-bottom:2px solid var(--toner);font-size:.85rem;font-weight:650;color:var(--toner-2)}
.cc{display:grid;gap:var(--sp-2);min-width:0;padding:var(--sp-3);border:1.5px solid var(--toner);border-radius:3px 6px 3px 5px}
.cc-title{position:relative;width:fit-content;max-width:100%;font-weight:650}
.cc-bar{display:block;width:70%;height:.5rem;background-image:var(--halftone);background-size:6px 6px}
.cc--other{opacity:.7}
@media (min-width:900px) and (max-resolution:1.49dppx){.cc--other{filter:url(#toner)}}
.cc--other .cc-title::after{
  content:"";position:absolute;left:0;right:0;top:50%;height:2px;background:var(--toner);
  transform-origin:0 50%;transform:rotate(-.7deg);
}
.cc--yours{
  background-image:linear-gradient(var(--hl-yours),var(--hl-yours));
  background-repeat:no-repeat;background-position:0 0;background-size:100% 100%;
  mix-blend-mode:var(--hl-blend);
  color:var(--on-hl);
}

.cc--yours .cc-bar{background-image:radial-gradient(circle at center,rgba(31,30,28,.24) .9px,transparent 1.3px)}

/* topbar and Projects drawer in the photocopy look. Tokens are redefined on body so site.css's
   dark/light/product blocks all resolve to paper values. :root:root:root beats the (0,3,0)
   ":root[data-theme=light] [data-product=spectrum]" and ":root:not([data-theme=dark]) [data-product=spectrum]" blocks. */
:root:root:root body[data-product="spectrum"]{
  --bg:var(--sheet);
  --surface:var(--paper-2);
  --card:var(--sheet);
  --text:var(--toner);
  --text-2:var(--toner-2);
  --text-3:var(--toner-2);
  --hairline:var(--hair);
  --hairline-strong:var(--hair-strong);
  --accent:var(--hl-yours);
  --accent-text:var(--accent-ink);
  --accent-on:var(--on-hl);
  --accent-muted:rgba(244,255,58,.45);
}
body[data-product="spectrum"] .topbar{background:var(--sheet);border-bottom:2px solid var(--toner)}
body[data-product="spectrum"] :is(.brand,.menu-btn,.menu-label){font-family:var(--sp-font);font-stretch:100%}
body[data-product="spectrum"] .mark{background:var(--sheet);color:var(--toner);border:1.5px solid var(--toner);border-radius:4px 7px 4px 6px}
body[data-product="spectrum"] :is(.menu-btn,.theme-toggle,.drawer-close){
  background:var(--sheet);color:var(--toner);
  border:2px solid var(--toner);border-radius:5px 8px 5px 7px;
}
body[data-product="spectrum"] :is(.menu-btn,.theme-toggle,.drawer-close):hover{background:var(--occ-hover);mix-blend-mode:var(--hl-blend)}
body[data-product="spectrum"] :is(.topbar,dialog.drawer) :focus-visible{outline:3px solid var(--hl-changed);outline-offset:2px}

body[data-product="spectrum"] dialog.drawer,
body[data-product="spectrum"] dialog.drawer *{font-family:var(--sp-font)}
body[data-product="spectrum"] dialog.drawer{
  border-left:0;
  background:radial-gradient(ellipse 125% 105% at 50% 45%,transparent 58%,var(--vignette) 100%),var(--sheet);
  color:var(--toner);
  box-shadow:var(--shadow-drawer);
}
body[data-product="spectrum"] dialog.drawer:not(.open){box-shadow:none}
body[data-product="spectrum"] .drawer::backdrop{background:var(--backdrop)}
body[data-product="spectrum"] .drawer-head{border-bottom:2px solid var(--toner)}
body[data-product="spectrum"] .drawer-head h2,
body[data-product="spectrum"] .drawer-group h3{font-stretch:66%;font-weight:860;letter-spacing:-.02em;text-transform:none}
body[data-product="spectrum"] .drawer-head h2{font-size:1.75rem;line-height:1}
body[data-product="spectrum"] .drawer-group h3{font-size:1.1rem;color:var(--toner);background:var(--sheet)}
body[data-product="spectrum"] .drawer-group h3::after{height:0;background:transparent;border-top:1px dashed var(--rule)}
body[data-product="spectrum"] .view-switch{
  background:var(--paper);border:1.5px solid var(--toner);border-radius:6px 9px 6px 8px;
}
body[data-product="spectrum"] .view-switch::before{
  background:var(--hl-yours);border:1.5px solid var(--toner);border-radius:4px 7px 4px 6px;
  mix-blend-mode:var(--hl-blend);
}
body[data-product="spectrum"] .view-switch button{color:var(--toner-2);font-weight:650;border-radius:4px 7px 4px 6px}
body[data-product="spectrum"] .view-switch button[aria-pressed="true"]{color:var(--on-hl)}
body[data-product="spectrum"] .drawer-group li{border-top:1px dashed var(--rule)}
body[data-product="spectrum"] .drawer-group li:first-child{border-top:0}
body[data-product="spectrum"] .drawer-link{border-radius:0;color:var(--toner)}
body[data-product="spectrum"] a.drawer-link:hover{background:transparent}
body[data-product="spectrum"] .drawer-link[aria-current="page"]{background:transparent}
body[data-product="spectrum"] .drawer-name{
  justify-self:start;
  --hl:var(--hl-yours);
  background-image:linear-gradient(var(--hl),var(--hl));
  background-repeat:no-repeat;background-position:0 60%;background-size:0% 82%;
  border-radius:.2em .5em .3em .4em;
  mix-blend-mode:var(--hl-blend);
  padding-inline:.14em;margin-inline:-.14em;
  color:inherit;
  transition:background-size 520ms var(--ease),color 520ms var(--ease);
}
body[data-product="spectrum"] a.drawer-link:is(:hover,:focus-visible) .drawer-name,
body[data-product="spectrum"] .drawer-link[aria-current="page"] .drawer-name{background-size:100% 82%;color:var(--on-hl)}
body[data-product="spectrum"] .drawer-meta{color:var(--toner-2)}
body[data-product="spectrum"] .drawer-link.is-soon{color:var(--toner-2)}
body[data-product="spectrum"] .src-badge{border:1.5px solid var(--toner);border-radius:3px 6px 3px 5px;color:var(--toner)}
body[data-product="spectrum"] .src-open{background:transparent;color:var(--toner)}
body[data-product="spectrum"] .src-closed{background:transparent;color:var(--toner-2);border-style:dashed}
body[data-product="spectrum"] .drawer-foot{border-top:1px dashed var(--rule)}
body[data-product="spectrum"] .drawer-foot .drawer-all{
  min-height:48px;justify-content:center;align-items:center;gap:var(--sp-2);
  background:var(--hl-yours);color:var(--on-hl);
  border:2px solid var(--on-hl);border-radius:.3em .6em .35em .5em;
  font-weight:650;text-decoration:none;box-shadow:none;
  mix-blend-mode:var(--hl-blend);
  transition:transform 150ms;
}
body[data-product="spectrum"] .drawer-foot .drawer-all:hover{background:var(--hl-yours);transform:translateY(-1px)}

/* motion. Every start state is under .motion (set by theme.js only when reduced motion is off and IntersectionObserver exists),
   so no-JS and reduced-motion visitors always get the finished page. */
@keyframes sp-land{
  from{opacity:0;transform:translateY(-24px) rotate(calc(var(--tilt) - 1.6deg))}
  to{opacity:1;transform:translateY(0) rotate(var(--tilt))}
}
@keyframes sp-thump{
  from{opacity:0;transform:scale(1.7) rotate(-14deg)}
  to{opacity:.86;transform:scale(1) rotate(-6deg)}
}
.motion .hero-sheet{animation:sp-land 700ms var(--ease) both}
.motion .stamp{animation:sp-thump 380ms cubic-bezier(.3,1.5,.5,1) 550ms both}

.motion .scene__copy{transition:opacity 600ms var(--ease),transform 600ms var(--ease)}
.motion .scene__copy:not(.in){opacity:0;transform:translateY(20px)}

/* The phone lands like a sheet of paper when its page (or its place in the scroll) comes into view. */
.motion .stage{transition:opacity 700ms var(--ease),transform 700ms var(--ease)}
.motion .stage:not(.in){opacity:0;transform:translateY(28px) rotate(1.5deg)}

/* Screen choreography. "Screen on" is .stage.in (set by the scroll observer, or by the book page hooks).
   The resting state under .motion is the hidden one; .motion .stage.in switches it on, and it snaps back .4s after
   the stage has gone, so the screen replays every time it comes back. */
.motion .notif-shot{transform:translateY(-140%);opacity:0;transition:transform 0s linear .4s,opacity 0s linear .4s}
.motion .stage.in .notif-shot{
  transform:none;opacity:1;
  transition:transform 520ms var(--ease) 250ms,opacity 520ms var(--ease) 250ms;
}

/* [data-reveal] blocks get .in from js/spectrum.js */
.motion .cmp .strike::after{transform-origin:0 50%;transition:transform 420ms var(--ease)}
.motion .cmp td:last-child{transition:opacity 300ms var(--ease),transform 300ms var(--ease)}
.motion .cmp .hl{transition:background-size 520ms var(--ease) 450ms,color 520ms var(--ease) 450ms}
.motion .cmp:not(.in) .strike::after{transform:rotate(-.7deg) scaleX(0)}
.motion .cmp:not(.in) td:last-child{opacity:0;transform:translateX(-8px)}
.motion .cmp:not(.in) .hl{background-size:0% 82%;color:var(--toner)}
.motion .cmp tbody tr:nth-child(1) .strike::after{transition-delay:0ms}
.motion .cmp tbody tr:nth-child(2) .strike::after{transition-delay:140ms}
.motion .cmp tbody tr:nth-child(3) .strike::after{transition-delay:280ms}
.motion .cmp tbody tr:nth-child(4) .strike::after{transition-delay:420ms}
.motion .cmp tbody tr:nth-child(5) .strike::after{transition-delay:560ms}
.motion .cmp tbody tr:nth-child(6) .strike::after{transition-delay:700ms}
.motion .cmp tbody tr:nth-child(1) td:last-child{transition-delay:300ms}
.motion .cmp tbody tr:nth-child(2) td:last-child{transition-delay:440ms}
.motion .cmp tbody tr:nth-child(3) td:last-child{transition-delay:580ms}
.motion .cmp tbody tr:nth-child(4) td:last-child{transition-delay:720ms}
.motion .cmp tbody tr:nth-child(5) td:last-child{transition-delay:860ms}
.motion .cmp tbody tr:nth-child(6) td:last-child{transition-delay:1000ms}

.motion .fact-list li{transition:opacity 500ms var(--ease),transform 500ms var(--ease)}
.motion .fact-list:not(.in) li{opacity:0;transform:translateY(.7em)}
.motion .fact-list li:nth-child(2){transition-delay:90ms}
.motion .fact-list li:nth-child(3){transition-delay:180ms}
.motion .fact-list li:nth-child(4){transition-delay:270ms}

.motion .cc--other .cc-title::after{transition:transform 420ms var(--ease)}
.motion .cc--yours{transition:background-size 520ms var(--ease) 800ms,color 520ms var(--ease) 800ms}
.motion .course-copy:not(.in) .cc--other .cc-title::after{transform:rotate(-.7deg) scaleX(0)}
.motion .course-copy:not(.in) .cc--yours{background-size:0% 100%;color:var(--toner)}
.motion .course-copy .cc--other .cc-title::after{transition-delay:200ms}
.motion .course-copy .cc--yours~.cc--other .cc-title::after{transition-delay:340ms}

/* Book mode. js/spectrum.js adds html.is-book on desktop and wraps the sections in .book, one sheet of paper each,
   lying in a pile. Everything below is under html.is-book, so mobile, no-JS and narrow windows keep the long scrolling page. */
html.is-book,html.is-book body{overflow:hidden}
html.is-book .sp-main{
  max-width:1280px;
  padding-block:var(--sp-5);
  padding-inline:var(--gut) calc(var(--gut) + 76px);
}
.book{
  --slide:cubic-bezier(.5,0,.2,1);
  --ph:min(300px,calc(100svh - 64px - 2 * var(--sp-5) - 2 * var(--sp-6)) * .4615);
  position:relative;isolation:isolate;
  width:min(100%,1180px);
  height:calc(100svh - 64px - 2 * var(--sp-5));
  margin-inline:auto;
}
/* the rest of the pile under the top sheet */
.book::before,.book::after{
  content:"";position:absolute;inset:0;z-index:-1;
  background:var(--sheet);
  border-radius:2px 3px 2px 4px;
  box-shadow:var(--shadow);
}
.book::before{transform:translate(5px,6px) rotate(.45deg)}
.book::after{transform:translate(10px,12px) rotate(-.3deg)}

html.is-book .page{
  position:absolute;inset:0;
  z-index:calc(var(--pn,9) - var(--pi,0));
  display:flex;flex-direction:column;
  margin:0;min-height:0;overflow:hidden;overflow:clip;
  padding:var(--sp-6) var(--sp-7);
  background:radial-gradient(ellipse 125% 105% at 50% 45%,transparent 58%,var(--vignette) 100%),var(--sheet);
  border-radius:2px 3px 2px 4px;
  box-shadow:var(--shadow);
  transform:rotate(var(--rest,0deg));
  visibility:hidden;
  transition:transform 700ms var(--slide) var(--fd,0ms),box-shadow 700ms var(--slide) var(--fd,0ms),visibility 0s linear calc(700ms + var(--fd,0ms));
}
/* a sheet that has been slid off the pile to the left */
html.is-book .page.is-turned{
  transform:translate(calc(-100% - 12vw),-2%) rotate(-8deg);
  z-index:calc(var(--pn,9) + var(--pi,0));
  box-shadow:var(--shadow-lift);
}
/* the top sheet, and the one lying beneath it, already in place */
html.is-book .page:is(.is-current,.is-under){visibility:visible;transition:transform 700ms var(--slide) var(--fd,0ms),box-shadow 700ms var(--slide) var(--fd,0ms),visibility 0s}
/* a light shade on every sheet that is not on top, which lifts as it becomes the top one */
html.is-book .page::before{
  content:"";position:absolute;inset:0;z-index:5;pointer-events:none;border-radius:inherit;
  background:var(--shade);opacity:1;
  transition:opacity 700ms var(--slide) var(--fd,0ms);
}
html.is-book .page.is-current::before{opacity:0}
.book.is-still .page,.book.is-still .page::before{transition:none!important}
/* measure the flat resting layout, with no tilt or slide */
.book.is-measuring .page{transform:none!important}
/* the hero lands with its own animation outside book mode; here the book does the landing */
html.is-book.motion .hero-sheet{animation:none}

html.is-book .page-in{flex:1 1 0;min-height:0;min-width:0;display:flex;flex-direction:column}
html.is-book .page-in>:first-child{margin-top:auto}
html.is-book .page-in>:last-child{margin-bottom:auto}
html.is-book .page-in.is-fit{
  transform:translateY(var(--fit-y,0px)) scale(var(--fit));transform-origin:top center;
  width:calc(100% / var(--fit));
  margin-inline:calc(50% * (1 - 1 / var(--fit)));
  flex:0 0 100%;
}
.book.is-measuring .page-in *{transform:none!important;transition:none!important;animation:none!important}
html.is-book .page-no{position:absolute;right:var(--sp-5);bottom:var(--sp-3);margin:0;line-height:1;font-variant-numeric:tabular-nums}

/* index tabs */
.book-tabs{position:absolute;top:var(--sp-5);left:100%;z-index:40;margin-left:-10px}
.book-tabs ol{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.book-tabs button{
  display:flex;align-items:center;gap:.45em;
  width:86px;min-height:34px;margin:0;padding:0 .5em 0 16px;
  font-family:var(--sp-font);
  font-stretch:66%;font-weight:800;font-size:.85rem;line-height:1;text-align:left;
  color:var(--toner);background:var(--paper-2);
  border:1.5px solid var(--toner);border-left:0;border-radius:0 .45em .55em 0;
  box-shadow:var(--shadow-tab);
  cursor:pointer;
  transition:transform 220ms var(--ease),background-color 220ms var(--ease);
}
.book-tabs button:hover{transform:translateX(3px)}
.book-tabs button[aria-current="page"]{background:var(--sheet);transform:translateX(5px)}
.tab-n{flex:none;color:var(--toner-2);font-variant-numeric:tabular-nums}
.tab-t{
  min-width:0;white-space:nowrap;padding-inline:.14em;margin-inline:-.14em;
  border-radius:.2em .5em .3em .4em;
}
.book-tabs button[aria-current="page"] .tab-t{
  background-image:linear-gradient(var(--hl-yours),var(--hl-yours));
  background-repeat:no-repeat;background-position:0 60%;background-size:100% 82%;
  mix-blend-mode:var(--hl-blend);
  color:var(--on-hl);
}

/* compact layouts, so every page fits the book */
html.is-book .sec-title{font-size:clamp(2rem,5.2vh,3.25rem);margin-bottom:var(--sp-4)}
html.is-book .sp-main h1{font-size:clamp(2.6rem,9vh,5.5rem)}
html.is-book .close-title{font-size:clamp(2.6rem,9vh,5rem)}
html.is-book .scene__grid{grid-template-columns:minmax(0,1fr) var(--ph);gap:var(--sp-6);align-items:center}
html.is-book #full-page .scene__grid{grid-template-columns:minmax(0,1fr) minmax(0,340px)}
html.is-book .phone{max-width:var(--ph)}
html.is-book .stage{align-self:center}
/* the phones of pages 3-6 leave the paper: a slot holds each one's place, and one shared dock floats above the pile */
html.is-book .stage-slot{width:100%;max-width:var(--ph);aspect-ratio:9/19.5;justify-self:center;align-self:center}
html.is-book .dock{
  position:fixed;z-index:30;left:var(--dx,0px);top:var(--dy,0px);width:var(--dw,300px);
  display:grid;pointer-events:none;
  transform:translate(-50%,-50%) translateX(calc(50vw + 100%)) rotate(12deg);
  visibility:hidden;
  transition:transform 700ms var(--ease),visibility 0s linear 700ms;
}
html.is-book .dock.is-on{
  transform:translate(-50%,-50%) rotate(.8deg);
  visibility:visible;
  transition:transform 700ms var(--ease),visibility 0s;
}
html.is-book .dock.is-still{transition:none!important}
/* Only the screen changes between pages 3-6: the incoming face fades in on top while the outgoing one
   stays fully drawn underneath, so the frame never dims or moves. */
html.is-book .dock>.stage{
  grid-area:1/1;width:100%;
  opacity:0;visibility:hidden;transform:none;
  transition:opacity 0s linear .3s,visibility 0s linear .3s;
}
html.is-book .dock>.stage.is-shown{
  z-index:1;opacity:1;visibility:visible;
  transition:opacity .3s var(--ease),visibility 0s;
}
html.is-book .dock .phone{
  max-width:none;width:100%;
  box-shadow:var(--shadow-dock),0 0 0 1.5px var(--bezel-edge);
}

html.is-book .hero-sheet{margin:0;min-height:0;--tilt:0deg}
html.is-book .hero-grid{grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:var(--sp-6);align-items:center}
html.is-book .strip{padding-bottom:var(--sp-3);margin-bottom:var(--sp-4)}
html.is-book .hero-copy{gap:var(--sp-4)}
html.is-book .demo{padding:var(--sp-3)}
html.is-book .occ-label{margin-top:var(--sp-2)}
html.is-book .occ{grid-template-columns:repeat(12,minmax(0,1fr));gap:var(--sp-1);margin-top:var(--sp-1)}
html.is-book .occ button{min-height:36px}
html.is-book .count{margin-top:var(--sp-2);font-size:.95rem}
html.is-book .posts{margin-top:var(--sp-2)}
html.is-book .post{grid-template-columns:4.6rem minmax(0,1fr);gap:var(--sp-2);padding:3px 0;font-size:.85rem;line-height:1.3}
html.is-book .demo .fine{font-size:.8rem}

html.is-book .cmp th{padding:var(--sp-2) var(--sp-4)}
html.is-book .cmp td{padding:var(--sp-2) var(--sp-4)}

html.is-book .scene__copy p+p{margin-top:var(--sp-3)}
html.is-book .close{padding:0;background:none;box-shadow:none;gap:var(--sp-4)}
html.is-book .course-copy{padding:var(--sp-3);gap:var(--sp-2)}
html.is-book .page .sp-foot{max-width:none;margin:auto 0 0;padding:var(--sp-4) 0 0;gap:var(--sp-1)}
html.is-book .page .sp-foot p{font-size:.8rem;line-height:1.4;max-width:none}
html.is-book .page .sp-foot .fine{font-size:.75rem}

/* print: undo the pile and let the pages run one after another */
@media print{
  html.is-book,html.is-book body{overflow:visible}
  html.is-book .sp-main{padding-inline:var(--gut)}
  html.is-book .book{height:auto;width:auto}
  html.is-book .book::before,html.is-book .book::after{display:none}
  html.is-book .page{
    position:static;z-index:auto;height:auto;overflow:visible;
    visibility:visible!important;transform:none!important;
    break-after:page;page-break-after:always;
  }
  html.is-book .page:last-of-type{break-after:auto;page-break-after:auto}
  html.is-book .page::before{display:none}
  html.is-book .dock{display:none}
  html.is-book .stage-slot{display:none}
  html.is-book .page-in{flex:none;min-height:auto}
  html.is-book .page-in.is-fit{transform:none;width:auto;margin-inline:0;flex:none}
  html.is-book .book-tabs{display:none}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}
}
