/* Base, layout, components and site chrome (header, phone menu, footer, night band), built on brand.css. */

/* === 2 base === */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--s-3)); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; line-height: 1.3; }
h4 { font-size: 1rem; letter-spacing: -.005em; line-height: 1.35; }
h5, h6 { font-size: .95rem; letter-spacing: 0; }
p, ul, ol, dl, figure, blockquote { margin: 0; }
a { color: var(--blue); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
img, svg, video { max-width: 100%; }
img, video { display: block; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
code, kbd, samp, pre { font-family: var(--mono); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-8) 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
main { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -64px; z-index: 200; padding: 10px var(--s-4); border-radius: var(--r-xs); background: var(--blue); color: var(--on-blue); font-weight: 600; }
.skip:focus { top: 8px !important; }

/* === 3 layout === */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: calc(760px + 2 * var(--gutter)); }
.sec { padding: var(--sec-y) 0; }
.sec.tight { padding: var(--s-10) 0; }
.sec.soft { background: var(--bg-2); }
.sec > .wrap + .wrap { margin-top: var(--block-gap); }
.sec + .sec:not(.soft):not(.night) { border-top: 1px solid var(--line); }
.sec-head { max-width: 680px; margin: 0 auto var(--block-gap); text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--s-3); }
.sec-head:last-child { margin-bottom: 0; }
.eyebrow { display: block; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); line-height: 1.4; }
.lede { font-size: 1.125rem; line-height: 1.55; color: var(--ink-2); }
.fine { font-size: .84rem; line-height: 1.5; color: var(--muted); }
.center { text-align: center; }
.center .actions { justify-content: center; }
.stack { display: flex; flex-direction: column; gap: var(--s-4); }
.stack.sm { gap: var(--s-2); }
.stack.lg { gap: var(--s-6); }
.stack.xl { gap: var(--s-10); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.grid { display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) {
  .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.split { display: grid; gap: var(--s-8); grid-template-columns: minmax(0, 1fr); align-items: center; }
.split-copy { display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
.split-art { min-width: 0; }
.split-art img, .split-art video { width: 100%; border-radius: var(--r); }
@media (min-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-12); }
  .split.rev .split-copy { order: 2; }
  .split.rev .split-art { order: 1; }
}

/* === 4 components === */

/* buttons: the P02 primary (48 high, radius 8, Plex 600 16/24); every variant shares the shape */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: var(--s-3) var(--s-6); border: 1px solid transparent; border-radius: var(--r-xs);
  font-family: var(--font); font-size: 1rem; line-height: 1.5; font-weight: 600; letter-spacing: 0;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .15s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: var(--on-blue); }
.btn-primary:hover { background: var(--blue-hover); color: var(--on-blue); }
.btn-outline { background: var(--card); border-color: var(--line-2); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-2); color: var(--ink); }
.btn-link { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--blue); font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; }
.btn-link:hover { text-decoration: underline; }
.btn-lg { min-height: 56px; padding: var(--s-4) var(--s-8); font-size: 1.0625rem; }
.btn-sm { min-height: 36px; padding: 6px var(--s-4); font-size: .9rem; line-height: 1.5; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* cards */
.card { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-6); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.card.soft { background: var(--bg-2); border-color: transparent; }
.card.blue { background: var(--blue-soft); border-color: transparent; }
.card > .btn-link, .card > .btn { margin-top: auto; align-self: flex-start; }
.card p { color: var(--ink-2); }
.card img { border-radius: var(--r-xs); }
.ic { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-xs); background: var(--blue-soft); color: var(--blue); }
.ic svg, .ic img { width: 22px; height: 22px; display: block; }
a.card { color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
a.card:hover { border-color: var(--blue-line); box-shadow: var(--shadow-2); }

/* pills and chips */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: var(--s-1) 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; line-height: 1.3; white-space: nowrap; background: var(--bg-2); color: var(--ink-2); }
.pill.blue { background: var(--blue-soft); color: var(--blue-ink); }
.pill.green { background: var(--green-soft); color: var(--green-ink); }
.pill.amber { background: var(--amber-soft); color: var(--amber-ink); }
.pill.line { background: var(--card); border: 1px solid var(--line-2); color: var(--ink-2); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px var(--s-3); border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); color: var(--ink-2); font-size: .86rem; font-weight: 500; text-decoration: none; transition: border-color .15s, color .15s, background .15s; }
a.chip:hover, button.chip:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.chip[aria-pressed="true"], .chip.on { background: var(--blue-soft); border-color: var(--blue-line); color: var(--blue-ink); }

/* banners */
.banner { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-s); font-size: .95rem; line-height: 1.45; background: var(--bg-2); color: var(--ink-2); }
.banner.blue { background: var(--blue-soft); color: var(--blue-ink); }
.banner.amber { background: var(--amber-soft); color: var(--amber-ink); }
.banner.green { background: var(--green-soft); color: var(--green-ink); }
/* ink text: plain red on red-soft is too faint for small type */
.banner.red { background: var(--red-soft); color: var(--ink); }
.banner b { font-weight: 600; }
.banner .ic { width: 24px; height: 24px; background: none; color: currentColor; }

/* form fields: text inputs and textareas (the server's sign-up and meeting forms) */
.field { width: 100%; min-height: 48px; padding: var(--s-3) var(--s-4); border: 1px solid var(--line-2); border-radius: var(--r-xs); background: var(--card); color: var(--ink); }
.field::placeholder { color: var(--muted); }
textarea.field { min-height: 120px; resize: vertical; }
.field.error, .field[aria-invalid="true"] { border-color: var(--red); }

/* logos */
.logos { display: flex; flex-direction: column; align-items: center; gap: var(--s-5); text-align: center; }
.logos-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-6) var(--s-8); }
.logos-row img { height: 28px; width: auto; max-width: 140px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .15s, opacity .15s; }
.logos-row a:hover img, .logos-row img:hover { filter: none; opacity: 1; }

/* quote */
.quote { display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-8); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.quote blockquote { font-size: 1.125rem; line-height: 1.55; color: var(--ink); }
.quote blockquote p + p { margin-top: var(--s-3); }
.quote-who { display: flex; align-items: center; gap: var(--s-3); font-size: .92rem; line-height: 1.35; }
.quote-who b { display: block; font-weight: 600; color: var(--ink); }
.quote-who span { display: block; color: var(--muted); }

/* avatar */
.avatar { width: 32px; height: 32px; flex: none; border-radius: 50%; object-fit: cover; background: var(--bg-3); }
.quote-who .avatar { width: 40px; height: 40px; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.step { display: flex; flex-direction: column; gap: 10px; padding: var(--s-6); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.step p { color: var(--ink-2); }
.step-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-ink); font-weight: 600; font-size: .9rem; font-variant-numeric: tabular-nums; }

/* faq */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) var(--s-1); font-weight: 600; font-size: 1.0625rem; line-height: 1.4; color: var(--ink); cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s var(--ease); }
.faq-item[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq-item summary:hover { color: var(--blue-ink); }
.faq-a { padding: 0 var(--s-1) var(--s-5); color: var(--ink-2); display: flex; flex-direction: column; gap: var(--s-3); }

/* tabs */
.tabs { display: flex; flex-direction: column; gap: var(--s-5); }
.tab-list { display: flex; gap: var(--s-1); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tab-list::-webkit-scrollbar { display: none; }
.tab { appearance: none; flex: none; margin-bottom: -1px; padding: var(--s-3) var(--s-4); min-height: 44px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font-size: .95rem; font-weight: 600; white-space: nowrap; transition: color .15s, border-color .15s; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--blue); }
.tab:focus-visible { outline-offset: -4px; }
.tab-panel:focus-visible { outline-offset: 4px; }

/* prose: long-form reading (blog, docs, privacy, terms) */
.prose { max-width: 72ch; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.7; }
.prose.wide { max-width: none; }
.prose > * + * { margin-top: 1.1em; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--ink); }
.prose h2 { margin-top: 2em; font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
.prose h3 { margin-top: 1.7em; font-size: 1.25rem; }
.prose h4 { margin-top: 1.5em; font-size: 1.0625rem; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose a { color: var(--blue); text-decoration: underline; text-decoration-color: var(--blue-line); text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-color: var(--blue); }
.prose strong, .prose b { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose li > ul, .prose li > ol { margin-top: .4em; }
.prose blockquote { padding: var(--s-1) 0 var(--s-1) var(--s-5); border-left: 3px solid var(--blue-line); color: var(--ink); font-style: normal; }
.prose img, .prose video { border-radius: var(--r-s); margin-left: auto; margin-right: auto; }
.prose figure figcaption { margin-top: var(--s-2); font-size: .84rem; color: var(--muted); text-align: center; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px var(--s-3); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: var(--ink); font-weight: 600; background: var(--bg-2); }
.prose :not(pre) > code { padding: .1em .35em; border-radius: 4px; background: var(--bg-3); color: var(--ink); font-size: .88em; }
.prose pre { padding: var(--s-4) var(--s-5); border-radius: var(--r-s); background: var(--n-bg); color: var(--n-ink); overflow-x: auto; font-size: .88rem; line-height: 1.6; }
.prose pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.prose hr { margin: 2.4em 0; }

/* code block */
pre.code { margin: 0; padding: var(--s-4) var(--s-5); border-radius: var(--r-s); background: var(--n-bg); color: var(--n-ink); overflow-x: auto; font-family: var(--mono); font-size: .88rem; line-height: 1.6; }
pre.code code, pre.code code.hljs { display: block; padding: 0; background: none; color: inherit; font-family: inherit; }
.prose pre code.hljs { padding: 0; background: none; }

/* code colouring (highlight.js classes) on the night ground: Sky for names, green for strings, amber for numbers */
.hljs { color: var(--n-ink); background: none; }
.hljs-comment, .hljs-quote, .hljs-meta, .hljs-formula { color: var(--n-muted); }
.hljs-keyword, .hljs-selector-tag, .hljs-built_in, .hljs-type, .hljs-literal, .hljs-doctag, .hljs-section, .hljs-name, .hljs-template-tag { color: var(--n-ink); font-weight: 600; }
.hljs-attr, .hljs-attribute, .hljs-variable, .hljs-template-variable, .hljs-title, .hljs-title.function_, .hljs-title.class_, .hljs-symbol, .hljs-selector-id, .hljs-selector-class, .hljs-selector-attr, .hljs-selector-pseudo, .hljs-property { color: var(--sky); }
.hljs-string, .hljs-regexp, .hljs-addition, .hljs-bullet, .hljs-char.escape_ { color: var(--green); }
.hljs-number, .hljs-deletion, .hljs-link { color: var(--amber); }
.hljs-emphasis { font-style: italic; }
.hljs-strong { font-weight: 600; }

/* media: rounded image or video frame (lite-youtube folded in from lite-yt.css) */
.media { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--bg-3); }
.media img, .media video, .media iframe { display: block; width: 100%; border: 0; }
.media iframe { aspect-ratio: 16 / 9; height: auto; }
.media figcaption { padding: 10px var(--s-1) 0; font-size: .84rem; color: var(--muted); background: var(--bg); }
lite-youtube { position: relative; display: block; contain: content; max-width: 100%; background-color: var(--n-bg); background-position: center center; background-size: cover; cursor: pointer; border-radius: var(--r); }
lite-youtube::before { content: ""; display: block; position: absolute; top: 0; width: 100%; height: 60px; padding-bottom: var(--s-12); background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAADGCAYAAAAT+OqFAAAAdklEQVQoz42QQQ7AIAgEF/T/D+kbq/RWAlnQyyazA4aoAB4FsBSA/bFjuF1EOL7VbrIrBuusmrt4ZZORfb6ehbWdnRHEIiITaEUKa5EJqUakRSaEYBJSCY2dEstQY7AuxahwXFrvZmWl2rh4JZ07z9dLtesfNj5q0FU3A5ObbwAAAABJRU5ErkJggg==); background-position: top; background-repeat: repeat-x; transition: all .2s cubic-bezier(0, 0, .2, 1); }
lite-youtube::after { content: ""; display: block; padding-bottom: calc(100% / (16 / 9)); }
lite-youtube > iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
lite-youtube > .lty-playbtn { position: absolute; top: 50%; left: 50%; z-index: 1; width: 68px; height: 48px; border: none; cursor: pointer; transform: translate3d(-50%, -50%, 0); background-color: transparent; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 68 48"><path fill="%23f00" fill-opacity="0.8" d="M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z"></path><path d="M 45,24 27,14 27,34" fill="%23fff"></path></svg>'); filter: grayscale(100%); transition: filter .1s cubic-bezier(0, 0, .2, 1); }
lite-youtube:hover > .lty-playbtn, lite-youtube .lty-playbtn:focus { filter: none; }
lite-youtube.lyt-activated { cursor: unset; }
lite-youtube.lyt-activated::before, lite-youtube.lyt-activated > .lty-playbtn { opacity: 0; pointer-events: none; }
.lyt-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* tables */
.table > :not(:first-child) { border-top: 0; } /* Bootstrap, still loaded by tags/head-nolazy.html on some pages, draws a 2px rule here */
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.45; }
.table th, .table td { padding: var(--s-3) var(--s-4); text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table thead th { background: var(--bg-2); color: var(--ink); font-weight: 600; font-size: .88rem; white-space: nowrap; }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }
.table tbody th { color: var(--ink); font-weight: 600; }
.table td { color: var(--ink-2); }
.table.compare td, .table.compare th:not(:first-child) { text-align: center; }
.table.compare .yes { color: var(--green-ink); background: var(--green-soft); font-weight: 600; }
.table.compare .no { color: var(--muted); }

/* pricing: the cards share one set of rows, so price, button and usage line up across the grid; one column on phones */
.pricing { --price-rows: 10; display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(var(--price-rows), auto); align-items: stretch; }
@media (min-width: 700px) { .pricing { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .pricing { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }
.price-card { padding: var(--s-5); gap: var(--s-3); }
.price-card .price-list { flex: 1 0 auto; }
@supports (grid-template-rows: subgrid) {
  .price-card { display: grid; grid-template-rows: subgrid; grid-row: span var(--price-rows); row-gap: var(--s-3); align-content: start; }
  .price-card .price-list { flex: none; }
}
.price-card.featured { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), var(--shadow-2); }
.price-card .eyebrow { font-size: .75rem; }
.price-card h3 { font-size: 1rem; }
.price-card .price-sub { margin: 0; font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s-1) 6px; color: var(--ink); }
.price b { font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); font-size: .75rem; }
.price-card .btn { align-self: stretch; margin-top: 0; min-height: 36px; padding: 6px var(--s-4); font-size: .875rem; }
.price-label { margin: 0; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.price-card .price-label { padding-top: var(--s-3); border-top: 1px solid var(--line); }
.price-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-2); font-size: .8125rem; line-height: 1.5; color: var(--ink-2); }
.price-list li { position: relative; padding-left: var(--s-5); }
.price-list li::before { content: ""; position: absolute; left: 2px; top: .4em; width: 9px; height: 5px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.price-usage { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-1) var(--s-3); margin: 0; padding: var(--s-3) var(--s-4); border-radius: var(--r-xs); background: var(--bg-2); font-size: .8125rem; }
.price-usage dt { color: var(--muted); }
.price-usage dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.price-card .fine { font-size: .75rem; }

/* stat */
.stat { display: flex; flex-direction: column; gap: var(--s-1); }
.stat .num, .stat b.num { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat span { color: var(--ink-2); font-size: .95rem; }

/* feature: icon-left row */
.feature { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s-4); align-items: start; }
.feature > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.feature p { color: var(--ink-2); }

/* hero: a page's opening; .hero on the section, .hero-in on its wrap (eyebrow, h1, .lede, .actions, .fine) */
.hero-in:not(.split) { display: flex; flex-direction: column; gap: var(--s-4); max-width: calc(760px + 2 * var(--gutter)); text-align: center; }
.hero-in:not(.split) .actions { justify-content: center; }
.hero.left .hero-in { text-align: left; }
.hero.left .hero-in .actions { justify-content: flex-start; }

/* === 5 chrome === */

/* wordmark (inline SVG, currentColor): Signature on light, white on dark */
.wordmark { display: inline-flex; align-items: center; color: var(--blue); line-height: 0; text-decoration: none; }
.wordmark svg { display: block; width: 78px; height: 24px; }
.wordmark:hover { color: var(--blue-hover); }

/* header */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--card); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: var(--s-6); height: var(--header-h); }
.menu { display: none; align-items: center; gap: 2px; height: 100%; }
.navlink { display: inline-flex; align-items: center; gap: var(--s-1); padding: var(--s-2) var(--s-3); border: 0; border-radius: var(--r-xs); background: none; color: var(--ink-2); font-size: .875rem; font-weight: 500; line-height: 1.4; text-decoration: none; white-space: nowrap; transition: background .15s, color .15s; }
.navlink:hover { background: var(--bg-2); color: var(--ink); text-decoration: none; }
.navlink[aria-current="page"] { color: var(--ink); }
.dd { position: relative; display: flex; align-items: center; height: 100%; }
.dd-head { display: inline-flex; align-items: center; padding-right: var(--s-2); border-radius: var(--r-xs); transition: background .15s; }
.dd-head:hover, .dd.open > .dd-head { background: var(--bg-2); }
.dd .navlink { padding-right: 6px; }
.dd .navlink:hover { background: none; }
.dd-head:hover .navlink, .dd.open .navlink { color: var(--ink); }
.dd-toggle { display: inline-grid; place-items: center; width: 20px; height: 32px; margin-left: 0; padding: 0; border: 0; border-radius: var(--r-xs); background: none; color: var(--muted); }
.dd-toggle svg { width: 12px; height: 12px; transition: transform .15s var(--ease); }
.dd.open .dd-toggle svg { transform: rotate(180deg); }
.dd-toggle:hover { color: var(--ink); }
.dd-panel { position: absolute; top: calc(100% - 6px); left: -8px; z-index: 110; display: none; min-width: 300px; padding: var(--s-2); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-2); }
.dd.open > .dd-panel { display: block; }
.dd-panel.cols { min-width: 560px; }
.dd.open > .dd-panel.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-1) var(--s-2); }
.dd-col { display: flex; flex-direction: column; min-width: 0; }
.dd-col-h { padding: 10px var(--s-3) 6px; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.dd-item { display: flex; flex-direction: column; gap: 2px; padding: 10px var(--s-3); border-radius: var(--r-xs); color: var(--ink); text-decoration: none; transition: background .12s; }
.dd-item:hover, .dd-item:focus-visible { background: var(--bg-2); text-decoration: none; }
.dd-item-h { font-size: .875rem; font-weight: 600; line-height: 1.35; color: var(--ink); }
.dd-item-s { font-size: .8rem; line-height: 1.4; color: var(--muted); }
.dd-item.compact { padding: 7px var(--s-3); }
.dd-item.compact .dd-item-h { font-weight: 500; color: var(--ink-2); }
.dd-item.compact:hover .dd-item-h { color: var(--ink); }
.dd-item.emph .dd-item-h { font-weight: 600; color: var(--blue); }
.nav-cta { display: none; align-items: center; gap: var(--s-2); margin-left: auto; }
.nav-cta .btn-ghost { min-height: 36px; padding: 6px var(--s-4); font-size: .875rem; }
.nyk-account { position: relative; display: flex; align-items: center; }
.site-header button.nyk-avatar { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: var(--blue); color: var(--on-blue); font-size: .875rem; font-weight: 600; line-height: 1; }
.site-header button.nyk-avatar:hover { background: var(--blue-hover); }
.site-header .nyk-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 120; min-width: 200px; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s); box-shadow: var(--shadow-2); }
.site-header .nyk-menu-item { display: block; padding: var(--s-2) var(--s-3); border-radius: var(--r-xs); color: var(--ink-2); font-size: .9rem; text-decoration: none; white-space: nowrap; }
.site-header .nyk-menu-item:hover { background: var(--bg-2); color: var(--ink); text-decoration: none; }
.burger { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; margin-left: auto; margin-right: -8px; padding: 0; border: 0; border-radius: var(--r-xs); background: none; color: var(--ink); }
.burger span { display: block; width: 20px; height: 2px; border-radius: 1px; background: currentColor; transition: transform .2s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 992px) {
  .menu { display: flex; }
  .nav-cta { display: flex; }
  .burger { display: none; }
  .mnav { display: none; }
}
@media (hover: hover) and (min-width: 992px) {
  .dd:hover > .dd-panel { display: block; }
  .dd:hover > .dd-panel.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-1) var(--s-2); }
}

/* phone menu */
/* phone menu: a full-screen Night overlay with its own top row; groups open as panels that slide in; sign-in docked at the bottom */
.mnav[hidden] { display: none; }
.mnav { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; height: 100vh; height: 100dvh; background: var(--n-bg); color: var(--n-ink-2); color-scheme: dark; }
html.mnav-lock { overflow: hidden; }
html.mnav-lock body { position: fixed; left: 0; right: 0; overflow: hidden; }
.mnav-top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); flex: none; border-bottom: 1px solid var(--n-line); }
.mnav-top .wordmark { color: var(--brand-white); }
.mnav-close { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; padding: 0; border: 0; border-radius: var(--r-xs); background: none; color: var(--n-ink); }
.mnav-close svg { width: 22px; height: 22px; }
.mnav-panels { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.mnav-panel { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: var(--s-6); transform: translateX(100%); transition: transform .25s var(--ease), visibility 0s .25s; visibility: hidden; }
.mnav-panel.is-active { transform: none; visibility: visible; transition: transform .25s var(--ease); }
.mnav-panel[data-panel="root"] { transform: translateX(-24%); }
.mnav-panel[data-panel="root"].is-active { transform: none; }
.mnav-list { list-style: none; margin: 0; }
.mnav-list > li { border-bottom: 1px solid var(--n-line); }
.mnav-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); width: 100%; min-height: 56px; padding: var(--s-3) 0; border: 0; background: none; color: var(--n-ink); font-size: 1.125rem; font-weight: 500; text-align: left; text-decoration: none; }
.mnav-row:hover { color: var(--sky); text-decoration: none; }
.mnav-row svg { flex: none; width: 20px; height: 20px; color: var(--n-muted); }
.mnav-back { display: inline-flex; align-items: center; gap: var(--s-1); min-height: 44px; margin-left: -4px; padding: 0 var(--s-1); border: 0; background: none; color: var(--sky); font-size: .95rem; font-weight: 500; }
.mnav-back svg { width: 18px; height: 18px; }
.mnav-title { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin: var(--s-1) 0 0; padding-bottom: var(--s-4); border-bottom: 1px solid var(--n-line); color: var(--n-ink); font-size: 1.5rem; font-weight: 600; text-decoration: none; }
.mnav-title:hover { text-decoration: none; color: var(--sky); }
.mnav-title svg { flex: none; width: 22px; height: 22px; color: var(--n-muted); }
.mnav.in-sub .mnav-dock { display: none; } /* a group panel is the whole screen, as on the live site */
.mnav-sub { list-style: none; margin: 0; padding: 0; }
.mnav-sub-h { padding: var(--s-4) 0 var(--s-1); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--n-muted); }
.mnav-link { display: flex; flex-direction: column; gap: 2px; min-height: 48px; padding: var(--s-3) 0; border-bottom: 1px solid var(--n-line); color: var(--n-ink-2); text-decoration: none; }
.mnav-link:hover { text-decoration: none; }
.mnav-link:hover b { color: var(--sky); }
.mnav-link b { font-weight: 500; color: var(--n-ink); }
.mnav-link span { font-size: .875rem; color: var(--n-muted); }
.mnav-link.em b { color: var(--sky); font-weight: 600; }
.mnav-dock { flex: none; display: flex; flex-direction: column; gap: var(--s-3); padding-top: var(--s-4); padding-bottom: calc(var(--s-4) + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--n-line); background: var(--n-bg); }
.mnav-quiet { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.mnav-quiet a { display: inline-flex; align-items: center; min-height: 44px; color: var(--n-ink-2); font-weight: 500; text-decoration: none; }
.mnav-quiet a:hover { color: var(--sky); text-decoration: none; }
.mnav-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.mnav-actions .btn { width: 100%; }
.mnav-actions .btn-outline, .mnav-actions .btn-ghost { background: transparent; border-color: var(--n-line-2); color: var(--n-ink); }
.mnav-actions .btn-outline:hover { border-color: var(--n-ink-2); color: var(--n-ink); }
.mnav-actions template + .btn, .mnav-actions [data-auth="user"]:nth-child(n+3) { grid-column: 1 / -1; }
.mnav :focus-visible { outline-color: var(--sky); }
@media (prefers-reduced-motion: reduce) { .mnav-panel, .mnav-panel.is-active { transition: none; } }

/* CTA band */
.cta-band { padding: var(--s-16) 0; background: var(--card); border-top: 1px solid var(--line); text-align: center; }
.cta-band .wrap { display: flex; flex-direction: column; align-items: center; gap: var(--s-4); }
.cta-band .lede { max-width: 620px; }
.cta-band .actions { justify-content: center; margin-top: var(--s-2); }

/* footer (Night ground) */
.site-footer { padding: var(--s-16) 0 var(--s-10); background: var(--n-bg); color: var(--n-ink-2); color-scheme: dark; }
.site-footer :focus-visible { outline-color: var(--sky); }
.foot-in { display: grid; gap: var(--s-10); grid-template-columns: minmax(0, 1fr); }
.foot-brand { display: flex; flex-direction: column; gap: var(--s-4); align-items: flex-start; }
.site-footer .wordmark, .night .wordmark { color: var(--brand-white); }
.site-footer .wordmark:hover, .night .wordmark:hover { color: var(--sky); }
.foot-cols { display: grid; gap: var(--s-8) var(--s-6); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.foot-col h2 { margin-bottom: var(--s-4); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--n-muted); }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.foot-col a { color: var(--n-ink-2); font-size: .92rem; line-height: 1.5; }
.foot-col a:hover { color: var(--n-ink); }
.foot-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4) var(--s-6); margin-top: var(--s-12); padding-top: var(--s-6); border-top: 1px solid var(--n-line); }
.foot-copy { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); font-size: .84rem; color: var(--n-muted); }
.foot-copy a { color: var(--n-ink-2); }
.foot-copy a:hover { color: var(--n-ink); }
.foot-badge { display: none; width: 64px; height: 64px; }
@media (min-width: 760px) { .foot-badge { display: block; } }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s-1); }
.social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-xs); color: var(--n-ink-2); }
.social a:hover { background: var(--n-bg-3); color: var(--n-ink); }
.social svg { width: 20px; height: 20px; }
@media (min-width: 760px) { .foot-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .foot-in { grid-template-columns: 200px minmax(0, 1fr); gap: var(--s-12); } }

/* night band: the dark sub-identity (n-* ground and ink); wordmark and buttons restyle inside it */
.night, .sec.night { background: var(--n-bg); color: var(--n-ink-2); color-scheme: dark; }
.night h1, .night h2, .night h3, .night h4 { color: var(--n-ink); }
.night p, .night .lede { color: var(--n-ink-2); }
.night .fine { color: var(--n-muted); }
.night .eyebrow { color: var(--sky); }
.night a:not(.btn) { color: var(--sky); }
.night :focus-visible { outline-color: var(--sky); outline-offset: 3px; }
.night .btn-primary { background: var(--blue); color: var(--on-blue); }
.night .btn-primary:hover { background: var(--blue-hover); }
.night .btn-outline, .night .btn-ghost { background: transparent; border-color: var(--n-line-2); color: var(--n-ink); }
.night .btn-outline:hover, .night .btn-ghost:hover { background: var(--n-bg-3); border-color: var(--n-ink-2); color: var(--n-ink); }
.night .btn-link { color: var(--sky); }
.night .card, .night .quote, .night .step { background: var(--n-bg-2); border-color: var(--n-line); }
.night .card.soft, .night .card.blue { background: var(--n-bg-3); }
.night .card p, .night .step p, .night .feature p { color: var(--n-ink-2); }
.night .quote blockquote, .night .quote-who b, .night .stat .num { color: var(--n-ink); }
.night .quote-who span, .night .stat span { color: var(--n-muted); }
.night .ic { background: var(--n-bg-3); color: var(--sky); }
.night .pill.line, .night .chip { background: transparent; border-color: var(--n-line-2); color: var(--n-ink-2); }
.night .logos-row img { filter: grayscale(1) brightness(0) invert(1); opacity: .7; }
.night .faq, .night .faq-item, .night .tab-list { border-color: var(--n-line); }
.night .faq-item summary, .night .tab[aria-selected="true"] { color: var(--n-ink); }
.night .tab { color: var(--n-muted); }
.night pre.code { background: var(--n-bg-2); border: 1px solid var(--n-line); }
.night .table-wrap { background: var(--n-bg-2); border-color: var(--n-line); }
.night .table th, .night .table td { border-color: var(--n-line); }
.night .table thead th { background: var(--n-bg-3); color: var(--n-ink); }

/* touch targets and motion */
@media (pointer: coarse) {
  .wordmark { min-height: 44px; }
  .navlink, .nav-cta .btn, .btn-sm { min-height: 44px; }
  .foot-col a { display: inline-flex; align-items: center; min-height: 36px; }
  .skip { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001s; animation-duration: .001s; animation-iteration-count: 1; }
}
