/* Midchat.io — shared site styles */
:root {
  --bg: #f8fafc;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --card: #ffffff;
  --accent: #0f172a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.06);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  line-height: 1.55; font-size: 17px;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { opacity: .85; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 1.25rem; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(248,250,252,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 64px; flex-wrap: wrap; padding-top: .5rem; padding-bottom: .5rem;
}
.logo {
  font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none;
}
.logo span { color: var(--muted); font-weight: 600; }
.nav { display: flex; flex-wrap: wrap; gap: .65rem 1rem; font-size: .92rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a.active, .nav a:hover { color: var(--ink); }
main.wrap { padding-top: 2.5rem; padding-bottom: 4rem; }
.hero { margin-bottom: 2.5rem; }
.hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.15;
  letter-spacing: -.03em; margin: 0 0 .75rem;
}
.hero .lede { font-size: 1.15rem; color: var(--muted); max-width: 42rem; }
.badge {
  display: inline-block; font-size: .75rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  padding: .25rem .55rem; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, white);
  color: var(--accent); margin-bottom: .75rem;
}
.grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow);
}
.card h2, .card h3 { margin-top: 0; letter-spacing: -.02em; }
.plugin-card { border-top: 4px solid var(--accent); }
.plugin-card .icon {
  width: 56px; height: 56px; border-radius: 12px; display: block; margin-bottom: .75rem;
}
.plugin-card .meta { color: var(--muted); font-size: .9rem; margin: .35rem 0 1rem; }
.btn {
  display: inline-block; background: var(--accent); color: #fff !important;
  padding: .65rem 1rem; border-radius: 10px; text-decoration: none; font-weight: 600;
}
.btn.secondary {
  background: transparent; color: var(--accent) !important;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
}
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0; }
.section { margin: 2.5rem 0; }
.section h2 { letter-spacing: -.02em; margin-bottom: .75rem; }
.bullets { list-style: none; padding: 0; margin: 0; }
.bullets li {
  padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.bullets li:last-child { border-bottom: 0; }
.bullets strong { display: block; margin-bottom: .2rem; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  counter-increment: step; position: relative;
  padding: .85rem 0 .85rem 2.75rem; border-bottom: 1px solid var(--line);
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: .85rem;
  width: 1.85rem; height: 1.85rem; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: .9rem;
  display: grid; place-items: center;
}
.prompt-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.prompt-list code {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .4rem .75rem; font-size: .9rem;
}
.example {
  background: #0f172a; color: #e2e8f0; border-radius: var(--radius);
  padding: 1.25rem; font-size: 1rem;
}
.draft-banner {
  background: #fff7ed; border: 1px solid #fdba74; color: #9a3412;
  padding: .85rem 1rem; border-radius: 10px; margin: 0 0 1.5rem;
}
.legal h2 { margin-top: 2rem; font-size: 1.25rem; }
.legal table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.legal th, .legal td {
  border: 1px solid var(--line); padding: .6rem .7rem; text-align: left; vertical-align: top;
}
.legal th { background: #f1f5f9; }
.muted { color: var(--muted); }
.site-footer {
  border-top: 1px solid var(--line); background: #fff;
  padding: 2rem 0 1.5rem; font-size: .92rem; color: var(--muted);
}
.footer-inner {
  display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.footer-links { display: flex; flex-wrap: wrap; gap: .75rem 1.1rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-note { margin-top: 1rem; font-size: .8rem; opacity: .8; }
.plugin-hero {
  display: grid; gap: 1.5rem; align-items: center;
  grid-template-columns: 88px 1fr;
}
.plugin-hero img {
  width: 88px; height: 88px; border-radius: 20px;
  box-shadow: var(--shadow); background: #fff;
}
@media (max-width: 640px) {
  .plugin-hero { grid-template-columns: 1fr; }
  .nav { font-size: .85rem; }
}
