@import url("./site-layout.css");

:root, .seo-wrap {
  /* Industrial palette shared with the app (src/styles/theme.css), the agent and the admin. */
  color-scheme: dark;
  --bg: #0c0e11;
  --ink: #e9ebee;
  --muted: #a0a7b1;
  --faint: #6c7480;
  --line: #262b32;
  --line-strong: #353c45;
  --accent: #ff7a1a;
  --on-accent: #140c05;
  --success: #3fcf8e;
  --surface: #14171b;
  --raised: #1a1e23;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
}
/* Scoped to the static content: unlayered, a bare `a` rule would also recolor every link of the app. */
:where(.seo-wrap) a { color: var(--accent); text-underline-offset: 3px; }
:where(.seo-wrap) a:hover { color: var(--ink); }

.seo-skip {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 20;
  padding: 0.55rem 0.9rem;
  border-radius: 2px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 650;
}
.seo-skip:focus { top: 1rem; }

.seo-header {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  background: rgba(12, 14, 17, 0.92);
  backdrop-filter: blur(12px);
}
.seo-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}
.seo-brand img { width: 28px; height: 28px; border-radius: 2px; }
.seo-nav { display: flex; gap: 0.75rem; align-items: center; font-size: 0.9rem; flex-wrap: wrap; justify-content: flex-end; }
.seo-nav a { text-decoration: none; color: var(--muted); }
.seo-nav a:hover { color: var(--ink); }
.seo-nav .seo-nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.3rem 0.8rem;
  border-radius: 2px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 650;
  font-size: 0.8rem;
}
.seo-nav .seo-nav-cta:hover { color: var(--on-accent); filter: brightness(1.08); }

.seo-main { padding: 2.5rem 0 3.5rem; }
.seo-eyebrow { margin: 0; color: var(--accent); font-size: 0.85rem; font-weight: 650; }
:where(.seo-wrap) h1 {
  margin: 0.45rem 0 0.75rem;
  font-size: 2.5rem;
  font-size: clamp(1.85rem, 5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 650;
}
.seo-lead { margin: 0; color: var(--muted); font-size: 1.05rem; max-width: 42rem; }
.seo-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.25rem 0; }
.seo-button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.5rem 0.95rem;
  border-radius: 2px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 650;
  text-decoration: none;
}
.seo-button:hover { color: var(--on-accent); filter: brightness(1.08); }
.seo-button.secondary {
  border: 1px solid var(--line-strong);
  background: var(--raised);
  color: var(--ink);
}
.seo-button.secondary:hover { color: var(--ink); }
.seo-note {
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 122, 26, 0.35);
  border-radius: 2px;
  background: #2a1a0d;
  color: #ffb27a;
  font-size: 0.92rem;
}
.seo-specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1.25rem;
}
.seo-spec {
  padding: 0.8rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}
.seo-spec dt {
  margin: 0;
  color: var(--faint);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 650;
}
.seo-spec dd { margin: 0.3rem 0 0; font-size: 0.92rem; font-weight: 650; }

.seo-section { margin-top: 2rem; }
.seo-section > h2 {
  margin: 0 0 0.7rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.seo-section p, .seo-section li { color: var(--muted); font-size: 0.95rem; }
.seo-section ul, .seo-section ol { padding-left: 1.15rem; }
.seo-section li + li { margin-top: 0.35rem; }

.seo-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
  counter-reset: step;
}
.seo-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}
.seo-steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 2px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.75rem;
  font-weight: 700;
}
.seo-steps h3 { margin: 0 0 0.2rem; font-size: 0.98rem; color: var(--ink); }
.seo-steps p { margin: 0; }

.seo-config { display: grid; gap: 0.55rem; }
.seo-config-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}
.seo-config-row span:first-child {
  color: var(--faint);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 650;
  min-width: 4rem;
}
.seo-code, .seo-config-value {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  font-size: 0.9rem;
}
.seo-code {
  display: inline;
  padding: 0.05rem 0.3rem;
  border-radius: 2px;
  background: var(--raised);
}
.seo-copy {
  appearance: none;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--raised);
  color: var(--muted);
  min-height: 32px;
  padding: 0.3rem 0.65rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
}
.seo-copy:hover { border-color: var(--accent); color: var(--accent); }
.seo-copy.is-copied { border-color: var(--success); color: var(--success); }

.seo-list {
  margin: 0;
  padding: 1rem 1rem 1rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--muted);
}
.seo-list li + li { margin-top: 0.45rem; }
.seo-muted {
  margin: 0.75rem 0 0;
  color: var(--faint);
  font-size: 0.85rem;
}

.seo-faq details {
  margin-top: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  overflow: hidden;
}
.seo-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 1rem;
  font-weight: 650;
}
.seo-faq summary::-webkit-details-marker { display: none; }
.seo-faq details p {
  margin: 0;
  padding: 0 1rem 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.seo-footer {
  margin-top: 2rem;
  padding: 1.25rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.85rem;
}
.seo-footer p { margin: 0.3rem 0; }

@media (max-width: 640px) {
  .seo-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seo-main { padding-top: 1.75rem; }
}

.seo-section table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.seo-section th, .seo-section td { padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--line); text-align: left; }
.seo-section th { color: var(--muted); font-weight: 600; }
