/* nerve.zone page styles. Tokens and components come from tokens.css and bundle.css (Ruled Workbench). */

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 8px); background: var(--canvas); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
a { color: var(--blue-text); }
a:hover { color: var(--heading); }
img { max-width: 100%; }
code { font-family: var(--font-mono); letter-spacing: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.nv-skip { position: absolute; left: 12px; top: -48px; z-index: 200; padding: 8px 12px; border-radius: var(--radius-control); background: var(--blue); color: var(--white); text-decoration: none; font-size: 14px; }
.nv-skip:focus { top: 12px; color: var(--white); }

/* ---------- release banner ---------- */
.nv-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; min-height: 36px; padding: 6px 16px;
  border-bottom: 1px solid var(--rule); background: var(--blue-wash); color: var(--ink); text-decoration: none; font-size: 13px; line-height: 20px; letter-spacing: 0; text-align: center; }
.nv-banner:hover { color: var(--heading); }
.nv-banner__tag { font-family: var(--font-mono); font-size: 10px; line-height: 16px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--white); background: var(--blue); padding: 1px 6px; border-radius: 3px; }
.nv-banner__cta { color: var(--blue-text); }

/* ---------- nav brand ---------- */
.nv-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 19px; line-height: 1; letter-spacing: -0.02em; color: var(--heading); }
.nv-brand img { display: block; }

/* ---------- opening ---------- */
.nv-hero { min-height: 0; padding: 96px 32px 128px; }
.nv-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 7px; border: 1px solid var(--edge-soft); border-radius: 4px; background: var(--control-fill);
  font-family: var(--font-mono); font-size: 11px; line-height: 18px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.nv-chip img { display: block; }
.nv-chip a { color: inherit; text-decoration: underline; text-decoration-color: var(--edge-soft); text-underline-offset: 3px; }
.nv-chip a:hover { color: var(--heading); }
.nv-h1 { margin: 24px 0 0; font-family: var(--font-serif); font-weight: 390; font-size: clamp(2.5rem, 1.6rem + 3.2vw, 4rem); line-height: 1.04; letter-spacing: -0.015em; color: var(--heading); }
.nv-h1 span { color: var(--blue-text); }
.nv-lead { margin: 20px auto 0; max-width: 600px; font-size: 18px; line-height: 1.5; letter-spacing: -0.025em; color: var(--ink); }
.nv-hero__actions { margin-top: 32px; }
.nv-hero__note { margin: 12px 0 0; font-size: 12px; line-height: 18px; letter-spacing: 0; color: var(--muted); }
.nv-hero__note code { font-size: 11px; color: var(--ink); }

/* install command */
.nv-install { margin: 28px auto 0; width: 100%; max-width: 640px; display: flex; align-items: center; gap: 12px; padding: 4px 4px 4px 14px;
  background: var(--panel-dark); border: 1px solid var(--panel-line); border-radius: 4px; text-align: left; }
.nv-install__prompt { font-family: var(--font-mono); font-size: 13px; color: var(--panel-muted); }
.nv-install__cmd { flex: 1 1 auto; min-width: 0; overflow-x: auto; white-space: nowrap; font-size: 13px; line-height: 40px; color: var(--panel-ink); scrollbar-width: thin; }
.nv-install__copy { flex: none; height: 40px; min-width: 76px; padding: 0 12px; border: 1px solid var(--panel-line); border-radius: 4px; background: rgba(255,255,255,0.05);
  color: var(--panel-ink); font-family: var(--font-writer); font-size: 13px; letter-spacing: 0; cursor: pointer; transition: background 70ms ease, color 70ms ease; }
.nv-install__copy:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.nv-install__copy.is-copied { color: var(--panel-green); }
.nv-install--sm { margin: 4px 0 0; padding-left: 12px; }
.nv-install--sm .nv-install__cmd { padding: 8px 0; white-space: normal; overflow-wrap: anywhere; overflow-x: visible; line-height: 20px; }
.nv-install--sm .nv-install__cmd { font-size: 12px; }
.nv-install--sm .nv-install__copy { height: 36px; min-width: 68px; }

/* equaliser behind the opening */
.nv-eq { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 46% 62% at 50% 40%, transparent 50%, #000 100%); mask-image: radial-gradient(ellipse 46% 62% at 50% 40%, transparent 50%, #000 100%); }
.nv-eq__field { position: absolute; left: 0; right: 0; bottom: 0; height: 280px;
  -webkit-mask-image: linear-gradient(to top, #000 45%, transparent 100%); mask-image: linear-gradient(to top, #000 45%, transparent 100%); }
.nv-eq__col { position: absolute; bottom: 0; width: 10px; height: 280px; }
.nv-eq__col::before, .nv-eq__bar { -webkit-mask-image: repeating-linear-gradient(to top, #000 0 10px, transparent 10px 14px); mask-image: repeating-linear-gradient(to top, #000 0 10px, transparent 10px 14px); }
.nv-eq__col::before { content: ""; position: absolute; inset: 0; background: var(--blue-text); opacity: .045; }
.nv-eq__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: linear-gradient(to top, var(--blue), var(--blue-text));
  animation-timing-function: steps(1, end); animation-iteration-count: infinite; }
@keyframes nv-eq-a{0%{height:42px}10%{height:126px}20%{height:84px}30%{height:210px}40%{height:140px}50%{height:252px}60%{height:98px}70%{height:182px}80%{height:70px}90%{height:154px}100%{height:42px}}
@keyframes nv-eq-b{0%{height:98px}10%{height:56px}20%{height:168px}30%{height:112px}40%{height:238px}50%{height:84px}60%{height:196px}70%{height:140px}80%{height:266px}90%{height:70px}100%{height:98px}}
@keyframes nv-eq-c{0%{height:154px}10%{height:224px}20%{height:112px}30%{height:280px}40%{height:182px}50%{height:98px}60%{height:210px}70%{height:56px}80%{height:168px}90%{height:126px}100%{height:154px}}
@keyframes nv-eq-d{0%{height:14px}10%{height:56px}20%{height:28px}30%{height:84px}40%{height:42px}50%{height:112px}60%{height:28px}70%{height:70px}80%{height:14px}90%{height:42px}100%{height:14px}}
@keyframes nv-eq-e{0%{height:42px}10%{height:14px}20%{height:70px}30%{height:28px}40%{height:98px}50%{height:56px}60%{height:126px}70%{height:28px}80%{height:84px}90%{height:14px}100%{height:42px}}
@keyframes nv-eq-f{0%{height:28px}10%{height:84px}20%{height:42px}30%{height:56px}40%{height:14px}50%{height:98px}60%{height:70px}70%{height:28px}80%{height:112px}90%{height:42px}100%{height:28px}}
@media (prefers-reduced-motion: reduce) { .nv-eq__bar { animation: none !important; } }

/* ---------- product shot ---------- */
.nv-shot { position: relative; isolation: isolate; padding: 48px 48px 56px; }
.nv-window { margin: 0 auto; max-width: 1024px; border: 1px solid var(--rule); border-radius: 4px; background: var(--panel-dark); box-shadow: var(--shadow-proof); overflow: hidden; }
.nv-window__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 32px; padding: 0 12px; border-bottom: 1px solid var(--panel-line);
  box-shadow: inset 0 1px 0 var(--edge-light); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0; color: var(--panel-muted); white-space: nowrap; overflow: hidden; }
.nv-window img { display: block; width: 100%; height: auto; }

/* ---------- pillars ---------- */
.nv-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nv-pillar { padding: 36px 40px; border-right: 1px solid var(--rule); display: flex; flex-direction: column; gap: 10px; }
.nv-pillar:last-child { border-right: 0; }
.nv-pillar__tag { display: flex; align-items: center; gap: 10px; color: var(--blue-text); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; }
.nv-pillar__title { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 21px; line-height: 1.25; letter-spacing: 0; color: var(--heading); }
.nv-pillar p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink); }

/* ---------- proof strip ---------- */
.nv-proof { display: flex; flex-wrap: wrap; margin-right: -1px; }
.nv-proof > div { flex: 1 1 140px; padding: 16px 24px; border-right: 1px solid var(--rule); font-size: 14px; line-height: 20px; letter-spacing: 0; text-transform: uppercase; color: var(--muted); }
.nv-proof__label { flex-basis: 160px !important; font-family: var(--font-mono); font-size: 11px !important; letter-spacing: 0.05em !important; }
.nv-proof b { font-weight: 400; color: var(--blue-text); margin-right: 6px; }

/* ---------- section heads ---------- */
.nv-head { padding: 80px 48px 40px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.nv-head--tight { padding-bottom: 40px; }
.nv-h2 { margin: 0; max-width: 720px; font-family: var(--font-serif); font-weight: 390; font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); line-height: 1.1; letter-spacing: -0.01em; color: var(--heading); }
.nv-h3 { margin: 0; font-family: var(--font-serif); font-weight: 390; font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); line-height: 1.15; letter-spacing: 0; color: var(--heading); }
.nv-head__lead { margin: 4px 0 0; max-width: 560px; font-size: 16px; line-height: 1.5; color: var(--ink); }
.nv-quotes { padding: 0 48px 72px; }

/* ---------- feature rows ---------- */
.nv-feature { display: flex; flex-wrap: wrap; }
.nv-feature--rev { flex-direction: row-reverse; }
.nv-feature__copy { flex: 5 1 360px; min-width: 0; padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; }
.nv-feature__tag { font-family: var(--font-mono); font-size: 11px; line-height: 1.5; letter-spacing: 0.05em; text-transform: uppercase; color: var(--blue-text); }
.nv-feature__title { margin: 0; font-family: var(--font-serif); font-weight: 390; font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); line-height: 1.15; letter-spacing: 0; color: var(--heading); }
.nv-feature__copy > p { margin: 0; max-width: 440px; font-size: 16px; line-height: 1.55; color: var(--ink); }
.nv-feature__copy > .wb-link { margin-top: 6px; }
.nv-feature__media { flex: 7 1 520px; min-width: 0; padding: 32px; background: var(--sheet-soft); display: flex; align-items: center; border-left: 1px solid var(--rule); }
.nv-feature--rev .nv-feature__media { border-left: 0; border-right: 1px solid var(--rule); }
.nv-frame { margin: 0; width: 100%; padding: 10px; border: 1px solid var(--rule); border-radius: 2px; background: var(--iface-frame); box-shadow: inset 0 1px 0 var(--edge-light); }
.nv-frame img { display: block; width: 100%; height: auto; border: 1px solid var(--panel-line); border-radius: 2px; }
.nv-checks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.nv-checks li { position: relative; padding-left: 24px; font-size: 14px; line-height: 20px; letter-spacing: 0; color: var(--ink); }
.nv-checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 14px; height: 14px; background: var(--blue-text);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>") center / contain no-repeat; }

/* ---------- phones ---------- */
.nv-phones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 0 48px 64px; }
.nv-phones figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.nv-phones img { display: block; width: 100%; height: auto; border: 1px solid var(--panel-line); border-radius: 14px; background: var(--panel-dark); }
.nv-phones figcaption { font-size: 13px; line-height: 1.4; letter-spacing: 0; color: var(--muted); text-align: center; }

/* ---------- extras ---------- */
.nv-extras__head { padding: 64px 48px 32px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.nv-extras__head .wb-eyebrow { margin-bottom: 10px; }
.nv-extras { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); margin: 0 -1px -1px 0; }
.nv-extra { min-width: 0; padding: 22px 24px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 4px; }
.nv-extra h3 { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 16px; line-height: 1.35; letter-spacing: 0; color: var(--heading); }
.nv-extra p { margin: 0; font-size: 13px; line-height: 1.5; letter-spacing: 0; color: var(--muted); }

/* ---------- install steps ---------- */
.nv-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.nv-step { min-width: 0; padding: 32px; border-right: 1px solid var(--rule); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.nv-step:last-child { border-right: 0; }
.nv-step h3 { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 21px; line-height: 1.25; letter-spacing: 0; color: var(--heading); }
.nv-step p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink); }
.nv-step__links { display: flex; flex-wrap: wrap; gap: 16px; }
.nv-steps__agent { margin: 0; padding: 20px 32px 28px; border-top: 1px solid var(--rule); font-size: 14px; line-height: 1.5; color: var(--muted); text-align: center; }

/* ---------- changelog and conversion ---------- */
.wb-row__avatar { font-size: 10px; }
.nv-spacer { height: 48px; }
.nv-convert { min-height: 520px; padding-top: 72px; padding-bottom: 72px; }
.nv-convert .wb-emblem__face img { display: block; }
.nv-convert__title { margin: 36px 0 0; font-family: var(--font-serif); font-weight: 390; font-size: clamp(2.25rem, 1.6rem + 2vw, 3rem); line-height: 1.08; letter-spacing: -0.015em; color: var(--blue-text); }
.nv-convert__actions { margin-top: 28px; }
.nv-convert__note { margin: 20px 0 0; font-size: 13px; line-height: 20px; letter-spacing: 0; color: var(--muted); }

/* ---------- footer ---------- */
.nv-footer__brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 16px; letter-spacing: -0.02em; }
.nv-footer__brand img { display: block; }
.wb-footer { min-height: 0; }
.wb-footer__hatch { min-height: 160px; }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .nv-pillars { grid-template-columns: 1fr; }
  .nv-pillar { border-right: 0; border-bottom: 1px solid var(--rule); }
  .nv-pillar:last-child { border-bottom: 0; }
  .nv-extras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nv-steps { grid-template-columns: 1fr; }
  .nv-step { border-right: 0; border-bottom: 1px solid var(--rule); }
  .nv-step:last-child { border-bottom: 0; }
  .nv-feature__copy, .nv-feature__media { flex-basis: 100%; }
  .nv-feature__media, .nv-feature--rev .nv-feature__media { border-left: 0; border-right: 0; border-top: 1px solid var(--rule); }
  .nv-phones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wb-actions--stack, .nv-hero__actions, .nv-convert__actions { flex-direction: row; width: auto; max-width: none; }
}
@media (max-width: 767px) {
  .nv-banner { font-size: 12px; }
  .nv-hero { padding: 56px 16px 88px; }
  .nv-lead { font-size: 16px; }
  .nv-hero__actions, .nv-convert__actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; }
  .nv-install { max-width: none; }
  .nv-install__cmd { font-size: 12px; padding: 8px 0; white-space: normal; overflow-wrap: anywhere; overflow-x: visible; line-height: 20px; }
  .nv-shot { padding: 24px 16px 32px; }
  .nv-window__bar span:last-child { display: none; }
  .nv-pillar { padding: 28px 16px; }
  .nv-proof > div { padding: 12px 16px; flex-basis: 50%; border-bottom: 1px solid var(--rule); }
  .nv-proof__label { flex-basis: 100% !important; }
  .nv-head { padding: 56px 16px 32px; }
  .nv-quotes { padding: 0 16px 48px; }
  .nv-feature__copy { flex-basis: 100%; padding: 40px 16px 32px; }
  .nv-feature__media { flex-basis: 100%; padding: 16px; }
  .nv-frame { padding: 6px; }
  .nv-phones { gap: 16px; padding: 0 16px 48px; }
  .nv-extras__head { padding: 48px 16px 24px; }
  .nv-extras { grid-template-columns: 1fr; }
  .nv-extra { padding: 18px 16px; }
  .nv-step { padding: 28px 16px; }
  .nv-steps__agent { padding: 20px 16px 24px; }
  .wb-row__title { white-space: normal; }
  .wb-row { flex-wrap: wrap; }
  .wb-row__meta { flex-basis: 100%; padding-left: 32px; }
  .nv-convert { min-height: 0; padding: 56px 16px; }
}
