:root {
  --bg: #030712;
  --card: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.1);
  --accent: #56d8e3;
  --accent-strong: #16c79a;
  --text: #f8fafc;
  --text-muted: #b7c1d8;
  --text-soft: #d7deee;
  --field-bg: rgba(2, 6, 23, 0.85);
  --solid-card: rgba(2, 6, 23, 0.85);
  --gradient: radial-gradient(circle at top left, rgba(37, 99, 235, 0.4), transparent 45%), radial-gradient(circle at top right, rgba(14, 165, 233, 0.35), transparent 50%), #030712;
  font-family: "Space Grotesk", "Poppins", system-ui, sans-serif;
  color: var(--text);
}

body[data-theme="light"] {
  --bg: #f5f8f6;
  --card: rgba(255, 255, 255, 0.74);
  --border: rgba(15, 23, 42, 0.14);
  --accent: #0f9f8e;
  --accent-strong: #c8a64b;
  --text: #0b1724;
  --text-muted: #496173;
  --text-soft: #24394b;
  --field-bg: rgba(255, 255, 255, 0.92);
  --solid-card: rgba(255, 255, 255, 0.9);
  --gradient: radial-gradient(circle at top left, rgba(15, 159, 142, 0.2), transparent 42%), radial-gradient(circle at 82% 12%, rgba(200, 166, 75, 0.22), transparent 48%), linear-gradient(135deg, #f6faf8 0%, #eaf2f6 100%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--gradient);
  color: var(--text);
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

a {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
}

.hero-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.4rem;
}

.brand-logo {
  width: min(280px, 100%);
  height: auto;
  display: block;
}

.site-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.language-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 2.15rem;
  padding: 0.28rem 0.46rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
}

.language-flag img {
  width: 1.5rem;
  height: 1rem;
  border-radius: 0.18rem;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.18);
}

.language-flag.active {
  border-color: rgba(255, 214, 102, 0.9);
  box-shadow: 0 0 0 1px rgba(255, 214, 102, 0.3), 0 0 18px rgba(255, 193, 7, 0.2);
}

.theme-toggle-track {
  width: 2.4rem;
  height: 1.25rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.theme-toggle-track::after {
  content: "";
  position: absolute;
  width: 0.9rem;
  height: 0.9rem;
  left: 0.18rem;
  top: 0.18rem;
  border-radius: 50%;
  background: #f8fafc;
  transition: transform 0.25s ease;
}

.site-theme-toggle[aria-pressed="true"] .theme-toggle-track::after {
  transform: translateX(1.12rem);
}

.hero {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 120% 0%, rgba(59, 130, 246, 0.2), transparent 55%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2.8rem, 5vw, 3.8rem);
}

.hero p {
  margin: 0.4rem 0 1.2rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.cta-group {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.cta-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  color: #030712;
  font-weight: 600;
}

.cta-secondary {
  border: 1px solid var(--border);
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  color: var(--text);
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.hero-notes span {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
  font-size: 0.88rem;
}

.hero-card {
  position: relative;
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.1), var(--solid-card));
  z-index: 1;
}

.hero-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: #e0f2fe;
}

.hero-card-copy {
  margin: 0 0 1rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.hero-card .stat {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-card .stat:last-child {
  border-bottom: none;
}

.hero-card-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.hero-card-points span {
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-soft);
  font-size: 0.84rem;
}

.hero-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.78rem 1rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-weight: 700;
}

.section {
  margin-top: 3rem;
}

.intro-band {
  margin-top: 1.75rem;
  padding: 1.1rem 1.35rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.intro-band p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.65;
}

.section h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.section p {
  color: var(--text-muted);
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.card {
  background: var(--card);
  border-radius: 1.1rem;
  padding: 1.4rem;
  border: 1px solid var(--border);
  min-height: 180px;
}

.card-title {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
  color: var(--text);
}

.card-body {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.highlight {
  padding: 1.5rem;
  border-radius: 1.2rem;
  background: linear-gradient(180deg, rgba(86, 216, 227, 0.08), rgba(15, 23, 42, 0.7));
  border: 1px solid rgba(86, 216, 227, 0.18);
}

.highlight h3 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
}

.highlight p {
  margin: 0;
  line-height: 1.6;
  color: var(--text-muted);
}

.demo-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: 1.4rem;
  align-items: start;
}

.demo-copy,
.demo-card {
  border-radius: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-copy {
  padding: 1.8rem;
  background:
    radial-gradient(circle at top left, rgba(73, 211, 162, 0.18), transparent 46%),
    linear-gradient(180deg, rgba(7, 35, 38, 0.18), var(--solid-card));
}

.demo-card {
  padding: 1.2rem;
  background: var(--card);
  box-shadow: 0 22px 48px rgba(2, 6, 23, 0.32);
}

.windows-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.windows-tab {
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 0.8rem 0.8rem 0 0;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
  padding: 0.75rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
}

.windows-tab.active {
  background: linear-gradient(180deg, rgba(124, 231, 242, 0.16), rgba(73, 211, 162, 0.1));
  color: var(--text);
  border-color: rgba(124, 231, 242, 0.4);
}

.windows-tab::before {
  content: "";
  display: inline-block;
  width: 1.15em;
  flex: 0 0 1.15em;
  text-align: center;
  opacity: 0.9;
}

.windows-tab.active::before {
  content: "✅";
}

.windows-tab.active {
  color: var(--accent-strong);
}

.demo-panel {
  display: none;
}

.demo-panel.active {
  display: block;
}

.demo-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.9rem;
  color: var(--text-soft);
}

.demo-voice-list {
  display: grid;
  gap: 0.85rem;
  max-height: 420px;
  overflow: auto;
  padding-right: 0.2rem;
}

.demo-voice-item {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--solid-card);
  position: relative;
  overflow: hidden;
}

.demo-voice-item.selected {
  border-color: rgba(255, 214, 102, 0.9);
  box-shadow: 0 0 0 1px rgba(255, 214, 102, 0.42), 0 0 26px rgba(255, 193, 7, 0.26);
  animation: demoGoldGlow 4.8s ease-in-out infinite;
}

.demo-voice-item.selected::after {
  content: "";
  position: absolute;
  inset: -45%;
  background: linear-gradient(180deg, transparent 38%, rgba(255, 233, 166, 0.42), transparent 62%);
  pointer-events: none;
  animation: demoGoldSweep 6.2s ease-in-out infinite;
}

.demo-voice-item.selected > * {
  position: relative;
  z-index: 1;
}

.demo-voice-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.demo-voice-meta span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.demo-form {
  display: grid;
  gap: 1rem;
}

.demo-select-field {
  margin-bottom: 0.95rem;
}

.demo-text-field {
  margin-bottom: 0.8rem;
}

.demo-form textarea {
  width: 100%;
  min-height: 148px;
  border: 1px solid rgba(86, 216, 227, 0.28);
  border-radius: 0.95rem;
  background: var(--field-bg);
  color: var(--text);
  padding: 0.95rem 1rem;
  font: inherit;
  resize: vertical;
  outline: none;
}

body[data-theme="light"] .demo-form textarea {
  border-color: rgba(15, 159, 142, 0.26);
}

.demo-form textarea:focus {
  border-color: rgba(86, 216, 227, 0.7);
  box-shadow: 0 0 0 3px rgba(86, 216, 227, 0.15);
}

.demo-fixed-text {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--field-bg);
  padding: 1rem;
}

.demo-fixed-text span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.demo-fixed-text strong {
  display: block;
  color: var(--text);
  line-height: 1.55;
}

.demo-fixed-text p {
  margin: 0.55rem 0 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.demo-status {
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-soft);
  line-height: 1.6;
}

.demo-result {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(22, 199, 154, 0.12), var(--solid-card));
  border: 1px solid rgba(22, 199, 154, 0.2);
}

.demo-result p,
.demo-result strong {
  display: block;
  margin-bottom: 0.5rem;
}

.demo-result-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.demo-result audio,
.demo-voice-item audio {
  width: 100%;
}

.checkout-builder {
  display: grid;
  grid-template-columns: minmax(260px, 1.05fr) minmax(320px, 0.95fr);
  gap: 1.4rem;
  align-items: stretch;
}

.api-centered-section {
  display: flex;
  justify-content: center;
}

.api-main-card {
  width: min(1120px, 100%);
}

.builder-copy,
.builder-form {
  border-radius: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.builder-copy {
  padding: 1.8rem;
  background:
    radial-gradient(circle at top left, rgba(86, 216, 227, 0.16), transparent 46%),
    linear-gradient(180deg, rgba(8, 47, 73, 0.14), var(--solid-card));
}

.builder-copy h2 {
  margin-top: 0;
}

.builder-copy p {
  line-height: 1.7;
}

.builder-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.builder-badges span {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-soft);
  font-size: 0.88rem;
}

.builder-form {
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
  background: var(--card);
  box-shadow: 0 22px 48px rgba(2, 6, 23, 0.32);
}

.builder-field {
  display: grid;
  gap: 0.45rem;
}

.builder-field span {
  font-size: 0.92rem;
  color: var(--text-soft);
  font-weight: 600;
}

.builder-field select,
.builder-field input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.95rem;
  background: var(--field-bg);
  color: var(--text);
  padding: 0.95rem 1rem;
  font: inherit;
  outline: none;
}

.builder-field select:focus,
.builder-field input:focus {
  border-color: rgba(86, 216, 227, 0.7);
  box-shadow: 0 0 0 3px rgba(86, 216, 227, 0.15);
}

.builder-summary {
  border-radius: 1.05rem;
  padding: 1rem 1.05rem;
  background: linear-gradient(180deg, rgba(22, 199, 154, 0.12), var(--solid-card));
  border: 1px solid rgba(22, 199, 154, 0.2);
}

.demo-selected-summary {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 214, 102, 0.9);
  box-shadow: 0 0 0 1px rgba(255, 214, 102, 0.42), 0 0 22px rgba(255, 193, 7, 0.24);
  animation: demoGoldGlow 4.8s ease-in-out infinite;
}

.demo-selected-summary::after {
  content: "";
  position: absolute;
  inset: -45%;
  background: linear-gradient(180deg, transparent 38%, rgba(255, 233, 166, 0.42), transparent 62%);
  transform: translateY(34%);
  pointer-events: none;
  animation: demoGoldSweep 6.2s ease-in-out infinite;
}

.demo-selected-summary > * {
  position: relative;
  z-index: 1;
}

@keyframes demoGoldGlow {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(255, 214, 102, 0.36), 0 0 18px rgba(255, 193, 7, 0.18);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(255, 229, 140, 0.95), 0 0 34px rgba(255, 193, 7, 0.42);
  }
}

@keyframes demoGoldSweep {
  0%,
  100% {
    transform: translateY(34%);
    opacity: 0.34;
  }
  50% {
    transform: translateY(-34%);
    opacity: 0.78;
  }
}

.builder-summary-label {
  margin: 0 0 0.35rem;
  color: #90f7e5;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

.builder-summary strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.builder-summary p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.builder-submit {
  border: none;
  border-radius: 1rem;
  padding: 0.95rem 1.1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #03131b;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
}

.builder-submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.builder-submit.loading::before {
  content: "";
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid rgba(3, 19, 27, 0.28);
  border-top-color: #03131b;
  animation: demoButtonSpin 0.8s linear infinite;
}

@keyframes demoButtonSpin {
  to {
    transform: rotate(360deg);
  }
}

.builder-note {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.step {
  border-radius: 1rem;
  padding: 1.2rem;
  background: var(--card);
  border: 1px solid var(--border);
}

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

.step-content {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.plan {
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.6rem;
  background: var(--solid-card);
  display: flex;
  flex-direction: column;
}

.featured-plan {
  border-color: rgba(86, 216, 227, 0.45);
  box-shadow: 0 18px 40px rgba(22, 199, 154, 0.12);
}

.plan-kicker {
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--accent);
}

.plan h3 {
  margin: 0;
  font-size: 1.25rem;
}

.plan-minutes {
  margin: 0.25rem 0 0.2rem;
  color: var(--text-muted);
  font-weight: 800;
}

.plan .price {
  font-size: 2rem;
  margin: 0.4rem 0;
  color: var(--accent);
}

.plan ul {
  padding-left: 1rem;
  color: var(--text-muted);
  margin: 0.6rem 0 0;
  flex: 1;
}

.plan-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.2rem;
  padding: 0.85rem 1.1rem;
  border-radius: 0.95rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #03131b;
  font-weight: 700;
}

.plan-cta-secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}

.pricing-note {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.api-block {
  background: var(--card);
  padding: 1.8rem;
  border-radius: 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  font-size: 0.95rem;
}

.dual-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.panel-card {
  padding: 1.6rem;
  border-radius: 1.2rem;
  background: var(--card);
  border: 1px solid var(--border);
}

.panel-card h2 {
  margin-top: 0;
}

.api-tabs {
  display: flex;
  gap: 0.35rem;
  margin-top: 1rem;
  border-bottom: 1px solid var(--border);
}

.api-tab {
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 0.7rem 0.7rem 0 0;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
  padding: 0.65rem 0.9rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
}

.api-tab.active {
  color: var(--text);
  background: linear-gradient(180deg, rgba(124, 231, 242, 0.16), rgba(73, 211, 162, 0.1));
  border-color: rgba(124, 231, 242, 0.42);
}

.api-tab::before {
  content: "";
  display: inline-block;
  width: 1.15em;
  flex: 0 0 1.15em;
  text-align: center;
  opacity: 0.9;
}

.api-tab.active::before {
  content: "✅";
}

.api-tab.active {
  color: var(--accent-strong);
}

.api-panel {
  display: none;
  position: relative;
}

.api-panel.active {
  display: block;
}

.api-help {
  margin: 1rem 0 1.1rem;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--border) 74%, #f1c65d 26%);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--solid-card) 82%, #f1c65d 8%);
  color: var(--muted);
}

.api-help strong {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--text);
}

.api-help ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-left: 1.1rem;
}

.api-help li {
  line-height: 1.45;
}

.api-help p {
  margin: 0.7rem 0 0;
}

.api-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0 0 1.1rem;
}

.api-modes article {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.8rem;
  background: color-mix(in srgb, var(--solid-card) 88%, transparent);
}

.api-modes strong {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--text);
  font-size: 0.82rem;
}

.api-modes pre {
  max-height: 12rem;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.api-copy-button {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.48rem 0.7rem;
  background: color-mix(in srgb, var(--solid-card) 88%, #ffffff 12%);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.16);
}

.api-copy-button svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.api-copy-button:hover,
.api-copy-button.copied {
  border-color: rgba(255, 214, 102, 0.9);
  box-shadow: 0 0 0 1px rgba(255, 214, 102, 0.24), 0 0 18px rgba(255, 193, 7, 0.2);
}

.api-panel pre {
  padding-top: 3rem;
}

.inline-link {
  color: #8ee8ef;
  font-weight: 600;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.faq-item {
  border-radius: 1rem;
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
}

.faq-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.faq-item p {
  margin: 0;
  line-height: 1.6;
}

pre {
  background: var(--solid-card);
  border-radius: 0.9rem;
  padding: 1rem;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

code {
  font-family: "Fira Code", "JetBrains Mono", monospace;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: flex-end;
}

.topline-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  line-height: 1;
}

.topline-link-primary {
  border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #06121d;
}

.cookie-notice {
  position: fixed;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 50;
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--solid-card) 92%, #000 8%);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.cookie-notice[hidden] {
  display: none;
}

.cookie-notice p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.cookie-notice div {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#legalModal[hidden] {
  display: none;
}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.legal-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}

.legal-modal-card {
  position: absolute;
  left: 50%;
  top: 6vh;
  transform: translateX(-50%);
  width: min(980px, calc(100vw - 2.4rem));
  max-height: min(82vh, 860px);
  margin: 0;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--solid-card) 94%, #000 6%);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  overflow: hidden;
  resize: none;
}

.resize-handle {
  position: absolute;
  z-index: 5;
  background: transparent;
}

.resize-handle-left,
.resize-handle-right {
  top: 0;
  bottom: 0;
  width: 12px;
}

.resize-handle-left { left: 0; cursor: ew-resize; }
.resize-handle-right { right: 0; cursor: ew-resize; }

.resize-handle-bottom {
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  cursor: ns-resize;
}

.resize-handle-corner {
  right: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
  cursor: nwse-resize;
}

.legal-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  cursor: grab;
}

.legal-modal-links {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-modal-body {
  padding: 0;
  background: rgba(255, 255, 255, 0.06);
}

.legal-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.legal-check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.9rem 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
}

.legal-check input {
  margin-top: 0.2rem;
}

.legal-modal-actions {
  padding: 0.9rem 1.1rem 1.1rem;
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-accept {
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #06121d;
  cursor: pointer;
  font: inherit;
  font-weight: 950;
}

.legal-accept:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.legal-close {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.legal-close:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#cookieAccept {
  border: 0;
  border-radius: 999px;
  padding: 0.72rem 1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #06121d;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

@media (max-width: 720px) {
  .page {
    padding-top: 1.5rem;
  }

  .hero {
    padding: 1.6rem;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 11vw, 3rem);
  }

  .cta-group,
  .hero-notes,
  .hero-topline {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-primary,
  .cta-secondary,
  .plan-cta,
  .builder-submit {
    justify-content: center;
    text-align: center;
  }

  .checkout-builder {
    grid-template-columns: 1fr;
  }

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

  .builder-copy,
  .builder-form,
  .demo-copy,
  .demo-card {
    padding: 1.3rem;
  }

  .footer,
  .cookie-notice {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links,
  .cookie-notice div {
    justify-content: flex-start;
  }
}
