:root { --ink:#10233f; --muted:#5b6b80; --blue:#1769e0; --teal:#14b8a6; --line:#e4ebf3; }
html { scroll-behavior:smooth; }
body { color:var(--ink); }
.container-wide { width:min(1160px, calc(100% - 2.5rem)); margin-inline:auto; }
.eyebrow { letter-spacing:.14em; text-transform:uppercase; font-size:.75rem; font-weight:800; color:#0f8f87; }
.section-pad { padding-block:5rem; }
.soft-grid { background-image:linear-gradient(rgba(23,105,224,.045) 1px, transparent 1px),linear-gradient(90deg,rgba(23,105,224,.045) 1px,transparent 1px); background-size:34px 34px; }
.hero-glow { background:radial-gradient(circle at 85% 15%,rgba(20,184,166,.14),transparent 28%),radial-gradient(circle at 10% 90%,rgba(23,105,224,.09),transparent 32%),#f7faff; }
.card { border:1px solid var(--line); border-radius:1.1rem; box-shadow:0 12px 35px rgba(16,35,63,.045); }
/* zero specificity so Tailwind bg-* utilities on a card (e.g. bg-slate-900) take effect */
:where(.card) { background-color:white; }
.icon-box { width:2.8rem;height:2.8rem;display:grid;place-items:center;border-radius:.85rem;background:#eaf3ff;color:#1769e0;flex:none; }
.prose-custom p { color:var(--muted); line-height:1.8; margin-top:.85rem; }
.prose-custom h2 { font-size:clamp(1.6rem,3vw,2.25rem);font-weight:800;letter-spacing:-.035em;line-height:1.15; }
.prose-custom h3 { font-size:1.1rem;font-weight:750; }
.prose-custom ul { margin-top:1rem; padding-left:1.2rem; color:var(--muted); line-height:1.85; list-style:disc; }
.btn-primary { align-items:center;justify-content:center;gap:.55rem;padding:.9rem 1.2rem;border-radius:.75rem;background:var(--blue);color:white;font-weight:750;box-shadow:0 8px 20px rgba(23,105,224,.18);transition:.2s; }
/* zero specificity so Tailwind display utilities (hidden, sm:inline-flex, w-full…) win */
:where(.btn-primary, .btn-secondary) { display:inline-flex; }
.btn-primary:hover { background:#1058c2;transform:translateY(-1px); }
.btn-primary:disabled { background:#7ea9e3;transform:none;cursor:not-allowed;box-shadow:none; }
.btn-secondary { align-items:center;justify-content:center;padding:.9rem 1.2rem;border-radius:.75rem;border:1px solid #cbd8e8;color:var(--ink);font-weight:750;background:white; }
.btn-secondary:hover { border-color:#8ba9ce;background:#f8fbff; }
.nav-link { color:#40536d;font-size:.93rem;font-weight:650; }
.nav-link:hover,.nav-link[aria-current="page"] { color:var(--blue); }
.tag { display:inline-flex;padding:.35rem .65rem;border-radius:999px;background:#eaf3ff;color:#1758ad;font-size:.75rem;font-weight:750; }
.placeholder-note { border:1px dashed #d69b36;background:#fffaf0;color:#805515;border-radius:.75rem;padding:.8rem 1rem;font-size:.85rem; }
.form-status { margin-top:1rem;text-align:center;font-size:.875rem;font-weight:700;line-height:1.6;color:#40536d; }
.form-status[data-state="success"] { color:#047857; }
.form-status[data-state="error"] { color:#b91c1c; }
.footer-link { color:#b9c8dc; }
.footer-link:hover { color:white; }
@media(max-width:640px){ .section-pad{padding-block:3.5rem}.container-wide{width:min(100% - 1.5rem,1160px)} }
[id] { scroll-margin-top:96px; }
/* FAQ accordion */
.faq-item > summary { list-style:none; cursor:pointer; }
.faq-item > summary::-webkit-details-marker { display:none; }
.faq-item > summary:focus-visible { outline:2px solid var(--blue); outline-offset:4px; border-radius:.5rem; }
.faq-icon { transition:transform .2s; }
.faq-item[open] .faq-icon { transform:rotate(45deg); }
/* Header "Services" dropdown: opens on hover, keyboard focus, or click (.is-open, set by site.js) */
.dropdown-panel { display:none; width:20rem; max-width:calc(100vw - 2rem); }
.dropdown-panel a span { white-space:nowrap; }
.nav-dropdown:hover > .dropdown-panel,
.nav-dropdown:focus-within > .dropdown-panel,
.nav-dropdown.is-open > .dropdown-panel { display:block; }
.nav-dropdown:hover svg, .nav-dropdown.is-open svg { transform:rotate(180deg); }
/* Long-form guide content (Markdown) */
.guide-prose { color:#334155; font-size:1.0625rem; line-height:1.8; }
.guide-prose > * + * { margin-top:1.1rem; }
.guide-prose h2 { margin-top:3rem; font-size:clamp(1.5rem,2.6vw,2rem); font-weight:800; letter-spacing:-.03em; line-height:1.2; color:var(--ink); }
.guide-prose h3 { margin-top:2rem; font-size:1.2rem; font-weight:800; color:var(--ink); }
.guide-prose h2 + *, .guide-prose h3 + * { margin-top:.75rem; }
.guide-prose a { color:var(--blue); font-weight:600; text-decoration:underline; text-underline-offset:2px; }
.guide-prose strong { color:var(--ink); }
.guide-prose ul { list-style:disc; padding-left:1.4rem; }
.guide-prose ol { list-style:decimal; padding-left:1.4rem; }
.guide-prose li + li { margin-top:.4rem; }
.guide-prose li::marker { color:#0f8f87; font-weight:700; }
.guide-prose :not(pre) > code { background:#eef2f7; color:#0f2a4a; border-radius:.35rem; padding:.1rem .35rem; font-size:.88em; overflow-wrap:anywhere; }
.guide-prose pre { background:#0b1a30; color:#e2e8f0; border-radius:.9rem; padding:1.1rem 1.25rem; overflow-x:auto; font-size:.85rem; line-height:1.65; }
.guide-prose pre code { background:none; padding:0; color:inherit; }
.guide-prose blockquote { border-left:4px solid var(--teal); background:#f0fdfa; padding:1rem 1.25rem; border-radius:0 .75rem .75rem 0; color:#134e4a; }
.guide-prose blockquote > * + * { margin-top:.6rem; }
.guide-prose .table-wrap { overflow-x:auto; border:1px solid var(--line); border-radius:1rem; }
.guide-prose table { width:100%; min-width:560px; border-collapse:collapse; font-size:.92rem; line-height:1.55; }
.guide-prose th { background:#f8fafc; text-align:left; font-weight:800; color:var(--ink); }
.guide-prose th, .guide-prose td { padding:.75rem 1rem; border-bottom:1px solid var(--line); vertical-align:top; }
.guide-prose tr:last-child td { border-bottom:0; }
.guide-prose .callout { border:1px solid #bfdbfe; background:#eff6ff; border-radius:1rem; padding:1.1rem 1.25rem; }
/* Language switcher (<details>) */
.lang-switch > summary { list-style:none; }
.lang-switch > summary::-webkit-details-marker { display:none; }
/* Diagrams in guides and posts: scroll sideways on phones instead of shrinking the text */
.guide-prose figure.diagram { margin-top:2rem; }
.guide-prose .diagram-scroll { overflow-x:auto; border:1px solid var(--line); border-radius:1rem; background:#f8fafc; }
.guide-prose .diagram-scroll img { display:block; width:100%; height:auto; min-width:540px; }
.guide-prose figcaption { margin-top:.6rem; font-size:.9rem; line-height:1.5; color:var(--muted); text-align:center; }
/* Terminal screenshot in posts: window frame; scrolls sideways on phones instead of shrinking the text */
.guide-prose .terminal-window { border:1px solid var(--line); border-radius:.9rem; overflow:hidden; background:#fff; box-shadow:0 12px 30px -14px rgba(16,35,63,.3); }
.guide-prose .terminal-bar { display:flex; gap:6px; padding:10px 14px; background:#e5e7eb; }
.guide-prose .terminal-bar span { width:11px; height:11px; border-radius:50%; background:#ff5f57; }
.guide-prose .terminal-bar span:nth-child(2) { background:#febc2e; }
.guide-prose .terminal-bar span:nth-child(3) { background:#28c840; }
.guide-prose .terminal-scroll { overflow-x:auto; }
.guide-prose .terminal-scroll img { display:block; width:100%; height:auto; min-width:620px; }
/* Website screenshot in guides: browser frame with the page address; the image shrinks to fit on phones */
.guide-prose figure.site-shot { margin-top:1.5rem; margin-bottom:1.5rem; }
.guide-prose .browser-window { border:1px solid var(--line); border-radius:.9rem; overflow:hidden; background:#fff; box-shadow:0 12px 30px -14px rgba(16,35,63,.3); }
.guide-prose .browser-bar { display:flex; align-items:center; gap:6px; padding:8px 14px; background:#e5e7eb; }
.guide-prose .browser-bar > span { flex:none; width:11px; height:11px; border-radius:50%; background:#ff5f57; }
.guide-prose .browser-bar > span:nth-child(2) { background:#febc2e; }
.guide-prose .browser-bar > span:nth-child(3) { background:#28c840; }
.guide-prose .browser-url { flex:1; min-width:0; margin-left:10px; padding:3px 12px; border-radius:6px; background:#fff; color:var(--muted); font-size:.78rem; line-height:1.5; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.guide-prose .browser-window img { display:block; width:100%; height:auto; }
