/**
 * ProSocial Campaign Simulator — component styles
 * assets/css/simulator.css
 *
 * ─── Why this preamble exists ─────────────────────────────────
 *
 * As a theme partial this stylesheet reached outside itself. It used
 * seventeen design tokens defined in 00-tokens.css, plus .container and
 * the base .btn from 03-layout.css — and several of those tokens
 * resolved to further tokens, so the real dependency closure was
 * twenty-eight custom properties across two files.
 *
 * That is fine inside one theme and fatal in a plugin, which is the
 * whole point of the port: the moment the shortcode lands on a page
 * that does not load 00-tokens.css, or the theme is ever swapped, every
 * one of those var() lookups resolves to nothing and the component
 * renders unstyled.
 *
 * So the closure is redeclared below, scoped to .intelligence-section,
 * with the exact ProSocial values. Nothing here leaks out to the rest
 * of the page: a scoped custom property is inherited only by
 * descendants of the element that declares it.
 *
 * When the ProSocial theme IS present these values are identical to the
 * theme's, so nothing changes visually. When it is not, the component
 * still looks like itself. That is the property worth having.
 *
 * If a ProSocial brand colour is ever changed in 00-tokens.css, change
 * it here too — this file is deliberately independent, which means it
 * does not follow along automatically.
 * ────────────────────────────────────────────────────────────── */

.intelligence-section {
  /* Surfaces */
  --color-bg-white:     #FFFFFF;
  --color-band:         #1B2A4A;

  /* Text */
  --color-text-body:    #3B4759;
  --color-text-muted:   #78879B;

  /* Accents */
  --color-action:       #C45C26;
  --color-action-hover: #A84D1F;
  --color-support:      #C9963E;

  /* Typography */
  --font-heading: 'Outfit', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --nav-link-size: 0.9375rem;
  --weight-medium: 500;

  /* Spacing — the scale entries this component actually reaches for */
  --space-2:  0.5rem;
  --space-4:  1rem;
  --space-8:  2rem;
  --space-20: 5rem;

  /* Layout */
  --container-max:   1440px;
  --container-wide:  1280px;
  --container:       var(--container-max);
  --section-pad-x:   var(--space-8);
  --section-x:       var(--section-pad-x);
  --section-pad-y:   var(--space-20);

  /* Radius */
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-full: 9999px;

  /* Elevation */
  --shadow-sm: 0 2px 8px rgba(19, 30, 54, 0.07), 0 1px 3px rgba(19, 30, 54, 0.05);
  --shadow-md: 0 4px 16px rgba(19, 30, 54, 0.08), 0 2px 6px rgba(19, 30, 54, 0.05);

  /* Motion */
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* The theme narrows horizontal padding on smaller screens. Mirrored so
   the component breathes the same way without 00-tokens.css present. */
@media (max-width: 1024px) {
  .intelligence-section { --section-pad-x: 1.5rem; }
}

@media (max-width: 768px) {
  .intelligence-section {
    --section-pad-x: 1.25rem;
    --section-pad-y: 3.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intelligence-section {
    --duration-fast: 0ms;
    --duration-base: 0ms;
  }
}

/* .container and the base .btn come from the theme's 03-layout.css.
   Redeclared scoped, which also raises specificity above the theme's
   bare selectors — so the component renders identically whether or not
   a theme is styling those class names, instead of inheriting whatever
   a host theme happens to do to a .btn. */
/* The site nav is fixed and 64px tall, so a scroll that lands the card
   at the very top of the viewport puts its header underneath it. */
.intelligence-section #psi-simulator { scroll-margin-top: 96px; }

.intelligence-section .container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--section-x);
}

.intelligence-section .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-heading);
  font-size: var(--nav-link-size);
  font-weight: var(--weight-medium);
  letter-spacing: 0.02em;
  line-height: 1;
  border: 1.5px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition:
    background   var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    transform    var(--duration-fast) var(--ease-out),
    box-shadow   var(--duration-base) var(--ease-out);
}

.intelligence-section .btn:focus-visible {
  outline: 2px solid var(--color-action);
  outline-offset: 2px;
}

/* ══════════════════════════════════════════════════════════════
   Component styles below are carried over unchanged.
   ══════════════════════════════════════════════════════════════ */

 *
 * SCOPING
 * Selectors unique to the engine (.sim-, .intelligence-, .cap-) are
 * left alone. Generic ones the old theme shared with the rest of the
 * site, such as .container and .btn, are prefixed with
 * .intelligence-section, so the old 1200px container and the old
 * button styles cannot leak onto the pages this file loads on.
 *
 * MEDIA QUERIES
 * Media blocks are extracted before the flat pass. Without that, rules
 * nested inside a breakpoint get read as top level rules, which is how
 * the mobile single column grid and the mobile only teaser ended up
 * applying on desktop.
 *
 * TOKEN MAPPING
 *   --navy       -> --color-band          --orange    -> --color-action
 *   --gold       -> --color-support       --white     -> --color-bg-white
 *   --body-text  -> --color-text-body     --mid-gray  -> --color-text-muted
 *   --font-head  -> --font-heading        --font-body -> --font-heading
 *   --radius 8   -> --radius-md 12        --radius-lg -> --radius-lg 20
 *   --max-width  -> --container-wide      100px pill  -> --radius-full
 *   --transition -> --duration-base --ease-out
 *
 * --font-body maps to the heading face deliberately. The old body font
 * was Inter, a sans, so the engine inherited sans without asking. Here
 * it is Source Serif 4, and a serif has no business in a control panel.
 */

/* -------------------------------------------------
   NEW THEME OVERRIDES
   -------------------------------------------------
   The new typography layer sets things the old theme never did. The
   descendant star on font-family is required, because 02-typography
   sets font-family directly on p and a direct rule beats inheritance.
   The heading max-width from 02-typography would also crop the section
   headline, which had no max-width originally.
   ------------------------------------------------- */

.intelligence-section,
.intelligence-section * {
  font-family: var(--font-heading);
}

.intelligence-section h1,
.intelligence-section h2,
.intelligence-section h3,
.intelligence-section h4,
.intelligence-section p {
  max-width: none;
}

.intelligence-section p:not(.sim-card p):not(.sim-tiktok-note),
.intelligence-section li {
  color: var(--color-text-body);
}
.cap-desc { color: var(--color-text-body); }
.sim-card p,
.sim-card li,
.sim-card span:not(.sim-channel):not(.btn),
.sim-intro p,
.sim-executive-summary,
.sim-analyzing-phase,
.sim-upsell-distinction,
.sim-limited p { color: rgba(255,255,255,0.7) !important; }
.sim-card h3,
.sim-analyzing-label,
.sim-budget-display,
.sim-limited h3 { color: var(--color-bg-white) !important; }
.sim-field-label,
.sim-label,
.sim-slider-range span { color: rgba(255,255,255,0.45) !important; }
.sim-tiktok-note { color: rgba(201,150,62,0.95) !important; }
.intelligence-section .container {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 2rem;
}
.intelligence-section .fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.intelligence-section .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.intelligence-section .fade-in-delay-1 { transition-delay: 0.1s; }
.intelligence-section .fade-in-delay-2 { transition-delay: 0.2s; }
.intelligence-section .fade-in-delay-3 { transition-delay: 0.3s; }
.intelligence-section .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--duration-base) var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
}
.intelligence-section .btn-primary {
  background: var(--color-action);
  color: var(--color-bg-white);
  border-color: var(--color-action);
}
.intelligence-section .btn-primary:hover {
  background: var(--color-action-hover);
  border-color: var(--color-action-hover);
  color: var(--color-bg-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196,92,38,0.35);
}
.intelligence-section {
  background: var(--color-bg-white);
  padding: var(--section-pad-y) 0 80px;
  position: relative;
}
.intelligence-header {
  text-align: center;
  margin-bottom: 3rem;
}
.intelligence-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(196,92,38,0.08);
  border: 1px solid rgba(196,92,38,0.25);
  border-radius: var(--radius-full);
  padding: 0.4rem 1rem;
  margin-bottom: 1.25rem;
}
.intelligence-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-action);
  animation: psi-pulse 2s ease-in-out infinite;
}
.intelligence-badge span {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-action);
  font-weight: 700;
}
.intelligence-header h2 {
  color: var(--color-band);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 0.875rem;
}
.intelligence-header h2 span { color: var(--color-action); }
.intelligence-header p {
  color: var(--color-text-body);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}
.intelligence-caps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}
.cap-card {
  background: var(--color-bg-white);
  border: 1px solid rgba(27,42,74,0.1);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  transition: all var(--duration-base) var(--ease-out);
  box-shadow: var(--shadow-sm);
}
.cap-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(196,92,38,0.25);
}
.cap-icon {
  width: 44px; height: 44px;
  background: rgba(196,92,38,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.cap-icon svg {
  width: 22px; height: 22px;
  stroke: var(--color-action);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cap-title {
  font-family: var(--font-heading);
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--color-band);
  margin-bottom: 0.625rem;
  line-height: 1.3;
}
.cap-desc {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--color-text-body);
  line-height: 1.7;
  margin: 0;
}
.sim-teaser {
  display: none; /* shown only on mobile via breakpoint */
  padding: 0 0 2rem;
  text-align: center;
}
.sim-teaser-text {
  font-family: var(--font-heading);
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--color-band);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}
.sim-teaser-link {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  font-style: italic;
  color: var(--color-action);
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-block;
  transition: opacity var(--duration-base) var(--ease-out);
}
.sim-teaser-link:hover {
  opacity: 0.75;
}
.sim-card {
  background: var(--color-band);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(27,42,74,0.25);
}
.sim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(0,0,0,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-wrap: wrap;
  gap: 1rem;
}
.sim-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.sim-pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-action);
  animation: psi-pulse 2s ease-in-out infinite;
}
.sim-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.sim-metrics {
  display: flex;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.sim-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 1.25rem;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.sim-metric:last-child { border-right: none; }
.sim-metric-val {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-bg-white);
  line-height: 1.2;
}
.sim-metric-lbl {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin-top: 0.15rem;
}
.sim-body { padding: 2rem 2rem 2.5rem; }
.sim-intro p {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 640px;
}
.sim-field-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.5rem;
}
.sim-field-full { margin-bottom: 1.5rem; }
.sim-field-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.sim-budget-display {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-bg-white);
}
.sim-budget-mo {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255,255,255,0.4);
  margin-left: 0.2rem;
}
.sim-slider {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  padding: 0;
  margin: 8px 0;
}
.sim-slider::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
}
.sim-slider::-moz-range-track {
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  border: none;
}
.sim-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--color-action);
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(196,92,38,0.25);
  transition: box-shadow var(--duration-base) var(--ease-out);
}
.sim-slider::-webkit-slider-thumb:hover { box-shadow: 0 0 0 6px rgba(196,92,38,0.3); }
.sim-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-action);
  border: none;
  cursor: pointer;
}
.sim-slider-range {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
}
.sim-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.sim-channel {
  font-family: var(--font-heading);
  font-size: 0.825rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(255,255,255,0.15);
  background: transparent;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
}
.sim-channel:hover {
  border-color: rgba(255,255,255,0.35);
  color: var(--color-bg-white);
}
.sim-channel.active {
  background: var(--color-action);
  border-color: var(--color-action);
  color: var(--color-bg-white);
}
.sim-tiktok-note {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: rgba(201,150,62,0.9);
  background: rgba(201,150,62,0.08);
  border: 1px solid rgba(201,150,62,0.2);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-top: 0.75rem;
  line-height: 1.6;
}
.sim-fields-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.sim-select {
  width: 100%;
  padding: 0.7rem 0.875rem;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  color: var(--color-bg-white);
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  transition: border-color var(--duration-base) var(--ease-out);
}
.sim-select:focus { border-color: var(--color-action); }
.sim-select option { background: var(--color-band); color: var(--color-bg-white); }
.sim-run-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2.5rem;
  background: var(--color-action);
  color: var(--color-bg-white);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
}
.sim-run-btn:hover:not(:disabled) {
  background: var(--color-action-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196,92,38,0.4);
}
.sim-run-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}
.sim-hint {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  margin-top: 0.75rem;
  transition: opacity 0.3s;
}
.sim-analyzing {
  padding: 4rem 2rem;
  text-align: center;
}
.sim-spinner {
  display: inline-block;
  margin-bottom: 1.5rem;
}
.sim-analyzing-label {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-bg-white);
  margin-bottom: 0.5rem;
}
.sim-analyzing-phase {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  transition: opacity 0.4s;
}
.sim-results { padding: 2rem; }
.sim-result-header { margin-bottom: 1.75rem; }
.sim-result-badges {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.sim-result-tag {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-action);
  background: rgba(196,92,38,0.12);
  border: 1px solid rgba(196,92,38,0.25);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}
.sim-confidence-tag {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid;
}
.sim-executive-summary {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin: 0;
}
.sim-scenario-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.sim-tab {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(255,255,255,0.15);
  background: transparent;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
}
.sim-tab:hover { border-color: rgba(255,255,255,0.3); color: var(--color-bg-white); }
.sim-tab.active {
  background: var(--color-action);
  border-color: var(--color-action);
  color: var(--color-bg-white);
}
.sim-insights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}
.sim-upsell {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 0;
}
.sim-upsell-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.sim-upsell-divider::before,
.sim-upsell-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}
.sim-upsell-divider span {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
}
.sim-upsell-distinction {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.sim-upsell-distinction strong {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}
.sim-upsell .sim-upsell-distinction { margin-bottom: 1.25rem; }
.sim-email-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  max-width: 420px;
}
.sim-email-input {
  flex: 1;
  padding: 0.6rem 0.875rem;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  color: var(--color-bg-white);
  outline: none;
}
.sim-email-input::placeholder { color: rgba(255,255,255,0.3); }
.sim-email-input:focus { border-color: rgba(255,255,255,0.3); }
.sim-email-btn {
  padding: 0.6rem 1.25rem;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-bg-white);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
}
.sim-email-btn:hover { background: rgba(255,255,255,0.18); }
/* -------------------------------------------------
   CENTERED PANEL ALIGNMENT
   -------------------------------------------------
   .sim-limited centers its text but .sim-ctas is a flex row, and
   text-align does not move flex children. In the previous theme the
   buttons sat left under centered copy. Not a porting artefact, it was
   the same there, so this is a correction rather than a restoration.

   Scoped to the limited panel only. The results panel is left aligned
   on purpose and its button row should stay left.
   ------------------------------------------------- */

.sim-limited .sim-ctas {
  justify-content: center;
}

.sim-limited .sim-ctas .btn,
.sim-limited .sim-ctas a {
  min-width: 220px;
  justify-content: center;
}


.sim-ctas {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
}
.intelligence-section .btn-outline-white-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.925rem;
  font-weight: 600;
  border: 1.5px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.8);
  background: transparent;
  transition: all var(--duration-base) var(--ease-out);
  text-decoration: none;
}
.intelligence-section .btn-outline-white-dark:hover {
  border-color: rgba(255,255,255,0.5);
  color: var(--color-bg-white);
  background: rgba(255,255,255,0.05);
}
.sim-limited {
  padding: 3.5rem 2rem;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}
.sim-limited h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-bg-white);
  margin: 1.25rem 0 0.75rem;
}
.sim-limited p {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.sim-limited-timer {
  color: var(--color-action) !important;
  font-weight: 600 !important;
}
.cap-desc {
  color: var(--color-text-muted);
}
.intelligence-section {
  padding-bottom: 0;
}
.intelligence-caps {
  margin-bottom: 2.5rem;
}

@media (max-width: 1024px) {
.intelligence-caps { grid-template-columns: repeat(2, 1fr); }
.sim-fields-grid { grid-template-columns: repeat(2, 1fr); }
.sim-insights { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
.intelligence-section .container { display: flex; flex-direction: column; }
.intelligence-header { order: 1; }
.sim-teaser { order: 2; }
.sim-card { order: 3; }
.intelligence-caps { order: 4; }
.intelligence-caps { grid-template-columns: 1fr; margin-top: 2rem; }
.sim-teaser { display: block; }
.sim-header { flex-direction: column; align-items: flex-start; }
.sim-metrics { display: none; }
.sim-fields-grid { grid-template-columns: 1fr 1fr; }
.sim-insights { grid-template-columns: 1fr; }
.sim-ctas { flex-direction: column; }
.sim-ctas .btn { width: 100%; justify-content: center; }
.sim-email-row { flex-direction: column; max-width: 100%; }
}
@media (max-width: 480px) {
.intelligence-section .container { padding: 0 1.25rem; }
.sim-fields-grid { grid-template-columns: 1fr; }
.sim-channels { gap: 0.375rem; }
.sim-channel { font-size: 0.775rem; padding: 0.4rem 0.75rem; }
}
@media (max-width: 768px) {
.cap-desc {
    font-size: 0.9rem;
  }
.sim-field-label {
    font-size: 0.85rem;
  }
.sim-slider {
    height: 4px;
    padding: 12px 0;
    background-clip: content-box;
  }
.sim-slider::-webkit-slider-runnable-track {
    height: 4px;
  }
}

/* -------------------------------------------------
   FIELD WRAPPERS
   -------------------------------------------------
   .sim-fields is the input block inside the dark card.
   .sim-field is one cell of .sim-fields-grid, which owns the
   columns, so the cell only needs to stack its own label and
   control.
   ------------------------------------------------- */

.sim-fields { margin-bottom: 1.75rem; }

.sim-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* -------------------------------------------------
   SCENARIO PANELS
   -------------------------------------------------
   .sim-scenario-tabs above, one panel per scenario below. Panels are
   written by simulator.js after a run, so these rules have to exist
   before any markup does. Only the panel matching the active tab is
   shown; the rest stay in the DOM so switching tabs costs nothing.
   ------------------------------------------------- */

.sim-scenarios { margin-bottom: 1.75rem; }

.sim-scenario-panels {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.sim-scenario-panel { display: none; padding: 1.25rem 1.5rem; }
.sim-scenario-panel.active { display: block; }

.sim-scenario-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45) !important;
  margin-bottom: 0.9rem;
}

.sim-scenario-metrics { display: flex; flex-direction: column; }

.sim-metric-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.sim-metric-row:last-child { border-bottom: none; }

.sim-metric-row-label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55) !important;
}

.sim-metric-row-val {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-bg-white) !important;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------
   INSIGHT CARDS
   -------------------------------------------------
   Three cards in the .sim-insights grid, also written by the script.
   ------------------------------------------------- */

.sim-insight-card {
  display: flex;
  gap: 0.85rem;
  padding: 1.1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
}

.sim-insight-icon {
  flex-shrink: 0;
  color: var(--color-action);
  line-height: 0;
  padding-top: 0.1rem;
}

.sim-insight-label {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45) !important;
  margin-bottom: 0.35rem;
}

.sim-insight-text {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.7) !important;
}

/* -------------------------------------------------
   CONFIDENCE TAG
   -------------------------------------------------
   .sim-confidence-tag sets the shape and declares border-color from
   the color property, so each level only supplies a hue.
   ------------------------------------------------- */

.sim-conf-high   { color: #6FCF97; border-color: rgba(111,207,151,0.4); background: rgba(111,207,151,0.08); }
.sim-conf-medium { color: var(--color-support); border-color: rgba(201,150,62,0.4); background: rgba(201,150,62,0.08); }
.sim-conf-low    { color: #E4A08A; border-color: rgba(228,160,138,0.4); background: rgba(228,160,138,0.08); }

@media (max-width: 768px) {
  .sim-scenario-panel { padding: 1rem 1.1rem; }
  .sim-insight-card { padding: 0.9rem; }
  .sim-metric-row { padding: 0.5rem 0; }
}