:root {
  --bg: #ffffff;
  --bg-accent: rgba(56, 189, 248, 0.08);
  --bg-warm: rgba(249, 115, 22, 0.08);
  --surface: #ffffff;
  --surface-soft: #fafbfc;
  --surface-muted: #f3f6f8;
  --surface-strong: #ffffff;
  --surface-hover: #eef2f6;
  --text: #0f172a;
  --text-soft: #1e293b;
  --text-dim: #334155;
  --line: rgba(15, 23, 42, 0.14);
  --line-strong: rgba(15, 23, 42, 0.24);
  --code-bg: #f5f8fb;
  --primary: #0284c7;
  --secondary: #38bdf8;
  --accent: #f97316;
  --price-standard-strong: #0f5f9c;
  --price-estimate-strong: #b45309;
  --success: #0284c7;
  --shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
  --shadow-soft: 0 6px 16px rgba(15, 23, 42, 0.035);
  --page-max: 1180px;
  --hero-title-size: clamp(2.6rem, 5.4vw, 4.8rem);
  --accent-gradient: linear-gradient(90deg, #0ea5e9 0%, #38bdf8 42%, #f97316 100%);
  --fs-label: 1.2rem;
  --fs-body-sm: 1.2rem;
  --fs-body: 1.3rem;
  --fs-body-lg: 1.4rem;
  --fs-title-sm: 1.6rem;
  --fs-title: 2.2rem;
}

:root[data-theme='dark'] {
  --bg: #07111a;
  --bg-accent: rgba(56, 189, 248, 0.18);
  --bg-warm: rgba(249, 115, 22, 0.1);
  --surface: rgba(11, 23, 34, 0.82);
  --surface-soft: rgba(8, 18, 29, 0.72);
  --surface-muted: rgba(13, 32, 46, 0.94);
  --surface-strong: #0d2030;
  --surface-hover: rgba(18, 42, 60, 0.98);
  --text: #e5f7ff;
  --text-soft: #a8c8da;
  --text-dim: #79a3b6;
  --line: rgba(56, 189, 248, 0.18);
  --line-strong: rgba(56, 189, 248, 0.32);
  --code-bg: #081724;
  --primary: #38bdf8;
  --secondary: #7dd3fc;
  --accent: #fb923c;
  --price-standard-strong: #8fdbff;
  --price-estimate-strong: #ffbf7a;
  --success: #38bdf8;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 14px 32px rgba(0, 0, 0, 0.32);
  --accent-gradient: linear-gradient(90deg, #38bdf8 0%, #7dd3fc 42%, #fb923c 100%);
}

* { box-sizing: border-box; }
html { margin: 0; min-height: 100%; font-size: 10px; }
body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.2rem;
  transition: background-color .2s ease, color .2s ease;
}
code, pre, .mono {
  font-family: "JetBrains Mono", "SFMono-Regular", ui-monospace, monospace;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.app-shell { min-height: 100vh; }
:root[data-embedded='true'],
:root[data-embedded='true'] body {
  background: transparent;
}
.app-shell.is-embedded {
  position: relative;
  isolation: isolate;
  background: transparent;
}
.app-shell.is-embedded::before {
  content: '';
  position: fixed;
  top: 6.4rem;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--bg);
}
:root[data-embedded='true'] dev-site-header,
:root[data-embedded='true'] dev-site-footer { display: none; }
.app-shell.is-embedded .page-inner {
  position: relative;
  z-index: 1;
  padding-top: 3.2rem;
}
.app-shell.is-embedded .hero { padding-top: 9.6rem; }

.page-inner {
  width: min(calc(100% - 3.2rem), var(--page-max));
  margin: 0 auto;
}
.brand {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: var(--fs-body-lg);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero {
  position: relative;
  padding: 7.8rem 0 2rem;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: none;
  position: absolute;
  border-radius: 999px;
  filter: blur(100px);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-title {
  max-width: 16ch;
  margin: 0 0 1.4rem;
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: var(--hero-title-size);
  line-height: 1.06;
  letter-spacing: -.03em;
  color: var(--text);
  font-weight: 700;
}
.hero-line {
  display: block;
  white-space: nowrap;
}
.hero-line + .hero-line {
  margin-top: .2rem;
}
.hero-gradient {
  display: inline-block;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-notes {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
  color: var(--text-soft);
  font-size: var(--fs-body-lg);
  line-height: 1.7;
}
.hero-note-item {
  position: relative;
  padding-left: 1.4rem;
}
.hero-note-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: .85rem;
  width: .5rem;
  height: .5rem;
  border-radius: 999px;
  background: var(--accent);
}
.hero-note-title {
  color: var(--text);
  font-weight: 700;
}
.hero-note-body {
  color: var(--text-soft);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2.4rem;
  box-shadow: var(--shadow);
}
.info-card {
  overflow: hidden;
  background: var(--surface);
}
.info-row {
  display: flex;
  border-bottom: 1px solid var(--line);
}
.info-row:last-child { border-bottom: 0; }
.info-key {
  width: 12rem;
  flex-shrink: 0;
  padding: 1.4rem 1.6rem;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: transparent;
  border-right: 1px solid var(--line);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
}
.info-value {
  flex: 1;
  padding: 1.4rem 1.8rem;
  min-width: 0;
  font-size: var(--fs-body);
}
.inline-note {
  color: var(--text-soft);
  font-size: var(--fs-body-sm);
  line-height: 1.8;
}
.inline-note strong, .section-title, .policy-title { color: var(--text); }

.pills, .chips {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}
.pill, .chip {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  white-space: nowrap;
  border-radius: 999px;
  padding: .8rem 1.3rem;
  border: 1px solid var(--line);
  background: var(--surface-muted);
  color: var(--text-soft);
  font-size: var(--fs-body-sm);
}
.pill em { opacity: .72; font-style: normal; }
.pill[data-tone='openai'] {
  color: #0284c7;
  border-color: rgba(2, 132, 199, .28);
}
.pill[data-tone='claude'] {
  color: #db6d28;
  border-color: rgba(249, 115, 22, .28);
}
.pill[data-tone='gemini'] {
  color: #0ea5e9;
  border-color: rgba(56, 189, 248, .3);
}
.chip {
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}
.chip:hover,
.chip:focus-visible {
  background: var(--surface-hover);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.value-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  min-width: 0;
}
.value-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inline-button, .ghost-button {
  border: 1px solid var(--line);
  background: var(--surface-muted);
  color: var(--text);
  border-radius: 999px;
  cursor: pointer;
  padding: .8rem 1.3rem;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
  font-size: var(--fs-label);
}
.inline-button:hover,
.ghost-button:hover,
.inline-button:focus-visible,
.ghost-button:focus-visible {
  background: var(--surface-hover);
  color: var(--text);
  border-color: var(--line-strong);
}
.inline-button.is-copied,
.ghost-button.is-copied { color: var(--accent); }

.section { padding: 1.6rem 0 1.2rem; }
.section-header { margin-bottom: 1.4rem; }
.section-title {
  display: inline-block;
  margin: 0 0 .8rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: var(--fs-title);
  letter-spacing: -.03em;
  text-transform: uppercase;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-subtitle {
  color: var(--text-soft);
  line-height: 1.8;
  font-size: var(--fs-body-sm);
  max-width: 72ch;
}

.tabs {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}
.tab-button {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--text-soft);
  border-radius: 999px;
  padding: .9rem 1.4rem;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
  font-size: var(--fs-label);
}
.tab-button.is-active {
  background: var(--surface-strong);
  color: var(--text);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}
.setup-pane { padding: 2rem; }
.setup-step {
  color: var(--text-soft);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: var(--fs-body-sm);
}
.code-block {
  position: relative;
  margin: 1rem 0 1.4rem;
  padding: 1.8rem;
  border-radius: 2rem;
  background: var(--code-bg);
  border: 1px solid var(--line);
  overflow-x: auto;
}
.code-block code {
  color: var(--text);
  white-space: pre;
  display: block;
  font-size: var(--fs-body-sm);
  line-height: 1.75;
}
.copy-code { position: absolute; top: 1rem; right: 1rem; }
.config-list { display: grid; gap: .8rem; }
.config-row {
  display: grid;
  grid-template-columns: 20rem 1fr;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 1.6rem;
  overflow: hidden;
}
.config-key {
  padding: 1.2rem 1.4rem;
  background: var(--surface-muted);
  border-right: 1px solid var(--line);
  color: var(--text-dim);
  font-size: var(--fs-body-sm);
}
.config-value {
  padding: 1.2rem 1.4rem;
  color: var(--text);
  font-size: var(--fs-body-sm);
}
.config-value.dim { color: var(--text-soft); }

.table-card {
  overflow: hidden;
  background: var(--surface);
}
.table-head, .table-row {
  display: grid;
  grid-template-columns: minmax(18rem, 1.6fr) 1fr 1fr 1.25fr 1.3fr;
  gap: 0;
}
.table-head {
  background: var(--surface-muted);
  color: var(--text);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.table-head-line {
  display: block;
  white-space: normal;
  line-height: 1.45;
}
.table-head-line + .table-head-line {
  margin-top: .25rem;
}
.table-row {
  border-bottom: 1px solid var(--line);
  transition: background-color .18s ease;
}
.table-row:hover { background: var(--surface-hover); }
.table-row:last-child { border-bottom: 0; }
.table-cell {
  padding: 1.4rem 1.6rem;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: var(--fs-body);
  line-height: 1.7;
}
.table-cell-highlight {
  font-weight: 700;
}
.table-cell-highlight-standard {
  color: var(--price-standard-strong);
}
.table-cell-highlight-estimated {
  color: var(--price-estimate-strong);
}
.table-head .table-cell-highlight {
  text-shadow: 0 0 16px rgba(56, 189, 248, 0.08);
}
:root[data-theme='dark'] .table-head .table-cell-highlight-standard,
:root[data-theme='dark'] .table-row .table-cell-highlight-standard {
  text-shadow: 0 0 16px rgba(125, 211, 252, 0.18);
}
:root[data-theme='dark'] .table-head .table-cell-highlight-estimated,
:root[data-theme='dark'] .table-row .table-cell-highlight-estimated {
  text-shadow: 0 0 16px rgba(251, 146, 60, 0.18);
}
.pricing-note {
  color: var(--text-soft);
  font-size: var(--fs-body-sm);
  line-height: 1.8;
  margin-top: 1.2rem;
  max-width: 90ch;
}

.mini-table { overflow: hidden; }
.mini-head, .mini-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr 1.8fr;
  gap: 0;
}
.mini-head {
  background: var(--surface-muted);
  color: var(--text);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.mini-row { border-bottom: 1px solid var(--line); }
.mini-row:last-child { border-bottom: 0; }
.mini-cell {
  padding: 1.5rem 1.6rem;
  line-height: 1.8;
  color: var(--text-soft);
  font-size: var(--fs-body);
}
.mini-strong { color: var(--text); font-weight: 700; }

@media (max-width: 900px) {
  .config-row, .table-head, .table-row, .mini-head, .mini-row { grid-template-columns: 1fr; }
  .info-row { flex-direction: column; }
  .info-key {
    width: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .site-nav {
    top: 1rem;
    width: min(calc(100% - 2rem), calc(var(--page-max) + 2rem));
  }
  .hero { padding-top: 7.2rem; }
  .app-shell.is-embedded .hero { padding-top: 7.8rem; }
  .nav-inner, .page-inner { width: min(calc(100% - 2.4rem), var(--page-max)); }
  .nav-inner { align-items: flex-start; padding: 1rem 0; }
  .nav-right { width: 100%; justify-content: space-between; }
  .control-bar { width: 100%; }
  .control-group { overflow-x: auto; max-width: 100%; }
  .section { padding-top: 1.8rem; }
  .hero-title { max-width: none; }
  .hero-line { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
