/* ─── Archetype: Atelier ──────────────────────────────────────────────────
 * Loaded by App.razor when Realm.Archetype = Atelier.
 * Editorial-craft visual language for considered B2B SaaS:
 * pale hue-tinted off-white paper, single accent driven by realm hue,
 * Source Serif 4 headlines + Inter body, generous whitespace,
 * real CTA buttons (not underline-only — this is B2B).
 *
 * Inspired by: editorial print, small craft studios, considered typography.
 * Distinct from: terminal/devtools chrome, generic SaaS dark gradients.
 *
 * All surface tokens derive from --realm-hue via OKLCH, so the whole palette
 * follows the realm's hue choice. For Smell That Code (hue 130) this gives
 * a pale green-cream paper with grass-green ink.
 * ─────────────────────────────────────────────────────────────────────── */

/* Selector uses :root[data-archetype="Atelier"] (specificity 0,1,1) instead of :root
   (0,1,0) so it beats the inline RealmStyleBlock <style> that App.razor injects after
   this file in <head>. data-archetype is set on <html> by App.razor. */
:root[data-archetype="Atelier"] {
  --atArchetype-font-sans:   "Inter", ui-sans-serif, system-ui, sans-serif;
  --atArchetype-font-serif:  "Source Serif 4", "Source Serif Pro", "Tiempos Headline", Georgia, serif;
  --atArchetype-font-mono:   "JetBrains Mono", ui-monospace, monospace;     /* sparing use */

  --atArchetype-density:     1.10;
  --atArchetype-radius-sm:   6px;
  --atArchetype-radius-md:   10px;
  --atArchetype-radius-lg:   14px;
  --atArchetype-radius-pill: 999px;
  --atArchetype-transition:  280ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Hue-tinted paper palette — derives from --realm-hue so the bg always
     stays in the realm's color family. No more yellow-cream-vs-green-accent clash. */
  --atArchetype-page-bg:      oklch(0.975 0.018 var(--realm-hue));   /* pale tinted off-white */
  --atArchetype-paper-bg:     oklch(0.94  0.030 var(--realm-hue));   /* slightly more saturated for inset surfaces */
  --atArchetype-card-bg:      oklch(0.99  0.005 var(--realm-hue));   /* near-white for elevated cards */
  --atArchetype-rule:         oklch(0.86  0.030 var(--realm-hue));
  --atArchetype-rule-soft:    oklch(0.92  0.022 var(--realm-hue));

  --atArchetype-text:         oklch(0.20 0.02 var(--realm-hue));
  --atArchetype-text-muted:   oklch(0.42 0.02 var(--realm-hue));
  --atArchetype-text-dim:     oklch(0.58 0.02 var(--realm-hue));

  --atArchetype-accent:       oklch(0.55 0.13 var(--realm-hue));
  --atArchetype-accent-soft:  oklch(0.60 0.12 var(--realm-hue));
  --atArchetype-accent-bg:    oklch(0.92 0.05 var(--realm-hue));
  --atArchetype-accent-border:oklch(0.82 0.07 var(--realm-hue));
  --atArchetype-accent-on:    oklch(0.18 0.02 var(--realm-hue));     /* deep hue-tinted text over solid accent */

  /* Wave/smell-line stack — five layers from faint to bright. The top layer is the
     accent; the lower layers are progressively darker rule colours. Used for the hero
     smell-lines decoration and the smell-divider between sections. */
  --atArchetype-wave-1: oklch(0.86 0.02 var(--realm-hue));
  --atArchetype-wave-2: oklch(0.78 0.03 var(--realm-hue));
  --atArchetype-wave-3: oklch(0.70 0.04 var(--realm-hue));
  --atArchetype-wave-4: oklch(0.62 0.05 var(--realm-hue));
  --atArchetype-wave-5: var(--atArchetype-accent);

  /* App-zone token overrides — make the BlazorBlueprint app shell breathe the
     same cream-green paper + grass-green accent as the marketing home page.
     atelier.css is the last archetype CSS to load, so these win over default.css. */
  --background:                 var(--atArchetype-page-bg);
  --foreground:                 var(--atArchetype-text);
  --card:                       var(--atArchetype-card-bg);
  --card-foreground:            var(--atArchetype-text);
  --popover:                    var(--atArchetype-card-bg);
  --popover-foreground:         var(--atArchetype-text);
  --primary:                    var(--atArchetype-accent);
  --primary-foreground:         var(--atArchetype-page-bg);
  --secondary:                  var(--atArchetype-paper-bg);
  --secondary-foreground:       var(--atArchetype-text);
  --muted:                      var(--atArchetype-paper-bg);
  --muted-foreground:           var(--atArchetype-text-muted);
  --accent:                     var(--atArchetype-accent-bg);
  --accent-foreground:          var(--atArchetype-text);
  --border:                     var(--atArchetype-rule);
  --input:                      var(--atArchetype-rule);
  --ring:                       var(--atArchetype-accent);

  /* ─── Sidebar — single knob ─────────────────────────────────────────
     CHANGE-ONE-VALUE: tweak --atArchetype-sidebar-bg to repaint the entire
     sidebar. Foreground text, hover background, border, focus ring, and the
     in-sidebar smell-line waves all derive from it via OKLCH relative-color
     syntax, so contrast and tonal rhythm stay correct as you move the bg
     lighter or darker. */
  --atArchetype-sidebar-bg:     oklch(0.42 0.060 var(--realm-hue));

  --sidebar-background:         var(--atArchetype-sidebar-bg);
  --sidebar:                    var(--atArchetype-sidebar-bg);
  --sidebar-foreground:         oklch(from var(--atArchetype-sidebar-bg) calc(l + 0.51) calc(c * 0.35) h);
  --sidebar-primary:            oklch(from var(--atArchetype-sidebar-bg) calc(l + 0.55) calc(c * 0.42) h);
  --sidebar-primary-foreground: var(--atArchetype-sidebar-bg);
  --sidebar-accent:             oklch(from var(--atArchetype-sidebar-bg) calc(l + 0.08) calc(c * 1.33) h);
  --sidebar-accent-foreground:  oklch(from var(--atArchetype-sidebar-bg) calc(l + 0.55) calc(c * 0.42) h);
  --sidebar-border:             oklch(from var(--atArchetype-sidebar-bg) calc(l - 0.06) calc(c * 0.83) h);
  --sidebar-ring:               oklch(from var(--atArchetype-sidebar-bg) calc(l + 0.55) calc(c * 0.42) h);
}

/* ─── Dark mode — chartreuse-on-near-black ─────────────────────────────────
   Triggers via html.dark class which RealmInfo sets when colorMode is Dark or
   StartWithDark. The accent shifts to a high-lightness yellow-green ("good smell"
   chartreuse) to pop on the green-tinted black paper.

   Selector chains [data-archetype="Atelier"] for specificity (0,2,1) so it
   beats the inline RealmStyleBlock html.dark block (0,1,1). */
html.dark[data-archetype="Atelier"] {
  --atArchetype-page-bg:      oklch(0.17 0.018 var(--realm-hue));   /* near-black with green tint */
  --atArchetype-paper-bg:     oklch(0.21 0.022 var(--realm-hue));   /* lifted surface */
  --atArchetype-card-bg:      oklch(0.22 0.025 var(--realm-hue));   /* tier card surface */
  --atArchetype-rule:         oklch(0.30 0.025 var(--realm-hue));
  --atArchetype-rule-soft:    oklch(0.25 0.022 var(--realm-hue));

  --atArchetype-text:         oklch(0.93 0.012 var(--realm-hue));
  --atArchetype-text-muted:   oklch(0.66 0.02  var(--realm-hue));
  --atArchetype-text-dim:     oklch(0.46 0.02  var(--realm-hue));

  /* Accent uses a slightly yellower hue (117) to reach true chartreuse — independent of
     the realm's structural hue (130 for STC). This is the "good smell" colour. */
  --atArchetype-accent:        oklch(0.93 0.22 117);
  --atArchetype-accent-soft:   oklch(0.85 0.20 117);
  --atArchetype-accent-bg:     oklch(0.30 0.06 var(--realm-hue));
  --atArchetype-accent-border: oklch(0.40 0.10 var(--realm-hue));
  --atArchetype-accent-on:     oklch(0.17 0.02 var(--realm-hue));   /* dark text on chartreuse */

  --atArchetype-wave-1: oklch(0.30 0.020 var(--realm-hue));
  --atArchetype-wave-2: oklch(0.36 0.030 var(--realm-hue));
  --atArchetype-wave-3: oklch(0.44 0.045 var(--realm-hue));
  --atArchetype-wave-4: oklch(0.55 0.060 var(--realm-hue));
  --atArchetype-wave-5: var(--atArchetype-accent);

  /* App-zone overrides — match the dark home page paper and the chartreuse accent. */
  --background:                 var(--atArchetype-page-bg);
  --foreground:                 var(--atArchetype-text);
  --card:                       var(--atArchetype-card-bg);
  --card-foreground:            var(--atArchetype-text);
  --popover:                    var(--atArchetype-card-bg);
  --popover-foreground:         var(--atArchetype-text);
  --primary:                    var(--atArchetype-accent);
  --primary-foreground:         var(--atArchetype-accent-on);
  --secondary:                  var(--atArchetype-paper-bg);
  --secondary-foreground:       var(--atArchetype-text);
  --muted:                      var(--atArchetype-paper-bg);
  --muted-foreground:           var(--atArchetype-text-muted);
  --accent:                     var(--atArchetype-accent-bg);
  --accent-foreground:          var(--atArchetype-text);
  --border:                     var(--atArchetype-rule);
  --input:                      var(--atArchetype-rule);
  --ring:                       var(--atArchetype-accent);

  /* Sidebar — same single-knob model as light mode. In dark mode the bg sits
     near-black for chrome contrast against the slightly-lifted main content.
     CHANGE-ONE-VALUE: edit --atArchetype-sidebar-bg here. */
  --atArchetype-sidebar-bg:     oklch(0.20 0.020 var(--realm-hue));

  --sidebar-background:         var(--atArchetype-sidebar-bg);
  --sidebar:                    var(--atArchetype-sidebar-bg);
  --sidebar-foreground:         oklch(from var(--atArchetype-sidebar-bg) calc(l + 0.46) calc(c * 1.0) h);
  --sidebar-primary:            var(--atArchetype-accent);
  --sidebar-primary-foreground: var(--atArchetype-accent-on);
  --sidebar-accent:             oklch(from var(--atArchetype-sidebar-bg) calc(l + 0.06) calc(c * 1.5) h);
  --sidebar-accent-foreground:  var(--atArchetype-text);
  --sidebar-border:             oklch(from var(--atArchetype-sidebar-bg) calc(l + 0.10) calc(c * 1.25) h);
  --sidebar-ring:               var(--atArchetype-accent);
}

body {
  font-family: var(--atArchetype-font-sans);
  background: var(--atArchetype-page-bg);
  color: var(--atArchetype-text);
  font-weight: 400;
}

/* ─── Header ───────────────────────────────────────────────────────────── */
.atArchetype-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
  background: var(--atArchetype-page-bg);
  border-bottom: 1px solid var(--atArchetype-rule-soft);
}
.atArchetype-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.atArchetype-brand-mark {
  display: block;
  flex-shrink: 0;
}
.atArchetype-brand-name {
  font-family: var(--atArchetype-font-serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--atArchetype-text);
}
.atArchetype-nav {
  display: flex;
  gap: 36px;
  font-size: 14px;
  color: var(--atArchetype-text-muted);
  font-weight: 500;
}
.atArchetype-nav a {
  color: inherit;
  text-decoration: none;
  transition: var(--atArchetype-transition);
  position: relative;
}
.atArchetype-nav a:hover {
  color: var(--atArchetype-text);
}
.atArchetype-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* mobile menu toggle — inert on desktop (collapse is display:contents so layout is unchanged) */
.atArchetype-nav-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.atArchetype-nav-burger { display: none; }
.atArchetype-nav-scrim { display: none; }
.atArchetype-collapse { display: contents; }
.atArchetype-cta-ghost {
  padding: 9px 16px;
  font-size: 14px;
  color: var(--atArchetype-text);
  text-decoration: none;
  font-weight: 500;
  transition: var(--atArchetype-transition);
}
.atArchetype-cta-ghost:hover {
  color: var(--atArchetype-accent);
}
.atArchetype-cta-solid {
  padding: 9px 18px;
  background: var(--atArchetype-accent);
  color: var(--atArchetype-accent-on);
  border-radius: var(--atArchetype-radius-md);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--atArchetype-transition);
  box-shadow: 0 1px 0 oklch(0.45 0.13 var(--realm-hue) / 0.4);
}
.atArchetype-cta-solid:hover {
  background: oklch(0.50 0.13 var(--realm-hue));
  transform: translateY(-1px);
  box-shadow: 0 3px 8px oklch(0.45 0.13 var(--realm-hue) / 0.3);
}

/* ─── Footer ───────────────────────────────────────────────────────────── */
.atArchetype-footer {
  padding: 64px 48px 32px;
  background: var(--atArchetype-paper-bg);
  border-top: 1px solid var(--atArchetype-rule-soft);
}
.atArchetype-footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 44px;
  max-width: 1100px;
}
.atArchetype-footer-brand .atArchetype-brand {
  margin-bottom: 18px;
}
.atArchetype-footer-tagline {
  font-family: var(--atArchetype-font-serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.55;
  color: var(--atArchetype-text-muted);
  max-width: 32ch;
  margin: 0;
}
.atArchetype-footer-col-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--atArchetype-text-dim);
  margin-bottom: 16px;
}
.atArchetype-footer a {
  display: block;
  font-size: 14px;
  color: var(--atArchetype-text-muted);
  padding: 5px 0;
  text-decoration: none;
  transition: var(--atArchetype-transition);
}
.atArchetype-footer a:hover {
  color: var(--atArchetype-accent);
}
.atArchetype-footer-zen {
  padding: 28px 0 20px;
  text-align: center;
}
.atArchetype-imprint {
  padding-top: 24px;
  border-top: 1px solid var(--atArchetype-rule-soft);
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--atArchetype-text-dim);
  max-width: 1100px;
}

/* ─── Mobile (≤768px) ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .atArchetype-header {
    padding: 18px 20px;
    position: relative; z-index: 20;
  }
  .atArchetype-nav-burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 11px; margin: -11px -11px -11px 0;
    background: none; border: none; cursor: pointer;
  }
  .atArchetype-nav-burger span {
    display: block; width: 100%; height: 2px; background: var(--atArchetype-text);
    transition: transform .2s ease, opacity .2s ease;
  }
  .atArchetype-collapse {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0; z-index: 2;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 20px; background: var(--atArchetype-page-bg);
    border-bottom: 1px solid var(--atArchetype-rule-soft);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  }
  .atArchetype-nav-toggle:checked ~ .atArchetype-collapse { display: flex; }
  .atArchetype-nav { flex-direction: column; gap: 0; }
  .atArchetype-nav a { padding: 13px 0; }
  .atArchetype-header-right { flex-direction: column; align-items: stretch; gap: 4px; }
  .atArchetype-nav-toggle:checked ~ .atArchetype-nav-scrim {
    display: block; position: fixed; inset: 0; z-index: 1; background: rgba(20, 20, 20, 0.15);
  }
  .atArchetype-nav-toggle:checked ~ .atArchetype-nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .atArchetype-nav-toggle:checked ~ .atArchetype-nav-burger span:nth-child(2) { opacity: 0; }
  .atArchetype-nav-toggle:checked ~ .atArchetype-nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .atArchetype-cta-ghost {
    padding: 7px 12px;
    font-size: 13px;
  }
  .atArchetype-cta-solid {
    padding: 7px 14px;
    font-size: 13px;
  }
  .atArchetype-footer {
    padding: 48px 20px 24px;
  }
  .atArchetype-footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .atArchetype-footer-brand {
    grid-column: 1 / -1;
  }
  .atArchetype-imprint {
    flex-direction: column;
    gap: 8px;
  }
}

/* ─── Hero ─────────────────────────────────────────────────────────────── */
.atArchetype-hero {
  padding: 120px 48px 96px;
  background: var(--atArchetype-page-bg);
  position: relative;
  overflow: hidden;
}
/* Subtle warm paper texture — barely-there ochre-tinted gradient pooling at top-left */
.atArchetype-hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 50% 35% at 25% 15%,
    oklch(0.92 0.05 var(--realm-hue) / 0.55), transparent 70%);
  filter: blur(40px);
}
.atArchetype-hero-inner {
  max-width: 920px;
  position: relative;
  z-index: 1;
}


.atArchetype-eyebrow {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--atArchetype-accent);
  margin-bottom: 32px;
}

.atArchetype-h1 {
  font-family: var(--atArchetype-font-serif);
  font-size: 78px;
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--atArchetype-text);
  margin: 0 0 28px;
  max-width: 18ch;
}
.atArchetype-h1 em.serif {
  font-style: italic;
  font-weight: 400;
  color: var(--atArchetype-accent);
}

.atArchetype-secondary {
  font-family: var(--atArchetype-font-sans);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--atArchetype-text);
  margin: 0 0 20px;
  max-width: 30ch;
}

.atArchetype-lead {
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--atArchetype-text-muted);
  max-width: 56ch;
  margin: 0 0 44px;
  font-weight: 400;
}

.atArchetype-ctas {
  display: flex;
  gap: 14px;
  align-items: center;
}
.atArchetype-cta-primary {
  background: var(--atArchetype-accent);
  color: var(--atArchetype-accent-on);
  padding: 13px 24px;
  border-radius: var(--atArchetype-radius-md);
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: var(--atArchetype-transition);
  box-shadow: 0 1px 0 oklch(0.45 0.13 var(--realm-hue) / 0.4);
}
.atArchetype-cta-primary:hover {
  background: oklch(0.50 0.13 var(--realm-hue));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px oklch(0.45 0.13 var(--realm-hue) / 0.32);
}
.atArchetype-cta-secondary {
  padding: 13px 22px;
  border: 1px solid var(--atArchetype-rule);
  border-radius: var(--atArchetype-radius-md);
  font-size: 15px;
  font-weight: 500;
  color: var(--atArchetype-text);
  background: transparent;
  text-decoration: none;
  transition: var(--atArchetype-transition);
}
.atArchetype-cta-secondary:hover {
  border-color: var(--atArchetype-text-muted);
  background: oklch(0.96 0.02 var(--realm-hue));
}

@media (max-width: 768px) {
  .atArchetype-hero {
    padding: 64px 20px 56px;
  }
  .atArchetype-h1 {
    font-size: 48px;
    max-width: none;
  }
  .atArchetype-secondary {
    font-size: 18px;
    max-width: none;
  }
  .atArchetype-lead {
    font-size: 16px;
    max-width: none;
  }
  .atArchetype-ctas {
    flex-wrap: wrap;
    gap: 10px;
  }
  .atArchetype-cta-primary,
  .atArchetype-cta-secondary {
    padding: 11px 18px;
    font-size: 14px;
  }
}

/* ─── Section head shared between Scenario + Pricing + Blog ───────────── */
.atArchetype-section-eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--atArchetype-accent);
  margin-bottom: 18px;
  font-weight: 500;
}
.atArchetype-h2 {
  font-family: var(--atArchetype-font-serif);
  font-size: 44px;
  line-height: 1.12;
  letter-spacing: -0.018em;
  font-weight: 500;
  color: var(--atArchetype-text);
  margin: 0 0 18px;
  max-width: 22ch;
}
.atArchetype-h2 em.serif {
  font-style: italic;
  font-weight: 400;
  color: var(--atArchetype-accent);
}
.atArchetype-section-sub {
  font-size: 17px;
  color: var(--atArchetype-text-muted);
  line-height: 1.6;
  margin: 0;
  max-width: 52ch;
}

/* ─── Scenario ─────────────────────────────────────────────────────────── */
.atArchetype-scenario {
  padding: 96px 48px 120px;
  background: var(--atArchetype-paper-bg);
  border-top: 1px solid var(--atArchetype-rule-soft);
  border-bottom: 1px solid var(--atArchetype-rule-soft);
}
.atArchetype-scenario-head {
  max-width: 760px;
  margin: 0 auto 72px;
}

.atArchetype-scenario-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 760px;
  position: relative;
  counter-reset: scene;
}
/* Vertical hairline running down the left column connecting scene numbers */
.atArchetype-scenario-list::before {
  content: "";
  position: absolute;
  left: 23px;            /* aligns with center of scene-num */
  top: 30px;
  bottom: 30px;
  width: 1px;
  background: linear-gradient(180deg,
    var(--atArchetype-accent-border) 0%,
    var(--atArchetype-rule) 100%);
  opacity: 0.6;
}

.atArchetype-scene {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 28px;
  padding: 40px 0;
  position: relative;
}
.atArchetype-scene + .atArchetype-scene {
  border-top: 1px solid var(--atArchetype-rule-soft);
}
.atArchetype-scene-num {
  font-family: var(--atArchetype-font-serif);
  font-style: italic;
  font-size: 24px;
  font-weight: 400;
  color: var(--atArchetype-accent);
  line-height: 1;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--atArchetype-card-bg);
  border: 1px solid var(--atArchetype-accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.atArchetype-scene-body { min-width: 0; }
.atArchetype-scene-heading {
  font-family: var(--atArchetype-font-serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.2;
  margin: 4px 0 12px;
  color: var(--atArchetype-text);
}
.atArchetype-scene-text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--atArchetype-text-muted);
  margin: 0 0 22px;
  max-width: 56ch;
}

/* ─── Mock UI illustrations (CSS-only, per scene Kind) ─────────────────── */

/* commit — single-line stylized commit row */
.atArchetype-mock-commit {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  background: var(--atArchetype-card-bg);
  border: 1px solid var(--atArchetype-rule);
  border-radius: var(--atArchetype-radius-md);
  font-family: var(--atArchetype-font-mono);
  font-size: 13px;
  margin-top: 6px;
}
.atArchetype-mock-commit-hash {
  color: var(--atArchetype-accent);
  font-weight: 600;
}
.atArchetype-mock-commit-msg { color: var(--atArchetype-text); }
.atArchetype-mock-commit-branch {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--atArchetype-text-dim);
  border: 1px solid var(--atArchetype-rule);
  padding: 2px 8px;
  border-radius: var(--atArchetype-radius-pill);
}

/* repo-list — list with green checks + a final pinned/skipped row */
.atArchetype-mock-repos {
  list-style: none;
  padding: 14px 18px;
  margin: 6px 0 0;
  background: var(--atArchetype-card-bg);
  border: 1px solid var(--atArchetype-rule);
  border-radius: var(--atArchetype-radius-md);
  font-family: var(--atArchetype-font-sans);
  font-size: 14px;
  max-width: 56ch;
}
.atArchetype-mock-repos li {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}
.atArchetype-mock-repos li + li {
  border-top: 1px solid var(--atArchetype-rule-soft);
}
.atArchetype-mock-repos code {
  font-family: var(--atArchetype-font-mono);
  font-size: 13px;
  color: var(--atArchetype-text);
  background: transparent;
}
.atArchetype-mock-check {
  color: var(--atArchetype-accent);
  font-weight: 600;
}
.atArchetype-mock-skip code,
.atArchetype-mock-skip .atArchetype-mock-meta {
  color: var(--atArchetype-text-dim);
}
.atArchetype-mock-dash {
  color: var(--atArchetype-text-dim);
}
.atArchetype-mock-meta {
  font-size: 12px;
  color: var(--atArchetype-text-dim);
}

/* dashboard — heading bar + single accented row + "Propagate" link-cta */
.atArchetype-mock-dashboard {
  background: var(--atArchetype-card-bg);
  border: 1px solid var(--atArchetype-rule);
  border-radius: var(--atArchetype-radius-md);
  overflow: hidden;
  max-width: 56ch;
  margin-top: 6px;
}
.atArchetype-mock-dash-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  background: var(--atArchetype-paper-bg);
  border-bottom: 1px solid var(--atArchetype-rule);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--atArchetype-text);
  letter-spacing: 0.02em;
}
.atArchetype-mock-dash-count {
  background: var(--atArchetype-accent-bg);
  color: var(--atArchetype-accent);
  padding: 2px 9px;
  border-radius: var(--atArchetype-radius-pill);
  font-size: 12px;
}
.atArchetype-mock-dash-row {
  display: grid;
  grid-template-columns: 14px auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  font-size: 14px;
}
.atArchetype-mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--atArchetype-accent);
}
.atArchetype-mock-dash-row code {
  font-family: var(--atArchetype-font-mono);
  font-size: 13px;
  color: var(--atArchetype-text);
}
.atArchetype-mock-dash-cta {
  font-size: 13px;
  color: var(--atArchetype-accent);
  font-weight: 600;
}

/* pr-cards — stack of branch-card rows */
.atArchetype-mock-prs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
  max-width: 56ch;
}
.atArchetype-mock-pr {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--atArchetype-card-bg);
  border: 1px solid var(--atArchetype-rule);
  border-radius: var(--atArchetype-radius-md);
  font-size: 14px;
  position: relative;
}
.atArchetype-mock-pr-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--atArchetype-accent-bg);
  color: var(--atArchetype-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.atArchetype-mock-pr div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.atArchetype-mock-pr strong {
  font-family: var(--atArchetype-font-mono);
  font-size: 13px;
  color: var(--atArchetype-text);
  font-weight: 600;
}
.atArchetype-mock-pr span {
  font-size: 12.5px;
  color: var(--atArchetype-text-dim);
}
.atArchetype-mock-pr-more {
  justify-content: center;
  font-size: 12.5px;
  color: var(--atArchetype-text-dim);
  font-style: italic;
  background: transparent;
  border: 1px dashed var(--atArchetype-rule);
}

/* audit-log — three-row stylized log */
.atArchetype-mock-audit {
  background: var(--atArchetype-card-bg);
  border: 1px solid var(--atArchetype-rule);
  border-radius: var(--atArchetype-radius-md);
  overflow: hidden;
  max-width: 56ch;
  margin-top: 6px;
  font-family: var(--atArchetype-font-mono);
  font-size: 12.5px;
}
.atArchetype-mock-audit-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  padding: 10px 16px;
  align-items: center;
  color: var(--atArchetype-text-muted);
}
.atArchetype-mock-audit-row + .atArchetype-mock-audit-row {
  border-top: 1px solid var(--atArchetype-rule-soft);
}
.atArchetype-mock-audit-row span:nth-child(1) {
  color: var(--atArchetype-text-dim);
}
.atArchetype-mock-audit-row span:nth-child(2) {
  color: var(--atArchetype-text);
  font-family: var(--atArchetype-font-sans);
  font-size: 13.5px;
}
.atArchetype-mock-audit-row code {
  color: var(--atArchetype-accent);
}

/* ─── Mobile (≤768px) ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .atArchetype-scenario {
    padding: 64px 20px 80px;
  }
  .atArchetype-scenario-head {
    margin-bottom: 48px;
  }
  .atArchetype-h2 {
    font-size: 32px;
  }
  .atArchetype-section-sub {
    font-size: 16px;
  }
  .atArchetype-scenario-list::before {
    left: 18px;
  }
  .atArchetype-scene {
    grid-template-columns: 36px 1fr;
    gap: 18px;
    padding: 28px 0;
  }
  .atArchetype-scene-num {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  .atArchetype-scene-heading {
    font-size: 22px;
  }
  .atArchetype-scene-text {
    font-size: 15px;
  }
  .atArchetype-mock-repos,
  .atArchetype-mock-dashboard,
  .atArchetype-mock-prs,
  .atArchetype-mock-audit {
    max-width: none;
  }
}

/* ─── Pricing ──────────────────────────────────────────────────────────── */
.atArchetype-pricing {
  padding: 96px 48px 120px;
  background: var(--atArchetype-page-bg);
}
.atArchetype-pricing-head {
  max-width: 760px;
  margin: 0 auto 64px;
}
.atArchetype-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  max-width: 1240px;   /* fits 5 tiers in a single row on wide viewports; wraps gracefully below */
  margin: 0 auto;
}
.atArchetype-plan {
  background: var(--atArchetype-card-bg);
  border: 1px solid var(--atArchetype-rule);
  border-radius: var(--atArchetype-radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--atArchetype-transition);
}
.atArchetype-plan:hover {
  border-color: var(--atArchetype-accent-border);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -16px oklch(0.40 0.10 var(--realm-hue) / 0.25);
}
.atArchetype-plan.is-featured {
  border: 1px solid var(--atArchetype-accent);
  box-shadow: 0 0 0 1px var(--atArchetype-accent), 0 12px 30px -16px oklch(0.45 0.13 var(--realm-hue) / 0.30);
}
.atArchetype-plan-name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--atArchetype-accent);
  margin-bottom: 14px;
}
.atArchetype-plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 14px;
  font-family: var(--atArchetype-font-serif);
}
.atArchetype-plan-price .amount {
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--atArchetype-text);
  line-height: 1;
}
.atArchetype-plan-price .unit {
  font-size: 15px;
  color: var(--atArchetype-text-dim);
  font-style: italic;
}
.atArchetype-plan-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--atArchetype-text-muted);
  margin: 0 0 24px;
}
.atArchetype-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
}
.atArchetype-plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  color: var(--atArchetype-text-muted);
  line-height: 1.5;
}
.atArchetype-plan-features .check {
  color: var(--atArchetype-accent);
  flex-shrink: 0;
  font-weight: 700;
  margin-top: 2px;
}
.atArchetype-plan-cta {
  display: block;
  text-align: center;
  padding: 11px 16px;
  border-radius: var(--atArchetype-radius-md);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--atArchetype-transition);
  margin-top: auto;
}
.atArchetype-plan-cta.is-outline {
  border: 1px solid var(--atArchetype-rule);
  color: var(--atArchetype-text);
  background: transparent;
}
.atArchetype-plan-cta.is-outline:hover {
  border-color: var(--atArchetype-text-muted);
  background: var(--atArchetype-paper-bg);
}
.atArchetype-plan-cta.is-solid {
  background: var(--atArchetype-accent);
  color: var(--atArchetype-accent-on);
  box-shadow: 0 1px 0 oklch(0.45 0.13 var(--realm-hue) / 0.4);
}
.atArchetype-plan-cta.is-solid:hover {
  background: oklch(0.50 0.13 var(--realm-hue));
}

/* ─── Blog list ────────────────────────────────────────────────────────── */
.atArchetype-blog-list {
  padding: 96px 48px 120px;
  background: var(--atArchetype-page-bg);
  max-width: 920px;
  margin: 0 auto;
}
.atArchetype-blog-list-head {
  margin-bottom: 56px;
}
.atArchetype-blog-list-head .atArchetype-section-eyebrow {
  margin-bottom: 14px;
}
.atArchetype-blog-rows {
  border-top: 1px solid var(--atArchetype-rule);
}
.atArchetype-blog-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 36px;
  padding: 36px 0;
  border-bottom: 1px solid var(--atArchetype-rule);
  text-decoration: none;
  color: inherit;
  transition: var(--atArchetype-transition);
}
.atArchetype-blog-row:hover .atArchetype-blog-title {
  color: var(--atArchetype-accent);
}
.atArchetype-blog-date {
  font-family: var(--atArchetype-font-serif);
  font-style: italic;
  font-size: 14.5px;
  color: var(--atArchetype-text-dim);
  padding-top: 6px;
  white-space: nowrap;
}
.atArchetype-blog-meta { min-width: 0; }
.atArchetype-blog-title {
  font-family: var(--atArchetype-font-serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.012em;
  margin: 0 0 10px;
  color: var(--atArchetype-text);
  line-height: 1.25;
  transition: var(--atArchetype-transition);
}
.atArchetype-blog-summary {
  font-size: 15px;
  line-height: 1.6;
  color: var(--atArchetype-text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.atArchetype-blog-empty {
  padding: 80px 0;
  text-align: center;
  color: var(--atArchetype-text-dim);
  font-family: var(--atArchetype-font-serif);
  font-style: italic;
}

/* ─── Blog post ────────────────────────────────────────────────────────── */
.atArchetype-blog-post {
  max-width: 680px;
  padding: 96px 48px 120px;
  margin: 0 auto;
  background: var(--atArchetype-page-bg);
}
.atArchetype-blog-back {
  display: inline-block;
  font-size: 14px;
  color: var(--atArchetype-accent);
  text-decoration: none;
  margin-bottom: 56px;
  font-weight: 500;
  transition: var(--atArchetype-transition);
}
.atArchetype-blog-back:hover {
  color: var(--atArchetype-text);
}
.atArchetype-blog-post-date {
  font-family: var(--atArchetype-font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--atArchetype-text-dim);
  margin-bottom: 18px;
}
.atArchetype-blog-post-title {
  font-family: var(--atArchetype-font-serif);
  font-size: 56px;
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--atArchetype-text);
  margin: 0 0 24px;
  max-width: 18ch;
}
.atArchetype-blog-post-lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--atArchetype-text-muted);
  margin: 0 0 56px;
  max-width: 56ch;
}
.atArchetype-blog-post-rule {
  border: none;
  border-top: 1px solid var(--atArchetype-rule);
  margin: 0 0 56px;
}
.atArchetype-blog-post-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--atArchetype-text);
}
.atArchetype-blog-post-body :where(h2, h3) {
  font-family: var(--atArchetype-font-serif);
  font-weight: 500;
}

/* ─── Mobile (≤768px) — pricing + blog ─────────────────────────────── */
@media (max-width: 768px) {
  .atArchetype-pricing {
    padding: 64px 20px 80px;
  }
  .atArchetype-pricing-head {
    margin-bottom: 48px;
  }
  .atArchetype-plan {
    padding: 28px 24px;
  }
  .atArchetype-plan-price .amount {
    font-size: 32px;
  }

  .atArchetype-blog-list {
    padding: 64px 20px 80px;
  }
  .atArchetype-blog-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 28px 0;
  }
  .atArchetype-blog-title {
    font-size: 21px;
  }

  .atArchetype-blog-post {
    padding: 64px 20px 80px;
  }
  .atArchetype-blog-post-title {
    font-size: 38px;
    max-width: none;
  }
  .atArchetype-blog-post-lead {
    font-size: 17px;
    max-width: none;
  }
}

/* ─── Hero meta strip ──────────────────────────────────────────────────── */
.atArchetype-hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px 32px;
  margin: 56px 0 0;
  padding: 24px 28px;
  border: 1px solid var(--atArchetype-rule-soft);
  border-radius: var(--atArchetype-radius-md);
  background: oklch(0.98 0.012 var(--realm-hue));
  max-width: 760px;
}
.atArchetype-hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}
.atArchetype-hero-meta-item dt {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--atArchetype-text-dim);
  font-weight: 500;
}
.atArchetype-hero-meta-item dd {
  font-size: 14.5px;
  color: var(--atArchetype-text);
  margin: 0;
  font-weight: 500;
}

/* ─── Pricing positioning line + billing toggle ────────────────────────── */
.atArchetype-pricing-positioning {
  font-family: var(--atArchetype-font-serif);
  font-style: italic;
  font-size: 17px;
  color: var(--atArchetype-text-muted);
  margin: 0 0 14px;
}
.atArchetype-billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 28px;
  padding: 4px;
  border: 1px solid var(--atArchetype-rule);
  border-radius: var(--atArchetype-radius-pill);
  background: var(--atArchetype-card-bg);
}
.atArchetype-billing-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 0;
  border-radius: var(--atArchetype-radius-pill);
  background: transparent;
  color: var(--atArchetype-text-muted);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--atArchetype-transition);
}
.atArchetype-billing-tab:hover {
  color: var(--atArchetype-text);
}
.atArchetype-billing-tab.is-active {
  background: var(--atArchetype-text);
  color: var(--atArchetype-page-bg);
}
.atArchetype-billing-savings {
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: var(--atArchetype-radius-pill);
  background: var(--atArchetype-accent-bg);
  color: var(--atArchetype-accent);
  font-weight: 600;
}
.atArchetype-billing-tab.is-active .atArchetype-billing-savings {
  background: oklch(0.45 0.06 var(--realm-hue));
  color: var(--atArchetype-page-bg);
}

/* ─── Plan card additions: head row, badge, projects, footnote ─────────── */
.atArchetype-plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}
.atArchetype-plan-head .atArchetype-plan-name {
  margin-bottom: 0;
}
.atArchetype-plan-badge {
  font-size: 10.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--atArchetype-accent-on);
  background: var(--atArchetype-accent);
  padding: 3px 9px;
  border-radius: var(--atArchetype-radius-pill);
}
.atArchetype-plan-projects {
  font-family: var(--atArchetype-font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--atArchetype-text);
  background: var(--atArchetype-paper-bg);
  border: 1px solid var(--atArchetype-rule-soft);
  padding: 6px 12px;
  border-radius: var(--atArchetype-radius-sm);
  align-self: flex-start;
  margin: -6px 0 18px;
}
.atArchetype-plan-footnote {
  font-size: 12.5px;
  font-style: italic;
  color: var(--atArchetype-text-dim);
  margin: 0 0 18px;
}

/* ─── Add-ons ──────────────────────────────────────────────────────────── */
.atArchetype-addons {
  max-width: 1240px;
  margin: 88px auto 0;
  padding-top: 64px;
  border-top: 1px solid var(--atArchetype-rule-soft);
}
.atArchetype-addons-heading {
  font-family: var(--atArchetype-font-serif);
  font-size: 28px;
  letter-spacing: -0.015em;
  font-weight: 500;
  color: var(--atArchetype-text);
  margin: 0 0 8px;
}
.atArchetype-addons-sub {
  font-size: 15px;
  color: var(--atArchetype-text-muted);
  margin: 0 0 32px;
  max-width: 60ch;
}
.atArchetype-addons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.atArchetype-addon {
  background: var(--atArchetype-card-bg);
  border: 1px solid var(--atArchetype-rule);
  border-radius: var(--atArchetype-radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.atArchetype-addon-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.atArchetype-addon-name {
  font-family: var(--atArchetype-font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--atArchetype-text);
}
.atArchetype-addon-price {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--atArchetype-font-serif);
}
.atArchetype-addon-price .amount {
  font-size: 22px;
  font-weight: 500;
  color: var(--atArchetype-accent);
  letter-spacing: -0.01em;
}
.atArchetype-addon-price .unit {
  font-size: 13px;
  color: var(--atArchetype-text-dim);
  font-style: italic;
}
.atArchetype-addon-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--atArchetype-text-muted);
  margin: 0 0 18px;
}
.atArchetype-addon-features {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.atArchetype-addon-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 4px 0;
  font-size: 13.5px;
  color: var(--atArchetype-text-muted);
  line-height: 1.5;
}
.atArchetype-addon-features .check {
  color: var(--atArchetype-accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.atArchetype-addon-eligibility {
  font-size: 12.5px;
  font-style: italic;
  color: var(--atArchetype-text-dim);
  margin: auto 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--atArchetype-rule-soft);
}

/* ─── Compare table ────────────────────────────────────────────────────── */
.atArchetype-compare {
  padding: 96px 48px 96px;
  background: var(--atArchetype-page-bg);
}
.atArchetype-compare-head {
  max-width: 760px;
  margin: 0 auto 48px;
}
.atArchetype-compare-wrap {
  max-width: 1240px;
  margin: 0 auto;
  border: 1px solid var(--atArchetype-rule);
  border-radius: var(--atArchetype-radius-lg);
  overflow: hidden;
  background: var(--atArchetype-card-bg);
}
.atArchetype-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.atArchetype-compare-table thead th {
  background: var(--atArchetype-paper-bg);
  font-family: var(--atArchetype-font-sans);
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--atArchetype-text);
  font-weight: 600;
  text-align: center;
  padding: 16px 14px;
  border-bottom: 1px solid var(--atArchetype-rule);
  position: sticky;
  top: 0;
}
.atArchetype-compare-table thead th.atArchetype-compare-row-label,
.atArchetype-compare-table tbody th.atArchetype-compare-row-label {
  text-align: left;
  width: 30%;
  min-width: 200px;
}
.atArchetype-compare-group th {
  font-family: var(--atArchetype-font-serif);
  font-style: italic;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  padding: 18px 18px 10px;
  color: var(--atArchetype-accent);
  background: oklch(0.97 0.018 var(--realm-hue));
  border-top: 1px solid var(--atArchetype-rule-soft);
  border-bottom: 1px solid var(--atArchetype-rule-soft);
  letter-spacing: 0;
  text-transform: none;
}
.atArchetype-compare-table tbody th.atArchetype-compare-row-label {
  font-weight: 500;
  font-size: 14px;
  color: var(--atArchetype-text);
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--atArchetype-rule-soft);
  background: transparent;
  text-transform: none;
  letter-spacing: 0;
}
.atArchetype-compare-table tbody td {
  text-align: center;
  padding: 14px 14px;
  color: var(--atArchetype-text);
  border-bottom: 1px solid var(--atArchetype-rule-soft);
}
.atArchetype-compare-table tbody td.is-dash {
  color: var(--atArchetype-text-dim);
}
.atArchetype-compare-table tbody tr:last-child th,
.atArchetype-compare-table tbody tr:last-child td {
  border-bottom: 0;
}

/* ─── FAQ ──────────────────────────────────────────────────────────────── */
.atArchetype-faq {
  padding: 96px 48px 120px;
  background: var(--atArchetype-page-bg);
}
.atArchetype-faq-head {
  max-width: 760px;
  margin: 0 auto 48px;
}
.atArchetype-faq-list {
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--atArchetype-rule-soft);
}
.atArchetype-faq-item {
  border-bottom: 1px solid var(--atArchetype-rule-soft);
}
.atArchetype-faq-question {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 4px;
  cursor: pointer;
  font-family: var(--atArchetype-font-serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--atArchetype-text);
  transition: var(--atArchetype-transition);
}
.atArchetype-faq-question::-webkit-details-marker {
  display: none;
}
.atArchetype-faq-question:hover {
  color: var(--atArchetype-accent);
}
.atArchetype-faq-marker {
  font-family: var(--atArchetype-font-sans);
  font-size: 22px;
  color: var(--atArchetype-text-dim);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 200ms ease;
}
.atArchetype-faq-item[open] .atArchetype-faq-marker {
  transform: rotate(45deg);
  color: var(--atArchetype-accent);
}
.atArchetype-faq-answer {
  padding: 0 4px 26px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--atArchetype-text-muted);
  max-width: 70ch;
}

/* ─── Mobile (≤768px) — new sections ───────────────────────────────────── */
@media (max-width: 768px) {
  .atArchetype-hero-meta {
    grid-template-columns: 1fr;
    margin-top: 36px;
    padding: 18px 20px;
  }
  .atArchetype-billing-toggle {
    margin-top: 22px;
  }
  .atArchetype-pricing-positioning {
    font-size: 15px;
  }
  .atArchetype-addons {
    margin-top: 56px;
    padding-top: 40px;
  }
  .atArchetype-addons-grid {
    grid-template-columns: 1fr;
  }
  .atArchetype-compare {
    padding: 64px 0 64px;
  }
  .atArchetype-compare-head {
    padding: 0 20px;
  }
  .atArchetype-compare-wrap {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }
  .atArchetype-compare-table thead th,
  .atArchetype-compare-table tbody th.atArchetype-compare-row-label,
  .atArchetype-compare-table tbody td {
    padding: 12px 10px;
    font-size: 12.5px;
  }
  .atArchetype-compare-table tbody th.atArchetype-compare-row-label {
    min-width: 140px;
    width: 40%;
  }
  .atArchetype-faq {
    padding: 64px 20px 80px;
  }
  .atArchetype-faq-question {
    font-size: 17px;
    padding: 18px 4px;
  }
  .atArchetype-faq-answer {
    font-size: 14.5px;
  }
}

/* ─── Smell-lines hero decoration ──────────────────────────────────────── */
.atArchetype-hero {
  position: relative;
  overflow: hidden;
}
.atArchetype-hero-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}
.atArchetype-smell-lines {
  width: 100%;
  height: 100%;
  display: block;
}
.atArchetype-hero-inner {
  position: relative;
  z-index: 1;
}
/* Dark mode: smell lines are the primary decoration; the warm radial behind the
   hero (light mode) clashes with the dark paper, so we drop it. */
html.dark .atArchetype-hero::before {
  display: none;
}
html.dark .atArchetype-hero-lines {
  opacity: 0.7;
}

/* ─── Smell-divider between sections ───────────────────────────────────── */
.atArchetype-smell-divider-wrap {
  background: var(--atArchetype-paper-bg);
  border-top: 1px solid var(--atArchetype-rule-soft);
  border-bottom: 1px solid var(--atArchetype-rule-soft);
  padding: 16px 0;
}
.atArchetype-smell-divider-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 48px;
}
.atArchetype-smell-divider {
  display: block;
  width: 100%;
  height: 32px;
  overflow: visible;
}

/* ─── Tri-part mono section label ──────────────────────────────────────── */
.atArchetype-mono-label {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--atArchetype-font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--atArchetype-text-dim);
  margin-bottom: 22px;
}
.atArchetype-mono-label > span:first-child {
  color: var(--atArchetype-accent);
  white-space: nowrap;
}
.atArchetype-mono-label > span:last-child {
  white-space: nowrap;
}
.atArchetype-mono-label-line {
  flex: 1;
  height: 1px;
  background: var(--atArchetype-rule);
}

/* ─── Dark-mode header / cta touch-ups ─────────────────────────────────── */
html.dark .atArchetype-header {
  background: oklch(0.17 0.018 var(--realm-hue) / 0.85);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--atArchetype-rule);
}
html.dark .atArchetype-cta-secondary:hover {
  background: oklch(0.24 0.025 var(--realm-hue));
}
html.dark .atArchetype-plan,
html.dark .atArchetype-addon,
html.dark .atArchetype-compare-wrap {
  background: var(--atArchetype-card-bg);
  border-color: var(--atArchetype-rule);
}
html.dark .atArchetype-plan.is-featured {
  background: oklch(0.24 0.045 var(--realm-hue));
  border-color: var(--atArchetype-accent);
  box-shadow: 0 0 0 1px var(--atArchetype-accent), 0 18px 36px -22px oklch(0.85 0.18 117 / 0.45);
}
html.dark .atArchetype-plan-cta.is-outline {
  border-color: var(--atArchetype-rule);
}
html.dark .atArchetype-plan-cta.is-outline:hover {
  background: oklch(0.25 0.025 var(--realm-hue));
  border-color: var(--atArchetype-text-dim);
}
html.dark .atArchetype-plan-cta.is-solid:hover {
  background: oklch(0.84 0.22 117);
}
html.dark .atArchetype-billing-tab.is-active {
  background: var(--atArchetype-accent);
  color: var(--atArchetype-accent-on);
}
html.dark .atArchetype-billing-savings {
  background: oklch(0.30 0.06 var(--realm-hue));
  color: var(--atArchetype-accent);
}
html.dark .atArchetype-compare-table thead th {
  background: var(--atArchetype-paper-bg);
  color: var(--atArchetype-text);
}
html.dark .atArchetype-compare-group th {
  background: oklch(0.20 0.022 var(--realm-hue));
  color: var(--atArchetype-accent);
}
html.dark .atArchetype-compare-table tbody th.atArchetype-compare-row-label {
  color: var(--atArchetype-text);
}
html.dark .atArchetype-compare-table tbody td {
  color: var(--atArchetype-text);
}
html.dark .atArchetype-faq-marker {
  color: var(--atArchetype-text-dim);
}
html.dark .atArchetype-plan-projects {
  background: oklch(0.20 0.022 var(--realm-hue));
  border-color: var(--atArchetype-rule);
  color: var(--atArchetype-accent);
}

@media (max-width: 768px) {
  .atArchetype-smell-divider-inner {
    padding: 0 20px;
  }
  .atArchetype-mono-label {
    flex-wrap: wrap;
    gap: 10px;
  }
  .atArchetype-mono-label-line {
    display: none;
  }
}

/* ─── Atelier in the app zone — sidebar decoration ─────────────────────
   Renders inside BbSidebarFooter (above the trigger) for Atelier realms.
   Wave tokens derive from --atArchetype-sidebar-bg so they always read as a
   ladder of lighter wisps against whatever sidebar bg is in effect. */
.atArchetype-sidebar-smell {
  --atArchetype-wave-1: oklch(from var(--atArchetype-sidebar-bg) calc(l + 0.08) calc(c * 1.0) h);
  --atArchetype-wave-2: oklch(from var(--atArchetype-sidebar-bg) calc(l + 0.16) calc(c * 1.2) h);
  --atArchetype-wave-3: oklch(from var(--atArchetype-sidebar-bg) calc(l + 0.26) calc(c * 1.4) h);
  --atArchetype-wave-4: oklch(from var(--atArchetype-sidebar-bg) calc(l + 0.36) calc(c * 1.5) h);
  --atArchetype-accent: oklch(from var(--atArchetype-sidebar-bg) calc(l + 0.51) calc(c * 1.7) h);

  position: relative;
  height: 36px;
  margin: 0 -8px 8px;
  padding: 0 12px;
  overflow: hidden;
  opacity: 0.9;
}
.atArchetype-sidebar-smell svg {
  width: 100%;
  height: 100%;
  display: block;
}
/* When the sidebar collapses to icons-only, hide the decoration to avoid clipping. */
[data-state="collapsed"] .atArchetype-sidebar-smell,
[data-collapsible="icon"][data-state="collapsed"] .atArchetype-sidebar-smell {
  display: none;
}

/* The brand-mark inside the sidebar header sits on the same olive bg — give its
   waves a derived lighter palette so the icon stays legible without hardcoding. */
.bg-sidebar .atArchetype-brand-mark {
  --atArchetype-wave-3: oklch(from var(--atArchetype-sidebar-bg) calc(l + 0.36) calc(c * 0.7) h);
  --atArchetype-accent: oklch(from var(--atArchetype-sidebar-bg) calc(l + 0.51) calc(c * 1.7) h);
}

/* ─── Zen moment — "mmm... smell that code" ────────────────────────────
   Small contemplative block: portrait illustration + serif italic quote.
   Three variants tune the size for different placements:
     .atArchetype-zen--default     home-page section (illustration + quote)
     .atArchetype-zen--compact     404 / empty states (smaller, tighter)
     .atArchetype-zen--quote-only  footer / tight spots (quote only) */
.atArchetype-zen {
  padding: 112px 48px;
  background: var(--atArchetype-paper-bg);
  border-top: 1px solid var(--atArchetype-rule-soft);
  border-bottom: 1px solid var(--atArchetype-rule-soft);
}
.atArchetype-zen-inner {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  align-items: center;
  gap: 56px;
}
.atArchetype-zen-illustration {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
}
.atArchetype-zen-quote {
  margin: 0;
  border: 0;
  padding: 0;
}
.atArchetype-zen-quote p {
  font-family: var(--atArchetype-font-serif);
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.022em;
  font-style: italic;
  font-weight: 400;
  color: var(--atArchetype-text);
  margin: 0;
}
.atArchetype-zen-dots {
  color: var(--atArchetype-accent);
  letter-spacing: 0.04em;
  font-style: normal;
}

/* Compact: smaller block for 404 and empty states. Tighter padding,
   smaller illustration column, smaller quote. */
.atArchetype-zen--compact {
  padding: 56px 32px;
  background: transparent;
  border: 0;
}
.atArchetype-zen--compact .atArchetype-zen-inner {
  max-width: 640px;
  grid-template-columns: 200px 1fr;
  gap: 36px;
}
.atArchetype-zen--compact .atArchetype-zen-illustration {
  max-width: 200px;
}
.atArchetype-zen--compact .atArchetype-zen-quote p {
  font-size: 28px;
  letter-spacing: -0.018em;
}

/* Quote-only: just the italic line, no illustration column. Used inline
   in tight surfaces (footer above the imprint, etc.). */
.atArchetype-zen--quote-only {
  padding: 0;
  background: transparent;
  border: 0;
}
.atArchetype-zen--quote-only .atArchetype-zen-inner {
  display: block;
  max-width: none;
  text-align: center;
}
.atArchetype-zen--quote-only .atArchetype-zen-quote p {
  font-size: 18px;
  letter-spacing: -0.012em;
}

@media (max-width: 768px) {
  .atArchetype-zen {
    padding: 64px 20px;
  }
  .atArchetype-zen-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .atArchetype-zen-illustration {
    max-width: 240px;
    margin: 0 auto;
  }
  .atArchetype-zen-quote p {
    font-size: 32px;
  }
  .atArchetype-zen--compact {
    padding: 32px 20px;
  }
  .atArchetype-zen--compact .atArchetype-zen-illustration {
    max-width: 160px;
  }
  .atArchetype-zen--compact .atArchetype-zen-quote p {
    font-size: 22px;
  }
  .atArchetype-zen--quote-only .atArchetype-zen-quote p {
    font-size: 16px;
  }
}
