/* ==========================================================================
   ExamStudyAid, the homepage's story (site v5): one evening's revision told on the app's own screens, on black.
   From the approved prototype (~/examstudyaid-revamp, app.css), loaded by pages/index.html only.
   ========================================================================== */

/* the app's own face, for the screens in the phone (IBM Plex Sans 1.1.0, OFL, the app's own files) */
@font-face {
  font-family: "Plex";
  font-weight: 300;
  font-display: swap;
  src: url("../../pages/fonts/ibm-plex-sans-1.1.0-complete-300.57c6c8fb7d9a.woff2") format("woff2");
}
@font-face {
  font-family: "Plex";
  font-weight: 400;
  font-display: swap;
  src: url("../../pages/fonts/ibm-plex-sans-1.1.0-complete-regular.5aaadb685d3c.woff2") format("woff2");
}
@font-face {
  font-family: "Plex";
  font-weight: 500;
  font-display: swap;
  src: url("../../pages/fonts/ibm-plex-sans-1.1.0-complete-500.02ec16345450.woff2") format("woff2");
}
@font-face {
  font-family: "Plex";
  font-weight: 600;
  font-display: swap;
  src: url("../../pages/fonts/ibm-plex-sans-1.1.0-complete-600.51d76d33ef85.woff2") format("woff2");
}
@font-face {
  font-family: "Plex";
  font-weight: 700;
  font-display: swap;
  src: url("../../pages/fonts/ibm-plex-sans-1.1.0-complete-700.ea5f696de389.woff2") format("woff2");
}
:root {
  --a-ink: #111c34;
  --a-soft: #66666b;
  --a-desk: #e6e8e4;
  --a-dot: rgba(17, 28, 52, 0.085);
  --a-paper: #f1f2ef;
  --a-sheet: #f6f6f2;
  --a-raised: #f8f8f4;
  --a-border: #d8dee3;
  --a-blue: #175be8;
  --a-right: #176b57;
  --a-wrong: #a33b35;
  --a-bio: #16814f;
  --plex: "Plex", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ==========================================================================
   The story, on black
   ========================================================================== */
.story {
  /* the landing page's own words on black: the headline's bright white for every line, the small ones too (pointer 4
     of the list of 28 November 2026); size and weight keep the headline standing out. Never the site's secondary
     colour, which other pages keep. */
  --home-words: var(--on-night);
  position: relative;
  background: var(--night);
  color: var(--on-night);
}
.stage {
  position: relative;
  overflow: hidden;
}
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(30% 46% at var(--gx, 70%) var(--gy, 54%), rgb(64 92 160 / 0.32), rgb(64 92 160 / 0) 70%);
  opacity: var(--glow, 0);
}

/* the opening */
.open {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  text-align: center;
  padding: calc(var(--gn-h) + clamp(56px, 11vh, 120px)) var(--pad) 40px;
}
.open-title {
  max-width: 12em;
  font-size: clamp(46px, 7vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.038em;
  font-weight: 620;
}
.ol {
  display: inline-block;
}
.open-sub {
  max-width: 33em;
  margin-top: clamp(20px, 2.6vw, 28px);
  font-size: clamp(18px, 1.45vw, 21px);
  line-height: 1.5;
  text-wrap: balance;
}
.open-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(28px, 3.4vw, 40px);
}
@media (max-width: 559px) {
  .open-actions,
  .close-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 340px;
  }
}
/* the one orchestrated moment on arrival: the words rise in, then the phone */
html.motion .open .ol,
html.motion .open-sub,
html.motion .open-actions {
  animation: rise 1.1s var(--ease) both;
}
html.motion .open .ol + .ol {
  animation-delay: 0.08s;
}
html.motion .open-sub {
  animation-delay: 0.2s;
}
html.motion .open-actions {
  animation-delay: 0.3s;
}
html.motion .phone-body {
  animation: rise-phone 1.4s var(--ease) 0.35s both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
  }
}
@keyframes rise-phone {
  from {
    opacity: 0;
    transform: translate3d(0, 60px, 0);
  }
}

/* each step's words */
.steps {
  position: relative;
  z-index: 3;
}
.step-title {
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.034em;
}
.step-text {
  max-width: 24em;
  margin-top: 18px;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.52;
}
.step-small {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
}

/* without scripts: the story as a list beside the answered MCQ */
html:not(.js) .steps {
  display: grid;
  gap: 44px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px var(--pad) 64px;
}
html:not(.js) .phone {
  position: relative;
  width: 412px;
  max-width: 100%;
  margin: 0 auto;
  padding-bottom: 96px;
}
html:not(.js) .scr {
  display: none;
}
html:not(.js) .scr[data-scr="1"] {
  display: block;
}
html:not(.js) .story-ctrl,
html:not(.js) .rail,
html:not(.js) .tap {
  display: none;
}

/* with scripts: one pinned stage */
html.js .story {
  height: calc(100svh + var(--len, 6.5) * 60svh);
}
/* the hand-off, as on the Marrin site: the stage holds for one more screen while the courses rise over it like a
   sheet, the phone still on its last page; the stage settles back a little as it is covered */
html.js.motion .story {
  height: calc(200svh + var(--len, 6.5) * 60svh);
}
html.js.motion .courses {
  position: relative;
  z-index: 4;
  margin-top: -100svh;
  box-shadow: 0 -1px 0 rgb(255 255 255 / 0.06);
}
/* the sheet is the courses and every section after them: on a tall screen the courses are shorter than the screen
   they cover, so the next section still lies over the story's last stretch, and the story (positioned) would paint
   its black and its phone over a section that is not */
html.js.motion .courses ~ section {
  position: relative;
  z-index: 4;
}
html.js.motion .stage {
  transform: scale(calc(1 - var(--cover, 0) * 0.035));
}
.stage-shade {
  position: absolute;
  z-index: 6;
  inset: 0;
  background: #000;
  opacity: calc(var(--cover, 0) * 0.55);
  pointer-events: none;
}
html.js .stage {
  position: sticky;
  top: 0;
  height: 100svh;
}
html.js .open {
  position: absolute;
  inset: 0 0 auto 0;
}
html.js .open.is-gone {
  pointer-events: none;
  visibility: hidden;
}
html.js .steps {
  position: absolute;
  left: var(--pad);
  top: 50%;
  width: min(38%, 560px);
  height: 0;
}
html.js .step {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  transform: translateY(-50%);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0s linear 0.3s;
}
html.js .step.is-on {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s 0.05s;
}
html.motion .step .step-title,
html.motion .step .step-text,
html.motion .step .step-small {
  transform: translateY(14px);
  transition: transform 0.4s;
}
html.motion .step.is-on .step-title,
html.motion .step.is-on .step-text,
html.motion .step.is-on .step-small {
  transform: none;
  transition: transform 0.8s var(--ease);
}
html.motion .step.is-on .step-text {
  transition-delay: 0.06s;
}
html.motion .step.is-on .step-small {
  transition-delay: 0.12s;
}
html.js .phone {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  width: 412px;
  height: 866px;
  transform-origin: 0 0;
}

/* phones: the phone at the top, the words beneath it, the phone fading into the black behind them */
.stage.is-mobile::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--fade, 320px);
  background: linear-gradient(to top, var(--night) 64%, rgb(0 0 0 / 0));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s;
}
.stage.is-mobile.is-faded::after {
  opacity: 1;
}
.stage.is-mobile .steps {
  top: auto;
  bottom: calc(88px + env(safe-area-inset-bottom));
  left: var(--pad);
  right: var(--pad);
  width: auto;
}
.stage.is-mobile .step {
  top: auto;
  bottom: 0;
  transform: none;
}
.stage.is-mobile .step-title {
  font-size: clamp(30px, 8.4vw, 40px);
}
.stage.is-mobile .step-text {
  margin-top: 10px;
  font-size: 16.5px;
}
.stage.is-mobile .step-small {
  margin-top: 8px;
  font-size: 14px;
}
.stage.is-mobile .story-ctrl {
  bottom: calc(22px + env(safe-area-inset-bottom));
}

/* the progress and the controls: one quiet row at the foot of the words, on their edge, away from the phone */
.story-ctrl {
  position: absolute;
  z-index: 3;
  left: var(--edge, var(--pad));
  bottom: clamp(22px, 4vh, 40px);
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0s linear 0.3s;
}
.stage.is-telling .story-ctrl {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s;
}
.rail {
  display: flex;
  gap: 5px;
  margin-right: 14px;
}
.rail li {
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: rgb(255 255 255 / 0.2);
  transition: background-color 0.3s;
}
.rail li.is-on {
  background: rgb(245 245 247 / 0.9);
}
.ctrl-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--home-words);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.16);
  transition:
    color 0.2s,
    box-shadow 0.2s,
    background-color 0.2s;
}
.ctrl-btn svg {
  width: 15px;
  height: 15px;
}
.ctrl-skip {
  display: inline-flex;
  align-items: center;
  height: 32px;
  margin-left: 8px;
  padding: 0 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--home-words);
  transition: color 0.2s;
}
.ctrl-btn:hover {
  color: var(--on-night);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.4);
  background: rgb(255 255 255 / 0.05);
}
.ctrl-skip:hover {
  color: var(--on-night);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- the phone ---------- */
.phone-body {
  position: relative;
  width: 412px;
  height: 866px;
  padding: 11px;
  border-radius: 66px;
  background: linear-gradient(150deg, #4a4d55 0%, #1b1c20 14%, #0e0f12 86%, #43464e 100%);
  box-shadow:
    inset 0 0 0 1.5px rgb(255 255 255 / 0.16),
    inset 0 0 0 5px rgb(0 0 0 / 0.6),
    0 0 0 1px rgb(255 255 255 / 0.05),
    0 70px 140px -40px rgb(0 0 0 / 0.9);
}
.phone-screen {
  position: relative;
  width: 390px;
  height: 844px;
  border-radius: 55px;
  overflow: hidden;
  background: var(--a-desk);
  color: var(--a-ink);
  font-family: var(--plex);
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
  isolation: isolate;
  -webkit-font-smoothing: antialiased;
}
.sb {
  position: absolute;
  z-index: 6;
  inset: 0 0 auto 0;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 30px 0 40px;
  background: var(--a-paper);
}
.sb-time {
  font-size: 16px;
  font-weight: 600;
}
.sb-island {
  position: absolute;
  left: 50%;
  top: 11px;
  width: 122px;
  height: 35px;
  margin-left: -61px;
  border-radius: 20px;
  background: #000;
}
.sb-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sb-sig {
  width: 18px;
  height: 11px;
  background:
    linear-gradient(var(--a-ink), var(--a-ink)) 0 100% / 3px 4px no-repeat,
    linear-gradient(var(--a-ink), var(--a-ink)) 5px 100% / 3px 6px no-repeat,
    linear-gradient(var(--a-ink), var(--a-ink)) 10px 100% / 3px 8px no-repeat,
    linear-gradient(var(--a-ink), var(--a-ink)) 15px 100% / 3px 11px no-repeat;
}
.sb-bat {
  position: relative;
  width: 25px;
  height: 12px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1.4px rgb(17 28 52 / 0.45);
}
.sb-bat::before {
  content: "";
  position: absolute;
  left: 2.5px;
  top: 2.5px;
  width: 16px;
  height: 7px;
  border-radius: 2px;
  background: var(--a-ink);
}
.home-bar {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: 8px;
  width: 134px;
  height: 5px;
  margin-left: -67px;
  border-radius: 3px;
  background: var(--a-ink);
}
.tap {
  position: absolute;
  z-index: 9;
  left: 0;
  top: 0;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: rgb(17 28 52 / 0.16);
  box-shadow: 0 0 0 1.5px rgb(17 28 52 / 0.2);
  opacity: 0;
  pointer-events: none;
}

/* the app's own bar at the top of every page, signed in */
.a-top {
  position: absolute;
  z-index: 5;
  top: 54px;
  left: 0;
  right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: var(--a-paper);
}
.a-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.4px;
}
.a-logo {
  width: 34px;
  height: 32px;
  background: var(--a-ink);
  -webkit-mask: url("../img/esa-mark.501c2c321a42.png") center / contain no-repeat;
  mask: url("../img/esa-mark.501c2c321a42.png") center / contain no-repeat;
}
.a-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--a-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}
.a-view {
  position: absolute;
  top: 118px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

/* each screen: one page of the app; drilling down pushes in from the right, moving elsewhere dips through white */
.scr {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
html.js .scr {
  transform: translate3d(var(--x, 100%), var(--y, 0px), 0);
  opacity: var(--o, 1);
}
html.js .scr::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background: #000;
  opacity: var(--dim, 0);
  pointer-events: none;
}
.a-desk {
  background-color: var(--a-desk);
  background-image: radial-gradient(var(--a-dot) 1px, transparent 1px);
  background-size: 18px 18px;
}
.a-paper {
  background: var(--a-paper);
}
.scr-scroll {
  padding: 20px 20px 120px;
  transform: translate3d(0, var(--qy, 0px), 0);
}

/* the thumb bar, the app's navigation on a phone */
.a-thumb {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  height: 84px;
  display: flex;
  justify-content: space-around;
  padding: 9px 6px 0;
  border-top: 1px solid var(--a-border);
  background: var(--a-paper);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}
.a-thumb > span {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 5px;
  min-width: 62px;
}
.a-thumb > span.is-on {
  color: var(--a-blue);
}
.a-thumb > span.is-press {
  opacity: 0.55;
}
.a-ask {
  position: relative;
}
.a-ask b {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-top: -18px;
  border-radius: 50%;
  background: var(--a-sheet);
  box-shadow:
    0 0 0 1px var(--a-border),
    0 4px 12px rgb(17 28 52 / 0.12);
  font-size: 14px;
  font-weight: 700;
}

/* icons, as masks in the text colour */
.ic {
  display: inline-block;
  flex: none;
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat;
  mask: var(--i) center / contain no-repeat;
}
.ic-list {
  --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M9 6h11M9 12h11M9 18h11'/%3E%3Cpath d='M4 5h1v3M4 11h2l-2 2h2M4 17h2v2H4' stroke-width='1.3'/%3E%3C/svg%3E");
}
.ic-prev {
  --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m14.5 6-6 6 6 6'/%3E%3C/svg%3E");
}
.ic-next {
  --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9.5 6 6 6-6 6'/%3E%3C/svg%3E");
}
.ic-more {
  --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='5' cy='12' r='1.8'/%3E%3Ccircle cx='12' cy='12' r='1.8'/%3E%3Ccircle cx='19' cy='12' r='1.8'/%3E%3C/svg%3E");
}
.ic-grid {
  --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Crect x='4' y='4' width='6.5' height='6.5' rx='1.5'/%3E%3Crect x='13.5' y='4' width='6.5' height='6.5' rx='1.5'/%3E%3Crect x='4' y='13.5' width='6.5' height='6.5' rx='1.5'/%3E%3Crect x='13.5' y='13.5' width='6.5' height='6.5' rx='1.5'/%3E%3C/svg%3E");
}
.ic-book {
  --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 7v14m0-14C9 4 5 4 2 5v14c3-1 7-1 10 2m0-14c3-3 7-3 10-2v14c-3-1-7-1-10 2'/%3E%3C/svg%3E");
}
.ic-down {
  --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.ic-arrow {
  --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14m-6-6 6 6-6 6'/%3E%3C/svg%3E");
}
.ic-up {
  --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5m-6 6 6-6 6 6'/%3E%3C/svg%3E");
}
.ic-copy {
  --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'%3E%3Crect x='8' y='8' width='12' height='12' rx='2'/%3E%3Cpath d='M16 8V5.5A1.5 1.5 0 0 0 14.5 4h-9A1.5 1.5 0 0 0 4 5.5v9A1.5 1.5 0 0 0 5.5 16H8'/%3E%3C/svg%3E");
}
.ic-pen {
  --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19 9a2.8 2.8 0 0 0-4-4L4 16v4Z'/%3E%3Cpath d='m13.5 6.5 4 4'/%3E%3C/svg%3E");
}
.ic-dash {
  --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='7' height='9' rx='1.5'/%3E%3Crect x='13' y='4' width='7' height='5' rx='1.5'/%3E%3Crect x='13' y='11' width='7' height='9' rx='1.5'/%3E%3Crect x='4' y='15' width='7' height='5' rx='1.5'/%3E%3C/svg%3E");
}
.ic-nib {
  --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 6 12l6 9 6-9-6-9Z'/%3E%3Cpath d='M12 3v8'/%3E%3Ccircle cx='12' cy='12.5' r='1.4'/%3E%3C/svg%3E");
}
.ic-buddies {
  --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='9' cy='8.5' r='3.2'/%3E%3Cpath d='M3.5 19c.8-3 3-4.6 5.5-4.6s4.7 1.6 5.5 4.6'/%3E%3Ccircle cx='16.5' cy='9' r='2.6'/%3E%3Cpath d='M16.5 14.2c2 0 3.6 1.3 4.2 3.8'/%3E%3C/svg%3E");
}
.ic-expand {
  --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M10 20H4v-6M20 4l-7 7M4 20l7-7'/%3E%3C/svg%3E");
}

/* 1: the MCQ page (pages/css/notebook-mcq.css, as measured on the live page) */
.a-h1 {
  font-size: 24px;
  line-height: 30px;
  font-weight: 600;
  letter-spacing: -0.24px;
}
.a-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 20px;
  padding: 4px;
  border-radius: 12px;
  background: rgb(17 28 52 / 0.06);
}
.a-modes span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 18px;
  font-weight: 500;
  text-align: center;
  color: var(--a-soft);
}
.a-modes .is-on {
  background: #fff;
  color: var(--a-ink);
  box-shadow:
    0 1px 2px rgb(17 28 52 / 0.1),
    0 4px 12px -2px rgb(17 28 52 / 0.1);
}
.a-mcq {
  display: grid;
  gap: 16px;
  padding: 24px 0 32px;
}
.a-qhead {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  font-size: 17px;
  line-height: 25.5px;
  font-weight: 600;
}
.a-qhead p {
  letter-spacing: -0.085px;
}
.a-opts {
  display: grid;
  gap: 12px;
}
.a-opts li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 16px 8px 12px;
  border-radius: 8px;
  background: var(--a-sheet);
  font-size: 17px;
  line-height: 24.65px;
  transition:
    background-color 0.25s,
    opacity 0.3s;
}
.a-opts li > span {
  flex: 1;
  padding: 9px 0;
}
.a-badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #dfe0df;
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  transition:
    background-color 0.25s,
    color 0.25s;
}
.a-radio {
  position: relative;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgb(17 28 52 / 0.4);
  transition:
    background-color 0.25s,
    border-color 0.25s;
}
.a-radio::before {
  content: "";
  position: absolute;
  inset: 3px;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 14px no-repeat;
  opacity: 0;
}
.a-opts li.is-press {
  background: #e9eae6;
}
.a-opts li.is-correct {
  background: #d9e4de;
}
.a-opts li.is-correct .a-badge {
  background: #c5d7d0;
  color: var(--a-right);
}
.a-opts li.is-correct .a-radio {
  background: var(--a-right);
  border-color: var(--a-right);
}
.a-opts li.is-correct .a-radio::before {
  opacity: 1;
}
.a-reason {
  padding: 20px;
  border-radius: 8px;
  background: var(--a-sheet);
  transition:
    opacity 0.4s,
    transform 0.5s var(--ease);
}
html.js .a-reason:not(.on) {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
}
.a-verdict {
  display: grid;
  gap: 4px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--a-border);
}
.a-verdict b {
  font-size: 26px;
  line-height: 30px;
  font-weight: 600;
  letter-spacing: -0.52px;
  color: var(--a-right);
}
.a-verdict span {
  font-size: 13px;
  line-height: 19.5px;
}
.a-verdict em {
  margin-left: 4px;
  font-style: normal;
  font-weight: 600;
  color: var(--a-right);
}
.a-why-h {
  margin: 20px 0 8px;
  font-size: 17px;
  line-height: 23px;
  font-weight: 600;
}
.a-why {
  font-size: 17px;
  line-height: 26.35px;
}

/* 2: the topic question page and the marked answer (noteviewer/_qg_card.html, as measured) */
.a-tq {
  padding-top: 24px;
}
.a-tqhead {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
}
.a-tqhead b {
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  color: #000;
}
.a-tqhead p {
  padding-top: 1px;
  font-size: 17px;
  line-height: 26.86px;
  letter-spacing: -0.085px;
}
.a-alloc {
  margin-top: 8px;
  text-align: right;
  font-size: 18px;
  line-height: 25px;
  font-weight: 500;
  color: var(--a-soft);
}
.a-answer {
  position: relative;
  min-height: 280px;
  margin-top: 28px;
  padding: 18px 18px 52px;
  border-radius: 12px;
  background: var(--a-sheet);
  box-shadow: 0 1px 3px rgb(17 28 52 / 0.09);
}
.a-answer-text {
  font-size: 17px;
  line-height: 28.9px;
}
.a-words {
  position: absolute;
  left: 18px;
  bottom: 18px;
  font-size: 13px;
  line-height: 19.5px;
  font-weight: 500;
  color: var(--a-soft);
}
.caret {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin-left: 1px;
  vertical-align: -0.18em;
  border-radius: 1px;
  background: var(--a-blue);
  opacity: 0;
}
.is-typing .caret {
  opacity: 1;
}
html.motion .is-typing .caret {
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.a-model {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--a-blue);
}
.a-model .ic {
  width: 16px;
  height: 16px;
}
.a-model .ic-down {
  width: 13px;
  height: 13px;
  margin-left: 2px;
}
.a-ai {
  margin-top: 8px;
  text-align: right;
  font-size: 12px;
  line-height: 16.8px;
  font-weight: 500;
  color: var(--a-soft);
}
.a-markrow {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}
.a-markbtn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 46px;
  padding: 0 12px 0 14px;
  border-radius: 8px;
  background: var(--a-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  transition:
    background-color 0.2s,
    transform 0.2s;
}
.a-markbtn .ic {
  width: 18px;
  height: 18px;
}
.a-markbtn.is-press {
  background: #0f4ed6;
  transform: scale(0.97);
}
.a-spin {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgb(255 255 255 / 0.35);
  border-top-color: #fff;
}
.a-markbtn.is-busy .a-spin {
  display: block;
}
.a-markbtn.is-busy .ic {
  display: none;
}
html.motion .a-markbtn.is-busy .a-spin {
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.a-grade {
  margin-top: 32px;
  padding: 20px 16px 16px;
  border-radius: 20px;
  background: var(--a-sheet);
  box-shadow:
    0 1px 2px rgb(17 28 52 / 0.04),
    0 40px 60px -36px rgb(17 28 52 / 0.32);
  transition:
    opacity 0.45s,
    transform 0.6s var(--ease);
}
html.js .a-grade:not(.on) {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
}
.a-grade-head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.a-grade-head b {
  display: block;
  font-size: 17px;
  line-height: 21px;
  font-weight: 600;
}
.a-grade-head small {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  line-height: 17.5px;
  color: var(--a-soft);
}
.a-ring {
  --f: 0.75;
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: conic-gradient(var(--a-right) calc(var(--f) * 360deg), rgb(17 28 52 / 0.14) 0deg);
}
.a-ring::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--a-sheet);
}
.a-score {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 20px;
}
.a-score b {
  font-size: 48px;
  line-height: 43px;
  font-weight: 300;
  letter-spacing: -2.16px;
}
.a-score span {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: -0.24px;
  color: var(--a-soft);
}
.a-segs {
  display: flex;
  gap: 4px;
  width: 132px;
  margin-top: 12px;
}
.a-segs i {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgb(17 28 52 / 0.12);
  transition: background-color 0.3s;
}
.a-segs i.on {
  background: var(--a-right);
}
.a-kp-h {
  margin: 30px 0 4px;
  font-size: 17px;
  line-height: 23px;
  font-weight: 600;
}
.a-kps {
  counter-reset: kp;
}
.a-kps li {
  counter-increment: kp;
  display: grid;
  gap: 2px;
  padding: 12px 0;
  border-bottom: 1px solid var(--a-border);
  transition: opacity 0.35s;
}
.a-kps li > span {
  position: relative;
  padding-left: 34px;
  font-size: 17px;
  line-height: 28px;
}
.a-kps li > span::before {
  content: counter(kp);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--a-right);
}
.a-kps li.is-miss > span::before {
  color: var(--a-wrong);
}
.a-kps li > em {
  padding-left: 34px;
  font-style: normal;
  font-size: 13px;
  line-height: 19.5px;
  font-weight: 600;
  color: var(--a-right);
  transition: opacity 0.3s;
}
.a-kps li.is-miss > em {
  color: var(--a-wrong);
}
html.js .a-kps li:not(.on) {
  opacity: 0.32;
}
html.js .a-kps li:not(.on) > em {
  opacity: 0;
}
html.js .a-kps li:not(.on) > span::before {
  color: var(--a-soft);
}
.a-fb {
  margin-top: 20px;
  padding: 20px 0 8px;
  border-top: 1px solid var(--a-border);
  transition: opacity 0.4s;
}
html.js .a-fb:not(.on) {
  opacity: 0;
}
.a-fb-h {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 17px;
  line-height: 23px;
  font-weight: 600;
}
.a-fb-ic {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--a-blue);
}
.a-fb-ic::after {
  content: "";
  position: absolute;
  inset: 6px;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19 9a2.8 2.8 0 0 0-4-4L4 16v4Z'/%3E%3Cpath d='m13.5 6.5 4 4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19 9a2.8 2.8 0 0 0-4-4L4 16v4Z'/%3E%3Cpath d='m13.5 6.5 4 4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.a-fb-t {
  font-size: 17px;
  line-height: 28.9px;
}

/* 3: the dashboard (pages/_dashboard_subject.html in its lit look) */
.panel {
  position: absolute;
  inset: 0;
}
html.js .panel[data-panel="tutor"] {
  opacity: 0;
  visibility: hidden;
}
.d-hero {
  padding-top: 6px;
}
.d-hello {
  font-size: 17px;
  line-height: 24px;
  color: #3f4658;
}
.d-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}
.d-subj {
  font-size: 34px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: var(--a-bio);
}
.d-board {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #3f4658;
}
.d-fig {
  text-align: right;
}
.d-fig b {
  display: block;
  font-size: 44px;
  line-height: 46px;
  font-weight: 300;
  letter-spacing: -1.5px;
  transition: color 0.3s;
}
.d-fig b.is-up {
  color: var(--a-bio);
}
.d-fig span {
  font-size: 17px;
  color: #3f4658;
  text-decoration: underline dotted;
  text-underline-offset: 5px;
}
.d-shelf {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 104px;
  margin-top: 30px;
  padding-bottom: 6px;
  border-bottom: 2px solid #c7cbc4;
}
.d-shelf i {
  position: relative;
  width: 18px;
  height: 92px;
  border-radius: 2px 2px 1px 1px;
  background: #cfe3d7;
  overflow: hidden;
}
.d-shelf i:nth-child(2) {
  height: 98px;
}
.d-shelf i:nth-child(3) {
  height: 84px;
}
.d-shelf i:nth-child(4) {
  height: 96px;
}
.d-shelf i:nth-child(5) {
  height: 90px;
}
.d-shelf i:nth-child(6) {
  height: 96px;
}
.d-shelf i::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 12px;
  height: 7px;
  border-top: 1.5px solid #8fbea2;
  border-bottom: 1.5px solid #8fbea2;
}
.d-shelf i::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--v, 0) * 1%);
  background: var(--a-bio);
}
.d-glance {
  margin-top: 26px;
  border-top: 1px solid var(--a-border);
}
.d-glance > div {
  padding: 20px 0;
  border-bottom: 1px solid var(--a-border);
}
.d-big {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.d-big b {
  font-size: 50px;
  line-height: 50px;
  font-weight: 300;
  letter-spacing: -1.6px;
}
.d-big span {
  font-size: 20px;
  color: #3f4658;
}
.d-big em {
  font-style: normal;
  font-weight: 600;
  color: var(--a-bio);
}
.d-meta {
  margin-top: 8px;
  font-size: 14px;
  color: #3f4658;
}
.d-label {
  margin-top: 40px;
  font-size: 24px;
  line-height: 30px;
  font-weight: 700;
  letter-spacing: -0.4px;
}
.d-cont {
  margin-top: 16px;
  padding: 18px;
  border-radius: 16px;
  background: var(--a-raised);
  box-shadow: 0 1px 3px rgb(17 28 52 / 0.07);
}
.d-cont-meta {
  font-size: 13px;
  font-weight: 500;
  color: var(--a-blue);
}
.d-cont-meta span + span::before {
  content: "\00b7";
  margin: 0 8px;
}
.d-cont-t {
  margin-top: 8px;
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
}
.d-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  margin-top: 22px;
  border-radius: 12px;
  background: var(--a-blue);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}
.d-sec {
  margin-top: 40px;
  font-size: 24px;
  line-height: 30px;
  font-weight: 700;
  letter-spacing: -0.4px;
}
.d-sec em {
  font-style: normal;
  color: var(--a-bio);
}
.d-web {
  margin-top: 6px;
}
.d-web svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.d-web-plate {
  fill: rgb(22 129 79 / 0.05);
}
.d-web-ring {
  fill: none;
  stroke: rgb(17 28 52 / 0.09);
  stroke-width: 1;
}
.d-web-ring.is-outer {
  stroke: rgb(22 129 79 / 0.34);
  stroke-width: 1.25;
}
.d-web-spoke {
  stroke: rgb(17 28 52 / 0.06);
  stroke-width: 1;
}
.d-web-shape {
  fill: url(#webfill);
  stroke: var(--a-bio);
  stroke-width: 2;
  stroke-linejoin: round;
}
.d-web-pt {
  fill: var(--a-paper);
  stroke: var(--a-bio);
  stroke-width: 2.5;
}
.d-web-pt.is-focus {
  fill: var(--a-bio);
  stroke: var(--a-paper);
}
.d-web text {
  font-family: var(--plex);
  font-size: 13px;
  fill: var(--a-ink);
  font-variant-numeric: tabular-nums;
}
.d-web .w-num {
  font-weight: 600;
}
.d-web .w-fig {
  font-weight: 600;
}
.d-web .w-fig.is-up {
  fill: var(--a-bio);
}

/* the Tutor tab (the desk's tutor level) */
.t-pre {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 24px;
  transition:
    opacity 0.3s,
    transform 0.45s var(--ease);
}
.t-hello {
  font-size: 30px;
  line-height: 36px;
  font-weight: 600;
  letter-spacing: -0.6px;
}
.t-sub {
  margin-top: 10px;
  font-size: 17px;
  line-height: 26px;
  color: #3f4658;
}
.t-dock {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  transform: translate3d(0, var(--dock-y, 170px), 0);
}
.t-composer {
  padding: 16px 14px 12px 18px;
  border-radius: 20px;
  background: var(--a-raised);
  box-shadow:
    0 1px 2px rgb(17 28 52 / 0.06),
    0 14px 34px -14px rgb(17 28 52 / 0.24);
}
.t-field {
  position: relative;
  min-height: 72px;
  font-size: 17px;
  line-height: 26px;
}
.t-ph {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--a-soft);
}
.t-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}
.t-pick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 10px 0 12px;
  border-radius: 10px;
  background: rgb(17 28 52 / 0.06);
  font-size: 15px;
  font-weight: 600;
}
.t-pick > i:first-child {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--a-bio);
}
.t-pick .ic {
  width: 14px;
  height: 14px;
}
.t-send {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgb(17 28 52 / 0.08);
  color: var(--a-ink);
  transition:
    background-color 0.2s,
    color 0.2s,
    transform 0.2s;
}
.t-send .ic {
  width: 18px;
  height: 18px;
}
.t-send.is-ready {
  background: var(--a-blue);
  color: #fff;
}
.t-send.is-press {
  transform: scale(0.9);
}
.t-ai {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--a-soft);
}
.t-chips {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 0;
  transform: translate3d(0, var(--chips-y, 380px), 0);
  transition: opacity 0.3s;
}
.t-chips-h {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #3f4658;
}
.t-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--a-border);
  font-size: 16px;
  line-height: 22px;
}
.t-chip em {
  font-style: normal;
  font-weight: 600;
}
.t-turn {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 18px;
}
.t-q {
  width: fit-content;
  max-width: 82%;
  margin-left: auto;
  padding: 10px 16px;
  border-radius: 18px;
  background: #e2eafa;
  font-size: 16px;
  line-height: 22px;
  transition:
    opacity 0.3s,
    transform 0.45s var(--ease);
}
.t-who {
  margin-top: 22px;
  font-size: 13px;
  font-weight: 600;
}
.t-pending {
  margin-top: 8px;
  font-size: 15px;
  color: var(--a-soft);
}
.t-pending i {
  display: block;
  width: 120px;
  height: 3px;
  margin-top: 10px;
  border-radius: 2px;
  background: rgb(17 28 52 / 0.12);
}
.t-prose {
  margin-top: 8px;
  font-size: 17px;
  line-height: 27px;
}
.t-src {
  transition:
    opacity 0.35s,
    transform 0.45s var(--ease);
}
.t-cites-h {
  margin-top: 18px;
  font-size: 13px;
  font-weight: 600;
  color: #3f4658;
}
.t-cite {
  display: inline-flex;
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgb(17 28 52 / 0.07);
  font-size: 15px;
  font-weight: 500;
  transition:
    background-color 0.2s,
    color 0.2s;
}
.t-cite.is-press {
  background: rgb(23 91 232 / 0.14);
  color: var(--a-blue);
}
.t-acts {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 500;
}
.t-acts span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.t-acts .ic {
  width: 16px;
  height: 16px;
}
.t-next {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.t-next span {
  padding: 8px 12px;
  border-radius: 10px;
  background: rgb(23 91 232 / 0.1);
  color: var(--a-blue);
  font-size: 14px;
  font-weight: 500;
}
html.js .t-turn [data-me]:not(.on),
html.js .t-turn .t-src:not(.on) {
  opacity: 0;
  transform: translate3d(0, 8px, 0);
}
html.js .t-turn .t-who:not(.on),
html.js .t-turn .t-pending:not(.on),
html.js .t-turn .t-prose:not(.on) {
  display: none;
}

/* 4: the note (pages/css/notebook-notes.css, as measured on 1.1.2) */
.n-sheet {
  margin: 0 -20px;
  padding: 32px 20px 48px;
  background: var(--a-sheet);
}
.n-title {
  font-size: 30px;
  line-height: 36px;
  font-weight: 700;
  letter-spacing: -0.45px;
}
.n-focus {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--a-border);
  font-size: 15px;
  font-weight: 600;
  color: var(--a-blue);
}
.n-focus .ic {
  width: 16px;
  height: 16px;
}
.n-obj {
  margin-top: 32px;
  padding: 16px 20px;
  border-radius: 12px;
  background: #e9edf1;
}
.n-obj-h {
  font-size: 13px;
  line-height: 15.6px;
  font-weight: 600;
  letter-spacing: 1.82px;
  text-transform: uppercase;
  color: var(--a-blue);
}
.n-obj-sub {
  margin-top: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--a-border);
  font-size: 17px;
  line-height: 28px;
  color: var(--a-soft);
}
.n-obj li {
  position: relative;
  margin-top: 14px;
  padding-left: 28px;
  font-size: 17px;
  line-height: 28px;
}
.n-obj li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--a-soft);
}
.n-h {
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--a-border);
  font-size: 24px;
  line-height: 31.2px;
  font-weight: 700;
  letter-spacing: -0.24px;
}
.n-h::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-top: 8px;
  border-radius: 2px;
  background: var(--a-blue);
}
.n-p {
  margin-bottom: 16px;
  font-size: 17px;
  line-height: 28px;
}
.n-p b {
  font-weight: 700;
}
.n-fig {
  margin: 28px 0 0;
  padding: 16px;
  border-radius: 8px;
  background: var(--a-sheet);
}
.n-fig img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}



/* ==========================================================================
   The homepage's other sections, in the site's own look (site.css)
   ========================================================================== */
/* the opening's quiet lines: what this visitor's account gets, then the library's size */
.open-note,
.open-count {
  max-width: 46em;
  margin-top: 22px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--home-words);
  text-wrap: balance;
}
.open-note + .open-count {
  margin-top: 2px;
}

/* the homepage's light sections are a clean white (owner, 2026-11-21: the snow "is pretty off white"); the price
   between them keeps the mist, so the bands still alternate */
.courses {
  padding: var(--sec) 0;
  background: var(--white);
}
.faq {
  background: var(--white);
}
.pick {
  margin-top: clamp(40px, 5vw, 64px);
}

/* the daily task: the words, and the dashboard's card drawn in the app's own look */
.task {
  padding: var(--sec) 0;
  background: var(--white);
}
.task-grid {
  display: grid;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
@media (min-width: 900px) {
  .task-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  }
}
.task-copy .sec-text + .sec-text {
  margin-top: 14px;
}
.task-actions {
  margin-top: 32px;
}
.task-card {
  /* a white card like the dashboard's own, not the story's dotted desk: inside it the main lines are the site's
     near-black and the lighter lines the same dark grey as the story's screens, every one past 4.5 to 1 on white */
  --a-ink: var(--ink);
  --a-soft: #3f4658;
  --a-border: var(--line);
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow:
    0 1px 2px rgb(11 13 18 / 0.04),
    0 12px 32px -16px rgb(11 13 18 / 0.16);
  font-family: var(--plex);
  color: var(--ink);
}
.task-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--a-soft);
}
.task-title {
  margin-top: 10px;
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.task-sub {
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--a-soft);
}
.task-fig {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #d92d20;
}
.task-count {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.task-count b {
  font-weight: 600;
}
.task-track {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 6px;
  margin-top: 14px;
}
.task-track > li {
  flex: var(--n, 1) 1 0;
  min-width: max-content;
}
.task-track i {
  position: relative;
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 4px;
  background: rgb(17 28 52 / 0.09);
}
.task-track i b {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--a-blue);
  transform: scaleX(var(--f, 0));
  transform-origin: 0 50%;
}
.task-track > li[data-ui-state="done"] i b {
  background: var(--a-right);
}
.task-track > li[data-ui-state="now"] i {
  background: rgb(23 91 232 / 0.16);
}
.task-track span {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.task-track span b {
  margin-left: 2px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--a-soft);
}
.task-track > li[data-ui-state="done"] span,
.task-track > li[data-ui-state="done"] span b {
  color: var(--a-right);
}
.task-track > li[data-ui-state="now"] span,
.task-track > li[data-ui-state="now"] span b {
  color: var(--a-blue);
}
.task-buddies {
  margin-top: 22px;
  border-top: 1px solid var(--a-border);
}
.task-buddies li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--a-border);
}
.task-ring {
  --c: var(--a-blue);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  color: var(--c);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 55%, transparent);
}
.task-ring-teal {
  --c: #0c7078;
}
.task-ring-green {
  --c: var(--a-right);
}
.task-who {
  font-size: 14px;
  line-height: 1.4;
  color: var(--a-soft);
}
.task-who b {
  margin-right: 6px;
  font-weight: 600;
  color: var(--a-ink);
}
.task-buddies em {
  font-size: 14px;
  font-weight: 600;
  font-style: normal;
}
.task-buddies em.task-kept {
  color: var(--a-right);
}
@media (max-width: 559px) {
  .task-actions .btn {
    width: 100%;
  }
}
.task-copy .sec-title + .sec-text {
  margin-top: 20px;
}
