/* ───────────────────────────────────────────────────────────────────────────
   pages.css — shared chrome + content components for korden.dev SEO/content pages.
   Generated pages (pillars, alternatives, use-cases, glossary, blog) all link this
   one file, so the header/menu and look are identical everywhere. Mirrors the
   brand tokens used by index.html / the legal pages. Do not fork per page.
   ─────────────────────────────────────────────────────────────────────────── */

:root {
  --bg: #0B0D10;
  --bg-2: #0E1115;
  --surface: #111418;
  --surface-2: #161A20;
  --fg: #ECEEF2;
  --fg-soft: #C7CDD8;
  --muted: #98A1B0;
  --muted-2: #747D8D;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --accent: #F65F12;
  --accent-hi: #FF7E3A;
  --accent-dim: rgba(246, 95, 18, 0.12);
  --accent-bd: rgba(246, 95, 18, 0.28);
  --ok: #46C28A;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--fg);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  line-height: 1.65; overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
::selection { background: rgba(246, 95, 18, 0.28); }
img { max-width: 100%; }

/* Ambient top grid (matches the rest of the site) */
.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 100% 55% at 50% -10%, #000 35%, transparent 78%);
  mask-image: radial-gradient(ellipse 100% 55% at 50% -10%, #000 35%, transparent 78%);
}

/* ── Header (the standard menu — identical on every page) ──
   Mirrors the homepage exactly: a full-width sticky bar whose content is centered
   in a max-width inner container, so the logo/menu sit in the same place site-wide. */
.header {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center;
  height: 4rem; padding: 0 clamp(1.1rem, 5vw, 2.5rem);
  background: rgba(11, 13, 16, 0.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: 100%; max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.wordmark { display: inline-flex; align-items: center; color: var(--fg); }
.wordmark img { height: 26px; width: auto; display: block; }
.brand { display: flex; align-items: center; gap: clamp(1rem, 4vw, 2.5rem); }
.nav { display: none; align-items: center; gap: clamp(1rem, 2.4vw, 1.8rem); }
.nav-link { font-size: 0.875rem; font-weight: 480; color: var(--muted); text-decoration: none; transition: color 0.15s; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--fg); }
@media (min-width: 840px) { .nav { display: flex; } }
.actions-nav { display: flex; align-items: center; gap: 0.6rem; }
.signin { font-size: 0.85rem; font-weight: 560; color: var(--fg-soft); text-decoration: none; padding: 0.5rem 0.9rem; border-radius: 9px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); transition: color 0.15s, border-color 0.15s, background 0.15s; }
.signin:hover { color: var(--fg); border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.07); }
@media (max-width: 420px) { .signin { display: none; } }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-size: 0.85rem; font-weight: 560; padding: 0.55rem 0.95rem; border-radius: 9px;
  border: 1px solid transparent; background: var(--accent); color: #fff; cursor: pointer;
  transition: background 0.15s, transform 0.12s, border-color 0.15s;
}
.btn:hover { background: var(--accent-hi); text-decoration: none; transform: translateY(-1px); }
.btn-lg { font-size: 0.95rem; padding: 0.8rem 1.4rem; border-radius: 10px; }
.btn-ghost { background: rgba(255, 255, 255, 0.03); border-color: var(--line-2); color: var(--fg); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.22); }

/* ── Page shell ── */
.wrap { position: relative; z-index: 2; max-width: 64rem; margin: 0 auto; padding: 0 clamp(1.1rem, 5vw, 2.5rem); }
.wrap-narrow { max-width: 46rem; }

/* ── Breadcrumb ── */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--muted-2); padding-top: 1.6rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--fg); }
.crumbs .sep { color: var(--muted-2); }

/* ── Hero ── */
.hero { padding: clamp(2rem, 5vw, 3.4rem) 0 clamp(1.6rem, 4vw, 2.4rem); }
.eyebrow { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--accent-hi); }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.1rem); line-height: 1.08; letter-spacing: -0.035em; font-weight: 720; margin: 0.7rem 0 0.6rem; color: var(--fg); }
.hero .lede { color: var(--fg-soft); font-size: clamp(1.05rem, 2.2vw, 1.2rem); max-width: 42rem; margin-bottom: 1.5rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.4rem; }

/* ── Prose / content sections ── */
.prose { padding: 0.4rem 0 1rem; }
.prose section { margin: 2.2rem 0; }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); font-weight: 680; letter-spacing: -0.02em; margin: 0 0 0.5rem; color: var(--fg); scroll-margin-top: 5rem; }
.prose h3 { font-size: 1.12rem; font-weight: 640; margin: 1.4rem 0 0.5rem; color: var(--fg-soft); }
.prose p { color: var(--muted); font-size: 1rem; margin-bottom: 0.95rem; }
.prose p.lead { color: var(--fg-soft); font-size: 1.06rem; }
.prose strong { color: var(--fg-soft); font-weight: 600; }
.prose a { color: var(--accent); }
.prose a:hover { text-decoration: underline; }
.prose ul, .prose ol { padding-left: 1.25rem; margin-bottom: 1rem; display: flex; flex-direction: column; gap: 0.45rem; }
.prose li { color: var(--muted); font-size: 1rem; }
.prose li::marker { color: var(--accent); }

/* The lead answer block right under an H2 — the snippet AI engines lift (AEO). */
.answer { color: var(--fg-soft); font-size: 1.05rem; border-left: 2px solid var(--accent-bd); padding-left: 1rem; margin: 0.2rem 0 1.1rem; }

/* ── Callout ── */
.callout { border: 1px solid var(--line-2); border-left: 3px solid var(--accent); border-radius: 10px; background: var(--surface); padding: 1rem 1.2rem; margin: 1.5rem 0; color: var(--fg-soft); font-size: 0.95rem; }

/* ── Feature / card grid ── */
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin: 1.2rem 0; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 1.25rem; transition: border-color 0.15s, transform 0.15s; }
a.card:hover { border-color: var(--accent-bd); transform: translateY(-2px); }
.card h3 { font-size: 1.02rem; font-weight: 620; color: var(--fg); margin: 0 0 0.35rem; }
.card p { font-size: 0.9rem; color: var(--muted); margin: 0; }
.card .k { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-hi); font-weight: 600; }

/* ── Comparison table ── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 1.3rem 0; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 34rem; }
table.cmp th, table.cmp td { text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cmp thead th { background: var(--surface-2); color: var(--fg); font-weight: 620; font-size: 0.8rem; letter-spacing: 0.02em; }
table.cmp tbody tr:last-child td { border-bottom: none; }
table.cmp td:first-child, table.cmp th:first-child { color: var(--fg-soft); font-weight: 560; }
table.cmp .yes { color: var(--ok); font-weight: 600; }
table.cmp .no { color: var(--muted-2); }
table.cmp .korden { color: var(--accent-hi); font-weight: 600; }

/* ── FAQ accordion ── */
.faq { display: flex; flex-direction: column; gap: 0.7rem; margin: 1rem 0; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; user-select: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem 1.25rem; font-size: 0.98rem; font-weight: 550; color: var(--fg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: rgba(255, 255, 255, 0.02); }
.faq summary::after { content: "+"; color: var(--muted); font-size: 1.2rem; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 1.25rem 1.15rem; color: var(--muted); font-size: 0.93rem; line-height: 1.65; }
.faq .ans a { color: var(--accent); }

/* ── Related links ── */
.related { margin: 2.4rem 0 1rem; }
.related h2 { font-size: 1.2rem; font-weight: 660; margin-bottom: 0.9rem; }

/* ── CTA band ── */
.cta-band { position: relative; margin: 3rem 0 1rem; padding: clamp(2rem, 5vw, 3rem); text-align: center; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 60% 100% at 50% 0%, var(--accent-dim), transparent 70%); }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); letter-spacing: -0.03em; font-weight: 680; margin-bottom: 0.6rem; }
.cta-band p { color: var(--muted); max-width: 34rem; margin: 0 auto 1.5rem; }
.cta-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; justify-content: center; }

/* ── Blog list ── */
.post-list { display: flex; flex-direction: column; gap: 0.9rem; margin: 1.4rem 0; }
.post-item { display: block; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 1.3rem 1.4rem; transition: border-color 0.15s, transform 0.15s; }
.post-item:hover { border-color: var(--accent-bd); transform: translateY(-2px); }
.post-item h3 { font-size: 1.12rem; font-weight: 640; color: var(--fg); margin-bottom: 0.3rem; }
.post-item p { color: var(--muted); font-size: 0.92rem; margin: 0; }
.post-meta { font-size: 0.78rem; color: var(--muted-2); margin-bottom: 0.5rem; }
.article-meta { color: var(--muted-2); font-size: 0.86rem; margin: 0.4rem 0 1.6rem; }

/* ── Pills ── */
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.pill { font-size: 0.78rem; color: var(--fg-soft); border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); padding: 0.32rem 0.7rem; border-radius: 999px; }

/* ── Footer (shared; richer than legal pages — gives the internal links) ── */
.site-footer { position: relative; z-index: 2; border-top: 1px solid var(--line); margin-top: 3rem; padding: clamp(2.4rem, 5vw, 3.4rem) clamp(1.1rem, 5vw, 2.5rem) 2.5rem; }
.footer-grid { max-width: 64rem; margin: 0 auto; display: grid; gap: 2rem; grid-template-columns: 1.5fr repeat(4, 1fr); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand p { color: var(--muted-2); font-size: 0.85rem; line-height: 1.6; max-width: 20rem; margin-top: 0.8rem; }
.footer-col h4 { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.8rem; font-weight: 600; }
.footer-col a { display: block; color: var(--muted-2); text-decoration: none; font-size: 0.86rem; padding: 0.26rem 0; transition: color 0.15s; }
.footer-col a:hover { color: var(--fg); }
.footer-bar { max-width: 64rem; margin: 2.2rem auto 0; padding-top: 1.4rem; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.8rem; color: var(--muted-2); }
.footer-bar a { color: var(--muted-2); }
.footer-bar a:hover { color: var(--fg); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
