.nb-shell { width: min(100% - 2 * var(--gutter), 79rem); margin-inline: auto; }
.nb-shell h2, .nb-shell h3 { margin: 0; }
.nb-hero-example, .nb-chapter-example, .nb-connections dl, .nb-chapter details dl, .nb-chapter dd, .nb-connections dd, .nb-step-nav ol, .nb-chapters { margin: 0; }
.nb-connections a { text-decoration: underline; text-underline-offset: .18em; }
.nb-connections a:focus-visible { outline-color: var(--ink); }
.nb-hero { position: relative; isolation: isolate; overflow: clip; background: #0c0c0c; }
.nb-hero-art {
  position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(90deg, #0c0c0cbb 0%, #0c0c0c64 43%, transparent 68%), url("/assets/folded-paper-hero.webp") 50% 49% / cover no-repeat;
}
.nb-hero-layout { min-height: min(46rem, 88svh); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; padding-block: clamp(3rem, 6.4vw, 6.2rem); }
.nb-hero-copy { min-width: 0; overflow-wrap: anywhere; }
.nb-hero-copy h1 { font-size: clamp(3.2rem, 6.1vw, 6.15rem); font-weight: 710; line-height: .96; letter-spacing: -.071em; text-wrap: balance; }
.nb-hero-copy > p:not(.nb-availability) { max-width: 39ch; margin-top: 1.45rem; font-size: clamp(1.06rem, 1.45vw, 1.22rem); color: var(--muted); }
.nb-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem 1.22rem; margin-top: 1.45rem; }
.nb-availability { margin-top: .9rem; font-size: .87rem; color: var(--muted); }
.nb-hero .button, .nb-hero .text-link, .nb-capture-button { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; font-weight: 700; }
.nb-hero .button { border-radius: .4rem; padding: .65rem 1rem; text-decoration: none; }
.nb-hero .button-primary { background: var(--butter); color: var(--ink); }
.nb-hero .button-primary:hover { background: #fff0c4; }
.nb-hero .text-link { color: var(--paper); }
.nb-hero .text-link:hover { color: var(--butter); }

.nb-hero-example { justify-self: center; width: min(100%, 17.45rem); }
.nb-device { position: relative; overflow: hidden; border-radius: 1.18rem; border: 1px solid #857961; background: #090909; }
.nb-device img { width: 100%; height: auto; }
.nb-hero-device { box-shadow: 0 1.9rem 4rem #000a, 0 0 0 4px #191713; }
.nb-hero-example figcaption { margin-top: .85rem; text-align: center; color: var(--muted); font-size: .83rem; }

.nb-tour { padding-block: clamp(2.75rem, 7.5vw, 6rem) clamp(2.75rem, 6vw, 5.5rem); }
.nb-section-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(10rem, .67fr); align-items: end; gap: .8rem 2rem; margin-bottom: 1.7rem; }
.nb-section-intro h2, .nb-connections h2 { font-size: clamp(2.15rem, 4.25vw, 4rem); line-height: 1.03; font-weight: 710; letter-spacing: -.054em; }
.nb-section-intro p { font-size: 1.02rem; max-width: 35ch; color: var(--muted); }
.nb-step-nav { position: relative; background: var(--ink); border-block: 1px solid var(--line); }
.nb-step-nav ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; list-style: none; }
.nb-step-nav a {
  display: flex; align-items: center; gap: .72rem; min-height: 3.25rem;
  border-bottom: 2px solid transparent; margin-bottom: -1px; padding: .42rem .45rem;
  color: var(--muted); text-decoration: none; font-size: .96rem; font-weight: 650;
}
.nb-step-nav a:hover { color: var(--paper); }
.nb-step-nav a[aria-current="step"] { color: var(--paper); border-bottom-color: var(--butter); font-weight: 750; }
.nb-step-text { max-width: 100%; min-width: 0; overflow-wrap: anywhere; }
.nb-step-no { font-size: .79em; font-variant-numeric: tabular-nums; color: var(--butter); }
.nb-chapters { padding: 0; list-style: none; }
.nb-chapter { padding-block: clamp(2.1rem, 5vw, 3.7rem); border-bottom: 1px solid var(--line); scroll-margin-top: 3.8rem; min-width: 0; overflow-wrap: anywhere; }
.nb-chapter-name { color: var(--butter); font-size: .89rem; font-weight: 730; margin-bottom: .57rem; }
.nb-chapter h3 { max-width: 14ch; font-size: clamp(2.15rem, 4.1vw, 3.8rem); font-weight: 700; letter-spacing: -.055em; line-height: 1.05; }
.nb-chapter h3 + p { max-width: 34ch; color: var(--muted); font-size: 1.06rem; margin: .95rem 0 .45rem; }
.nb-chapter details { margin-top: .9rem; max-width: 36rem; border-top: 1px solid var(--line); }
.nb-chapter summary { cursor: pointer; min-height: 44px; padding-block: .65rem; font-weight: 650; }
.nb-chapter details dl { display: grid; gap: .55rem; padding: .05rem 0 .7rem; }
.nb-chapter details dl > div { display: grid; grid-template-columns: minmax(5rem, 7rem) 1fr; gap: .45rem; }
.nb-chapter dt { font-weight: 720; }
.nb-chapter dd { color: var(--muted); }
.nb-capture-button { border: 1px solid #595348; border-radius: .4rem; padding: .45rem .8rem; background: #1b1a17; cursor: pointer; font-size: .91rem; }
.nb-capture-button:hover { border-color: var(--butter); }
.nb-chapter-copy .nb-capture-button { margin-top: .7rem; }
.nb-chapter-copy .text-link { margin-right: .65rem; }
.nb-chapter-example { width: min(100%, 18.5rem); margin: 1.6rem auto 0; }
.nb-chapter-example figcaption { margin-top: .6rem; color: var(--muted); font-size: .87rem; text-align: center; }
.nb-screen-focus {
  position: absolute; z-index: 1; pointer-events: none; border: 1px solid var(--butter); border-radius: .48rem;
  box-shadow: 0 0 0 2px #12100c, 0 0 1.15rem #ffe29a4a; inset: var(--focus-inset);
}
.pick { --focus-inset: 70.7% 4.8% 22.5% 4.5%; }
.make { --focus-inset: 14.5% 4.7% 73.4% 4.5%; }
.setup { --focus-inset: 43.1% 4.6% 52.3% 4.6%; }
.chat { --focus-inset: 59.4% 16.4% 15% 2.3%; }
.nb-stage { display: none; }

.nb-connections { background: var(--butter); color: var(--ink); padding-block: clamp(2.9rem, 7vw, 6rem); }
.nb-connections-layout { display: grid; grid-template-columns: .79fr 1.21fr; align-items: start; gap: 1.75rem 3rem; }
.nb-connections h2 { max-width: 10ch; }
.nb-connections dl { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.nb-connections dl > div { border-top: 1px solid #9c8150; padding-top: .75rem; }
.nb-connections dt { font-size: 1.1rem; font-weight: 770; margin-bottom: .25rem; }
.nb-connections dd { color: #372c1e; max-width: 26ch; }
.nb-capture-viewer { width: min(100% - 1.4rem, 32rem); max-height: calc(100dvh - 1.4rem); padding: 0; background: var(--ink); color: var(--paper); border: 1px solid var(--line); border-radius: .8rem; }
.nb-capture-viewer::backdrop { background: #000c; }
.nb-capture-viewer header { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: .35rem; padding: .6rem .8rem; border-bottom: 1px solid var(--line); background: var(--ink); }
.nb-capture-viewer h2 { font-size: 1.03rem; }
.nb-capture-viewer > img { width: min(100%, 26rem); height: auto; margin-inline: auto; }

@media (min-width: 930px) and (min-height: 670px) {
  .nb-tour.enhanced .nb-step-nav { position: sticky; top: var(--site-header-height); z-index: 3; }
  .nb-tour.enhanced .nb-tour-layout { display: grid; grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr); column-gap: clamp(2.7rem, 7vw, 6.4rem); }
  .nb-tour.enhanced .nb-chapter { min-height: clamp(27rem, 58svh, 38rem); display: grid; align-content: center; padding-block: 3rem; }
  .nb-tour.enhanced .nb-chapter-example { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .nb-tour.enhanced .nb-stage { display: block; position: sticky; align-self: start; top: calc(var(--site-header-height) + 4.3rem); margin-block: 1rem; border: 1px solid var(--line); border-radius: .95rem; overflow: hidden; }
  .nb-stage-inner { position: relative; isolation: isolate; min-height: min(59svh, 35rem); display: grid; place-items: center; background: #15130f; overflow: hidden; }
  .nb-stage-visual {
    position: absolute; z-index: -1; inset: -10%;
    background: linear-gradient(135deg, #13121025, #15130f4f), url("/assets/folded-paper-hero.webp") 73% 54% / cover no-repeat;
  }
  .nb-stage-device { height: min(51svh, 30rem); width: auto; aspect-ratio: .497; box-shadow: 0 1.2rem 3rem #000c, 0 0 0 4px #181613; }
  .nb-stage-slide {
    position: absolute; inset: 0; display: grid; place-items: center;
    opacity: 0; visibility: hidden; transform: translateX(13px); background: #090909;
  }
  .nb-stage-slide.is-current { visibility: visible; opacity: 1; transform: none; }
  .nb-stage-slide.is-exiting { visibility: visible; opacity: 0; transform: translateX(-8px); }
  .nb-stage-screen { position: relative; width: 100%; }
  .nb-stage-screen img { width: 100%; height: auto; }
  .nb-stage-caption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .15rem .8rem; background: #191714; padding: .65rem .95rem; border-top: 1px solid var(--line); }
  .nb-stage-title { font-weight: 730; }
  .nb-stage-focus { font-size: .87rem; color: var(--butter); }
}

@media (max-width: 760px) {
  .nb-hero-layout { min-height: 0; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding-block: 1.55rem 1.4rem; }
  .nb-hero-art { background: linear-gradient(180deg, #0c0c0c 10%, #0c0c0caa 41%, #0c0c0c18 73%), url("/assets/folded-paper-hero.webp") 72% bottom / auto 87% no-repeat; }
  .nb-hero-copy h1 { font-size: clamp(1.95rem, 7.9vw, 3.25rem); line-height: 1.02; letter-spacing: -.055em; text-wrap: initial; }
  .nb-hero-copy > p:not(.nb-availability) { margin-top: .7rem; font-size: .99rem; line-height: 1.45; }
  .nb-hero-actions { margin-top: .75rem; gap: .12rem .8rem; font-size: .87rem; }
  .nb-hero .button { padding: .5rem .76rem; }
  .nb-availability { margin-top: .35rem; font-size: .82rem; }
  .nb-hero-example { width: min(100%, clamp(9.25rem, 41vw, 12.5rem)); }
  .nb-hero-example figcaption { margin-top: .55rem; font-size: .78rem; }
  .nb-section-intro, .nb-connections-layout { grid-template-columns: minmax(0, 1fr); }
  .nb-tour { padding-top: 2rem; }
  .nb-section-intro { gap: .46rem; margin-bottom: 1rem; }
  .nb-section-intro h2, .nb-connections h2 { font-size: clamp(1.78rem, 5vw, 2.65rem); }
  .nb-section-intro p, .nb-chapter h3 + p { font-size: .98rem; line-height: 1.5; }
  .nb-chapter { padding-block: 1.6rem; scroll-margin-top: 3.1rem; }
  .nb-chapter :is(a, button, summary) { scroll-margin-top: 3.1rem; }
  .nb-chapter-name { margin-bottom: .35rem; font-size: .82rem; }
  .nb-chapter h3 { max-width: 20ch; font-size: clamp(1.55rem, 5.2vw, 2.2rem); }
  .nb-chapter h3 + p { margin-top: .52rem; }
  .nb-chapter details { margin-top: .55rem; }
  .nb-chapter-copy .nb-capture-button { margin-top: .45rem; }
  .nb-chapter-example { width: min(100%, clamp(10.75rem, 51vw, 15rem)); margin-top: 1.1rem; }
  .nb-chapter-example .nb-device { box-shadow: 0 0 0 3px #201d18, 0 1rem 2rem #0005; }
  .nb-connections h2 { max-width: none; }
}
@media (max-width: 760px) and (min-height: 570px) {
  .nb-tour.enhanced .nb-step-nav { position: sticky; top: var(--site-header-height); z-index: 3; }
}
@media (max-width: 460px) {
  .nb-step-nav a { gap: .28rem; font-size: .83rem; min-height: 44px; padding-inline: .24rem; }
  .nb-step-no { display: none; }
  .nb-connections dl { grid-template-columns: 1fr; gap: 1.25rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .nb-hero-art { animation: light-in .78s var(--ease-out) both; }
  .nb-hero-example { animation: device-in .65s .05s var(--ease-out) both; }
  .nb-stage-visual { transform: translate3d(var(--nb-stage-x, 0), var(--nb-stage-y, 0), 0); }
  .nb-stage-slide { transition: opacity .38s var(--ease-out), transform .38s var(--ease-out), visibility 0s .38s; }
  .nb-stage-slide.is-current { z-index: 2; transition-delay: 0s; }
  .nb-stage-slide.is-exiting { z-index: 1; }
  .nb-stage-slide .nb-screen-focus { opacity: 0; transition: opacity .16s ease; }
  .nb-stage-slide.is-current .nb-screen-focus { opacity: 1; transition-delay: .2s; }
  .nb-chapter-copy.revealing { animation: chapter-reveal .44s var(--ease-out) both; }
  .nb-chapter-example.revealing .nb-device { animation: screen-reveal .64s var(--ease-out) both; }
  .nb-chapter-example.revealing .nb-screen-focus { animation: mark-control .5s .24s var(--ease-out) both; }
  @keyframes light-in { from { opacity: .64; transform: scale(1.012); } to { opacity: 1; transform: scale(1); } }
  @keyframes device-in { from { opacity: .25; transform: translateY(13px); } to { opacity: 1; transform: none; } }
  @keyframes chapter-reveal { from { opacity: .6; transform: translateY(9px); } to { opacity: 1; transform: none; } }
  @keyframes screen-reveal { from { opacity: .28; transform: translateY(22px) scale(.97); } to { opacity: 1; transform: none; } }
  @keyframes mark-control { from { opacity: 0; transform: scale(1.07); } to { opacity: 1; transform: none; } }
}

.nb-hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 79% 44%, #f6c87517, transparent 37%);
}
.nb-tour.enhanced .nb-step-nav::after {
  content: "";
  position: absolute;
  inset: auto auto -1px 0;
  width: 25%;
  height: 2px;
  background: var(--butter);
  transform: translateX(calc(var(--nb-current-step, 0) * 100%));
  pointer-events: none;
}
.nb-tour.enhanced .nb-step-nav a[aria-current="step"] { border-bottom-color: transparent; }
.nb-stage-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 53% 37%, #f9cd7d26 0%, transparent 42%);
  opacity: .8;
  transform: translateX(var(--nb-light-x, 0%));
}
.nb-stage[data-chapter="1"] { --nb-light-x: -9%; }
.nb-stage[data-chapter="2"] { --nb-light-x: 9%; }
.nb-stage[data-chapter="3"] { --nb-light-x: 3%; }
@media (prefers-reduced-motion: no-preference) {
  .nb-hero-art::after { animation: settle-light .78s var(--ease-out) both; }
  .nb-tour.enhanced .nb-step-nav::after, .nb-stage-visual::after { transition: transform .32s var(--ease-out); }
  @keyframes settle-light { from { opacity: .2; } to { opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  .nb-stage-visual::after { transform: none; }
}
