/* Agentize Your Web — single stylesheet, no framework. */
:root {
  --bg: #0d1117;
  --bg-soft: #161b22;
  --bg-card: #1c2333;
  --border: #2d3548;
  --text: #e6e8ee;
  --muted: #9aa4b8;
  --accent: #4f8cff;
  --accent-soft: #1e3a6e;
  --good: #3fb950;
  --ok: #d29922;
  --warn: #f0883e;
  --bad: #f85149;
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); line-height: 1.6; font-size: 16px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: 2rem; } h2 { font-size: 1.4rem; } h3 { font-size: 1.1rem; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.center { text-align: center; }

/* header / footer */
.site-header { background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.nav-row { display: flex; align-items: center; justify-content: space-between; min-height: 60px; flex-wrap: wrap; gap: 8px; }
.brand { font-weight: 700; font-size: 1.1rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--accent); }
.nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--text); font-size: .95rem; }
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); margin-top: 60px; padding: 32px 0; font-size: .9rem; }
.footer-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.inline-form { display: inline; }
.linklike { background: none; border: none; color: var(--text); cursor: pointer; font: inherit; padding: 0; }
.linklike:hover { text-decoration: underline; }

/* buttons & forms */
.btn {
  display: inline-block; background: var(--accent); color: #fff; border: none;
  padding: 10px 22px; border-radius: var(--radius); font-weight: 600; font-size: 1rem;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.1); text-decoration: none; }
.btn-small { padding: 6px 14px; font-size: .9rem; }
.btn-secondary { background: var(--bg-card); border: 1px solid var(--border); color: var(--text); }
.btn-danger { background: var(--bad); }
input[type=text], input[type=url], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%; background: var(--bg-soft); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 12px; font: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
label { display: block; margin: 14px 0 6px; font-weight: 600; font-size: .95rem; }
form .hint { font-size: .85rem; color: var(--muted); margin-top: 4px; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); margin: 0 0 16px; }

/* cards & grids */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; margin: 16px 0;
}
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

/* flash */
.flash { padding: 12px 16px; border-radius: var(--radius); margin: 14px 0; border: 1px solid; }
.flash-success { background: #12261a; border-color: var(--good); }
.flash-error { background: #2b1416; border-color: var(--bad); }
.flash-info { background: #14233f; border-color: var(--accent); }

/* score */
.score-ring {
  width: 140px; height: 140px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; font-weight: 800; margin: 0 auto;
  border: 8px solid var(--border);
}
.score-good { border-color: var(--good); color: var(--good); }
.score-ok { border-color: var(--ok); color: var(--ok); }
.score-warn { border-color: var(--warn); color: var(--warn); }
.score-bad { border-color: var(--bad); color: var(--bad); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: .8rem; font-weight: 600; }
.badge-good { background: #12261a; color: var(--good); }
.badge-ok { background: #2a2310; color: var(--ok); }
.badge-warn { background: #2b1d10; color: var(--warn); }
.badge-bad { background: #2b1416; color: var(--bad); }
.badge-neutral { background: var(--bg-soft); color: var(--muted); border: 1px solid var(--border); }
.badge-accent { background: var(--accent-soft); color: var(--accent); }

.bar { background: var(--bg-soft); border-radius: 6px; height: 10px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); }

/* tables */
table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .95rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
tr:hover td { background: rgba(255,255,255,.02); }

/* hero */
.hero { text-align: center; padding: 70px 0 40px; }
.hero h1 { font-size: 2.6rem; margin-bottom: 10px; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
.hero-form { display: flex; gap: 10px; max-width: 560px; margin: 0 auto; }
.hero-form input { flex: 1; }
.section { margin: 56px 0; }
.section h2 { margin-bottom: 6px; }

/* pricing */
.plan { display: flex; flex-direction: column; }
.plan .price { font-size: 2rem; font-weight: 800; margin: 8px 0; }
.plan ul { padding-left: 18px; margin: 10px 0; flex: 1; }
.plan li { margin: 4px 0; }
.plan-featured { border-color: var(--accent); outline: 1px solid var(--accent); }

/* misc */
pre.codeblock {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; overflow-x: auto; font-family: var(--mono); font-size: .85rem;
}
.kit-links { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin: 18px 0 6px; }
.page-head { margin: 26px 0 10px; }
.stat { text-align: center; }
.stat .num { font-size: 1.9rem; font-weight: 800; color: var(--accent); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.spinner { display: inline-block; width: 18px; height: 18px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
  .hero h1 { font-size: 1.9rem; }
  .hero-form { flex-direction: column; }
}

/* cookie consent banner */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: var(--bg-soft); border-top: 1px solid var(--border);
  padding: 14px 20px; display: flex; gap: 16px; align-items: center;
  justify-content: center; flex-wrap: wrap; font-size: .92rem;
  box-shadow: 0 -4px 16px rgba(0,0,0,.4);
}
#cookie-banner .cb-actions { display: flex; gap: 8px; }
