/* Plugin Builder and Start Your Server feature pages (fb- vocabulary).

   Ported from the approved 2026-09-28 design handoff. Light theme keeps the
   design's ink, blue and muted text; dark theme keeps the same layout on the
   site's dark tokens. Both sit on the site's own backdrop: the starfield from
   _sky.html and the drifting nebula below, so the page itself stays
   transparent. Everything is scoped under .fb so nothing reaches the shared
   nav, footer or any other page. */

.fb {
  --fb-ink: var(--text);
  --fb-muted: var(--muted);
  --fb-blue: #3b82f6;
  --fb-blue-hover: #2f6fe0;
  --fb-accent: #74b3ff;
  --fb-blue-soft: rgba(59, 130, 246, 0.12);
  --fb-line: rgba(96, 128, 210, 0.2);
  --fb-step-line: rgba(96, 128, 210, 0.24);
  --fb-wash: rgba(22, 27, 46, 0.55);
  --fb-navy: #0f1a30;
  --fb-navy-line: rgba(96, 128, 210, 0.3);
  --fb-note: rgba(150, 152, 176, 0.85);
  --fb-caption: rgba(170, 176, 204, 0.92);
  --fb-link-soft: #8fb4ff;
  --fb-icon: #8aa0c8;
  --fb-dialog-bg: #111525;
  --fb-backdrop: rgba(4, 6, 12, 0.72);
  --fb-shot-shadow: 0 22px 50px -26px rgba(0, 0, 0, 0.8);
  --fb-focus: #5a83ff;

  position: relative;
  padding-top: var(--nav-height, 64px);
  flex: 1 0 auto;
  background: transparent;
  color: var(--fb-ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: normal;
  font-synthesis: none;
}

[data-theme="light"] .fb {
  --fb-ink: #16233c;
  --fb-muted: #58677e;
  --fb-blue: #2459ed;
  --fb-blue-hover: #1647d6;
  --fb-accent: #2459ed;
  --fb-blue-soft: #edf2ff;
  /* The design's #e0e6ee hairlines vanish on the #eceef5 light canvas, so
     lines use the site's light border tone instead. */
  --fb-line: rgba(72, 108, 185, 0.22);
  --fb-step-line: rgba(72, 108, 185, 0.26);
  --fb-wash: rgba(253, 254, 255, 0.6);
  --fb-navy: #15243e;
  --fb-navy-line: #2e405e;
  --fb-note: #718099;
  --fb-caption: #64748c;
  --fb-link-soft: #4a65a0;
  --fb-icon: #6c81a2;
  --fb-dialog-bg: #fff;
  --fb-backdrop: rgba(19, 33, 56, 0.44);
  --fb-shot-shadow: 0 22px 50px -26px rgba(35, 54, 102, 0.38);
}

/* Element resets at zero specificity (:where), so every fb- class rule below
   wins over them the way the design's bare element resets did. */
:where(.fb) :where(h1, h2, h3, p) { margin: 0; }
:where(.fb) :where(img) { max-width: 100%; display: block; }
:where(.fb) :where(button) { color: inherit; }
:where(.fb) :where(button, a, summary) { -webkit-tap-highlight-color: transparent; }
.fb :is(button, a, summary):focus-visible { outline: 3px solid var(--fb-focus); outline-offset: 5px; }

/* ── Backdrop: the same drifting nebula as the other /features/* pages. The
   blob shapes, colours and drift keyframes come from home.css (loaded
   first); only the container lives here. Viewport-fixed so the glow fills
   every scroll position. ── */
.features-nebula {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  --nebula-alpha: 1;
  opacity: var(--nebula-alpha);
  animation: features-nebula-in 1.4s ease both;
}
/* Blur on each blob, not the container: a container filter flattens the
   group and forces viewport-sized re-blurs every drift frame. */
.features-nebula .nebula-blob { filter: blur(40px); }
[data-theme="light"] .features-nebula { --nebula-alpha: 0.55; }
@keyframes features-nebula-in {
  from { opacity: 0; }
  to   { opacity: var(--nebula-alpha, 1); }
}
.page-hidden .features-nebula .nebula-blob { animation-play-state: paused; }
/* Content paints above the nebula. The <dialog> is left out: its UA
   `position: fixed` in the top layer must not become relative. */
.fb > :not(.features-nebula, dialog) { position: relative; z-index: 1; }

.fb-container { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }

/* ── Hero ── */
.fb-hero { padding: 78px 0 64px; }
.fb-hero-grid { display: grid; grid-template-columns: 1fr 1.06fr; align-items: center; gap: 65px; }
.fb-hero-copy { min-width: 0; }
.fb-identity { display: flex; align-items: center; gap: 15px; }
.fb-logo { width: 104px; height: 104px; object-fit: contain; flex-shrink: 0; }
.fb-feature-name { font-size: 1.075rem; font-weight: 650; letter-spacing: -.025em; line-height: 1.5; }
.fb-eyebrow { margin-top: 6px; font-size: .75rem; letter-spacing: .1em; font-weight: 650; text-transform: uppercase; color: var(--fb-accent); }
.fb h1 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(2.65rem, 4.1vw, 3.65rem);
  font-weight: 650;
  letter-spacing: -.057em;
  line-height: 1.075;
  margin-top: 22px;
  max-width: 570px;
  color: var(--fb-ink);
}
.fb h1 .fb-accent { color: var(--fb-accent); }
.fb-lede { margin-top: 25px; font-size: 1.075rem; line-height: 1.75; color: var(--fb-muted); max-width: 455px; }
.fb-actions { display: flex; gap: 25px; align-items: center; margin-top: 31px; flex-wrap: wrap; }
.fb-button {
  display: inline-flex; justify-content: center; align-items: center; gap: 13px;
  min-height: 48px; border-radius: 10px; background: var(--fb-blue); color: #fff;
  border: 1px solid transparent; padding: 13px 21px; font-size: .9rem; font-weight: 600; line-height: 1.5;
  transition: background .15s, transform .15s;
}
.fb-button:hover { background: var(--fb-blue-hover); transform: translateY(-1px); }
.fb-button svg { width: 17px; height: 17px; }
.fb-text-link { font-size: .875rem; font-weight: 550; display: inline-flex; align-items: center; gap: 8px; line-height: 1.5; color: var(--fb-ink); }
.fb-text-link:hover { color: var(--fb-accent); }
.fb-text-link svg { width: 16px; height: 16px; }
.fb-cost-note { color: var(--fb-muted); font-size: .8rem; line-height: 1.7; margin-top: 17px; }
.fb-cost-note a { text-decoration: underline; text-underline-offset: 3px; }
.fb-cost-note .fb-premium {
  display: inline-flex; align-items: center; vertical-align: middle; padding: 5px 9px;
  border: 1px solid transparent; border-radius: 6px; background: #f7ba33; color: #241a02;
  font-weight: 700; line-height: 1.25; letter-spacing: .01em; white-space: nowrap; text-decoration: none;
  box-shadow: 0 2px 8px rgba(247, 186, 51, 0.15); transition: background .15s;
}
.fb-cost-note .fb-premium:hover { background: #ffd45c; color: #241a02; }
.fb-cost-note .fb-premium:active { background: #e8981a; }

/* ── Product preview ── */
.fb-demo { min-width: 0; }
.fb-demo-caption { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--fb-caption); font-size: .8rem; margin-bottom: 13px; }
.fb-demo-caption > span { font-weight: 550; }
.fb-expand { display: flex; align-items: center; gap: 6px; padding: 7px 8px; border: 0; background: transparent; color: var(--fb-link-soft); font-size: .8rem; border-radius: 6px; }
.fb-expand:hover { background: var(--fb-blue-soft); color: var(--fb-accent); }
.fb-expand svg { width: 15px; height: 15px; }
.fb-shot {
  display: block; width: 100%; border: 1px solid #24304c; border-radius: 17px; overflow: hidden;
  padding: 0; background: #0d0f1a; box-shadow: var(--fb-shot-shadow); text-align: left; cursor: zoom-in;
}
.fb-shot img { width: 100%; height: auto; }
.fb-shot-note { font-size: .75rem; line-height: 1.6; color: var(--fb-note); margin-top: 13px; text-align: center; }

/* ── Reassurance band ── */
.fb-band { padding: 24px 0; border-block: 1px solid var(--fb-line); background: var(--fb-wash); }
.fb-band-inner { display: flex; justify-content: center; gap: 69px; flex-wrap: wrap; }
.fb-band-item { display: flex; gap: 10px; align-items: center; color: var(--fb-muted); font-size: .8rem; }
.fb-band-item svg { width: 19px; height: 19px; color: var(--fb-icon); flex-shrink: 0; }

/* ── Sections + steps ── */
.fb-section { padding: 80px 0; scroll-margin-top: var(--nav-height, 64px); }
.fb-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 34px; }
.fb-kicker { color: var(--fb-muted); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 650; margin-bottom: 15px; }
.fb h2 { font-family: 'Inter', system-ui, sans-serif; font-size: clamp(1.9rem, 3vw, 2.35rem); font-weight: 620; line-height: 1.18; letter-spacing: -.045em; color: var(--fb-ink); }
.fb-subtitle { color: var(--fb-muted); font-size: .95rem; line-height: 1.7; max-width: 400px; }
.fb-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.fb-step h3 { font-size: 1.125rem; font-weight: 620; letter-spacing: -.025em; margin-bottom: 11px; color: var(--fb-ink); }
.fb-step p { font-size: .91rem; line-height: 1.75; color: var(--fb-muted); }
.fb-step-visual { position: relative; display: flex; align-items: center; justify-content: center; padding-top: 42px; margin-bottom: 20px; }
.fb-step-number { position: absolute; top: 0; left: 0; width: 100%; display: flex; align-items: center; gap: 16px; color: var(--fb-ink); }
.fb-step-number span { font-family: 'Fredoka', 'Inter', sans-serif; font-size: 1.75rem; font-weight: 450; line-height: 1; letter-spacing: .015em; font-variant-numeric: tabular-nums; }
.fb-step-number::after { content: ""; height: 1px; background: var(--fb-step-line); flex: 1; }
.fb-step-mascot { width: 220px; max-width: calc(100% - 44px); height: auto; aspect-ratio: 1; object-fit: contain; }

/* ── Walkthrough video ── */
.fb-walkthrough { padding: 0 0 2px; }
.fb-walkthrough-layout { max-width: 800px; }
.fb-video {
  position: relative; aspect-ratio: 16 / 9; min-width: 0; display: grid; place-items: center;
  background: var(--fb-navy); border: 1px solid var(--fb-navy-line); border-radius: 18px; overflow: hidden;
}
.fb-video iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.fb-video-poster { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.fb-video-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.fb-video-poster:hover img { transform: scale(1.015); }
.fb-video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(8, 12, 22, 0.72); border: 1px solid rgba(116, 179, 255, 0.45); color: #fff;
  transition: transform .2s ease, background .2s ease;
}
.fb-video-play svg { width: 28px; height: 28px; margin-left: 4px; }
.fb-video-poster:hover .fb-video-play,
.fb-video-poster:focus-visible .fb-video-play { transform: translate(-50%, -50%) scale(1.08); background: #2459ed; }
.fb-video-soon { display: grid; justify-items: center; gap: 12px; padding: 30px; text-align: center; }
.fb-video-soon img { width: 104px; height: 104px; object-fit: contain; margin-bottom: 2px; }
.fb-video-feature { font-family: 'Fredoka', 'Inter', sans-serif; font-size: 1.55rem; font-weight: 450; line-height: 1.2; color: #fff; }
.fb-video-status { font-size: .88rem; line-height: 1.6; color: #bfcbde; }
.fb-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── Questions ── */
.fb-faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 85px; }
.fb-faq-intro .fb-kicker { margin-bottom: 8px; }
.fb-faq-intro p:not(.fb-kicker) { margin-top: 10px; color: var(--fb-muted); font-size: .9rem; line-height: 1.9; }
.fb-faq-intro .fb-text-link { margin-top: 9px; }
.fb-faq-heading { display: flex; flex-direction: column; align-items: center; width: max-content; max-width: 100%; }
.fb-faq-mascot { width: 96px; height: 96px; margin-bottom: 6px; object-fit: contain; pointer-events: none; }
.fb-faq-item { border-bottom: 1px solid var(--fb-line); scroll-margin-top: calc(var(--nav-height, 64px) + 25px); }
.fb-faq-item:first-child { border-top: 1px solid var(--fb-line); }
.fb-faq-item summary {
  list-style: none; cursor: pointer; padding: 24px 2px; display: flex; gap: 24px; align-items: center;
  justify-content: space-between; font-size: .95rem; font-weight: 550; line-height: 1.5; color: var(--fb-ink);
}
.fb-faq-item summary::-webkit-details-marker { display: none; }
.fb-faq-item summary:hover { color: var(--fb-accent); }
.fb-plus { width: 12px; height: 12px; position: relative; flex-shrink: 0; color: var(--fb-icon); }
.fb-plus::before, .fb-plus::after { content: ""; position: absolute; background: currentColor; }
.fb-plus::before { width: 12px; height: 1.5px; top: 5px; left: 0; }
.fb-plus::after { width: 1.5px; height: 12px; top: 0; left: 5px; transition: transform .15s; }
.fb-faq-item[open] .fb-plus::after { transform: rotate(90deg); }
.fb-faq-answer { font-size: .9rem; line-height: 1.8; color: var(--fb-muted); padding: 0 22px 23px 2px; }
.fb-faq-answer a { color: var(--fb-accent); text-decoration: underline; text-underline-offset: 3px; }

/* ── Enlarged product preview ── */
.fb-dialog {
  /* home.css's `* { margin: 0 }` removes the UA `margin: auto` that centres a modal. */
  margin: auto;
  border: 1px solid var(--fb-line); padding: 20px; border-radius: 17px; max-width: 1140px;
  width: calc(100% - 40px); max-height: 94vh; color: var(--fb-ink); background: var(--fb-dialog-bg);
  box-shadow: 0 30px 100px rgba(16, 32, 59, 0.15);
}
.fb-dialog::backdrop { background: var(--fb-backdrop); backdrop-filter: blur(3px); }
.fb-dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.fb-dialog-top h2 { font-size: 1.05rem; letter-spacing: -.02em; }
.fb-dialog-top p { color: var(--fb-muted); font-size: .78rem; margin: 6px 0 0; line-height: 1.5; }
.fb-icon-button { border: 1px solid var(--fb-line); border-radius: 8px; display: grid; place-items: center; background: transparent; width: 34px; height: 34px; flex-shrink: 0; padding: 0; }
.fb-icon-button svg { width: 17px; height: 17px; }
.fb-dialog-image { max-height: calc(94vh - 110px); overflow: auto; border-radius: 10px; background: #0d0f1a; }
.fb-dialog-image img { width: 100%; height: auto; }

/* ── Responsive (the design's own breakpoints) ── */
@media (min-width: 1500px) {
  .fb-hero { padding-top: 90px; padding-bottom: 80px; }
}
@media (max-width: 1000px) {
  .fb-hero-grid { gap: 32px; grid-template-columns: 1fr 1fr; }
  .fb-hero { padding-top: 54px; }
  .fb-lede { font-size: 1rem; }
  .fb-band-inner { gap: 25px; }
  .fb-steps { gap: 26px; }
  .fb-actions { gap: 18px; }
  .fb-faq-layout { gap: 45px; }
  .fb-video-soon { padding: 24px; gap: 10px; }
  .fb-video-soon img { width: 88px; height: 88px; }
}
@media (max-width: 760px) {
  .fb-container { width: calc(100% - 40px); }
  .fb-hero { padding: 45px 0 40px; }
  .fb-hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .fb-hero-copy { max-width: 560px; }
  .fb h1 { font-size: clamp(2.45rem, 8.5vw, 3.5rem); max-width: 580px; letter-spacing: -.05em; margin-top: 17px; }
  .fb-lede { margin-top: 20px; max-width: 530px; }
  .fb-actions { margin-top: 25px; }
  .fb-actions .fb-button { font-size: .875rem; }
  .fb-demo { max-width: 570px; width: 100%; justify-self: center; }
  .fb-demo-caption { font-size: .78rem; }
  .fb-logo { width: 88px; height: 88px; }
  .fb-identity { gap: 12px; }
  .fb-feature-name { font-size: 1rem; }
  .fb-band { padding: 21px 0; }
  .fb-band-inner { justify-content: start; gap: 16px 28px; }
  .fb-band-item { font-size: .78rem; }
  .fb-section { padding: 52px 0; }
  .fb-section-heading { align-items: start; flex-direction: column; gap: 17px; margin-bottom: 26px; }
  .fb-steps { grid-template-columns: 1fr; gap: 25px; }
  .fb-step p { max-width: 570px; }
  .fb-faq-layout { grid-template-columns: 1fr; gap: 28px; }
  .fb-faq-intro h2 br { display: none; }
  .fb-faq-intro .fb-text-link { margin-top: 3px; }
  .fb-faq-item summary { padding-block: 23px; }
  .fb-faq-mascot { width: 64px; height: 64px; }
  .fb-questions { padding-block: 23px; }
  .fb-video-soon { gap: 8px; padding: 16px; }
  .fb-video-soon img { width: clamp(56px, 13vw, 104px); height: clamp(56px, 13vw, 104px); }
  .fb-video-feature { font-size: 1.2rem; }
  .fb-video-status { font-size: .8rem; }
  .fb-video-play { width: 56px; height: 56px; }
  .fb-dialog { width: calc(100% - 20px); padding: 12px; }
  .fb-dialog-top p { max-width: 230px; }
  .fb-dialog-image { max-height: 75vh; }
  .fb-dialog-image img { width: 1100px; max-width: none; }
}
@media (max-width: 390px) {
  .fb-container { width: calc(100% - 32px); }
  .fb-actions { gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .fb * { transition: none !important; }
}
