:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --fg: #1d232c;
  --muted: #5b6574;
  --line: #d4d8de;
  --accent: #2f5d8a;
  --accent-fg: #ffffff;
  color-scheme: light;
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1f25;
    --surface: #262b33;
    --fg: #e6e9ee;
    --muted: #a2abb8;
    --line: #3b424c;
    --accent: #8ab4e0;
    --accent-fg: #10161d;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); }
a { color: var(--accent); }
.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px;
  padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--fg); text-decoration: none; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--accent); }
main { max-width: 1100px; margin: 0 auto; padding: 0 16px 40px; }
.hero { max-width: 760px; margin: 28px auto 16px; text-align: center; }
.hero h1 { font-size: clamp(26px, 4vw, 38px); line-height: 1.2; margin: 0 0 10px; }
.lead { color: var(--muted); margin: 0; }
.tool iframe {
  display: block; width: 100%; height: min(78vh, 760px); min-height: 420px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
}
.tool.dragging iframe { outline: 3px dashed var(--accent); outline-offset: 4px; }
.tool-note { font-size: 15px; color: var(--muted); text-align: center; margin: 10px 0 0; }
.content { max-width: 760px; margin: 32px auto 0; }
.content h2 { font-size: 22px; margin: 32px 0 8px; }
.content code { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }
.cta {
  max-width: 760px; margin: 40px auto 0; padding: 20px 24px; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
}
.cta h2 { margin: 0 0 6px; font-size: 22px; }
.button {
  display: inline-block; padding: 10px 18px; border-radius: 8px;
  background: var(--accent); color: var(--accent-fg); font-weight: 600; text-decoration: none;
}
.site-footer { border-top: 1px solid var(--line); padding: 20px 16px 32px; text-align: center; color: var(--muted); font-size: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin-bottom: 8px; }
