@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  color-scheme: light;
  --bg-0: #fffdf9;
  --bg-1: #eef8f2;
  --ink: #17211f;
  --muted: #66746f;
  --card: #ffffff;
  --line: #d8e8df;
  --line-strong: #bdd4c8;
  --accent: #20a67a;
  --accent-2: #12745a;
  --accent-warm: #ff8a70;
  --accent-cool: #6d9cff;
  --accent-soft: #def8ec;
  --warm-soft: #ffe8df;
  --cool-soft: #e7efff;
  --sun-soft: #fff4cc;
  --danger: #c7382a;
  --shadow: 0 12px 30px rgba(23, 33, 31, 0.07);
  font-family: 'Space Grotesk', 'Avenir Next', 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(120deg, rgba(255, 232, 223, 0.32) 0%, rgba(255, 232, 223, 0) 26%),
    linear-gradient(240deg, rgba(231, 239, 255, 0.34) 0%, rgba(231, 239, 255, 0) 30%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
  color: var(--ink);
}

.container {
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 1.6rem 1rem 2rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.1rem 1.3rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

h1, h2, h3 {
  margin-top: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  line-height: 0.94;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  line-height: 1.08;
}

ul {
  margin-top: 0.4rem;
}

code, pre {
  font-family: 'IBM Plex Mono', 'SFMono-Regular', Menlo, Monaco, Consolas, monospace;
}

pre {
  white-space: pre;
  overflow-x: auto;
  background: #101414;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #e9f2ef;
  padding: 1rem;
  font-size: 0.86rem;
  line-height: 1.6;
}

button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  padding: 0.62rem 1.05rem;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

button:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(32, 166, 122, 0.22);
}

input[type='text'] {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  width: 100%;
  font: inherit;
}

.inline-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  margin: 0.8rem 0 1rem;
}

.quick-test-form {
  margin-top: 0.9rem;
}

.inline-delete-form {
  margin: 0;
}

.danger-button {
  background: var(--danger);
  border-color: var(--danger);
  padding: 0.35rem 0.6rem;
  border-radius: 10px;
}

.danger-button:hover {
  background: #ab2d22;
  box-shadow: 0 10px 16px rgba(199, 56, 42, 0.24);
}

table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

th, td {
  border-bottom: 1px solid var(--line);
  padding: 0.6rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f3fbf7;
}

.actions {
  margin-bottom: 0.7rem;
}

a {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
}

.success {
  border-color: #9edfc4;
  background: var(--accent-soft);
}

.error {
  border-color: #e9a89f;
  background: #fff4f2;
}

.warning {
  color: #8d2f26;
  font-weight: 600;
}

.muted {
  color: var(--muted);
}

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
}

.error-inline {
  color: #a12f24;
  font-weight: 600;
}

.success-inline {
  color: #0d6e53;
  font-weight: 600;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 1rem;
  align-items: stretch;
  margin: 0.4rem 0 1rem;
  animation: rise-in 450ms ease-out;
}

.hero-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-copy-panel {
  display: flex;
  flex-direction: column;
  min-height: 560px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fffb 100%);
  padding: clamp(1.25rem, 4vw, 3rem);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent-2);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow span {
  color: var(--accent-warm);
}

.hero-copy {
  max-width: 630px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.45;
  margin: 0;
}

.pill {
  display: inline-block;
  margin: 0 0 0.6rem;
  padding: 0.26rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0d5f47;
  background: #d9f2e9;
}

.beta-badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.45rem;
  padding: 0.18rem 0.55rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  color: #7c4a00;
  background: #fff0cc;
  border: 1px solid #f5d580;
  position: relative;
  top: -0.15em;
}

.create-form {
  margin: 0;
}

.cta-inline-form {
  margin: 0.3rem 0 0;
}

.hero-actions {
  margin-top: 1.7rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.hero-actions .create-form {
  margin-top: 0;
}

.create-button {
  font-size: 0.98rem;
  padding: 0.78rem 1rem;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  padding: 0.72rem 1rem;
  text-decoration: none;
}

.secondary-button:hover {
  background: var(--accent-soft);
  text-decoration: none;
}

.hero-links {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 2rem;
}

.hero-links a {
  color: var(--muted);
  font-size: 0.92rem;
}

.product-preview {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #101414;
  color: #f4fbf8;
  min-height: 560px;
}

.use-case-steps-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #101414;
  color: #f4fbf8;
  min-height: 560px;
}

.hero-step-boxes {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  margin-top: auto;
}

.hero-step-boxes article {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  padding: 1rem;
}

.hero-step-boxes span {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(143, 243, 199, 0.45);
  border-radius: 8px;
  color: #8ff3c7;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
}

.hero-step-boxes h3 {
  margin-bottom: 0.35rem;
}

.hero-step-boxes p {
  color: #b8c7c2;
  line-height: 1.5;
  margin: 0 0 0.75rem;
}

.hero-step-boxes code {
  display: inline-block;
  color: #e9f2ef;
  font-size: 0.8rem;
}

.preview-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
}

.preview-label,
.preview-id {
  display: block;
}

.preview-label {
  font-weight: 700;
}

.preview-id {
  color: #8ba09a;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  margin-top: 0.18rem;
}

.live-dot {
  border: 1px solid rgba(63, 231, 171, 0.4);
  border-radius: 999px;
  color: #8ff3c7;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.22rem 0.55rem;
}

.live-dot::before {
  content: '';
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  margin-right: 0.38rem;
  border-radius: 50%;
  background: #43e6a8;
}

.preview-code {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.7rem 0.8rem;
}

.preview-code span {
  color: #ff9a7f;
  font-size: 0.72rem;
  font-weight: 700;
}

.preview-code code {
  color: #e9f2ef;
  overflow-wrap: anywhere;
}

.preview-table {
  display: grid;
  gap: 0.55rem;
  padding: 0 1rem 1rem;
  margin-top: auto;
}

.preview-row {
  display: grid;
  grid-template-columns: 3.8rem 1fr 2.6rem;
  gap: 0.7rem;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  padding: 0.75rem 0.8rem;
  font-size: 0.9rem;
}

.preview-head {
  color: #8ba09a;
  background: transparent;
  border-color: transparent;
  font-size: 0.72rem;
  font-weight: 700;
  padding-top: 0;
  padding-bottom: 0;
  text-transform: uppercase;
}

.preview-row span:first-child,
.preview-row span:last-child {
  color: #9fb3ad;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
}

.preview-row.is-new {
  border-color: rgba(143, 243, 199, 0.5);
  background: rgba(143, 243, 199, 0.12);
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.button-link:hover {
  text-decoration: none;
}

.inline-action-form {
  display: inline;
  margin: 0;
}

.linklike-btn {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--accent-2);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  padding: 0;
  text-decoration: none;
  transform: none;
}

.linklike-btn:hover {
  background: transparent;
  box-shadow: none;
  text-decoration: underline;
  transform: none;
}

/* List view (owner) */
.list-view-header {
  margin-bottom: 0.6rem;
}

.list-view-header h1 {
  margin: 0 0 0.4rem;
}

.list-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  align-items: center;
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  color: #3a4234;
}

.meta-chip code {
  background: transparent;
  padding: 0;
}

.list-id-chip code {
  font-size: 0.85rem;
}

.copy-list-id-chip {
  appearance: none;
  cursor: pointer;
  font: inherit;
}

.copy-list-id-chip:hover {
  background: #d3f4e4;
  box-shadow: none;
  transform: none;
}

.copy-list-id-status {
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 700;
  margin-left: 0.2rem;
}

.copy-btn {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--accent-2);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.05rem 0.45rem;
  margin-left: 0.25rem;
}

.copy-btn:hover {
  background: #fff;
}

.list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.6rem 0 0.7rem;
}

.action-chip {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-2);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.3rem 0.85rem;
  text-decoration: none;
}

.action-chip:hover {
  background: var(--accent-soft);
  text-decoration: none;
}

.action-chip[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.inline-add-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin: 0.8rem 0 0.6rem;
}

.inline-add-form input[type="text"] {
  flex: 1;
  margin-bottom: 0;
}

.list-entries-table .entry-value-cell {
  max-width: 32rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.list-entries-table .row-action-col {
  width: 2.4rem;
}

.row-action-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #8a4a4a;
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.2rem 0.45rem;
}

.row-action-btn:hover {
  background: #fbeaea;
  border-color: #e2c0c0;
  color: #6a2a2a;
}

.row-action-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.inline-field-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.inline-field-row input {
  flex: 1;
  margin-bottom: 0;
}

.home-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  animation: rise-in 600ms ease-out;
}

.home-section {
  margin: 1rem 0;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 1rem;
}

.section-heading h2 {
  margin-bottom: 0;
}

.steps-section,
.split-section,
.feature-band,
.closing-cta {
  animation: rise-in 600ms ease-out;
}

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

.steps-grid article,
.simple-card,
.code-card,
.feature-band article,
.closing-cta {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.steps-grid article {
  padding: 1.1rem;
}

.steps-grid article:nth-child(1) {
  background: linear-gradient(180deg, #ffffff 0%, #f3fff8 100%);
}

.steps-grid article:nth-child(2) {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.steps-grid article:nth-child(3) {
  background: linear-gradient(180deg, #ffffff 0%, #fff8f4 100%);
}

.steps-grid h3,
.feature-band h3 {
  margin-bottom: 0.45rem;
}

.steps-grid p,
.simple-card p,
.feature-band p,
.closing-cta p {
  color: var(--muted);
  line-height: 1.55;
}

.steps-grid p,
.feature-band p {
  margin-bottom: 0;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--accent-2);
  background: #ffffff;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
}

.steps-grid article:nth-child(2) .step-number {
  color: #315fae;
  border-color: #c5d8ff;
}

.steps-grid article:nth-child(3) .step-number {
  color: #b6533d;
  border-color: #ffc9ba;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  gap: 1rem;
  align-items: stretch;
}

.simple-card {
  background: linear-gradient(180deg, #ffffff 0%, #fffaf5 100%);
  padding: 1.25rem;
}

.simple-card h2 {
  margin-bottom: 0.8rem;
}

.clean-list {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.clean-list li {
  border-top: 1px solid var(--line);
  padding-top: 0.55rem;
  color: var(--ink);
}

.clean-list li:first-child {
  border-color: #c8efdc;
}

.code-card {
  overflow: hidden;
  background: #101414;
}

.code-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #dce9e5;
  padding: 0.75rem 1rem;
}

.code-card-header span {
  color: #8ba09a;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
}

.code-card-header a {
  color: #8ff3c7;
  font-size: 0.86rem;
}

.code-card pre {
  border: 0;
  border-radius: 0;
  margin: 0;
}

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

.feature-band article {
  padding: 1rem;
}

.feature-band article:nth-child(1) {
  background: #f3fff8;
  border-color: #c8efdc;
}

.feature-band article:nth-child(2) {
  background: #f7fbff;
  border-color: color-mix(in srgb, var(--accent-cool) 28%, var(--line) 72%);
}

.feature-band article:nth-child(3) {
  background: #fff8f4;
  border-color: color-mix(in srgb, var(--accent-warm) 34%, var(--line) 66%);
}

.closing-cta {
  background: linear-gradient(100deg, #ffffff 0%, #fffaf0 55%, #f3fff8 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.25rem;
}

.closing-cta h2,
.closing-cta p {
  margin-bottom: 0;
}

.mcp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 1rem;
  align-items: stretch;
  margin: 0.4rem 0 1rem;
}

.mcp-hero > div,
.mcp-tool-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(1.15rem, 3vw, 2rem);
}

.mcp-hero > div:first-child {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.mcp-tool-card {
  background: #101414;
  color: #f4fbf8;
}

.mcp-tool-card h3 {
  margin-bottom: 0.85rem;
}

.mcp-tool-card ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mcp-tool-card code {
  color: #8ff3c7;
  font-size: 0.82rem;
}

.mcp-setup-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1.22fr);
  gap: 1rem;
}

.mcp-setup-grid .code-card-header button {
  border: 1px solid rgba(143, 243, 199, 0.38);
  background: rgba(143, 243, 199, 0.08);
  color: #8ff3c7;
  padding: 0.32rem 0.58rem;
}

.mcp-restart-card {
  margin-top: 1rem;
}

.feature-card {
  min-height: 150px;
}

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

.saved-lists-wrap {
  overflow-x: auto;
}

.saved-lists-table {
  width: 100%;
}

.saved-actions {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  flex-wrap: wrap;
}

.saved-action-btn {
  border-radius: 10px;
  padding: 0.35rem 0.62rem;
  font-size: 0.9rem;
}

.danger-inline {
  background: #b93125;
  border-color: #b93125;
}

.danger-inline:hover {
  background: #98271d;
}

.usage-block {
  margin-bottom: 12px;
}

.usage-block:last-child {
  margin-bottom: 0;
}

.usage-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.usage-pre {
  margin: 0;
  font-size: 12px;
  overflow-x: auto;
  background: #fffaf7;
  border: 1px solid #ead8d1;
  border-radius: 4px;
  color: #17211f;
  padding: 10px 12px;
  white-space: pre;
}

/* ── Footer ── */
.site-footer {
  text-align: center;
  padding: 32px 24px 40px;
  margin-top: 48px;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.03em;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

.storage-notice {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 700;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(620px, calc(100vw - 2rem));
  background: rgba(245, 255, 249, 0.96);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(23, 33, 31, 0.13);
  color: var(--ink);
  padding: 0.8rem 0.9rem;
  font-size: 0.9rem;
  line-height: 1.45;
  backdrop-filter: blur(10px);
}

.storage-notice strong {
  font-weight: 700;
}

.storage-notice-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-left: auto;
  white-space: nowrap;
}

.storage-notice-actions a {
  color: var(--muted);
  font-size: 0.86rem;
}

.storage-notice-actions button {
  border-radius: 8px;
  padding: 0.48rem 0.7rem;
}

/* ── Legal pages ── */
.legal-card h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 28px 0 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
}

.legal-card h2:first-of-type {
  margin-top: 20px;
}

.legal-card p,
.legal-card li {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink);
}

.legal-card ul {
  padding-left: 20px;
}

.legal-card ul li {
  margin-bottom: 6px;
}

/* ── Status page ── */
.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.status-badge {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--bg-1);
}

.status-ok  { background: #d4f0e5; color: #0a6644; }
.status-err { background: #fde8e6; color: #a62b20; }

.test-row td {
  background: #f8faf6;
}

.pricing-card ul {
  margin-top: 0.3rem;
}

.faq-card h2 { font-size: 1.1rem; margin-top: 0; }

.agent-spotlight-card { background: #f0f7ff; border: 1px solid #c8dff8; }
.agent-spotlight-card h2 { font-size: 1.2rem; margin: 0.15rem 0 0.6rem; }
.agent-spotlight-card .pill { background: #dbeeff; color: #1a5fa8; border-color: #a8cfee; }
.agent-feature-list { margin: 0.4rem 0 1rem; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.35rem; }
.agent-feature-list li { line-height: 1.5; }
pre.agent-example { background: #1a2333; color: #c9d9f0; border-radius: 8px; padding: 1rem 1.1rem; font-size: 0.8rem; overflow-x: auto; margin: 0; line-height: 1.55; }
.faq-list { margin: 0.6rem 0 0; }
.faq-list dt { font-weight: 600; margin-top: 1rem; }
.faq-list dd { margin: 0.25rem 0 0 0; color: #444; line-height: 1.55; }

.upgrade-form {
  display: grid;
  gap: 0.55rem;
  max-width: 620px;
}

.upgrade-form label {
  font-weight: 600;
  margin-top: 0.15rem;
}

.api-card {
  animation: rise-in 700ms ease-out;
}

.api-feature-list {
  margin: 0.75rem 0 1rem;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.4rem;
}

.api-feature-list li {
  line-height: 1.45;
}

.api-docs-cta {
  margin-top: 1rem;
}

.quick-call-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.quick-test-values {
  background: #f4f1ea;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
}

.quick-test-values-help {
  margin: 0 0 0.6rem;
  font-size: 0.88rem;
}

.quick-test-values-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: flex-end;
}

.quick-test-values-actions {
  margin-top: 0.55rem;
}

.quick-test-field {
  display: flex;
  flex-direction: column;
  flex: 1 1 14rem;
  min-width: 12rem;
  font-size: 0.82rem;
}

.quick-test-field span {
  color: #5a6357;
  margin-bottom: 0.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.quick-test-field input,
.quick-test-field select {
  font: inherit;
  font-size: 0.85rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  margin: 0;
}

.quick-test-field input:focus,
.quick-test-field select:focus {
  outline: 2px solid var(--accent-2);
  outline-offset: 1px;
}

.quick-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.quick-tab {
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line);
  background: #f3f6ef;
  color: var(--ink);
  box-shadow: none;
  transform: none;
}

.quick-tab:hover {
  background: #e7efe6;
  box-shadow: none;
  transform: none;
}

.quick-tab.is-active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 86%, white 14%);
  color: white;
}

.quick-tab-panel {
  display: none;
}

.quick-tab-panel.is-active {
  display: block;
}

.quick-call {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem;
  background: #f9faf7;
}

.quick-call h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.quick-call p {
  margin: 0 0 0.55rem;
}

.quick-call pre + p {
  margin-top: 1rem;
}

.quick-call pre {
  margin: 0;
}

.home-result {
  animation: rise-in 500ms ease-out;
}

.cta-link {
  display: inline-block;
  margin-top: 0.3rem;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Site header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--accent);
  backdrop-filter: blur(10px);
}

.site-header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 46px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0;
}

.site-logo:hover { text-decoration: none; color: var(--accent-2); }

.site-logo.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 6px solid var(--accent);
  transform: translateX(-50%);
}

.site-nav {
  display: flex;
  gap: 20px;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 46px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

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

.site-nav a.active {
  color: var(--ink);
}

.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 6px solid var(--accent);
  transform: translateX(-50%);
}

.site-header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.trackerHeaderActions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.trackerHeaderActions .topbarIconButton,
.trackerHeaderActions .addPanelButton {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #bec9d8;
  border-radius: 8px;
  background: #ffffff;
  color: #26384e;
  cursor: pointer;
}

.trackerHeaderActions .topbarIconButton svg,
.trackerHeaderActions .addPanelButton svg {
  display: block;
  margin: auto;
}

.trackerHeaderActions button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  background: #f6f8fb;
}

/* ── Danger chip (red action-chip variant) ── */
.action-chip.danger-chip,
.danger-chip {
  color: #8a2020;
  border-color: #e2b8b8;
}

.action-chip.danger-chip:hover,
.danger-chip:hover {
  background: #fbeaea;
  border-color: #d09090;
}

/* ── WS live badge ── */
.ws-live-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0a6644;
  background: #d4f0e5;
  border: 1px solid #a5dac6;
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  margin-left: 8px;
  vertical-align: middle;
}

/* ── Modal ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
}

.modal-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  width: min(480px, calc(100vw - 2rem));
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--line);
}

.modal-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0 2px;
}

.modal-close:hover { color: var(--ink); }

.modal-body {
  padding: 16px 20px;
  font-size: 0.9rem;
  line-height: 1.55;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--line);
}

/* ── Plan badges ── */
.plan-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.free-badge { background: #edf1ea; color: #3a5230; border: 1px solid var(--line); }
.pro-badge  { background: #fff4d4; color: #7a5000; border: 1px solid #e8d080; }

.checkout-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #f8fbff;
  border-color: #c9dff4;
}

.checkout-panel.embedded {
  align-items: stretch;
  flex-direction: column;
}

.checkout-panel.paid {
  background: #f2fbf6;
  border-color: #bde4ca;
}

.checkout-panel h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.checkout-panel p {
  margin: 0.25rem 0 0;
}

.checkout-panel-copy {
  min-width: 0;
}

.embedded-checkout-shell {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.embedded-checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: #f8fbff;
}

.embedded-checkout-mount {
  min-height: 520px;
  padding: 0.5rem;
}

/* ── List header ── */
.list-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Entries table ── */
.entries-table-wrap { overflow-x: auto; }

.entries-table {
  width: 100%;
}

.entries-table .entry-value {
  max-width: 32rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.entries-table .entry-actions {
  width: 5rem;
  white-space: nowrap;
}

.entry-num, .entry-ts { white-space: nowrap; }

/* ── Entry row action buttons ── */
.entry-expand-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #5a6a7a;
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.2rem 0.4rem;
}

.entry-expand-btn:hover {
  background: #e8f0f8;
  border-color: #b8cfe0;
}

.delete-entry-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #8a4a4a;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1;
  margin-right: 10px;
  padding: 0.2rem 0.4rem;
}

.delete-entry-btn:hover {
  background: #fbeaea;
  border-color: #e2c0c0;
  color: #6a2a2a;
}

/* ── Entry detail row ── */
.entry-detail-row td {
  background: #f7f9f7;
  padding: 6px 12px 8px;
}

.entry-detail-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 0.82rem;
  color: #444;
}

/* ── Token panel ── */
.default-tokens-panel { }

.default-token-row {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.default-token-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.token-row-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.token-value {
  font-size: 0.8em;
  word-break: break-all;
}

/* ── List name link ── */
.list-name-link {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
}

.list-name-link:hover { text-decoration: underline; }

/* ── Key input form (My Lists) ── */
.key-input-form {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.key-input-form input {
  flex: 1;
  font-family: monospace;
  font-size: 0.82rem;
}

@media (max-width: 860px) {
  .home-hero,
  .mcp-hero,
  .mcp-setup-grid,
  .split-section,
  .steps-grid,
  .feature-band {
    grid-template-columns: 1fr;
  }

  .hero-copy-panel,
  .product-preview {
    min-height: auto;
  }

  .hero-copy-panel {
    padding: 1.25rem;
  }

  .product-preview {
    min-height: 420px;
  }

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

  .hero-actions {
    align-items: center;
  }

  .hero-actions .create-form,
  .hero-actions .button-link,
  .hero-actions .secondary-button {
    width: 100%;
  }

  .hero-actions .create-button,
  .hero-actions .secondary-button {
    width: 100%;
  }

  .container {
    margin-top: 1.2rem;
  }

  .card {
    padding: 1rem;
  }

  .closing-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .closing-cta .create-form,
  .closing-cta .create-button {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .checkout-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .checkout-panel .create-button {
    width: 100%;
    justify-content: center;
  }

  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .site-header-inner {
    height: auto;
    min-height: 46px;
    flex-wrap: wrap;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }

  .site-header-right {
    width: 100%;
    margin-left: 0;
  }

  .site-nav {
    width: 100%;
    gap: 0.85rem;
    overflow-x: auto;
    padding-bottom: 0.1rem;
  }

  .site-nav a {
    white-space: nowrap;
  }

  h1 {
    font-size: clamp(2.35rem, 15vw, 4rem);
  }

  .hero-links {
    gap: 0.75rem;
  }

  .preview-row {
    grid-template-columns: 3rem 1fr 2rem;
    gap: 0.45rem;
    padding: 0.65rem;
    font-size: 0.82rem;
  }

  .preview-code {
    align-items: flex-start;
    flex-direction: column;
  }

  .code-card pre {
    font-size: 0.78rem;
  }

  .storage-notice {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    width: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
  }

  .storage-notice-actions {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .inline-form {
    grid-template-columns: 1fr;
  }

  .pagination {
    gap: 0.6rem;
    flex-direction: column;
    align-items: flex-start;
  }

  th,
  td {
    font-size: 0.9rem;
  }
}
