

/* --- Reset & Base ----------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --base:    #0d0f12;
  --primary:  #ff6b00;
  --secondary:   #00c8b3;
  --neutral:    #bcbdbe;

  --surface: #12151a;
  --surface2: #181c24;
  --border:  #1f2430;
  --text:    #eeeef2;

  --font: 'Dosis', system-ui, -apple-system, sans-serif;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --max-w: 1160px;

  --glow-green: 56, 232, 120;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background-color: var(--base);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, video, svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--secondary);
}

em {
  color: var(--primary);
  font-style: normal;
  font-weight: 600;
}

strong {
  color: var(--text);
  font-weight: 700;
}

/* --- Layout ------------------------------------------------ */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* --- Buttons ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: opacity 0.18s, transform 0.15s, box-shadow 0.18s;
  white-space: nowrap;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 24px rgba(255, 107, 0, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 0 36px rgba(255, 107, 0, 0.55);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-yellow {
  background: var(--secondary);
  color: var(--base);
  box-shadow: 0 0 24px rgba(var(--glow-green), 0.3);
}

.btn-yellow:hover {
  box-shadow: 0 0 36px rgba(var(--glow-green), 0.5);
  color: var(--base);
}

.btn-lg {
  padding: 0.9rem 2.2rem;
  font-size: 1.05rem;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
}

/* --- Navigation -------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(13, 15, 18, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__logo {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text);
  text-decoration: none;
}

.nav__logo:hover {
  color: var(--text);
}

.nav__links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav__links a {
  color: var(--neutral);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--text);
}

.nav__cta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* --- Hero -------------------------------------------------- */
.hero {
  padding: 7rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: var(--max-w);
  margin-inline: auto;
}

.hero::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 10%, rgba(255, 107, 0, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(var(--glow-green), 0.07) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid rgba(255, 107, 0, 0.35);
  border-radius: 99px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.75rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.06;
  margin-bottom: 1.25rem;
}

.hero h1 .accent-orange { color: var(--primary); }
.hero h1 .accent-green  { color: var(--secondary); }

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--neutral);
  max-width: 480px;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-visual {
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Strip / Social Proof ---------------------------------- */
.strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
}

.strip p {
  max-width: 700px;
  margin-inline: auto;
  color: var(--neutral);
  font-size: 1.05rem;
  line-height: 1.7;
}

.strip strong {
  color: var(--primary);
}

/* --- Sections --------------------------------------------- */
.section {
  padding: 6rem 1.5rem;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-cta {
  background: var(--surface2);
  border-top: 1px solid var(--border);
  text-align: center;
}

.section-inner {
  max-width: var(--max-w);
  margin-inline: auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-inner h2 {
  font-size: clamp(1.85rem, 3vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1.1rem;
}

.section-inner > p,
.section-inner .lead {
  color: var(--neutral);
  font-size: 1.05rem;
  max-width: 640px;
  margin-bottom: 2rem;
  line-height: 1.75;
}

/* --- Two-column layout ------------------------------------ */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.two-column.reverse {
  direction: rtl;
}

.two-column.reverse > * {
  direction: ltr;
}

/* --- Three-column layout ---------------------------------- */
.three-column {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.three-column h3 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.three-column p {
  color: var(--neutral);
  font-size: 0.95rem;
  line-height: 1.7;
}

.persona-card {
  background: var(--base);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.2s;
}

.persona-card:hover {
  border-color: var(--primary);
}

.persona-card__icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

/* --- Feature List ----------------------------------------- */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.feature-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.975rem;
  color: var(--neutral);
  line-height: 1.65;
}

.feature-list li::before {
  content: '→';
  color: var(--primary);
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 0.05em;
}

.feature-list li strong {
  color: var(--text);
}

/* --- Feature Table ---------------------------------------- */
.feature-table {
  border-collapse: collapse;
  margin-bottom: 2rem;
  width: 100%;
}

.feature-table td {
  padding: 0.5rem 0;
  vertical-align: top;
  font-size: 0.975rem;
  color: var(--neutral);
  line-height: 1.65;
}

.feature-table td:first-child {
  white-space: nowrap;
  padding-right: 1.5rem;
  color: var(--text);
}

.feature-table td:first-child::before {
  content: '→';
  color: var(--primary);
  font-weight: 900;
  margin-right: 0.75rem;
}

/* --- Micro Tagline ----------------------------------------- */
.micro-tagline {
  font-size: 0.875rem;
  color: var(--secondary);
  font-style: italic;
  margin-top: 1.5rem;
  margin-bottom: 1.75rem;
}

/* --- Visual Placeholder ------------------------------------ */
.visual {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.visual-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-xl);
}

/* --- Steps ------------------------------------------------- */
.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: steps;
  max-width: 700px;
  margin-bottom: 2rem;
}

.steps li {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  color: var(--neutral);
  line-height: 1.7;
}

.steps li:last-child {
  border-bottom: none;
}

.steps li strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.step-num {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 107, 0, 0.12);
  border: 1px solid rgba(255, 107, 0, 0.3);
  color: var(--primary);
  font-weight: 900;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1em;
}

/* --- Pricing --------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 860px;
  margin-inline: auto;
  margin-top: 3rem;
}

.pricing-card {
  background: var(--base);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pricing-card-highlight {
  border-color: var(--secondary);
  background: #0a1412;
  position: relative;
  box-shadow: 0 0 40px rgba(var(--glow-green), 0.1);
}

.pricing-card h3 {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text);
}

.pricing-card-highlight h3 {
  color: var(--secondary);
}

.pricing-subtitle {
  color: var(--neutral);
  font-size: 0.95rem;
  line-height: 1.65;
}

.pricing-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--base);
  background: var(--secondary);
  border-radius: 99px;
  padding: 0.25rem 0.75rem;
  margin-bottom: 0.5rem;
}

.pricing-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}

.pricing-card ul li {
  font-size: 0.9rem;
  color: var(--neutral);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.pricing-card ul li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 800;
  flex-shrink: 0;
}

.pricing-card-highlight ul li::before {
  color: var(--secondary);
}

.fine-print {
  font-size: 0.78rem;
  color: var(--neutral);
  line-height: 1.6;
  opacity: 0.75;
}

/* --- CTA Section ------------------------------------------ */
.section-cta h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.section-cta p {
  color: var(--neutral);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.cta-note {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--neutral);
  margin-bottom: 0 !important;
}

.cta-note a {
  color: var(--secondary);
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

/* --- Query section code look ------------------------------ */
.query-block {
  background: #0a0c10;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--neutral);
  margin-bottom: 2rem;
  overflow-x: auto;
}

.query-block .kw  { color: var(--secondary); }
.query-block .fn  { color: var(--secondary); }
.query-block .str { color: var(--secondary); }
.query-block .num { color: var(--primary); }
.query-block .cmt { color: #444d60; font-style: italic; }

/* --- Footer ---------------------------------------------- */
.footer {
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--base);
}

.footer-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 3rem;
  align-items: start;
}

.footer-left .logo {
  display: block;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.footer-left p {
  font-size: 0.875rem;
  color: var(--neutral);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--neutral);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-meta {
  text-align: right;
}

.footer-meta p {
  font-size: 0.8rem;
  color: var(--neutral);
}

/* --- Section divider accent ------------------------------- */
.accent-line {
  width: 3rem;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

/* --- Highlight text variants ------------------------------ */
.text-orange { color: var(--primary); }
.text-pink   { color: var(--secondary); }
.text-blue   { color: var(--secondary); }
.text-yellow { color: var(--secondary); }

/* Brand name: "dashboard" inherits text color, "SMASHBOARD" is orange */
.brand-smash { color: var(--primary); }

/* --- Responsive ------------------------------------------ */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 4rem;
  }

  .hero-visual {
    display: none;
  }

  .two-column {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .two-column.reverse {
    direction: ltr;
  }

  .three-column {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-meta {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .nav__links {
    display: none;
  }

  .nav__cta .btn-secondary {
    display: none;
  }

  .section {
    padding: 4rem 1.25rem;
  }
}

/* =====================================================================
   DOCS & SUPPORT — new components
   ===================================================================== */

/* --- Nav plain links (Docs / Support in .nav__cta) ----------------- */
.nav__link-plain {
  color: var(--neutral);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s;
}
.nav__link-plain:hover { color: var(--text); }

/* --- Docs layout ---------------------------------------------------- */
.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 2rem 6rem;
  align-items: start;
}

/* --- Docs sidebar --------------------------------------------------- */
.docs-sidebar {
  position: sticky;
  top: 5rem;
  padding-right: 2rem;
  border-right: 1px solid var(--border);
}
.docs-sidebar__section { margin-bottom: 1.75rem; }
.docs-sidebar__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neutral);
  margin-bottom: 0.5rem;
}
.docs-sidebar__nav {
  list-style: none;
  padding: 0;
  margin: 0;
}
.docs-sidebar__nav li a {
  display: block;
  padding: 0.35rem 0.6rem;
  color: var(--neutral);
  text-decoration: none;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.docs-sidebar__nav li a:hover {
  color: var(--text);
  background: var(--surface2);
}
.docs-sidebar__nav li a.active {
  color: var(--primary);
  background: rgba(255, 107, 0, 0.08);
  font-weight: 600;
}

/* Mobile sidebar dropdown */
.docs-select {
  display: none;
  width: 100%;
  padding: 0.65rem 1rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  cursor: pointer;
}

/* --- Docs content area --------------------------------------------- */
.docs-content {
  padding: 0 0 0 2.5rem;
  min-width: 0;
}
.docs-content h1 {
  font-size: clamp(1.65rem, 2.5vw, 2.1rem);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}
.docs-content h2 {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  margin-top: 2.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}
.docs-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}
.docs-content p { margin-bottom: 1rem; line-height: 1.75; }
.docs-content ul,
.docs-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.docs-content li { margin-bottom: 0.4rem; line-height: 1.65; }
.docs-content code {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.1em 0.4em;
  font-size: 0.875em;
  font-family: 'Courier New', monospace;
}
.still-need-help {
  display: inline;
  color: var(--secondary);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- Breadcrumb ----------------------------------------------------- */
.breadcrumb {
  font-size: 0.78rem;
  color: var(--neutral);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--neutral); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb__sep { color: var(--border); }

/* --- Read time ------------------------------------------------------ */
.read-time {
  display: block;
  font-size: 0.75rem;
  color: var(--neutral);
  font-style: italic;
  margin-top: 0.2rem;
  margin-bottom: 2.5rem;
}

/* --- Feedback bar --------------------------------------------------- */
.feedback-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 4rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--neutral);
  flex-wrap: wrap;
}
.feedback-bar__btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.3rem 0.75rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.feedback-bar__btn:hover {
  border-color: var(--primary);
  background: rgba(255, 107, 0, 0.06);
}
.feedback-bar__after {
  display: none;
  color: var(--secondary);
  font-size: 0.85rem;
}

/* --- Support search ------------------------------------------------- */
.support-search {
  width: 100%;
  max-width: 520px;
  margin: 1.75rem auto 0;
  display: block;
  position: relative;
}
.support-search__input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.85rem 1.25rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.support-search__input:focus { border-color: var(--secondary); }
.support-search__input::placeholder { color: var(--neutral); }
.search-hidden { display: none !important; }
#search-no-results {
  display: none;
  color: var(--neutral);
  font-size: 0.9rem;
  margin-top: 1rem;
  text-align: center;
}

/* --- Support topic grid -------------------------------------------- */
.support-topics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.support-topic-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}
.support-topic-card:hover {
  border-color: var(--secondary);
  transform: translateY(-2px);
}
.support-topic-card__icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}
.support-topic-card h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.support-topic-card p {
  font-size: 0.85rem;
  color: var(--neutral);
  margin: 0;
  line-height: 1.5;
}

/* --- Stuck section -------------------------------------------------- */
.stuck-section {
  text-align: center;
  padding: 3.5rem 2rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  margin-top: 4rem;
}
.stuck-section h2 { border-bottom: none; margin-top: 0; }
.stuck-section p {
  color: var(--neutral);
  max-width: 480px;
  margin: 0.75rem auto 1.75rem;
}

/* --- Stub coming-soon block ---------------------------------------- */
.coming-soon-block {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 2rem;
}
.coming-soon-block p {
  color: var(--neutral);
  margin: 0.5rem 0 0;
}

/* --- Syntax tokens (scoped to .query-block) ------------------------- */
.query-block .clause { color: var(--primary); }
.query-block .kw     { color: var(--secondary); }
.query-block .fn     { color: #007f72; }
.query-block .str    { color: #6da87a; }
.query-block .num    { color: var(--secondary); }
.query-block .cmt    { color: var(--neutral); font-style: italic; }

/* --- feature-table: no-arrow modifier ------------------------------ */
.feature-table--no-arrow td:first-child::before { content: ''; }

/* --- Docs Table ------------------------------------------- */
.docs-table-wrap {
  overflow-x: auto;
  margin-bottom: 1.75rem;
  border-radius: var(--radius-md);
}

.docs-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.docs-table thead th {
  background: var(--surface2);
  color: var(--text);
  font-weight: 700;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  text-align: left;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.docs-table tbody td {
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  color: var(--neutral);
  vertical-align: top;
}

.docs-table tbody tr:hover td {
  background: var(--surface);
}

.docs-table tbody td:first-child {
  color: var(--text);
  white-space: nowrap;
}

.docs-table code {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.875em;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.1em 0.35em;
  color: var(--secondary);
}

/* --- Docs responsive ----------------------------------------------- */
@media (max-width: 900px) {
  .docs-layout {
    grid-template-columns: 1fr;
    padding: 1.5rem 1.25rem 4rem;
  }
  .docs-sidebar { display: none; }
  .docs-select  { display: block; }
  .docs-content { padding: 0; }
  .support-topics { grid-template-columns: 1fr; }
}

/* =============================================
   PROSE CONTENT (legal & about pages)
   ============================================= */

.prose-content {
  max-width: 740px;
  margin: 4rem auto;
  padding: 0 1.5rem;
  line-height: 1.8;
}

.prose-content h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.prose-content .prose-meta {
  color: var(--neutral);
  font-size: 0.9rem;
  margin-bottom: 3rem;
}

.prose-content h2 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.prose-content p,
.prose-content li {
  color: var(--text);
  margin-bottom: 1rem;
}

.prose-content ul {
  padding-left: 1.5rem;
}

.prose-content a {
  color: var(--secondary);
  text-decoration: underline;
}

.prose-content strong {
  color: var(--text);
}

/* --- Hero split layout — text left, floating dashboard right ------- */
.hero-split {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 3.5rem;
  padding: 6rem 1.5rem 4.5rem;
  /* inherits position:relative, overflow:hidden, max-width, margin from .hero */
  flex-direction: unset; /* guard against stray flex inheritance */
}

/* Scale h1 down for side-by-side; JS in hero-cycle.js dynamically locks min-height */
.hero-split #hero-heading {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
}

/* hero-media base */
.hero-media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface2);
  position: relative;
  z-index: 1;
  min-height: 340px;
}

/* hero-media in split — aspect ratio keeps it proportional next to the text */
.hero-split .hero-media {
  aspect-ratio: 4 / 3;
  min-height: auto;
  border-bottom: 1px solid #e0e0e0;
}

.hero-media img,
.hero-media video,
.hero-media iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- 3D float window (hero dashboard) ------------------------------ */
.d2-float { perspective: 1800px; }

@keyframes floaty {
  0%,100% { transform: rotateY(-9deg) rotateX(3deg) rotate(1deg) translateY(0); }
  50%      { transform: rotateY(-9deg) rotateX(3deg) rotate(1deg) translateY(-12px); }
}
.d2-window {
  transform: rotateY(-9deg) rotateX(3deg) rotate(1deg);
  transform-style: preserve-3d;
  animation: floaty 7s ease-in-out infinite;
  transition: transform .4s;
}
.d2-window:hover { transform: rotateY(-3deg) rotateX(1deg) rotate(.5deg); }

@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    padding-top: 3.5rem;
    gap: 2.5rem;
  }
  .hero-split .d2-float { display: none; }
  .hero-split #hero-heading { min-height: auto; }
}

/* --- Legacy stacked layout (kept for reference, not active) -------- */
.hero-stacked {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 5rem;
  padding-bottom: 0;
  gap: 3.5rem;
  grid-template-columns: none;
}

/* --- Pricing tier cards -------------------------------------------- */
.pricing-tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2.5rem 0 2.5rem;
}

.pricing-tier-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}

.pricing-tier-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: var(--surface2);
}

.pricing-tier-name {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--neutral);
}

.pricing-tier-price {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}

.pricing-tier-per {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--neutral);
  letter-spacing: 0;
}

.pricing-tier-card .btn {
  width: 100%;
  justify-content: center;
  font-size: 0.85rem;
  padding: 0.6rem 1rem;
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.pricing-tier-card .btn:hover,
.pricing-tier-card:hover .btn {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(255, 107, 0, 0.35);
  opacity: 1;
}

.pricing-includes {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  margin-top: 0.5rem;
}

.pricing-includes-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neutral);
  margin-bottom: 1.25rem;
}

.pricing-includes ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 3rem;
  max-width: 600px;
}

.pricing-includes ul li {
  font-size: 0.9rem;
  color: var(--neutral);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.pricing-includes ul li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 800;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .pricing-tiers {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-includes ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .pricing-tiers {
    grid-template-columns: 1fr;
  }
}

/* =====================================================================
   ANIMATED DASHBOARD ENGINE — SmashCard "video" widgets
   ===================================================================== */

/* font-mono for query demo */
:root { --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace; --status-good: #38e878; --status-warn: #ffb020; --status-bad: #ff4d4d; }

/* --- SmashCard ---------------------------------------------------- */
.smash-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem 1.1rem;
  display: flex; flex-direction: column; gap: .75rem;
  position: relative;
  transition: border-color .3s;
}
.smash-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.smash-card__title { font-size: 1rem; font-weight: 800; letter-spacing: -.01em; color: var(--text); line-height: 1.2; }
.smash-card__goal { font-size: .8rem; color: var(--neutral); margin-top: .35rem; line-height: 1.45; }
.smash-card__goal b { color: var(--secondary); font-weight: 700; }

.live-dot {
  display: inline-flex; align-items: center; gap: .4rem; flex-shrink: 0;
  font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--neutral);
}
.live-dot::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--status-good); box-shadow: 0 0 0 0 rgba(var(--glow-green),.7);
  animation: livePulse 1.6s ease-out infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(var(--glow-green),.6); }
  70%  { box-shadow: 0 0 0 7px rgba(var(--glow-green),0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--glow-green),0); }
}

/* stat strip */
.smash-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.smash-strip__cell { padding: .5rem .65rem; border-right: 1px solid var(--border); }
.smash-strip__cell:last-child { border-right: none; }
.smash-strip__label { font-size: .56rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--neutral); margin-bottom: .25rem; }
.smash-strip__val { font-size: .82rem; font-weight: 700; color: var(--text); white-space: nowrap; }
.smash-strip__val.good { color: var(--status-good); }
.smash-strip__val.warn { color: var(--status-warn); }
.smash-strip__val.bad  { color: var(--status-bad); }

/* big number */
.smash-big { font-size: clamp(2.1rem, 3.4vw, 2.9rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.smash-big .unit { font-size: .55em; color: var(--neutral); font-weight: 700; margin-left: .35rem; letter-spacing: 0; }
.smash-big.good { color: var(--status-good); }
.smash-big.warn { color: var(--status-warn); }
.smash-big.bad  { color: var(--status-bad); }
.smash-sub { font-size: .78rem; color: var(--neutral); }

/* progress bar */
.smash-bar { height: 8px; border-radius: 99px; background: #0b0d11; overflow: hidden; position: relative; }
.smash-bar__fill { height: 100%; width: 0%; border-radius: 99px; transition: width 1.4s cubic-bezier(.22,.61,.36,1); background: var(--status-good); }
.smash-bar__fill.good { background: var(--status-good); }
.smash-bar__fill.warn { background: var(--status-warn); }
.smash-bar__fill.bad  { background: var(--status-bad); }

/* footer row */
.smash-foot { display: flex; align-items: center; justify-content: space-between; font-size: .68rem; color: var(--neutral); border-top: 1px solid var(--border); padding-top: .6rem; margin-top: auto; }
.smash-foot em { font-style: italic; color: var(--neutral); }

/* ALERT pulse ring */
.smash-card.alert-good { border-color: rgba(var(--glow-green),.55); animation: ringGood 2.6s ease-out; }
.smash-card.alert-bad  { border-color: rgba(255,77,77,.55); animation: ringBad 2.6s ease-out; }
@keyframes ringGood { 0%{box-shadow:0 0 0 0 rgba(var(--glow-green),.0);} 25%{box-shadow:0 0 32px 2px rgba(var(--glow-green),.45);} 100%{box-shadow:0 0 0 0 rgba(var(--glow-green),0);} }
@keyframes ringBad  { 0%{box-shadow:0 0 0 0 rgba(255,77,77,0);} 25%{box-shadow:0 0 32px 2px rgba(255,77,77,.45);} 100%{box-shadow:0 0 0 0 rgba(255,77,77,0);} }

/* radial gauge */
.gauge { position: relative; width: 100%; aspect-ratio: 1; max-width: 180px; margin: .25rem auto; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge__track { fill: none; stroke: #0b0d11; }
.gauge__arc { fill: none; stroke: var(--status-good); stroke-linecap: round; transition: stroke-dashoffset 1.6s cubic-bezier(.22,.61,.36,1), stroke .4s; }
.gauge__arc.good { stroke: var(--status-good); }
.gauge__arc.warn { stroke: var(--status-warn); }
.gauge__arc.bad  { stroke: var(--status-bad); }
.gauge__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge__num { font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; }
.gauge__num.good { color: var(--status-good); }
.gauge__num.warn { color: var(--status-warn); }
.gauge__num.bad  { color: var(--status-bad); }
.gauge__cap { font-size: .68rem; color: var(--neutral); margin-top: .1rem; }

/* sparkline */
.spark { width: 100%; height: 70px; display: block; }
.spark path.line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.spark path.area { stroke: none; opacity: .14; }

/* card entrance */
.smash-card[data-enter] { opacity: 0; transform: translateY(16px) scale(.985); }
.smash-card.is-in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s cubic-bezier(.22,.61,.36,1); }

/* live ticking number flash */
.tick-up { animation: tickUp .5s ease; }
.tick-dn { animation: tickDn .5s ease; }
@keyframes tickUp { 0%{ color: var(--status-good);} 100%{} }
@keyframes tickDn { 0%{ color: var(--status-bad);} 100%{} }

/* --- Chrome wrapper ----------------------------------------------- */
.chrome {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface2);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8);
}
.chrome__body {
  padding: 1.1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
  background: var(--base);
}
.chrome__body.single {
  grid-template-columns: 1fr;
  max-width: 420px;
  margin: 0 auto;
}

/* --- Shopify light-theme chrome containers ----------------------- */
.sp-shopify-win {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid #e0e0e0;
  box-shadow: 0 28px 64px -18px rgba(0,0,0,.20), 0 0 0 1px rgba(0,0,0,.04);
}
.sp-shopify-win .chrome__body { background: #f6f6f7; }

.sp-light-win {
  background: #fff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 8px 40px -12px rgba(0,0,0,.13), 0 0 0 1px rgba(0,0,0,.04);
}
.sp-light-win .chrome__body { background: #f6f6f7; }

/* --- Hero live grid container ------------------------------------- */
.hero-live-grid {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
  padding: 1.1rem;
  background: #f6f6f7;
  overflow-y: auto;
}

/* --- Animated visual wrapper (no overflow:hidden clip) ------------ */
.anim-visual { position: relative; }

/* --- Shopify white-theme overrides: hero grid --------------------- */
#hero-grid .smash-card { background: #fff; border-color: #e3e3e3; }
#hero-grid .smash-card__title { color: #1a1a1a; }
#hero-grid .smash-card__goal { color: #616161; }
#hero-grid .smash-card__goal b { color: #007a5e; }
#hero-grid .smash-strip { background: #f9f9f9; border-color: #e3e3e3; }
#hero-grid .smash-strip__cell { border-color: #e3e3e3; }
#hero-grid .smash-strip__label { color: #aaa; }
#hero-grid .smash-strip__val { color: #1a1a1a; }
#hero-grid .smash-strip__val.good { color: #007a5e; }
#hero-grid .smash-strip__val.bad  { color: #d72c0d; }
#hero-grid .smash-strip__val.warn { color: #b98900; }
#hero-grid .smash-big      { color: #1a1a1a; }
#hero-grid .smash-big.good { color: #007a5e; }
#hero-grid .smash-big.bad  { color: #d72c0d; }
#hero-grid .smash-big.warn { color: #b98900; }
#hero-grid .smash-bar      { background: #e8e8e8; }
#hero-grid .smash-bar__fill      { background: #007a5e; }
#hero-grid .smash-bar__fill.good { background: #007a5e; }
#hero-grid .smash-bar__fill.bad  { background: #d72c0d; }
#hero-grid .smash-bar__fill.warn { background: #b98900; }
#hero-grid .smash-sub  { color: #727272; }
#hero-grid .smash-foot { color: #aaa; border-top-color: #f0f0f0; }
#hero-grid .live-dot   { color: #aaa; }
#hero-grid .live-dot::before { background: #007a5e; animation: lpShopify 1.6s ease-out infinite; }
@keyframes lpShopify { 0%{box-shadow:0 0 0 0 rgba(0,122,94,.6)} 70%{box-shadow:0 0 0 6px rgba(0,122,94,0)} 100%{box-shadow:0 0 0 0 rgba(0,122,94,0)} }
#hero-grid .gauge__track { stroke: #e8e8e8; }
#hero-grid .gauge__arc.good { stroke: #007a5e; }
#hero-grid .gauge__arc.warn { stroke: #b98900; }
#hero-grid .gauge__arc.bad  { stroke: #d72c0d; }
#hero-grid .gauge__num.good { color: #007a5e; }
#hero-grid .gauge__num.warn { color: #b98900; }
#hero-grid .gauge__cap { color: #aaa; }
#hero-grid .smash-card.alert-good { border-color: #95c4af; }
#hero-grid .smash-card.alert-bad  { border-color: #f4b0aa; }

/* --- Shopify white-theme overrides: feature stages ---------------- */
#stage-goal .smash-card,
#stage-metrics .smash-card,
#stage-query .smash-card { background: #fff; border-color: #e3e3e3; }

#stage-goal .smash-card__title,
#stage-metrics .smash-card__title,
#stage-query .smash-card__title { color: #1a1a1a; }

#stage-goal .smash-card__goal,
#stage-metrics .smash-card__goal,
#stage-query .smash-card__goal { color: #616161; }

#stage-goal .smash-card__goal b,
#stage-metrics .smash-card__goal b,
#stage-query .smash-card__goal b { color: #007a5e; }

#stage-goal .smash-strip,
#stage-metrics .smash-strip,
#stage-query .smash-strip { background: #f9f9f9; border-color: #e3e3e3; }

#stage-goal .smash-strip__cell,
#stage-metrics .smash-strip__cell,
#stage-query .smash-strip__cell { border-color: #e3e3e3; }

#stage-goal .smash-strip__label,
#stage-metrics .smash-strip__label,
#stage-query .smash-strip__label { color: #aaa; }

#stage-goal .smash-strip__val,
#stage-metrics .smash-strip__val,
#stage-query .smash-strip__val { color: #1a1a1a; }

#stage-goal .smash-strip__val.good,
#stage-metrics .smash-strip__val.good,
#stage-query .smash-strip__val.good { color: #007a5e; }

#stage-goal .smash-strip__val.bad,
#stage-metrics .smash-strip__val.bad,
#stage-query .smash-strip__val.bad  { color: #d72c0d; }

#stage-goal .smash-strip__val.warn,
#stage-metrics .smash-strip__val.warn,
#stage-query .smash-strip__val.warn { color: #b98900; }

#stage-goal .smash-big,
#stage-metrics .smash-big,
#stage-query .smash-big { color: #1a1a1a; }

#stage-goal .smash-big.good,
#stage-metrics .smash-big.good,
#stage-query .smash-big.good { color: #007a5e; }

#stage-goal .smash-big.bad,
#stage-metrics .smash-big.bad,
#stage-query .smash-big.bad  { color: #d72c0d; }

#stage-goal .smash-big.warn,
#stage-metrics .smash-big.warn,
#stage-query .smash-big.warn { color: #b98900; }

#stage-goal .smash-bar,
#stage-metrics .smash-bar,
#stage-query .smash-bar { background: #e8e8e8; }

#stage-goal .smash-bar__fill,
#stage-metrics .smash-bar__fill,
#stage-query .smash-bar__fill { background: #007a5e; }

#stage-goal .smash-bar__fill.good,
#stage-metrics .smash-bar__fill.good,
#stage-query .smash-bar__fill.good { background: #007a5e; }

#stage-goal .smash-bar__fill.bad,
#stage-metrics .smash-bar__fill.bad,
#stage-query .smash-bar__fill.bad  { background: #d72c0d; }

#stage-goal .smash-bar__fill.warn,
#stage-metrics .smash-bar__fill.warn,
#stage-query .smash-bar__fill.warn { background: #b98900; }

#stage-goal .smash-sub,
#stage-metrics .smash-sub,
#stage-query .smash-sub { color: #727272; }

#stage-goal .smash-foot,
#stage-metrics .smash-foot,
#stage-query .smash-foot { color: #aaa; border-top-color: #f0f0f0; }

#stage-goal .live-dot,
#stage-metrics .live-dot,
#stage-query .live-dot { color: #aaa; }

#stage-goal .live-dot::before,
#stage-metrics .live-dot::before,
#stage-query .live-dot::before { background: #007a5e; animation: lpShopify 1.6s ease-out infinite; }

#stage-goal .gauge__track { stroke: #e8e8e8; }
#stage-goal .gauge__arc.good { stroke: #007a5e; }
#stage-goal .gauge__arc.warn { stroke: #b98900; }
#stage-goal .gauge__arc.bad  { stroke: #d72c0d; }
#stage-goal .gauge__num.good { color: #007a5e; }
#stage-goal .gauge__num.warn { color: #b98900; }
#stage-goal .gauge__num.bad  { color: #d72c0d; }
#stage-goal .gauge__cap { color: #aaa; }
#stage-goal .smash-card.alert-good { border-color: #95c4af; }
@keyframes ringGoodW { 0%{box-shadow:0 0 0 0 rgba(0,122,94,0)} 25%{box-shadow:0 0 24px 3px rgba(0,122,94,.28)} 100%{box-shadow:0 0 0 0 rgba(0,122,94,0)} }
#stage-goal .smash-card.alert-good { animation: ringGoodW 2.6s ease-out; }

#stage-query .query-demo__render { background: #f0f2f5; }

/* --- Query typing demo -------------------------------------------- */
.query-demo { display: grid; grid-template-columns: 1.05fr .95fr; gap: 0; }
.query-demo__code {
  background: #0a0c10; border-right: 1px solid var(--border);
  font-family: var(--font-mono); font-size: .92rem; line-height: 1.9;
  padding: 2.9rem 1.6rem 1.5rem; min-height: 280px; color: var(--neutral);
}
.query-demo__render { padding: 1.5rem; display: flex; align-items: center; justify-content: center; background: var(--base); }
.query-demo__render .smash-card { width: 100%; opacity: 0; transform: translateY(18px) scale(.96); }
.query-demo__render.show .smash-card { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.22,.61,.36,1); }
.q-kw  { color: var(--secondary); font-weight: 600; }
.q-str { color: var(--secondary); }
.q-num { color: var(--primary); }
.q-caret { display: inline-block; width: .55ch; background: var(--primary); animation: caretBlink 1s steps(1) infinite; color: transparent; }
@keyframes caretBlink { 50% { opacity: 0; } }

@media (max-width: 760px) {
  .query-demo { grid-template-columns: 1fr; }
  .query-demo__code { border-right: none; border-bottom: 1px solid var(--border); }
}

/* =====================================================================
   GOAL BUILDER — 3-pane Shopify Analytics animation
   ===================================================================== */
.gbv-win { overflow: hidden; border-radius: var(--radius-lg); }
.gbv-stage { position: relative; height: 390px; }
.gbv-pane { position: absolute; inset: 0; opacity: 0; transition: opacity .55s ease; pointer-events: none; display: flex; flex-direction: column; }
.gbv-pane.gbv-on { opacity: 1; pointer-events: auto; }
.gbv-top { height: 44px; background: #1a1a1a; display: flex; align-items: center; padding: 0 12px; gap: 8px; flex-shrink: 0; }
.gbv-logo-w { color: #fff; font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.gbv-filter { background: #2a2a2a; color: #ccc; border: 1px solid #3a3a3a; border-radius: 5px; padding: 3px 8px; font-size: 10px; }
.gbv-ctabtn { margin-left: auto; background: #1a1a1a; color: #fff; border: 1.5px solid #444; border-radius: 6px; padding: 4px 10px; font-size: 11px; font-weight: 600; cursor: default; font-family: inherit; }
.gbv-ctabtn.gbv-pulse { animation: gbvP 1.5s ease-in-out infinite; }
@keyframes gbvP { 0%,100%{box-shadow:0 0 0 0 rgba(44,110,203,0)} 50%{box-shadow:0 0 0 6px rgba(44,110,203,.35)} }
.gbv-newbtn { background: #2c6ecb; color: #fff; border: none; border-radius: 6px; padding: 4px 10px; font-size: 11px; font-weight: 600; cursor: default; font-family: inherit; }
.gbv-body { flex: 1; display: flex; overflow: hidden; }
.gbv-sb { width: 148px; background: #1a1a1a; padding: 5px 0; flex-shrink: 0; }
.gbv-ni { padding: 5px 10px; color: #bbb; font-size: 11.5px; border-radius: 5px; margin: 1px 4px; }
.gbv-ni.gbv-hl { color: #fff; background: rgba(255,255,255,.1); }
.gbv-ni.gbv-sub { padding-left: 22px; color: #888; font-size: 11px; }
.gbv-cnt { flex: 1; background: #f6f6f7; padding: 12px 14px; overflow: hidden; }
.gbv-ph { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.gbv-pt { font-size: 15px; font-weight: 700; color: #1a1a1a; }
.gbv-pref { font-size: 10px; color: #2c6ecb; }
.gbv-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-bottom: 10px; }
.gbv-sc { background: #fff; border: 1px solid #e3e3e3; border-radius: 6px; padding: 8px 10px; }
.gbv-sc-l { font-size: 9.5px; color: #616161; margin-bottom: 3px; }
.gbv-sc-v { font-size: 13px; font-weight: 700; color: #1a1a1a; }
.gbv-sc-c { font-size: 9.5px; color: #007a5e; font-weight: 600; }
.gbv-chartbox { background: #fff; border: 1px solid #e3e3e3; border-radius: 6px; padding: 10px 12px; }
.gbv-chart-t { font-size: 9.5px; color: #616161; }
.gbv-chart-v { font-size: 15px; font-weight: 700; color: #1a1a1a; margin: 2px 0 8px; }
.gbv-chart-v em { font-size: 10px; color: #007a5e; font-style: normal; font-weight: 600; }
.gbv-svg { width: 100%; height: 56px; display: block; }
.gbv-lpath { fill: none; stroke: #2c6ecb; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 500; stroke-dashoffset: 500; transition: stroke-dashoffset 2s ease; }
.gbv-apath { fill: rgba(44,110,203,.07); stroke: none; }
.gbv-pane.gbv-editor { background: #fff; overflow-y: auto; }
.gbv-mh { padding: 11px 14px; border-bottom: 1px solid #f0f0f0; font-size: 13px; font-weight: 700; color: #1a1a1a; display: flex; align-items: center; justify-content: space-between; }
.gbv-tabs { display: flex; border-bottom: 1px solid #e3e3e3; padding: 0 14px; }
.gbv-tab { padding: 7px 10px; font-size: 11.5px; color: #616161; border-bottom: 2px solid transparent; }
.gbv-tab.gbv-ht { color: #1a1a1a; border-bottom-color: #1a1a1a; font-weight: 600; }
.gbv-fields { padding: 10px 14px; display: flex; flex-direction: column; gap: 9px; }
.gbv-f { opacity: 0; transform: translateY(7px); transition: opacity .35s ease, transform .35s ease; }
.gbv-f.gbv-fshow { opacity: 1; transform: none; }
.gbv-fl { display: block; font-size: 8.5px; font-weight: 700; color: #9a9a9a; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 3px; }
.gbv-fi, .gbv-fs { width: 100%; background: #f9f9f9; border: 1px solid #e3e3e3; border-radius: 5px; padding: 5px 8px; font-size: 11.5px; color: #1a1a1a; font-family: inherit; }
.gbv-mf { padding: 9px 14px; border-top: 1px solid #f0f0f0; display: flex; justify-content: flex-end; gap: 7px; }
.gbv-bcn { background: none; border: 1px solid #e3e3e3; border-radius: 5px; padding: 5px 12px; font-size: 11.5px; color: #616161; cursor: default; font-family: inherit; }
.gbv-bsv { background: #1a1a1a; border: none; border-radius: 5px; padding: 5px 14px; font-size: 11.5px; font-weight: 700; color: #fff; cursor: default; font-family: inherit; transition: box-shadow .3s; }
.gbv-bsv.gbv-saved { box-shadow: 0 0 0 3px rgba(0,122,94,.4); }
.gbv-pane.gbv-result { flex-direction: row; align-items: center; justify-content: center; background: #f6f6f7; }
.gbv-rcard { background: #fff; border: 1.5px solid #95c4af; border-radius: 9px; width: calc(100% - 40px); max-width: 340px; overflow: hidden; }
.gbv-rci { padding: 12px 13px; display: flex; flex-direction: column; gap: 8px; }
.gbv-rct { font-size: 13px; font-weight: 600; color: #1a1a1a; }
.gbv-rct em { font-style: normal; color: #949494; font-weight: 400; font-size: 11.5px; }
.gbv-rcg { font-size: 11px; color: #616161; }
.gbv-rcg b { color: #007a5e; font-weight: 500; }
.gbv-rstrip { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: #f9f9f9; border: 1px solid #e8e8e8; border-radius: 5px; overflow: hidden; }
.gbv-rsc { padding: 5px 6px; border-right: 1px solid #e8e8e8; }
.gbv-rsc:last-child { border-right: none; }
.gbv-rsl { font-size: 7.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #aaa; margin-bottom: 2px; }
.gbv-rsv { font-size: 10.5px; font-weight: 600; color: #1a1a1a; }
.gbv-rsv.g { color: #007a5e; }
.gbv-rsv.d { color: #727272; }
.gbv-rbn { font-size: 26px; font-weight: 700; color: #007a5e; line-height: 1; display: flex; align-items: baseline; gap: 5px; }
.gbv-rof { font-size: 13px; font-weight: 500; color: #969696; }
.gbv-bars { display: flex; flex-direction: column; gap: 4px; }
.gbv-brow { display: flex; align-items: center; gap: 7px; }
.gbv-blbl { font-size: 9.5px; color: #616161; width: 68px; text-align: right; flex-shrink: 0; }
.gbv-btrack { flex: 1; height: 13px; background: #f0f0f0; border-radius: 2px; overflow: hidden; }
.gbv-bfill { height: 100%; width: 0; border-radius: 2px; transition: width 1.2s cubic-bezier(.22,.61,.36,1); }
.gbv-bval { font-size: 9px; color: #616161; width: 32px; flex-shrink: 0; }
.gbv-rcf { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #f0f0f0; padding: 7px 13px; }
.gbv-rcfl { display: flex; align-items: center; gap: 4px; font-size: 10px; color: #969696; }
.gbv-rcfr { display: flex; align-items: center; gap: 5px; font-size: 10px; color: #aaa; font-style: italic; }
.gbv-lv { display: flex; align-items: center; gap: 3px; background: #1a1a1a; color: #fff; font-size: 9px; font-weight: 600; padding: 2px 6px 2px 5px; border-radius: 99px; font-style: normal; }
.gbv-ld { width: 5px; height: 5px; border-radius: 50%; background: #38e878; animation: lp 1.6s ease-out infinite; }
@keyframes lp { 0%{box-shadow:0 0 0 0 rgba(56,232,120,.6)} 70%{box-shadow:0 0 0 5px rgba(56,232,120,0)} 100%{box-shadow:0 0 0 0 rgba(56,232,120,0)} }

/* =====================================================================
   FOR TEAMS — Features reel (ft-*) animated widget
   ===================================================================== */
.ft-win { overflow: hidden; border-radius: var(--radius-lg); }
.ft-stage { position: relative; height: 400px; }
.ft-pane { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; pointer-events: none; background: #f6f6f7; display: flex; align-items: center; justify-content: center; padding: 14px; }
.ft-pane.ft-on { opacity: 1; pointer-events: auto; }
.ft-tabbar { display: flex; gap: 4px; justify-content: center; padding: 7px 10px; background: #ebebeb; border-top: 1px solid #ddd; }
.ft-tb { padding: 3px 10px; border-radius: 99px; font-size: 9.5px; font-weight: 600; color: #909090; background: transparent; border: 1px solid transparent; cursor: pointer; transition: all .2s; font-family: inherit; }
.ft-tb.ft-ta { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
/* Modal shell */
.ft-modal { background: #fff; border: 1px solid #e3e3e3; border-radius: 9px; width: 100%; max-width: 420px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.ft-mh { display: flex; align-items: center; justify-content: space-between; padding: 10px 13px; border-bottom: 1px solid #f0f0f0; }
.ft-mh-t { font-size: 12.5px; font-weight: 700; color: #1a1a1a; }
.ft-mh-s { font-size: 10px; color: #888; }
.ft-btn { background: none; border: 1px solid #e3e3e3; border-radius: 5px; padding: 3px 10px; font-size: 10px; font-weight: 600; color: #616161; cursor: pointer; font-family: inherit; }
.ft-btn-p { background: #1a1a1a; border: none; border-radius: 5px; padding: 3px 10px; font-size: 10px; font-weight: 700; color: #fff; cursor: pointer; font-family: inherit; }
/* Card picker */
.ft-picker { display: flex; height: 276px; }
.ft-cats { width: 110px; border-right: 1px solid #f0f0f0; padding: 4px 0; flex-shrink: 0; overflow: hidden; }
.ft-cat { padding: 4px 9px; font-size: 10.5px; color: #616161; display: flex; align-items: center; gap: 5px; border-radius: 4px; margin: 1px 3px; cursor: pointer; transition: background .2s; }
.ft-cat.ft-ca { background: #1a1a1a; color: #fff; font-weight: 600; }
.ft-cdot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.ft-cn { font-size: 9px; color: #ccc; margin-left: auto; }
.ft-ca .ft-cn { color: #888; }
.ft-rarea { flex: 1; padding: 8px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.ft-cyor { display: flex; align-items: center; gap: 7px; background: #faf7f4; border: 1px solid #ede8e3; border-radius: 6px; padding: 6px 9px; flex-shrink: 0; }
.ft-cyor-ico { width: 24px; height: 24px; border-radius: 5px; background: #ff6b00; flex-shrink: 0; }
.ft-cyor-t { font-size: 10.5px; font-weight: 600; color: #1a1a1a; }
.ft-cyor-s { font-size: 9px; color: #888; }
.ft-or { text-align: center; font-size: 8px; color: #ccc; letter-spacing: .08em; text-transform: uppercase; flex-shrink: 0; }
.ft-srch { width: 100%; background: #f9f9f9; border: 1px solid #e8e8e8; border-radius: 4px; padding: 4px 8px; font-size: 10px; color: #bbb; font-family: inherit; flex-shrink: 0; }
.ft-cgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; overflow: hidden; }
.ft-gc { background: #fff; border: 1px solid #e3e3e3; border-radius: 6px; padding: 7px; display: flex; flex-direction: column; gap: 3px; }
.ft-gc-b { font-size: 7px; font-weight: 700; letter-spacing: .05em; padding: 1px 4px; border-radius: 3px; display: inline-block; margin-bottom: 1px; }
.ft-gc-t { font-size: 10px; font-weight: 600; color: #1a1a1a; line-height: 1.3; }
.ft-gc-d { font-size: 8.5px; color: #aaa; line-height: 1.3; }
.ft-gc-p { font-size: 7.5px; font-weight: 600; padding: 1px 5px; border-radius: 3px; margin-top: auto; display: inline-block; }
.ft-mf { display: flex; align-items: center; justify-content: space-between; padding: 7px 12px; border-top: 1px solid #f0f0f0; }
/* Share pane */
.ft-share { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.ft-trow { display: flex; align-items: center; gap: 7px; }
.ft-tlbl { font-size: 11px; color: #616161; flex: 1; }
.ft-tgl { width: 32px; height: 17px; background: #007a5e; border-radius: 99px; position: relative; flex-shrink: 0; }
.ft-tgl::after { content: ''; position: absolute; right: 2px; top: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; }
.ft-link { flex: 1; background: #f9f9f9; border: 1px solid #e3e3e3; border-radius: 4px; padding: 4px 8px; font-size: 9px; color: #888; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: monospace; }
.ft-cpybtn { background: #1a1a1a; color: #fff; border: none; border-radius: 5px; padding: 4px 10px; font-size: 10.5px; font-weight: 600; cursor: pointer; font-family: inherit; flex-shrink: 0; }
.ft-note { font-size: 9.5px; color: #aaa; }
.ft-st { font-size: 11px; font-weight: 600; color: #1a1a1a; }
.ft-ei { flex: 1; background: #f9f9f9; border: 1px solid #e3e3e3; border-radius: 4px; padding: 4px 8px; font-size: 11px; color: #aaa; font-family: inherit; }
.ft-chip { display: inline-flex; align-items: center; gap: 4px; background: #f0f0f0; border-radius: 99px; padding: 2px 8px 2px 5px; font-size: 10px; color: #1a1a1a; font-weight: 500; }
/* Notifications pane */
.ft-notif { padding: 12px 14px 0; display: flex; flex-direction: column; gap: 7px; }
.ft-nttl { font-size: 13px; font-weight: 700; color: #1a1a1a; }
.ft-nsub { font-size: 10px; color: #616161; line-height: 1.5; }
.ft-ntabs { display: flex; border-bottom: 1px solid #e3e3e3; margin: 0 -14px; padding: 0 14px; }
.ft-ntab { padding: 5px 10px; font-size: 11px; color: #616161; border-bottom: 2px solid transparent; cursor: pointer; transition: all .2s; }
.ft-ntab.ft-nta { color: #1a1a1a; border-bottom-color: #1a1a1a; font-weight: 600; }
.ft-ncon { padding: 8px 0; display: flex; flex-direction: column; gap: 7px; }
.ft-nrow { display: flex; align-items: center; justify-content: space-between; }
.ft-nt2 { font-size: 10.5px; font-weight: 600; color: #1a1a1a; }
.ft-chc { background: #f9f9f9; border: 1px solid #e3e3e3; border-radius: 6px; padding: 7px 9px; display: flex; align-items: center; gap: 7px; }
.ft-chav { width: 24px; height: 24px; border-radius: 50%; background: #ddd; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 10px; }
.ft-chem { font-size: 10.5px; color: #1a1a1a; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.ft-rs { font-size: 8.5px; border: 1px solid #e3e3e3; border-radius: 3px; padding: 2px 6px; color: #616161; cursor: pointer; background: none; font-family: inherit; }
.ft-vf { font-size: 8.5px; border-radius: 3px; padding: 2px 6px; background: #f0faf5; color: #007a5e; border: 1px solid #95c4af; font-weight: 600; }
.ft-rule { background: #f9f9f9; border: 1px solid #e3e3e3; border-radius: 6px; padding: 7px 9px; display: flex; flex-direction: column; gap: 4px; }
.ft-rtags { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.ft-rt { font-size: 7.5px; font-weight: 700; padding: 1px 5px; border-radius: 3px; }
.ft-rdesc { font-size: 10px; color: #616161; line-height: 1.4; }
.ft-rch { font-size: 9px; color: #aaa; }
.ft-tgls { width: 26px; height: 14px; background: #007a5e; border-radius: 99px; position: relative; flex-shrink: 0; margin-left: auto; }
.ft-tgls::after { content: ''; position: absolute; right: 1px; top: 1px; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
/* Export pane */
.ft-expw { position: relative; width: 100%; max-width: 300px; }
.ft-ecard { background: #fff; border: 1.5px solid #95c4af; border-radius: 9px; overflow: hidden; opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s ease; }
.ft-ecard.ft-eci { opacity: 1; transform: none; }
.ft-ech { padding: 9px 12px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #f0f0f0; }
.ft-ech-t { font-size: 12px; font-weight: 600; color: #1a1a1a; }
.ft-dots { color: #bbb; font-size: 18px; cursor: pointer; line-height: 1; padding: 0 2px; }
.ft-ecb { padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.ft-ecv { font-size: 22px; font-weight: 700; color: #007a5e; }
.ft-ecs { font-size: 10px; color: #aaa; }
.ft-ecf { padding: 7px 12px; border-top: 1px solid #f0f0f0; display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: #969696; }
.ft-ecfr { display: flex; align-items: center; gap: 5px; }
.ft-livpill { background: #1a1a1a; color: #fff; font-size: 9px; padding: 2px 6px; border-radius: 99px; display: flex; align-items: center; gap: 3px; font-style: normal; }
.ft-ldot { width: 5px; height: 5px; border-radius: 50%; background: #38e878; animation: lp 1.6s ease-out infinite; }
.ft-drop { position: absolute; top: 34px; right: 8px; background: #fff; border: 1px solid #e3e3e3; border-radius: 7px; box-shadow: 0 8px 24px rgba(0,0,0,.12); overflow: hidden; opacity: 0; transform: translateY(-6px) scale(.97); transition: opacity .3s ease, transform .3s ease; z-index: 5; min-width: 175px; }
.ft-drop.ft-ds { opacity: 1; transform: none; }
.ft-di { padding: 7px 13px; font-size: 11.5px; color: #1a1a1a; border-bottom: 1px solid #f5f5f5; cursor: default; display: flex; align-items: center; gap: 8px; }
.ft-di:last-child { border-bottom: none; }
.ft-di svg { flex-shrink: 0; opacity: .45; }
