/* Matches v0 reference: MostlyStable landing (Geist-like stack, shadcn tokens) */
:root {
  --background: oklch(0.985 0.008 85);
  --foreground: oklch(0.28 0.02 45);
  --card: oklch(0.995 0.005 85);
  --muted: oklch(0.955 0.012 85);
  --muted-foreground: oklch(0.5 0.02 45);
  --accent: oklch(0.92 0.04 150);
  --primary: oklch(0.45 0.08 150);
  --primary-foreground: oklch(0.995 0.005 85);
  --border: oklch(0.92 0.01 85);
  --destructive: oklch(0.55 0.15 25);
  --secondary: oklch(0.965 0.015 85);
  --ring: oklch(0.45 0.08 150);
  --radius: 0.625rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    "Inter",
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* Layout */
.page {
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.max-w-5xl {
  max-width: 64rem;
}
.max-w-4xl {
  max-width: 56rem;
}
.max-w-3xl {
  max-width: 48rem;
}
.max-w-2xl {
  max-width: 42rem;
}
.max-w-xl {
  max-width: 36rem;
}
.max-w-lg {
  max-width: 32rem;
}
.max-w-md {
  max-width: 28rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.py-10 {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.pt-16 {
  padding-top: 4rem;
}
.pb-12 {
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  .md\:pt-24 {
    padding-top: 6rem;
  }
  .md\:pb-16 {
    padding-bottom: 4rem;
  }
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .md\:border-x {
    border-left-width: 1px;
    border-right-width: 1px;
  }
  .md\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .md\:flex {
    display: flex;
  }
  .md\:text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
  .md\:text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .lg\:text-5xl {
    font-size: 3rem;
    line-height: 1;
  }
}

@media (min-width: 640px) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sm\:flex-row {
    flex-direction: row;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 40%, transparent);
  background: color-mix(in oklab, var(--background) 80%, transparent);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
  padding: 1rem 1.5rem;
}

.brand {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--foreground);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-desktop a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.15s;
}

.nav-desktop a:hover {
  color: var(--foreground);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.15s,
    box-shadow 0.15s,
    border-color 0.15s;
}

.btn svg {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
}

.btn-sm {
  height: 2rem;
  padding: 0 0.75rem;
  gap: 0.375rem;
}

.btn-sm svg {
  width: 0.875rem;
  height: 0.875rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
  background: color-mix(in oklab, var(--primary) 90%, black);
}

.btn-lg {
  height: 3rem;
  padding: 0 2rem;
  font-size: 1rem;
  border-radius: 0.5rem;
  box-shadow:
    0 4px 6px -1px color-mix(in oklab, var(--primary) 20%, transparent),
    0 2px 4px -2px color-mix(in oklab, var(--primary) 20%, transparent);
}

.btn-lg:hover {
  box-shadow:
    0 10px 15px -3px color-mix(in oklab, var(--primary) 25%, transparent),
    0 4px 6px -4px color-mix(in oklab, var(--primary) 25%, transparent);
}

.btn-lg svg {
  width: 1rem;
  height: 1rem;
}

.btn-outline {
  background: var(--background);
  border-color: var(--border);
  color: var(--foreground);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--foreground);
}

.btn-outline-lg {
  height: 3rem;
  padding: 0 1.5rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-md {
  height: 2.25rem;
  padding: 0 1rem;
  font-size: 0.875rem;
}

/* Hero */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 3rem;
}

@media (min-width: 768px) {
  .hero-section {
    padding: 6rem 0 4rem;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at 30% 20%,
    color-mix(in oklab, var(--accent) 30%, transparent) 0%,
    transparent 50%
  );
}

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-title {
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  text-wrap: balance;
  margin: 0;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
}

.hero-lead {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  text-wrap: pretty;
  line-height: 1.625;
}

.hero-ctas {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .hero-ctas {
    flex-direction: row;
  }
}

.hero-note {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.hero-integrations {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.chart-card-wrap {
  margin-top: 2.5rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

/* Hero chart — white card, soft lift, generous padding (matches v0 reference) */
.chart-card {
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 1.75rem 1.5rem 1.5rem;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 4px 12px rgba(15, 23, 42, 0.06),
    0 18px 40px -12px rgba(15, 23, 42, 0.1);
}

.chart-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  font-size: 0.75rem;
}

.legend-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--muted-foreground);
}

.legend-dot strong {
  display: inline-block;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 999px;
}

/* Sections */
.section-muted-bar {
  border-top: 1px solid color-mix(in oklab, var(--border) 40%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--border) 40%, transparent);
  background: color-mix(in oklab, var(--muted) 30%, transparent);
}

.three-col-grid {
  display: grid;
  gap: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .three-col-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .three-col-mid {
    border-left: 1px solid color-mix(in oklab, var(--border) 40%, transparent);
    border-right: 1px solid color-mix(in oklab, var(--border) 40%, transparent);
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  margin: 0 0 0.5rem;
}

.section-col-text {
  font-weight: 500;
  margin: 0;
}

.bg-secondary-40 {
  background: color-mix(in oklab, var(--secondary) 40%, var(--background));
}

.bg-muted-20 {
  background: color-mix(in oklab, var(--muted) 20%, var(--background));
}

.bg-primary-5 {
  background: color-mix(in oklab, var(--primary) 5%, var(--background));
}

.gradient-cta {
  background: linear-gradient(
    to bottom,
    color-mix(in oklab, var(--accent) 30%, transparent),
    color-mix(in oklab, var(--accent) 10%, transparent)
  );
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  margin: 0 0 0.75rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 1.875rem;
  }
}

.section-sub {
  text-align: center;
  color: var(--muted-foreground);
  margin: 0 auto 3rem;
  max-width: 32rem;
}

.section-sub.tight {
  margin-bottom: 2rem;
}

.two-cards {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .two-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card-panel {
  padding: 1.75rem 1.5rem;
  border-radius: 1.25rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.card-panel-primary {
  border-color: color-mix(in oklab, var(--primary) 35%, #e5e7eb);
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.04),
    0 0 0 1px color-mix(in oklab, var(--primary) 12%, transparent);
}

.card-kicker {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.card-kicker .muted {
  color: var(--muted-foreground);
}

.card-kicker .primary {
  color: var(--primary);
}

.card-divider {
  border-top: 1px solid color-mix(in oklab, var(--border) 40%, transparent);
  margin: 0.75rem 0;
}

.card-quote {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-style: italic;
  margin: 0 0 1rem;
}

.chart-box {
  aspect-ratio: 4 / 3;
  background: #f9fafb;
  border: 1px solid #eef0f3;
  border-radius: 0.875rem;
  padding: 1.125rem;
  margin-bottom: 1rem;
}

.chart-box svg {
  width: 100%;
  height: 100%;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  padding: 0.5rem 0.875rem;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.callout-box {
  padding: 0.875rem 1rem;
  background: color-mix(in oklab, var(--primary) 6%, #f9fafb);
  border: 1px solid color-mix(in oklab, var(--primary) 15%, #e5e7eb);
  border-radius: 0.625rem;
  font-size: 0.75rem;
  text-align: center;
}

.callout-box p {
  margin: 0;
  font-weight: 500;
}

.center-footnote {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-weight: 500;
}

.prose-block {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.prose-block h2 {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  margin: 0 0 2rem;
  text-wrap: balance;
}

@media (min-width: 768px) {
  .prose-block h2 {
    font-size: 1.875rem;
  }
}

.prose-content {
  color: var(--muted-foreground);
  line-height: 1.625;
}

.prose-content p {
  margin: 0 0 1rem;
}

.prose-content .lead-strong {
  font-weight: 500;
  color: var(--foreground);
}

.bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.bullet-list li::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--destructive) 60%, transparent);
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.bullet-list li span {
  flex: 1;
}

.pt-4 {
  padding-top: 1rem;
}

.w-full {
  width: 100%;
}
.h-auto {
  height: auto;
}

/* How it works */
.steps-grid {
  display: grid;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.step-num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  margin: 0 auto 1rem;
  color: var(--primary-foreground);
  background: var(--primary);
  box-shadow: 0 4px 6px color-mix(in oklab, var(--primary) 30%, transparent);
}

.step-num.t2 {
  background: color-mix(in oklab, var(--primary) 85%, white);
}
.step-num.t3 {
  background: color-mix(in oklab, var(--primary) 70%, white);
}
.step-num.t4 {
  background: color-mix(in oklab, var(--primary) 55%, white);
}

.step-title {
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0;
}

/* Use grid */
.use-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .use-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.use-card {
  padding: 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid color-mix(in oklab, var(--border) 50%, transparent);
  background: var(--card);
}

.use-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.use-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0;
}

/* Compare table */
.compare-wrap {
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
}

.compare-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border-bottom: 2px solid var(--border);
}

.compare-row:last-child {
  border-bottom: 0;
}

@media (max-width: 640px) {
  .compare-row {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .compare-arrow {
    transform: rotate(90deg);
  }
}

.compare-row.alt {
  background: color-mix(in oklab, var(--muted) 30%, transparent);
}

.compare-arrow {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.125rem;
}

.compare-left {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.compare-right {
  font-size: 0.875rem;
  font-weight: 500;
}

/* Pricing */
.pricing-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 42rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.price-card {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  background: var(--card);
}

.price-card.featured {
  border-width: 2px;
  border-color: color-mix(in oklab, var(--primary) 40%, transparent);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.price-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.price-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0 0 1rem;
}

.price-amt {
  font-size: 1.875rem;
  font-weight: 600;
  margin: 0 0 1.5rem;
}

.price-amt .per {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted-foreground);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

details.faq-item {
  border: 1px solid color-mix(in oklab, var(--border) 50%, transparent);
  border-radius: 0.5rem;
  padding: 1rem;
  cursor: pointer;
}

details.faq-item summary {
  font-weight: 500;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary .chev {
  flex-shrink: 0;
  color: var(--muted-foreground);
  transition: transform 0.2s;
}

details.faq-item[open] summary .chev {
  transform: rotate(180deg);
}

.faq-answer {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.625;
}

/* Legal (privacy, terms) */
.legal-main {
  padding: 3rem 0 5rem;
}

.legal-main h1 {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.legal-main .legal-updated {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin: 0 0 2.5rem;
}

.legal-main h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 2rem 0 0.5rem;
}

.legal-main h2:first-of-type {
  margin-top: 0;
}

.legal-main p,
.legal-main li {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.625;
}

.legal-main p {
  margin: 0 0 1rem;
}

.legal-main ul {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}

.legal-main li {
  margin-bottom: 0.35rem;
}

/* Footer */
.site-footer {
  padding: 3rem 0;
  background: var(--foreground);
  color: color-mix(in oklab, var(--background) 70%, transparent);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
}

.footer-links a {
  transition: color 0.15s;
}

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

.footer-links .brand-link {
  font-weight: 600;
  color: var(--background);
}

.footer-copy {
  text-align: center;
  font-size: 0.875rem;
  color: color-mix(in oklab, var(--background) 50%, transparent);
  margin: 0;
}

.text-center {
  text-align: center;
}

.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.mb-12 {
  margin-bottom: 3rem;
}
.mt-3 {
  margin-top: 0.75rem;
}
.mt-12 {
  margin-top: 3rem;
}

.learn-section .btn svg {
  width: 1rem;
  height: 1rem;
}

/* SVG icon inline sizing for FAQ */
.chev-icon {
  width: 1rem;
  height: 1rem;
}

button.btn {
  font-family: inherit;
}

/* —— Example chart modal —— */
/*
  Do not set display on <dialog> without gating on [open]. Author `display`
  overrides the UA’s `dialog:not([open]) { display: none }`, which leaves the
  subtree (e.g. absolutely positioned close) visible after close().
*/
dialog.example-chart-dialog:not([open]) {
  display: none;
}

.example-chart-dialog[open] {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 1.25rem;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.example-chart-dialog::backdrop {
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(6px);
}

.example-chart-dialog__panel {
  display: flex;
  flex-direction: column;
  width: min(56rem, 100%);
  max-height: min(90vh, 900px);
  overflow: hidden;
  background: #ffffff;
  border-radius: 1.5rem;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(0, 0, 0, 0.04);
}

.example-chart-dialog__header {
  position: relative;
  flex-shrink: 0;
  padding: 1.5rem 3.25rem 0.25rem 2rem;
}

.example-chart-dialog__header .example-modal__title {
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .example-chart-dialog__header .example-modal__title {
    margin-bottom: 1.25rem;
  }
}

.example-chart-dialog__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 0.5rem 1.75rem 2rem;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #c8cdd5 transparent;
  scrollbar-color: color-mix(in oklab, var(--muted-foreground) 38%, #fff) transparent;
}

.example-chart-dialog__body::-webkit-scrollbar {
  width: 10px;
}

.example-chart-dialog__body::-webkit-scrollbar-track {
  background: transparent;
  margin: 6px 0 10px;
}

.example-chart-dialog__body::-webkit-scrollbar-thumb {
  background: #c8cdd5;
  background: color-mix(in oklab, var(--muted-foreground) 38%, #fff);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: padding-box;
}

.example-chart-dialog__body::-webkit-scrollbar-thumb:hover {
  background: #aeb6c2;
  background: color-mix(in oklab, var(--muted-foreground) 52%, #fff);
  background-clip: padding-box;
}

.example-chart-dialog__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  background: #fff;
  color: var(--muted-foreground);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}

.example-chart-dialog__close:hover {
  background: #f9fafb;
  color: var(--foreground);
}

.example-chart-dialog__close:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.example-modal__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0;
  line-height: 1.25;
  padding-right: 0.25rem;
}

@media (min-width: 768px) {
  .example-modal__title {
    font-size: 1.75rem;
    text-align: center;
    padding-right: 0;
  }
}

.example-compare {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .example-compare {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.example-compare__card {
  background: #f9f9f7;
  border: 1px solid #ebe9e4;
  border-radius: 1rem;
  padding: 1.25rem 1.25rem 1.5rem;
}

.example-compare__heading {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--foreground);
}

.example-compare__viz {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 0.75rem;
  padding: 0.75rem;
  margin-bottom: 1rem;
}

.example-compare__svg {
  width: 100%;
  height: auto;
  display: block;
  color: var(--foreground);
}

.example-compare__quote {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.example-compare__list {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.55;
}

.example-compare__answer {
  font-size: 0.875rem;
  margin: 0;
  color: var(--foreground);
}

.example-compare__legend {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  line-height: 1.55;
}

.example-compare__legend li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.example-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  margin-top: 0.35rem;
  flex-shrink: 0;
}

.example-dot--blue {
  background: #3b82f6;
}

.example-dot--red {
  background: #ef4444;
}

.example-real {
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.5rem;
  background: #fff;
}

.example-real__title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.example-real__subtitle {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0 0 1.25rem;
}

.example-real__chart-wrap {
  overflow-x: auto;
  margin-bottom: 1.25rem;
  border-radius: 0.5rem;
  background: #fafafa;
  border: 1px solid #f0f0f0;
  padding: 0.5rem;
}

.example-real__svg {
  width: 100%;
  min-width: 320px;
  height: auto;
  display: block;
  color: var(--foreground);
}

.example-real__footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .example-real__footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
}

.example-real__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.example-real__legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.example-real__note {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  text-align: left;
}

@media (min-width: 640px) {
  .example-real__note {
    text-align: right;
    max-width: 16rem;
  }
}
