/* Social Pulse — vibrant social-marketing palette (not Portico)
   Base: deep violet-black
   Accents: magenta #ff2d95, violet #8b5cf6, electric blue #3b82f6, coral #ff6b4a
*/

:root {
  --bg: #0b0614;
  --bg-elevated: #140a22;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f5f0ff;
  --text-muted: #b7a9d4;
  --magenta: #ff2d95;
  --violet: #8b5cf6;
  --blue: #3b82f6;
  --coral: #ff6b4a;
  --cyan: #22d3ee;
  --gradient: linear-gradient(135deg, var(--magenta), var(--violet) 45%, var(--blue));
  --gradient-soft: linear-gradient(135deg, rgba(255, 45, 149, 0.25), rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.2));
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --display: "Outfit", var(--font);
  --header-h: 4.25rem;
  --container: 72rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #fff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--magenta);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  z-index: 1000;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  backdrop-filter: blur(16px);
  background: rgba(11, 6, 20, 0.75);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.55rem;
  background: var(--gradient);
  box-shadow: 0 0 20px rgba(255, 45, 149, 0.45);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.4rem;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.85rem 1.4rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 8px 28px rgba(255, 45, 149, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 12px 36px rgba(139, 92, 246, 0.45);
  color: #fff;
}

.btn-ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

/* Hero */
.hero {
  position: relative;
  padding: 4.5rem 0 5rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 45, 149, 0.35), transparent 55%),
    radial-gradient(ellipse at 70% 10%, rgba(59, 130, 246, 0.3), transparent 50%),
    radial-gradient(ellipse at 50% 60%, rgba(139, 92, 246, 0.25), transparent 55%);
  pointer-events: none;
  filter: blur(8px);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffc2e2;
  background: rgba(255, 45, 149, 0.15);
  border: 1px solid rgba(255, 45, 149, 0.35);
}

h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  background: linear-gradient(180deg, #fff 30%, #d4c4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.lede {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 0 1.5rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 0;
  margin: 0 0 0.75rem;
}

.hero-stats li {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.hero-stats strong {
  display: block;
  font-family: var(--display);
  font-size: 1.35rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-stats span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cite {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0;
}

.cite a {
  color: var(--text-muted);
}

.cite a:hover {
  color: var(--cyan);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.pulse-card {
  position: relative;
  width: min(100%, 22rem);
  aspect-ratio: 1;
  border-radius: 2rem;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.pulse-ring {
  position: absolute;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(255, 45, 149, 0.5);
  animation: pulse 3s var(--ease) infinite;
}

.pulse-ring.delay {
  animation-delay: 1s;
  border-color: rgba(59, 130, 246, 0.5);
  width: 75%;
}

@keyframes pulse {
  0% {
    transform: scale(0.85);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.platform-chips {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 1.5rem;
}

.chip {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(11, 6, 20, 0.7);
  border: 1px solid var(--border);
  color: var(--text);
}

.chip.fb { border-color: #3b82f6; }
.chip.ig { border-color: #ff2d95; }
.chip.yt { border-color: #ff6b4a; }
.chip.tt { border-color: #22d3ee; }
.chip.wa { border-color: #34d399; }
.chip.sc { border-color: #facc15; }

.pulse-caption {
  position: absolute;
  bottom: 1.25rem;
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  z-index: 1;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(20, 10, 34, 0.6), transparent);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-sub {
  color: var(--text-muted);
  margin: 0;
  font-size: 1.05rem;
}

/* Platforms */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.platform-card {
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}

.platform-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 45, 149, 0.35);
  transform: translateY(-3px);
}

.platform-rank {
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--magenta);
  margin-bottom: 0.5rem;
}

.mau {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.25rem 0 0.5rem;
}

.mau span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.platform-card p:last-child {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Why */
.why-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.why-card,
.feature-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.why-card p,
.feature-card p {
  color: var(--text-muted);
  margin: 0.5rem 0 0;
}

.icon-blob {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 0.75rem;
  margin-bottom: 0.85rem;
  background: var(--gradient);
  font-size: 1rem;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.price-card {
  position: relative;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  background: linear-gradient(160deg, rgba(255, 45, 149, 0.18), rgba(59, 130, 246, 0.12));
  border-color: rgba(255, 45, 149, 0.45);
  box-shadow: 0 16px 40px rgba(255, 45, 149, 0.2);
  transform: scale(1.03);
}

.badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
}

.price {
  font-family: var(--display);
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0.5rem 0 1rem;
}

.price .currency {
  font-size: 1.25rem;
  vertical-align: super;
}

.price .period {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1;
}

.price-card li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.55rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--gradient);
}

.price-card .btn {
  margin-top: auto;
}

/* Signup */
.signup-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  padding: 2rem;
  border-radius: calc(var(--radius-lg) + 0.25rem);
  background: var(--gradient-soft);
  border: 1px solid var(--border);
}

.signup-form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: rgba(11, 6, 20, 0.75);
  border: 1px solid var(--border);
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-size: 0.875rem;
  font-weight: 600;
}

.field input,
.field select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
}

.field input::placeholder {
  color: #7a6b96;
}

.field input.is-invalid,
.field select.is-invalid {
  border-color: var(--coral);
}

.checkbox-field label {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.checkbox-field input {
  width: auto;
  margin-top: 0.2rem;
  accent-color: var(--magenta);
}

.field-error {
  min-height: 1.1em;
  margin: 0;
  font-size: 0.8rem;
  color: var(--coral);
}

.form-note {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.form-success {
  padding: 1rem;
  border-radius: 0.75rem;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: #a5f3fc;
}

.form-success[hidden] {
  display: none;
}

.signup-form.is-success .field,
.signup-form.is-success .btn,
.signup-form.is-success .form-note,
.signup-form.is-success .checkbox-field {
  display: none;
}

/* Footer */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  background: #07040e;
}

.footer-inner {
  display: grid;
  gap: 1.25rem;
}

.footer-tag,
.footer-copy {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0.5rem 0 0;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-inner nav a {
  color: var(--text-muted);
  text-decoration: none;
}

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

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .signup-wrap,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .price-card.featured {
    transform: none;
  }

  .platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-visual {
    order: -1;
  }

  .pulse-card {
    width: min(100%, 18rem);
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: rgba(11, 6, 20, 0.96);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s;
  }

  .site-nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav .btn {
    width: 100%;
  }

  .hero-stats,
  .why-grid,
  .feature-grid,
  .platform-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Social Pulse Agent (Phase 1) ===== */
.agent-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--border);
}

.status-pill--live {
  background: rgba(34, 211, 238, 0.15);
  border-color: rgba(34, 211, 238, 0.45);
  color: #a5f3fc;
}

.status-pill--sample {
  background: rgba(255, 45, 149, 0.15);
  border-color: rgba(255, 45, 149, 0.4);
  color: #ffc2e2;
}

.agent-block {
  margin-top: 2.25rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.agent-block-head {
  margin-bottom: 1.25rem;
}

.agent-block-head--split {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-end;
}

.agent-block-head h3 {
  margin-bottom: 0.35rem;
}

.agent-block-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 40rem;
}

.agent-loading {
  color: var(--text-muted);
  margin: 0;
}

.trend-grid,
.caption-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.trend-card,
.caption-card {
  padding: 1.15rem;
  border-radius: var(--radius);
  background: rgba(11, 6, 20, 0.55);
  border: 1px solid var(--border);
  border-left: 3px solid var(--violet);
}

.trend-card.is-rising {
  border-left-color: var(--magenta);
}

.trend-card h4,
.caption-card h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-family: var(--display);
}

.trend-card p,
.caption-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.trend-meta,
.caption-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 0.5rem;
}

.mini-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #e9ddff;
}

.mini-chip.badge-rss { border-color: rgba(34, 211, 238, 0.45); background: rgba(34, 211, 238, 0.12); }
.mini-chip.badge-api { border-color: rgba(255, 45, 149, 0.45); background: rgba(255, 45, 149, 0.12); }
.mini-chip.badge-curated { border-color: rgba(250, 204, 21, 0.45); background: rgba(250, 204, 21, 0.1); color: #fde68a; }
.mini-chip.badge-sample {
  border-color: rgba(255, 107, 74, 0.5);
  background: rgba(255, 107, 74, 0.12);
  color: #fdba8c;
}

.er-bar {
  margin-top: 0.75rem;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.er-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gradient);
}

.er-label {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.heatmap-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.heatmap-controls label,
.tryit-platform {
  display: grid;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.heatmap-controls select,
.tryit-platform select,
.tryit-input textarea {
  padding: 0.55rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
}

.heatmap-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 1.25rem;
  align-items: start;
}

.heatmap-legend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.heatmap-legend-bar {
  width: 6rem;
  height: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #1a1225, var(--violet), var(--magenta));
}

.heatmap-confidence {
  margin-left: auto;
  font-weight: 600;
  color: #ffc2e2;
}

.heatmap-scroll {
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.heatmap {
  display: grid;
  grid-template-columns: 2.5rem repeat(24, minmax(0.7rem, 1fr));
  gap: 2px;
  min-width: 36rem;
}

.heatmap-corner,
.heatmap-hour,
.heatmap-dow {
  font-size: 0.65rem;
  color: var(--text-muted);
  display: grid;
  place-items: center;
}

.heatmap-cell {
  aspect-ratio: 1;
  min-height: 0.7rem;
  border-radius: 2px;
  background: #1a1225;
  border: 0;
  padding: 0;
  cursor: default;
}

.heatmap-cell:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
}

.heatmap-aside {
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(11, 6, 20, 0.55);
  border: 1px solid var(--border);
}

.heatmap-aside h4 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
}

.heatmap-aside ol {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.heatmap-aside li {
  margin-bottom: 0.45rem;
}

.tryit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.tryit-input {
  display: grid;
  gap: 0.6rem;
}

.tryit-input label[for="tryit-caption"] {
  font-size: 0.875rem;
  font-weight: 600;
}

.tryit-input textarea {
  width: 100%;
  min-height: 9rem;
  resize: vertical;
}

.tryit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
}

.tryit-output {
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(11, 6, 20, 0.55);
  border: 1px solid var(--border);
  min-height: 12rem;
}

.tryit-output .insight-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.tryit-output dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.75rem;
  font-size: 0.9rem;
}

.tryit-output dt {
  color: var(--text-muted);
}

.tryit-output dd {
  margin: 0;
  font-weight: 600;
}

.agent-trust {
  margin-top: 1.75rem;
}

@media (max-width: 960px) {
  .trend-grid,
  .caption-grid,
  .heatmap-layout,
  .tryit-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .trend-grid,
  .caption-grid {
    grid-template-columns: 1fr;
  }
}
