/* ==========================================================================
   Nexus landing v4 — the new design layer.
   House rules: Inter only. No rounded corners. No mini labels.
   base.css (carried over from landing-v3) styles the reused sections;
   everything prefixed x- is new.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("/landing-v4/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --x-max: 1680px;
  --x-pad: clamp(16px, 4vw, 48px);
  --x-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --x-fg: #f5f5f5;
  --x-fg-2: #a3a3a3;
  --x-fg-3: #6b6b6b;
  --x-line: rgba(255, 255, 255, 0.08);
  --x-line-2: rgba(255, 255, 255, 0.14);
}

html { scroll-padding-top: 76px; }
body { background: #050505; font-optical-sizing: auto; overflow-x: clip; }
::selection { background: rgba(255, 255, 255, 0.9); color: #050505; }

/* The reused sections keep their internals; only the frame changes. */
.wrap { max-width: var(--x-max); padding: 0 var(--x-pad); }
.section { border-top: 0; padding: clamp(76px, 8.5vw, 124px) 0; }
.x-wrap { max-width: var(--x-max); margin: 0 auto; padding: 0 var(--x-pad); }

/* ---- buttons -------------------------------------------------------------- */
.x-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border: 1px solid transparent;
  font-size: 14px; font-weight: 500; letter-spacing: -0.005em; line-height: 1;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--x-ease);
}
.x-btn .arr { display: inline-block; transition: transform 0.25s var(--x-ease); }
.x-btn:hover .arr { transform: translateX(3px); }
.x-btn:active { transform: translateY(1px); }
.x-btn-primary { background: #fff; color: #050505; font-weight: 600; }
.x-btn-primary:hover { background: #e6e6e6; }
.x-btn-ghost { color: var(--x-fg); border-color: var(--x-line-2); background: rgba(255, 255, 255, 0.03); }
.x-btn-ghost:hover { border-color: rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.07); }
.x-btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.x-btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.x-btn:focus-visible, .x-links a:focus-visible, .x-pill:focus-visible, .x-host:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---- nav ------------------------------------------------------------------ */
.x-nav {
  position: fixed; inset: 0 0 auto; z-index: 60; height: 64px;
  display: flex; align-items: center; border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.x-nav.scrolled {
  background: rgba(5, 5, 5, 0.76);
  -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px);
  border-bottom-color: var(--x-line);
}
.x-nav > .x-wrap { display: flex; align-items: center; gap: 24px; width: 100%; }
.x-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.x-brand svg { width: 19px; height: 19px; display: block; }
.x-links { display: flex; gap: 30px; margin: 0 auto; }
.x-links a { font-size: 13.5px; color: var(--x-fg-2); text-decoration: none; transition: color 0.15s; }
.x-links a:hover { color: #fff; }
.x-nav-r { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.x-signin { font-size: 13.5px; color: var(--x-fg-2); text-decoration: none; padding: 0 12px; transition: color 0.15s; }
.x-signin:hover { color: #fff; }

/* ---- section head ----------------------------------------------------------- */
.x-head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 20px clamp(32px, 5vw, 96px); align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.x-h2 {
  margin: 0; color: #fff; font-weight: 600;
  font-size: clamp(34px, 4.7vw, 64px); line-height: 1.0; letter-spacing: -0.042em; text-wrap: balance;
}
.x-lede {
  margin: 0; color: var(--x-fg-2); font-size: clamp(15.5px, 1.3vw, 18px);
  line-height: 1.55; letter-spacing: -0.008em; max-width: 46ch; text-wrap: pretty;
}

/* ---- hero ------------------------------------------------------------------- */
.x-hero { position: relative; min-height: min(100vh, 900px); padding: clamp(128px, 14vw, 168px) 0 clamp(72px, 8vw, 104px); overflow: clip; display: flex; flex-direction: column; justify-content: center; }

/* Filter cards on a concave arc behind the headline. Positions are set per
   frame by v4.js (the arc drifts slowly, like the old hero's carousel). */
.x-arc {
  --cw: clamp(280px, 24vw, 620px);
  position: absolute; left: 0; right: 0; top: 0; height: clamp(620px, 62vw, 1100px);
  pointer-events: none; overflow: hidden; z-index: 0; isolation: isolate;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 58%, transparent 80%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 58%, transparent 80%);
}
/* Each card carries its own perspective() in its transform (set by v4.js),
   centred on the stage, so the arc renders the same in Safari, where 3D
   under a masked, clipped parent gets flattened. */
.x-arc-stage { position: absolute; left: 50%; top: 40%; width: 0; height: 0; }
.x-arc-card {
  position: absolute; left: 0; top: 0; margin: 0;
  width: var(--cw, 280px); aspect-ratio: 440 / 580;
  margin-left: calc(var(--cw, 280px) / -2); margin-top: calc(var(--cw, 280px) * 0.659 * -1);
  backface-visibility: hidden; will-change: transform, opacity;
  border: 1px solid rgba(255, 255, 255, 0.1); background: #0a0a0a; overflow: hidden;
  opacity: 0;
}
.x-arc-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* keeps the headline readable over the cards; above phone width it is
   centred on the headline via --hy (set by v4.js, which also moves the arc) */
.x-hero::before {
  content: ""; position: absolute; z-index: 1; pointer-events: none;
  left: 50%; top: calc(var(--hy, 418px) - 258px); width: min(1100px, 96vw); height: 560px; transform: translateX(-50%) translateZ(0);
  background: radial-gradient(50% 50% at 50% 46%, rgba(5, 5, 5, 0.9) 0%, rgba(5, 5, 5, 0.62) 55%, rgba(5, 5, 5, 0) 100%);
}
/* translateZ(0): keeps text above the 3D cards in Safari, which otherwise
   paints transformed layers over later, flat siblings */
.x-hero-copy { position: relative; z-index: 2; transform: translateZ(0); display: flex; flex-direction: column; align-items: center; text-align: center; }
.x-pill {
  display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 16px;
  border: 1px solid var(--x-line-2); background: rgba(10, 10, 10, 0.85);
  font-size: 13.5px; color: var(--x-fg); text-decoration: none; margin-bottom: 30px;
  transition: border-color 0.2s;
}
.x-pill:hover { border-color: rgba(255, 255, 255, 0.34); }
.x-pill-apple { width: 12px; height: 15px; margin-top: -2px; fill: currentColor; flex: none; }
.x-pill .arr { color: var(--x-fg-2); transition: transform 0.25s var(--x-ease); }
.x-pill:hover .arr { transform: translateX(3px); }
.x-h1 {
  margin: 0; color: #fff; font-weight: 600;
  font-size: clamp(46px, 7.6vw, 112px); line-height: 0.93; letter-spacing: -0.052em; text-wrap: balance;
}
.x-h1 .l2 { display: block; color: #6f6f6f; }
.x-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 44px; }
.x-apps { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 14px; margin-top: 44px; font-size: 15px; letter-spacing: -0.01em; }
.x-apps-k { margin-right: 6px; color: var(--x-fg-3); }
.x-app { display: inline-flex; align-items: center; }
.x-app svg { width: 26px; height: 26px; display: block; flex: none; }

/* ---- plugins: app tabs over one window, a caption per app ------------------- */
.x-hostbar { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.x-host {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 18px; cursor: pointer;
  border: 1px solid var(--x-line); background: #0a0a0a; color: var(--x-fg-2);
  font: inherit; font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.x-host svg { width: 22px; height: 22px; display: block; flex: none; }
.x-host:hover { color: #fff; border-color: var(--x-line-2); }
.x-host.on { color: #fff; border-color: rgba(255, 255, 255, 0.28); background: #111; }
.x-host i { position: absolute; left: -1px; right: -1px; bottom: -1px; height: 2px; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }
.x-host.on i { animation: x-fill var(--dur, 4.5s) linear forwards; }
.x-hostbar.held .x-host.on i, .x-hostbar.idle .x-host.on i { animation: none; transform: scaleX(1); }
@keyframes x-fill { to { transform: scaleX(1); } }
.x-shot { position: relative; margin: 0; }
.x-shot::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; inset: 4% 6% -4%;
  background: radial-gradient(40% 50% at 40% 46%, rgba(255, 106, 0, 0.16), transparent 70%);
  filter: blur(40px);
}
.x-shot-frame {
  position: relative; overflow: hidden; aspect-ratio: 1000 / 636;
  border: 1px solid rgba(255, 255, 255, 0.14); background: #070707;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9);
}
.x-host-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0;
  opacity: 0; transition: opacity 0.7s var(--x-ease);
}
.x-host-img.on { opacity: 1; }
/* Beside the shot: what the plugin really does in that app. One claim, one line, and a
   close-up from the app that proves it. The proofs stack in one cell and cross-fade with the tabs. */
.x-plugs { display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 25vw, 400px); gap: clamp(28px, 3.4vw, 56px); align-items: center; }
.x-rail { display: grid; }
.x-proof { grid-area: 1 / 1; align-self: center; min-width: 0; opacity: 0; visibility: hidden; transition: opacity 0.5s var(--x-ease), visibility 0s linear 0.5s; }
.x-proof.on { opacity: 1; visibility: visible; transition: opacity 0.5s var(--x-ease), visibility 0s; }
.x-proof-who { margin: 0 0 12px; font-size: 13.5px; font-weight: 500; color: var(--x-fg-3); }
.x-proof-h { margin: 0 0 12px; color: #fff; font-weight: 600; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
.x-proof-p { margin: 0 0 22px; color: var(--x-fg-2); font-size: 15.5px; line-height: 1.55; letter-spacing: -0.005em; text-wrap: balance; }
.x-proof-btn {
  position: relative; display: flex; align-items: center; justify-content: center; height: 36px; margin: 0 0 14px;
  border: 1px solid #3a3a3a; background: #151515; color: #e8e8e8; font-size: 12.5px; font-weight: 500;
}
.x-proof-btn svg { position: absolute; right: 24%; top: 18px; width: 15px; height: 21px; }
.x-proof-card { border: 1px solid var(--x-line-2); background: #0a0a0a; }
.x-proof-bar { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-bottom: 1px solid var(--x-line); font-size: 12.5px; font-weight: 500; color: var(--x-fg-2); }
.x-proof-bar s { flex: none; width: 7px; height: 7px; background: #7df9ff; }
.x-proof-card img { display: block; width: 100%; height: auto; }
@media (max-width: 1000px) {
  .x-plugs { grid-template-columns: minmax(0, 1fr); }
  .x-rail { max-width: 520px; }
}

.x-plug-cta { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 36px; font-size: 14.5px; color: var(--x-fg-2); }

/* ---- studio bento ------------------------------------------------------------ */
.x-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.x-tile {
  position: relative; grid-column: span var(--span, 6); min-height: var(--h, 380px);
  display: flex; flex-direction: column; overflow: hidden; isolation: isolate;
  border: 1px solid var(--x-line); background: linear-gradient(180deg, #0d0d0d 0%, #080808 100%);
}
.x-tile-copy { position: relative; z-index: 2; padding: clamp(22px, 2.2vw, 30px) clamp(22px, 2.2vw, 30px) 0; }
.x-tile h3 { margin: 0 0 8px; font-size: 19px; font-weight: 600; letter-spacing: -0.022em; color: #fff; }
.x-tile p { margin: 0; max-width: 46ch; font-size: 14.5px; line-height: 1.55; color: var(--x-fg-2); text-wrap: pretty; }
.x-tile-media { position: relative; flex: 1; min-height: 0; margin-top: 24px; }
.x-tile-canvas .x-tile-shot { margin: auto clamp(22px, 2.2vw, 30px) 0; padding-top: 24px; }
.x-tile-canvas .x-tile-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--x-line-2); border-bottom: 0; }
.x-tile h3 { display: flex; align-items: center; gap: 10px; }
.x-tile h3 i { width: 8px; height: 8px; flex: none; background: var(--c, #fff); box-shadow: 0 0 12px var(--c, #fff); }
.x-stat { margin-top: auto; padding: 0 clamp(22px, 2.2vw, 30px) clamp(22px, 2.2vw, 30px); }
.x-big { display: block; font-size: clamp(54px, 6vw, 84px); font-weight: 600; letter-spacing: -0.06em; line-height: 0.9; color: #fff; }
.x-big small { font-size: 0.34em; letter-spacing: -0.02em; color: var(--x-fg-3); margin-left: 6px; font-weight: 500; }
.x-fmt, .x-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.x-fmt { margin-top: 16px; }
.x-fmt span { font-size: 12px; font-weight: 500; color: #d4d4d4; padding: 5px 9px; border: 1px solid var(--x-line-2); }
.x-chip { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px; border: 1px solid var(--x-line-2); background: rgba(255, 255, 255, 0.03); font-size: 12.5px; color: var(--x-fg); white-space: nowrap; }
.x-chip svg { width: 13px; height: 13px; display: block; }
/* generator chips: a tidy 3 + 2 grid, bigger than the format chips */
.x-chips { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.x-chips .x-chip { grid-column: span 2; height: 40px; padding: 0 14px; gap: 10px; font-size: 14.5px; font-weight: 500; }
.x-chips .x-chip:nth-child(n+4) { grid-column: span 3; }
.x-chips .x-chip svg { width: 16px; height: 16px; }
/* radial repeat: a real Nexus tool. The source bar is selected (cyan);
   its copies appear one by one around the pivot when the tile reveals. */
.x-radial svg { display: block; width: 100%; max-width: 230px; height: auto; margin: 0 auto; overflow: visible; }
.x-radial .guide { stroke: #22d3ee; stroke-width: 1; stroke-dasharray: 3 4; opacity: 0.4; }
.x-radial .rose rect { fill: #fff; fill-opacity: 0.92; }
.x-radial .rose rect.src { fill: #22d3ee; fill-opacity: 1; }
.x-radial .sel { fill: none; stroke: #22d3ee; stroke-width: 1; stroke-dasharray: 3 3; opacity: 0.75; }
.x-radial .pivot { fill: #050505; stroke: #22d3ee; stroke-width: 1.5; }
.x-tile .x-radial .rose rect:not(.src) { opacity: 0; }
.x-tile.in .x-radial .rose rect:not(.src) { animation: x-pop 0.45s var(--x-ease) forwards; animation-delay: calc(var(--k, 0) * 70ms + 300ms); }
@keyframes x-pop { to { opacity: 1; } }
.x-keys { display: grid; gap: 9px; }
.x-keys span { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--x-fg-2); }
.x-keys kbd { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border: 1px solid var(--x-line-2); border-bottom-width: 2px; background: #121212; color: #e5e5e5; font-family: inherit; font-size: 12px; font-weight: 500; }
.x-keys kbd + kbd { margin-right: 6px; }
.x-tile.wide .x-tile-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 40px; align-items: end; }
.x-tile.wide .x-tile-copy h3 { margin: 0; font-size: clamp(22px, 2vw, 28px); }
.x-tile.wide .x-tile-media { margin: 28px clamp(22px, 2.2vw, 30px) 0; border: 1px solid var(--x-line); border-bottom: 0; overflow: hidden; }
.x-tile.wide .x-tile-media img { display: block; width: 100%; height: auto; }

.x-vid {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: min(66%, 300px); aspect-ratio: 608 / 1080; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14); border-bottom: 0; background: #000;
  box-shadow: 0 30px 80px -20px rgba(74, 222, 128, 0.25);
}
.x-vid video { width: 100%; height: 100%; object-fit: cover; display: block; }
.x-tl { position: absolute; inset: 0 0 0 clamp(22px, 2.2vw, 30px); overflow: hidden; border-left: 1px solid var(--x-line); border-top: 1px solid var(--x-line); }
.x-tl img { display: block; width: 880px; max-width: none; height: auto; }
.x-vec { position: absolute; inset: 0; display: grid; place-items: center; }
.x-vec svg { width: min(92%, 520px); height: auto; overflow: visible; }
.x-vec .pth { fill: none; stroke: #fff; stroke-width: 2; stroke-dasharray: 900; stroke-dashoffset: 900; }
.x-tile.in .x-vec .pth { animation: x-draw 2.4s var(--x-ease) forwards 0.2s; }
@keyframes x-draw { to { stroke-dashoffset: 0; } }
.x-vec .hdl { stroke: rgba(255, 255, 255, 0.35); stroke-width: 1; }
.x-vec .anc { fill: #050505; stroke: #22d3ee; stroke-width: 1.5; }
.x-vec .knob { fill: #22d3ee; }
.x-vec .sel { fill: none; stroke: #22d3ee; stroke-width: 1; stroke-dasharray: 3 3; opacity: 0.6; }
/* phone-only pieces: the short copy and the drawn timeline */
.x-tile .x-short, .x-kf { display: none; }
.x-kf .rl { stroke: rgba(255, 255, 255, 0.14); }
.x-kf .tk { stroke: rgba(255, 255, 255, 0.3); }
.x-kf .ln { stroke: rgba(255, 255, 255, 0.06); }
.x-kf .bar { fill: #facc15; opacity: 0.45; }
.x-kf .bar.b2 { fill: #fff; opacity: 0.22; }
.x-kf .k { fill: #0a0a0a; stroke: #facc15; stroke-width: 1.3; animation: x-kfhit 4.5s linear infinite; animation-delay: calc(var(--t) * 4.5s); }
.x-kf .k.b2 { stroke: #e5e5e5; }
.x-kf .ph { fill: #fff; animation: x-ph 4.5s linear infinite; }
.x-kf .phl { stroke: #fff; stroke-width: 1; }
@keyframes x-ph { from { transform: translateX(6px); } to { transform: translateX(144px); } }
@keyframes x-kfhit { 0%, 12% { fill: #facc15; } 40%, 100% { fill: #0a0a0a; } }
.x-kf .k.b2 { animation-name: x-kfhit2; }
@keyframes x-kfhit2 { 0%, 12% { fill: #e5e5e5; } 40%, 100% { fill: #0a0a0a; } }


/* ---- reused sections: light retouches ------------------------------------------ */
#how .create-copy .x-head { grid-template-columns: 1fr; margin-bottom: 36px; }
#how .create-copy .x-lede { max-width: 44ch; }
#gallery .gal-foot { margin-top: 36px; }
/* Phones: the rails carry real filters, so the cards get real size: most of
   the screen wide and 4:3, which also crops the square previews less. */
@media (max-width: 700px) {
  #gallery .gal { gap: 12px; }
  #gallery .gcard { width: min(76vw, 320px); margin-right: 12px; }
  #gallery .gc-img { aspect-ratio: 4 / 3; }
  #gallery .gc-foot { padding: 11px 12px; }
  #gallery .gc-name { font-size: 14px; }
  #gallery .gc-fam { font-size: 12.5px; }
}
#download.section { padding-bottom: clamp(56px, 7vw, 104px); }
#download .x-h2 { font-size: clamp(34px, 4.2vw, 56px); }
@media (min-width: 1001px) {
  #how .create-grid { align-items: start; }
  #how .create-copy { position: sticky; top: 112px; }
  #faq .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
  #faq .x-head { grid-template-columns: 1fr; position: sticky; top: 112px; margin-bottom: 0; }
}

/* ---- closing CTA ------------------------------------------------------------------ */
.x-final { position: relative; padding: clamp(110px, 14vw, 190px) 0; overflow: clip; text-align: center; }
.x-final-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1.3px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 50% 60% at 50% 50%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 50% 60% at 50% 50%, #000 10%, transparent 70%);
}
.x-final .x-mark { width: 56px; height: 56px; margin: 0 auto 34px; color: #fff; filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.25)); }
.x-final .x-mark svg { width: 100%; height: 100%; display: block; }
.x-final .x-h2 { font-size: clamp(40px, 6vw, 88px); letter-spacing: -0.05em; }
.x-final .x-lede { margin: 22px auto 0; text-align: center; text-wrap: balance; }
.dl-copy .x-lede { text-wrap: balance; }
.x-final .x-ctas { margin-top: 34px; }

/* ---- footer ------------------------------------------------------------------------ */
.x-foot { border-top: 1px solid var(--x-line); padding: 64px 0 36px; font-size: 13.5px; }
.x-foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)) 1.6fr; gap: 40px; }
.x-foot .x-brand { margin-bottom: 14px; }
.x-foot p { margin: 0; color: var(--x-fg-3); line-height: 1.55; }
.x-foot h4 { margin: 0 0 14px; font-size: 13.5px; font-weight: 600; color: var(--x-fg); letter-spacing: -0.005em; }
.x-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.x-foot a { color: var(--x-fg-2); text-decoration: none; transition: color 0.15s; }
.x-foot a:hover { color: #fff; }
.x-foot .nl-row { display: flex; gap: 6px; }
.x-foot .nl-in {
  flex: 1; min-width: 0; height: 38px; padding: 0 12px;
  border: 1px solid var(--x-line-2); background: rgba(255, 255, 255, 0.03); color: #fff; font: inherit; font-size: 13.5px;
}
.x-foot .nl-in:focus { outline: none; border-color: rgba(255, 255, 255, 0.4); }
.x-foot .nl-row .btn { height: 38px; padding: 0 14px; background: #fff; color: #050505; border-color: #fff; font-weight: 600; font-size: 13px; }
.x-foot .nl-note { margin-top: 10px; font-size: 12.5px; color: var(--x-fg-3); }
.x-foot .nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.x-legal {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--x-line); font-size: 12.5px; color: var(--x-fg-3);
}
.x-legal a { color: var(--x-fg-3); margin-left: 16px; }
.x-legal .synkit-by { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.x-legal .synkit-logo { height: 14px; width: auto; opacity: 0.7; }

/* ---- reveal -------------------------------------------------------------------------- */
.x-rv { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--x-ease), transform 0.9s var(--x-ease); transition-delay: calc(var(--d, 0) * 90ms); }
.x-rv.in, .rvshow .x-rv { opacity: 1; transform: none; }
.rvshow .x-vec .pth { stroke-dashoffset: 0; }
.rvshow .x-radial .rose rect { opacity: 1; }
.x-hero .x-rv { transition-duration: 1.1s; }

/* ---- responsive ---------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .x-links { gap: 22px; }
  .x-foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .x-foot-grid > :first-child, .x-foot-grid > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .x-links { display: none; }
  .x-nav-r { margin-left: auto; }
  .x-head { grid-template-columns: 1fr; align-items: start; }
  .x-tile.wide .x-tile-copy { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .x-nav { height: 58px; }
  .x-signin { display: none; }
  .x-hero { padding-top: 108px; }
  .x-arc { --p: 380px; --cw: 190px; height: 560px; }
  .x-hero::before { top: 100px; height: 520px; }
  .x-pill { font-size: 12.5px; margin-bottom: 24px; }
  .x-h1 { font-size: clamp(50px, 16vw, 70px); }
  .x-ctas { flex-direction: column; align-items: stretch; width: 100%; margin-top: 36px; }
  .x-ctas .x-btn { height: 48px; font-size: 15px; }
  .x-hostbar { gap: 4px; flex-wrap: nowrap; }
  .x-host { flex: 1; justify-content: center; height: 48px; padding: 0; }
  .x-host span { display: none; }
  .x-apps { gap: 10px 12px; margin-top: 36px; font-size: 14px; }
  .x-apps-k { margin-right: 4px; }
  .x-app svg { width: 24px; height: 24px; }
  .x-proof-h { font-size: 30px; }
  .x-proof-p { font-size: 15px; }
  .x-foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .x-legal { flex-direction: column; align-items: flex-start; }
  .x-legal a:first-of-type { margin-left: 10px; }
}
/* Tablets and phones: still a bento, not a stack. Canvas across the top; the
   tall video beside keyframes and vectors; 8K beside the tools; generators
   across the bottom. */
@media (max-width: 1100px) {
  .x-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; }
  .x-tile { grid-column: auto; }
  .x-tile-canvas, .x-tile-gens { grid-column: 1 / -1; }
  .x-tile-vid { grid-row: span 2; }
  .x-tile-vid .x-vid { inset: 0; width: auto; transform: none; aspect-ratio: auto; border: 0; border-top: 1px solid var(--x-line-2); box-shadow: none; }
  .x-tile-gens .x-chips { max-width: 560px; }
}
/* Phones: the small tiles swap their paragraph for a one-liner. */
@media (max-width: 700px) {
  .x-bento { gap: 10px; }
  .x-tile { min-height: 0; }
  .x-tile-copy { padding: 18px 18px 0; }
  .x-tile h3 { gap: 8px; margin-bottom: 6px; font-size: 16px; line-height: 1.25; text-wrap: balance; }
  .x-tile-canvas h3, .x-tile-gens h3 { gap: 10px; font-size: 18px; }
  .x-tile .x-long { display: none; }
  .x-tile .x-short { display: block; font-size: 13.5px; line-height: 1.45; text-wrap: balance; }
  .x-tile-canvas p, .x-tile-gens p { font-size: 14px; }
  .x-tile-media { margin-top: 14px; }
  .x-stat { padding: 14px 18px 18px; }
  .x-tile-canvas .x-tile-shot { margin: auto 18px 0; padding-top: 18px; }
  .x-tile-work .x-radial svg { width: 150%; margin-left: -25%; }
  .x-tile-kf .x-tl { display: none; }
  .x-tile-kf .x-kf { display: block; width: calc(100% - 36px); height: auto; margin: 0 18px 18px; overflow: visible; }
  .x-tile-vec .x-vec { position: static; display: block; padding: 4px 18px 20px; overflow: hidden; }
  .x-tile-vec .x-vec svg { display: block; width: 124%; margin-left: -12%; }
  .x-big { font-size: 46px; }
  .x-fmt { display: grid; grid-template-columns: repeat(2, max-content); gap: 5px; margin-top: 12px; }
  .x-fmt span { padding: 4px 7px; font-size: 11.5px; }
  .x-radial svg { max-width: none; }
  .x-chips .x-chip { height: 38px; padding: 0 10px; gap: 8px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .x-rv { opacity: 1; transform: none; transition: none; }
  .x-host.on i { animation: none; transform: scaleX(1); }
  .x-vec .pth { stroke-dashoffset: 0; animation: none !important; }
  .x-kf .ph { animation: none; transform: translateX(62px); }
  .x-kf .k { animation: none; }
  .x-radial .rose rect { opacity: 1 !important; animation: none !important; }
}

/* ---- create: the authoring chat (driven by authoring.js) ------------------------
   Mirrors the product's Create column: 352px, square, Inter, one composer; the
   accent (--cc) is cyan until the result's identity card recolors it. */
.x-ac { --cc: #7df9ff; display: grid; grid-template-columns: 352px minmax(0, 1fr); height: clamp(560px, 46vw, 660px); border: 1px solid var(--x-line-2); background: #070707; box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9); overflow: hidden; }
.x-ac-col { display: flex; flex-direction: column; min-height: 0; background: #0a0a0a; border-right: 1px solid var(--x-line); }
.x-ac-top { display: flex; align-items: center; gap: 9px; height: 46px; flex: none; padding: 0 16px; border-bottom: 1px solid var(--x-line); font-size: 13px; font-weight: 600; color: #fff; }
.x-ac-top svg { width: 14px; height: 14px; display: block; }
.x-ac-log { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: 16px; }
.x-ac-msg.me { align-self: flex-end; max-width: 90%; padding: 10px 12px; background: #151515; border: 1px solid var(--x-line-2); font-size: 13.5px; line-height: 1.5; color: #f0f0f0; animation: x-in 0.35s var(--x-ease); }
.x-ac-msg.me p { margin: 7px 0 0; }
.x-ac-att { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border: 1px solid var(--x-line-2); font-size: 11.5px; color: var(--x-fg-2); }
.x-ac-att svg, .x-ac-chip svg { width: 12px; height: 12px; display: block; }
.x-ac-phase { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--x-fg-2); animation: x-in 0.3s var(--x-ease); }
.x-ac-phase i { width: 8px; height: 8px; flex: none; background: var(--cc); box-shadow: 0 0 12px var(--cc); animation: x-pulse 1s ease-in-out infinite; }
@keyframes x-pulse { 50% { opacity: 0.35; } }
@keyframes x-in { from { opacity: 0; transform: translateY(6px); } }
.x-ac-code { flex: none; border: 1px solid var(--x-line-2); background: #0d0d0d; animation: x-in 0.35s var(--x-ease); }
.x-ac-code .h { display: flex; align-items: center; justify-content: space-between; height: 32px; padding: 0 10px; border-bottom: 1px solid var(--x-line); font-size: 12px; color: var(--x-fg-2); }
.x-ac-code .h b { width: 14px; height: 14px; border: 1px solid var(--x-line-2); background: linear-gradient(#bbb, #bbb) center / 6px 6px no-repeat; }
.x-ac-code pre { margin: 0; padding: 10px 12px; max-height: 170px; overflow: hidden; font-family: inherit; font-size: 11.5px; line-height: 1.6; color: #b8b8b8; white-space: pre-wrap; word-break: break-word; font-variant-numeric: tabular-nums; }
.x-ac-code pre { transition: max-height 0.5s var(--x-ease), padding 0.5s var(--x-ease); }
.x-ac-code.done pre { max-height: 0; padding-top: 0; padding-bottom: 0; }
.x-ac-code.done .h { border-bottom-color: transparent; }
.x-ac-code.done .h b { width: 10px; height: 6px; border: 0; border-left: 1.5px solid #7df9ff; border-bottom: 1.5px solid #7df9ff; background: none; transform: translate(-2px, -2px) rotate(-45deg); }
.x-ac-code .k { color: #c3a6ff; } .x-ac-code .n { color: #fff; } .x-ac-code .f { color: #7df9ff; } .x-ac-code .c { color: #5f5f5f; }
.x-ac-card { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border: 1px solid var(--cc); background: color-mix(in srgb, var(--cc) 7%, transparent); box-shadow: 0 0 24px color-mix(in srgb, var(--cc) 16%, transparent); animation: x-in 0.45s var(--x-ease); }
.x-ac-card .g { width: 32px; height: 32px; flex: none; display: grid; place-items: center; color: var(--cc); border: 1px solid color-mix(in srgb, var(--cc) 55%, transparent); background: color-mix(in srgb, var(--cc) 12%, transparent); box-shadow: 0 0 14px color-mix(in srgb, var(--cc) 22%, transparent); }
.x-ac-card .g svg { width: 16px; height: 16px; display: block; }
.x-ac-card b { display: block; margin-bottom: 3px; font-size: 14.5px; font-weight: 600; color: var(--cc); }
.x-ac-card .t { flex: 1; min-width: 0; }
.x-ac-card .d { display: block; font-size: 12.5px; line-height: 1.45; color: var(--x-fg-2); }
.x-ac-comp { flex: none; margin: 0 12px 12px; padding: 8px 8px 7px; border: 1px solid var(--x-line-2); background: #0f0f0f; transition: border-color 0.15s, box-shadow 0.2s; }
.x-ac.can-send .x-ac-comp { border-color: color-mix(in srgb, var(--cc) 55%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--cc) 12%, transparent); }
.x-ac-chips { display: flex; gap: 6px; }
.x-ac-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; margin-bottom: 8px; border: 1px solid var(--cc); background: color-mix(in srgb, var(--cc) 7%, transparent); font-size: 11.5px; color: #fff; animation: x-in 0.3s var(--x-ease); }
.x-ac-chip i { font-style: normal; color: var(--x-fg-3); margin-left: 2px; }
.x-ac-input { position: relative; min-height: 46px; padding: 0 2px; font-size: 14px; line-height: 1.5; color: var(--x-fg); }
.x-ac-ph { position: absolute; left: 2px; top: 0; color: var(--x-fg-3); pointer-events: none; }
.x-ac-caret { display: inline-block; width: 1.5px; height: 1.1em; margin-left: 1px; vertical-align: -0.18em; background: var(--cc); animation: x-caret 1s steps(1) infinite; }
@keyframes x-caret { 50% { opacity: 0; } }
.x-ac.sent .x-ac-caret { visibility: hidden; }
.x-ac-foot { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.x-ac-fb { display: grid; place-items: center; width: 26px; height: 26px; color: var(--x-fg-3); }
.x-ac-fb svg, .x-ac-send svg { width: 14px; height: 14px; display: block; }
.x-ac-hint { margin-left: auto; margin-right: 4px; font-size: 11px; color: #4d4d4d; }
.x-ac-send { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid var(--x-line-2); color: var(--x-fg-3); transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s; }
.x-ac.can-send .x-ac-send { border-color: var(--cc); background: var(--cc); color: #031316; box-shadow: 0 0 16px color-mix(in srgb, var(--cc) 30%, transparent); }
.x-ac-canvas { position: relative; min-width: 0; background-color: #060606; background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.2px); background-size: 20px 20px; }
.x-ac-canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@media (max-width: 900px) {
  .x-ac { grid-template-columns: 1fr; height: auto; }
  .x-ac-canvas { order: -1; aspect-ratio: 4 / 5; border-bottom: 1px solid var(--x-line); }
  .x-ac-col { border-right: 0; }
  .x-ac-log { height: 320px; flex: none; }
}
@media (prefers-reduced-motion: reduce) { .x-ac-caret, .x-ac-phase i { animation: none; } }

/* the result card's controls: real names, real values; one of them moves */
.x-ac-ctl { display: grid; gap: 8px; margin-top: 11px; padding-top: 11px; border-top: 1px solid color-mix(in srgb, var(--cc) 25%, transparent); }
.x-ac-ctl .r { display: grid; grid-template-columns: 96px minmax(0, 1fr) 48px; align-items: center; gap: 10px; font-size: 11.5px; color: var(--x-fg-2); }
.x-ac-ctl .r.col { grid-template-columns: 96px 14px minmax(0, 1fr); }
.x-ac-ctl .k { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.2s; }
.x-ac-ctl .v { text-align: right; color: #e5e5e5; font-variant-numeric: tabular-nums; transition: color 0.2s; }
.x-ac-ctl .r.col .v { text-align: left; }
.x-ac-ctl .tr { position: relative; height: 2px; background: rgba(255, 255, 255, 0.14); }
.x-ac-ctl .tr::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--p); background: var(--cc); }
.x-ac-ctl .kn { position: absolute; top: 50%; left: var(--p); width: 9px; height: 9px; background: #fff; transform: translate(-50%, -50%); }
.x-ac-ctl .sw { width: 14px; height: 14px; border: 1px solid rgba(255, 255, 255, 0.25); }
.x-ac-ctl .r.live .k, .x-ac-ctl .r.live .v { color: var(--cc); }
.x-ac-card.past .x-ac-ctl { display: none; }

/* ---- generators: five cards, no live controls (a swipeable row on phones) ------ */
.x-gens { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.x-gen { display: flex; flex-direction: column; min-width: 0; }
.x-gen-img { aspect-ratio: 3 / 4; overflow: hidden; border: 1px solid var(--x-line); background: #0a0a0a; }
.x-gen-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--x-ease); }
.x-gen:hover .x-gen-img img { transform: scale(1.04); }
.x-gen h3 { display: flex; align-items: center; gap: 9px; margin: 16px 0 6px; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; color: #fff; }
.x-gen h3 svg { width: 16px; height: 16px; display: block; flex: none; }
.x-gen p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--x-fg-2); text-wrap: pretty; }
@media (max-width: 1100px) {
  .x-gens { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(220px, 30%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
  .x-gens::-webkit-scrollbar { display: none; }
  .x-gen { scroll-snap-align: start; }
}
@media (max-width: 700px) {
  .x-gens { grid-auto-columns: 68%; gap: 10px; margin-right: calc(var(--x-pad) * -1); padding-right: var(--x-pad); }
}

/* ---- pricing: the plans grid, ported verbatim from
   src/components/billing/pricing-plans.tsx (the modal and /pricing), with
   links in place of its buttons and the phone tabs kept. ---------------- */
.nxpb {
  --nx-modal: #0b0d0f; --nx-well: #0d1012; --nx-line: #1c2124; --nx-line-2: #283034;
  --nx-fg: #eef3f5; --nx-muted: #8d999e; --nx-faint: #56616a;
  --nx-accent: #8bf0fb; --nx-accent-ink: #03262a; --nx-accent-soft: rgba(139, 240, 251, 0.12);
  --nx-check: #6fd3de; --nx-btn: #1c2226; --nx-btn-hover: #252c31;
  display: flex; flex-direction: column; width: 100%; min-width: 0;
  background: var(--nx-modal); color: var(--nx-fg); text-align: left;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px; line-height: 20px; font-weight: 400; letter-spacing: 0;
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
}
.nxpb *, .nxpb *::before { box-sizing: border-box; }
.nxpb :where(button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; border-radius: 0; }
.nxpb :focus-visible { outline: 2px solid var(--nx-accent); outline-offset: 2px; }
.nxpb :where(ul) { list-style: none; margin: 0; padding: 0; }
.nxpb :where(p) { margin: 0; }
/* The modal's height cap: the viewport minus the overlay's padding (24px a
   side, 16px at 520px and below, see hub/pricing-modal.tsx) and the dialog's
   1px border top and bottom. */
.nxpb-modal { max-height: calc(100vh - 50px); max-height: calc(100dvh - 50px); }
.nxpb-modal .nxpb-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.nxpb-modal .nxpb-body::-webkit-scrollbar-thumb { border-radius: 0; }

.nxpb-mh { position: relative; flex: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 24px 28px; }
.nxpb-mh-l { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; min-width: 0; }
.nxpb-h { margin: 0; font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; color: var(--nx-fg); }
.nxpb-apps { display: flex; align-items: center; gap: 10px; color: var(--nx-muted); white-space: nowrap; }
.nxpb-ic { display: flex; gap: 5px; }
.nxpb-ic svg { display: block; }
.nxpb-mh-r { display: flex; align-items: center; gap: 16px; }
.nxpb-toggle { display: flex; border: 1px solid var(--nx-line-2); }
.nxpb-toggle button { padding: 6px 14px; color: var(--nx-muted); white-space: nowrap; transition: color .15s, background .15s; }
.nxpb-toggle button:hover { color: var(--nx-fg); }
.nxpb-toggle button.on { background: var(--nx-fg); color: #0b0d0f; font-weight: 600; }
.nxpb-toggle .nxpb-save { margin-left: 4px; color: var(--nx-accent); font-weight: 400; }
.nxpb-toggle button.on .nxpb-save { color: #0b6d78; }
.nxpb .nxpb-x { width: 32px; height: 32px; display: grid; place-items: center; color: var(--nx-muted); transition: color .15s, background .15s; }
.nxpb .nxpb-x:hover { color: var(--nx-fg); background: var(--nx-btn); }

.nxpb-frame { margin: 0 28px 24px; border: 1px solid var(--nx-line); background: var(--nx-line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; }
.nxpb-col { background: var(--nx-modal); padding: 24px 20px; display: flex; flex-direction: column; min-width: 0; }
.nxpb-col.hot { background: linear-gradient(var(--nx-accent-soft), rgba(139, 240, 251, 0) 240px), var(--nx-modal); }
.nxpb-nm { display: flex; justify-content: space-between; align-items: center; gap: 8px; height: 24px; }
.nxpb-nm > span:first-child { font-size: 16px; line-height: 24px; font-weight: 600; white-space: nowrap; }
.nxpb-tag { font-size: 12px; line-height: 16px; font-weight: 600; padding: 2px 8px; background: var(--nx-accent-soft); color: var(--nx-accent); white-space: nowrap; }
.nxpb-tag.cur { background: rgba(238, 243, 245, 0.08); color: var(--nx-fg); }
.nxpb-tl { margin-top: 2px; color: var(--nx-muted); white-space: nowrap; }
.nxpb-rule { height: 1px; background: var(--nx-line); margin: 20px -20px 0; flex: none; }
.nxpb-pr { margin-top: 20px; display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.nxpb-pr b { font-size: 28px; line-height: 36px; font-weight: 600; letter-spacing: -0.02em; }
.nxpb-pr span { color: var(--nx-muted); }
.nxpb-bill { margin-top: 2px; font-size: 12px; line-height: 16px; color: var(--nx-muted); white-space: nowrap; }
.nxpb-bill .nxpb-save { color: var(--nx-accent); }
.nxpb-spec { margin-top: 16px; border: 1px solid var(--nx-line-2); background: var(--nx-well); }
.nxpb-spec div { height: 36px; display: flex; align-items: center; gap: 6px; padding: 0 12px; white-space: nowrap; }
.nxpb-spec div + div { border-top: 1px solid var(--nx-line); }
.nxpb-spec b { font-weight: 600; }
.nxpb-spec span { color: var(--nx-muted); }
.nxpb-spec .none, .nxpb-spec .none span { color: var(--nx-faint); }
.nxpb-inc { margin-top: 20px; font-size: 12px; line-height: 16px; color: var(--nx-muted); white-space: nowrap; }
.nxpb-sub { margin-top: 16px; font-size: 12px; line-height: 16px; color: var(--nx-muted); white-space: nowrap; }
.nxpb-fl { margin-top: 8px; display: grid; gap: 8px; }
.nxpb-fl li { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.nxpb-fl li::before { content: ""; width: 12px; height: 12px; flex-shrink: 0; background: var(--nx-check);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.3l2.4 2.3L10 3.2' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.3l2.4 2.3L10 3.2' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; }
.nxpb-grow { flex: 1; min-height: 24px; }
.nxpb .nxpb-btn { display: block; width: 100%; height: 40px; flex: none; text-align: center; font-weight: 600; background: var(--nx-btn); color: var(--nx-fg); white-space: nowrap; transition: background .15s, opacity .15s; }
.nxpb .nxpb-btn:hover:not(:disabled) { background: var(--nx-btn-hover); }
.nxpb .nxpb-btn.primary { background: var(--nx-accent); color: var(--nx-accent-ink); }
.nxpb .nxpb-btn.primary:hover:not(:disabled) { background: #b0f6fd; }
.nxpb .nxpb-btn.current { background: transparent; border: 1px solid var(--nx-line-2); color: var(--nx-muted); cursor: default; }
.nxpb .nxpb-btn.busy { cursor: progress; opacity: 0.72; }

.nxpb-msgs { margin: -8px 28px 20px; display: grid; gap: 6px; font-size: 12px; line-height: 16px; text-wrap: pretty; }
.nxpb-msgs:empty { margin: 0; }
.nxpb-err { color: #e0a4a4; }
.nxpb-denied { color: #e0c9a4; }

.nxpb-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; padding: 16px 28px; border-top: 1px solid var(--nx-line); font-size: 12px; line-height: 16px; color: var(--nx-muted); }
.nxpb-packrow { margin: 0 28px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding: 16px 20px; border: 1px solid var(--nx-line); background: var(--nx-well); }
.nxpb-packrow-l { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nxpb-packrow-l b { font-size: 16px; line-height: 24px; font-weight: 600; white-space: nowrap; }
.nxpb-packrow-l span { color: var(--nx-muted); white-space: nowrap; }
.nxpb-packrow-r { display: grid; grid-template-columns: repeat(3, 156px); gap: 8px; }
.nxpb .nxpb-pack { height: 40px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; background: var(--nx-btn); white-space: nowrap; transition: background .15s, opacity .15s; }
.nxpb .nxpb-pack b { font-weight: 600; color: var(--nx-fg); }
.nxpb .nxpb-pack span { color: var(--nx-muted); }
.nxpb .nxpb-pack:hover:not(:disabled) { background: var(--nx-btn-hover); }
.nxpb .nxpb-pack.busy { cursor: progress; opacity: 0.72; }
.nxpb-foot-r { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.nxpb-foot-r > span { white-space: nowrap; }
.nxpb-foot a { color: var(--nx-fg); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.nxpb-legal { flex-basis: 100%; color: var(--nx-muted); text-wrap: balance; }
.nxpb-legal-links { display: inline-flex; gap: 12px; white-space: nowrap; }
.nxpb-legal a { color: var(--nx-fg); }

@media (max-width: 1119px) {
  .nxpb-frame { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .nxpb-frame { grid-template-columns: minmax(0, 1fr); }
  .nxpb-packrow-r { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nxpb .nxpb-pack { height: 52px; flex-direction: column; gap: 0; }
  .nxpb .nxpb-pack span { font-size: 12px; line-height: 16px; }
}
/* Phones, as the design draws them: 16px gutters, the label next to the
   icons hidden (the icons stay on the title line), the close button pinned
   to the corner. The toggle keeps its natural width. */
@media (max-width: 520px) {
  .nxpb-mh, .nxpb-foot { padding-inline: 16px; }
  .nxpb-mh-l { padding-right: 40px; }
  .nxpb-apps-l { display: none; }
  .nxpb .nxpb-x { position: absolute; top: 22px; right: 12px; }
  .nxpb-frame, .nxpb-msgs, .nxpb-packrow { margin-inline: 16px; }
  .nxpb-packrow { padding: 16px; }
  .nxpb-modal { max-height: calc(100vh - 34px); max-height: calc(100dvh - 34px); }
}
@media (max-width: 359px) {
  .nxpb-toggle button { padding-inline: 10px; }
}
/* On the landing the grid IS the section: the full .wrap width, flush with
   the heading, on the page black with no card around it (founder,
   2026-10-01). Neutral greys in place of the modal blue tint. */
.nxl-box {
  --nx-modal: var(--bg-0); --nx-well: #0b0b0b; --nx-line: #1c1c1c; --nx-line-2: #2a2a2a;
  --nx-muted: #8f8f8f; --nx-faint: #575757; --nx-btn: #161616; --nx-btn-hover: #212121;
  background: transparent;
}
.nxl-box .nxpb-mh { padding: 0 0 20px; }
.nxl-box .nxpb-mh-l { padding-right: 0; }
.nxl-box .nxpb-frame, .nxl-box .nxpb-msgs { margin: 0; }
.nxl-box .nxpb-col { padding: 28px 24px; }
.nxl-box .nxpb-rule { margin-inline: -24px; }
.nxl-box .nxpb-packrow { margin: 24px 0 0; }
.nxl-box .nxpb-foot { padding: 16px 0 0; border-top: 0; }
/* No title beside the icons here, so their label stays on phones too. */
.nxl-box .nxpb-apps-l { display: inline; }
.nxpb a.nxpb-btn, .nxpb a.nxpb-pack { line-height: 40px; text-decoration: none; color: var(--nx-fg); }
.nxpb a.nxpb-btn.primary { color: var(--nx-accent-ink); }
.nxpb span.nxpb-btn.current { line-height: 38px; }
.nxpb-pr b span { color: inherit; }
.nxl-box .nxl-a { display: none; }
.nxl-box.annual .nxl-a { display: inline; }
.nxl-box.annual .nxl-m { display: none; }
.nxl-tabs { display: none; }
@media (max-width: 639px) {
  .nxl-tabs { display: flex; margin: 0 0 16px; border: 1px solid var(--nx-line-2); }
  .nxl-box .nxpb-col { padding: 24px 20px; }
  .nxl-box .nxpb-rule { margin-inline: -20px; }
  .nxl-tabs button { flex: 1; height: 36px; color: var(--nx-muted); transition: color .15s, background .15s; }
  .nxl-tabs button.on { background: var(--nx-fg); color: #0b0d0f; font-weight: 600; }
  .nxl-box .nxpb-col:not(.active) { display: none; }
}
