/* LingFlo Cloudflare Pages styles */
:root {
  color-scheme: light dark;
  --lf-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --lf-bg: #f8fafc;
  --lf-surface: #ffffff;
  --lf-text: #0f172a;
  --lf-muted: #475569;
  --lf-accent: #2563eb;
  --lf-accent-soft: rgba(37, 99, 235, 0.12);
  --lf-border: rgba(15, 23, 42, 0.08);
  --lf-success: #16a34a;
  --lf-warning: #f59e0b;
  --lf-error: #dc2626;
  --lf-radius: 16px;
  --lf-container: min(1080px, 92vw);
  --lf-font-size: 16px;
  --lf-header-height: 72px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --lf-bg: #0b1120;
    --lf-surface: #111c2f;
    --lf-text: #e2e8f0;
    --lf-muted: #94a3b8;
    --lf-border: rgba(148, 163, 184, 0.12);
    --lf-accent-soft: rgba(37, 99, 235, 0.2);
  }
}

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

html,
body {
  padding: 0;
  margin: 0;
  font-family: var(--lf-font-family);
  font-size: var(--lf-font-size);
  background: var(--lf-bg);
  color: var(--lf-text);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: var(--lf-header-height);
}

body.auth-page {
  background: radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.12), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(34, 211, 238, 0.18), transparent 50%),
    var(--lf-bg);
}

section[id] {
  scroll-margin-top: 96px;
}

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

a:hover {
  text-decoration: underline;
}

header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--lf-border);
}

@media (prefers-color-scheme: dark) {
  header.site-header {
    background: rgba(11, 17, 32, 0.85);
  }
}

.nav-inner {
  width: var(--lf-container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
}

.env-pill {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--lf-border);
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.brand-logo {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2563eb 0%, #22d3ee 100%);
  color: #fff;
  font-weight: 700;
}

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

nav.primary-nav a {
  color: var(--lf-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

nav.primary-nav a.active {
  color: var(--lf-text);
  font-weight: 600;
}

.nav-actions.desktop,
.nav-actions.mobile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-actions.mobile {
  display: none;
  margin-top: 2rem;
  width: 100%;
  flex-direction: column;
  align-items: stretch;
}

.nav-actions.mobile .btn {
  width: 100%;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.1rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--lf-accent);
  color: #fff;
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.25);
}

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

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.35);
}

.btn-outline:hover {
  border-color: var(--lf-accent);
  color: var(--lf-accent);
}

.auth-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 90;
}

.auth-overlay.is-open {
  display: flex;
}

.auth-overlay-open {
  overflow: hidden;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
  backdrop-filter: blur(4px);
}

.auth-panel {
  position: relative;
  width: min(420px, 92vw);
  padding: 1.8rem;
  border-radius: 20px;
  border: 1px solid var(--lf-border);
  background: var(--lf-surface);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
  display: grid;
  gap: 0.8rem;
  z-index: 1;
}

.auth-panel h2 {
  margin: 0;
}

.auth-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  border: none;
  background: rgba(148, 163, 184, 0.12);
  color: inherit;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  font-size: 1.2rem;
  cursor: pointer;
}

.auth-divider {
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--lf-muted);
  position: relative;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--lf-border);
}

.auth-divider::before {
  left: 0;
}

.auth-divider::after {
  right: 0;
}

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

.auth-shell {
  min-height: calc(100vh - var(--lf-header-height));
  display: grid;
  place-items: center;
  padding: 2.5rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.auth-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 40% 0%, rgba(148, 163, 184, 0.12), transparent 60%);
  pointer-events: none;
}

.auth-modal {
  width: min(560px, 92vw);
  padding: 2rem;
  border-radius: 22px;
  border: 1px solid var(--lf-border);
  background: var(--lf-surface);
  box-shadow: 0 36px 90px rgba(15, 23, 42, 0.28);
  display: grid;
  gap: 1.2rem;
  position: relative;
  z-index: 1;
}

.auth-modal .status-banner {
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 14px;
}

.onboarding-card {
  display: grid;
  gap: 0.75rem;
}

.onboarding-card + .onboarding-card {
  border-top: 1px dashed var(--lf-border);
  padding-top: 1.2rem;
}

.field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.field input,
.field textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--lf-border);
  padding: 0.7rem 0.9rem;
  font: inherit;
  background: var(--lf-surface);
  color: inherit;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--lf-accent);
  outline-offset: 2px;
}

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

.token-block {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.08);
  border: 1px solid var(--lf-border);
  font-size: 0.85rem;
  overflow: auto;
}

.mobile-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 0.5rem;
  border-radius: 10px;
  border: 1px solid transparent;
}

.mobile-toggle:focus-visible {
  outline: 2px solid var(--lf-accent);
  outline-offset: 2px;
}

.hero {
  padding: 4.5rem 0 4rem;
}

.hero-grid {
  width: var(--lf-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  align-items: start;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--lf-border);
  background: var(--lf-accent-soft);
  color: var(--lf-accent);
  font-weight: 600;
  font-size: 0.85rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 3.2vw, 3.6rem);
  margin: 1.2rem 0;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.hero p {
  font-size: 1.12rem;
  color: var(--lf-muted);
  line-height: 1.65;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.1rem;
}

.metric-card {
  padding: 1rem 1.4rem;
  border-radius: 14px;
  border: 1px solid var(--lf-border);
  background: var(--lf-surface);
}

.metric-card h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
}

.metric-card span {
  font-size: 0.85rem;
  color: var(--lf-muted);
}

.feature-grid {
  padding: 4rem 0;
}

.section-header {
  width: var(--lf-container);
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-header h2 {
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.section-header p {
  color: var(--lf-muted);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto;
}

.cards-3 {
  width: var(--lf-container);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  border-radius: 18px;
  border: 1px solid var(--lf-border);
  background: var(--lf-surface);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.card h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.card p {
  color: var(--lf-muted);
  margin: 0;
}

.card ul {
  padding-left: 1.1rem;
  margin: 0;
  color: var(--lf-muted);
}

.card ul li {
  margin-bottom: 0.45rem;
}

.demo-shell {
  border-radius: 24px;
  border: 1px solid var(--lf-border);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(14, 116, 144, 0.08));
  padding: 2rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.demo-feed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.demo-feed button {
  border: none;
  background: rgba(15, 23, 42, 0.06);
  color: inherit;
  font: inherit;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  text-align: left;
  transition: background 0.15s ease;
}

.demo-feed button:hover,
.demo-feed button.active {
  background: rgba(37, 99, 235, 0.15);
  color: var(--lf-accent);
}

.demo-panel {
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  min-height: 360px;
  padding: 1.6rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  position: relative;
  overflow: hidden;
}

@media (prefers-color-scheme: dark) {
  .demo-panel {
    background: rgba(17, 28, 47, 0.95);
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  }
}

.demo-status {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--lf-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.demo-panel h4 {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
}

.demo-panel .notes {
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.demo-panel .note {
  display: grid;
  gap: 0.3rem;
}

.demo-stage {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  align-items: start;
  min-height: 0;
}

.demo-language {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
  overflow: hidden;
  white-space: nowrap;
}

.demo-language-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.35);
  color: rgba(226, 232, 240, 0.7);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-size: 0.6rem;
  transition: background 0.35s ease, box-shadow 0.35s ease, color 0.35s ease;
}

.demo-language-item.is-active {
  background: rgba(37, 99, 235, 0.25);
  color: #e2e8f0;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.25);
}

.demo-language-more {
  color: rgba(226, 232, 240, 0.5);
  border-color: rgba(148, 163, 184, 0.15);
}

.demo-snippet {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.08), transparent 55%),
    rgba(11, 18, 33, 0.92);
  color: #e2e8f0;
  padding: 1rem 1.1rem;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
  max-height: 140px;
}

.demo-snippet-header {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(226, 232, 240, 0.65);
  margin-bottom: 0.4rem;
}

.demo-snippet-text {
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0 0 0.2rem;
  min-height: 0;
  position: relative;
  z-index: 1;
}

.demo-snippet-caption {
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.65);
  margin: 0;
}

.demo-highlight {
  padding: 0.1rem 0.2rem;
  border-radius: 6px;
  transition: box-shadow 0.4s ease, background 0.4s ease;
}

.demo-highlight-blue {
  background: transparent;
  box-shadow: none;
}

.demo-highlight-purple {
  background: transparent;
  box-shadow: none;
}

.demo-highlight.is-active.demo-highlight-blue {
  background: rgba(59, 130, 246, 0.32);
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.55);
}

.demo-highlight.is-active.demo-highlight-purple {
  background: rgba(124, 58, 237, 0.32);
  box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.55);
}

.demo-selection,
.panel-selection {
  position: absolute;
  height: 1.4em;
  width: 0;
  border-radius: 6px;
  background: var(--selection-color, rgba(59, 130, 246, 0.25));
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.25);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.demo-selection.is-dragging,
.panel-selection.is-dragging {
  animation: demo-selection-sweep var(--drag-duration, 1.2s) ease forwards;
}

@keyframes demo-selection-sweep {
  0% {
    opacity: 0;
    transform: scaleX(0);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: scaleX(1);
  }
}


.lf-panel {
  border-radius: 18px;
  background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.08), transparent 55%),
    radial-gradient(circle at 90% 20%, rgba(124, 58, 237, 0.08), transparent 50%),
    #0b1221;
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #e2e8f0;
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.25);
  overflow: hidden;
  transition: transform 0.6s ease, box-shadow 0.6s ease;
  height: auto;
  max-height: 420px;
}

.lf-panel.is-active {
  transform: translateY(-2px);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.35);
}

.lf-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.9rem;
  background: rgba(148, 163, 184, 0.12);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.lf-logo {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.lf-close {
  font-size: 1.2rem;
  opacity: 0.7;
}

.lf-panel-body {
  padding: 0.7rem 0.9rem 0.9rem;
  display: grid;
  gap: 0.45rem;
  min-height: 0;
  position: relative;
}

.lf-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.45rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.lf-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #cbd5f5;
}

.lf-pill-action {
  background: rgba(51, 65, 85, 0.85);
  border-color: rgba(100, 116, 139, 0.55);
  color: #e2e8f0;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 600;
}

.lf-text {
  font-size: 0.96rem;
  line-height: 1.18;
  color: #e2e8f0;
  white-space: normal;
  word-break: normal;
}

.lf-section-title {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.75);
}

.lf-chip,
.lf-mark {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 8px;
  font-weight: 600;
}

.lf-chip {
  background: transparent;
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #dbeafe;
}

.lf-chip.lf-chip-purple {
  background: transparent;
  border-color: rgba(167, 139, 250, 0.35);
  color: #ede9fe;
}

.lf-chip.is-active {
  background: rgba(59, 130, 246, 0.3);
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.4);
}

.lf-chip.lf-chip-purple.is-active {
  background: rgba(124, 58, 237, 0.3);
  box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.4);
}

.lf-mark {
  background: transparent;
  border: 1px solid rgba(129, 140, 248, 0.3);
  color: #e0e7ff;
  transition: box-shadow 0.4s ease, background 0.4s ease;
}

.lf-mark.is-active {
  background: rgba(99, 102, 241, 0.3);
  box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.45);
}

.lf-notes {
  display: grid;
  gap: 0.25rem;
}

.lf-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.lf-note.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.lf-note-text {
  color: rgba(226, 232, 240, 0.85);
}

@media (max-width: 900px) {
  .demo-stage {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .lf-panel,
  .demo-snippet {
    height: auto;
  }
}

.twocol {
  width: var(--lf-container);
  margin: 4rem auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.testimonials {
  background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 52%);
  padding: 4rem 0;
}

.testimonial-grid {
  width: var(--lf-container);
  margin: 0 auto;
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.testimonial-card {
  border-radius: 18px;
  border: 1px solid var(--lf-border);
  background: var(--lf-surface);
  padding: 1.6rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 1rem;
}

.testimonial-card span {
  color: var(--lf-muted);
  font-size: 0.9rem;
}

.cta-band {
  background: linear-gradient(135deg, #2563eb, #22d3ee);
  color: #fff;
  border-radius: 26px;
  width: var(--lf-container);
  margin: 4rem auto;
  padding: 2.6rem 3rem;
  display: grid;
  gap: 1.2rem;
}

.cta-band .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

footer.site-footer {
  margin-top: auto;
  background: rgba(15, 23, 42, 0.04);
  padding: 3rem 0 2rem;
}

@media (prefers-color-scheme: dark) {
  footer.site-footer {
    background: rgba(15, 23, 42, 0.35);
  }
}

.footer-inner {
  width: var(--lf-container);
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.footer-links {
  display: grid;
  gap: 0.35rem;
}

.footer-links a {
  color: var(--lf-muted);
  font-size: 0.95rem;
}

.legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  font-size: 0.85rem;
  color: var(--lf-muted);
}

.legal a {
  color: inherit;
}

/* Responsive behaviour */
@media (max-width: 960px) {
  nav.primary-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 84vw);
    background: var(--lf-surface);
    border-left: 1px solid var(--lf-border);
    padding: 5rem 2rem 2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }

  nav.primary-nav.open {
    transform: translateX(0);
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .nav-actions.desktop {
    display: none;
  }

  .nav-actions.mobile {
    display: flex;
  }

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

  .demo-shell {
    grid-template-columns: 1fr;
  }

  .cards-3 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

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

@keyframes pulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Demo textarea */
.demo-input {
  width: 100%;
  margin-top: 1rem;
  display: grid;
  gap: 0.6rem;
}

.demo-input textarea {
  min-height: 120px;
  border: 1px solid var(--lf-border);
  border-radius: 12px;
  padding: 0.75rem;
  font: inherit;
  background: var(--lf-surface);
  color: inherit;
}

.demo-input textarea:focus-visible {
  outline: 2px solid var(--lf-accent);
  outline-offset: 2px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--lf-accent-soft);
  color: var(--lf-accent);
}

.panel-note {
  border-radius: 14px;
  padding: 0.95rem 1.1rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(15, 23, 42, 0.04);
}

@media (prefers-color-scheme: dark) {
  .panel-note {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(148, 163, 184, 0.12);
  }
}

.status-log {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.85rem;
}

.status-log .status {
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--lf-border);
  background: var(--lf-surface);
}

.status-log .status.success {
  border-color: rgba(22, 163, 74, 0.35);
  color: var(--lf-success);
}

.status-log .status.warn {
  border-color: rgba(245, 158, 11, 0.35);
  color: var(--lf-warning);
}

.status-log .status.error {
  border-color: rgba(220, 38, 38, 0.35);
  color: var(--lf-error);
}

.share-main {
  width: var(--lf-container);
  margin: 2rem auto 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.share-main .result {
  font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
  font-size: 0.85rem;
  background: rgba(15, 23, 42, 0.02);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid var(--lf-border);
  max-height: 420px;
  overflow: auto;
}
