/* Styles for the static content pages (about.html, 404.html). The editor itself uses styles.css. */
:root {
  --bg: #f4f5fa; --panel: #ffffff; --border: #dadfe7; --text: #1b2433; --muted: #5b6779;
  --accent: #7400e3; --accent-soft: rgba(116, 0, 227, .08);
  --font: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0a0e16; --panel: #121826; --border: #243049; --text: #e7ebf3; --muted: #9aa6bd; --accent: #a875ff; --accent-soft: rgba(168, 117, 255, .14); }
  .logo-light { display: none !important; }
}
@media (prefers-color-scheme: light) { .logo-dark { display: none !important; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; }

.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 12px max(20px, calc((100vw - 980px) / 2));
  background: var(--panel); border-bottom: 1px solid var(--border);
}
.site-header .brand img { display: block; height: 34px; width: auto; }
.site-header nav { display: flex; gap: 18px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.site-header nav a { text-decoration: none; color: var(--text); font-weight: 500; }
.site-header nav a:hover { color: var(--accent); }

.cta {
  display: inline-block; padding: 11px 20px; border-radius: 10px;
  background: var(--accent); color: #fff !important; font-weight: 600; text-decoration: none;
}
.cta:hover { filter: brightness(1.08); }
.cta.small { padding: 8px 14px; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px 64px; }
.hero { padding: 56px 0 32px; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 16px; }
.hero p { font-size: 18px; color: var(--muted); max-width: 720px; margin: 0 0 24px; }

section { margin-top: 44px; }
h2 { font-size: 26px; letter-spacing: -.01em; margin: 0 0 14px; }
h3 { font-size: 17px; margin: 0 0 4px; }

.features, .templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 14px; padding: 0; margin: 0; list-style: none; }
.features li, .templates li, .symbols div, details {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px;
}
.features p, .templates p, .symbols dd { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

.steps { counter-reset: s; padding: 0; list-style: none; display: grid; gap: 10px; }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 56px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; }
.steps li::before {
  content: counter(s); position: absolute; left: 14px; top: 12px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 700;
}

.symbols { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; margin: 0; }
.symbols div { margin: 0; }
.symbols dt { font-weight: 700; }

details { margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--muted); }

.final { text-align: center; padding: 36px 20px; border-radius: 16px; background: var(--accent-soft); border: 1px solid var(--border); }
.site-footer { border-top: 1px solid var(--border); padding: 24px 20px; text-align: center; color: var(--muted); font-size: 14px; }
.site-footer a { color: var(--muted); }

/* 404 */
.plain { display: grid; place-items: center; min-height: 100vh; }
.notfound { text-align: center; padding: 24px; max-width: 520px; }
.notfound h1 { margin: 24px 0 8px; }
.notfound p { color: var(--muted); }

@media (max-width: 600px) {
  .site-header { padding: 10px 16px; gap: 10px; }
  .site-header nav { gap: 12px; margin-left: 0; width: 100%; }
  .hero { padding: 32px 0 20px; }
  .hero p { font-size: 16px; }
  h2 { font-size: 22px; }
  .wrap { padding: 0 16px 48px; }
  .steps li { padding-left: 52px; }
}
