/* BundleBoss site: shared styles. Ink/coral/plum identity, Inter. */
:root {
  --ink: #151029;
  --ink2: #1d1535;
  --surface: #211942;
  --text: #efedf5;
  --muted: #b9b3cc;
  --faint: #6f6889;
  --coral: #fd4730;
  --coral2: #ff8a5e;
  --magenta: #c2188f;
  --line: rgba(239, 237, 245, 0.12);
}
/* Light theme: toggled via [data-theme="light"] on <html>; default stays dark. */
html[data-theme="light"] {
  --ink: #f6f5f9;
  --ink2: #ffffff;
  --surface: #ffffff;
  --text: #1c1530;
  --muted: #5d5570;
  --faint: #8b8398;
  --line: rgba(28, 21, 48, 0.12);
  --coral2: #d4381f;
}
html[data-theme="light"] .aurora { opacity: 0.3; }
html[data-theme="light"] .shot { border-color: rgba(28, 21, 48, 0.08); box-shadow: 0 24px 50px -28px rgba(28, 21, 48, 0.28), 0 6px 18px rgba(28, 21, 48, 0.10); }
/* Screenshots are bright white UI; on the light page they glare. Sit them on a soft
   grey mat and dim a touch so they're easier on the eye. Dark mode keeps them bright. */
html[data-theme="light"] .shot, html[data-theme="light"] .tab-frame, html[data-theme="light"] .tab-frame .tab-img { background: #e6e4ed; }
html[data-theme="light"] .shot img, html[data-theme="light"] .shot video, html[data-theme="light"] .docs-content img { filter: brightness(0.955); }
* { margin: 0; padding: 0; box-sizing: border-box; }
html { background-color: var(--ink); scrollbar-gutter: stable; }
body {
  font-family: 'Inter', -apple-system, "Segoe UI", sans-serif;
  background: transparent;
  color: var(--text);
  line-height: 1.65;
}
/* slow, breathing aurora glow as ambient light behind the page */
.aurora {
  position: fixed; top: -20vh; left: 0; right: 0; height: 78vh; z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(44% 60% at 80% 38%, rgba(253, 71, 48, 0.18), transparent 70%),
    radial-gradient(40% 56% at 16% 28%, rgba(194, 24, 143, 0.15), transparent 70%);
  animation: aurora-drift 16s ease-in-out infinite alternate;
}
@keyframes aurora-drift {
  0%   { transform: translateY(0);  opacity: 0.82; }
  100% { transform: translateY(6%); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .aurora { animation: none; } }
a { color: var(--coral2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* header */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1060px; margin: 0 auto; padding: 22px 24px;
}
.site-logo { display: flex; align-items: center; gap: 12px; }
.site-logo img { width: 40px; height: 40px; }
.site-logo span { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.site-logo b { color: var(--coral); }
.site-nav { display: flex; gap: 26px; font-size: 14.5px; font-weight: 500; }
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav a.active { color: var(--text); }

/* layout */
/* horizontal padding only, so each section's vertical padding actually applies
   (a plain `padding: 0 24px` here was cancelling the section rhythm) */
.wrap { max-width: 1060px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.narrow { max-width: 720px; }
section { padding: 56px 0; }
/* A section straight after a hero needs no extra top padding: the hero already
   spaces the content, otherwise the two stack into a large gap. */
.hero + section { padding-top: 0; }
.hero { text-align: center; padding: 72px 0 64px; }
.hero h1, .hero-split h1 {
  font-size: clamp(32px, 6vw, 56px); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 20px;
}
.hero h1 em, .hero-split h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--coral), var(--coral2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: 18px; color: var(--muted); max-width: 600px; margin: 0 auto 32px; font-weight: 500; }
.badge {
  display: inline-block; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--coral2);
  border: 1px solid rgba(255, 138, 94, 0.35); border-radius: 100px;
  padding: 7px 16px; margin-bottom: 24px;
}
.btn {
  display: inline-block; font-weight: 700; font-size: 15.5px;
  padding: 13px 28px; border-radius: 10px; text-decoration: none;
}
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: #e63a1f; text-decoration: none; }
.btn-ghost { border: 1px solid var(--line); color: var(--text); margin-left: 10px; }
.btn-ghost:hover { border-color: var(--muted); text-decoration: none; }
.btn:focus-visible, a:focus-visible {
  outline: 2px solid var(--coral2); outline-offset: 3px; border-radius: 10px;
}

h2.section-title { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; text-align: center; margin-bottom: 10px; }
p.section-sub { text-align: center; color: var(--muted); margin-bottom: 40px; }

/* feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--ink2); border: 1px solid var(--line);
  border-radius: 14px; padding: 26px;
}
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--muted); }
.card .pro-tag {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; background: var(--coral); color: #fff;
  border-radius: 100px; padding: 2px 8px; margin-left: 8px; vertical-align: 2px;
}

/* pricing */
.currency-toggle { display: inline-flex; gap: 4px; border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.currency-toggle button { border: 0; background: none; padding: 7px 16px; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; color: var(--muted); }
.currency-toggle button:hover { color: var(--text); }
.currency-toggle button.active { background: var(--coral); color: #fff; }

.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.tier {
  background: var(--ink2); border: 1px solid var(--line);
  border-radius: 16px; padding: 28px 24px; display: flex; flex-direction: column;
  position: relative;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
/* The whole card is the CTA: stretch the button's hit area over it. */
.tier .btn::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.tier:hover {
  border-color: var(--coral2);
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}
.tier:has(.btn:focus-visible) { border-color: var(--coral); }
.tier.featured { border-color: var(--coral); position: relative; }
.tier.featured::before {
  content: "Most popular"; position: absolute; top: -11px; left: 50%;
  transform: translateX(-50%); background: var(--coral); color: #fff;
  font-size: 11px; font-weight: 700; border-radius: 100px; padding: 3px 12px;
}
.tier h3 { font-size: 16px; font-weight: 700; }
.tier .price { font-size: 36px; font-weight: 800; margin: 10px 0 2px; }
.tier .price small { font-size: 14px; font-weight: 500; color: var(--muted); }
.tier .price .was { display: block; font-size: 22px; font-weight: 600; line-height: 1; margin-bottom: 3px; color: var(--muted); text-decoration: line-through; }
.launch-note { max-width: 660px; margin: 14px auto 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.launch-note strong { color: var(--coral); }
.roadmap-teaser { text-align: center; font-size: 14px; color: var(--muted); margin-top: 16px; }
.tier .per { font-size: 13px; color: var(--faint); margin-bottom: 18px; }
.tier ul { list-style: none; margin: 0 0 22px; flex: 1; }
.tier li { font-size: 14px; color: var(--muted); padding: 5px 0 5px 24px; position: relative; }
.tier li::before { content: "\2713"; position: absolute; left: 0; color: #2ecc71; font-weight: 700; }
.tier li.no::before { content: "\2013"; color: var(--faint); }
.tier .btn { text-align: center; }

.currency-note {
  text-align: center; color: var(--faint); font-size: 13px; margin-top: 18px;
}

/* plan selection (JS-enhanced pricing) */
.tiers.js-select .tier { cursor: pointer; }
.tiers.js-select .tier .btn::after { display: none; }
.tiers.js-select .tier .btn { pointer-events: none; }
.tier.selected { border-color: var(--coral); }
.tier.selected::after {
  content: "\2713 Selected"; position: absolute; top: 14px; right: 14px;
  font-size: 11px; font-weight: 700; color: var(--coral2);
}
.plan-bar {
  position: fixed; bottom: 18px; left: 50%;
  transform: translateX(-50%) translateY(140%);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  max-width: calc(100vw - 28px);
  background: var(--surface); border: 1px solid var(--coral);
  border-radius: 14px; padding: 12px 18px; z-index: 60;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  opacity: 0; transition: transform 240ms ease, opacity 240ms ease;
}
.plan-bar.open { transform: translateX(-50%) translateY(0); opacity: 1; }
.plan-bar-summary { font-weight: 700; font-size: 15px; }
.plan-bar .btn { padding: 10px 18px; font-size: 14px; margin: 0; }
.plan-bar button.btn { cursor: pointer; background: none; font-family: inherit; }
@media (max-width: 560px) {
  .plan-bar { justify-content: center; text-align: center; }
}

/* FAQ accordion (native details/summary, works with no JS) */
.faq { display: grid; gap: 12px; }
.faq-item {
  background: var(--ink2); border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 160ms ease;
}
.faq-item:hover { border-color: var(--faint); }
.faq-item[open] { border-color: var(--coral); }
.faq-item summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 17px 20px;
  font-weight: 700; font-size: 15.5px; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex-shrink: 0;
  font-size: 24px; font-weight: 400; line-height: 1; color: var(--coral2);
  transition: transform 200ms ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:focus-visible {
  outline: 2px solid var(--coral2); outline-offset: -2px; border-radius: 14px;
}
.faq-item p {
  padding: 0 44px 18px 20px; margin: 0;
  color: var(--muted); font-size: 15px;
}
.faq-item a { color: var(--coral2); }
/* smooth expand where the browser can animate height:auto */
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq-item::details-content {
    height: 0; overflow: clip;
    transition: height 240ms ease, content-visibility 240ms allow-discrete;
  }
  .faq-item[open]::details-content { height: auto; }
}

/* BundleBob speech bubble + story page */
.bob-speech {
  position: absolute; top: -8px; left: 50%; transform: translateX(28%);
  background: #fff; color: #1c1530; white-space: nowrap;
  font-size: 14.5px; font-weight: 500;
  padding: 9px 16px; border-radius: 16px 16px 16px 4px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}
.bob-speech b { color: var(--coral); }
.bob-speech::after {
  content: ""; position: absolute; bottom: -7px; left: 14px;
  border: 8px solid transparent; border-top-color: #fff;
  border-bottom: 0; border-right: 0;
}
.bob-hero { position: relative; width: 230px; height: 230px; margin: 0 auto 26px;
  animation: bob-float 3.6s ease-in-out infinite;
  filter: drop-shadow(0 16px 32px rgba(253, 71, 48, 0.28)); }
.bob-hero img { width: 100%; height: 100%; display: block; }
a.bob-link { display: block; text-decoration: none; }
a.bob-link:hover { text-decoration: none; }

.bob-story { display: flex; flex-direction: column; gap: 34px; padding-bottom: 30px; }
.bob-chapter {
  display: grid; grid-template-columns: 190px 1fr; gap: 28px; align-items: center;
  background: var(--ink2); border: 1px solid var(--line);
  border-radius: 18px; padding: 26px 30px;
}
.bob-chapter:nth-child(even) { grid-template-columns: 1fr 190px; }
.bob-chapter:nth-child(even) img { order: 2; }
.bob-chapter img { width: 190px; height: 190px; filter: drop-shadow(0 10px 22px rgba(253, 71, 48, 0.2)); }
.bob-chapter h2 { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 8px; }
.bob-chapter p { color: var(--muted); font-size: 15.5px; }
/* prose links only; buttons keep their own colours */
.bob-chapter a:not(.btn) { color: var(--coral2); }
.bob-chapter .btn-primary { color: #fff; }
.bob-chapter .btn-ghost { color: var(--text); margin-left: 0; margin-right: 10px; }
@media (max-width: 560px) {
  .bob-chapter, .bob-chapter:nth-child(even) { grid-template-columns: 1fr; text-align: center; }
  .bob-chapter img, .bob-chapter:nth-child(even) img { order: 0; margin: 0 auto; }
  .bob-speech { transform: translateX(-50%); left: 50%; top: -34px; }
}

.support-address {
  font-size: clamp(18px, 3.4vw, 26px); font-weight: 800; letter-spacing: -0.01em;
  color: var(--text); margin-top: 6px; word-break: break-all;
}
.bob-chapter button.btn { cursor: pointer; background: none; font-family: inherit; border: 1px solid var(--line); }
.bob-chapter button.btn:hover { border-color: var(--muted); }

/* small Bob cameo on content pages */
.bob-inline {
  display: block; width: 132px; height: 132px; margin: 0 auto 14px;
  filter: drop-shadow(0 10px 22px rgba(253, 71, 48, 0.22));
}

/* prose pages (policies) */
.prose { padding: 40px 0 80px; }
.prose h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.prose .updated { color: var(--faint); font-size: 13.5px; margin-bottom: 34px; }
.prose h2 { font-size: 21px; font-weight: 700; margin: 34px 0 10px; }
.prose p, .prose li { color: var(--muted); font-size: 15.5px; }
.prose ul { margin: 10px 0 10px 22px; }
.prose strong { color: var(--text); }

/* BundleBob */
.bob-stage {
  position: relative; width: 230px; height: 230px;
  margin: 0 auto 18px;
  animation: bob-float 3.6s ease-in-out infinite;
  filter: drop-shadow(0 16px 32px rgba(253, 71, 48, 0.28));
}
.bob-stage img { width: 100%; height: 100%; display: block; }
.bob-stage:hover { animation: bob-wave 0.9s ease-in-out; }
.bob-pupil {
  position: absolute; width: 8.5%; height: 11%;
  border-radius: 50%; background: #18122b;
  /* the glint */
  background-image: radial-gradient(circle at 32% 28%, #fff 0 22%, transparent 26%);
  transition: transform 90ms linear;
}
@keyframes bob-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes bob-wave {
  0%, 100% { transform: rotate(0); }
  25%      { transform: rotate(-6deg); }
  60%      { transform: rotate(5deg); }
}
@media (prefers-reduced-motion: reduce) {
  .bob-stage { animation: none; }
  .bob-stage:hover { animation: none; }
}

/* footer */
.site-footer {
  border-top: 1px solid var(--line); margin-top: 40px;
  padding: 34px 24px; text-align: center; font-size: 13.5px; color: var(--faint);
}
.site-footer .links { margin-bottom: 10px; }
.site-footer .links a { color: var(--muted); margin: 0 12px; }

@media (max-width: 860px) {
  .cards, .tiers { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .cards, .tiers { grid-template-columns: 1fr; }
  .site-header { flex-wrap: wrap; gap: 10px; justify-content: center; padding: 16px 18px; }
  .site-nav { gap: 16px; font-size: 13px; }
  section { padding: 40px 0; }
  .hero { padding: 44px 0 40px; }
  /* stacked, centred, thumb-sized CTAs */
  .hero .btn, .tier .btn {
    display: block; max-width: 300px; margin: 10px auto 0; text-align: center;
  }
  .bob-stage { width: 180px; height: 180px; }
}

/* ============================================================
   Home page sections (hero split, screenshots, how, showcase)
   ============================================================ */

/* two-column hero: copy + product screenshot */
.hero-split {
  max-width: 1060px; margin: 0 auto; padding: 56px 24px 52px;
  display: grid; grid-template-columns: 0.96fr 1.04fr; gap: 50px;
  align-items: center; text-align: left;
}
.hero-split .lede { margin: 0 0 30px; max-width: 520px; }
.hero-split .badge { margin-bottom: 18px; }
.hero-cta .btn-ghost { margin-left: 10px; }

/* premium product screenshot: a floating card with a soft brand-coloured
   glow behind it and a layered shadow. Only ever wrap real-data shots
   (no placeholder/empty product images). */
/* The shot is a light "browser window" so the light screenshot and its frame
   read as one object on the dark page (research: match the frame to the
   screenshot, not the brand). A soft drop shadow floats it; no competing glow. */
.shot {
  position: relative; width: fit-content; max-width: 100%; margin: 0 auto;
  border-radius: 12px; overflow: hidden; background: #fff;
  border: 1px solid rgba(239, 237, 245, 0.10);
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.7), 0 14px 30px rgba(0, 0, 0, 0.45), 0 0 64px -8px rgba(253, 71, 48, 0.25);
}
.shot .browser-bar {
  display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px;
  background: linear-gradient(#faf8f4, #efe9df);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}
.shot .browser-bar span { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.shot .browser-bar span:nth-child(1) { background: #ff5f57; }
.shot .browser-bar span:nth-child(2) { background: #febc2e; }
.shot .browser-bar span:nth-child(3) { background: #28c840; }
.shot img { display: block; width: 100%; height: auto; }
.shot video { display: block; width: 100%; height: auto; }
.hero-shot { max-width: 500px; }

/* credibility strip */
.trust {
  max-width: 1000px; margin: 0 auto; padding: 4px 24px 8px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px;
  font-size: 13.5px; font-weight: 600; color: var(--muted);
}
.trust span::before { content: "\2713"; color: #2ecc71; font-weight: 700; margin-right: 7px; }

/* how it works: three numbered steps */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.how .step { background: var(--ink2); border: 1px solid var(--line); border-radius: 14px; padding: 26px 24px; }
.how .step .n {
  width: 34px; height: 34px; border-radius: 50%; background: var(--coral); color: #fff;
  font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.how .step h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 6px; }
.how .step p { font-size: 14.5px; color: var(--muted); }

/* alternating screenshot + copy showcase rows (no card: the framed,
   glowing screenshot floats on the page, modern-SaaS style) */
.showcase { display: flex; flex-direction: column; gap: 30px; }
.show-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 14px 0;
}
.show-row .shot { max-width: 360px; }
.show-copy h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 8px; }
.show-copy h3 .pro-tag {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em;
  background: var(--coral); color: #fff; border-radius: 100px; padding: 2px 8px; margin-left: 8px; vertical-align: 2px;
}
.show-copy p { color: var(--muted); font-size: 15px; }
.show-row:nth-child(even) .show-copy { order: 2; }

@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; gap: 30px; text-align: center; padding-top: 40px; }
  .hero-split .lede { margin-left: auto; margin-right: auto; }
  .hero-shot { order: 2; }
}
@media (max-width: 760px) {
  .how { grid-template-columns: 1fr; }
  .show-row { grid-template-columns: 1fr; gap: 22px; padding: 24px; }
  .show-row:nth-child(even) .show-copy { order: 0; }
}
@media (max-width: 560px) {
  .hero-cta .btn { display: block; max-width: 300px; margin: 10px auto 0; }
  .hero-cta .btn-ghost { margin-left: auto; }
}

/* scroll-reveal + hero load motion (only with JS; reduced-motion safe).
   The .js class is set in <head> before paint, so sections start hidden
   with no flash, then the IntersectionObserver reveals them on scroll. */
.js section, .js .trust { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js section.in, .js .trust.in { opacity: 1; transform: none; }
.js .hero-copy { animation: rise 0.7s ease both; }
.js .hero-shot { animation: rise 0.7s ease 0.12s both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .js section, .js .trust, .js section.in, .js .trust.in { opacity: 1; transform: none; transition: none; }
  .js .hero-copy, .js .hero-shot { animation: none; }
}

/* from-the-maker credibility band */
.maker {
  display: grid; grid-template-columns: 128px 1fr; gap: 28px; align-items: center;
  background: var(--ink2); border: 1px solid var(--line); border-radius: 18px; padding: 30px 34px;
}
.maker-bob { width: 128px; height: 128px; filter: drop-shadow(0 10px 22px rgba(253, 71, 48, 0.22)); }
.maker-body h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 10px; }
.maker-body p { color: var(--muted); font-size: 15.5px; }
.maker-sign { margin-top: 12px; font-weight: 700; color: var(--text); font-size: 14.5px; }
@media (max-width: 560px) {
  .maker { grid-template-columns: 1fr; text-align: center; }
  .maker-bob { margin: 0 auto; }
}

/* layout carousel: the same bundle shown in different layouts.
   Slides are a uniform fixed height (top-cropped) so the carousel does not
   jump between the tall and short screenshots. */
/* tabbed layout preview: tabs engage far better than a rotating carousel
   (most users never click past a carousel's first slide). Each tab swaps the
   screenshot inside one fixed frame; nothing is hidden. */
.tabs { max-width: 640px; margin: 0 auto; }
.tab-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 24px; }
.tab {
  border: 1px solid var(--line); background: var(--ink2); color: var(--muted);
  font: inherit; font-weight: 700; font-size: 14px; padding: 9px 18px; border-radius: 999px;
  cursor: pointer; transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}
.tab:hover { color: var(--text); border-color: var(--faint); }
.tab.is-active { background: var(--coral); color: #fff; border-color: var(--coral); }
.tab:focus-visible { outline: 2px solid var(--coral2); outline-offset: 2px; }
.tab-frame { width: 560px; max-width: 100%; margin: 0 auto; background: #f4f4f7; }
.tab-frame .tab-img { width: 100%; height: auto; display: block; background: #f4f4f7; transition: opacity 240ms ease; }
.tab-frame .tab-img.swap { opacity: 0; }
.tab-cap { text-align: center; color: var(--muted); font-weight: 600; font-size: 14.5px; margin-top: 18px; }

/* Light / dark toggle button in the header */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; margin-left: 14px; flex: none;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--ink2); color: var(--text); cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease;
}
.theme-toggle:hover { color: var(--coral); border-color: var(--coral); }
.theme-toggle .sun-and-moon { display: block; }
.sun-and-moon > :is(.moon, .sun, .sun-beams) { transform-box: fill-box; transform-origin: center; }
.sun-and-moon > .sun { transition: transform .5s cubic-bezier(.5, 1.25, .75, 1.25); }
.sun-and-moon > .sun-beams { transition: transform .5s cubic-bezier(.5, 1.5, .75, 1.25), opacity .4s ease; }
.sun-and-moon > .moon > circle { transition: transform .25s cubic-bezier(0, 0, 0, 1); }
@supports (cx: 1) { .sun-and-moon > .moon > circle { transition: cx .25s cubic-bezier(0, 0, 0, 1); } }
/* Light mode shows a crescent moon: the beams retract and the mask bites a crescent. */
html[data-theme="light"] .sun-and-moon > .sun { transform: scale(1.75); }
html[data-theme="light"] .sun-and-moon > .sun-beams { opacity: 0; transform: rotate(-25deg); }
html[data-theme="light"] .sun-and-moon > .moon > circle { transform: translateX(-7px); }
@supports (cx: 1) { html[data-theme="light"] .sun-and-moon > .moon > circle { cx: 17; transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  .sun-and-moon > .sun, .sun-and-moon > .sun-beams, .sun-and-moon > .moon > circle { transition: none; }
}

/* Ease the whole page between themes, but only while toggling (a class added
   for ~half a second), so there is no transition on first load. The icon SVG
   is excluded so it keeps its own morph timing. */
html.theme-anim,
html.theme-anim *:not(svg):not(svg *) {
  transition: background-color .45s ease, color .45s ease, border-color .45s ease, box-shadow .45s ease, fill .45s ease !important;
}

/* One-time hint that points out the theme toggle on a first visit. */
.theme-tip {
  position: fixed; z-index: 60; max-width: 230px;
  background: var(--ink2); color: var(--text);
  border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; line-height: 1.35;
  padding: 9px 13px; border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.30);
  opacity: 0; transform: translateY(-6px) scale(0.96);
  transition: opacity 280ms ease, transform 280ms ease;
  pointer-events: none; cursor: pointer;
}
.theme-tip.show { opacity: 1; transform: none; pointer-events: auto; }
.theme-tip::before {
  content: ""; position: absolute; top: -6px; right: 14px;
  width: 11px; height: 11px; background: var(--ink2);
  border-left: 1px solid var(--line); border-top: 1px solid var(--line);
  transform: rotate(45deg);
}

/* ============================================================
   Docs / wiki  (Markdown rendered through _layouts/docs.html)
   ============================================================ */

.docs-shell {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  gap: 46px; align-items: start;
  padding-top: 26px; padding-bottom: 86px;
}

/* sidebar */
.docs-sidebar {
  position: sticky; top: 22px;
  /* its own scroll when the nav is taller than the screen, so scrolling
     over the sidebar moves the titles, not the whole page */
  max-height: calc(100vh - 44px); overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--faint) transparent;
}
.docs-nav > summary { display: none; list-style: none; }
.docs-nav summary::-webkit-details-marker { display: none; }
.docs-sec {
  font-size: 11.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--faint); margin: 20px 0 8px;
}
.docs-sec:first-of-type { margin-top: 0; }
.docs-sidebar nav ul { list-style: none; margin: 0 0 4px; padding: 0; }
.docs-sidebar nav a {
  display: flex; align-items: center; gap: 7px;
  color: var(--muted); font-size: 14px; font-weight: 500;
  padding: 5px 10px; border-radius: 8px; border-left: 2px solid transparent;
}
.docs-sidebar nav a:hover { color: var(--text); text-decoration: none; background: var(--ink2); }
.docs-sidebar nav a.active {
  color: var(--text); background: var(--ink2);
  border-left-color: var(--coral); font-weight: 700;
}
.pro-dot {
  font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--coral2); border: 1px solid rgba(255, 138, 94, 0.4);
  border-radius: 100px; padding: 1px 6px; line-height: 1.5;
}
.docs-sidebar nav a.active .pro-dot { color: #fff; background: var(--coral); border-color: var(--coral); }

/* content column */
.docs-content { min-width: 0; padding-top: 4px; }
.docs-crumb { font-size: 13px; color: var(--faint); margin-bottom: 14px; }
.docs-crumb a { color: var(--muted); }
.docs-crumb span { margin: 0 6px; }
.docs-content > h1 { font-size: clamp(28px, 4.4vw, 38px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.docs-lede { font-size: 18px; color: var(--muted); margin-bottom: 26px; font-weight: 500; }

.docs-content h2 {
  font-size: 23px; font-weight: 800; letter-spacing: -0.01em;
  margin: 40px 0 12px; padding-top: 16px; border-top: 1px solid var(--line);
}
.docs-content h3 { font-size: 17.5px; font-weight: 700; margin: 26px 0 8px; color: var(--text); }
.docs-content p, .docs-content li { color: var(--muted); font-size: 15.5px; }
.docs-content ul, .docs-content ol { margin: 10px 0 16px 22px; }
.docs-content li { margin: 4px 0; }
.docs-content li::marker { color: var(--faint); }
.docs-content strong { color: var(--text); }
.docs-content a { color: var(--coral2); }
.docs-content img { max-width: 100%; border-radius: 12px; display: block; }
.docs-content hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }

/* inline code + code blocks */
.docs-content code {
  font-family: 'JetBrains Mono', ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.86em; background: var(--ink2); border: 1px solid var(--line);
  border-radius: 6px; padding: 1px 6px; color: #ffd9c9;
}
.docs-content pre {
  background: #0f0b20; border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 20px; overflow-x: auto; margin: 16px 0; line-height: 1.55;
}
.docs-content pre code { background: none; border: 0; padding: 0; color: #e7e3f2; font-size: 13.5px; }

/* tables */
.docs-content table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
.docs-content th, .docs-content td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.docs-content thead th { color: var(--text); font-weight: 700; border-bottom-color: var(--faint); }
.docs-content td { color: var(--muted); }
.docs-content tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
/* Light mode: inline code text and the table hover need readable values on
   the white surface (the dark-mode peach and white overlay vanish there). */
html[data-theme="light"] .docs-content code { color: var(--coral2); }
html[data-theme="light"] .docs-content tbody tr:hover { background: rgba(28, 21, 48, 0.04); }

/* callouts (blockquote + explicit classes) */
.docs-content blockquote, .callout {
  background: var(--ink2); border: 1px solid var(--line); border-left: 3px solid var(--coral2);
  border-radius: 12px; padding: 14px 18px; margin: 18px 0; color: var(--muted);
}
.docs-content blockquote p { margin: 0; }
.callout p { margin: 0 0 6px; }
.callout p:last-child { margin-bottom: 0; }
.callout-label {
  display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--coral2); margin-bottom: 4px;
}
.callout.tip { border-left-color: #2ecc71; }
.callout.tip .callout-label { color: #2ecc71; }
.callout.pro { border-left-color: var(--coral); }
.callout.pro .callout-label { color: var(--coral); }
.callout.warn { border-left-color: #f0a020; }
.callout.warn .callout-label { color: #f0a020; }

/* inline Pro badge in a heading */
.pro-pill {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--coral); color: #fff; border-radius: 100px; padding: 3px 10px;
  vertical-align: middle; margin-left: 10px;
}

/* screenshots */
.docs-content figure {
  margin: 22px 0; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; background: var(--ink2);
}
.docs-content figure img { border-radius: 0; width: 100%; }
.docs-content figure figcaption {
  font-size: 13px; color: var(--faint); padding: 10px 16px; border-top: 1px solid var(--line);
}

/* numbered step list (add class="steps" to an <ol>) */
.docs-content ol.steps { counter-reset: step; list-style: none; margin-left: 0; }
.docs-content ol.steps > li { position: relative; padding: 3px 0 3px 44px; margin: 14px 0; }
.docs-content ol.steps > li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--coral); color: #fff; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}

/* hub topic cards */
.docs-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 24px 0 8px; }
.docs-card {
  display: block; background: var(--ink2); border: 1px solid var(--line);
  border-radius: 14px; padding: 20px 22px;
  transition: border-color 160ms ease, transform 160ms ease;
}
.docs-card:hover { border-color: var(--coral2); transform: translateY(-3px); text-decoration: none; }
.docs-card h3 { font-size: 16px; font-weight: 700; color: var(--text); margin: 0 0 6px; }
.docs-card p { font-size: 14px; color: var(--muted); margin: 0; }

.docs-end { margin: 40px 0 18px; }
.docs-foot-help { font-size: 14.5px; color: var(--faint); }

@media (max-width: 880px) {
  .docs-shell { grid-template-columns: 1fr; gap: 18px; }
  .docs-sidebar { position: static; max-height: none; overflow: visible; }
  .docs-nav {
    background: var(--ink2); border: 1px solid var(--line);
    border-radius: 12px; padding: 2px 16px;
  }
  .docs-nav > summary {
    display: block; cursor: pointer;
    font-weight: 700; font-size: 15px; color: var(--text); padding: 13px 2px;
  }
  .docs-nav > summary::after { content: "+"; float: right; color: var(--coral2); font-size: 20px; line-height: 1; }
  .docs-nav[open] > summary::after { content: "\2013"; }
  .docs-nav[open] { padding-bottom: 14px; }
  .docs-cards { grid-template-columns: 1fr; }
}
