/* Noetion components and layout. Load after tokens.css.
   Breakpoints are container queries on .nt-page, so components respond to the width they are given. */

/* ---------- Page ---------- */
.nt-page {
  container: page / inline-size;
  min-height: 100%;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.nt-page *, .nt-page *::before, .nt-page *::after { box-sizing: border-box; }
.nt-page img, .nt-page svg { display: block; max-width: 100%; }
.nt-page ::selection { background: var(--horizon); color: var(--night); }

[data-theme] { background-color: var(--surface); color: var(--text); }

.nt-skip {
  position: absolute; left: 16px; top: -100px; z-index: 50;
  padding: 10px 16px; border-radius: var(--radius-pill);
  background: var(--action); color: var(--on-action);
  font: 600 15px/1.3 var(--font-text); text-decoration: none;
}
.nt-skip:focus { top: 16px; }

/* ---------- Layout ---------- */
.nt-container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter-desktop));
  margin-inline: auto;
  padding-inline: var(--gutter-mobile);
}
.nt-section { padding-block: clamp(64px, 40px + 6cqi, 128px); }
.nt-section--flush-top { padding-top: 0; }
.nt-measure { max-width: var(--measure); }

.nt-intro { display: grid; gap: var(--space-5); margin-bottom: clamp(40px, 28px + 3cqi, 72px); }
.nt-intro > * { margin: 0; }
.nt-intro .nt-display-m, .nt-intro .nt-display-l { max-width: 22ch; }

.nt-split { display: grid; gap: var(--space-7); align-items: start; }
.nt-split > * { min-width: 0; }
.nt-cols { display: grid; gap: var(--space-6); margin: 0; padding: 0; list-style: none; }
.nt-col { border-top: 1px solid var(--border); padding-top: var(--space-5); }
.nt-col > * { margin: 0; }
.nt-col > * + * { margin-top: var(--space-3); }

@container page (min-width: 640px) {
  .nt-container { padding-inline: var(--gutter-tablet); }
  .nt-cols--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nt-cols--trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container page (min-width: 960px) {
  .nt-container { padding-inline: var(--gutter-desktop); }
  .nt-split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-9); }
  .nt-split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-8); }
  .nt-split--center { align-items: center; }
  .nt-cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--space-6); row-gap: var(--space-7); }
}

/* ---------- Type ---------- */
.nt-display-xl, .nt-display-l, .nt-display-m, .nt-term {
  font-family: var(--font-display);
  font-weight: 400;
  font-optical-sizing: auto;
  text-wrap: balance;
  margin: 0;
}
.nt-display-xl { font-size: clamp(2.75rem, 1.6rem + 4.6cqi, 5.5rem); line-height: 1.02; letter-spacing: -0.02em; }
.nt-display-l  { font-size: clamp(2.25rem, 1.5rem + 3cqi, 3.75rem); line-height: 1.08; letter-spacing: -0.015em; }
.nt-display-m  { font-size: clamp(1.75rem, 1.3rem + 1.8cqi, 2.5rem); line-height: 1.15; letter-spacing: -0.01em; }
.nt-term       { font-size: 1.5rem; line-height: 1.25; font-weight: 500; letter-spacing: -0.005em; }
.nt-body-l     { font-size: clamp(1.0625rem, 1rem + 0.35cqi, 1.1875rem); line-height: 1.6; text-wrap: pretty; }
.nt-small      { font-size: 0.875rem; line-height: 1.5; }
.nt-label      { font-size: 0.9375rem; line-height: 1.3; font-weight: 600; letter-spacing: 0.005em; }
.nt-muted      { color: var(--text-muted); }

/* ---------- Links and buttons ---------- */
.nt-link {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.nt-link:hover { text-decoration-thickness: 2px; }

.nt-button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0 var(--space-5);
  border: 1px solid transparent; border-radius: var(--radius-pill);
  font: 600 0.9375rem/1.2 var(--font-text); letter-spacing: 0.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.nt-button--primary { background: var(--action); color: var(--on-action); }
.nt-button--primary:hover { background: var(--action-hover); }
.nt-button--secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.nt-button--secondary:hover { border-color: var(--text); }
.nt-button--small { min-height: 40px; padding: 0 var(--space-4); font-size: 0.875rem; }
.nt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }

.nt-page a:focus-visible, .nt-page button:focus-visible, .nt-page summary:focus-visible {
  outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: var(--radius-sm);
}
.nt-page .nt-button:focus-visible { border-radius: var(--radius-pill); }

/* ---------- Chip ---------- */
.nt-chip {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  color: var(--text-muted); font-size: 0.875rem; line-height: 1.4;
}
.nt-chip__dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--horizon); box-shadow: var(--shadow-glow); }

/* ---------- Horizon line (the signature; hero and closing only) ---------- */
.nt-horizon {
  height: 1px; width: 100%;
  background: linear-gradient(90deg, rgba(45, 212, 191, 0) 0%, var(--horizon) 18%, var(--horizon) 82%, rgba(45, 212, 191, 0) 100%);
  box-shadow: var(--shadow-glow);
  transform-origin: 50% 50%;
  animation: nt-horizon-in 900ms cubic-bezier(0.2, 0.7, 0.2, 1) 200ms both;
}
@keyframes nt-horizon-in { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .nt-horizon { animation: none; } }

/* ---------- Header ---------- */
.nt-header { position: relative; z-index: 5; }
.nt-header__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); min-height: 80px; }
.nt-wordmark {
  font-family: var(--font-display); font-weight: 500; font-size: 1.75rem; line-height: 1;
  letter-spacing: -0.015em; color: var(--text); text-decoration: none;
}
.nt-brand { display: inline-flex; flex-direction: column; gap: 0; color: var(--text); text-decoration: none; }
.nt-brand__tagline { font-family: var(--font-display); font-style: italic; font-size: 0.9375rem; line-height: 1.1; margin-top: 1px; color: var(--text-muted); }
.nt-nav { display: flex; align-items: center; gap: var(--space-6); }
.nt-nav__links { display: none; gap: var(--space-6); margin: 0; padding: 0; list-style: none; }
.nt-nav__link { color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 0.9375rem; }
.nt-nav__link:hover, .nt-nav__link[aria-current="page"] { color: var(--text); }
.nt-nav__cta { display: none; }

.nt-menu { position: static; }
.nt-menu > summary {
  list-style: none; display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 44px; padding: 0 var(--space-4);
  border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
  color: var(--text); font: 600 0.9375rem/1 var(--font-text); cursor: pointer;
}
.nt-menu > summary::-webkit-details-marker { display: none; }
.nt-menu__icon { width: 16px; height: 16px; }
.nt-menu__panel {
  position: absolute; left: 0; right: 0; top: 100%;
  padding: var(--space-4) var(--gutter-mobile) var(--space-6);
  background: var(--night-raised); border-bottom: 1px solid var(--lake);
}
.nt-menu__panel ul { list-style: none; margin: 0 0 var(--space-5); padding: 0; }
.nt-menu__panel li a {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--lake);
  color: var(--starlight); text-decoration: none; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2;
}

@container page (min-width: 640px) {
  .nt-nav__cta { display: inline-flex; }
  .nt-menu__panel { padding-inline: var(--gutter-tablet); }
}
@container page (min-width: 960px) {
  .nt-nav__links { display: flex; }
  .nt-menu { display: none; }
}

/* ---------- Pricing plans ---------- */
.nt-plans { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); }
.nt-plan { display: flex; flex-direction: column; padding: var(--space-6); background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.nt-plan--featured { border-color: var(--horizon-deep); box-shadow: 0 0 0 1px var(--horizon-deep); }
.nt-plan > * { margin: 0; }
.nt-plan__name { font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; line-height: 1.1; letter-spacing: -0.01em; }
.nt-plan__tag { margin-top: var(--space-2) !important; color: var(--text-muted); }
.nt-plan__price { margin-top: var(--space-6) !important; font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 1.7rem + 1.2cqi, 2.5rem); line-height: 1; letter-spacing: -0.02em; }
.nt-plan__unit { margin-top: var(--space-2) !important; color: var(--text-muted); font-size: 0.9375rem; }
.nt-plan__lead { margin-top: var(--space-6) !important; font-weight: 600; }
.nt-plan__list { list-style: none; padding: 0; margin: var(--space-6) 0 var(--space-7) !important; display: grid; gap: var(--space-3); }
.nt-plan__lead + .nt-plan__list { margin-top: var(--space-3) !important; }
.nt-plan__list li { font-size: 0.9375rem; line-height: 1.45; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--space-3); }
.nt-plan__list svg { width: 20px; height: 20px; margin-top: 2px; color: var(--accent-text); }
.nt-plan .nt-button { margin-top: auto; align-self: flex-start; }
.nt-plans__note { margin: var(--space-6) 0 0; color: var(--text-muted); }
@container page (min-width: 960px) { .nt-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); } }

/* ---------- Header dropdowns (Product, Resources, Company) ---------- */
.nt-dd { position: relative; }
.nt-dd > summary {
  list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer; border-radius: var(--radius-sm);
}
.nt-dd > summary::-webkit-details-marker { display: none; }
.nt-dd > summary:hover, .nt-dd[open] > summary, .nt-dd > summary[data-current] { color: var(--text); }
.nt-dd > summary:focus-visible, .nt-nav__link:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 4px; }
.nt-nav__links > li > a.nt-nav__link { display: inline-flex; align-items: center; min-height: 44px; }
.nt-dd__chev { width: 12px; height: 12px; flex: none; transition: transform 0.15s ease; }
.nt-dd[open] .nt-dd__chev { transform: rotate(180deg); }
.nt-nav__link--tag { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; }
.nt-nav__link--tag .nt-soon { background: transparent; border-color: var(--border-strong); color: var(--text-muted); }
.nt-dd__panel {
  position: absolute; z-index: 60; top: calc(100% + 10px); left: -20px; width: 340px; padding: var(--space-4);
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-md); box-shadow: var(--shadow-mock);
  color: var(--text); display: grid; gap: var(--space-4);
}
.nt-dd__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* hover bridge */
.nt-dd__panel--wide { width: 640px; grid-template-columns: 1fr 1fr; }
.nt-dd__panel--three { width: 900px; grid-template-columns: repeat(3, minmax(0, 1fr)); } /* Privacy and security */
.nt-dd__panel--feature { width: 560px; grid-template-columns: 1fr 200px; }
.nt-dd__panel--end { left: auto; right: -20px; }
.nt-dd__group > ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nt-dd__heading { margin: 0 0 var(--space-2); padding-inline: var(--space-3); font: 600 0.75rem/1.2 var(--font-text); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.nt-dd__item { display: grid; gap: 2px; padding: 10px var(--space-3); border-radius: var(--radius-sm); text-decoration: none; color: var(--text); }
a.nt-dd__item:hover { background: var(--mist); }
a.nt-dd__item:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
.nt-dd__item[aria-current="page"] .nt-dd__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.nt-dd__item--soon { display: block; cursor: default; }
.nt-dd__item--soon .nt-dd__title { margin-right: var(--space-2); }
.nt-dd__item--soon .nt-dd__title, .nt-dd__item--soon .nt-dd__desc { opacity: 0.8; }
.nt-dd__item--soon .nt-dd__desc { display: block; margin-top: 2px; }
.nt-dd__title { font: 600 0.9375rem/1.3 var(--font-text); }
.nt-dd__desc { font: 400 0.875rem/1.4 var(--font-text); color: var(--text-muted); }
.nt-dd__feature { padding: var(--space-4); background: var(--mist); border-radius: var(--radius-md); align-self: stretch; display: flex; flex-direction: column; gap: var(--space-3); }
.nt-dd__feature .nt-dd__heading { margin: 0; padding: 0; }
.nt-dd__feature-link { font: 400 1.25rem/1.25 var(--font-display); color: var(--text); text-decoration: none; text-wrap: balance; }
.nt-dd__feature-link:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.nt-dd__feature-link:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 4px; }
.nt-hero:has(.nt-menu[open], .nt-dd[open]) { overflow: visible; } /* let open menus extend past a short hero */
.nt-menu__group { margin: 0 0 var(--space-4); }
.nt-menu__heading { margin: 0; padding-top: var(--space-4); font: 600 0.75rem/1.2 var(--font-text); letter-spacing: 0.06em; text-transform: uppercase; color: var(--starlight-muted); }
.nt-menu__group ul, .nt-menu__top { margin-bottom: 0 !important; }
.nt-menu__panel li a, .nt-menu__soon { font-size: 1.375rem; }
.nt-menu__soon { display: flex; align-items: center; gap: var(--space-3); padding: 14px 0; border-bottom: 1px solid var(--lake); color: var(--starlight-muted); font-family: var(--font-display); line-height: 1.2; }
.nt-menu__panel li a .nt-soon { margin-left: var(--space-2); vertical-align: middle; font-family: var(--font-text); background: transparent; border-color: var(--border-strong); color: var(--starlight-muted); }
.nt-menu__soon .nt-soon { background: transparent; border-color: var(--border-strong); color: var(--starlight-muted); font-family: var(--font-text); }
.nt-menu__panel li a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
@container page (min-width: 960px) and (max-width: 1099px) { .nt-nav { gap: var(--space-5); } .nt-nav__links { gap: var(--space-5); } .nt-dd__panel--wide { width: 560px; } }

/* ---------- Benchmark: stats and target ---------- */
.nt-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-5); margin: 0; padding: 0; list-style: none; }
.nt-stat { border-top: 1px solid var(--border); padding-top: var(--space-4); }
.nt-stat > * { margin: 0; }
.nt-stat__figure { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.25rem, 1.5rem + 3cqi, 3.75rem); line-height: 1; letter-spacing: -0.02em; color: var(--text); }
.nt-stat__label { margin-top: var(--space-2); font-size: 0.9375rem; color: var(--text-muted); }
.nt-stats + .nt-cols { margin-top: var(--space-8); }
.nt-target {
  display: grid; gap: var(--space-5); padding: var(--space-6); background: var(--surface-raised);
  border: 1px dashed var(--border-strong); border-radius: var(--radius-lg);
}
.nt-target > *, .nt-target > div > * { margin: 0; }
.nt-target > div:first-child { display: grid; gap: var(--space-3); justify-items: start; }
.nt-target__tag { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 0.8125rem; font-weight: 600; color: var(--accent-text); }
.nt-target__tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; }
.nt-target__figure { font-family: var(--font-display); font-weight: 400; font-size: clamp(4.5rem, 3rem + 7cqi, 8rem); line-height: 0.9; letter-spacing: -0.03em; color: var(--text); }
.nt-target__unit { margin-top: var(--space-3); color: var(--text-muted); font-size: 0.9375rem; }
.nt-target__body { display: grid; gap: var(--space-3); align-content: center; }
.nt-target__body > * { margin: 0; }
@container page (min-width: 960px) {
  .nt-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nt-target { grid-template-columns: auto minmax(0, 1fr); gap: var(--space-9); padding: var(--space-8); align-items: center; }
}
@container page (min-width: 640px) { .nt-cols--quad { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container page (min-width: 960px) { .nt-cols--quad { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Language selector ---------- */
.nt-lang { display: none; position: relative; }
.nt-lang > summary {
  list-style: none; display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px;
  color: var(--text); font: 500 0.9375rem/1 var(--font-text); cursor: pointer; border-radius: var(--radius-sm);
}
.nt-lang > summary::-webkit-details-marker { display: none; }
.nt-lang__pin { width: 22px; height: 22px; flex: none; }
.nt-lang__chev { width: 12px; height: 12px; flex: none; transition: transform 0.15s ease; }
.nt-lang[open] .nt-lang__chev { transform: rotate(180deg); }
.nt-lang > summary:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 4px; }
.nt-lang__list {
  position: absolute; z-index: 60; top: calc(100% + 8px); right: -16px; min-width: 190px; margin: 0; padding: var(--space-2) 0; list-style: none;
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-md); box-shadow: var(--shadow-mock);
}
.nt-lang__list a {
  display: block; padding: 10px var(--space-5); color: var(--ink-muted); text-decoration: none; font: 500 1.0625rem/1.3 var(--font-text);
}
.nt-lang__list a:hover { background: var(--mist); color: var(--night); }
.nt-lang__list a[aria-current="true"] { color: var(--night); }
.nt-lang__list a:focus-visible { outline: 2px solid var(--horizon-deep); outline-offset: -2px; }
.nt-lang-inline { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin: 0 0 var(--space-5); padding-top: var(--space-1); }
.nt-lang-inline a { color: var(--starlight-muted); text-decoration: none; font: 500 0.9375rem/1.2 var(--font-text); padding: 6px 0; }
.nt-lang-inline a[aria-current="true"] { color: var(--starlight); text-decoration: underline; text-underline-offset: 4px; }
@container page (min-width: 640px) {
  .nt-lang { display: block; }
  .nt-lang-inline { display: none; }
}

/* ---------- Hero ---------- */
.nt-hero {
  background-color: var(--paper);
  background-image:
    radial-gradient(60rem 28rem at 88% -8%, rgba(45, 212, 191, 0.20), rgba(45, 212, 191, 0) 70%),
    radial-gradient(48rem 26rem at 4% 8%, rgba(125, 211, 252, 0.20), rgba(125, 211, 252, 0) 70%);
  overflow: hidden;
}
.nt-hero__sky { background: transparent; }
.nt-hero__statement { padding-block: clamp(56px, 32px + 7cqi, 136px) clamp(36px, 24px + 3cqi, 56px); }
.nt-hero__statement h1 { max-width: 16ch; }
.nt-hero__lake { background: transparent; padding-block: clamp(20px, 14px + 2cqi, 32px) clamp(64px, 40px + 6cqi, 120px); }
.nt-hero__reflection {
  margin: 0; max-width: 24ch; text-wrap: balance;
  font-family: var(--font-display); font-style: normal; font-weight: 400;
  font-size: clamp(1.75rem, 1.2rem + 2.6cqi, 3.25rem); line-height: 1.1; letter-spacing: -0.03em;
  color: var(--text-muted);
}
.nt-hero__lede { margin: var(--space-6) 0 0; max-width: var(--measure); color: var(--text); }
.nt-hero .nt-actions { margin-top: var(--space-6); }
.nt-hero .nt-chip { margin-top: var(--space-7); }

/* ---------- Steps (a real sequence: connect, ask, act) ---------- */
.nt-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.nt-step { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: var(--space-5); padding-bottom: var(--space-7); }
.nt-step:last-child { padding-bottom: 0; }
.nt-step::before {
  content: ""; position: absolute; left: 19.5px; top: 44px; bottom: 4px; width: 1px; background: var(--border-strong);
}
.nt-step:last-child::before { display: none; }
.nt-step__number {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--border-strong); background: var(--surface);
  font-family: var(--font-display); font-size: 1.25rem; line-height: 1; color: var(--text);
}
.nt-step__body > * { margin: 0; }
.nt-step__body h3 { margin-top: 4px; }
.nt-step__body p { margin-top: var(--space-2); color: var(--text-muted); }

/* ---------- Product mock ---------- */
.nt-mock {
  background: var(--paper); color: var(--night);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-mock);
  overflow: hidden; font-size: 0.9375rem; line-height: 1.55;
}
.nt-mock__bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: 14px var(--space-5); border-bottom: 1px solid var(--rule);
}
.nt-mock__brand { display: flex; align-items: baseline; gap: var(--space-3); }
.nt-mock__brand .nt-wordmark { font-size: 1.25rem; color: var(--night); }
.nt-mock__brand > span:not(.nt-wordmark) { display: none; color: var(--ink-muted); font-size: 0.875rem; }
@container page (min-width: 640px) { .nt-mock__brand > span:not(.nt-wordmark) { display: inline; } }
.nt-mock__scope { color: var(--ink-muted); font-size: 0.8125rem; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.nt-mock__scope svg { width: 14px; height: 14px; }
.nt-mock__body { display: flex; flex-direction: column; gap: var(--space-5); padding: var(--space-5); }
.nt-mock__question {
  align-self: flex-end; max-width: 88%;
  margin: 0; padding: 12px 16px;
  background: var(--mist); border-radius: 14px 14px 4px 14px;
}
.nt-mock__answer > * { margin: 0; }
.nt-mock__answer > * + * { margin-top: var(--space-3); }
.nt-mock__answer ul { padding: 0; list-style: none; display: grid; gap: var(--space-2); }
.nt-mock__answer ul > li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: var(--space-2); }
.nt-mock__answer ul > li::before { content: ""; width: 5px; height: 5px; margin-top: 0.62em; border-radius: 50%; background: var(--ink-muted); }
.nt-cite {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; margin-left: 2px;
  border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--mist);
  font-size: 0.75rem; font-weight: 600; line-height: 1; color: var(--ink-muted); vertical-align: 1px;
}
.nt-status { font-weight: 600; white-space: nowrap; }
.nt-status--late { color: var(--danger); }
.nt-status--done { color: var(--success); }
.nt-mock__sources { margin: var(--space-4) 0 0 !important; padding: var(--space-4) 0 0; border-top: 1px solid var(--rule); list-style: none; display: grid; gap: 6px; font-size: 0.8125rem; }
.nt-mock__sources li { display: flex; align-items: baseline; gap: var(--space-2); min-width: 0; }
.nt-mock__sources span:last-child { color: var(--ink-muted); }
.nt-mock__action { border: 1px solid var(--rule); border-radius: var(--radius-md); background: var(--mist); padding: var(--space-4); }
.nt-mock__action > * { margin: 0; }
.nt-mock__action h4 { font-size: 0.875rem; font-weight: 600; color: var(--ink-muted); }
.nt-mock__action p { margin-top: 6px; }
.nt-mock__action .nt-actions { margin-top: var(--space-4); gap: var(--space-2); }
.nt-mock__action .nt-button--secondary { color: var(--night); border-color: #7a8396; }
.nt-mock__note { margin-top: var(--space-3) !important; font-size: 0.8125rem; color: var(--ink-muted); }

/* ---------- Spend view (cost control mock) ---------- */
.nt-budget__total > * { margin: 0; }
.nt-budget__figure { font-family: var(--font-display); font-size: 2.25rem; line-height: 1.1; letter-spacing: -0.01em; }
.nt-budget__figure span { font-family: var(--font-text); font-size: 0.9375rem; color: var(--ink-muted); letter-spacing: 0; }
.nt-budget__note { margin-top: 4px !important; font-size: 0.8125rem; color: var(--ink-muted); }
.nt-budget { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.nt-budget__row { display: flex; justify-content: space-between; gap: var(--space-3); font-size: 0.875rem; }
.nt-budget__team { font-weight: 600; }
.nt-budget__amount { color: var(--ink-muted); white-space: nowrap; }
.nt-budget__track { height: 8px; margin-top: 6px; border-radius: var(--radius-pill); background: var(--mist); overflow: hidden; }
.nt-budget__fill { display: block; height: 100%; border-radius: inherit; background: var(--night); }
.nt-budget__fill--warn { background: var(--horizon-deep); }
.nt-budget__fill--stop { background: var(--danger); }
.nt-budget__status { margin: 6px 0 0; font-size: 0.8125rem; color: var(--ink-muted); }
.nt-budget__status--warn { color: var(--horizon-deep); font-weight: 600; }
.nt-budget__status--stop { color: var(--danger); font-weight: 600; }

.nt-cost-case { border-top: 1px solid var(--border); padding-top: var(--space-7); }
.nt-cost-case + .nt-cost-case { margin-top: var(--space-8); }
.nt-cost-lede { margin: var(--space-3) 0 var(--space-5); max-width: var(--measure); }
.nt-mini > * { margin: 0; }
.nt-mini__title { font-size: 0.8125rem; font-weight: 600; color: var(--ink-muted); }
.nt-mini__bars { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; align-items: end; height: 84px; margin-top: var(--space-3) !important; border-bottom: 1px solid var(--rule); }
.nt-mini__bars span { position: relative; display: block; border-radius: 4px 4px 0 0; background: var(--night); }
.nt-mini__bars em { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); font-style: normal; font-size: 0.75rem; font-weight: 600; color: var(--ink-muted); }
.nt-mini__bars--cost { height: 28px; }
.nt-mini__bars--cost span { background: var(--horizon-deep); }
.nt-mini__months { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-top: 6px !important; font-size: 0.75rem; color: var(--ink-muted); text-align: center; }
.nt-mini__caption { margin-top: var(--space-2) !important; font-size: 0.8125rem; font-weight: 600; color: var(--horizon-deep); }
.nt-mini + .nt-mini { margin-top: var(--space-2); }

/* ---------- Constellation ---------- */
.nt-constellation { position: relative; width: 100%; aspect-ratio: 1 / 1; max-width: 640px; margin-inline: auto; }
.nt-constellation__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.nt-constellation__lines line { stroke: var(--glacier); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0.55; }
.nt-constellation__lines line.nt-faint { opacity: 0.22; stroke-dasharray: 2 4; }
.nt-star { position: absolute; width: 0; height: 0; font-size: 0.875rem; line-height: 1.2; color: var(--text-muted); }
.nt-star::before {
  content: ""; position: absolute; left: -3.5px; top: -3.5px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--starlight); box-shadow: 0 0 10px 2px rgba(232, 237, 245, 0.45);
}
.nt-star > span { position: absolute; left: 0; top: 12px; transform: translateX(-50%); white-space: nowrap; }
.nt-star--above > span { top: auto; bottom: 12px; }
.nt-star--core {
  width: auto; height: auto; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 10px; padding: 12px 20px;
  border: 1px solid var(--lake); border-radius: var(--radius-pill); background: var(--night-raised);
  color: var(--starlight);
}
.nt-star--core::before { position: static; background: var(--horizon); box-shadow: var(--shadow-glow); }
.nt-star--core > span { position: static; transform: none; }
.nt-star--core .nt-wordmark { font-size: 1.375rem; }
@container page (min-width: 960px) {
  .nt-constellation { aspect-ratio: 1 / 0.92; }
}

/* ---------- Integrations ---------- */
.nt-soon {
  flex: none; padding: 3px 8px; border: 1px solid var(--border); border-radius: var(--radius-pill);
  background: var(--surface); color: var(--text-muted);
  font-size: 0.75rem; font-weight: 500; line-height: 1.2; white-space: nowrap;
}
.nt-logo-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: var(--space-3); }
.nt-logo-strip li { aspect-ratio: 1; display: grid; place-items: center; background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-md); }
.nt-logo-strip img { width: 28px; height: 28px; }
.nt-int-jump { display: flex; gap: var(--space-2); margin: 0 calc(var(--gutter-mobile) * -1) var(--space-6); padding: 0 var(--gutter-mobile) 4px; overflow-x: auto; scrollbar-width: none; }
.nt-int-jump::-webkit-scrollbar { display: none; }
.nt-int-jump a { flex: none; }
@container page (min-width: 640px) { .nt-int-jump { flex-wrap: wrap; margin-inline: 0; padding: 0; overflow: visible; } }
.nt-int-jump a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface-raised);
  color: var(--text); font-size: 0.875rem; font-weight: 500; text-decoration: none;
}
.nt-int-jump a:hover { border-color: var(--border-strong); }
.nt-int-group { padding-top: var(--space-7); }
.nt-int-group > h2 { margin-bottom: var(--space-4); }
.nt-int-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.nt-int-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-4); background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-md);
}
.nt-int-card__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--mist); }
.nt-int-card__icon img { width: 24px; height: 24px; }
.nt-int-card__name { font-weight: 600; line-height: 1.3; }
.nt-int-card .nt-soon { margin-top: auto; }
@container page (min-width: 640px) { .nt-int-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container page (min-width: 960px) { .nt-int-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@container page (min-width: 1200px) { .nt-int-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ---------- Definition rows (principles, the name) ---------- */
.nt-deflist { margin: 0; }
.nt-defrow { display: grid; gap: var(--space-3); padding-block: var(--space-6); border-top: 1px solid var(--border); }
.nt-defrow:last-child { border-bottom: 1px solid var(--border); }
.nt-defrow dt, .nt-defrow dd { margin: 0; }
.nt-defrow dd { color: var(--text-muted); max-width: var(--measure); }
@container page (min-width: 960px) {
  .nt-defrow { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-9); padding-block: var(--space-7); }
}

/* ---------- Panel, options, checklist (security) ---------- */
.nt-panel { background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.nt-options { list-style: none; margin: 0; padding: 0; }
.nt-option { padding: var(--space-5); display: grid; gap: 6px; }
.nt-option + .nt-option { border-top: 1px solid var(--border); }
.nt-option > * { margin: 0; }
.nt-option h4 { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; line-height: 1.3; }
.nt-option p { color: var(--text-muted); }
.nt-checklist { list-style: none; margin: 0; padding: 0; display: grid; }
.nt-checklist li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--space-4); padding-block: var(--space-4); border-top: 1px solid var(--border); }
.nt-checklist li:last-child { border-bottom: 1px solid var(--border); }
.nt-checklist svg { width: 20px; height: 20px; margin-top: 3px; color: var(--accent-text); }
.nt-checklist strong { display: block; font-weight: 600; }
.nt-checklist span { color: var(--text-muted); }
.nt-sublabel { margin: 0 0 var(--space-4); font-weight: 600; color: var(--text); }

/* ---------- Security detail ---------- */
.nt-sec-block { margin-bottom: clamp(56px, 40px + 4cqi, 96px); }
.nt-sec-block > .nt-term, .nt-sec-subhead { margin-bottom: var(--space-5); }
.nt-compare { display: grid; gap: var(--space-4); }
.nt-compare__col { padding: var(--space-5); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.nt-compare__col > * { margin: 0; }
.nt-compare__col h4 { font-size: 0.9375rem; font-weight: 600; color: var(--text-muted); }
.nt-compare__col p { margin-top: var(--space-2); color: var(--text-muted); }
.nt-compare__col--ours { background: var(--surface-raised); }
.nt-compare__col--ours h4 { color: var(--accent-text); }
.nt-compare__col--ours p { color: var(--text); }
.nt-compare__col ul { margin-top: var(--space-4); padding: 0; list-style: none; display: grid; gap: var(--space-3); }
.nt-compare__col li { padding-top: var(--space-3); border-top: 1px solid var(--border); color: var(--text-muted); }
.nt-compare__col li strong { color: var(--text); font-weight: 600; }
.nt-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); }
.nt-flow li { border-top: 1px solid var(--border); padding-top: var(--space-4); }
.nt-flow li > * { margin: 0; }
.nt-flow__n {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border-strong); font-family: var(--font-display); font-size: 1.0625rem; line-height: 1;
}
.nt-flow h4 { margin-top: var(--space-3); font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; line-height: 1.3; }
.nt-flow p { margin-top: var(--space-2); color: var(--text-muted); }
.nt-cases { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.nt-case { display: flex; flex-direction: column; padding: var(--space-5); background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.nt-case > * { margin: 0; }
.nt-case__who { font-size: 0.875rem; font-weight: 600; color: var(--text-muted); }
.nt-case__ask { margin-top: var(--space-3); font-family: var(--font-display); font-style: italic; font-size: 1.3125rem; line-height: 1.35; color: var(--text); }
.nt-verdict {
  align-self: flex-start; display: inline-flex; align-items: center; gap: var(--space-2);
  margin-top: var(--space-4) !important; padding: 5px 12px 5px 10px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
  font-size: 0.875rem; font-weight: 600; color: var(--text);
}
.nt-verdict svg { width: 14px; height: 14px; color: var(--accent-text); }
.nt-case__why { margin-top: var(--space-3) !important; color: var(--text-muted); }
.nt-case__rule { margin-top: auto !important; padding-top: var(--space-4); font-size: 0.875rem; color: var(--text-muted); }
.nt-case__rule strong { margin-right: var(--space-2); color: var(--accent-text); font-weight: 600; }
@container page (min-width: 640px) {
  .nt-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nt-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container page (min-width: 960px) {
  .nt-compare { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .nt-flow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Blog ---------- */
.nt-posts { list-style: none; margin: 0; padding: 0; }
.nt-post-item { display: grid; gap: var(--space-3); padding-block: var(--space-7); border-top: 1px solid var(--border); }
.nt-post-item:last-child { border-bottom: 1px solid var(--border); }
.nt-post-item > * { margin: 0; }
.nt-post-meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); font-size: 0.875rem; color: var(--text-muted); }
.nt-post-item h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.75rem, 1.3rem + 1.8cqi, 2.5rem); line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
.nt-post-item h2 a { color: var(--text); text-decoration: none; }
.nt-post-item h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.nt-post-item p.nt-post-dek { max-width: var(--measure); color: var(--text-muted); }
@container page (min-width: 960px) {
  .nt-post-item { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); column-gap: var(--space-9); }
  .nt-post-item .nt-post-meta { grid-row: 1 / span 4; flex-direction: column; gap: var(--space-1); padding-top: 10px; }
}

.nt-crumbs { margin: 0 0 var(--space-5); font-size: 0.9375rem; }
.nt-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.nt-crumbs li { display: inline-flex; align-items: center; gap: var(--space-2); min-width: 0; }
.nt-crumbs li + li::before { content: ""; width: 6px; height: 6px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: 0.6; margin-right: var(--space-1); }
.nt-crumbs a { color: var(--text-muted); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; }
.nt-crumbs a:hover { color: var(--text); text-decoration-color: currentColor; }
.nt-crumbs [aria-current] { color: var(--text); font-weight: 500; }
.nt-post-header .nt-post-meta { margin-top: var(--space-5); }
.nt-prose { max-width: var(--measure); font-size: clamp(1.0625rem, 1rem + 0.35cqi, 1.1875rem); line-height: 1.7; }
.nt-prose > * { margin: 0; }
.nt-prose > * + * { margin-top: 1.1em; }
.nt-prose h2 { margin-top: 2em; font-family: var(--font-display); font-weight: 500; font-size: 1.625rem; line-height: 1.25; letter-spacing: -0.005em; }
.nt-prose h2 + * { margin-top: 0.6em; }
.nt-prose ul, .nt-prose ol { padding-left: 1.25em; }
.nt-prose li + li { margin-top: 0.5em; }
.nt-prose li::marker { color: var(--text-muted); }
.nt-prose a { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.nt-prose blockquote { padding-left: var(--space-5); border-left: 1px solid var(--border-strong); font-family: var(--font-display); font-style: italic; font-size: 1.375rem; line-height: 1.45; color: var(--text); }
.nt-prose .nt-prose__lead { font-size: 1.25em; line-height: 1.55; color: var(--text); }
.nt-post-foot { max-width: var(--measure); margin-top: var(--space-8); padding-top: var(--space-5); border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); color: var(--text-muted); }
.nt-post-foot > * { margin: 0; }

/* ---------- FAQ ---------- */
.nt-faqs { border-bottom: 1px solid var(--border); }
.nt-faq { border-top: 1px solid var(--border); }
.nt-faq > summary {
  list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-5);
  padding-block: var(--space-5); cursor: pointer;
  font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; line-height: 1.35; color: var(--text);
}
.nt-faq > summary::-webkit-details-marker { display: none; }
.nt-faq > summary::after { content: "+"; flex: none; font-family: var(--font-text); font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--accent-text); }
.nt-faq[open] > summary::after { content: "\2212"; }
.nt-faq > p { margin: 0; padding-bottom: var(--space-5); max-width: var(--measure); color: var(--text-muted); }

/* ---------- The name ---------- */
.nt-word { display: grid; gap: var(--space-5); align-items: center; }
.nt-word__headword { font-family: var(--font-display); font-weight: 300; font-size: clamp(3.5rem, 2rem + 7cqi, 7.5rem); line-height: 0.95; letter-spacing: -0.03em; margin: 0; }
.nt-word__pos { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--text-muted); margin: 0; }
.nt-word__senses { margin: 0; padding-left: 1.4em; display: grid; gap: var(--space-2); }
.nt-word__senses li::marker { font-family: var(--font-display); color: var(--text-muted); }
.nt-word__etymology { margin: 0; }
.nt-word__etymology em { font-weight: 600; } /* noēsis and -tion */
/* Two columns: the senses sit beside the headword (centred on it), the etymology sits under the headword. */
@container page (min-width: 960px) {
  .nt-word > .nt-word__senses { grid-column: 2; grid-row: 1; position: relative; top: 10px; } /* optical nudge: 10px below true centre looks centred beside the headword */
  .nt-word > .nt-word__etymology { grid-column: 1; }
}

/* ---------- Closing ---------- */
.nt-closing { padding-block: 0; }
.nt-closing__inner { padding-block: clamp(72px, 48px + 6cqi, 136px); }
.nt-closing .nt-body-l { margin: var(--space-5) 0 0; max-width: var(--measure); color: var(--text-muted); }
.nt-closing .nt-actions { margin-top: var(--space-6); }
.nt-closing__alt { margin: var(--space-5) 0 0; color: var(--text-muted); }

/* ---------- Footer ---------- */
.nt-footer { border-top: 1px solid var(--border); padding-block: var(--space-7); }
.nt-footer__grid { display: grid; gap: var(--space-6); }
.nt-footer__grid > * { margin: 0; }
.nt-footer__tagline { margin: var(--space-2) 0 0; color: var(--text-muted); font-family: var(--font-display); font-style: italic; font-size: 1.125rem; }
.nt-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); }
.nt-footer__links a { color: var(--text-muted); text-decoration: none; }
.nt-footer__links a:hover { color: var(--text); }
.nt-footer__legal { color: var(--text-muted); }
@container page (min-width: 960px) {
  .nt-footer__grid { grid-template-columns: max-content minmax(0, 1fr); gap: var(--space-6) var(--space-8); align-items: end; }
  .nt-footer__links { justify-content: flex-end; }
  .nt-footer__legal { grid-column: 1 / -1; padding-top: var(--space-5); border-top: 1px solid var(--border); }
}

/* ---------- Consent: banner, preferences, footer link ----------
   These sit outside .nt-page (appended to <body>), so they use media queries, not container queries. */
.nt-consent, .nt-prefs { box-sizing: border-box; font-family: var(--font-text); color: var(--text); line-height: 1.55; -webkit-font-smoothing: antialiased; }
.nt-consent *, .nt-prefs * { box-sizing: border-box; }
.nt-consent {
  position: fixed; z-index: 100; left: 16px; right: 16px; bottom: 16px;
  max-width: 360px; padding: var(--space-4);
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-lg); box-shadow: var(--shadow-mock);
}
.nt-consent > * { margin: 0; }
.nt-consent__title { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.01em; }
.nt-consent__text { margin-top: var(--space-2) !important; font-size: 0.8125rem; line-height: 1.5; color: var(--ink-muted); }
.nt-consent__links { margin-top: var(--space-2) !important; font-size: 0.8125rem; }
.nt-consent__actions { margin-top: var(--space-4) !important; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.nt-consent__actions .nt-button { min-height: 38px; padding: 0 var(--space-3); font-size: 0.875rem; }
.nt-consent__actions .nt-button, .nt-prefs__actions .nt-button { width: 100%; }
.nt-consent__manage {
  display: block; margin: var(--space-2) auto 0; padding: 6px 4px; border: 0; background: none; cursor: pointer;
  font: 500 0.8125rem/1.3 var(--font-text); color: var(--ink-muted); text-decoration: underline; text-underline-offset: 3px;
}
.nt-consent__manage:hover { color: var(--night); }
@media (min-width: 640px) { .nt-consent { left: 24px; right: auto; bottom: 24px; } }

.nt-prefs {
  width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow: auto;
  padding: var(--space-6) var(--space-5) var(--space-5); border: 0; border-radius: var(--radius-lg);
  background: var(--paper); box-shadow: var(--shadow-mock);
}
.nt-prefs::backdrop { background: rgba(13, 19, 34, 0.6); }
.nt-prefs__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-4); }
.nt-prefs__title { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 1.75rem; line-height: 1.15; letter-spacing: -0.01em; }
.nt-prefs__close {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: -8px -8px 0 0;
  border: 1px solid transparent; border-radius: var(--radius-md); background: none; color: var(--ink-muted); cursor: pointer;
}
.nt-prefs__close:hover { color: var(--night); border-color: var(--rule); }
.nt-prefs__close svg { width: 16px; height: 16px; }
.nt-prefs__intro { margin: var(--space-3) 0 var(--space-5); font-size: 0.9375rem; color: var(--ink-muted); }
.nt-prefs__list { border-bottom: 1px solid var(--rule); }
.nt-pref { padding-block: var(--space-4); border-top: 1px solid var(--rule); }
.nt-pref__head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); }
.nt-pref__title { font-weight: 600; font-size: 1.0625rem; cursor: pointer; }
.nt-pref__text { margin: var(--space-2) 0 0; font-size: 0.9375rem; color: var(--ink-muted); max-width: 52ch; }
.nt-prefs__actions { margin-top: var(--space-5); display: grid; gap: var(--space-3); }
.nt-prefs__links { margin: var(--space-4) 0 0; font-size: 0.9375rem; }
@media (min-width: 560px) { .nt-prefs { padding: var(--space-7) var(--space-6) var(--space-6); } .nt-prefs__actions { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.nt-switch {
  appearance: none; -webkit-appearance: none; flex: none; position: relative; margin: 0;
  width: 46px; height: 28px; border-radius: var(--radius-pill); cursor: pointer;
  background: #8a93a6; transition: background-color 150ms ease;
}
.nt-switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--paper); box-shadow: 0 1px 2px rgba(13, 19, 34, 0.3); transition: transform 150ms ease;
}
.nt-switch:checked { background: var(--night); }
.nt-switch:checked::after { transform: translateX(18px); }
.nt-switch:disabled { cursor: not-allowed; opacity: 0.55; }
.nt-switch:focus-visible, .nt-prefs__close:focus-visible, .nt-consent__manage:focus-visible, .nt-consent .nt-button:focus-visible, .nt-prefs .nt-button:focus-visible, .nt-consent a:focus-visible, .nt-prefs a:focus-visible {
  outline: 2px solid var(--horizon-deep); outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) { .nt-switch, .nt-switch::after { transition: none; } }

.nt-choices {
  display: inline-flex; align-items: center; gap: var(--space-2); padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: var(--text-muted); text-align: left;
}
.nt-choices:hover { color: var(--text); }
.nt-choices svg { width: 30px; height: 14px; flex: none; }

/* ---------- Click-to-play video ---------- */
.nt-video { margin: 0; }
.nt-video__stage { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--night); box-shadow: var(--shadow-mock); }
.nt-video__play { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-family: var(--font-text); color: var(--starlight); }
.nt-video__play:disabled { cursor: default; }
.nt-video__poster { position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  background: radial-gradient(40rem 22rem at 80% 0%, rgba(45, 212, 191, 0.35), rgba(45, 212, 191, 0) 70%), radial-gradient(36rem 22rem at 0% 100%, rgba(125, 211, 252, 0.22), rgba(125, 211, 252, 0) 70%), #0a0f1c; }
.nt-video__play::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 19, 34, 0.1) 40%, rgba(13, 19, 34, 0.75) 100%); }
.nt-video__icon {
  position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%;
  background: var(--action); color: var(--on-action); box-shadow: 0 8px 24px rgba(13, 19, 34, 0.4);
  transition: transform 150ms ease, background-color 150ms ease;
}
.nt-video__icon svg { width: 26px; height: 26px; margin-left: 4px; }
.nt-video__play:hover .nt-video__icon { background: var(--action-hover); transform: translate(-50%, -50%) scale(1.05); }
.nt-video__play:focus-visible { outline: 3px solid var(--horizon); outline-offset: -3px; }
.nt-video__label { position: absolute; z-index: 1; left: var(--space-5); right: var(--space-5); bottom: var(--space-4); display: flex; justify-content: space-between; gap: var(--space-4); text-align: left; font-weight: 600; }
.nt-video__label span:last-child { font-weight: 400; color: var(--starlight-muted); }
.nt-video__soon { display: none; }
.nt-video.is-pending .nt-video__icon { display: none; }
.nt-video.is-pending .nt-video__soon {
  position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 8px 16px; border: 1px solid var(--lake); border-radius: var(--radius-pill); background: rgba(13, 19, 34, 0.7);
  font-size: 0.9375rem; white-space: nowrap; color: var(--starlight);
}
.nt-video.is-pending .nt-video__soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--horizon); box-shadow: var(--shadow-glow); }
.nt-video__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.nt-video__note { margin-top: var(--space-3); font-size: 0.875rem; color: var(--text-muted); }
.nt-video__note:empty { display: none; }
.nt-video__choices { padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .nt-video__icon { transition: none; } }

/* ---------- Tables in prose ---------- */
.nt-table-wrap { overflow-x: auto; }
.nt-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; }
.nt-table th, .nt-table td { padding: var(--space-3) var(--space-3) var(--space-3) 0; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.nt-table th { font-weight: 600; color: var(--text); border-bottom-color: var(--border-strong); }
.nt-table td { color: var(--text-muted); }
.nt-table td:first-child { color: var(--text); white-space: nowrap; }
/* Phones: each row becomes a small card of label/value pairs (labels come from data-label on each cell). */
@container page (max-width: 639px) {
  .nt-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .nt-table, .nt-table tbody, .nt-table tr, .nt-table td { display: block; }
  .nt-table tr { padding: var(--space-3) 0; border-bottom: 1px solid var(--border); }
  .nt-table td { display: grid; grid-template-columns: 6.5rem 1fr; gap: var(--space-3); padding: var(--space-1) 0; border: 0; }
  .nt-table td:first-child { white-space: normal; font-weight: 600; }
  .nt-table td::before { content: attr(data-label); font-weight: 400; color: var(--text-muted); overflow-wrap: break-word; hyphens: auto; } /* long German labels */
}

/* ---------- Footer social links ---------- */
.nt-social { display: flex; gap: var(--space-2); list-style: none; margin: var(--space-4) 0 0 -12px; padding: 0; }
.nt-social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--text-muted); transition: color 0.15s ease, background-color 0.15s ease; }
.nt-social a:hover { color: var(--text); background: var(--night-raised); }
.nt-social a:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.nt-social svg { width: 20px; height: 20px; }
.nt-ask { margin-top: var(--space-5); }
.nt-ask__label { margin: 0; color: var(--text-muted); font-size: 0.9375rem; }
.nt-ask .nt-social { margin-top: var(--space-2); }

/* ---------- Footer: brand + link columns + legal bar ---------- */
.nt-footer__top { display: grid; gap: var(--space-7); }
.nt-footer__brand > * { margin-block: 0; }
.nt-footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-5); }
.nt-footer__heading { margin: 0 0 var(--space-3); color: var(--text); font: 600 0.75rem/1.2 var(--font-text); letter-spacing: 0.06em; text-transform: uppercase; }
.nt-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
/* A heading that wraps ("Privacy and security") must not push its links below the other columns' links */
@supports (grid-template-rows: subgrid) {
  .nt-footer__col { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; }
  .nt-footer__col ul { align-content: start; }
}
.nt-footer__col a { color: var(--text-muted); text-decoration: none; }
.nt-footer__col a:hover { color: var(--text); }
.nt-footer__col a:focus-visible, .nt-footer__legal-links a:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; border-radius: 2px; }
.nt-footer__soon { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px var(--space-2); color: var(--text-muted); }
.nt-footer__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-6); margin-top: var(--space-7); }
.nt-footer__bar::before { content: ""; flex-basis: 100%; border-top: 1px solid var(--border); margin-bottom: var(--space-2); }
.nt-footer__bar .nt-footer__legal { border: 0; padding: 0; grid-column: auto; }
.nt-footer__brand .nt-footer__tagline { margin-top: var(--space-2); }
.nt-footer__brand .nt-social { margin-top: var(--space-4); }
.nt-footer__brand .nt-ask { margin-top: var(--space-5); }
.nt-footer__legal-links .nt-choices { font-size: 0.875rem; }
.nt-footer__bar > * { margin: 0; }
.nt-footer__legal-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-5); }
.nt-footer__legal-links a { color: var(--text-muted); text-decoration: none; font-size: 0.875rem; }
.nt-footer__legal-links a:hover { color: var(--text); }
@container page (min-width: 960px) {
  .nt-footer__top { grid-template-columns: minmax(240px, 5fr) minmax(0, 7fr); gap: var(--space-8); }
  .nt-footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); }
}
/* Footer brand column: tight groups. Wordmark + tagline together, then icons, then the Ask AI label with its icons directly under it. */
.nt-footer__brand { display: flex; flex-direction: column; align-items: flex-start; }
.nt-footer__brand .nt-wordmark { display: block; line-height: 1; }
.nt-footer__brand .nt-footer__tagline { margin-top: 2px; line-height: 1.2; }
.nt-footer__brand > .nt-social { margin-top: var(--space-3); }
.nt-footer__brand .nt-ask { margin-top: var(--space-4); }
.nt-footer__brand .nt-ask__label { line-height: 1.3; }
.nt-footer__brand .nt-ask .nt-social { margin-top: -3px; }


/* ---------- Modern layer: Geist, light surfaces, teal accent ---------- */
.nt-display-xl, .nt-display-l { font-weight: 400; }
.nt-display-m { font-weight: 500; }
.nt-display-xl { letter-spacing: -0.04em; line-height: 1.02; }
.nt-display-l  { letter-spacing: -0.035em; line-height: 1.06; }
.nt-display-m  { letter-spacing: -0.028em; line-height: 1.12; }
.nt-term { letter-spacing: -0.02em; }
.nt-wordmark { font-weight: 600; letter-spacing: -0.045em; }
.nt-brand__tagline, .nt-footer__tagline, .nt-case__ask, .nt-prose blockquote, .nt-word__pos { font-style: normal; }
.nt-brand__tagline { font-size: 0.8125rem; letter-spacing: 0.005em; }
.nt-footer__tagline { font-size: 0.9375rem; }
.nt-word__headword { font-weight: 400; }
.nt-prose h2, .nt-option h4, .nt-flow h4, .nt-consent__title, .nt-prefs__title { letter-spacing: -0.02em; font-weight: 600; }
.nt-stat__figure, .nt-target__figure, .nt-budget__figure, .nt-plan__price, .nt-plan__name, .nt-post-item h2 { font-weight: 500; letter-spacing: -0.035em; }
.nt-dd__feature-link { font-weight: 500; letter-spacing: -0.015em; }
.nt-button { font-weight: 600; letter-spacing: 0; }
.nt-button--primary { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 6px 18px -6px rgba(45, 212, 191, 0.55); }
.nt-button--secondary { border-color: var(--border); background: var(--paper); }
[data-theme="night"] .nt-button--secondary { background: transparent; border-color: var(--border-strong); }
.nt-horizon { height: 1px; box-shadow: 0 0 16px 1px rgba(45, 212, 191, 0.4); }
.nt-hero .nt-horizon { background: var(--border); box-shadow: none; }
.nt-chip { background: var(--paper); }
.nt-chip__dot { box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.2); }
.nt-page ::selection { background: rgba(45, 212, 191, 0.35); color: inherit; }
.nt-hero .nt-horizon { display: none; }
.nt-hero__lake { padding-block-start: 0; }
/* Public pages: plain footer bar, no rule above it */
.nt-footer__bar--plain { margin-top: 0; }
.nt-footer__bar--plain::before { display: none; }
