*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* The one stylesheet of the public pages and the customer app (Notes/Plans/2026-11-07-one-website-design-and-navigation-plan.md). It sits in public/ so it
   has a fixed address, /app/nexastra.css, that the server's page templates can name.
   Night theme. Near-black ground with soft glows, warm ivory text, one orange accent for actions and labels,
   thin line art, Josefin Sans for headings and labels, Source Serif 4 for reading. Life-area hues are lightened
   so they hold up on a dark ground. Original design in the spirit of the owner's reference; no assets copied.
   Tokens live on .nx. */
.nx {
  --paper: #0c0b10; --ink: #eee9e1; --muted: #a9a4ae; --rule: #2b2933;
  --surface: #15131b; --surface-2: #1d1a25; --field: #1a1822; --field-line: #3b3845;
  --act: #e8803a; --act-ink: #17110b; --act-hover: #f29a5c; --accent: #e8803a;
  --warn: #ff9a85; --note: rgb(232 128 58 / 0.13);
  --serif: 'Source Serif 4', Georgia, serif; --sans: 'Josefin Sans', system-ui, sans-serif;
  color-scheme: dark;
  min-height: 100vh; overflow-x: clip; color: var(--ink);
  background:
    radial-gradient(60rem 32rem at 88% -8%, rgb(232 128 58 / 0.10), transparent 60%),
    radial-gradient(52rem 34rem at -5% 18%, rgb(110 80 200 / 0.12), transparent 60%),
    var(--paper);
  font: 400 1.0625rem/1.75 var(--serif);
}
.nx button { cursor: pointer; }
.nx button:disabled { cursor: not-allowed; opacity: 0.5; }
.nx :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.nx ::selection { background: rgb(232 128 58 / 0.35); }
.nx a { color: var(--accent); text-underline-offset: 3px; }
.nx a.nx-wordmark { color: var(--ink); }
.nx a.nx-wordmark:hover { color: var(--accent); }

.hue-career { --hue: #7f9be0; } .hue-finance { --hue: #5cbfa8; }
.hue-relationships { --hue: #e6869f; } .hue-family { --hue: #e5a955; }
.hue-health { --hue: #97c86f; } .hue-psychology { --hue: #a594e6; }
.hue-life_purpose { --hue: #d6b552; } .hue-spirituality { --hue: #62bbdb; }

/* Header, page, footer */
.nx-header {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  max-width: 72rem; margin: 0 auto; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--rule);
  font: 600 0.75rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
}
.nx-header nav { display: flex; gap: 1.75rem; align-items: center; flex-wrap: wrap; }
.nx-header nav button, .nx-header nav a, .nx-wordmark { text-decoration: none; background: none; border: 0; padding: 0.5rem 0; color: var(--ink); font: inherit; letter-spacing: inherit; text-transform: inherit; }
.nx-header nav button:hover, .nx-header nav a:hover, .nx-wordmark:hover { color: var(--accent); }
.nx-header nav button[aria-current='page'], .nx-header nav a[aria-current='page'] { color: var(--accent); box-shadow: inset 0 -2px var(--accent); }
.nx-wordmark { font: 600 1.125rem/1 var(--sans) !important; letter-spacing: 0.24em !important; display: flex; align-items: center; gap: 0.6rem; }
.nx-wordmark::before { content: '✦'; color: var(--accent); letter-spacing: 0; }
.nx-person { padding: 0.45rem 0.8rem; border: 1px solid var(--rule); border-radius: 999px; }
.nx-main { max-width: 72rem; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
/* The cookie choice (plan 2026-11-21-cookie-choice-popup, update): a light card in the bottom-left corner until answered; the page stays usable. */
.nx-consent { position: fixed; left: 1.5rem; bottom: 1.5rem; z-index: 100; width: min(26rem, calc(100vw - 2rem)); padding: 1.5rem 1.75rem; border-radius: 12px;
  background: #fffaf0; color: #2b2430; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); font: 400 0.9rem/1.65 var(--sans); }
.nx-consent p { margin: 0 0 1rem; }
.nx-consent a { color: #2b2430; text-decoration: underline; }
.nx-consent-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nx-consent-prefs { display: none; margin: 0 0 1rem; padding: 0.9rem 1rem 1rem; border-radius: 8px; background: #f1e9da; font-size: 0.85rem; }
.nx-consent-prefs p { margin: 0 0 0.6rem; }
.nx-consent-toggle:checked ~ .nx-consent-prefs { display: block; }
.nx-consent-choices { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.nx-consent button, .nx-consent label { flex: 1; padding: 0.65rem 1rem; border: 1.5px solid #2b2430; border-radius: 6px; background: var(--act); border-color: var(--act);
  color: var(--act-ink); font: 600 0.9rem/1.3 var(--sans); text-align: center; cursor: pointer; }
.nx-consent .nx-consent-quiet { background: transparent; border-color: #2b2430; color: #2b2430; }
.nx-consent button:hover { background: var(--act-hover); border-color: var(--act-hover); }
.nx-consent .nx-consent-quiet:hover { background: #2b2430; border-color: #2b2430; color: #fffaf0; }
.nx-consent-toggle:focus-visible ~ .nx-consent-choices label { outline: 2px solid var(--act); outline-offset: 2px; }
@media (max-width: 40rem) { .nx-consent { left: 1rem; right: 1rem; bottom: 1rem; width: auto; } }
.nx-footer { max-width: 72rem; margin: 0 auto; padding: 1.5rem 1.5rem 6rem; border-top: 1px solid var(--rule); font: 400 0.875rem/1.6 var(--sans); color: var(--muted); }

.nx h1 { font: 300 clamp(2.25rem, 5vw, 3.5rem)/1.15 var(--sans); letter-spacing: 0; margin: 0 0 1.5rem; max-width: 22ch; }
.nx h2 { font: 400 1.6rem/1.3 var(--sans); margin: 0 0 0.75rem; }
.nx h3 { font: 600 1.125rem/1.35 var(--sans); margin: 0 0 0.5rem; }
.nx-h2 { margin-top: 4rem !important; }
.nx-h3 { margin-top: 2.5rem !important; }
.nx p { max-width: 66ch; }
.nx-lede { font-size: 1.2rem; line-height: 1.65; color: #d9d3ca; }
.nx-fine, .nx-source { font: 400 0.875rem/1.6 var(--sans); color: var(--muted); }
.nx-kicker { font: 600 0.8125rem/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.75rem; }
.nx-sample { font: 400 0.75rem/1.4 var(--sans); color: var(--muted); }
.nx-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.nx-primary, .nx-secondary {
  font: 600 0.875rem/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 1rem 1.6rem; border-radius: 999px; min-height: 44px;
}
.nx-primary { background: var(--act); color: var(--act-ink); border: 1px solid var(--act); }
.nx-primary:hover:not(:disabled) { background: var(--act-hover); border-color: var(--act-hover); }
.nx-secondary { background: transparent; color: var(--ink); border: 1px solid var(--field-line); }
.nx-secondary:hover { border-color: var(--accent); color: var(--accent); }
a.nx-primary, a.nx-secondary { display: inline-flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; }
a.nx-primary { color: var(--act-ink); }
a.nx-secondary { color: var(--ink); }
.nx-link { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; font: inherit; }
.nx-actions { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; margin-top: 1.5rem; }

.nx input, .nx textarea {
  width: 100%; padding: 0.8rem; border: 1px solid var(--field-line); border-radius: 8px; background: var(--field);
  color: var(--ink); font: 400 1rem/1.4 var(--sans);
}
.nx input:focus, .nx textarea:focus { border-color: var(--accent); }
.nx input[type='checkbox'] { width: 1.15rem; height: 1.15rem; padding: 0; accent-color: var(--accent); }

/* Landing and why */
.nx-hero { padding: 4rem 0 1rem; }
.nx-hero.center { text-align: center; padding-top: 5rem; }
.nx-hero.center h1, .nx-hero.center p { margin-left: auto; margin-right: auto; }
.nx-hero.center .nx-actions { justify-content: center; }
.nx-hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); max-width: 20ch; }
.nx-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: center; margin-top: 5rem; }
.nx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.nx-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nx-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin: 2rem auto 1rem; max-width: 52rem; text-align: left; }
.nx-choice { padding: 1.75rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; display: flex; flex-direction: column; gap: 0.75rem; }
.nx-choice h2 { margin: 0; color: #fff; }
.nx-choice p { margin: 0; color: #d3cdc4; flex: 1; }
.nx-card { padding: 1.75rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; }
.nx-card h3 { color: #fff; }
.nx-card p { margin: 0; font-size: 1rem; color: #d3cdc4; }
.nx-band {
  margin: 4rem calc(50% - 50vw); padding: 4.5rem max(1.5rem, calc(50vw - 34.5rem));
  background: linear-gradient(135deg, #18122a 0%, #261a2a 100%); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.nx-band h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 300; }
.nx-making { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; counter-reset: s; }
.nx-making li { counter-increment: s; border-top: 1px solid var(--accent); padding-top: 0.9rem; font-size: 0.9375rem; line-height: 1.6; color: #d3cdc4; }
.nx-making li::before { content: counter(s, decimal-leading-zero); display: block; font: 600 0.8125rem/1 var(--sans); letter-spacing: 0.14em; color: var(--accent); margin-bottom: 0.6rem; }
.nx-making strong { display: block; font: 600 1.125rem/1.3 var(--sans); color: #fff; margin-bottom: 0.4rem; }
.nx-plain { max-width: 60ch; padding-left: 1.25rem; }
.nx-plain li { margin-bottom: 0.75rem; }
.nx-plain li::marker { color: var(--accent); }
.nx-cta { margin-top: 4rem; padding: 2.75rem; text-align: center; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; }
.nx-cta p { margin-left: auto; margin-right: auto; }
.nx-cta .nx-actions { justify-content: center; }

.nx-step { max-width: 34rem; padding: 2rem 0; }
.nx-h3 + .nx-step { padding-top: 0; }   /* the heading already leaves the space (PA26) */
.nx-step label, .nx-field, .nx-reply label { display: grid; gap: 0.5rem; margin: 1.1rem 0; font: 400 1rem/1.3 var(--sans); color: var(--ink); }
.nx-rail { display: flex; gap: 0.5rem; list-style: none; padding: 0; margin: 0 0 2.5rem; }
.nx-rail li { flex: 1; padding-top: 0.6rem; border-top: 2px solid var(--rule); font: 600 0.75rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.nx-rail li.done { border-color: var(--muted); }
.nx-rail li.now { border-color: var(--accent); color: var(--accent); }
.nx-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.nx-pair label { margin: 0; }
.nx-match { font: 400 0.9375rem/1.5 var(--sans); padding: 0.8rem 1rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; }

/* Area map */
.nx-map {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 2rem 0;
  background: var(--rule); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden;
}
.nx-tile {
  display: flex; flex-direction: column; gap: 0.45rem; min-height: 8.5rem; padding: 1.2rem 1.25rem;
  background: var(--surface); border: 0; text-align: left; font: 400 0.9375rem/1.55 var(--serif); color: #d3cdc4;
}
.nx-tile h2, .nx-tile h3 { font: 600 1.0625rem/1.2 var(--sans); margin: 0; color: var(--hue, var(--ink)); display: flex; align-items: center; gap: 0.55rem; }
.nx-tile h2::before, .nx-tile h3::before { content: ''; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--hue, var(--ink)); box-shadow: 0 0 10px var(--hue); flex-shrink: 0; }
.nx-tile p { margin: 0; }
button.nx-tile:hover { background: color-mix(in srgb, var(--hue) 10%, var(--surface)); }
button.nx-tile[aria-pressed='true'] { background: color-mix(in srgb, var(--hue) 18%, var(--surface)); box-shadow: inset 0 -2px var(--hue); }
.nx-preview { margin-top: 3.5rem; }
.nx-preview .nx-tile { min-height: 4.5rem; justify-content: center; }
.nx-split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.nx-split .nx-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nx-detail { position: sticky; top: 1.5rem; margin-top: 2rem; padding: 1.75rem; background: var(--surface-2); border: 1px solid var(--rule); border-top: 3px solid var(--hue); border-radius: 14px; }
.nx-detail h2 { color: var(--hue); }
.nx-further { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }

/* Products, details, pay */
.nx-two { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: 4rem; align-items: start; }
.nx-stepset { border: 0; padding: 0; margin: 2.5rem 0 0; }
.nx-stepset legend { font: 400 1.4rem/1.3 var(--sans); margin-bottom: 0.75rem; padding: 0; }
.nx-option { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); max-width: 42rem; color: #d3cdc4; }
.nx-option strong { font-family: var(--sans); font-weight: 600; color: #fff; }
.nx-option input { margin-top: 0.35rem; flex-shrink: 0; }
.nx-option.is-included { color: var(--muted); }
.nx-option small { font: 400 0.875rem/1.5 var(--sans); color: var(--muted); }
.nx-price { font: 600 1rem/1 var(--sans); color: #fff; white-space: nowrap; }
.nx-question { display: grid; grid-template-columns: 1fr auto; gap: 0.75rem; align-items: end; margin-bottom: 1rem; max-width: 42rem; }
.nx-question label { display: grid; gap: 0.5rem; font: 400 1rem/1.3 var(--sans); color: var(--ink); }
.nx-question label > span { display: flex; justify-content: space-between; }
.nx-question em { font-style: normal; color: var(--accent); }
.nx-summary {
  position: sticky; top: 1.5rem; padding: 1.5rem; background: var(--surface-2);
  border: 1px solid var(--rule); border-radius: 14px; font: 400 0.9375rem/1.5 var(--sans);
}
.nx-summary h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.nx-summary ul { list-style: none; padding: 0; margin: 0; }
.nx-summary li, .nx-total { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; }
.nx-total { border-top: 1px solid var(--rule); margin-top: 0.75rem; padding-top: 0.9rem; font: 600 1.3rem/1.3 var(--sans); }
.nx-summary .nx-primary { width: 100%; margin-top: 0.75rem; }
.nx-note { margin: 0.75rem 0 0; padding: 0.8rem 0.9rem; background: var(--note); border: 1px solid rgb(232 128 58 / 0.3); border-radius: 8px; font-size: 0.875rem; }
.nx-error { color: var(--warn); }
.nx-review { margin: 1.5rem 0; max-width: 42rem; }
.nx-review > div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
.nx-review dt { font: 600 0.75rem/1.9 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.nx-review dd { margin: 0; }
.nx-review ol { margin: 0; padding-left: 1.2rem; }
/* the discount choice inside a review row: radio rows, and a small box for the code */
.nx-discount { display: grid; gap: 0.7rem; }
.nx-discount .nx-check { align-items: center; margin: 0; }
.nx-discount .nx-check input { margin: 0; flex: none; width: auto; }
.nx-discount-box { display: grid; gap: 0.7rem; padding-left: 1.6rem; max-width: 24rem; }
.nx-discount-box label { display: grid; gap: 0.4rem; }
.nx-discount-box .nx-secondary { justify-self: start; }
.nx-steps { max-width: 60ch; padding-left: 1.25rem; }
.nx-steps li { margin-bottom: 0.75rem; }
.nx-steps li::marker { color: var(--accent); }

/* Chat after payment */
.nx-room { max-width: 46rem; }
.nx-chat { display: grid; gap: 0.75rem; margin: 1.5rem 0; padding: 1rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; max-height: 26rem; overflow-y: auto; }
.nx-bubble { margin: 0; padding: 0.8rem 1rem; border-radius: 14px; max-width: 85%; font: 400 1rem/1.55 var(--sans); }
.nx-bubble.us { background: var(--surface-2); justify-self: start; }
.nx-bubble.you { background: var(--act); color: var(--act-ink); justify-self: end; }
.nx-bubble.quote { font-family: var(--serif); border-left: 3px solid var(--accent); border-radius: 4px 14px 14px 4px; }
.nx-timer { font: 400 0.875rem/1.6 var(--sans); color: var(--muted); }
.nx-timer span[aria-hidden] { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--accent); }

/* Reading and home */
.nx-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: var(--accent); transform-origin: left; z-index: 10; }
.nx-reading { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 2rem; }   /* the report takes the room that is left; it was a 42 rem column */
.nx-reading .nx-article.paper { padding: 1.5rem clamp(1rem, 2.5vw, 2rem) 2rem; }
.nx-toc { position: sticky; top: 1.5rem; align-self: start; font: 400 0.9375rem/1.6 var(--sans); }
.nx-toc p { font-weight: 600; }
.nx-toc ol { padding-left: 1.1rem; }
.nx-toc a { color: var(--ink); text-decoration: none; }
.nx-toc a:hover { color: var(--accent); }
.nx-article { color: #ddd7ce; }
.nx-article section { margin-top: 2.75rem; }
.nx-summary-line { font-size: 1.25rem; line-height: 1.6; color: var(--ink); }
.nx-why { font: 400 0.875rem/1.6 var(--sans); color: var(--muted); }
.nx-why summary { cursor: pointer; color: var(--accent); }
.nx-offer { margin-top: 1.5rem; padding: 1rem 1.25rem; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); }
.nx-offer p { margin: 0 0 0.5rem; }
.nx-banner { display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; padding: 1.5rem 1.75rem; background: var(--surface-2); border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: 14px; max-width: 48rem; }
.nx-banner p { margin: 0; }
.nx-library { list-style: none; padding: 0; max-width: 48rem; }
.nx-library button { width: 100%; display: flex; justify-content: space-between; padding: 1.1rem 0; background: none; border: 0; border-bottom: 1px solid var(--rule); text-align: left; font: inherit; color: var(--ink); }
.nx-library button:hover strong { color: var(--accent); }
.nx-library span { font: 400 0.875rem/1.7 var(--sans); color: var(--muted); }

/* Narrow-screen menu (hidden on wide screens) */
.nx-menu { display: none; background: none; border: 1px solid var(--rule); border-radius: 999px; padding: 0.55rem 1rem; color: var(--ink); font: inherit; letter-spacing: inherit; text-transform: inherit; }
.nx-footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.nx-footer a { color: var(--muted); }
.nx-footer p { margin: 0 0 0.6rem; }
.nx-footer-mark { font: 600 0.875rem/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink); }

/* Night Atlas hero: the night-sky image full-bleed, an engraved star chart in one corner, the nakshatra ring
   turning slowly behind the words. A dark gradient top and bottom keeps the text readable over the image. */
.nx-art { display: block; }
.nx-sky {
  position: relative; isolation: isolate; overflow: hidden; mask-image: linear-gradient(#000 calc(100% - 3rem), transparent);
  margin: -2rem calc(50% - 50vw) 0; padding: 7rem max(1.5rem, calc(50vw - 36rem)) 6.5rem;
  background:
    linear-gradient(180deg, rgb(12 11 16 / 0.6) 0%, rgb(12 11 16 / 0.2) 45%, rgb(12 11 16 / 0.95) 100%),
    url('art/sky.webp') center / cover no-repeat, var(--paper);
}
.nx-sky .ring {
  position: absolute; z-index: -1; left: 50%; top: 50%; width: min(40rem, 110vw);
  translate: -50% -50%; color: rgb(238 233 225 / 0.2); --warm: rgb(232 128 58 / 0.55); --star: 0.3; animation: nx-turn 300s linear infinite;
}
.nx-sky .plate { position: absolute; z-index: -2; right: -12rem; top: -9rem; width: 44rem; color: rgb(233 183 101 / 0.14); }
.nx-sky h1, .nx-sky .nx-lede { text-shadow: 0 2px 24px rgb(0 0 0 / 0.7); }
@keyframes nx-turn { to { rotate: 360deg; } }

/* Engraved plate behind the research band */
.nx-band { position: relative; overflow: hidden; isolation: isolate; }
.nx-band .band-plate { position: absolute; z-index: -1; right: -10rem; top: 50%; translate: 0 -50%; width: 42rem; color: rgb(233 183 101 / 0.13); }

/* Constellation mark on single-topic product cards, and the emblem at the top of a reading */
.nx-product { position: relative; }
.nx-mark { position: absolute; right: 1rem; top: 1.25rem; width: 2.75rem; color: var(--hue); opacity: 0.6; pointer-events: none; }
.nx-article .emblem { width: 3.25rem; margin-bottom: 1.25rem; color: var(--accent); --warm: var(--accent); }

/* Landing "what we do": the four steps as a 2 x 2 grid */
.nx-making.compact { margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.75rem; }

/* Numbered pillar cards: only inside the numbered grids (How it works, the home page), not every card */
.nx-grid { counter-reset: p; }
.nx-grid .nx-card { counter-increment: p; border-top: 2px solid rgb(232 128 58 / 0.55); }
.nx-grid .nx-card::before { content: counter(p, decimal-leading-zero); display: block; margin-bottom: 0.9rem; font: 600 0.8125rem/1 var(--sans); letter-spacing: 0.14em; color: var(--accent); }

/* Product cards: the whole card is the control; the selected one is outlined in the accent */
.nx-product { padding: 1.25rem 1.25rem; margin-bottom: 0.75rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.nx-product:hover { border-color: var(--field-line); }
.nx-product:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.nx-product[class*='hue-'] { border-left: 3px solid var(--hue); }
.nx-product[class*='hue-']:has(input:checked) { border-color: var(--accent); border-left-color: var(--hue); }
.nx-product.is-included { cursor: default; opacity: 0.7; }
.nx-topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; max-width: 42rem; }
.nx-topics .nx-product { margin: 0; }
.nx-badge { display: block; width: fit-content; margin: 0 0 0.5rem; padding: 0.3rem 0.6rem; border-radius: 999px; background: var(--accent); color: var(--act-ink); font: 600 0.6875rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; }

/* Reading: segmented Paper / Night switch, and the paper sheet */
.nx-switch { display: inline-flex; margin: 0.5rem 0 1rem; border: 1px solid var(--rule); border-radius: 999px; overflow: hidden; }
.nx-switch button { background: none; border: 0; padding: 0.5rem 0.9rem; color: var(--muted); font: 600 0.75rem/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; }
.nx-switch button[aria-pressed='true'] { background: var(--ink); color: var(--paper); }
.nx-article.paper {
  --ink: #2b2430; --muted: #6b6470; --rule: #ddd3c3; --accent: #a8521a; --surface: #ece4d5;
  --field: #fffaf0; --field-line: #cdc1ac; color-scheme: light;   /* the night theme's dark input colour on the light paper made the text unreadable */
  padding: 2.5rem clamp(1.25rem, 4vw, 3.5rem) 3rem; background: #f5efe4; color: #3a3238; border-radius: 16px;
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.45); font-size: 1.125rem; line-height: 1.8;
}
.nx-article.paper h1, .nx-article.paper h2, .nx-article.paper .nx-summary-line { color: #241e2a; }
.nx-article.paper .nx-kicker { color: var(--accent); }
.nx-article.paper .nx-offer { background: var(--surface); border-color: var(--rule); }
.nx-article.paper .nx-offer strong { color: #241e2a; }
.nx-article.paper :focus-visible { outline-color: var(--accent); }

@media (max-width: 860px) {
  .nx-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nx-split { grid-template-columns: 1fr; gap: 0; }
  .nx-detail { position: static; }
  .nx-two, .nx-reading, .nx-feature { grid-template-columns: 1fr; gap: 2rem; }
  .nx-feature { margin-top: 3rem; }
  .nx-toc { position: static; }
  .nx-grid, .nx-grid-3, .nx-choices { grid-template-columns: 1fr; }
  .nx-making { grid-template-columns: 1fr 1fr; }
  /* The cart becomes a visible total pinned to the bottom edge on narrow screens. */
  .nx-summary { position: sticky; bottom: 0; top: auto; border-radius: 14px 14px 0 0; padding: 0.9rem 1rem; }
  .nx-summary h2, .nx-summary ul, .nx-summary .nx-fine { display: none; }
  .nx-topics { grid-template-columns: 1fr; }
  .nx-making.compact { grid-template-columns: 1fr; }
  .nx-feature > div { order: -1; }
  .nx-total { margin: 0; border: 0; padding: 0; }
  .nx-banner { flex-direction: column; align-items: flex-start; }
  .nx-review div { grid-template-columns: 1fr; gap: 0.25rem; }
}
@media (max-width: 720px) {
  .nx-menu { display: block; }
  .nx-header nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 0; padding-top: 0.5rem; }
  .nx-header nav.open, .nx-nav-toggle:checked ~ nav { display: flex; }
  .nx-header nav > * { padding: 0.9rem 0; width: 100%; text-align: left; border-bottom: 1px solid var(--rule); }
  .nx-header nav .nx-person { width: auto; border-radius: 999px; padding: 0.45rem 0.8rem; margin-top: 0.75rem; }
  .nx-article.paper { padding: 1.75rem 1.25rem 2rem; font-size: 1.0625rem; }
  .nx-sky { padding-top: 4rem; padding-bottom: 4.5rem; }
  .nx-sky .plate, .nx-band .band-plate { display: none; }
}
@media (max-width: 520px) {
  .nx-hero.center { padding-top: 2.5rem; }
  .nx-pair { grid-template-columns: 1fr; }
  .nx-tile { min-height: 7rem; padding: 0.9rem; }
  .nx-making { grid-template-columns: 1fr; }
  .nx-cta { padding: 1.5rem; }
}

/* ---- prod_0.2: screens and states the prototype did not have ---------------------------------------------- */
.nx-check, .nx-step label.nx-check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; }
.nx-check input { margin-top: 0.4rem; accent-color: var(--accent); }
.nx-results { list-style: none; margin: 0.25rem 0 0; padding: 0; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.nx-results:empty { display: none; }
.nx-option-line { display: block; width: 100%; text-align: left; padding: 0.7rem 0.9rem; background: var(--field); color: var(--ink); border: 0; border-bottom: 1px solid var(--rule); font: inherit; font-size: 0.95rem; }
.nx-option-line:hover, .nx-option-line:focus-visible { background: var(--surface-2); color: var(--accent); }
.nx-pulse { height: 3px; margin-top: 1.5rem; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--accent), transparent); background-size: 50% 100%; background-repeat: no-repeat; animation: nx-sweep 2.4s linear infinite; }
@keyframes nx-sweep { from { background-position: -50% 0; } to { background-position: 150% 0; } }
.nx-waiting { opacity: 0.8; font-style: italic; }
.nx-report-frame { display: block; width: 100%; height: 80vh; min-height: 32rem; border: 1px solid var(--rule); border-radius: 8px; background: #f5efe4; }
.nx-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font: 400 0.85rem/1.5 var(--sans); }
.nx-table th, .nx-table td { text-align: left; padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.nx-table tbody tr { cursor: pointer; }
.nx-table tbody tr:hover, .nx-table tr.is-open { background: var(--surface-2); }
.nx-table ul { margin: 0; padding-left: 1rem; }
.nx-log { max-height: 24rem; overflow: auto; padding: 0.75rem; background: #08070b; border: 1px solid var(--rule); border-radius: 8px; font: 0.75rem/1.5 ui-monospace, monospace; white-space: pre-wrap; }
.nx select { width: 100%; padding: 0.7rem 0.8rem; background: var(--field); color: var(--ink); border: 1px solid var(--field-line); border-radius: 8px; font: inherit; }
@media (prefers-reduced-motion: reduce) { .nx-pulse { animation: none; background-position: 50% 0; } }
@media (max-width: 860px) { .nx-table { display: block; overflow-x: auto; } }

/* the situation summary has two paragraphs: what you told us, then what the chart suggests */
.nx-bubble { white-space: pre-line; }

/* sidebar links in a reading: the PDF link is an anchor, not a button */
.nx-toc a.nx-link { display: block; margin: 0.75rem 0; color: var(--accent); text-decoration: underline; }

/* The report chat and share panels sit on the paper sheet, under the report */
.nx-article.paper .nx-panel { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #d8cfbf; }
.nx-article.paper .nx-panel h2, .nx-article.paper .nx-panel h3, .nx-article.paper .nx-panel h4,
.nx-article.paper .nx-panel label, .nx-article.paper .nx-panel legend, .nx-article.paper .nx-panel p { color: #241e2a; }
.nx-article.paper .nx-panel .nx-fine { color: #4a4350; }
.nx-article.paper .nx-panel .nx-bubble.us { color: #eee9e1; }
.nx-article.paper .nx-panel .nx-bubble.us .nx-fine { color: #a9a4ae; }
.nx-panel .nx-check { display: flex; gap: 0.6rem; align-items: center; margin: 0.45rem 0; font: 400 1rem/1.4 var(--sans); }
.nx-panel .nx-check input { width: auto; flex: none; margin: 0; }
.nx-panel fieldset { border: 0; padding: 0; margin: 1rem 0; }

/* ---- The public pages: what only they need. Everything else above is shared with the app. ------------------------ */
/* The phone menu with no script: a hidden tick box, and its label styled as the app's Menu button. */
.nx input.nx-nav-toggle { position: absolute; width: 1px; height: 1px; padding: 0; opacity: 0; }
.nx-nav-toggle:focus-visible + .nx-menu { outline: 2px solid var(--accent); outline-offset: 3px; }
label.nx-menu { cursor: pointer; }
/* A shorter sky at the top of an inner page. */
.nx-hero.center.nx-page-hero { padding-top: 4.5rem; padding-bottom: 3.5rem; margin-bottom: 2.5rem; }
.nx-page-hero h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); }
.nx-page-hero .nx-actions { margin-top: 1rem; }
/* Reading cards as links, for browsing; the app's order screen has the same cards with tick boxes. */
.nx-shelf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-top: 1rem; }
.nx-shelf.topics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
a.nx-product { text-decoration: none; color: #d3cdc4; max-width: none; margin: 0; }
a.nx-product:hover strong { color: var(--accent); }
a.nx-product small { display: block; margin-top: 0.4rem; }
/* Long text: a centred column, so the page is not one-sided. */
.nx-prose { max-width: 46rem; margin: 0 auto; }
.nx-prose h2 { margin-top: 2.5rem; }
.nx-prose blockquote { margin: 1.5rem 0; padding-left: 1.25rem; border-left: 3px solid var(--accent); color: #d9d3ca; }
.nx-prose li { margin-bottom: 0.5rem; }
.nx-prose li::marker { color: var(--accent); }
.nx-cover { width: 100%; max-height: 22rem; object-fit: cover; border-radius: 14px; margin: 0 0 1.5rem; }
.nx-entries { list-style: none; padding: 0; margin: 0 auto; max-width: 46rem; display: grid; gap: 0.75rem; }
.nx-entries li { padding: 1.25rem 1.5rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; }
.nx-entries a { font: 600 1.15rem/1.35 var(--sans); color: #fff; text-decoration: none; }
.nx-entries a:hover { color: var(--accent); }
.nx-entries p { margin: 0.35rem 0 0; color: #d3cdc4; }
.nx-center { text-align: center; }
.nx-center p { margin-left: auto; margin-right: auto; }
@media (max-width: 860px) {
  .nx-shelf, .nx-shelf.topics { grid-template-columns: 1fr; }
}

/* ---- People on an account (Notes/Plans/2026-11-09-people-on-an-account-plan.md) ---------------------------------------- */
.nx-people { display: grid; gap: 0.75rem; margin-top: 1rem; }   /* one person below the other */
a.nx-person-card { display: flex; flex-direction: column; gap: 0.35rem; color: var(--ink); text-decoration: none; }
a.nx-person-card strong { font: 600 1.125rem/1.35 var(--sans); color: #fff; }
a.nx-person-card:hover { border-color: var(--accent); }
a.nx-person-card:hover strong { color: var(--accent); }
.nx-person-section { margin-top: 2.5rem; max-width: 48rem; }
.nx-person-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 1px solid var(--rule); padding-bottom: 0.5rem; }
.nx-person-head h2 { margin: 0; font-size: 1.35rem; }
.nx-person-head a { font: 400 0.9375rem/1.4 var(--sans); }
.nx-person-section .nx-secondary { margin-top: 1rem; }
.nx-jump { margin: 0 0 1.5rem; font: 400 0.9375rem/1.4 var(--sans); }

/* Account: the thumbnails on the account page, the header's Account menu, and the two footers
   (Notes/Plans/2026-11-17-website-navigation-and-footer-plan.md). The menu opens on hover and on keyboard focus in CSS alone,
   so the public pages still need no script; on a phone it sits open inside the folded menu. */
.nx-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; margin: 1.5rem 0 2rem; }
.nx-tile { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px;
  color: var(--ink); text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.nx-tile:hover, .nx-tile:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
.nx-tile svg { width: 2rem; height: 2rem; margin-bottom: 0.4rem; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nx-tile strong { font: 600 1.0625rem/1.3 var(--sans); color: var(--ink); }
.nx-tile span { color: var(--muted); font: 400 0.9375rem/1.5 var(--sans); }
.nx-tile .nx-tile-live { margin-top: auto; padding-top: 0.75rem; border-top: 1px solid var(--rule); font: 600 0.875rem/1.4 var(--sans); font-style: normal; color: var(--accent); }
.nx-back { margin: 0 0 0.75rem; font: 400 0.9375rem/1.4 var(--sans); }
.nx-back a { color: var(--muted); text-decoration: none; }
.nx-back a:hover { color: var(--accent); }

.nx-drop { position: relative; }
.nx-header nav .nx-drop-trigger::after { content: '▾'; margin-left: 0.4rem; font-size: 0.8em; }
.nx-drop:hover .nx-drop-trigger, .nx-drop:focus-within .nx-drop-trigger { color: var(--accent); }
.nx-drop-list { display: none; position: absolute; right: -0.75rem; top: 100%; z-index: 20; min-width: 13rem; flex-direction: column; padding: 0.5rem;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; box-shadow: 0 12px 32px rgb(0 0 0 / 0.4); }
.nx-drop:hover .nx-drop-list, .nx-drop:focus-within .nx-drop-list { display: flex; }
.nx-header nav .nx-drop-list a, .nx-header nav .nx-drop-list button { padding: 0.55rem 0.75rem; border-radius: 8px; text-align: left; text-transform: none;
  letter-spacing: 0; font-weight: 400; font-size: 0.9375rem; }
.nx-header nav .nx-drop-list a:hover, .nx-header nav .nx-drop-list button:hover { background: rgb(255 255 255 / 0.06); }
.nx-drop-list form { margin: 0.35rem 0 0; padding-top: 0.35rem; border-top: 1px solid var(--rule); }
.nx-drop-list > button { margin-top: 0.35rem; border-top: 1px solid var(--rule) !important; border-radius: 0 0 8px 8px !important; }
.nx-drop-list form button { width: 100%; }

/* The public footer: a marketing footer with its own columns. */
.nx-footer-cols { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2rem; padding: 1rem 0 2.5rem; }
.nx-footer-brand p:not(.nx-footer-mark) { margin: 0 0 0.9rem; max-width: 18rem; color: var(--ink); font: 400 1rem/1.5 var(--serif); }
.nx-footer-brand .nx-footer-mark { margin-bottom: 1rem; }
.nx-footer-brand .nx-primary { display: inline-block; margin-top: 0.4rem; color: var(--act-ink); }   /* .nx-footer a would make it orange on orange */
.nx-footer-cols nav { display: block; margin: 0; }
.nx-footer-cols h2 { margin: 0 0 0.9rem; font: 600 0.75rem/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); }
.nx-footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.nx-footer-cols a { text-decoration: none; }
.nx-footer-cols a:hover { color: var(--accent); }
.nx-footer-fine { padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.nx-footer-fine p { max-width: 52rem; }

/* The app footer: one short row, then the disclaimer. */
.nx-footer-app { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 2rem; padding-bottom: 3rem; }
.nx-footer-app nav { margin: 0; gap: 1.5rem; }
.nx-footer-app nav a { text-decoration: none; }
.nx-footer-app nav a:hover { color: var(--accent); }
.nx-footer-app > p:last-child { flex-basis: 100%; margin-top: 0.5rem; }

@media (max-width: 960px) {
  .nx-footer-cols { grid-template-columns: repeat(2, 1fr); }
  .nx-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nx-drop-list { display: flex; position: static; min-width: 0; padding: 0 0 0 1rem; background: none; border: 0; box-shadow: none; }
  .nx-header nav .nx-drop-list a, .nx-header nav .nx-drop-list button { padding: 0.7rem 0; border-radius: 0; }
  .nx-header nav .nx-drop-trigger::after { content: none; }
}

/* The discount choice inside the "Your order" box (the Pay page). */
.nx-summary-discount { margin: 1rem 0 0; padding: 1rem 0 0.5rem; border-top: 1px solid var(--rule); }
.nx-summary-discount h3 { margin: 0 0 0.6rem; }
.nx-summary-discount select { width: 100%; }

/* The reading page on a phone (plan 2026-11-24-frontend-review-fixes, Phase 4): a picker instead of the 13-item list, and the report
   frame as tall as the screen with no card around it, so the report reads like a page rather than a small box inside a page. */
.nx-toc-pick { display: none; }
.nx-chat:empty { display: none; }   /* an empty chat log looked like an unlabelled input */
@media (max-width: 860px) {
  .nx-reading { gap: 1rem; }
  .nx-toc ol, .nx-toc > p { display: none; }
  .nx-toc-pick { display: grid; margin-top: 0; }
  .nx-toc a.nx-link, .nx-toc button.nx-link { display: inline-block; margin: 0 1.25rem 0 0; }
  .nx-reading .nx-article.paper { padding: 0.75rem 0.75rem 1.5rem; border-radius: 10px; box-shadow: none; }   /* the paper stays: its text colours are dark, set for the light paper */
  .nx-reading .nx-article.paper > .emblem { display: none; }
  .nx-report-frame { height: calc(100vh - 6rem); height: calc(100dvh - 6rem); min-height: 24rem; }
}
