/* NoBsDL UI components - NOBSDL_UI_V1 (2026-09-26)
 * Mobile-first component layer loaded AFTER nobsdl.css / design-v1.css /
 * fresh-platform-pages-v3.css / platform-v2.css. Only nb-* classes plus a few
 * scoped mobile refinements; tool/extraction element IDs are untouched.
 * Icons: /static/images/nb-icons.svg (<svg class="nb-i"><use href="...#i-name"/></svg>).
 */
:root {
  --nb-bg: #0a0c12;
  --nb-card: #11141c;
  --nb-card-2: #151925;
  --nb-line: rgba(148, 163, 184, 0.14);
  --nb-line-strong: rgba(129, 140, 248, 0.38);
  --nb-text: #f1f5f9;
  --nb-soft: #cbd5e1;
  --nb-muted: #94a3b8;
  --nb-accent: #818cf8;
  --nb-accent-2: #22d3ee;
  --nb-good: #34d399;
  --nb-warn: #fbbf24;
  --nb-radius: 16px;
  --nb-gutter: 16px;
}

/* ── Base mobile refinements ─────────────────────────────────────────── */
.nb-i { width: 20px; height: 20px; flex: 0 0 auto; display: inline-block; vertical-align: middle; }
.nb-page { font-size: 16px; }
.nb-page p, .nb-page li { line-height: 1.62; }
@media (max-width: 640px) {
  .nb-page .container { padding-left: var(--nb-gutter); padding-right: var(--nb-gutter); }
  /* backdrop-filter is costly on low-end phones; the dark theme doesn't need it. */
  .nb-page .tool-box, .nb-page .content-section, .nb-page header { -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.nb-hero { text-align: center; padding: 20px 0 6px; }
.nb-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px;
  border: 1px solid var(--nb-line); border-radius: 999px; background: var(--nb-card);
  color: var(--nb-soft); font-size: 13px; font-weight: 600; margin-bottom: 14px;
}
.nb-eyebrow .nb-i { width: 22px; height: 22px; padding: 3px; border-radius: 999px; color: #fff;
  background: linear-gradient(135deg, var(--nb-accent), var(--nb-accent-2)); }
.nb-hero h1 { font-size: clamp(1.7rem, 7.2vw, 2.85rem); line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 10px; }
.nb-hero h1 .nb-grad { background: linear-gradient(120deg, #a5b4fc, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nb-lede { color: var(--nb-soft); font-size: 1rem; max-width: 34rem; margin: 0 auto; }

/* ── Tool: input with inline Paste button ───────────────────────────── */
.nb-page .tool-box { border-radius: 20px; padding: 14px; margin-top: 18px; }
.nb-input-wrap { position: relative; margin-bottom: 12px; }
.nb-input-wrap .tool-input, .nb-input-wrap input[type="text"], .nb-input-wrap input[type="url"] {
  margin-bottom: 0 !important; min-height: 54px; font-size: 16px !important; /* no iOS zoom */
  padding-right: 96px !important; width: 100%; box-sizing: border-box;
}
.nb-paste {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
  display: none; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px;
  border-radius: 12px; border: 1px solid var(--nb-line-strong); background: rgba(99, 102, 241, 0.14);
  color: #e0e7ff; font: 600 14px/1 inherit; cursor: pointer;
}
.nb-paste.nb-ready { display: inline-flex; }
.nb-paste .nb-i { width: 18px; height: 18px; }
.nb-page .cta-btn, .nb-page .v3-extract-btn, .nb-page .v2-extract-btn { min-height: 54px; font-size: 16px; }
.nb-tool-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 10px 0 0; color: var(--nb-muted); font-size: 13px; }
.nb-tool-note .nb-i { width: 16px; height: 16px; color: var(--nb-good); }

/* ── Trust chips (2x2 on phones) ─────────────────────────────────────── */
.nb-trust { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 6px; padding: 0; }
.nb-trust li {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; min-height: 48px; box-sizing: border-box;
  border: 1px solid var(--nb-line); border-radius: 12px; background: var(--nb-card); color: var(--nb-soft);
  font-size: 13.5px; font-weight: 600; line-height: 1.25;
}
.nb-trust .nb-i { color: var(--nb-accent-2); }
@media (min-width: 760px) { .nb-trust { grid-template-columns: repeat(4, 1fr); } }

/* ── Sections ────────────────────────────────────────────────────────── */
.nb-section { margin: 34px 0; }
.nb-section > h2, .nb-h2 {
  display: flex; align-items: center; gap: 10px; font-size: 1.3rem; line-height: 1.25;
  letter-spacing: -0.015em; margin: 0 0 12px; color: var(--nb-text);
}
.nb-h2 .nb-i, .nb-section > h2 .nb-i {
  width: 34px; height: 34px; padding: 7px; box-sizing: border-box; border-radius: 10px; color: #c7d2fe;
  background: rgba(99, 102, 241, 0.14); border: 1px solid var(--nb-line-strong);
}
.nb-section > p, .nb-prose p { color: var(--nb-soft); margin: 0 0 12px; }
.nb-section a:not([class]), .nb-prose a { color: #a5b4fc; text-underline-offset: 3px; }
.nb-card {
  border: 1px solid var(--nb-line); border-radius: var(--nb-radius); background: var(--nb-card);
  padding: 16px; position: relative;
}
.nb-card--accent { border-color: var(--nb-line-strong); background:
  linear-gradient(180deg, rgba(99, 102, 241, 0.10), rgba(99, 102, 241, 0) 60%), var(--nb-card); }
@media (min-width: 760px) {
  .nb-section { margin: 48px 0; }
  .nb-section > h2, .nb-h2 { font-size: 1.55rem; }
  .nb-card { padding: 22px; }
}

/* ── Steps ───────────────────────────────────────────────────────────── */
.nb-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: nbstep; }
.nb-steps li {
  counter-increment: nbstep; display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start;
  padding: 14px; border: 1px solid var(--nb-line); border-radius: var(--nb-radius); background: var(--nb-card);
}
.nb-step-ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; position: relative; color: #fff;
  background: linear-gradient(135deg, var(--nb-accent), #0891b2);
}
.nb-step-ico::after {
  content: counter(nbstep); position: absolute; right: -6px; bottom: -6px; width: 20px; height: 20px; border-radius: 999px;
  display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #0b1020; background: #e0e7ff;
  border: 2px solid var(--nb-bg);
}
.nb-steps strong { display: block; color: var(--nb-text); font-size: 1rem; margin: 2px 0 2px; }
.nb-steps span { color: var(--nb-muted); font-size: 14.5px; line-height: 1.5; }
@media (min-width: 760px) { .nb-steps { grid-template-columns: repeat(3, 1fr); } .nb-steps li { grid-template-columns: 1fr; } }

/* ── Feature grid ────────────────────────────────────────────────────── */
.nb-features { display: grid; gap: 10px; }
.nb-feature {
  display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; padding: 14px;
  border: 1px solid var(--nb-line); border-radius: var(--nb-radius); background: var(--nb-card);
}
.nb-feature > .nb-i { width: 40px; height: 40px; padding: 9px; box-sizing: border-box; border-radius: 12px; color: #a5f3fc;
  background: rgba(34, 211, 238, 0.10); border: 1px solid rgba(34, 211, 238, 0.28); }
.nb-feature h3 { font-size: 1rem; margin: 1px 0 3px; color: var(--nb-text); line-height: 1.3; }
.nb-feature p { margin: 0; color: var(--nb-muted); font-size: 14.5px; line-height: 1.5; }
@media (min-width: 620px) { .nb-features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .nb-features--3 { grid-template-columns: repeat(3, 1fr); } }

/* ── Spec table (stacks on phones, no horizontal scroll) ─────────────── */
.nb-spec { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--nb-line); border-radius: var(--nb-radius); overflow: hidden; background: var(--nb-card); font-size: 14.5px; }
.nb-spec th, .nb-spec td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--nb-line); vertical-align: top; }
.nb-spec thead th { background: var(--nb-card-2); color: var(--nb-soft); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }
.nb-spec tbody th { color: var(--nb-text); font-weight: 700; }
.nb-spec td { color: var(--nb-soft); }
.nb-spec tr:last-child th, .nb-spec tr:last-child td { border-bottom: 0; }
.nb-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid; white-space: nowrap; }
.nb-tag--free { color: #6ee7b7; border-color: rgba(52, 211, 153, .4); background: rgba(52, 211, 153, .08); }
.nb-tag--sup { color: #fcd34d; border-color: rgba(251, 191, 36, .4); background: rgba(251, 191, 36, .08); }
@media (max-width: 559px) {
  .nb-spec thead { display: none; }
  .nb-spec, .nb-spec tbody, .nb-spec tr, .nb-spec th, .nb-spec td { display: block; width: 100%; box-sizing: border-box; }
  .nb-spec tr { border-bottom: 1px solid var(--nb-line); padding: 10px 14px; }
  .nb-spec tr:last-child { border-bottom: 0; }
  .nb-spec th, .nb-spec td { border: 0; padding: 2px 0; }
  .nb-spec td[data-label]::before { content: attr(data-label) " · "; color: var(--nb-muted); font-weight: 600; }
}

/* ── Callouts ────────────────────────────────────────────────────────── */
.nb-callout {
  display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 14px; margin: 14px 0;
  border: 1px solid var(--nb-line); border-left: 3px solid var(--nb-accent); border-radius: 12px; background: var(--nb-card);
  color: var(--nb-soft); font-size: 14.5px; line-height: 1.55;
}
.nb-callout .nb-i { width: 22px; height: 22px; color: var(--nb-accent); }
.nb-callout--good { border-left-color: var(--nb-good); } .nb-callout--good .nb-i { color: var(--nb-good); }
.nb-callout--warn { border-left-color: var(--nb-warn); } .nb-callout--warn .nb-i { color: var(--nb-warn); }
.nb-callout p { margin: 0; } .nb-callout strong { color: var(--nb-text); }

/* ── Do / don't lists ────────────────────────────────────────────────── */
.nb-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nb-checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--nb-soft); font-size: 15px; }
.nb-checks .nb-i { width: 22px; height: 22px; padding: 3px; border-radius: 999px; box-sizing: border-box; }
.nb-checks--yes .nb-i { color: #052e1f; background: var(--nb-good); }
.nb-checks--no .nb-i { color: #3b0a0a; background: #f87171; }
.nb-split { display: grid; gap: 10px; }
.nb-split h3 { font-size: 1rem; margin: 0 0 10px; color: var(--nb-text); }
@media (min-width: 760px) { .nb-split { grid-template-columns: 1fr 1fr; } }

/* ── Platform / tool hub ─────────────────────────────────────────────── */
.nb-hub { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nb-hub a {
  display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: center; min-height: 58px; padding: 10px 12px;
  border: 1px solid var(--nb-line); border-radius: 14px; background: var(--nb-card); text-decoration: none; color: var(--nb-text);
  transition: border-color .2s, background .2s;
}
.nb-hub a:hover, .nb-hub a:focus-visible { border-color: var(--nb-line-strong); background: var(--nb-card-2); }
.nb-hub .nb-i { width: 32px; height: 32px; padding: 6px; box-sizing: border-box; border-radius: 10px; color: #c7d2fe; background: rgba(99, 102, 241, .14); }
.nb-hub b { display: block; font-size: 14px; line-height: 1.25; }
.nb-hub small { display: block; color: var(--nb-muted); font-size: 12px; line-height: 1.3; margin-top: 1px; }
.nb-hub a[aria-current="page"] { border-color: var(--nb-line-strong); }
@media (min-width: 760px) { .nb-hub { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .nb-hub--4 { grid-template-columns: repeat(4, 1fr); } }

/* ── FAQ (native <details>, no JS) ───────────────────────────────────── */
.nb-faq { display: grid; gap: 8px; }
.nb-faq details { border: 1px solid var(--nb-line); border-radius: 14px; background: var(--nb-card); }
.nb-faq details[open] { border-color: var(--nb-line-strong); }
.nb-faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 22px; gap: 10px; align-items: center;
  padding: 14px; min-height: 52px; box-sizing: border-box; font-weight: 700; color: var(--nb-text); font-size: 15.5px; line-height: 1.35;
}
.nb-faq summary::-webkit-details-marker { display: none; }
.nb-faq summary .nb-i { transition: transform .2s; color: var(--nb-muted); }
.nb-faq details[open] summary .nb-i { transform: rotate(180deg); color: var(--nb-accent); }
.nb-faq .nb-faq-a { padding: 0 14px 14px; color: var(--nb-soft); font-size: 15px; line-height: 1.6; }
.nb-faq .nb-faq-a p { margin: 0 0 8px; } .nb-faq .nb-faq-a p:last-child { margin: 0; }
.nb-faq a { color: #a5b4fc; }

/* ── Back-to-tool floating button (phones) ───────────────────────────── */
.nb-totool {
  position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 60;
  display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 14px; border-radius: 999px;
  background: linear-gradient(135deg, var(--nb-accent), #0891b2); color: #fff; font-weight: 700; font-size: 14px;
  text-decoration: none; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(12px);
  pointer-events: none; transition: opacity .2s, transform .2s;
}
.nb-totool.nb-show { opacity: 1; transform: none; pointer-events: auto; }
.nb-totool .nb-i { width: 18px; height: 18px; }
@media (min-width: 900px) { .nb-totool { display: none; } }

/* ── Misc ────────────────────────────────────────────────────────────── */
.nb-kicker { color: var(--nb-muted); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 6px; }
.nb-updated { color: var(--nb-muted); font-size: 13px; margin: 6px 0 0; }
.nb-divider { border: 0; border-top: 1px solid var(--nb-line); margin: 28px 0; }
@media (prefers-reduced-motion: reduce) { .nb-faq summary .nb-i, .nb-totool, .nb-hub a { transition: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nb-section .nb-hub a { color: var(--nb-text); text-decoration: none; }
.nb-faq + .nb-updated { margin-top: 14px; }
.nb-hero h1 .nb-grad { display: block; font-size: .6em; line-height: 1.2; margin-top: 6px; letter-spacing: -0.01em; }
.nb-page .nobsdl-legal-note, .nb-page .v3-lawful-notice, .nb-page .v2-lawful-notice { margin-top: 14px; }

/* Page-grid integration. design-v1.css lays .youtube-page / .platform-page out
   as a 12-column grid and only places its own legacy children; nb-* blocks
   would otherwise land in a single 1/12 cell on desktop. Every nb block spans
   the row; the hero sits beside the tool box above 980px, as the legacy
   hero did, and stacks above it below that. */
.nb-page .youtube-page > [class*="nb-"],
.nb-page .platform-page > [class*="nb-"] { grid-column: 1 / -1; min-width: 0; }
.nb-page .youtube-page > .nb-hero,
.nb-page .platform-page > .nb-hero { grid-column: 1 / 6; text-align: left; padding: 3.2rem 1.25rem 2rem 0; align-self: center; margin: 0; }
.nb-page .youtube-page > .nb-hero .nb-lede,
.nb-page .platform-page > .nb-hero .nb-lede { margin-left: 0; }
.nb-page .youtube-page > .nb-section,
.nb-page .platform-page > .nb-section { margin: 30px 0 0; }
.nb-page .platform-page > .v2-lawful-notice,
.nb-page .platform-page > .v3-lawful-notice { grid-column: 1 / -1; height: auto; }
@media (max-width: 980px) {
  .nb-page .youtube-page > .nb-hero,
  .nb-page .platform-page > .nb-hero { grid-column: 1 / -1; text-align: center; padding: 20px 0 6px; }
  .nb-page .youtube-page > .nb-hero .nb-lede,
  .nb-page .platform-page > .nb-hero .nb-lede { margin-left: auto; }
  .nb-page .youtube-page > .nb-section,
  .nb-page .platform-page > .nb-section { margin-top: 18px; }
}
.nb-page .v2-lawful-notice a, .nb-page .v3-lawful-notice a, .nb-page .nobsdl-legal-note a { color: #a5b4fc; }
