/* Nox's website. Colours are the variables of the design (Landing.ndf, the
   set Theme): Light is what a visitor first sees; Dark is chosen with the
   button in the bar and kept for the next visit. */
:root {
  --ground: #ffffff; --surface: #f4f5f8; --raised: #ffffff; --line: #dfe3ea;
  --ink: #0b0c0f; --ink-soft: #4a5261; --accent: #2a56d6; --accent-solid: #2f5fe0;
  --on-accent: #ffffff; --good: #1c7c43; --canvas: #1e1e1e;
  --shadow: 0 30px 80px rgba(11, 12, 15, .22);
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --figure: "Space Grotesk", var(--sans);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --ground: #0b0c0f; --surface: #14161b; --raised: #1c1f26; --line: #272b34;
  --ink: #f4f5f7; --ink-soft: #a6acb9; --accent: #6c93ff; --accent-solid: #3d68f0;
  --good: #5fd08a; --shadow: 0 30px 80px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.soft { color: var(--ink-soft); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--raised); padding: 8px 12px; border-radius: 8px; }

/* ---- the bar: it stays at the top ---- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--ground) 78%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 62px; transition: height .2s; }
.nav.scrolled .wrap { height: 54px; }
.mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.mark img { width: 28px; height: 28px; border-radius: 7px; }
.links { display: flex; gap: 30px; font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.links a { position: relative; padding: 6px 0; }
.links a:hover, .links a[aria-current] { color: var(--ink); }
.links a[aria-current]::after { content: ""; position: absolute; left: calc(50% - 9px); bottom: -2px; width: 18px; height: 2px; border-radius: 1px; background: var(--accent); }
.nav-end { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.icon-btn svg { width: 18px; height: 18px; }
.theme .moon, :root[data-theme="dark"] .theme .sun { display: none; }
:root[data-theme="dark"] .theme .moon { display: block; }
.menu-btn { display: none; }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--accent); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: 12px; font-weight: 600; font-size: 16px; border: 1px solid transparent; white-space: nowrap; }
.btn.primary { background: var(--accent-solid); color: var(--on-accent); }
.btn.primary[aria-disabled="true"] { cursor: default; }
.btn.plain { background: var(--surface); border-color: var(--line); }
.btn.plain:hover { border-color: var(--ink-soft); }
.btn.small { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.arrow { color: var(--accent); font-weight: 600; font-size: 15px; display: inline-flex; gap: 8px; align-items: center; }
.arrow::after { content: "→"; transition: transform .15s; }
.arrow:hover::after { transform: translateX(3px); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.chip { display: inline-flex; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink-soft); }
button.chip[aria-pressed="true"] { background: var(--accent-solid); border-color: transparent; color: var(--on-accent); }

/* ---- hero ---- */
.hero { padding: 64px 0 40px; text-align: center; }
.hero h1 { font-size: clamp(36px, 5.6vw, 64px); line-height: 1.06; letter-spacing: -.03em; font-weight: 700; max-width: 900px; margin: 22px auto; text-wrap: balance; }
.hero .sub { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-soft); max-width: 640px; margin: 0 auto 22px; text-wrap: pretty; }
.buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .small { font-size: 15px; color: var(--ink-soft); margin-top: 22px; }
.kinds { display: flex; gap: 8px; justify-content: center; margin: 44px 0 20px; }

/* the designs in a row in space: one in front, in Nox's window */
.flow { position: relative; height: clamp(300px, 43vw, 600px); perspective: 1600px; overflow: hidden; }
.flow::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 0; height: 34%; background: var(--accent-solid); opacity: .22; filter: blur(80px); z-index: 0; pointer-events: none; }
.flow-item { position: absolute; top: 50%; left: 50%; width: min(840px, 62vw); aspect-ratio: 16 / 10; margin: 0; z-index: 1;
  transform: translate(-50%, -50%) translateX(var(--x, 0)) translateZ(var(--z, 0)) rotateY(var(--turn, 0deg)); opacity: var(--show, 0);
  transition: transform .7s cubic-bezier(.2, .7, .2, 1), opacity .5s; pointer-events: none; }
.flow-item .shot { width: 100%; height: 100%; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--canvas); box-shadow: var(--shadow); position: relative; }
.flow-item .shot > img.design { position: relative; width: 100%; height: 100%; object-fit: cover; filter: brightness(var(--light, 1)); transition: filter .5s; }
.chrome { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; display: none; }
.flow-item[data-at="0"] { --show: 1; z-index: 5; pointer-events: auto; }
.flow-item[data-at="0"] .shot { padding: 6.2% 19.2% 5.4% 24.2%; }
.flow-item[data-at="0"] .chrome { display: block; }
.flow-item[data-at="0"] .shot > img.design { object-fit: contain; }
.flow-item[data-at="-1"] { --x: -62%; --z: -260px; --turn: 42deg; --show: 1; --light: .62; z-index: 4; pointer-events: auto; cursor: pointer; }
.flow-item[data-at="1"] { --x: 62%; --z: -260px; --turn: -42deg; --show: 1; --light: .62; z-index: 4; pointer-events: auto; cursor: pointer; }
.flow-item[data-at="-2"] { --x: -98%; --z: -520px; --turn: 52deg; --show: 1; --light: .4; z-index: 3; }
.flow-item[data-at="2"] { --x: 98%; --z: -520px; --turn: -52deg; --show: 1; --light: .4; z-index: 3; }
.flow-item[hidden] { display: none; }
.pointer { position: absolute; display: none; align-items: flex-start; gap: 0; z-index: 6; font-size: 11px; font-weight: 700; color: #fff; pointer-events: none; }
.flow-item[data-at="0"] .pointer { display: flex; }
.pointer svg { width: 14px; height: 20px; flex: none; }
.pointer span { margin: 14px 0 0 -2px; padding: 3px 8px; border-radius: 6px; }
.pointer.claude { left: 62%; top: 38%; animation: drift-a 9s ease-in-out infinite; }
.pointer.claude span { background: #3d68f0; }
.pointer.you { left: 40%; top: 66%; animation: drift-b 11s ease-in-out infinite; }
.pointer.you span { background: #1c7c43; }
@keyframes drift-a { 50% { transform: translate(-70px, 40px); } }
@keyframes drift-b { 50% { transform: translate(60px, -46px); } }
.under { display: flex; gap: 16px; align-items: center; justify-content: center; margin-top: 20px; font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.under button { background: none; border: 0; padding: 6px 10px; color: var(--ink-soft); font-size: 18px; }
.dots { display: flex; gap: 6px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: width .3s, background .3s; }
.dots i.on { width: 18px; background: var(--ink); }

/* ---- the strip: designs moving without end ---- */
.made { padding: 56px 0; text-align: center; }
.made h2 { font-size: clamp(22px, 2.4vw, 26px); letter-spacing: -.015em; max-width: 720px; margin: 12px auto; text-wrap: balance; }
.strip { margin-top: 36px; display: grid; gap: 16px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 11%, #000 89%, transparent); mask-image: linear-gradient(90deg, transparent, #000 11%, #000 89%, transparent); }
.track { display: flex; gap: 16px; width: max-content; animation: along 70s linear infinite; }
.track.back { animation-direction: reverse; animation-duration: 84s; }
.strip:hover .track { animation-play-state: paused; }
@keyframes along { to { transform: translateX(calc(-50% - 8px)); } }
.tile { position: relative; width: clamp(198px, 24.5vw, 352px); aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); flex: none; margin: 0; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile figcaption { position: absolute; left: 12px; top: 12px; padding: 4px 9px; border-radius: 99px; background: rgba(11, 12, 15, .7); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .05em; }

/* ---- sections and cards ---- */
section { padding: 56px 0; }
.head { display: grid; gap: 14px; margin-bottom: 40px; }
.head.row { grid-template-columns: 1fr auto; align-items: end; }
.head.centre { text-align: center; justify-items: center; }
.head h2, .page-top h1 { font-size: clamp(27px, 3.6vw, 40px); line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
.head p { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-soft); max-width: 720px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-size: 21px; line-height: 1.24; letter-spacing: -.015em; }
.card p { font-size: 15px; line-height: 1.47; color: var(--ink-soft); }
.card > img, .card picture img { border-radius: 12px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.grid { display: grid; gap: 20px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two-one { grid-template-columns: 2fr 1fr; }
.bento { display: grid; gap: 20px; }
.agents-card { flex-direction: row; gap: 28px; padding: 32px; }
.agents-card .words { flex: 0 0 262px; display: grid; gap: 14px; align-content: start; }
.agents-card h3 { font-size: 30px; line-height: 1.17; letter-spacing: -.02em; }
.agents-card .words p { font-size: 16px; }
.agents-card .shown { flex: 1; display: grid; gap: 12px; justify-items: center; min-width: 0; }
.prompt { width: 100%; background: var(--raised); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 10px; text-align: left; }
.prompt p, pre, code { font-family: var(--mono); }
.prompt p { font-size: 14px; line-height: 1.57; color: var(--ink); font-weight: 500; }
.says { display: flex; gap: 8px; align-items: center; font: 500 12px/1.5 var(--mono); color: var(--ink-soft); }
.says::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--good); flex: none; }
.win { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--canvas); padding: 6.2% 19.2% 5.4% 24.2%; }
.win .chrome { display: block; }
.win img.design { position: relative; width: 100%; height: 100%; object-fit: contain; }
.win.big { box-shadow: var(--shadow); border-radius: 12px; }
.review { display: inline-flex; gap: 16px; align-items: center; padding: 8px 10px 8px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--raised); font-size: 13px; font-weight: 600; }
.review b { background: var(--accent-solid); color: var(--on-accent); padding: 6px 14px; border-radius: 8px; }
.speed { padding: 32px; gap: 14px; }
.figure { font-family: var(--figure); font-weight: 700; font-size: 96px; line-height: 1; letter-spacing: -.03em; }
.figure small { font-size: 30px; color: var(--accent); margin-left: 6px; letter-spacing: 0; }
.speed .means { font-size: 17px; color: var(--ink); font-weight: 500; }
.speed hr { width: 100%; border: 0; border-top: 1px solid var(--line); margin: 0; }
.stat { display: grid; grid-template-columns: 76px 1fr; gap: 12px; font-size: 14px; color: var(--ink-soft); align-items: baseline; }
.stat b { font: 700 17px var(--figure); color: var(--ink); }
.speed .where { font-size: 12px; }
.shown-box { height: 180px; display: flex; align-items: center; gap: 20px; }
.file { width: 82px; height: 108px; border: 1.5px solid var(--line); background: var(--raised); border-radius: 10px 26px 10px 10px; display: grid; align-items: end; padding: 0 0 22px 14px; font: 700 17px var(--mono); color: var(--accent); flex: none; }
.stack { display: grid; gap: 8px; justify-items: start; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.code-chip { font: 600 13px var(--mono); padding: 7px 12px; border-radius: 8px; background: var(--raised); border: 1px solid var(--line); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.ticks li { display: flex; gap: 10px; }
.ticks li::before { content: "✓"; color: var(--good); font-weight: 700; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 760px; margin-inline: auto; text-align: left; }
.plan { padding: 28px; }
.plan.strong { border-color: var(--accent); }
.plan h3 { font-size: 22px; }
.plan .price { font: 700 34px/1.2 var(--figure); letter-spacing: -.02em; color: var(--ink); }
.plan p { font-size: 14px; }
.through { text-align: center; font-size: 15px; color: var(--ink-soft); margin-top: 28px; }
.band { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 72px 40px; text-align: center; display: grid; gap: 28px; justify-items: center; }
.band::before { content: ""; position: absolute; left: 25%; right: 25%; bottom: -90px; height: 220px; background: var(--accent-solid); opacity: .28; filter: blur(90px); }
.band h2 { position: relative; font-size: clamp(28px, 4.2vw, 48px); line-height: 1.13; letter-spacing: -.025em; }
.band .buttons { position: relative; }

/* ---- the pages the long page was split into ---- */
.page-top { padding: 80px 0 40px; text-align: center; display: grid; gap: 22px; justify-items: center; }
.page-top h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.07; letter-spacing: -.03em; max-width: 860px; }
.page-top p { font-size: 20px; color: var(--ink-soft); max-width: 680px; }
.show { display: grid; grid-template-columns: 440px 1fr; gap: 20px; align-items: start; }
.show > * { min-width: 0; }
.show .ask { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.card { min-width: 0; }
.show .made-by { grid-template-columns: minmax(0, 1fr); }
.show .made-by { display: grid; gap: 16px; justify-items: center; }
.label { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--ink-soft); text-transform: uppercase; }
.setup-top { display: flex; justify-content: space-between; align-items: center; }
pre { margin: 0; font-size: 12.5px; line-height: 1.6; overflow-x: auto; white-space: pre; color: var(--ink); }
.copy { font: 600 13px var(--sans); padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--raised); }
.wide-shot { border-radius: 18px; border: 1px solid var(--line); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.prose { max-width: 720px; margin-inline: auto; padding: 56px 0 72px; }
.prose h1 { font-size: clamp(32px, 4.4vw, 46px); letter-spacing: -.025em; line-height: 1.1; margin-bottom: 18px; }
.prose h2 { font-size: 24px; letter-spacing: -.01em; margin: 44px 0 12px; }
.prose h3 { font-size: 18px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink-soft); font-size: 17px; line-height: 1.6; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 14px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose code { font-size: .9em; background: var(--surface); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; color: var(--ink); }
.prose pre { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 0 0 14px; }
.prose pre code { border: 0; padding: 0; background: none; }
.steps { counter-reset: step; list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; gap: 12px; }
.steps li::before { content: counter(step); width: 28px; height: 28px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; font: 700 13px var(--mono); color: var(--accent); }

/* ---- footer ---- */
footer { border-top: 1px solid var(--line); padding: 48px 0 56px; margin-top: 56px; }
.foot-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-top > div:first-child { display: grid; gap: 14px; max-width: 260px; align-content: start; font-size: 14px; color: var(--ink-soft); }
.cols { display: flex; gap: 72px; }
.cols div { display: grid; gap: 12px; align-content: start; font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.cols b { font-size: 13px; color: var(--ink); letter-spacing: .03em; }
.cols a:hover { color: var(--ink); }
.who { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 24px; display: grid; gap: 14px; font-size: 13px; color: var(--ink-soft); }
.who small { font-size: 12px; line-height: 1.5; }

/* ---- what stays at the corner, and at the foot of a phone ---- */
.to-top { position: fixed; right: 32px; bottom: 32px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--raised); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); display: grid; place-items: center; z-index: 40; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s, transform .2s; }
.to-top.on { opacity: 1; transform: none; pointer-events: auto; }
.foot-bar { display: none; }
.phone-only { display: none; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .6s; }
.reveal.seen { opacity: 1; transform: none; }

/* ---- between the two widths that were drawn ---- */
@media (max-width: 1000px) {
  .grid.three { grid-template-columns: repeat(2, 1fr); }
  .grid.two-one, .show { grid-template-columns: 1fr; }
  .agents-card { flex-direction: column; }
  .agents-card .words { flex: none; }
  .cols { gap: 40px; }
}

/* ---- the phone's own page ---- */
@media (max-width: 760px) {
  body { padding-bottom: 86px; }
  .links, .nav .btn { display: none; }
  .menu-btn { display: grid; }
  .nav.open .links { display: grid; position: absolute; left: 0; right: 0; top: 100%; gap: 0; background: var(--ground); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav.open .links a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .links a[aria-current]::after { display: none; }
  .hero { padding: 28px 0 32px; text-align: left; }
  .hero h1 { margin: 0 0 16px; letter-spacing: -.025em; }
  .hero .sub { margin: 0 0 16px; }
  .hero .pill, .hero .buttons, .desk-only { display: none !important; }
  .phone-only { display: block; }
  .btn.send { width: 100%; }
  .hero .small { margin-top: 16px; font-size: 14px; }
  .kinds { display: none; }
  .flow { height: auto; margin-top: 28px; perspective: none; overflow-x: auto; display: flex; gap: 14px; scroll-snap-type: x mandatory; padding: 0 20px 6px; margin: 0 -20px; scrollbar-width: none; }
  .flow::after, .flow .pointer { display: none !important; }
  .flow-item, .flow-item[data-at] { position: static; transform: none; opacity: 1; width: 232px; aspect-ratio: 390 / 844; flex: none; scroll-snap-align: center; pointer-events: auto; }
  .flow-item:not(.phone) { display: none; }
  .flow-item .shot, .flow-item[data-at="0"] .shot { padding: 0; background: var(--surface); border-radius: 26px; box-shadow: none; }
  .flow-item .shot > img.design, .flow-item[data-at="0"] .shot > img.design { object-fit: cover; filter: none; }
  .flow .chrome { display: none !important; }
  .under { display: none; }
  .made { text-align: left; padding: 32px 0; }
  .made h2 { margin: 10px 0; }
  .track.back { display: none; }
  .strip { margin-top: 20px; }
  section { padding: 32px 0; }
  .head { margin-bottom: 24px; }
  .head.row { grid-template-columns: 1fr; }
  .head.row .arrow { display: none; }
  .bento { display: none; }
  .three-rows { display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 4px 20px; }
  .three-rows a { display: grid; grid-template-columns: 28px 1fr 12px; gap: 10px; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .three-rows a:last-child { border: 0; }
  .three-rows i { font: 700 13px var(--mono); color: var(--accent); font-style: normal; padding-top: 4px; }
  .three-rows b { display: block; font-size: 18px; }
  .three-rows span { color: var(--ink-soft); font-size: 15px; }
  .grid.three, .plans { grid-template-columns: 1fr; }
  .features .grid { display: none; }
  .features details { border-bottom: 1px solid var(--line); padding: 16px 0; }
  .features summary { font-size: 17px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; cursor: pointer; }
  .features summary::-webkit-details-marker { display: none; }
  .features summary::after { content: "⌄"; color: var(--ink-soft); }
  .features details[open] summary::after { content: "⌃"; }
  .features details p { color: var(--ink-soft); font-size: 15px; margin-top: 8px; }
  .plan:not(.strong) { order: 2; }
  .band { padding: 40px 20px; border-radius: 20px; }
  .band .buttons { display: none; }
  .foot-top { flex-direction: column; }
  .cols { gap: 16px; justify-content: space-between; }
  .to-top { display: none; }
  .foot-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--ground) 82%, transparent);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-top: 1px solid var(--line); }
  .page-top { padding: 40px 0 24px; text-align: left; justify-items: start; }
  .page-top p { font-size: 17px; }
}
@media (min-width: 761px) { .three-rows, .features details { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .track, .pointer { animation: none !important; }
  .flow-item, .reveal { transition: none; }
  .reveal { opacity: 1; transform: none; }
}
@media (min-width: 761px) { .flow-item.phone { display: none; } }
.still .reveal { opacity: 1; transform: none; transition: none; }
.still .track, .still .pointer { animation: none !important; }
.still .flow-item { transition: none; }

/* ---- the Docs: topics, the article, the headings of this page ---- */
.mark span { color: var(--ink-soft); font-weight: 600; }
.docs .nav .wrap, .docs footer .wrap { width: min(1400px, 100% - 40px); }
.docs footer { margin-top: 0; }
.doc-search { position: relative; }
.doc-search input { width: 220px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 400 14px var(--sans); padding: 0 34px 0 12px; -webkit-appearance: none; appearance: none; }
.doc-search input::placeholder { color: var(--ink-soft); }
.doc-search input:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.doc-search kbd { position: absolute; right: 8px; top: 9px; pointer-events: none; }
.doc-search input:focus + kbd, .doc-search input:not(:placeholder-shown) + kbd { display: none; }
.doc-found { position: absolute; right: 0; top: 46px; width: min(460px, 92vw); max-height: min(70vh, 560px); overflow: auto; background: var(--raised); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; z-index: 60; }
.doc-found a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 9px; }
.doc-found a.on, .doc-found a:hover { background: var(--surface); }
.doc-found b { font-size: 15px; }
.doc-found small { font-size: 12px; color: var(--accent); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.doc-found span { font-size: 13px; color: var(--ink-soft); line-height: 1.45; }
.doc-found mark { background: color-mix(in srgb, var(--accent) 22%, transparent); color: inherit; border-radius: 3px; }
.doc-found p { margin: 0; padding: 14px 12px; font-size: 14px; color: var(--ink-soft); }
kbd { font: 600 12px var(--mono); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line); border-bottom-width: 2px; background: var(--raised); color: var(--ink); white-space: nowrap; }

.doc-wrap { width: min(1400px, 100% - 40px); margin-inline: auto; display: grid; grid-template-columns: 250px minmax(0, 1fr) 220px; gap: 48px; align-items: start; }
.doc-side, .doc-toc { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; padding: 28px 0 40px; scrollbar-width: thin; }
.doc-menu > summary { display: none; }
.doc-side nav details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.doc-side nav summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 9px 0; font-size: 14px; font-weight: 700; }
.doc-side nav summary::-webkit-details-marker { display: none; }
.doc-side nav summary::after { content: ""; width: 7px; height: 7px; border-right: 1.75px solid var(--ink-soft); border-bottom: 1.75px solid var(--ink-soft); transform: rotate(-45deg); transition: transform .15s; margin-right: 4px; }
.doc-side nav details[open] > summary::after { transform: rotate(45deg); }
.doc-side nav details > div { display: grid; padding: 0 0 10px; }
.doc-side nav a { padding: 6px 12px; border-radius: 8px; font-size: 14px; color: var(--ink-soft); }
.doc-side nav a:hover { color: var(--ink); }
.doc-side nav a[aria-current] { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-weight: 600; }
.doc-toc b { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.doc-toc nav { display: grid; margin-top: 12px; border-left: 1px solid var(--line); }
.doc-toc a { padding: 5px 0 5px 14px; margin-left: -1px; border-left: 1px solid transparent; font-size: 13px; line-height: 1.4; color: var(--ink-soft); }
.doc-toc a.h3 { padding-left: 26px; }
.doc-toc a:hover { color: var(--ink); }
.doc-toc a.on { color: var(--accent); border-left-color: var(--accent); }

.doc.prose { max-width: 780px; width: 100%; margin: 0; padding: 36px 0 72px; }
.doc-group { font-size: 13px !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent) !important; margin-bottom: 10px !important; }
.doc.prose h1 { margin-bottom: 22px; }
.doc.prose h1 + p { font-size: 19px; line-height: 1.55; color: var(--ink); }
.doc.prose h2, .doc.prose h3 { scroll-margin-top: 84px; color: var(--ink); }
.doc.prose h2 { border-top: 1px solid var(--line); padding-top: 32px; margin-top: 40px; }
.anchor { margin-left: 8px; color: var(--line); text-decoration: none !important; opacity: 0; }
h2:hover .anchor, h3:hover .anchor, .anchor:focus { opacity: 1; color: var(--accent); }
.doc.prose li { margin: 4px 0; }
.doc.prose li > p { margin: 0 0 8px; }
.doc.prose em { color: var(--ink); }
.doc.prose pre { position: relative; font-size: 13px; line-height: 1.65; margin: 0 0 18px; }
.doc.prose pre[data-lang="text"] { white-space: pre-wrap; background: var(--raised); border-style: dashed; font-size: 14.5px; }
.pre-copy { position: absolute; right: 8px; top: 8px; opacity: 0; transition: opacity .15s; }
pre:hover .pre-copy, .pre-copy:focus { opacity: 1; }
.doc figure { margin: 22px 0 26px; }
/* A figure is shown at its own size, never larger: a picture of Nox's window is of its pixels, and stretched it blurs. */
.doc figure img { width: auto; max-width: 100%; height: auto; margin-inline: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.doc figcaption { font-size: 13.5px; color: var(--ink-soft); margin-top: 10px; text-align: center; }
.table { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 12px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-soft); line-height: 1.5; }
.doc th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: var(--surface); }
.doc tr:last-child td { border-bottom: 0; }
.doc td:first-child { color: var(--ink); white-space: nowrap; }
.way { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px 6px; margin: 0 0 18px; background: var(--surface); }
.way-tag { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; color: var(--ink-soft); display: flex; gap: 8px; align-items: center; }
.way-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-soft); }
.way.human .way-tag::before { background: var(--good); }
.way.agent { background: color-mix(in srgb, var(--accent) 6%, var(--ground)); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.way.agent .way-tag { color: var(--accent); }
.way.agent .way-tag::before { background: var(--accent); }
.way.note { border-left: 3px solid var(--accent); border-radius: 4px 14px 14px 4px; }
.way pre { background: var(--ground); }
.doc-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.doc-steps a { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none !important; color: var(--ink) !important; }
.doc-steps a:hover { border-color: var(--accent); }
.doc-steps span { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.doc-steps b { font-size: 16px; }
.doc-steps .after { text-align: right; }
.docs .foot-bar, .docs .nav .btn { display: none !important; }
.docs { padding-bottom: 0 !important; }

@media (max-width: 1180px) {
  .doc-wrap { grid-template-columns: 230px minmax(0, 1fr); gap: 36px; }
  .doc-toc { display: none; }
}
@media (max-width: 760px) {
  .doc-wrap { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .doc-side { position: static; max-height: none; padding: 12px 0 0; }
  .doc-menu { border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; background: var(--surface); }
  .doc-menu > summary { display: flex; justify-content: space-between; padding: 12px 0; font-weight: 700; font-size: 15px; list-style: none; cursor: pointer; }
  .doc-menu > summary::-webkit-details-marker { display: none; }
  .doc-menu > summary::after { content: "⌄"; color: var(--ink-soft); }
  .doc-menu[open] > summary::after { content: "⌃"; }
  /* The bar of a Docs page on a phone: the mark and its buttons, and under them the search, the whole width. */
  .docs .nav .wrap { flex-wrap: wrap; height: auto; row-gap: 10px; padding: 10px 0 12px; }
  .docs .nav.scrolled .wrap { height: auto; }
  .docs .nav-end { display: contents; }
  .docs .mark { margin-right: auto; }
  .docs .doc-search { order: 5; flex: 1 1 100%; }
  .docs .doc-search input { width: 100%; }
  .doc-search kbd { display: none; }
  .doc-found { left: 0; right: 0; width: auto; }
  .doc.prose h2, .doc.prose h3 { scroll-margin-top: 124px; }
  .doc.prose { padding-top: 24px; }
  .doc-steps { grid-template-columns: 1fr; }
  .doc-steps .after { text-align: left; }
}

/* What were style attributes in the pages, so that the Content-Security-Policy can refuse inline styles. */
.card h3.h-small { font-size: 18px; }
.card.roomy { padding: 28px; gap: 14px; }
.card p.ask-words { font: 500 17px/1.6 var(--mono); color: var(--ink); }
.tile.fit { width: auto; }
.wrap p.note-small { font-size: 15px; margin-top: 28px; }
.store-badge { display: inline-flex; }
.store-badge img { height: 48px; width: auto; }
#questions .card p a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
