/* ============================================================
   The Notebook Ledger landing page (newsletter.html only).
   Self-contained: it does not load newsletter.css. Every rule is scoped
   under .nl (or an nl- class) so nothing leaks to other pages.
   The Kit signup form styles (.kit-form, .nl-embed) live in styles.css.

   Motion is progressive: content only starts hidden when <html> carries
   .nl-js (set inline in the page head, removed again if
   newsletter.js never runs). prefers-reduced-motion turns every
   animation off and shows the finished state.
   ============================================================ */

.nl {
  --nl-rule: #e2ddd0;
  --tag-measured-bg: #e2f2e7;  --tag-measured: #1b6436;
  --tag-estimate-bg: #fbefd6;  --tag-estimate: #6f4a00;
  --tag-announced-bg: #ebeafb; --tag-announced: #3f39b0;
  --tag-cond-bg: #fbe5de;      --tag-cond: #8f3519;
  --hl: #ffe137;                               /* the site's neon-yellow marker */
  --tape: rgba(216, 212, 198, 0.6);            /* same tape as .quote-note */
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-spring: cubic-bezier(.3, 1.45, .5, 1);
  overflow-x: clip;
  interpolate-size: allow-keywords;            /* lets the FAQ animate to height:auto */
}
main.nl.light { padding: 0; }
.nl section { padding: 88px 0; position: relative; }
.nl .nl-rule { border-top: 1px solid var(--nl-rule); }
.nl h2 { font-size: clamp(1.65rem, 3.3vw, 2.3rem); line-height: 1.15; letter-spacing: -0.005em; margin-bottom: 14px; max-width: 28ch; }
.nl-kicker { font: 600 0.78rem/1.5 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--purple); margin-bottom: 10px; }
.nl-intro { color: var(--text-mute); font-size: 1.06rem; line-height: 1.65; max-width: 60ch; }
.nl-intro a { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }
.nl-head { margin-bottom: 34px; }
.nl-lab { display: block; font: 600 0.68rem/1.4 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mute); }
.nl-hand { font-family: var(--hand); }
.nl-linkbtn { background: none; border: 0; padding: 4px 0; font: 600 0.88rem/1.4 var(--sans); color: var(--purple); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.nl-linkbtn:hover { color: var(--purple-dark); }
.nl :focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }

/* ---------- Evidence tags ---------- */
.nl .tag { display: inline-block; font: 600 0.74rem/1.3 var(--sans); letter-spacing: 0.02em; border-radius: 999px; padding: 3px 9px; white-space: nowrap; vertical-align: middle; }
.nl .tag::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; }
.nl .tag-measured  { background: var(--tag-measured-bg);  color: var(--tag-measured); }
.nl .tag-estimate  { background: var(--tag-estimate-bg);  color: var(--tag-estimate); }
.nl .tag-announced { background: var(--tag-announced-bg); color: var(--tag-announced); }
.nl .tag-cond      { background: var(--tag-cond-bg);      color: var(--tag-cond); }

/* ---------- Highlighter sweep ----------
   A yellow marker stroke drawn behind a phrase. box-decoration-break:slice
   treats a phrase that wraps as one long strip, so growing the width from
   0 to 100% sweeps line one first, then line two, like a real pen. */
.nl-hl {
  background-image: linear-gradient(100deg,
    color-mix(in srgb, var(--hl) 18%, transparent) 0%,
    color-mix(in srgb, var(--hl) 62%, transparent) 4%,
    color-mix(in srgb, var(--hl) 50%, transparent) 50%,
    color-mix(in srgb, var(--hl) 64%, transparent) 96%,
    color-mix(in srgb, var(--hl) 20%, transparent) 100%);
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 0% 0.56em;
  -webkit-box-decoration-break: slice; box-decoration-break: slice;
  padding: 0 0.06em; margin: 0 -0.06em;
  transition: background-size 1.15s cubic-bezier(.65, .05, .25, 1) 0.35s;
}
html:not(.nl-js) .nl-hl, .is-in .nl-hl { background-size: 100% 0.56em; }

/* ---------- Scroll reveal ----------
   A keyframe animation on the individual `translate` property, so it never
   fights an element's own `transform` hover effects or `transition` list. */
.nl-js .nl [data-reveal]:not(.is-in) { opacity: 0; }
.nl-js .nl [data-reveal].is-in { animation: nl-rise .8s var(--ease-out) var(--d, 0s) both; }
@keyframes nl-rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }

/* ============================================================
   Hero
   ============================================================ */
.nl .nl-hero { padding: 60px 0 76px; isolation: isolate; overflow: hidden; }
.nl-hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(color-mix(in srgb, var(--paper-line) 55%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--paper-line) 55%, transparent) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 62% 78% at 76% 46%, #000 0%, transparent 72%);
          mask-image: radial-gradient(ellipse 62% 78% at 76% 46%, #000 0%, transparent 72%);
}
.nl-hero-bg::after { content: ""; position: absolute; width: 560px; height: 560px; right: 4%; top: 50%; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--purple) 13%, transparent), transparent 66%); }
.nl-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 64px; align-items: center; }

.nl-next { display: inline-flex; align-items: center; gap: 9px; font: 500 0.84rem/1.3 var(--sans); color: var(--text-dark); background: #fff; border: 1px solid var(--nl-rule); border-radius: 999px; padding: 6px 13px 6px 11px; margin-bottom: 20px; box-shadow: 0 6px 18px -12px rgba(30, 28, 90, .35); }
.nl-next strong { font-weight: 600; }
.nl-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--purple); flex: none; }
.nl-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--purple); animation: nl-ping 2.2s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes nl-ping { 70%, 100% { transform: scale(2.8); opacity: 0; } }

.nl-hero h1 { font-size: clamp(2.35rem, 5.3vw, 3.7rem); line-height: 1.06; letter-spacing: -0.015em; margin: 2px 0 18px; max-width: 14ch; }
.nl-lead { font-size: 1.15rem; line-height: 1.6; color: var(--text-mute); max-width: 50ch; margin-bottom: 18px; }
.nl-lead strong { color: var(--text-dark); font-weight: 600; }
.nl-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; }
.nl-points li { font: 500 0.86rem/1.3 var(--sans); color: var(--text-dark); background: #fff; border: 1px solid var(--nl-rule); border-radius: 999px; padding: 6px 12px 6px 10px; }
.nl-points li::before { content: "\2715"; color: var(--purple); font-weight: 700; margin-right: 6px; font-size: 0.78rem; }
.nl-points li.yes::before { content: "\2713"; }
.nl .nl-embed { max-width: 480px; }
.nl-fine { font-size: 0.86rem; color: var(--text-mute); margin-top: 10px; max-width: 52ch; }

/* Hero entrance: the copy and the signup form are never hidden (they are the
   page's main job); only the highlighter sweep and the claim desk animate in. */
.nl-js .nl-desk { opacity: 0; transform: translateY(24px) rotate(1deg); transition: opacity .8s ease .25s, transform 1s var(--ease-out) .25s; }
.nl-js .nl-hero.is-in .nl-desk { opacity: 1; transform: none; }

/* ---------- The claim desk ---------- */
.nl-desk { position: relative; max-width: 500px; width: 100%; margin-left: auto; }
.nl-card-wrap { position: relative; }
.nl-desk-sheets i { position: absolute; inset: 0; background: var(--paper); border: 1px solid var(--paper-border); border-radius: 10px; box-shadow: 0 10px 30px -22px rgba(30, 28, 90, .45); }
.nl-desk-sheets i:nth-child(1) { transform: rotate(-4.5deg) translate(-14px, 10px); }
.nl-desk-sheets i:nth-child(2) { transform: rotate(2.6deg) translate(10px, 6px); }
.nl-card {
  position: relative; background-color: var(--paper); border: 1px solid var(--paper-border); border-radius: 10px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03), 0 26px 50px -26px rgba(30, 28, 90, 0.45);
  padding: 20px 24px 22px 48px;
  background-image:
    linear-gradient(to right, transparent 32px, var(--paper-margin) 32px, var(--paper-margin) 33px, transparent 33px),
    repeating-linear-gradient(to bottom, transparent 0, transparent 31px, color-mix(in srgb, var(--paper-line) 55%, transparent) 31px, color-mix(in srgb, var(--paper-line) 55%, transparent) 32px);
  background-position: 0 0, 0 12px;
}
.nl-card::before { content: ""; position: absolute; top: -12px; left: 50%; width: 96px; height: 24px; transform: translateX(-50%) rotate(-3deg); background: var(--tape); }
.nl-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font: 600 0.68rem/1.4 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 14px; }
.nl-card-count { font: 400 1.05rem/1 var(--hand); letter-spacing: 0; text-transform: none; color: var(--purple); }

.nl-slides { display: grid; }
.nl-slide { grid-area: 1 / 1; min-width: 0; }
.nl-desk:not(.is-live) .nl-slide:not(:first-child) { display: none; }
.nl-claim { font: 600 1.36rem/1.3 var(--serif); margin: 4px 0 4px; }
.nl-claim span { display: inline; }
.nl-who { font-size: 0.84rem; color: var(--text-mute); margin-bottom: 12px; }
.nl-arrow { display: flex; align-items: center; gap: 6px; font: 400 1.22rem/1 var(--hand); color: var(--purple); margin: 0 0 10px -4px; }
.nl-arrow svg { flex: none; overflow: visible; }
.nl-arrow path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.nl-verdict { background: #fff; border: 1px solid var(--paper-border); border-left: 3px solid var(--purple); border-radius: 6px; padding: 12px 14px; }
.nl-verdict .nl-lab { margin-bottom: 6px; }
.nl-verdict p { font-size: 0.95rem; line-height: 1.55; margin-top: 8px; }
.nl .nl-stamp { font-size: 0.8rem; padding: 4px 11px; box-shadow: 0 0 0 1.5px currentColor inset; }
.nl-catch { font: 400 1.16rem/1.3 var(--hand); color: var(--purple); margin-top: 12px; }

/* Live sequence: each part of the active slide arrives in reading order */
.nl-desk.is-live .nl-slide { visibility: hidden; transition: visibility 0s linear .3s; }
.nl-desk.is-live .nl-slide.is-active { visibility: visible; transition-delay: 0s; }
.nl-desk.is-live .nl-slide > * { opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease; }
.nl-desk.is-live .nl-slide.is-active > * { opacity: 1; transform: none; transition: opacity .45s ease, transform .6s var(--ease-out); }
.nl-desk.is-live .nl-slide.is-active > .nl-who { transition-delay: .45s; }
.nl-desk.is-live .nl-slide.is-active > .nl-arrow { transition-delay: .8s; }
.nl-desk.is-live .nl-slide.is-active > .nl-verdict { transition-delay: 1.25s; }
.nl-desk.is-live .nl-slide.is-active > .nl-catch { transition-delay: 2.3s; }
/* the claim is written left to right */
.nl-desk.is-live .nl-claim span { display: inline-block; clip-path: inset(0 100% 0 0); transition: clip-path .2s ease; }
.nl-desk.is-live .is-active .nl-claim span { clip-path: inset(0 0 0 0); transition: clip-path .95s cubic-bezier(.6, .1, .3, 1) .1s; }
/* the pen draws the arrow */
.nl-desk.is-live .nl-arrow path { stroke-dasharray: 60; stroke-dashoffset: 60; transition: stroke-dashoffset .2s; }
.nl-desk.is-live .is-active .nl-arrow path { stroke-dashoffset: 0; transition: stroke-dashoffset .55s ease .9s; }
.nl-desk.is-live .is-active .nl-arrow path + path { transition-delay: 1.3s; transition-duration: .3s; }
/* the verdict is stamped */
.nl-desk.is-live .nl-stamp { opacity: 0; transform: scale(1.9) rotate(-9deg); transition: opacity .2s, transform .2s; }
.nl-desk.is-live .is-active .nl-stamp { opacity: 1; transform: scale(1) rotate(-2deg); transition: opacity .18s ease 1.6s, transform .5s var(--ease-spring) 1.6s; }
.nl-desk.is-live .nl-verdict p { opacity: 0; transition: opacity .2s; }
.nl-desk.is-live .is-active .nl-verdict p { opacity: 1; transition: opacity .6s ease 1.95s; }
/* the catch is handwritten */
.nl-desk.is-live .nl-catch span { display: inline-block; clip-path: inset(0 100% 0 0); transition: clip-path .2s; }
.nl-desk.is-live .is-active .nl-catch span { clip-path: inset(-4px -4px -4px 0); transition: clip-path 1.1s cubic-bezier(.5, .1, .4, 1) 2.35s; }

/* Progress bars double as slide buttons; the fill timing drives the rotation */
.nl-desk-ctrl { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-left: 4px; }
.nl-pp { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--nl-rule); background: #fff; color: var(--text-dark); cursor: pointer; transition: border-color .15s, color .15s; }
.nl-pp:hover { border-color: var(--purple); color: var(--purple); }
.nl-pp svg { fill: currentColor; }
.nl-pp .i-play, .nl-pp[aria-pressed="true"] .i-pause { display: none; }
.nl-pp[aria-pressed="true"] .i-play { display: block; }
.nl-prog { flex: 1; display: flex; gap: 6px; }
.nl-prog button { flex: 1; height: 26px; border: 0; padding: 0; background: none; cursor: pointer; display: flex; align-items: center; }
.nl-prog button span { position: relative; display: block; width: 100%; height: 3px; border-radius: 3px; background: color-mix(in srgb, var(--text-mute) 22%, transparent); overflow: hidden; transition: height .15s; }
.nl-prog button:hover span { height: 5px; }
.nl-prog button span::after { content: ""; position: absolute; inset: 0; background: var(--purple); transform-origin: left; transform: scaleX(0); }
.nl-prog button.is-done span::after { transform: scaleX(1); }
.nl-prog button.is-active span::after { animation: nl-fill var(--dur, 9s) linear forwards; }
.nl-desk.is-paused .nl-prog button.is-active span::after { animation-play-state: paused; }
.nl-desk.is-static .nl-prog button.is-active span::after { animation: none; transform: scaleX(1); }
@keyframes nl-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.nl-desk-note { margin-top: 6px; padding-left: 4px; font: 400 1.02rem/1.35 var(--hand); color: var(--text-mute); }

/* ============================================================
   The tape (ticker of claims)
   ============================================================ */
.nl .nl-tape { padding: 0; display: flex; align-items: stretch; background: var(--navy); color: var(--text-light); border-block: 1px solid var(--navy-line); }
.nl-tape-label { flex: none; display: flex; align-items: center; gap: 10px; padding: 0 16px 0 22px; background: var(--navy-deep); border-right: 1px solid var(--navy-line); font: 600 0.7rem/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: #a9a4ff; position: relative; z-index: 1; }
.nl-tape-label small { display: block; font-size: 0.62rem; color: var(--text-dim); letter-spacing: 0.1em; }
.nl-tape-toggle { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--navy-line); background: transparent; color: var(--text-dim); cursor: pointer; }
.nl-tape-toggle:hover { color: #fff; border-color: var(--text-dim); }
.nl-tape-toggle svg { fill: currentColor; }
.nl-tape-toggle .i-play, .nl-tape-toggle[aria-pressed="true"] .i-pause { display: none; }
.nl-tape-toggle[aria-pressed="true"] .i-play { display: block; }
.nl-tape-view { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nl-tape.is-live .nl-tape-view { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 95%, transparent); }
.nl-tape-track { display: flex; width: max-content; }
.nl-tape.is-live .nl-tape-track { animation: nl-tape 60s linear infinite; }
.nl-tape.is-live:hover .nl-tape-track, .nl-tape.is-paused .nl-tape-track, .nl-tape.is-off .nl-tape-track { animation-play-state: paused; }
@keyframes nl-tape { to { transform: translateX(-50%); } }
.nl-tape-list { display: flex; list-style: none; margin: 0; padding: 0; }
.nl-tape-list li { display: flex; align-items: center; gap: 10px; padding: 15px 26px; white-space: nowrap; font: 400 0.9rem/1.2 var(--sans); color: var(--text-dim); border-right: 1px solid var(--navy-line); }
.nl-tape-list b { color: #fff; font-weight: 600; letter-spacing: 0.01em; }

/* ============================================================
   Claim vs evidence: the sorting quiz
   ============================================================ */
.nl-legend { list-style: none; padding: 0; margin: 0 0 30px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.nl-legend li { background: #fff; border: 1px solid var(--nl-rule); border-radius: 10px; padding: 12px 14px; font-size: 0.86rem; line-height: 1.45; color: var(--text-mute); }
.nl-legend .tag { display: table; margin-bottom: 7px; }
.nl-quiz-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.nl-score { display: flex; align-items: center; gap: 12px; font: 500 0.9rem/1.3 var(--sans); color: var(--text-dark); }
.nl-score-dots { display: flex; gap: 5px; }
.nl-score-dots i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--text-mute) 45%, transparent); transition: background .3s, border-color .3s, transform .4s var(--ease-spring); }
.nl-score-dots i.r { background: var(--tag-measured); border-color: var(--tag-measured); transform: scale(1.15); }
.nl-score-dots i.w { background: var(--tag-cond); border-color: var(--tag-cond); transform: scale(1.15); }
.nl-score-dots i.s { background: color-mix(in srgb, var(--text-mute) 35%, transparent); border-color: transparent; }

.nl-quiz { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: q; }
.nl-q { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); background: #fff; border: 1px solid var(--nl-rule); border-radius: 12px; overflow: hidden; transition: border-color .35s, box-shadow .35s; }
.nl-q:hover { box-shadow: 0 14px 30px -24px rgba(30, 28, 90, .5); }
.nl-q-claim { position: relative; padding: 18px 20px 18px 54px; background: #faf9f5; border-right: 1px dashed var(--nl-rule); }
.nl-q-claim::before { counter-increment: q; content: counter(q, decimal-leading-zero); position: absolute; left: 18px; top: 15px; font: 400 1.3rem/1 var(--hand); color: var(--purple); }
.nl-q-claim strong { display: block; font: 600 1.1rem/1.35 var(--serif); margin-top: 3px; }
.nl-q-claim small { display: block; color: var(--text-mute); font-size: 0.82rem; margin-top: 5px; }
.nl-q-side { display: grid; padding: 18px 20px; }
.nl-q-pick, .nl-q-ev { grid-area: 1 / 1; min-width: 0; }
.nl-q-pick { align-self: center; }
.nl-q-ev .tag { margin-top: 5px; }
.nl-q-ev p { font-size: 0.95rem; line-height: 1.55; margin-top: 8px; }
.nl-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.nl .nl-opt { font: 600 0.84rem/1.2 var(--sans); border: 1.5px solid color-mix(in srgb, currentColor 28%, transparent); border-radius: 999px; padding: 9px 14px; min-height: 40px; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
.nl .nl-opt:hover { transform: translateY(-1px); border-color: currentColor; box-shadow: 0 6px 14px -10px currentColor; }
.nl .nl-opt:active { transform: translateY(0) scale(.97); }
.nl-q-res { font: 400 1.14rem/1.3 var(--hand) !important; margin-top: 10px !important; min-height: 1.3em; }
.nl-q.is-right { border-color: color-mix(in srgb, var(--tag-measured) 45%, var(--nl-rule)); }
.nl-q.is-wrong { border-color: color-mix(in srgb, var(--tag-cond) 40%, var(--nl-rule)); }
.nl-q.is-right .nl-q-res { color: var(--tag-measured); }
.nl-q.is-wrong .nl-q-res { color: var(--tag-cond); }

/* quiz mode (JS on): evidence waits behind the choice */
.nl-quiz-on .nl-q-ev { opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, visibility 0s .3s; }
.nl-quiz-on .nl-q-pick { transition: opacity .25s, transform .3s, visibility 0s; }
.nl-quiz-on .nl-q.is-done .nl-q-pick { opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .3s, visibility 0s .3s; }
.nl-quiz-on .nl-q.is-done .nl-q-ev { opacity: 1; visibility: visible; transform: none; transition: opacity .5s ease .2s, transform .6s var(--ease-out) .2s, visibility 0s; }
.nl-quiz-on .nl-q.is-done .nl-q-ev .tag { animation: nl-stamp .55s var(--ease-spring) .25s both; }
@keyframes nl-stamp { from { opacity: 0; transform: scale(1.8) rotate(-8deg); } to { opacity: 1; transform: scale(1) rotate(0); } }

.nl-quiz-done { margin-top: 22px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px 28px; align-items: center; background: var(--navy); color: var(--text-light); border-radius: 14px; padding: 24px 28px; opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .5s ease, transform .6s var(--ease-out); }
.nl-quiz-done.is-in { opacity: 1; transform: none; }
.nl-done-score { display: flex; align-items: baseline; gap: 6px; font-family: var(--hand); color: #a9a4ff; }
.nl-done-score b { font: 400 3.4rem/1 var(--hand); color: #fff; }
.nl-done-score span { font-size: 1.3rem; }
.nl-done-copy h3 { color: #fff; font-size: 1.3rem; margin-bottom: 4px; }
.nl-done-copy p { color: var(--text-dim); line-height: 1.6; max-width: 56ch; }
.nl-done-actions { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.nl-quiz-done .nl-linkbtn { color: #a9a4ff; }
.nl-quiz-done .nl-linkbtn:hover { color: #fff; }

/* ============================================================
   Three things + the issue (scroll-guided on desktop)
   ============================================================ */
.nl-anat { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.nl-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 30px; }
.nl-step { border-top: 2px solid var(--purple); padding-top: 16px; transition: opacity .45s ease, transform .45s var(--ease-out); }
.nl-step .n { display: block; font: 400 1.9rem/1 var(--hand); color: var(--purple); margin-bottom: 8px; }
.nl-step h3 { font-size: 1.32rem; margin-bottom: 8px; }
.nl-step p { color: var(--text-mute); font-size: 1rem; line-height: 1.65; max-width: 42ch; }

.nl-mail { background: #fff; border: 1px solid #ddd8ca; border-radius: 12px; box-shadow: 0 30px 70px -36px rgba(30, 28, 90, 0.45); overflow: hidden; display: flex; flex-direction: column; }
.nl-mail-bar { display: flex; align-items: center; gap: 6px; padding: 10px 16px; background: #f1efe8; border-bottom: 1px solid #e4e0d4; flex: none; }
.nl-mail-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d6d2c6; }
.nl-mail-bar span { margin-left: 10px; font-size: 0.78rem; color: var(--text-mute); }
.nl-mail-head { display: flex; gap: 14px; align-items: center; padding: 16px 24px; border-bottom: 1px solid #eeebe2; flex: none; }
.nl-mail-head img { width: 44px; height: 44px; border-radius: 10px; flex: none; }
.nl-mail-head .from { font-weight: 600; font-size: 0.95rem; }
.nl-mail-head .subj { font-size: 0.88rem; color: var(--text-mute); }
.nl-mail-view { position: relative; }
.nl-mail-body { position: relative; padding: 24px 28px 18px; }
.nl-mail-body h3 { font-size: 1.5rem; margin-bottom: 4px; }
.nl-mail-body .meta { font-size: 0.85rem; color: var(--text-mute); margin-bottom: 16px; }
.nl-mail-body h4 { font: 600 0.74rem/1.4 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--purple); margin: 0 0 10px; }
.nl-mail-p { font: 400 1.02rem/1.7 var(--serif); }
.nl-part { position: relative; margin: 14px -12px 0; padding: 12px 12px 14px; border-radius: 10px; transition: background-color .5s ease, box-shadow .5s ease; }
.nl-part::before { content: attr(data-note); position: absolute; right: 12px; top: 8px; font: 400 1.05rem/1 var(--hand); color: var(--purple); background: #fff; border: 1px solid color-mix(in srgb, var(--purple) 35%, transparent); border-radius: 999px; padding: 4px 10px 3px; opacity: 0; transform: translateY(-4px) rotate(-2deg); transition: opacity .35s ease, transform .45s var(--ease-spring); pointer-events: none; }
.nl-part.is-hl { background: color-mix(in srgb, var(--hl) 13%, #fff); box-shadow: 0 0 0 2px color-mix(in srgb, var(--purple) 50%, transparent); }
.nl-part.is-hl::before { opacity: 1; transform: rotate(-2deg); transition-delay: .35s; }
.nl-co { border: 1px solid #e8e4d8; border-radius: 8px; padding: 14px 18px; background: #fcfbf8; }
.nl-co-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.nl-co-top strong { font: 600 1.15rem/1.2 var(--serif); }
.nl-co-top span { font-size: 0.78rem; color: var(--text-mute); }
.nl-co ul { list-style: none; padding: 0; margin: 0; }
.nl-co li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: start; padding: 10px 0; border-top: 1px solid #eeebe2; font-size: 0.93rem; line-height: 1.55; }
.nl-co li:first-child { border-top: 0; }
.nl-co .watch { font-size: 0.86rem; color: var(--text-mute); margin-top: 8px; }
.nl-co .watch b { color: var(--text-dark); font-weight: 600; }
.nl-ledger { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.nl-ledger caption { text-align: left; font-size: 0.8rem; color: var(--text-mute); padding-bottom: 8px; }
.nl-ledger th, .nl-ledger td { text-align: left; padding: 9px 10px; border-bottom: 1px solid #eeebe2; vertical-align: top; line-height: 1.45; }
.nl-ledger th { font: 600 0.7rem/1.4 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-mute); border-bottom: 2px solid var(--j-ink); }
.nl-ledger td:first-child { font-weight: 500; }
.nl-ledger td.who { color: var(--text-mute); white-space: nowrap; }
.nl-mail-body ol { padding-left: 1.2em; font-size: 0.93rem; line-height: 1.6; }
.nl-mail-more { margin: 16px -12px -14px; padding: 18px 24px 20px; background: linear-gradient(#fff0, #f6f4ee 40%); border-top: 1px dashed #e0dccf; font-size: 0.9rem; color: var(--text-mute); text-align: center; border-radius: 0 0 10px 10px; }
.nl-mail-more a { color: var(--purple); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.nl-frame-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px 18px; flex-wrap: wrap; margin-top: 12px; }
.nl-sample-note { flex: 1 1 300px; font-size: 0.8rem; color: var(--text-mute); line-height: 1.5; }

/* Scroll-guided mode (desktop + JS): the issue stays pinned while the
   three steps scroll past; each step slides the issue to its part. */
.nl-anat.is-scrolly .nl-anat-right { align-self: stretch; }
.nl-anat.is-scrolly .nl-frame { position: sticky; top: 24px; height: min(700px, calc(100vh - 48px)); display: flex; flex-direction: column; }
.nl-anat.is-scrolly .nl-mail { flex: 1; min-height: 0; }
.nl-anat.is-scrolly .nl-mail-view { flex: 1; min-height: 0; overflow: hidden; }
.nl-anat.is-scrolly .nl-mail-view::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 44px; background: linear-gradient(#fff0, #fff); pointer-events: none; }
.nl-anat.is-scrolly .nl-mail-body { transition: transform .95s cubic-bezier(.65, .05, .25, 1); will-change: transform; }
.nl-anat.is-scrolly .nl-steps { gap: 0; padding: 4vh 0 22vh; }
.nl-anat.is-scrolly .nl-step { min-height: 64vh; display: flex; flex-direction: column; justify-content: center; border-top: 0; padding-top: 0; opacity: .3; transform: translateX(-6px); }
.nl-anat.is-scrolly .nl-step.is-active { opacity: 1; transform: none; }
.nl-anat.is-scrolly .nl-step .n { font-size: 2.6rem; }
.nl-anat.is-scrolly .nl-step h3 { font-size: 1.55rem; }

/* ============================================================
   Is / is not: two notebook pages; ticks are drawn, the "not"s crossed out
   ============================================================ */
.nl-isnt { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.nl-page {
  position: relative; background-color: var(--paper); border: 1px solid var(--paper-border); border-radius: 10px;
  padding: 18px 24px 22px 54px; box-shadow: 0 18px 40px -30px rgba(30, 28, 90, .45);
  background-image:
    linear-gradient(to right, transparent 36px, var(--paper-margin) 36px, var(--paper-margin) 37px, transparent 37px),
    repeating-linear-gradient(to bottom, transparent 0, transparent 33px, color-mix(in srgb, var(--paper-line) 60%, transparent) 33px, color-mix(in srgb, var(--paper-line) 60%, transparent) 34px);
  background-position: 0 0, 0 10px;
}
.nl-page h3 { font: 400 1.65rem/34px var(--hand); margin-bottom: 0; }
.nl-page ul { list-style: none; padding: 0; margin: 0; }
.nl-page li { position: relative; font: 400 1.04rem/34px var(--serif); }
.nl-is h3 { color: var(--tag-measured); }
.nl-not h3 { color: var(--tag-cond); }
.nl-tick { position: absolute; left: -32px; top: 7px; width: 20px; height: 20px; }
.nl-tick path { fill: none; stroke: var(--tag-measured); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; stroke-dashoffset: 0; }
.nl-not li > span { background: linear-gradient(var(--tag-cond), var(--tag-cond)) no-repeat 0 56% / 100% 2px; -webkit-box-decoration-break: slice; box-decoration-break: slice; }
.nl-not-note { position: absolute; right: 18px; bottom: 10px; font: 400 1rem/1 var(--hand); color: var(--tag-cond); transform: rotate(-3deg); opacity: .85; }
.nl-js .nl-isnt .nl-tick path { stroke-dashoffset: 22; transition: stroke-dashoffset .5s ease calc(var(--i) * .2s + .35s); }
.nl-js .nl-isnt.is-in .nl-tick path { stroke-dashoffset: 0; }
.nl-js .nl-isnt .nl-not li > span { background-size: 0% 2px; transition: background-size .65s cubic-bezier(.6, .1, .3, 1) calc(var(--i) * .28s + .7s); }
.nl-js .nl-isnt.is-in .nl-not li > span { background-size: 100% 2px; }
.nl-js .nl-isnt .nl-not-note { opacity: 0; transition: opacity .6s ease 1.8s; }
.nl-js .nl-isnt.is-in .nl-not-note { opacity: .85; }

/* ============================================================
   The work behind it
   ============================================================ */
.nl-byline { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--nl-rule); border-left: 3px solid var(--purple); border-radius: 10px; padding: 14px 18px; margin-bottom: 22px; max-width: 760px; }
.nl-byline img { width: 46px; height: 46px; border-radius: 10px; flex: none; }
.nl-byline p { font-size: 0.96rem; line-height: 1.55; color: var(--text-mute); }
.nl-byline .nl-hand { font-size: 1.15rem; color: var(--purple); margin-right: 4px; }
.nl-byline a { color: var(--purple); font-weight: 600; white-space: nowrap; }
.nl-byline a:hover { text-decoration: underline; text-underline-offset: 3px; }
.nl-work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.nl a.nl-card-link { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--nl-rule); border-radius: 12px; padding: 22px 22px 18px; overflow: hidden; transition: border-color .2s, box-shadow .3s, transform .35s var(--ease-out); }
.nl a.nl-card-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--purple); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.nl a.nl-card-link:hover, .nl a.nl-card-link:focus-visible { border-color: color-mix(in srgb, var(--purple) 45%, var(--nl-rule)); box-shadow: 0 22px 40px -28px rgba(30, 28, 90, .55); transform: translateY(-4px); }
.nl a.nl-card-link:hover::after, .nl a.nl-card-link:focus-visible::after { transform: scaleX(1); }
.nl-card-link .k { font: 600 0.7rem/1.4 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--purple); }
.nl-card-link h3 { font-size: 1.15rem; margin: 6px 0 6px; }
.nl-card-link p { color: var(--text-mute); font-size: 0.93rem; line-height: 1.55; flex: 1; }
.nl-card-link .go { margin-top: 14px; font-size: 0.86rem; font-weight: 600; color: var(--purple); }
.nl-card-link .go i { display: inline-block; font-style: normal; transition: transform .25s var(--ease-out); }
.nl-card-link:hover .go i { transform: translateX(4px); }
.nl-latest { margin-top: 20px; font-size: 0.9rem; color: var(--text-mute); line-height: 1.7; }
.nl-latest a { color: var(--text-dark); text-decoration: underline; text-decoration-color: rgba(91, 84, 224, 0.4); text-underline-offset: 3px; }
.nl-latest a:hover { color: var(--purple); }

/* ============================================================
   FAQ (smooth open where the browser supports ::details-content)
   ============================================================ */
.nl-faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.nl-faq-grid .nl-head { position: sticky; top: 24px; }
.nl-faq details { border-bottom: 1px solid var(--nl-rule); }
.nl-faq details:first-child { border-top: 1px solid var(--nl-rule); }
.nl-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 17px 2px; font: 600 1.08rem/1.4 var(--serif); transition: color .15s; }
.nl-faq summary:hover { color: var(--purple); }
.nl-faq summary::-webkit-details-marker { display: none; }
.nl-faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--nl-rule); font: 400 1.25rem/1 var(--sans); color: var(--purple); transition: transform .3s var(--ease-out), background .2s, border-color .2s; }
.nl-faq details[open] summary::after { transform: rotate(45deg); background: #fff; border-color: color-mix(in srgb, var(--purple) 40%, var(--nl-rule)); }
.nl-faq details p { color: var(--text-mute); line-height: 1.7; padding: 0 2px 18px; max-width: 62ch; }
.nl-faq details p a { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }
.nl-faq details::details-content { block-size: 0; overflow: clip; transition: block-size .35s var(--ease-out), content-visibility .35s allow-discrete; }
.nl-faq details[open]::details-content { block-size: auto; }

/* ============================================================
   Bottom CTA, over a live two-source interference pattern
   ============================================================ */
.nl .nl-cta { background: var(--navy); color: var(--text-light); border-top: 0; padding: 104px 0 96px; overflow: hidden; isolation: isolate; }
.nl-waves { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.nl-cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 56px; align-items: center; }
.nl-cta h2 { color: #fff; font-size: clamp(1.8rem, 3.8vw, 2.7rem); }
.nl-cta-copy > p { color: var(--text-dim); line-height: 1.65; max-width: 48ch; font-size: 1.05rem; }
.nl-cta .nl-kicker { color: #a9a4ff; }
.nl-cta-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.nl-cta-list li { position: relative; padding-left: 28px; color: var(--text-light); font-size: 0.98rem; }
.nl-cta-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--purple) 35%, transparent); color: #fff; font-size: 0.7rem; font-weight: 700; }
.nl-cta-form { background: var(--cream); color: var(--text-dark); border-radius: 14px; padding: 24px 24px 18px; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, .06); }
.nl-form-label { font: 600 1.08rem/1.4 var(--serif); color: var(--text-dark); margin-bottom: 10px; }
/* Hero signup line reads as body copy, like .nl-lead above it (the bottom CTA keeps the serif label). */
.nl-hero-copy .nl-form-label { font: 400 1.15rem/1.6 var(--sans); color: var(--text-mute); max-width: 50ch; }
.nl-cta-form .nl-fine { margin-top: 8px; }
.nl-waves-cap { position: absolute; right: 24px; bottom: 14px; font: 400 0.92rem/1.3 var(--hand); color: color-mix(in srgb, var(--text-dim) 75%, transparent); max-width: calc(100% - 48px); text-align: right; }

/* ============================================================
   Floating reminder (between the two forms only)
   ============================================================ */
.nl-float { position: fixed; left: 50%; bottom: 18px; z-index: 60; display: flex; align-items: center; gap: 18px; background: color-mix(in srgb, var(--navy) 92%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--text-light); border: 1px solid var(--navy-line); border-radius: 999px; padding: 7px 7px 7px 22px; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .55); transform: translate(-50%, 160%); opacity: 0; visibility: hidden; transition: transform .5s var(--ease-out), opacity .3s ease, visibility 0s linear .5s; }
.nl-float.is-shown { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .55s var(--ease-spring), opacity .3s ease, visibility 0s; }
.nl-float p { display: flex; flex-direction: column; font-size: 0.82rem; line-height: 1.3; color: var(--text-dim); }
.nl-float strong { color: #fff; font: 600 0.95rem/1.3 var(--serif); }
.nl-float .btn { border-radius: 999px; padding: 10px 20px; white-space: nowrap; }
body:has(.tqinb-consent:not([hidden])) .nl-float { display: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .nl-hero-grid, .nl-cta-grid, .nl-anat, .nl-faq-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .nl-desk { margin: 12px auto 0; }
  .nl-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nl-work { grid-template-columns: minmax(0, 1fr); }
  .nl-faq-grid .nl-head { position: static; margin-bottom: 0; }
  .nl-quiz-done { grid-template-columns: auto minmax(0, 1fr); }
  .nl-done-actions { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; gap: 18px; }
}
@media (max-width: 700px) {
  .nl section { padding: 54px 0; }
  .nl .nl-hero { padding: 26px 0 48px; }
  .nl .wrap { padding: 0 18px; }
  .nl-hero h1 { font-size: 2.2rem; margin-bottom: 12px; }
  .nl-lead { font-size: 1.03rem; margin-bottom: 14px; }
  .nl-hero-copy .nl-form-label { font-size: 1.03rem; }
  .nl-next { font-size: 0.78rem; margin-bottom: 14px; }
  .nl-points { margin-bottom: 14px; }
  .nl-points li { font-size: 0.8rem; padding: 5px 10px 5px 8px; }
  .nl-card { padding: 18px 16px 18px 38px; background-image:
    linear-gradient(to right, transparent 24px, var(--paper-margin) 24px, var(--paper-margin) 25px, transparent 25px),
    repeating-linear-gradient(to bottom, transparent 0, transparent 31px, color-mix(in srgb, var(--paper-line) 55%, transparent) 31px, color-mix(in srgb, var(--paper-line) 55%, transparent) 32px); }
  .nl-claim { font-size: 1.18rem; }
  .nl-desk-sheets i:nth-child(1) { transform: rotate(-3deg) translate(-6px, 8px); }
  .nl-desk-sheets i:nth-child(2) { transform: rotate(2deg) translate(6px, 4px); }
  .nl-tape-label { padding: 0 10px 0 14px; }
  .nl-tape-list li { padding: 13px 18px; font-size: 0.84rem; }
  .nl-legend { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .nl-legend li { display: flex; align-items: baseline; gap: 10px; padding: 10px 12px; }
  .nl-legend .tag { display: inline-block; margin: 0; flex: none; }
  .nl-q { grid-template-columns: minmax(0, 1fr); }
  .nl-q-claim { border-right: 0; border-bottom: 1px dashed var(--nl-rule); padding: 16px 16px 16px 48px; }
  .nl-q-claim::before { left: 14px; top: 14px; }
  .nl-q-side { padding: 14px 16px 16px; }
  /* phones: swap the panels instead of stacking them, so an unanswered card has no empty space */
  .nl-quiz-on .nl-q:not(.is-done) .nl-q-ev, .nl-quiz-on .nl-q.is-done .nl-q-pick { display: none; }
  .nl-quiz-on .nl-q.is-done .nl-q-ev { animation: nl-rise .5s var(--ease-out) both; }
  .nl-opts { gap: 7px; }
  .nl .nl-opt { padding: 9px 12px; font-size: 0.82rem; }
  .nl-quiz-done { grid-template-columns: minmax(0, 1fr); padding: 20px; gap: 12px; }
  .nl-done-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .nl-isnt { grid-template-columns: minmax(0, 1fr); }
  .nl-page { padding: 16px 18px 20px 48px; background-image:
    linear-gradient(to right, transparent 30px, var(--paper-margin) 30px, var(--paper-margin) 31px, transparent 31px),
    repeating-linear-gradient(to bottom, transparent 0, transparent 33px, color-mix(in srgb, var(--paper-line) 60%, transparent) 33px, color-mix(in srgb, var(--paper-line) 60%, transparent) 34px); }
  .nl-tick { left: -30px; }
  .nl-not-note { position: static; display: block; margin-top: 6px; text-align: right; }
  .nl-byline { align-items: flex-start; }
  .nl-byline img { width: 38px; height: 38px; }
  .nl-mail { border-radius: 10px; }
  .nl-mail-head { padding: 14px 16px; }
  .nl-mail-body { padding: 20px 16px 14px; }
  .nl-part { margin: 12px -8px 0; padding: 10px 8px 12px; }
  .nl-part::before { display: none; }
  .nl-mail-more { margin: 14px -8px -12px; padding: 16px; }
  .nl-co { padding: 12px; }
  .nl-co li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .nl-co li .tag { justify-self: start; }
  /* Ledger table becomes stacked cards: no sideways scrolling on phones */
  .nl-ledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .nl-ledger, .nl-ledger tbody, .nl-ledger tr, .nl-ledger td { display: block; width: 100%; }
  .nl-ledger caption { display: block; width: 100%; }
  .nl-ledger tr { border: 1px solid #eeebe2; border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; background: #fcfbf8; }
  .nl-ledger td { border: 0; padding: 2px 0; }
  .nl-ledger td.who { display: inline-block; width: auto; font-size: 0.82rem; margin-right: 8px; }
  .nl-ledger td.ev { display: inline-block; width: auto; }
  .nl-ledger td.st { color: var(--text-mute); font-size: 0.86rem; margin-top: 4px; }
  .nl .nl-cta { padding: 64px 0 72px; }
  .nl-cta-form { padding: 20px 16px 14px; }
  .nl-waves-cap { left: 18px; right: 18px; bottom: 16px; text-align: left; font-size: 0.84rem; }
  .nl-float { left: 10px; right: 10px; bottom: 10px; transform: translateY(160%); border-radius: 14px; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; }
  .nl-float.is-shown { transform: none; }
}

/* ============================================================
   Reduced motion: no loops, no sweeps; finished states only.
   (styles.css already shortens every transition; this stops the
   infinite loops, which a shortened duration would turn into flicker.)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .nl-dot::after, .nl-tape .nl-tape-track, .nl-prog button.is-active span::after { animation: none !important; }
  .nl-prog button.is-active span::after { transform: scaleX(1); }
  .nl-js .nl [data-reveal]:not(.is-in), .nl-js .nl-desk { opacity: 1; transform: none; }
  .nl-hl { background-size: 100% 0.56em; }
}
