/* Uplifty articles. Loaded after /home/home.css, which carries the tokens, type, buttons, header,
   consult band and footer, so an article wears the front door without a second copy of it.

   Layout: one reading column with the reader's progress pinned beside it, the way the front door
   pins the week beside its copy. The colour rule carries over: orange marks a leak and nothing
   else, indigo marks what came back. Here that means a reader's ticks are indigo. */

/* Hints carry instructions here, so they clear 4.5:1 on white and on paper. The front door's --ink-3
   is 3.82:1, which is fine for a caption and not for a step. */
:root { --ink-hint: #62698D; }

.a-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 19.5rem;
  grid-template-areas: "hero rail" "body rail";
  column-gap: clamp(48px, 7vw, 112px);
  padding-bottom: clamp(64px, 9vw, 112px);
}
.a-grid.no-rail { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "body"; }

/* ---------- Hero ---------- */
.a-hero { grid-area: hero; padding-block: clamp(44px, 8vh, 88px) 36px; max-width: 44rem; }
.a-hero .eyebrow a { color: inherit; text-decoration: none; }
.a-hero .eyebrow a:hover { color: var(--ink); }
.a-hero h1 { margin-top: 20px; font-size: clamp(2.5rem, 1.75rem + 3vw, 3.95rem); line-height: 1.02; letter-spacing: -0.026em; }
.a-hero .lead { margin-top: 24px; font-size: var(--t-lead); line-height: 1.55; color: var(--ink-2); }
.a-by { display: flex; align-items: center; gap: 12px; margin-top: 28px; font-size: 0.9375rem; line-height: 1.35; color: var(--ink-hint); }
.a-by img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.a-by strong { display: block; color: var(--ink); font-weight: 700; }
.a-by a { color: inherit; text-decoration: none; }
.a-by a:hover strong { text-decoration: underline; }
.a-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 22px; margin: 32px 0 0; padding-top: 22px; border-top: 1px solid var(--rule); }
.a-facts div { display: grid; gap: 4px; align-content: start; min-width: 0; }
.a-facts dt { font-size: var(--t-eyebrow); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-hint); }
.a-facts dd { margin: 0; font-size: 0.9375rem; line-height: 1.4; font-weight: 600; color: var(--ink); }

/* ---------- Reading column ---------- */
.a-body { grid-area: body; max-width: 44rem; min-width: 0; font-size: 1.125rem; line-height: 1.66; color: var(--ink-2); }
.a-body strong { color: var(--ink); font-weight: 700; }
.a-sec { padding-block: clamp(32px, 4vw, 44px); display: grid; gap: 18px; min-width: 0; }
.a-sec > * { min-width: 0; }
.a-sec h2, .a-step h2 { font-size: clamp(1.7rem, 1.4rem + 1.1vw, 2.2rem); color: var(--ink); line-height: 1.08; }
.a-sec h3, .a-step h3 { font-size: 1.25rem; color: var(--ink); line-height: 1.2; }
.a-body ol, .a-body ul { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.a-body li::marker { color: var(--ink-hint); }
.a-body code { font-family: var(--mono); font-size: 0.86em; color: var(--ink); background: var(--grid); padding: 0.12em 0.28em; border-radius: 5px; overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.a-body p > code, .a-body li > code, .a-done code { white-space: nowrap; }
.a-body .v-acct { white-space: normal; }
.leak-line { background: linear-gradient(var(--lift), var(--lift)) 0 96% / 100% 2px no-repeat; color: var(--ink); }

/* ---------- The picture ----------
   The page's one set piece. Both mailboxes run into one Claude. The second starts as the leak,
   a wandering orange path. On reaching the screen it gets cut and the indigo path draws in.
   Without JS, or with reduced motion, it simply shows the finished state. */
.a-map { margin: 0; padding: clamp(18px, 3vw, 28px); border-radius: 22px; background: var(--wash); }
.a-map-grid { display: grid; grid-template-columns: minmax(0, 12.5rem) minmax(0, 1fr) 7rem; grid-template-rows: 1fr 1fr; gap: 20px 0; min-height: 240px; isolation: isolate; }
.a-mail { display: grid; align-content: center; gap: 6px; min-width: 0; padding: 14px 16px; border-radius: 14px; background: var(--surface); }
.a-mail small { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-hint); }
.a-mail b { font-family: var(--mono); font-size: 0.8125rem; font-weight: 500; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.a-mail-1 { grid-area: 1 / 1; }
.a-mail-2 { grid-area: 2 / 1; }
.a-lines { grid-column: 2; grid-row: 1 / span 2; position: relative; min-width: 0; }
.a-lines svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.a-lines path { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.l-main { stroke: #AEB5D6; }
.l-leak { stroke: var(--lift); stroke-linecap: round; stroke-dasharray: 2 8; opacity: 0.4; transition: opacity 0.5s 0.45s; }
.l-new { stroke: var(--primary); stroke-width: 3 !important; }
.a-new-svg { clip-path: inset(0 0 0 0); transition: clip-path 0.9s var(--ease) 0.6s; }
.a-lab { position: absolute; left: 50%; transform: translate(-50%, -50%); white-space: nowrap; }
.a-lab > span { display: block; position: relative; padding: 0.38em 0.85em; border-radius: 999px; background: var(--surface); font-size: 0.8125rem; font-weight: 600; line-height: 1.3; color: var(--ink-2); }
.a-lab-1 { top: 28%; }
.a-lab-new { top: 63%; }
.a-lab-new > span { font-weight: 700; color: var(--primary-deep); transition: opacity 0.35s 0.85s; }
.a-lab-leak { top: 91%; }
.a-lab-leak > span { color: var(--ink-hint); transition: color 0.5s 0.45s; }
.a-lab-leak > span::after { content: ""; position: absolute; left: 0.85em; right: 0.85em; top: 52%; height: 2px; background: var(--cut); transform-origin: left; transition: transform 0.6s var(--ease) 0.2s; }
.a-claude { grid-column: 3; grid-row: 1 / span 2; align-self: center; display: grid; place-content: center; gap: 2px; height: 124px; border-radius: 18px; background: var(--night); color: #fff; text-align: center; font-family: var(--serif); font-size: 1.3rem; font-weight: 700; line-height: 1.1; }
.a-claude small { font-family: var(--sans); font-size: 0.75rem; font-weight: 600; color: var(--on-night-2); }

/* Armed by articles.js, released when the picture reaches the screen. */
.is-armed:not(.is-cut) .a-new-svg { clip-path: inset(0 100% 0 0); transition: none; }
.is-armed:not(.is-cut) .l-leak { opacity: 1; transition: none; }
.is-armed:not(.is-cut) .a-lab-new > span { opacity: 0; transition: none; }
.is-armed:not(.is-cut) .a-lab-leak > span { color: var(--lift-ink); transition: none; }
.is-armed:not(.is-cut) .a-lab-leak > span::after { transform: scaleX(0); transition: none; }

.a-note { padding: 16px 18px; border-radius: 14px; background: var(--primary-tint); font-size: 1rem; line-height: 1.55; color: var(--ink); }
.a-note strong { display: block; }

/* ---------- Fill-in ---------- */
.a-fill { padding: clamp(20px, 3vw, 28px); border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); display: grid; gap: 16px; }
.a-fields { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; }
.a-fields label { display: grid; gap: 7px; min-width: 0; font-size: 0.8125rem; font-weight: 700; color: var(--ink); }
.a-fields input {
  width: 100%; font: 500 0.9375rem/1.4 var(--mono); color: var(--ink); background: var(--paper);
  border: 1px solid var(--rule); border-radius: 12px; padding: 0.8em 0.9em;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.a-fields input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 108, 248, 0.25); }
.a-body .fine { color: var(--ink-hint); }
.a-hero .eyebrow, .a-body .eyebrow, .a-rail .eyebrow { color: var(--ink-hint); }
.a-fill .fine { line-height: 1.5; }

/* ---------- Progress: pinned on wide screens, a strip on narrow ones ---------- */
.a-rail-slot { grid-area: rail; padding-top: clamp(44px, 8vh, 88px); min-width: 0; }
.a-rail {
  position: sticky; top: calc(var(--bar-h) + 20px);
  padding: 22px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-float);
}
.a-count { margin-top: 10px; font-size: 1.05rem; font-weight: 600; color: var(--ink-2); }
.a-count b { font-family: var(--serif); font-size: 2.1rem; line-height: 1; color: var(--primary-deep); }
.a-meter { display: block; height: 6px; margin-top: 10px; border-radius: 3px; background: var(--grid); overflow: hidden; }
.a-meter i { display: block; width: 0; height: 100%; border-radius: 3px; background: var(--primary); transition: width 0.45s var(--ease); }
.a-left { margin-top: 8px; font-size: 0.8125rem; color: var(--ink-hint); }
.a-rail ol { list-style: none; margin: 16px -10px -8px; padding: 0; display: grid; gap: 2px; }
.a-rail li a { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 7px 10px; border-radius: 10px; font-size: 0.875rem; line-height: 1.3; color: var(--ink-2); text-decoration: none; transition: background-color 0.2s, color 0.2s; }
.a-rail li a:hover { background: var(--paper); color: var(--ink); }
.a-rail li.is-here a { background: var(--paper); color: var(--ink); font-weight: 600; }
.a-rail li.is-done a { color: var(--ink-hint); }
.a-rn { font-size: 0.75rem; color: var(--ink-hint); }
.a-rail li.is-done .a-rn { font-size: 0; }
.a-rail li.is-done .a-rn::before { content: "✓"; font-size: 0.9375rem; font-weight: 700; color: var(--primary-deep); }
.a-rm { font-size: 0.6875rem; color: var(--ink-hint); }

.a-strip { display: none; }

/* ---------- Steps ---------- */
.a-steps { margin-top: 8px; }
.a-step { padding-block: clamp(32px, 4vw, 44px); border-top: 1px solid var(--rule); display: grid; gap: 16px; min-width: 0; scroll-margin-top: calc(var(--bar-h) + 14px); }
.a-step > * { min-width: 0; }
/* A sentence stays with the command it introduces, and the next thought gets air. */
.a-step > p + .a-code { margin-top: -6px; }
.a-step > .a-code + p, .a-step > .a-code + h3, .a-step > p + h3 { margin-top: 14px; }
.a-step-head { display: grid; grid-template-columns: 3.1rem minmax(0, 1fr); gap: clamp(10px, 1.6vw, 18px); align-items: start; }
.a-num { font-family: var(--serif); font-size: clamp(3rem, 2.5rem + 1.6vw, 3.9rem); font-weight: 700; line-height: 0.9; letter-spacing: -0.02em; color: var(--ink); transition: color 0.3s; }
.a-step.is-done .a-num { color: var(--primary-deep); }
.a-step-n { margin-bottom: 6px; font-size: var(--t-eyebrow); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-hint); }
.a-step.is-done h2 { color: var(--ink-hint); }

.a-done {
  display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; margin-top: 4px;
  padding: 14px 16px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule);
  font-size: 1rem; line-height: 1.45; color: var(--ink); cursor: pointer;
  transition: background-color 0.25s, box-shadow 0.25s;
}
.a-done small { display: block; margin-bottom: 2px; font-size: var(--t-eyebrow); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-hint); }
.a-done input {
  appearance: none; -webkit-appearance: none; width: 26px; height: 26px; margin: 0; border-radius: 8px;
  background: var(--paper); box-shadow: inset 0 0 0 2px #B5BAD2; cursor: pointer; transition: background-color 0.2s, box-shadow 0.2s;
}
.a-done:hover input { box-shadow: inset 0 0 0 2px var(--primary); }
.a-done input:checked {
  box-shadow: none; background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17.5 19 7'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.a-done:has(input:checked) { background: var(--primary-tint); box-shadow: none; }
.a-done input:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

/* ---------- Code ---------- */
.a-code { position: relative; min-width: 0; border-radius: 14px; background: var(--night); }
.a-code pre { margin: 0; padding: 16px 88px 16px 18px; overflow-x: auto; color: var(--on-night); font: 400 0.84375rem/1.6 var(--mono); tab-size: 4; }
.a-body .a-code code { background: none; padding: 0; color: inherit; font-size: inherit; overflow-wrap: inherit; }
/* Commands wrap so the whole line can be read. Copying still gives one line. */
.a-code:not(.is-tall) pre { white-space: pre-wrap; overflow-wrap: break-word; }
/* A block whose line breaks mean something keeps them, and scrolls sideways if it must. */
.a-code.is-lines pre { white-space: pre; padding-right: 18px; }
.a-code.is-tall pre { max-height: 340px; overflow: auto; padding: 50px 18px 16px; }
.a-code[data-label]::before { content: attr(data-label); position: absolute; top: 19px; left: 18px; font: 600 0.75rem/1 var(--sans); color: var(--on-night-2); }
.a-copy {
  position: absolute; top: 14px; right: 12px; z-index: 1; padding: 0.55em 0.95em; border: 0; border-radius: 999px;
  font: 700 0.75rem/1 var(--sans); color: var(--on-night); background: var(--night-line); cursor: pointer;
  transition: background-color 0.2s;
}
.a-copy:hover { background: var(--primary); color: #fff; }

/* ---------- Choices in step 3 ---------- */
.a-choices { display: grid; gap: 10px; }
.a-choice { padding: 16px 18px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); display: grid; gap: 6px; font-size: 1rem; line-height: 1.55; }
.a-choice.is-pick { box-shadow: inset 0 0 0 2px var(--primary); }
.a-choice .fine { line-height: 1.5; }
.a-tag { justify-self: start; padding: 0.2em 0.65em; border-radius: 999px; font-size: 0.8125rem; font-weight: 700; }
.a-tag-leak { background: var(--lift-tint); color: var(--lift-ink); }

/* ---------- Calls to action in the reading column ---------- */
.a-cta { margin-block: clamp(20px, 3vw, 32px); padding: clamp(22px, 3.2vw, 32px); border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); display: grid; gap: 12px; font-size: 1.0625rem; }
.a-cta + .a-step { border-top: 0; }
.a-cta h3 { font-size: var(--t-h3); color: var(--ink); line-height: 1.12; }
.a-cta .btn, .a-cta .link-arrow { justify-self: start; margin-top: 6px; }
.a-cta-co { background: var(--primary-deep); box-shadow: none; color: #E2E7FF; }
.a-body .a-cta-co .eyebrow { color: #C3CCFF; }
.a-cta-co h3 { color: #fff; }
.a-body .a-cta-co .fine { color: #DDE2FF; }

/* ---------- Trouble table ---------- */
.a-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.45; }
.a-table th { text-align: left; padding: 0 12px 10px 0; font-size: var(--t-eyebrow); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-hint); }
.a-table td { vertical-align: top; padding: 12px 12px 12px 0; border-top: 1px solid var(--rule); }
.a-table td:first-child { color: var(--ink); font-weight: 600; width: 34%; }

/* ---------- What was checked ---------- */
.a-proof { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.a-proof > div { padding: 18px 20px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); display: grid; gap: 8px; align-content: start; font-size: 0.9375rem; line-height: 1.5; }
.a-proof h3 { font-size: 1.125rem; }
.a-proof ul { gap: 6px; }
.a-sources { font-size: var(--t-small); line-height: 1.7; color: var(--ink-hint); }

/* ---------- Author ---------- */
.a-author { margin-top: 8px; padding-top: clamp(32px, 4vw, 44px); border-top: 1px solid var(--rule); display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: clamp(20px, 3vw, 32px); align-items: start; font-size: 1.0625rem; }
.a-author img { width: 7.5rem; height: 7.5rem; border-radius: 22px; object-fit: cover; object-position: 50% 18%; }
.a-author-text { display: grid; gap: 10px; }
.a-author h2 { font-size: var(--t-h3); color: var(--ink); }
.a-author .who-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 2px; font-size: 1rem; }

/* ---------- Consult band: one line on top of the front door's ---------- */
.consult .a-also a { font-weight: 700; }
.seg-hint { width: 100%; }

/* ---------- Article index ----------
   A list of checklists to pick from, read like a menu: what you leave with and the guide's name on
   the left, what it costs on the right. The cost is time, set in the serif numerals the guides use
   for their step numbers, so the eye can run down one column and find what fits tonight. Ink, not
   indigo: indigo is time that came back, and this is time you spend. The title is the link, and it
   covers the whole card. */
.a-index { grid-column: 1 / -1; max-width: 52rem; }
.a-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.a-list > li { display: grid; min-width: 0; }
.a-list > li[hidden] { display: none; }
.a-row {
  position: relative; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "get take" "title take" "what take"; align-content: start; column-gap: clamp(20px, 3vw, 36px);
  padding: clamp(22px, 3vw, 30px); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-float);
  color: var(--ink-2); transition: transform 0.25s var(--ease);
}
.a-row:hover { transform: translateY(-2px); }
.a-gets { grid-area: get; font-size: 1.0625rem; font-weight: 700; line-height: 1.4; color: var(--ink); text-wrap: pretty; }
.a-gets span { font-weight: 600; color: var(--ink-hint); }
.a-take {
  grid-area: take; display: grid; align-content: start; justify-items: end; min-width: 5.25rem;
  padding-left: clamp(18px, 2.6vw, 30px); border-left: 1px solid var(--rule); text-align: right;
}
.a-take b { font: 700 clamp(2.5rem, 2.1rem + 1.3vw, 3.2rem)/0.92 var(--serif); letter-spacing: -0.03em; font-variant-numeric: lining-nums tabular-nums; color: var(--ink); }
.a-take .a-u { margin-top: 4px; font-size: 0.875rem; font-weight: 700; line-height: 1.2; color: var(--ink-2); }
.a-take .a-n { margin-top: 10px; font: 500 0.8125rem/1.3 var(--mono); color: var(--ink-hint); white-space: nowrap; }
.a-row h2 { grid-area: title; margin-top: 12px; font-size: clamp(1.5rem, 1.3rem + 0.9vw, 1.95rem); line-height: 1.1; }
.a-row h2 a { color: var(--ink); text-decoration: none; }
.a-row h2 a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 22px; }
.a-what { grid-area: what; margin-top: 10px; font-size: 1rem; line-height: 1.55; text-wrap: pretty; }

/* Pick by time: the start-the-project guide's segmented control, on the paper here. list.js shows
   it; without JavaScript it stays hidden and every row shows. */
.a-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 18px; }
.a-pick[hidden] { display: none; }
.a-pick-q { font-size: 0.9375rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
.a-seg { flex: 0 1 21rem; min-width: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
.a-seg button { min-height: 2.5rem; padding: 0.3em 0.55em; border: 0; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink-2); font: 700 0.875rem/1.15 var(--sans); cursor: pointer; transition: background-color 0.2s, box-shadow 0.2s, color 0.2s; }
.a-seg button:hover { box-shadow: inset 0 0 0 2px #B5BAD2; }
.a-seg button:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.a-seg [aria-pressed="true"] { background: var(--night); box-shadow: none; color: #fff; }
.a-seg [aria-pressed="true"]:hover { box-shadow: none; }
.a-pick-say { flex-basis: 100%; font-size: var(--t-small); color: var(--ink-hint); }
/* The rows that fit come back one after another, and settle. */
@keyframes a-in { 0% { transform: translateY(14px); opacity: 0; } 62% { transform: translateY(-2px); opacity: 1; } 100% { transform: none; opacity: 1; } }
.a-list > li.is-in { animation: a-in 0.42s var(--ease) both; animation-delay: calc(min(var(--n, 0), 8) * 50ms); }

/* Phones: what you leave with, the minutes and the title are enough to pick. The paragraph would make
   each card twice as tall, so it waits in the guide itself. The title takes the full width under the
   first line, and wraps to fill it. */
@media (max-width: 640px) {
  .a-seg { flex-basis: 100%; }
  .a-row { grid-template-areas: "get take" "title title"; column-gap: 16px; }
  .a-take { min-width: 3.75rem; padding-left: 14px; }
  .a-take b { font-size: 2.25rem; }
  .a-take .a-n { margin-top: 6px; font-size: 0.75rem; }
  .a-row h2 { margin-top: 14px; font-size: 1.375rem; }
  .a-what { display: none; }
}

/* ---------- Narrow ---------- */
@media (max-width: 1080px) {
  .a-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "body"; }
  .a-rail-slot { display: none; }
  .a-hero, .a-body { max-width: 46rem; }
  .a-strip { display: block; position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--bar-h)); z-index: 20; margin-inline: calc(-1 * var(--side)); padding-inline: var(--side); min-height: 58px; background: var(--paper-glass); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); box-shadow: 0 1px 0 var(--rule); }
  .a-strip-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 0 12px; padding-block: 8px 10px; }
  .a-strip .a-count { margin: 0; font-size: 0.9375rem; }
  .a-strip .a-count b { font-size: 1.35rem; }
  .a-strip .a-left { margin: 0; }
  .a-strip .a-meter { grid-column: 1 / -1; height: 4px; margin-top: 6px; }
  .a-step { scroll-margin-top: calc(var(--bar-h) + 84px); }
}
@media (max-width: 640px) {
  .a-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a-fields { grid-template-columns: minmax(0, 1fr); }
  /* The flow reads top to bottom, with Claude in the middle of it. */
  .a-map-grid { display: flex; flex-direction: column; min-height: 0; gap: 0; }
  .a-lines { display: contents; }
  .a-lines svg { display: none; }
  .a-mail-1 { order: 1; }
  .a-lab-1 { order: 2; }
  .a-claude { order: 3; align-self: stretch; height: auto; padding: 14px; }
  .a-lab-new { order: 4; }
  .a-lab-leak { display: none; }
  .a-mail-2 { order: 6; }
  .a-lab { position: relative; left: auto; top: auto; transform: none; align-self: center; margin-block: 12px; }
  .a-lab::before { content: ""; position: absolute; left: 50%; top: -12px; bottom: -12px; width: 2px; margin-left: -1px; z-index: -1; background: #AEB5D6; }
  .a-lab-new::before { background: var(--primary); width: 3px; }
  .a-step-head { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .a-proof { grid-template-columns: minmax(0, 1fr); }
  .a-author { grid-template-columns: minmax(0, 1fr); }
  .a-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .a-table, .a-table tbody, .a-table tr, .a-table td { display: block; width: 100%; }
  .a-table tr { padding-block: 14px; border-top: 1px solid var(--rule); }
  .a-table td { padding: 0 0 6px; border: 0; }
  .a-table td:first-child { width: 100%; }
  .a-table td[data-l]::before { content: attr(data-l) ": "; font-weight: 700; color: var(--ink); }
}
/* ---------- Eight of eight: the list turns indigo, the ticks ripple down, a small burst ---------- */
.a-rail, .a-strip { transition: background-color 0.5s var(--ease); }
.a-rail.is-all, .a-strip.is-all { background: var(--primary-deep); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.a-rail.is-all .eyebrow { color: #C3CCFF; }
.is-all .a-count { color: #E2E7FF; }
.is-all .a-count b { color: #fff; }
.is-all .a-meter { background: rgba(255, 255, 255, 0.22); }
.is-all .a-meter i { background: #fff; }
.is-all .a-left { color: #fff; }
.a-rail.is-all .a-left { font-family: var(--serif); font-size: 1.1875rem; line-height: 1.2; }
.a-strip.is-all .a-left { font-family: var(--sans); font-weight: 600; text-align: right; }
.a-rail.is-all li a { color: #DDE2FF; }
.a-rail.is-all li a:hover, .a-rail.is-all li.is-here a { background: rgba(255, 255, 255, 0.12); color: #fff; }
.a-rail.is-all .a-rm { color: #C3CCFF; }
.a-rail.is-all li.is-done .a-rn::before { color: #fff; }
.a-rail li.is-done .a-rn::before, .a-count b { display: inline-block; }
.a-next { display: none; margin-top: 12px; font-size: 0.9375rem; font-weight: 700; color: #fff; text-underline-offset: 3px; }
.a-rail.is-all .a-next { display: block; }
@keyframes a-pop { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.45); } }
.is-party li .a-rn::before { animation: a-pop 0.42s var(--ease) both; animation-delay: calc(var(--i) * 60ms); }
.is-party .a-count b { animation: a-pop 0.5s var(--ease) 0.45s both; }
.a-burst { position: fixed; inset: 0; z-index: 60; overflow: hidden; pointer-events: none; }
.a-burst i { position: absolute; display: block; border-radius: 2px; }

/* ---------- The newsletter box: built by articles.js into [data-news] ---------- */
.a-news { margin-top: clamp(32px, 4vw, 44px); padding: clamp(22px, 3.2vw, 32px); border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); display: grid; gap: 10px; }
.a-news:empty { display: none; }
.a-news h2 { font-size: var(--t-h3); color: var(--ink); line-height: 1.12; }
.a-news > p { color: var(--ink-2); }
.a-news .eyebrow { color: var(--ink-hint); }
.a-news .fine { color: var(--ink-hint); }
.a-news-form { display: grid; gap: 8px; margin-top: 6px; }
.a-news-form label { font-size: 0.8125rem; font-weight: 700; color: var(--ink); }
.a-news-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.a-news-row input { min-width: 0; padding: 0.8em 1em; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); color: var(--ink); font: 400 1rem/1.3 var(--sans); }
.a-news-row input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 108, 248, 0.25); }
.a-news-row input[aria-invalid="true"] { border-color: var(--lift); }
.a-news-row input:disabled { color: var(--ink-2); }
.a-news-row .btn[disabled] { cursor: default; background: var(--primary-deep); transform: none; box-shadow: none; }
.a-news-status { min-height: 1.5em; font-size: 0.9375rem; color: var(--ink-2); }
.a-news-status:empty { min-height: 0; }
.a-news-status.is-ok { color: var(--primary-deep); font-weight: 600; }
.a-news-status.is-err { color: var(--lift-ink); }
.a-index .a-news { margin-top: clamp(28px, 4vw, 40px); }

/* "Did this help?": the top of the same box, on articles. Its check is the step check, so the last
   tick on the page looks like every other tick. Indigo, because a fix that worked is time back. */
.a-help, .a-news-mail { display: grid; gap: 10px; }
.a-help > p:not(.eyebrow), .a-news-mail > p:not(.fine) { color: var(--ink-2); }
.a-help-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 6px; }
.a-help-btn {
  display: inline-grid; grid-template-columns: 26px auto; gap: 12px; align-items: center;
  padding: 12px 20px 12px 14px; border: 0; border-radius: 14px; background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink); font: 700 1rem/1.2 var(--sans); text-align: left; cursor: pointer;
  transition: background-color 0.25s, box-shadow 0.25s, color 0.25s;
}
.a-help-box {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px;
  background: var(--surface); box-shadow: inset 0 0 0 2px #B5BAD2; transition: background-color 0.2s, box-shadow 0.2s;
}
.a-help-box svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; }
.a-help-btn:hover .a-help-box { box-shadow: inset 0 0 0 2px var(--primary); }
.a-help-btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.a-help-btn.is-on { background: var(--primary-tint); box-shadow: none; color: var(--primary-deep); cursor: default; }
.a-help-btn.is-on .a-help-box { background: var(--primary); box-shadow: none; }
.a-help-btn.is-on .a-help-box svg { stroke-dashoffset: 0; }
@keyframes a-tap { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.2); } }
.a-help-btn.is-pop .a-help-box { animation: a-tap 0.42s var(--ease) both; }
.a-help-btn.is-pop .a-help-box svg { transition: stroke-dashoffset 0.35s var(--ease) 0.12s; }
.a-help-skip {
  padding: 4px 0; border: 0; background: none; color: var(--ink-hint); cursor: pointer;
  font: 600 0.9375rem/1.3 var(--sans); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.a-help-skip:hover { color: var(--ink); }
.a-help-skip[hidden], .a-news-mail[hidden] { display: none; }
.a-news-mail { margin-top: 14px; padding-top: 22px; border-top: 1px solid var(--rule); }
.a-news-mail h3 { font-size: 1.25rem; line-height: 1.2; color: var(--ink); }
.a-news-mail.is-in { animation: rise 0.5s var(--ease) both; }
@media (max-width: 1080px) { .a-news { scroll-margin-top: 66px; } } /* the strip's height: html already clears the header */
@media (max-width: 560px) { .a-news-row { grid-template-columns: minmax(0, 1fr); } .a-news-row .btn { justify-self: start; } }

@media (prefers-reduced-motion: reduce) {
  .a-rail, .a-strip, .a-new-svg, .l-leak, .a-lab > span, .a-lab-leak > span::after, .a-meter i, .a-done, .a-done input, .a-row, .a-num { transition: none; }
  .a-help-btn, .a-help-box, .a-help-box svg { transition: none !important; }
  .a-help-btn .a-help-box, .a-news-mail { animation: none !important; }
  .a-seg button { transition: none; }
  .a-list > li.is-in { animation: none; }
}
