/* =========================================================
   Home v2 — INKY'S NOTEBOOK
   Hand-drawn, magazine-spread, taped polaroids, doodles.
   Every section is a "page" with Inky scrawled in the margins.
   ========================================================= */

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: #F5EFDF;
  color: var(--color-ink);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* Paper texture background */
body {
  background-color: #F5EFDF;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(184,138,54,0.06) 0%, transparent 20%),
    radial-gradient(circle at 88% 72%, rgba(184,138,54,0.07) 0%, transparent 25%),
    radial-gradient(circle at 40% 60%, rgba(184,138,54,0.04) 0%, transparent 15%),
    linear-gradient(180deg, #F7F1E1 0%, #F2ECDB 100%);
}

.nb-container { max-width: 1320px; margin: 0 auto; padding: 0 40px; position: relative; }
@media (max-width: 640px) { .nb-container { padding: 0 20px; } }

/* Ruled-line paper texture on pages that want it */
.nb-paper {
  background-color: #FFFBEE;
  background-image:
    repeating-linear-gradient(180deg, transparent 0 27px, rgba(44,90,180,0.07) 27px 28px);
  border-radius: 4px;
  padding: 40px;
  position: relative;
  box-shadow:
    0 1px 0 rgba(37,36,34,0.04),
    2px 2px 0 rgba(37,36,34,0.03),
    0 24px 40px -16px rgba(37,36,34,0.1);
}
.nb-paper::before {
  /* red margin line */
  content: ''; position: absolute;
  left: 80px; top: 0; bottom: 0; width: 1px;
  background: rgba(220,84,84,0.4);
}

/* Tape strips */
.nb-tape {
  position: absolute;
  background: rgba(255,230,128,0.7);
  border: 1px solid rgba(200,160,30,0.2);
  width: 100px; height: 22px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  z-index: 5;
  backdrop-filter: blur(1px);
}
.nb-tape.blue { background: rgba(138,180,230,0.55); border-color: rgba(80,120,200,0.2); }
.nb-tape.pink { background: rgba(240,170,170,0.55); border-color: rgba(180,80,100,0.2); }

/* ---------- NAV — like a spiral binding + tabs ---------- */
.nb-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 239, 223, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px dashed rgba(37,36,34,0.18);
  padding: 14px 0;
}
.nb-nav-inner {
  display: flex; align-items: center; gap: 20px;
  justify-content: space-between;
}
.nb-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font: 900 22px var(--font-display); color: var(--color-ink);
  text-decoration: none;
  letter-spacing: -0.03em;
}
.nb-brand img { width: 34px; height: 34px; }
.nb-brand .stamp {
  font: 700 10px var(--font-mono); letter-spacing: 0.14em;
  color: var(--color-orange); text-transform: uppercase;
  border: 1.5px solid var(--color-orange); padding: 2px 6px;
  border-radius: 3px;
  transform: rotate(-3deg);
  margin-left: 4px;
}
.nb-nav-links {
  display: flex; gap: 6px; align-items: center;
}
.nb-nav-links a {
  font: 700 14px var(--font-body); color: var(--color-ink);
  text-decoration: none; padding: 8px 14px;
  border-radius: 999px;
  position: relative;
}
.nb-nav-links a:hover::after {
  content: ''; position: absolute;
  left: 12px; right: 12px; bottom: 4px; height: 8px;
  background: rgba(249,82,3,0.25);
  border-radius: 4px;
  transform: skewX(-6deg);
}
.nb-nav-cta {
  background: var(--color-ink); color: var(--color-cream);
  padding: 10px 18px; border-radius: 999px;
  font: 700 14px var(--font-body); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--color-ink);
  box-shadow: 3px 3px 0 var(--color-orange);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.nb-nav-cta:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--color-orange); }

/* ---------- HERO — open spread ---------- */
.nb-hero {
  padding: 60px 0 120px;
  position: relative;
}
.nb-hero-spread {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 900px) {
  .nb-hero-spread { grid-template-columns: 1fr; gap: 32px; }
}

/* Left page — big title scribbled in */
.nb-title-page {
  position: relative;
}
.nb-page-marker {
  font: 700 12px var(--font-mono); letter-spacing: 0.14em;
  color: var(--fg-3); text-transform: uppercase;
  margin-bottom: 16px;
  display: inline-flex; align-items: center; gap: 10px;
}
.nb-page-marker::before {
  content: ''; width: 24px; height: 1px;
  background: var(--fg-3);
}
.nb-hero-title {
  font: 900 clamp(56px, 8vw, 112px) var(--font-display);
  letter-spacing: -0.045em; line-height: 0.88;
  margin: 0 0 28px;
  color: var(--color-ink);
  text-wrap: balance;
  position: relative;
}
.nb-hero-title .circled {
  display: inline-block;
  position: relative;
  color: var(--color-orange);
  font-style: italic;
  padding: 0 10px;
}
.nb-hero-title .circled::after {
  content: ''; position: absolute;
  inset: -8px -4px -4px -4px;
  border: 3px solid var(--color-orange);
  border-radius: 50%;
  transform: rotate(-2deg) scale(1.05, 0.9);
  opacity: 0.85;
  pointer-events: none;
}
.nb-hero-title .strikethrough {
  text-decoration: line-through;
  text-decoration-color: rgba(37,36,34,0.4);
  text-decoration-thickness: 4px;
  color: rgba(37,36,34,0.4);
  font-weight: 700;
}

.nb-hero-sub {
  font: 500 clamp(18px, 2vw, 22px)/1.5 var(--font-body);
  color: var(--fg-2);
  max-width: 540px;
  margin: 0 0 36px;
  position: relative;
  padding-left: 18px;
  border-left: 3px solid var(--color-orange);
}

.nb-hero-sub strong {
  color: var(--color-ink);
  background: linear-gradient(180deg, transparent 65%, rgba(255,217,128,0.7) 65%);
  padding: 0 2px;
}

.nb-cta-row {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  margin-bottom: 20px;
}
.nb-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; border-radius: 999px;
  font: 800 16px var(--font-body);
  text-decoration: none; cursor: pointer; border: 0;
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.nb-btn-primary {
  background: var(--color-orange); color: var(--color-cream);
  border: 2px solid var(--color-ink);
  box-shadow: 4px 4px 0 var(--color-ink);
}
.nb-btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--color-ink);
}
.nb-btn-primary:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--color-ink);
}
.nb-btn-secondary {
  background: transparent; color: var(--color-ink);
  padding: 14px 4px;
  text-decoration: underline wavy;
  text-decoration-color: var(--color-orange);
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}
.nb-hero-meta {
  display: inline-flex; align-items: center; gap: 18px;
  font: 600 13px var(--font-body); color: var(--fg-3);
  flex-wrap: wrap;
}
.nb-hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--fg-3); }

/* Right page — polaroid of Inky and notes */
.nb-inky-spot {
  position: relative;
  padding: 40px 20px 80px;
  min-height: 640px;
}

.nb-polaroid {
  background: #FFFDF5;
  padding: 16px 16px 60px;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.04),
    0 14px 30px -8px rgba(37,36,34,0.18);
  transform: rotate(-3deg);
  position: relative;
  max-width: 340px;
  margin: 0 auto;
  border: 1px solid rgba(37,36,34,0.04);
}
.nb-polaroid .photo {
  background: linear-gradient(180deg, #FFE9D3, #FFD9B6);
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.nb-polaroid .photo::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(37,36,34,0.08) 1.2px, transparent 1.2px);
  background-size: 16px 16px;
  opacity: 0.5;
}
.nb-polaroid .photo img {
  width: 82%; height: auto;
  filter: drop-shadow(4px 6px 0 rgba(37,36,34,0.18));
  position: relative; z-index: 2;
}
.nb-polaroid .caption {
  position: absolute; bottom: 20px; left: 0; right: 0;
  text-align: center;
  font: 700 14px var(--font-display);
  color: var(--color-ink);
  letter-spacing: -0.01em;
}
.nb-polaroid .caption em {
  color: var(--color-orange);
  font-style: italic;
}

/* Sticky note variants */
.nb-sticky {
  position: absolute;
  padding: 16px 18px 18px;
  box-shadow: 2px 4px 10px rgba(37,36,34,0.14);
  font: 600 14px/1.4 var(--font-body);
  color: var(--color-ink);
  max-width: 180px;
}
.nb-sticky.yellow { background: #FFE77A; transform: rotate(4deg); }
.nb-sticky.pink { background: #FFB7B0; transform: rotate(-5deg); }
.nb-sticky.mint { background: #B8E7C4; transform: rotate(3deg); }
.nb-sticky .corner {
  position: absolute; right: 0; top: 0;
  width: 16px; height: 16px;
  background: linear-gradient(-45deg, transparent 50%, rgba(0,0,0,0.1) 50%);
}
.nb-sticky .eyebrow {
  display: block; font: 800 10px var(--font-mono);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(37,36,34,0.6); margin-bottom: 6px;
}

.nb-inky-spot .nb-sticky-1 { top: 100px; right: -30px; }
.nb-inky-spot .nb-sticky-2 { bottom: -30px; left: 20px; }

/* Admit-one ticket stub — fills the space below the polaroid */
.nb-ticket {
  position: absolute;
  bottom: 24px; right: 10px;
  width: 300px;
  display: flex; align-items: stretch;
  background: var(--color-white);
  border: 1.5px solid var(--color-ink);
  box-shadow: 5px 5px 0 var(--color-orange);
  transform: rotate(3deg);
  font-family: var(--font-body);
  color: var(--color-ink);
}
.nb-ticket::before, .nb-ticket::after {
  content: ''; position: absolute; top: 50%;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--color-cream);
  border: 1.5px solid var(--color-ink);
  transform: translateY(-50%);
}
.nb-ticket::before { left: -6px; }
.nb-ticket::after  { right: -6px; }
.nb-ticket-stub {
  background: var(--color-ink); color: var(--color-cream);
  padding: 10px 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-right: 1.5px dashed rgba(255,253,241,0.35);
  min-width: 52px;
}
.nb-ticket-num {
  font: 700 8px var(--font-mono); letter-spacing: 0.16em;
  text-transform: uppercase; opacity: 0.6; margin-bottom: 2px;
}
.nb-ticket-num sup { font-size: 7px; vertical-align: super; }
.nb-ticket-num-val {
  font: 900 22px var(--font-display); letter-spacing: -0.02em;
  color: var(--color-orange); line-height: 1;
}
.nb-ticket-body { flex: 1; padding: 10px 14px 9px; }
.nb-ticket-eyebrow {
  font: 700 8.5px var(--font-mono); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--color-orange);
  margin-bottom: 4px;
}
.nb-ticket-title {
  font: 900 17px var(--font-display); letter-spacing: -0.02em;
  line-height: 1.1; margin-bottom: 6px;
}
.nb-ticket-meta {
  display: flex; gap: 12px;
  font: 500 9.5px var(--font-body); color: var(--fg-2);
  margin-bottom: 7px;
}
.nb-ticket-meta b { color: var(--color-ink); font-weight: 700; }
.nb-ticket-barcode {
  display: flex; align-items: center; gap: 2px; height: 14px;
}
.nb-ticket-barcode span {
  display: block; height: 100%; background: var(--color-ink);
}

/* Scribbled "keep going" cue */
.nb-scroll-cue {
  position: absolute;
  left: -30px; bottom: -20px;
  width: 120px; height: 80px;
  pointer-events: none;
  transform: rotate(-6deg);
}

/* Doodled arrow */
.nb-arrow {
  position: absolute;
  font-family: var(--font-display);
  color: var(--color-orange);
  stroke: var(--color-orange);
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hand-written label */
.nb-handwritten {
  font-family: 'Caveat', 'Marker Felt', cursive;
  color: var(--color-orange);
  font-weight: 700;
}

/* ---------- SECTION headers as magazine/spread titles ---------- */
.nb-section {
  padding: 100px 0;
  position: relative;
}
.nb-section-head {
  margin-bottom: 60px;
  position: relative;
}
.nb-section-doodle {
  position: absolute;
  top: -20px; right: 0;
  width: 360px; height: 280px;
  color: var(--color-orange);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}
.nb-section-doodle svg { width: 100%; height: 100%; display: block; }
@media (max-width: 900px) {
  .nb-section-doodle { width: 240px; height: 200px; top: -10px; right: -10px; opacity: 0.18; }
}
.nb-section-kicker {
  font: 700 12px var(--font-mono);
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--color-orange);
  margin-bottom: 14px;
  position: relative; z-index: 1;
}
.nb-section-title {
  font: 900 clamp(40px, 6vw, 72px) var(--font-display);
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin: 0 0 18px;
  color: var(--color-ink);
  max-width: 18ch; text-wrap: balance;
  position: relative; z-index: 1;
}
.nb-section-title em {
  color: var(--color-orange);
  font-style: italic;
  background: linear-gradient(180deg, transparent 60%, rgba(249,82,3,0.2) 60% 92%, transparent 92%);
  padding: 0 4px;
}
.nb-section-sub {
  font: 500 18px/1.5 var(--font-body);
  color: var(--fg-2);
  max-width: 540px;
  margin: 0;
  position: relative; z-index: 1;
}

/* ---------- HOW IT WORKS: three polaroids + ropes ---------- */
.nb-how-wrap {
  position: relative;
  padding: 60px 0;
}
.nb-how-rope {
  position: absolute; top: 0; left: 4%; right: 4%;
  height: 32px; pointer-events: none;
}
.nb-how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 20px;
}
@media (max-width: 900px) { .nb-how-steps { grid-template-columns: 1fr; gap: 60px; } }

.nb-step {
  position: relative;
  background: #FFFDF5;
  padding: 22px 22px 28px;
  border: 1px solid rgba(37,36,34,0.08);
  box-shadow:
    0 1px 0 rgba(37,36,34,0.06),
    0 20px 40px -12px rgba(37,36,34,0.14);
  transition: transform 300ms var(--ease-spring);
}
.nb-step:nth-child(1) { transform: rotate(-1.2deg); }
.nb-step:nth-child(2) { transform: rotate(0.8deg); margin-top: 16px; }
.nb-step:nth-child(3) { transform: rotate(-0.6deg); margin-top: -6px; }
.nb-step:hover { transform: rotate(0) translateY(-4px); }

.nb-step-tape {
  position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 120px; height: 26px;
  background: rgba(255,220,120,0.8);
  border: 1px solid rgba(180,140,30,0.3);
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.nb-step:nth-child(2) .nb-step-tape { background: rgba(240,170,170,0.8); border-color: rgba(180,80,100,0.3); transform: translateX(-50%) rotate(4deg); }
.nb-step:nth-child(3) .nb-step-tape { background: rgba(138,180,230,0.8); border-color: rgba(80,120,200,0.3); transform: translateX(-50%) rotate(-5deg); }

.nb-step-num {
  font: 900 72px var(--font-display);
  line-height: 1;
  color: var(--color-orange);
  letter-spacing: -0.05em;
  margin: 14px 0 8px;
  display: flex; align-items: baseline; gap: 8px;
}
.nb-step-num small {
  font: 700 14px var(--font-mono);
  color: var(--fg-3);
  letter-spacing: 0.1em;
}
.nb-step h3 {
  font: 900 22px var(--font-display);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.nb-step p {
  font: 500 14.5px/1.55 var(--font-body);
  color: var(--fg-2); margin: 0;
}
.nb-step .nb-step-doodle {
  margin-top: 14px;
  height: 80px;
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(180deg, transparent 0 21px, rgba(44,90,180,0.08) 21px 22px);
  border-radius: 4px;
  padding: 10px;
}
.nb-step .nb-step-doodle svg { width: 100%; height: 100%; }

/* ---------- CANVAS FEATURES: like a magazine spread ---------- */
.nb-spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 120px;
}
.nb-spread.reverse { grid-template-columns: 1fr 1fr; }
.nb-spread.reverse .nb-spread-copy { order: 2; }
@media (max-width: 900px) {
  .nb-spread, .nb-spread.reverse { grid-template-columns: 1fr; }
  .nb-spread.reverse .nb-spread-copy { order: 0; }
}
.nb-spread-copy h3 {
  font: 900 clamp(32px, 4vw, 48px) var(--font-display);
  letter-spacing: -0.03em; line-height: 1;
  margin: 10px 0 18px;
}
.nb-spread-copy h3 em {
  color: var(--color-orange); font-style: italic;
}
.nb-spread-copy p {
  font: 500 17px/1.6 var(--font-body);
  color: var(--fg-2);
  margin: 0 0 14px;
}
.nb-spread-copy .nb-hl {
  background: linear-gradient(180deg, transparent 55%, rgba(255,217,128,0.7) 55% 92%, transparent 92%);
  font-weight: 700; color: var(--color-ink);
}
.nb-spread-copy .nb-kicker {
  font: 800 11px var(--font-mono); letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--color-orange);
}

/* ---------- Feature illustration tiles ---------- */
.nb-illo {
  position: relative;
  padding: 30px;
  background: #FFFDF5;
  border-radius: 4px;
  border: 1px solid rgba(37,36,34,0.06);
  box-shadow: 0 20px 40px -16px rgba(37,36,34,0.18);
  aspect-ratio: 1.1 / 1;
  overflow: hidden;
}
.nb-illo::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(37,36,34,0.07) 1.1px, transparent 1.1px);
  background-size: 20px 20px;
  opacity: 0.7;
  pointer-events: none;
}

/* Specific illo: the map with Inky waving — matches real app NODE_TYPES exactly */
.nb-illo-map { }
.nb-illo-map .nb-fnode {
  position: absolute; padding: 10px 12px;
  border: 1.5px solid;
  border-radius: 12px;
  font: 800 14px var(--font-display);
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: 2px 3px 0 rgba(37,36,34,0.12);
  min-width: 110px;
}
.nb-illo-map .nb-fnode .kind {
  display: flex; align-items: center; gap: 4px;
  font: 800 9px var(--font-body);
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 4px;
}
.nb-illo-map .nb-fnode .kind svg {
  width: 10px; height: 10px;
}
.nb-illo-map .nb-fnode.concept {
  background: #E4EEF7; border-color: #A7C2DC; color: #1F4E7A;
}
.nb-illo-map .nb-fnode.assumption {
  background: #FBEFD2; border-color: #E2C07C; color: #8A5A06;
}
.nb-illo-map .nb-fnode.gap {
  background: #FDF3F0; border-color: #DF8B7A; color: #9A2818;
  border-style: dashed; /* gap nodes are dashed in the real app */
}
.nb-illo-map .nb-fnode.action {
  background: #E9E1F3; border-color: #B5A3D6; color: #543B82;
}
.nb-illo-map .inky {
  position: absolute; right: 10px; bottom: 10px;
  width: 120px;
  transform: rotate(-4deg);
  filter: drop-shadow(3px 4px 0 rgba(37,36,34,0.18));
  z-index: 3;
}

.nb-illo-map .nb-edge {
  position: absolute; pointer-events: none;
  stroke: var(--color-ink); stroke-width: 1.5;
  stroke-dasharray: 4 5; fill: none;
  opacity: 0.5;
}

/* Specific illo: transcript */
.nb-illo-chat {
  background: #FFFBEE;
}
.nb-chat-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1.5px dashed rgba(37,36,34,0.18);
  margin-bottom: 14px;
  font: 700 11px var(--font-mono);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-3);
}
.nb-chat-head .rec {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--color-orange);
}
.nb-chat-head .rec .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-orange);
  animation: nbPulse 1.2s ease-in-out infinite;
}
.nb-chat-body {
  font: 500 15px/1.65 var(--font-body);
  color: var(--color-ink);
}
.nb-chat-body mark.concept { background: rgba(138,184,230,0.35); padding: 1px 4px; border-radius: 3px; }
.nb-chat-body mark.gap     { background: rgba(240,163,147,0.45); padding: 1px 4px; border-radius: 3px; }
.nb-chat-body mark.action  { background: rgba(196,178,226,0.4); padding: 1px 4px; border-radius: 3px; }
.nb-chat-body .annotate {
  position: relative;
  display: inline-block;
}
.nb-chat-body .annotate::after {
  content: attr(data-note);
  position: absolute;
  top: -18px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  font: 700 11px 'Caveat', cursive;
  color: var(--color-orange);
  white-space: nowrap;
  background: rgba(255,253,241,0.9);
  padding: 0 4px;
}

/* ---------- INKY SAYS strip ---------- */
.nb-inky-says {
  background: var(--color-ink); color: var(--color-cream);
  padding: 100px 0; position: relative; overflow: hidden;
  margin: 80px 0;
}
.nb-inky-says-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 800px) {
  .nb-inky-says-inner { grid-template-columns: 1fr; text-align: center; }
  .nb-inky-says-inner img { margin: 0 auto; }
}
.nb-inky-says img {
  width: 260px;
  filter: drop-shadow(4px 6px 0 rgba(0,0,0,0.25));
  transform: rotate(-4deg);
  animation: nbBob 5s ease-in-out infinite;
}
.nb-inky-says blockquote {
  font: 900 clamp(28px, 4.2vw, 48px) var(--font-display);
  letter-spacing: -0.025em; line-height: 1.1;
  margin: 0; text-wrap: balance;
}
.nb-inky-says blockquote em {
  color: var(--color-orange); font-style: italic;
}
.nb-inky-says cite {
  margin-top: 22px; display: block;
  font: 600 13px var(--font-mono); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--color-sand);
  font-style: normal;
}

/* ---------- PRICING as two notebook pages ---------- */
.nb-pricing {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
}
@media (max-width: 720px) { .nb-pricing { grid-template-columns: 1fr; } }
.nb-price-page {
  background: #FFFDF5;
  padding: 32px;
  border: 1px solid rgba(37,36,34,0.08);
  position: relative;
  box-shadow: 0 20px 40px -16px rgba(37,36,34,0.14);
  background-image:
    repeating-linear-gradient(180deg, transparent 0 27px, rgba(44,90,180,0.06) 27px 28px);
}
.nb-price-page.pro {
  background-color: var(--color-orange);
  background-image:
    repeating-linear-gradient(180deg, transparent 0 27px, rgba(255,253,241,0.18) 27px 28px);
  color: var(--color-cream);
  transform: rotate(0.8deg);
}
.nb-price-page.pro .plan-name,
.nb-price-page.pro .plan-sub,
.nb-price-page.pro li { color: var(--color-cream); }
.nb-price-page .plan-stamp {
  position: absolute; top: 20px; right: 20px;
  font: 800 11px var(--font-mono); letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 2px solid var(--color-orange); color: var(--color-orange);
  padding: 3px 8px; border-radius: 3px;
  transform: rotate(4deg);
}
.nb-price-page.pro .plan-stamp {
  border-color: var(--color-cream); color: var(--color-cream);
}
.nb-price-page .plan-name {
  font: 900 12px var(--font-mono); letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--fg-3);
}
.nb-price-page .price {
  font: 900 88px var(--font-display);
  letter-spacing: -0.04em; line-height: 1;
  margin: 14px 0 4px;
  display: flex; align-items: baseline; gap: 6px;
}
.nb-price-page .price small { font: 600 20px var(--font-body); color: var(--fg-3); }
.nb-price-page.pro .price small { color: rgba(255,253,241,0.7); }
.nb-price-page .plan-sub {
  font: 500 14px var(--font-body); color: var(--fg-2);
  margin-bottom: 20px;
}
.nb-price-page ul {
  list-style: none; padding: 0; margin: 0 0 20px;
  display: flex; flex-direction: column; gap: 6px;
}
.nb-price-page li {
  font: 500 15px/1.4 var(--font-body);
  display: flex; align-items: flex-start; gap: 10px;
}
.nb-price-page li::before {
  content: '✓'; color: var(--color-orange); font-weight: 900;
  margin-top: 2px;
}
.nb-price-page.pro li::before { color: var(--color-cream); }
.nb-price-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; font: 800 15px var(--font-body);
  background: var(--color-ink); color: var(--color-cream);
  border: 2px solid var(--color-ink);
  box-shadow: 3px 3px 0 var(--color-orange);
  text-decoration: none;
}
.nb-price-page.pro .nb-price-cta {
  background: var(--color-cream); color: var(--color-ink);
  border-color: var(--color-ink);
  box-shadow: 3px 3px 0 var(--color-ink);
}
.nb-price-cta:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--color-orange); }
.nb-price-page.pro .nb-price-cta:hover { box-shadow: 5px 5px 0 var(--color-ink); }

/* ---------- FAQ as margin notes ---------- */
.nb-faq-list {
  max-width: 780px; margin: 0 auto;
}
.nb-faq-item {
  padding: 22px 0;
  border-bottom: 1.5px dashed rgba(37,36,34,0.2);
  cursor: pointer;
}
.nb-faq-q {
  font: 800 18px var(--font-display);
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 20px;
  letter-spacing: -0.015em;
  color: var(--color-ink);
}
.nb-faq-q .spark {
  flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--color-orange); color: var(--color-cream);
  font-weight: 900; font-size: 18px;
  display: grid; place-items: center;
  transition: transform 240ms var(--ease-spring);
}
.nb-faq-item.open .spark { transform: rotate(135deg); }
.nb-faq-a {
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 340ms ease, opacity 260ms ease, padding 260ms ease;
}
.nb-faq-item.open .nb-faq-a { max-height: 400px; opacity: 1; padding-top: 10px; }
.nb-faq-a p {
  font: 500 15.5px/1.65 var(--font-body);
  color: var(--fg-2); margin: 0;
  max-width: 640px;
}

/* ---------- Final CTA spread ---------- */
.nb-end {
  padding: 140px 0; position: relative;
  text-align: center;
  background: var(--color-orange);
  color: var(--color-cream);
  overflow: hidden;
}
.nb-end .nb-end-paper {
  position: relative; z-index: 2;
}
.nb-end h2 {
  font: 900 clamp(48px, 8vw, 120px) var(--font-display);
  letter-spacing: -0.04em; line-height: 0.9;
  margin: 0 0 20px;
  text-wrap: balance;
  color: var(--color-cream);
}
.nb-end h2 em {
  font-style: italic;
  display: inline-block;
  background: var(--color-ink);
  color: var(--color-orange);
  padding: 0 12px;
  transform: rotate(-2deg);
}
.nb-end p {
  font: 500 18px var(--font-body);
  color: rgba(255,253,241,0.9); max-width: 420px;
  margin: 0 auto 32px;
}
.nb-end .nb-btn-primary {
  background: var(--color-cream); color: var(--color-ink);
  border-color: var(--color-ink);
  padding: 20px 36px; font-size: 19px;
}
.nb-end .nb-end-inky {
  position: absolute;
  bottom: -40px; right: 60px;
  width: 240px;
  transform: rotate(6deg);
  filter: drop-shadow(4px 6px 0 rgba(0,0,0,0.2));
  animation: nbBob 6s ease-in-out infinite reverse;
  pointer-events: none;
}
@media (max-width: 720px) { .nb-end .nb-end-inky { display: none; } }

/* Scribble doodles on end section */
.nb-end::before {
  content: ''; position: absolute;
  left: -40px; top: -40px; width: 300px; height: 300px;
  background-image: radial-gradient(circle, rgba(255,253,241,0.14) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  opacity: 0.6; pointer-events: none;
}

/* ---------- Footer ---------- */
.nb-foot {
  padding: 50px 0 30px;
  background: #EDE4CE;
  border-top: 2px dashed rgba(37,36,34,0.18);
}
.nb-foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 32px;
}
@media (max-width: 720px) { .nb-foot-grid { grid-template-columns: 1fr 1fr; } }
.nb-foot-grid h5 {
  font: 800 11px var(--font-mono); letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--fg-3); margin: 0 0 14px;
}
.nb-foot-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.nb-foot-grid a {
  color: var(--color-ink); text-decoration: none;
  font: 600 14px var(--font-body);
}
.nb-foot-grid a:hover { color: var(--color-orange); }
.nb-foot-lockup {
  display: inline-flex; align-items: center; gap: 10px;
  font: 900 22px var(--font-display); letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.nb-foot-lockup img { width: 36px; }
.nb-foot-rule {
  border-top: 1.5px solid rgba(37,36,34,0.12);
  padding-top: 18px;
  display: flex; justify-content: space-between; align-items: center;
  font: 600 12px var(--font-body); color: var(--fg-3);
  flex-wrap: wrap; gap: 12px;
}

/* ---------- Scroll reveal (ported from v1) ---------- */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 720ms cubic-bezier(.2,.65,.3,1), transform 720ms cubic-bezier(.2,.65,.3,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* Progressive map: when the talkmap spread reveals, stagger node pop-ins + edge draw */
.reveal .nb-illo-talkmap .tm-node,
.reveal .nb-illo-talkmap .tm-edges path {
  opacity: 0;
}
.reveal .nb-illo-talkmap .tm-node {
  transform: translate(var(--tx, 0), var(--ty, 0)) scale(0.5);
  transition: opacity 380ms ease, transform 520ms cubic-bezier(.2,1.5,.4,1);
}
.reveal .nb-illo-talkmap .tm-node.concept[style*="50%"] {
  transform: translate(-50%, -50%) scale(0.5);
}
.reveal.in .nb-illo-talkmap .tm-node {
  opacity: 1; transform: translate(0, 0) scale(1);
}
.reveal.in .nb-illo-talkmap .tm-node.concept[style*="50%"] {
  transform: translate(-50%, -50%) scale(1);
}
/* Stagger: center concept → 4 satellite nodes */
.reveal.in .nb-illo-talkmap .tm-node:nth-of-type(1) { transition-delay: 380ms; } /* assumption bl */
.reveal.in .nb-illo-talkmap .tm-node:nth-of-type(2) { transition-delay: 120ms; } /* concept center */
.reveal.in .nb-illo-talkmap .tm-node:nth-of-type(3) { transition-delay: 280ms; } /* concept tl */
.reveal.in .nb-illo-talkmap .tm-node:nth-of-type(4) { transition-delay: 440ms; } /* gap tr */
.reveal.in .nb-illo-talkmap .tm-node:nth-of-type(5) { transition-delay: 560ms; } /* action br */

/* Edges: draw in after the central concept appears */
.reveal .nb-illo-talkmap .tm-edges path {
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  transition: stroke-dashoffset 700ms ease-out, opacity 260ms ease;
}
.reveal.in .nb-illo-talkmap .tm-edges path {
  stroke-dashoffset: 0; opacity: 1;
  transition-delay: 300ms;
}

/* Reduced motion: skip everything */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in,
  .reveal .nb-illo-talkmap .tm-node,
  .reveal .nb-illo-talkmap .tm-edges path {
    opacity: 1 !important; transform: none !important; stroke-dashoffset: 0 !important;
    transition: none !important;
  }
}

/* ---------- Animations ---------- */
@keyframes nbBob {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(-2deg) translateY(-10px); }
}
@keyframes nbPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249,82,3,0.5); }
  50% { box-shadow: 0 0 0 8px rgba(249,82,3,0); }
}

/* Caveat webfont for handwriting */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;600;700&display=swap');

/* ============================================================
   NEW UPGRADED FEATURE SPREADS — voice→map, gaps, brief
   Full-width notebook spreads with real platform visuals.
   ============================================================ */

/* Shared node shape used in the new talk-map + gap illos */
.tm-node {
  position: absolute; padding: 8px 11px; border: 1.5px solid;
  border-radius: 12px; font: 700 12px var(--font-body);
  letter-spacing: -0.005em; background: #FFF;
  box-shadow: 0 3px 10px -4px rgba(37,36,34,0.18);
}
/* Tighter sizing inside the crowded 4-node talk-map */
.nb-illo-talkmap .tm-node {
  padding: 6px 9px; font-size: 10.5px; border-radius: 10px;
  max-width: 110px; line-height: 1.22;
}
.nb-illo-talkmap .tm-node .kind { font-size: 8px; margin-bottom: 2px; }
.nb-illo-talkmap .tm-node .kind svg { width: 9px; height: 9px; }
.tm-node .kind {
  display: flex; align-items: center; gap: 4px;
  font: 800 9px var(--font-body); letter-spacing: 0.14em;
  text-transform: uppercase; opacity: 0.85; margin-bottom: 3px;
}
.tm-node .kind svg { width: 10px; height: 10px; }
.tm-node.concept    { background: #E4EEF7; border-color: #A7C2DC; color: #1F4E7A; }
.tm-node.assumption { background: #FBEFD2; border-color: #E2C07C; color: #8A5A06; }
.tm-node.gap        { background: #F8DCD4; border-color: #DF8B7A; color: #9A2818; border-style: dashed; }
.tm-node.action     { background: #E9E1F3; border-color: #B5A3D6; color: #543B82; }

/* ---- 01 · Talk + Map spread ---- */
.nb-illo-talkmap {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 14px; padding: 22px; align-items: stretch;
}
/* Override the default nb-illo aspect-ratio for this specific illo */
.nb-illo.nb-illo-talkmap { aspect-ratio: 1.4 / 1; }
.tm-transcript {
  position: relative; z-index: 2;
  background: #FFFBEE; border: 1px solid rgba(37,36,34,0.1);
  border-radius: 10px; padding: 14px 14px 56px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 4px 14px -6px rgba(37,36,34,0.15);
  min-width: 0;
}
.tm-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 8px; border-bottom: 1px dashed rgba(37,36,34,0.2);
}
.tm-file { font: 700 10px var(--font-mono); letter-spacing: 0.1em; color: var(--fg-3); }
.tm-live {
  display: inline-flex; align-items: center; gap: 5px;
  font: 800 10px var(--font-mono); letter-spacing: 0.12em; color: var(--color-orange);
}
.tm-live .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--color-orange); animation: nbPulse 1.2s ease-in-out infinite;
}
.tm-body { font: 500 13.5px/1.55 var(--font-body); color: var(--color-ink); }
.tm-body mark,
.tm-body mark.hl-concept,
.tm-body mark.hl-gap,
.tm-body mark.hl-action { padding: 1px 4px; border-radius: 3px; background: transparent; color: inherit; }
.tm-body mark.hl-concept { background: rgba(167,194,220,0.55); color: #1F4E7A; font-weight: 700; }
.tm-body mark.hl-gap     { background: rgba(223,139,122,0.55); color: #9A2818; font-weight: 700; }
.tm-body mark.hl-action  { background: rgba(181,163,214,0.55); color: #543B82; font-weight: 700; }

.tm-mic {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  background: var(--color-white); border: 1px solid rgba(37,36,34,0.1);
  border-radius: 999px; padding: 6px 14px 6px 6px;
  box-shadow: 0 4px 12px -4px rgba(37,36,34,0.2);
}
.tm-mic-btn {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--color-orange); color: var(--color-cream);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 0 rgba(249,82,3,0.5);
  animation: micPulse 2.4s ease-in-out infinite;
}
.tm-mic-btn svg { width: 14px; height: 14px; }
.tm-wave { display: flex; align-items: center; gap: 3px; height: 18px; }
.tm-wave span {
  display: inline-block; width: 3px; border-radius: 2px;
  background: var(--color-orange); animation: waveBar 1.1s ease-in-out infinite;
}
.tm-wave span:nth-child(1){ animation-delay: 0.0s; height: 60%; }
.tm-wave span:nth-child(2){ animation-delay: 0.1s; height: 90%; }
.tm-wave span:nth-child(3){ animation-delay: 0.2s; height: 40%; }
.tm-wave span:nth-child(4){ animation-delay: 0.3s; height: 80%; }
.tm-wave span:nth-child(5){ animation-delay: 0.4s; height: 55%; }
.tm-wave span:nth-child(6){ animation-delay: 0.5s; height: 100%; }
.tm-wave span:nth-child(7){ animation-delay: 0.6s; height: 35%; }
@keyframes waveBar { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.35); } }
@keyframes micPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(249,82,3,0.5); } 50% { box-shadow: 0 0 0 10px rgba(249,82,3,0); } }

.tm-arrow { align-self: center; justify-self: center; width: 40px; height: 28px; }

.tm-map {
  position: relative; background: #FFFDF5;
  border: 1px solid rgba(37,36,34,0.1); border-radius: 10px;
  box-shadow: 0 4px 14px -6px rgba(37,36,34,0.15);
}
.tm-edges { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---- 02 · Gaps spread ---- */
.nb-illo-gaps {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 18px; padding: 40px;
  background: #FFFDF5;
}
.tm-gap-focus {
  position: relative !important; font-size: 15px;
  padding: 12px 18px; animation: gapPulse 2s ease-in-out infinite;
}
@keyframes gapPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(223,139,122,0.5), 0 3px 10px -4px rgba(37,36,34,0.18); }
  50% { box-shadow: 0 0 0 12px rgba(223,139,122,0), 0 3px 10px -4px rgba(37,36,34,0.18); }
}
.gaps-nudge { display: flex; align-items: flex-start; gap: 10px; max-width: 360px; }
.gaps-nudge img { width: 44px; height: 44px; flex-shrink: 0; }
.gaps-bubble {
  background: var(--color-white);
  border: 2px solid var(--color-ink);
  border-radius: 18px 18px 18px 4px;
  padding: 10px 14px;
  font: 500 13.5px/1.5 var(--font-body); color: var(--color-ink);
  box-shadow: 2px 2px 0 rgba(37,36,34,0.12);
}
.gaps-label {
  font: 800 9.5px var(--font-mono); letter-spacing: 0.14em;
  color: var(--color-orange); margin-bottom: 4px;
}
.gaps-scribble { position: absolute; left: 30px; top: 30px; width: 140px; height: 34px; pointer-events: none; }

/* ---- 03 · Brief artifact spread ---- */
.nb-illo-brief {
  background: #F8F3E4; padding: 30px;
  display: flex; align-items: center; justify-content: center;
}
.brief-artifact {
  background: var(--color-ink); color: var(--color-cream);
  border-radius: 10px; padding: 20px 22px; position: relative;
  box-shadow: 0 12px 30px -10px rgba(37,36,34,0.4);
  max-width: 340px; width: 100%;
}
.ba-masthead {
  display: flex; justify-content: space-between;
  font: 800 9px var(--font-body); letter-spacing: 0.14em;
  color: rgba(255,253,241,0.55); text-transform: uppercase;
  border-top: 1px solid rgba(255,253,241,0.25);
  border-bottom: 1px solid rgba(255,253,241,0.25);
  padding: 5px 0; margin-bottom: 14px;
}
.ba-masthead span:first-child { color: var(--color-cream); font-weight: 900; }
.ba-kicker {
  font: 800 8.5px var(--font-body); letter-spacing: 0.18em;
  color: var(--color-orange); text-align: center;
  text-transform: uppercase; margin-bottom: 8px;
}
.ba-title {
  font: 900 26px var(--font-display); letter-spacing: -0.03em;
  line-height: 1; text-align: center;
}
.ba-rule { height: 1px; width: 30px; background: var(--color-orange); margin: 10px auto; }
.ba-statement {
  font: italic 500 12px/1.5 var(--font-display);
  text-align: center; padding: 0 4px;
}
.ba-stats {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2px;
  background: rgba(255,253,241,0.1); border-radius: 8px;
  overflow: hidden; margin: 14px 0;
}
.ba-stats > div { padding: 8px 4px; background: rgba(37,36,34,0.5); text-align: center; }
.ba-stats .k { font: 800 8px var(--font-body); letter-spacing: 0.1em; color: rgba(255,253,241,0.5); text-transform: uppercase; margin-bottom: 2px; }
.ba-stats .v { font: 900 18px var(--font-display); letter-spacing: -0.02em; line-height: 1; }
.ba-section {
  border-top: 1px solid rgba(255,253,241,0.15);
  border-bottom: 1px solid rgba(255,253,241,0.15);
  padding: 8px 0; display: grid; grid-template-columns: 60px 1fr; gap: 10px;
  align-items: start;
}
.ba-label { font: 800 9px var(--font-body); letter-spacing: 0.12em; color: var(--color-orange); }
.ba-section ul { margin: 0; padding: 0; list-style: none; }
.ba-section li {
  font: 500 10.5px/1.4 var(--font-body);
  padding-left: 10px; position: relative; margin-bottom: 2px;
}
.ba-section li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 5px; height: 1px; background: var(--color-orange);
}
.ba-sig { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.sig-name {
  font-family: 'Caveat', cursive; font-size: 22px; color: var(--color-orange);
  transform: rotate(-3deg); line-height: 1;
}
.sig-date { font: 700 8px var(--font-body); letter-spacing: 0.12em; color: rgba(255,253,241,0.5); text-transform: uppercase; }
.ba-export {
  display: flex; align-items: center; gap: 6px;
  margin-top: 12px; padding-top: 10px;
  border-top: 1px dashed rgba(255,253,241,0.18);
}
.ba-export-label {
  font: 800 8px var(--font-body); letter-spacing: 0.14em;
  color: rgba(255,253,241,0.5); text-transform: uppercase;
  margin-right: 2px;
}
.ba-export-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 8px 4px 7px;
  border: 1px solid rgba(255,253,241,0.2);
  border-radius: 3px;
  font: 700 9.5px var(--font-body); letter-spacing: 0.04em;
  color: rgba(255,253,241,0.78);
  text-transform: uppercase;
}
.ba-export-chip svg { width: 9px; height: 9px; stroke-width: 2.2; color: var(--color-orange); flex: none; }
.brief-chips {
  position: absolute; right: -8px; top: 30px;
  display: flex; flex-direction: column; gap: 8px;
  transform: rotate(4deg);
}
.bc-chip {
  background: var(--color-white);
  border: 1px solid rgba(37,36,34,0.15);
  border-radius: 999px; padding: 6px 12px;
  font: 700 11.5px var(--font-body);
  color: var(--color-ink);
  box-shadow: 0 4px 10px -3px rgba(37,36,34,0.2);
}

/* Mobile */
@media (max-width: 900px) {
  .nb-illo-talkmap { grid-template-columns: 1fr; gap: 14px; aspect-ratio: auto; }
  .tm-arrow { transform: rotate(90deg); justify-self: center; }
  .tm-map { min-height: 240px; }
}


/* ============================================================
   HERO SUPERTITLE — replaces the page-marker eyebrow
   ============================================================ */
.nb-hero-supertitle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 28px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  max-width: 520px;
}
.nb-hero-supertitle-main {
  font: 700 13px var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--color-ink);
  text-transform: uppercase;
}
.nb-hero-supertitle-sub {
  font: 600 11px var(--font-mono);
  letter-spacing: 0.2em;
  color: var(--color-orange);
  text-transform: uppercase;
}

/* Hide the old page marker since supertitle replaces it */
.nb-title-page .nb-page-marker { display: none; }

/* Polaroid for hero — lower right, tilted */
.nb-polaroid-small {
  width: 150px;
  position: absolute;
  bottom: -50px;
  right: 240px;
  padding: 10px 10px 36px;
  transform: rotate(-5deg);
  z-index: 4;
}
.nb-polaroid-small .photo { aspect-ratio: 1 / 1; }
.nb-polaroid-small .caption {
  font-size: 14px; bottom: 10px;
}

/* "watch this!" caption — sits centered just below the demo, hand-lettered */
.nb-watch-caption {
  margin: 18px 0 0;
  font: 700 32px 'Caveat', cursive;
  color: var(--color-orange);
  transform: rotate(-2deg);
  display: block;
  text-align: center;
  text-shadow: 0 1px 0 rgba(37,36,34,0.04);
}

/* Sticky note — TOP-LEFT of the demo, out in the open */
.nb-inky-spot .nb-sticky-1 {
  top: 20px !important;
  left: -30px !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 2;
  transform: rotate(-6deg);
}

/* Polaroid pinned to bottom-right of the demo */
.nb-demo-wrap {
  position: relative;
}
.nb-polaroid-pinned {
  position: absolute;
  /* anchor to bottom-right corner of demo, then offset OUT so polaroid hangs OFF the corner */
  top: calc(100% - 40px);
  left: calc(100% - 40px);
  width: 130px;
  padding: 8px 8px 32px;
  transform: rotate(7deg);
  z-index: 5;
  background: #FFFDF7;
  border: 1px solid rgba(37,36,34,0.12);
  box-shadow: 0 10px 20px rgba(37,36,34,0.18);
}
.nb-polaroid-pinned .photo {
  aspect-ratio: 1 / 1;
  background: #FFEAD6;
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nb-polaroid-pinned .photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}
.nb-polaroid-pinned .caption {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  text-align: center;
  font: 400 14px var(--font-hand, 'Caveat', cursive);
  color: var(--color-ink);
}
.nb-polaroid-pinned .caption em {
  color: var(--color-orange);
  font-style: italic;
  font-weight: 700;
}

/* ============================================================
   HERO ANIMATED DEMO
   ============================================================ */
.hero-demo {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 20px auto 0;
  background: #FFFDF5;
  border: 1.5px solid var(--color-ink);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 8px 10px 0 rgba(37,36,34,0.12), 0 20px 60px rgba(37,36,34,0.15);
  transform: rotate(0.6deg);
  z-index: 2;
}
.hero-demo-chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 14px;
  background: #F3EFE4;
  border-bottom: 1px solid rgba(37,36,34,0.12);
}
.hero-demo-chrome .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #ccc;
}
.hero-demo-chrome .dot.r { background: #FF5F57; }
.hero-demo-chrome .dot.y { background: #FEBC2E; }
.hero-demo-chrome .dot.g { background: #28C840; }
.hero-demo-url {
  flex: 1;
  text-align: center;
  font: 500 11px var(--font-mono);
  color: var(--fg-2);
  letter-spacing: 0.02em;
}
.hero-demo-rec {
  display: flex; align-items: center; gap: 5px;
  font: 700 10px var(--font-mono);
  letter-spacing: 0.12em;
  color: rgba(37,36,34,0.35);
  transition: color 0.25s;
}
.hero-demo-rec span {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(37,36,34,0.25);
  transition: background 0.25s;
}
.hero-demo-rec.on { color: #D92D20; }
.hero-demo-rec.on span {
  background: #D92D20;
  animation: heroDemoPulse 1s ease-in-out infinite;
}
@keyframes heroDemoPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-demo-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #FFFDF5;
}

/* Transcript panel (takes whole stage, then fades under map) */
.hero-demo-transcript {
  position: absolute;
  inset: 14px 14px 44px 14px;
  display: flex; flex-direction: column;
  justify-content: space-between;
  transition: opacity 0.5s ease;
}
.hero-demo-transcript-body {
  font: 500 15px/1.5 var(--font-body);
  color: var(--color-ink);
  letter-spacing: -0.005em;
  flex: 1;
  padding: 8px 2px;
  overflow: hidden;
}
.hero-demo-transcript-body mark {
  padding: 1px 5px;
  border-radius: 3px;
  transition: opacity 0.4s;
}
.hero-demo-caret {
  display: inline-block;
  width: 2px; height: 15px;
  background: var(--color-orange);
  vertical-align: text-bottom;
  animation: heroDemoCaret 0.7s ease-in-out infinite;
}
@keyframes heroDemoCaret {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-demo-mic-row {
  display: flex; align-items: center; gap: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(37,36,34,0.18);
}
.hero-demo-mic {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(37,36,34,0.08);
  color: var(--color-ink);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
}
.hero-demo-mic svg { width: 16px; height: 16px; }
.hero-demo-mic.live {
  background: var(--color-orange);
  color: var(--color-cream);
  box-shadow: 0 0 0 4px rgba(249,82,3,0.2), 0 0 0 8px rgba(249,82,3,0.1);
}
.hero-demo-wave {
  display: flex; align-items: center; gap: 3px;
  flex: 1;
  height: 22px;
}
.hero-demo-wave span {
  flex: 1;
  height: 4px;
  background: rgba(37,36,34,0.25);
  border-radius: 2px;
  transition: height 0.2s;
}
.hero-demo-wave.on span {
  background: var(--color-orange);
  animation: heroDemoBar 0.7s ease-in-out infinite;
}
@keyframes heroDemoBar {
  0%, 100% { height: 4px; }
  50% { height: 20px; }
}
.hero-demo-time {
  font: 600 11px var(--font-mono);
  color: var(--fg-2);
  letter-spacing: 0.05em;
  min-width: 30px;
}

/* Map overlay — appears on top of transcript */
.hero-demo-map {
  position: absolute;
  inset: 14px 14px 44px 14px;
  background: #FFFDF5;
  background-image:
    radial-gradient(circle, rgba(37,36,34,0.09) 1px, transparent 1px);
  background-size: 18px 18px;
  border: 1px solid rgba(37,36,34,0.12);
  border-radius: 6px;
  transition: opacity 0.5s, transform 0.5s;
}
.hero-demo-edges {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.hero-demo-node {
  position: absolute;
  display: inline-flex; flex-direction: column;
  align-items: flex-start;
  padding: 5px 9px;
  background: #FFFDF5;
  border: 1.5px solid var(--color-ink);
  border-radius: 6px;
  font: 700 11px var(--font-body);
  letter-spacing: -0.01em;
  color: var(--color-ink);
  box-shadow: 2px 2px 0 rgba(37,36,34,0.15);
  transition: opacity 0.3s, transform 0.3s cubic-bezier(.2,.8,.3,1);
  white-space: nowrap;
}
.hero-demo-node .kind {
  font: 700 7.5px var(--font-mono);
  letter-spacing: 0.14em;
  color: var(--fg-2);
  margin-bottom: 1px;
}
.hero-demo-node.concept { background: #FFE9D3; border-color: #F95203; }
.hero-demo-node.concept .kind { color: #F95203; }
.hero-demo-node.gap { background: #FFDDDB; border-color: #D92D20; }
.hero-demo-node.gap .kind { color: #D92D20; }
.hero-demo-node.assumption { background: #FFF3C4; border-color: #B08A00; }
.hero-demo-node.assumption .kind { color: #B08A00; }
.hero-demo-node.action { background: #D8F5E3; border-color: #0A8F4A; }
.hero-demo-node.action .kind { color: #0A8F4A; }
.hero-demo-node.center {
  left: 50%; top: 50%;
  background: var(--color-ink);
  color: var(--color-cream);
  border-color: var(--color-ink);
}
.hero-demo-node.center .kind { color: #FC7529; }

/* Brief overlay — slides up from the bottom at the end */
.hero-demo-brief {
  position: absolute;
  inset: 14px 14px 44px 14px;
  background: #FFFDF5;
  border: 2px solid var(--color-ink);
  border-radius: 6px;
  padding: 14px 20px;
  display: flex; flex-direction: column;
  transition: transform 0.5s cubic-bezier(.2,.8,.3,1), opacity 0.4s;
  box-shadow: 0 -6px 20px rgba(37,36,34,0.1);
}
.hero-demo-brief-head {
  display: flex; justify-content: space-between;
  font: 700 9px var(--font-mono);
  letter-spacing: 0.16em;
  color: var(--fg-2);
  padding-bottom: 6px;
  border-bottom: 2px double var(--color-ink);
}
.hero-demo-brief-kicker {
  text-align: center;
  font: 400 italic 11px var(--font-display);
  color: var(--color-orange);
  margin-top: 8px;
}
.hero-demo-brief-title {
  font: 900 28px/0.95 var(--font-display);
  letter-spacing: -0.03em;
  text-align: center;
  margin: 4px 0;
}
.hero-demo-brief-rule {
  width: 40px; height: 2px;
  background: var(--color-ink);
  margin: 6px auto;
}
.hero-demo-brief-quote {
  font: 500 italic 12px/1.4 var(--font-body);
  text-align: center;
  color: var(--fg-2);
  padding: 0 6px;
}
.hero-demo-brief-stats {
  display: flex; justify-content: space-around;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed rgba(37,36,34,0.2);
}
.hero-demo-brief-stats > div {
  text-align: center;
}
.hero-demo-brief-stats b {
  display: block;
  font: 900 18px var(--font-display);
  color: var(--color-orange);
}
.hero-demo-brief-stats span {
  font: 600 8.5px var(--font-mono);
  letter-spacing: 0.14em;
  color: var(--fg-2);
  text-transform: uppercase;
}
.hero-demo-brief-sig {
  margin-top: 6px;
  text-align: right;
  font: 700 italic 13px var(--font-display);
  color: var(--color-orange);
}

/* Stage label — tiny caption at the bottom */
.hero-demo-label {
  position: absolute;
  left: 14px; bottom: 18px;
  font: 700 9.5px var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-orange);
  padding: 3px 8px;
  background: rgba(249,82,3,0.08);
  border-radius: 3px;
  z-index: 5;
}

/* Progress bar */
.hero-demo-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: rgba(37,36,34,0.08);
  z-index: 6;
}
.hero-demo-progress-fill {
  height: 100%;
  background: var(--color-orange);
  transform-origin: left;
}

/* ============================================================
   PERSONA STRIP — "made for…"
   ============================================================ */
.nb-personas {
  padding: 40px 0 60px;
  background: var(--color-cream);
  border-top: 1px dashed rgba(37,36,34,0.15);
  border-bottom: 1px dashed rgba(37,36,34,0.15);
}
.nb-personas-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 24px;
}
.nb-personas-head-label {
  font: 700 11px var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-orange);
  white-space: nowrap;
}
.nb-personas-head-rule {
  flex: 1; height: 1px;
  background: rgba(37,36,34,0.15);
}
.nb-personas-head-copy {
  font: 800 italic 22px var(--font-display);
  color: var(--color-ink);
  letter-spacing: -0.01em;
}
.nb-personas-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.nb-persona {
  padding: 22px 18px 20px;
  background: #FFFDF5;
  border: 1.5px solid rgba(37,36,34,0.15);
  border-radius: 10px;
  transition: all 0.25s;
  cursor: default;
}
.nb-persona:hover {
  border-color: var(--color-orange);
  background: #FFF4EA;
  transform: translateY(-2px);
  box-shadow: 3px 4px 0 rgba(37,36,34,0.1);
}
.nb-persona-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-ink);
  color: var(--color-cream);
  border-radius: 8px;
  margin-bottom: 12px;
}
.nb-persona-icon svg { width: 18px; height: 18px; }
.nb-persona:hover .nb-persona-icon { background: var(--color-orange); }
.nb-persona-title {
  font: 900 17px var(--font-display);
  letter-spacing: -0.02em;
  color: var(--color-ink);
  margin-bottom: 4px;
}
.nb-persona-desc {
  font: 500 12.5px/1.4 var(--font-body);
  color: var(--fg-2);
}

@media (max-width: 900px) {
  .nb-personas-grid { grid-template-columns: repeat(2, 1fr); }
  .nb-personas-head { flex-wrap: wrap; }
}

/* ============================================================
   INKY QUOTE — compacted to a margin annotation
   ============================================================ */
.nb-inky-says {
  padding: 0 !important;
  margin: 24px 0;
  background: transparent !important;
}
.nb-inky-says-inner {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  max-width: 640px !important;
  padding: 16px 22px !important;
  background: var(--color-cream);
  border-left: 3px solid var(--color-orange);
  border-radius: 0 10px 10px 0;
  margin-left: 40px !important;
  transform: rotate(-0.3deg);
}
.nb-inky-says img {
  width: 56px !important; height: 56px !important;
  flex-shrink: 0;
}
.nb-inky-says blockquote {
  font: 800 italic 22px/1.1 var(--font-display) !important;
  letter-spacing: -0.01em;
  margin: 0 !important;
  color: var(--color-ink);
}
.nb-inky-says blockquote br { display: none; }
.nb-inky-says blockquote em {
  color: var(--color-orange);
  font-style: italic;
}
.nb-inky-says cite {
  font: 500 italic 12px var(--font-body) !important;
  color: var(--fg-2);
  display: block;
  margin-top: 2px;
}

/* ============================================================
   "WHAT YOU WALK AWAY WITH" — sample brief showcase
   ============================================================ */
.nb-sample {
  padding: 80px 0 100px;
  background: var(--color-ink);
  color: var(--color-cream);
  position: relative;
  overflow: hidden;
}
.nb-sample::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(253,253,241,0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.nb-sample-head {
  text-align: center;
  margin-bottom: 56px;
  position: relative;
}
.nb-sample-kicker {
  font: 700 12px var(--font-mono);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #FC7529;
  margin-bottom: 16px;
}
.nb-sample-title {
  font: 900 clamp(42px, 6vw, 72px)/0.95 var(--font-display);
  letter-spacing: -0.035em;
  color: var(--color-cream);
  margin: 0 auto 18px;
  max-width: 820px;
}
.nb-sample-title em {
  color: #FC7529;
  font-style: italic;
}
.nb-sample-sub {
  font: 500 17px/1.55 var(--font-body);
  color: rgba(253,253,241,0.7);
  max-width: 580px;
  margin: 0 auto;
}
.nb-sample-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
.nb-sample-doc {
  background: var(--color-cream);
  color: var(--color-ink);
  padding: 44px 48px 50px;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 10px 30px rgba(0,0,0,0.3);
  transform: rotate(-1deg);
  position: relative;
}
.nb-sample-doc::before {
  content: 'SAMPLE';
  position: absolute;
  top: 22px; right: -18px;
  transform: rotate(16deg);
  background: var(--color-orange);
  color: var(--color-cream);
  font: 900 11px var(--font-mono);
  letter-spacing: 0.18em;
  padding: 5px 14px;
  border-radius: 3px;
  box-shadow: 2px 3px 0 rgba(0,0,0,0.2);
}
.nb-sample-doc-head {
  display: flex;
  justify-content: space-between;
  font: 700 10px var(--font-mono);
  letter-spacing: 0.18em;
  color: var(--fg-2);
  padding-bottom: 10px;
  border-bottom: 3px double var(--color-ink);
}
.nb-sample-doc-kicker {
  text-align: center;
  font: 400 italic 15px var(--font-display);
  color: var(--color-orange);
  margin-top: 14px;
}
.nb-sample-doc-title {
  font: 900 clamp(42px, 4vw, 58px)/0.92 var(--font-display);
  letter-spacing: -0.035em;
  text-align: center;
  margin: 6px 0 10px;
}
.nb-sample-doc-rule {
  width: 60px; height: 2px;
  background: var(--color-ink);
  margin: 10px auto;
}
.nb-sample-doc-quote {
  font: 500 italic 16px/1.5 var(--font-body);
  text-align: center;
  color: var(--fg-2);
  padding: 0 10px 14px;
  border-bottom: 1px dashed rgba(37,36,34,0.2);
  margin-bottom: 18px;
}
.nb-sample-doc-section {
  margin-bottom: 18px;
}
.nb-sample-doc-label {
  font: 700 10px var(--font-mono);
  letter-spacing: 0.18em;
  color: var(--color-orange);
  margin-bottom: 8px;
}
.nb-sample-doc-section ul {
  list-style: none;
  padding: 0; margin: 0;
}
.nb-sample-doc-section li {
  font: 500 14px/1.5 var(--font-body);
  padding: 5px 0 5px 22px;
  position: relative;
}
.nb-sample-doc-section li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--color-orange);
  font-weight: 700;
}
.nb-sample-doc-section.gaps li::before { content: '?'; }
.nb-sample-doc-section.actions li::before { content: '✓'; }
.nb-sample-doc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 14px 0;
  padding: 14px 0;
  border-top: 1px dashed rgba(37,36,34,0.2);
  border-bottom: 1px dashed rgba(37,36,34,0.2);
}
.nb-sample-doc-stats > div { text-align: center; }
.nb-sample-doc-stats b {
  display: block;
  font: 900 26px var(--font-display);
  color: var(--color-orange);
  letter-spacing: -0.02em;
}
.nb-sample-doc-stats span {
  font: 600 9.5px var(--font-mono);
  letter-spacing: 0.14em;
  color: var(--fg-2);
  text-transform: uppercase;
}
.nb-sample-doc-sig {
  font: 800 italic 18px var(--font-display);
  color: var(--color-orange);
  text-align: right;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(37,36,34,0.15);
}

/* Right column — the explanation */
.nb-sample-pitch {
  color: var(--color-cream);
  padding-top: 20px;
}
.nb-sample-pitch-kicker {
  font: 700 11px var(--font-mono);
  letter-spacing: 0.2em;
  color: #FC7529;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.nb-sample-pitch h3 {
  font: 900 34px/1.05 var(--font-display);
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  color: var(--color-cream);
}
.nb-sample-pitch h3 em {
  color: #FC7529;
  font-style: italic;
}
.nb-sample-pitch p {
  font: 500 15px/1.6 var(--font-body);
  color: rgba(253,253,241,0.78);
  margin: 0 0 14px;
}
.nb-sample-pitch p strong {
  color: var(--color-cream);
  font-weight: 700;
}
.nb-sample-formats {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 24px;
}
.nb-sample-format {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  background: rgba(253,253,241,0.08);
  border: 1px solid rgba(253,253,241,0.15);
  border-radius: 6px;
  font: 700 12px var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--color-cream);
}
.nb-sample-format svg { width: 14px; height: 14px; }

@media (max-width: 900px) {
  .nb-sample-stage { grid-template-columns: 1fr; gap: 30px; }
  .nb-sample-doc { padding: 28px 24px; }
}

/* ============================================================
   PRICING — "when to upgrade" callout
   ============================================================ */
.nb-pricing-upgrade {
  max-width: 720px;
  margin: 36px auto 0;
  padding: 22px 28px;
  background: var(--color-cream);
  border: 2px dashed var(--color-orange);
  border-radius: 10px;
  display: flex; align-items: center; gap: 20px;
}
.nb-pricing-upgrade-icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-orange);
  color: var(--color-cream);
  border-radius: 50%;
}
.nb-pricing-upgrade-icon svg { width: 24px; height: 24px; }
.nb-pricing-upgrade-body {
  font: 500 14px/1.5 var(--font-body);
  color: var(--color-ink);
}
.nb-pricing-upgrade-body strong {
  font: 900 17px var(--font-display);
  color: var(--color-ink);
  letter-spacing: -0.01em;
  display: block;
  margin-bottom: 4px;
}
.nb-pricing-upgrade-body em {
  color: var(--color-orange);
  font-style: italic;
  font-weight: 700;
}

/* ============================================================
   TIGHTEN "HOW IT WORKS" — reduce spread gaps
   ============================================================ */
.nb-section#how .nb-spread {
  margin-bottom: 70px; /* was ~110-140 */
}
.nb-section#how .nb-spread:last-child {
  margin-bottom: 0;
}

/* ============================================================
   FOOTER — mark placeholder links
   ============================================================ */
.nb-foot-soon {
  font: 500 10px var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--color-orange);
  opacity: 0.7;
  margin-left: 6px;
  text-transform: lowercase;
}

/* ============================================================
   BEFORE / AFTER — two facing notebook pages
   Left: messy scribbles, arrows, coffee ring, "where was I going"
   Right: clean Inky map with 5 labeled nodes + green "briefed" stamp
   ============================================================ */
.nb-beforeafter {
  padding: 100px 0 120px !important;
}
.nb-ba-spread {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 40px;
  background: #FFFDF5;
  border-radius: 3px;
  box-shadow:
    0 1px 0 rgba(37,36,34,0.06),
    0 30px 60px -20px rgba(37,36,34,0.22),
    0 60px 100px -60px rgba(37,36,34,0.2);
  min-height: 560px;
}

/* Spine — binding of dots down the middle */
.nb-ba-spine {
  position: absolute;
  left: 50%; top: 8%; bottom: 8%;
  transform: translateX(-50%);
  width: 22px;
  display: flex; flex-direction: column;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 2;
}
.nb-ba-spine > span {
  display: block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-cream);
  border: 1.5px solid rgba(37,36,34,0.45);
  box-shadow: inset 0 1px 2px rgba(37,36,34,0.25);
}
/* Shadow crease down the spine */
.nb-ba-spread::before {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 26px;
  transform: translateX(-50%);
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(37,36,34,0.08) 35%,
    rgba(37,36,34,0.14) 50%,
    rgba(37,36,34,0.08) 65%,
    transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* Pages — shared */
.nb-ba-page {
  position: relative;
  padding: 38px 44px 100px;
  min-height: 560px;
  overflow: hidden;
}

/* Left page — ruled lines + red margin line, messy */
.nb-ba-page-left {
  background-color: #FFFBEE;
  background-image:
    repeating-linear-gradient(180deg, transparent 0 27px, rgba(44,90,180,0.09) 27px 28px);
  padding-right: 50px;
  border-right: 1px solid rgba(37,36,34,0.06);
}
.nb-ba-page-left::before {
  /* red margin line on left */
  content: ''; position: absolute;
  left: 80px; top: 0; bottom: 0; width: 1px;
  background: rgba(220,84,84,0.5);
}
/* Right page — clean cream */
.nb-ba-page-right {
  background: #FFFDF5;
  padding-left: 50px;
}

/* Corners — folded-page SVG in upper corner */
.nb-ba-corner {
  position: absolute;
  top: 18px; left: 22px;
  width: 28px; height: 28px;
  color: rgba(37,36,34,0.35);
  pointer-events: none;
}
.nb-ba-corner.nb-ba-corner-r {
  left: auto; right: 22px;
}

/* Page label — small header */
.nb-ba-page-label {
  position: relative;
  margin-bottom: 22px;
  display: flex; align-items: baseline; gap: 12px;
  flex-wrap: wrap;
}
.nb-ba-page-kicker {
  font: 900 18px var(--font-display);
  letter-spacing: -0.02em;
  color: var(--color-ink);
  background: rgba(37,36,34,0.92);
  color: var(--color-cream);
  padding: 4px 12px;
  transform: rotate(-2deg);
  display: inline-block;
}
.nb-ba-page-right .nb-ba-page-kicker {
  background: var(--color-orange);
  color: var(--color-cream);
  transform: rotate(2deg);
}
.nb-ba-page-sub {
  font: 700 11px var(--font-mono);
  letter-spacing: 0.14em;
  color: var(--fg-3);
  text-transform: uppercase;
}

/* ----- LEFT: messy scribbles ----- */
.nb-ba-scribbles {
  position: relative;
  min-height: 340px;
  font-family: 'Caveat', cursive;
  color: var(--color-ink);
}
.nb-ba-line {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  font-family: 'Caveat', cursive;
  font-size: 22px;
  line-height: 28px;
  letter-spacing: 0.01em;
  color: var(--color-ink);
}
.nb-ba-line.strike {
  text-decoration: line-through;
  text-decoration-color: rgba(220,84,84,0.7);
  text-decoration-thickness: 2px;
  color: rgba(37,36,34,0.55);
}
.nb-ba-line.faint {
  color: rgba(37,36,34,0.45);
  font-style: italic;
}
.nb-ba-line u {
  text-decoration: underline wavy;
  text-decoration-color: var(--color-orange);
  text-underline-offset: 4px;
}
.nb-ba-arrow-inline {
  color: var(--color-orange);
  font-weight: 700;
  padding: 0 3px;
}

/* exaggerated crossout on the final line */
.nb-ba-line.mega { height: 34px; margin-top: 6px; }
.nb-ba-scratch {
  position: absolute;
  left: 16px; right: 60px; top: 6px; height: 20px;
  background:
    repeating-linear-gradient(-8deg,
      rgba(37,36,34,0.75) 0 2px,
      transparent 2px 9px);
  border-top: 2px solid rgba(37,36,34,0.55);
  border-bottom: 2px solid rgba(37,36,34,0.55);
  transform: rotate(-1deg);
}

/* Doodle arrow that loops back on itself */
.nb-ba-doodle {
  position: absolute;
  bottom: -10px; right: 10px;
  width: 120px; height: 90px;
  color: var(--color-orange);
  opacity: 0.55;
  transform: rotate(4deg);
  pointer-events: none;
}

/* Coffee ring */
.nb-ba-coffee {
  position: absolute;
  top: 40px; right: -4px;
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 2.5px solid rgba(120,72,30,0.35);
  box-shadow:
    inset 0 0 0 3px transparent,
    inset 0 0 18px rgba(120,72,30,0.12);
  transform: rotate(-12deg);
  opacity: 0.7;
  pointer-events: none;
}
.nb-ba-coffee::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(120,72,30,0.22);
}

/* Margin note — handwritten in red, off to the right */
.nb-ba-margin {
  position: absolute;
  top: 120px; right: -6px;
  font-family: 'Caveat', cursive;
  font-size: 19px;
  line-height: 22px;
  color: rgba(220,84,84,0.85);
  transform: rotate(8deg);
  text-align: center;
  max-width: 80px;
  pointer-events: none;
}

/* ----- RIGHT: tidy map ----- */
.nb-ba-map {
  position: relative;
  min-height: 340px;
  margin: 0 auto;
  background: #FFFDF5;
  background-image:
    radial-gradient(circle, rgba(37,36,34,0.08) 1.1px, transparent 1.1px);
  background-size: 20px 20px;
  border: 1.5px solid rgba(37,36,34,0.08);
  border-radius: 8px;
}
.nb-ba-map-edges {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  color: rgba(37,36,34,0.4);
}
.nb-ba-node {
  position: absolute;
  display: inline-flex; flex-direction: column;
  align-items: flex-start;
  padding: 8px 12px;
  border: 1.5px solid;
  border-radius: 10px;
  font: 700 13px var(--font-body);
  letter-spacing: -0.005em;
  background: #FFF;
  box-shadow: 2px 3px 0 rgba(37,36,34,0.15);
  white-space: nowrap;
  transform: translate(-50%, -50%);
  max-width: 160px;
}
.nb-ba-node .kind {
  font: 800 8.5px var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 2px;
}
.nb-ba-node-center {
  left: 50%; top: 46%;
  background: var(--color-ink);
  color: var(--color-cream);
  border-color: var(--color-ink);
  font-size: 14px;
}
.nb-ba-node-center .kind { color: var(--color-orange); opacity: 1; }
.nb-ba-node-tl {
  left: 21%; top: 19%;
  transform: translate(-50%, -50%) rotate(-2deg);
}
.nb-ba-node-tr {
  left: 82%; top: 23%;
  transform: translate(-50%, -50%) rotate(2.5deg);
}
.nb-ba-node-bl {
  left: 21%; top: 84%;
  transform: translate(-50%, -50%) rotate(-1.5deg);
}
.nb-ba-node-br {
  left: 82%; top: 84%;
  transform: translate(-50%, -50%) rotate(3deg);
}
.nb-ba-node.concept    { background: #E4EEF7; border-color: #A7C2DC; color: #1F4E7A; }
.nb-ba-node.concept .kind { color: #1F4E7A; }
.nb-ba-node.assumption { background: #FBEFD2; border-color: #E2C07C; color: #8A5A06; }
.nb-ba-node.assumption .kind { color: #8A5A06; }
.nb-ba-node.gap {
  background: #F8DCD4;
  border-color: #DF8B7A; color: #9A2818;
  border-style: dashed;
}
.nb-ba-node.gap .kind { color: #9A2818; }
.nb-ba-node.action     { background: #E9E1F3; border-color: #B5A3D6; color: #543B82; }
.nb-ba-node.action .kind { color: #543B82; }

/* Inky mascot pinned to map corner, peeking */
.nb-ba-inky {
  position: absolute;
  bottom: -30px; right: -24px;
  width: 90px;
  transform: rotate(8deg);
  filter: drop-shadow(3px 4px 0 rgba(37,36,34,0.18));
  z-index: 3;
  pointer-events: none;
}

/* "BRIEFED" rubber stamp */
.nb-ba-stamp {
  position: absolute;
  top: 42px; right: 28px;
  width: 92px; height: 92px;
  color: #0A8F4A;
  transform: rotate(-14deg);
  opacity: 0.88;
  pointer-events: none;
  z-index: 4;
}
.nb-ba-stamp svg { width: 100%; height: 100%; }
.nb-ba-stamp-text {
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  font: 900 13px var(--font-mono);
  letter-spacing: 0.22em;
  color: #0A8F4A;
  text-transform: uppercase;
  padding-bottom: 8px;
}

/* ----- Outcome footer on each page ----- */
.nb-ba-outcome {
  position: absolute;
  left: 44px; right: 44px; bottom: 32px;
  padding-top: 16px;
  border-top: 1.5px dashed rgba(37,36,34,0.25);
}
.nb-ba-page-left .nb-ba-outcome { left: 44px; right: 50px; }
.nb-ba-page-right .nb-ba-outcome { left: 50px; right: 44px; }

.nb-ba-outcome-label {
  font: 800 10px var(--font-mono);
  letter-spacing: 0.18em;
  color: var(--color-orange);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.nb-ba-outcome-text {
  font: 700 17px/1.35 var(--font-display);
  letter-spacing: -0.015em;
  color: var(--color-ink);
  max-width: 320px;
}

/* Tie-down kicker — hand-lettered under the spread */
.nb-ba-kicker-tie {
  margin: 36px auto 0;
  text-align: center;
  position: relative;
}
.nb-ba-kicker-tie span {
  display: inline-block;
  font: 400 30px 'Caveat', cursive;
  color: var(--color-ink);
  transform: rotate(-1.5deg);
  letter-spacing: 0.01em;
}
.nb-ba-kicker-tie span em {
  color: var(--color-orange);
  font-style: italic;
  font-weight: 700;
  background: linear-gradient(180deg, transparent 60%, rgba(249,82,3,0.22) 60% 92%, transparent 92%);
  padding: 0 4px;
}

/* Tablet */
@media (max-width: 900px) {
  .nb-ba-spread { min-height: 500px; }
  .nb-ba-page { padding: 32px 28px 96px; min-height: 500px; }
  .nb-ba-page-left { padding-right: 32px; }
  .nb-ba-page-right { padding-left: 32px; }
  .nb-ba-node { font-size: 11px; padding: 6px 9px; max-width: 120px; }
  .nb-ba-node-center { font-size: 12px; }
  .nb-ba-node .kind { font-size: 7.5px; }
  .nb-ba-margin { top: 100px; font-size: 16px; }
  .nb-ba-coffee { width: 56px; height: 56px; top: 32px; }
  .nb-ba-inky { width: 70px; }
  .nb-ba-stamp { width: 72px; height: 72px; top: 30px; right: 20px; }
  .nb-ba-stamp-text { font-size: 11px; }
  .nb-ba-outcome { left: 28px !important; right: 28px !important; }
}

/* =========================================================
   MOBILE — comprehensive overrides for phones (≤640px)
   =========================================================
   The notebook aesthetic is all big headlines, margin doodles,
   taped polaroids, and ticket stubs. On a phone we:
   - collapse nav links to a compact row (no hamburger needed —
     only 2-3 links, just hide and keep the CTA button)
   - scale down the huge display type
   - release absolutely-positioned decorations (stickies, tickets,
     doodles) so they don't crash into content
   - shrink the animated hero demo
   - re-stack every 2-col spread
   ========================================================= */
@media (max-width: 640px) {
  /* NAV — just brand + CTA */
  .nb-nav { padding: 10px 0; }
  .nb-nav-inner { gap: 10px; }
  .nb-nav-links { display: none; }
  .nb-brand-word { font-size: 18px !important; }
  .nb-brand .stamp { display: none; }
  .nb-nav-cta {
    padding: 7px 12px; font-size: 11.5px;
    white-space: nowrap;
  }

  /* HERO — tighter type + release decorations */
  .nb-hero { padding: 28px 0 40px !important; }
  .nb-hero-spread { gap: 24px; }
  .nb-hero-title {
    font-size: clamp(44px, 13vw, 64px) !important;
    letter-spacing: -0.03em;
    line-height: 0.98;
  }
  .nb-hero-sub { font-size: 16px !important; margin-bottom: 24px !important; }
  .nb-hero-supertitle {
    margin: 0 0 16px !important;
    padding: 10px 0 !important;
  }
  .nb-hero-supertitle-main { font-size: 11px !important; }
  .nb-hero-supertitle-sub { font-size: 9.5px !important; }
  .nb-cta-row {
    flex-direction: column;
    align-items: stretch !important;
    gap: 10px;
  }
  .nb-cta-row .nb-btn { width: 100%; justify-content: center; text-align: center; }

  /* HERO DEMO — shrink browser mock, tighten everything inside */
  .hero-demo { max-width: 100% !important; margin: 0 !important; }
  .hero-demo-stage { aspect-ratio: 4 / 3; }
  .hero-demo-chrome { padding: 7px 10px; }
  .hero-demo-url { font-size: 9px; }
  .hero-demo-rec { font-size: 8.5px; }
  .hero-demo-transcript,
  .hero-demo-map,
  .hero-demo-brief { inset: 10px 10px 34px 10px !important; }
  .hero-demo-transcript-body { font-size: 12px !important; line-height: 1.45 !important; }
  .hero-demo-node { font-size: 9.5px; padding: 4px 7px !important; max-width: 86px; white-space: normal !important; line-height: 1.2; }
  .hero-demo-node .kind { font-size: 6.5px !important; }
  .hero-demo-brief-title { font-size: 20px !important; }
  .hero-demo-brief-quote { font-size: 10.5px !important; }
  .hero-demo-brief-stats b { font-size: 14px !important; }
  .hero-demo-brief-stats span { font-size: 7.5px !important; }
  .hero-demo-label { font-size: 9.5px; left: 10px; bottom: 12px; }

  /* INKY SPOT — collapse padding + min-height to kill empty space */
  .nb-inky-spot {
    padding: 0 !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "demo    demo"
      "watch   watch"
      "sticky  polaroid";
    column-gap: 14px;
    row-gap: 10px;
    align-items: start;
  }
  .nb-demo-wrap { overflow: visible; grid-area: demo; }

  /* Release the pinned polaroid into the grid row beside the sticky */
  .nb-polaroid-pinned {
    position: relative !important;
    grid-area: polaroid;
    align-self: center;
    top: auto !important; left: auto !important;
    width: 120px !important;
    transform: rotate(6deg) !important;
    margin: 0 !important;
  }
  /* Hide the tape strip — it was positioned for the absolute version */
  .nb-polaroid-pinned .nb-tape { display: none; }

  .nb-inky-spot .nb-watch-caption {
    grid-area: watch;
    margin: 6px 0 !important;
  }

  /* STICKIES — release + place into sticky grid area, next to polaroid */
  .nb-inky-spot .nb-sticky-1 {
    position: relative !important;
    grid-area: sticky;
    align-self: center;
    top: auto !important; left: auto !important; right: auto !important;
    max-width: none !important;
    margin: 0 !important;
    transform: rotate(-3deg);
  }
  .nb-inky-spot .nb-sticky-2 { display: none !important; }
  .nb-ticket {
    position: relative !important;
    bottom: auto !important; right: auto !important;
    margin: 18px auto 0 !important;
    max-width: 100%;
    transform: rotate(-1deg);
  }

  /* SECTION — smaller kicker + h2 */
  .nb-section { padding: 60px 0 !important; }
  .nb-section-kicker { font-size: 11px !important; }
  .nb-section h2, .nb-section-title { font-size: clamp(34px, 9vw, 46px) !important; max-width: none; line-height: 1.02; }
  .nb-section-doodle { display: none; } /* freed up space on phones */

  /* BEFORE / AFTER — stack to single column, kill spine, scale map */
  .nb-beforeafter { padding: 50px 0 70px !important; }
  .nb-ba-spread {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
    box-shadow: 0 20px 40px -16px rgba(37,36,34,0.2) !important;
  }
  .nb-ba-spread::before { display: none; }
  .nb-ba-spine { display: none; }
  .nb-ba-page {
    padding: 26px 22px 86px !important;
    min-height: 0 !important;
  }
  .nb-ba-page-left {
    padding-right: 22px !important;
    border-right: 0 !important;
    border-bottom: 1.5px dashed rgba(37,36,34,0.2);
  }
  .nb-ba-page-left::before { left: 34px; }
  .nb-ba-page-right { padding-left: 22px !important; }
  .nb-ba-page-label { margin-bottom: 16px; }
  .nb-ba-page-kicker { font-size: 15px !important; padding: 3px 9px !important; }
  .nb-ba-page-sub { font-size: 9.5px !important; }

  .nb-ba-scribbles { min-height: 240px; }
  .nb-ba-line { font-size: 18px; line-height: 24px; padding-left: 4px; }
  .nb-ba-line.mega { height: 28px; }
  .nb-ba-scratch { left: 4px; right: 40px; }
  .nb-ba-doodle { width: 80px; height: 60px; bottom: -4px; right: 4px; }
  .nb-ba-coffee { width: 44px; height: 44px; top: 24px; right: -4px; }
  .nb-ba-margin { top: 60px; right: -4px; font-size: 14px; max-width: 64px; }

  .nb-ba-map {
    min-height: 260px;
    margin-right: 0;
  }
  .nb-ba-node { font-size: 10.5px !important; padding: 5px 8px !important; max-width: 110px; }
  .nb-ba-node-center { font-size: 11px !important; }
  .nb-ba-node .kind { font-size: 7px !important; }
  /* re-tighten node positions so nothing clips on narrow screens */
  .nb-ba-node-tl { left: 22%; top: 18%; }
  .nb-ba-node-tr { left: 80%; top: 22%; }
  .nb-ba-node-bl { left: 22%; top: 82%; }
  .nb-ba-node-br { left: 80%; top: 82%; }

  .nb-ba-inky { width: 56px; bottom: -18px; right: -14px; }
  .nb-ba-stamp { width: 64px; height: 64px; top: 26px; right: 14px; }
  .nb-ba-stamp-text { font-size: 10px; padding-bottom: 6px; }

  .nb-ba-outcome { left: 22px !important; right: 22px !important; bottom: 24px; }
  .nb-ba-outcome-text { font-size: 15px; max-width: 100%; }

  .nb-ba-kicker-tie span { font-size: 24px; }

  /* How-it-works steps — single col already; tighten */
  .nb-how-steps { gap: 42px !important; }
  .nb-step-num { font-size: 48px !important; }
  .nb-step-title { font-size: 22px !important; }

  /* SPREADS — kill the alternating reverse so content flows cleanly */
  .nb-spread, .nb-spread.reverse {
    margin-bottom: 54px !important;
    gap: 24px !important;
  }
  .nb-spread-title { font-size: 26px !important; }
  .nb-spread-body { font-size: 15px !important; }

  /* Sample + sample-doc section (the dark "here's what it makes" block) */
  .nb-sample { padding: 54px 0 !important; }
  .nb-sample-title { font-size: clamp(30px, 8.5vw, 44px) !important; }
  .nb-sample-sub { font-size: 14.5px !important; }
  .nb-sample-stage { gap: 24px !important; }
  .nb-sample-doc { padding: 24px 20px !important; }
  .nb-sample-doc h3, .nb-sample-doc h4 { font-size: 16px !important; }
  .nb-sample-doc-stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px !important; }

  /* Personas */
  .nb-personas-grid { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }

  /* Inky-says quote block */
  .nb-inky-says { padding: 32px 22px !important; }
  .nb-inky-says q { font-size: 18px !important; }

  /* PRICING — cards stack + shrink price type */
  .nb-pricing { gap: 18px; }
  .nb-price-page { padding: 26px 22px !important; }
  .nb-price-page .price { font-size: 40px !important; }
  .nb-price-page h3 { font-size: 20px !important; }
  .nb-pricing-upgrade {
    flex-direction: column;
    text-align: center;
    gap: 14px !important;
    padding: 20px 22px !important;
  }

  /* FAQ */
  .nb-faq-item q, .nb-faq-item p { font-size: 14.5px !important; }

  /* END CTA */
  .nb-end { padding: 56px 20px !important; }
  .nb-end h2 { font-size: clamp(36px, 10vw, 52px) !important; line-height: 1.02; }
  .nb-end p { font-size: 15px !important; }
  .nb-end-paper { padding: 32px 22px !important; }

  /* FOOTER — collapse to 1 column, then tighten */
  .nb-foot-grid { grid-template-columns: 1fr 1fr !important; gap: 22px !important; }
  .nb-foot-grid > div:first-child { grid-column: 1 / -1; }
}

/* Extra-narrow (≤380px, smaller iPhones) */
@media (max-width: 380px) {
  .nb-container { padding: 0 16px; }
  .nb-hero-title { font-size: 42px !important; }
  .nb-personas-grid { grid-template-columns: 1fr !important; }
}
