/* northfiles — shared stylesheet */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-tint: #eef4ff;
  --text: #121826;
  --text-muted: #556070;
  --border: #e2e7ee;
  --accent: #2456e6;
  --accent-dark: #1a40b0;
  --accent-soft: #dfe8ff;
  --ok: #138a52;
  --ok-soft: #e3f6ec;
  --code-bg: #0f1623;
  --code-text: #e3e9f3;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(18, 24, 38, .04), 0 8px 24px rgba(18, 24, 38, .06);
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible,
.btn:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }

code {
  font-family: var(--mono);
  font-size: .9em;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: .1em .35em;
}

pre {
  margin: 0 0 1.5em;
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: var(--radius-sm);
  padding: 1.1em 1.25em;
  overflow-x: auto;
  font-size: .875rem;
  line-height: 1.55;
}
pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 16px; top: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px; flex-wrap: wrap;
}
.logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 1.2rem; letter-spacing: -0.03em; color: var(--text);
}
.logo:hover { text-decoration: none; }
.logo svg { width: 26px; height: 26px; flex: none; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a {
  display: block; padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--text-muted); font-size: .95rem; font-weight: 500; white-space: nowrap;
}
.site-nav a:hover { background: var(--bg-soft); color: var(--text); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--accent); background: var(--bg-tint); }

@media (max-width: 767px) {
  .site-header { position: static; }
  .header-inner { padding-top: 10px; }
  .header-inner { gap: 8px; }
  .site-nav { width: 100%; }
  .site-nav ul { flex-wrap: wrap; gap: 2px; margin: 0 -8px; padding-bottom: 8px; }
  .site-nav a { padding: 6px 8px; font-size: .9rem; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 1rem; line-height: 1.2;
  border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: #c5ced9; background: var(--bg-soft); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
.section { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
@media (min-width: 768px) { .section { padding: 96px 0; } }

.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; margin-bottom: 12px;
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}
.lead { font-size: 1.15rem; color: var(--text-muted); }

/* Hero */
.hero { padding: 56px 0 64px; background: linear-gradient(180deg, var(--bg-tint) 0%, var(--bg) 100%); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { max-width: 14em; }
.hero .lead { max-width: 34em; margin-bottom: 28px; }
.hero-note { margin-top: 16px; font-size: .9rem; color: var(--text-muted); }
.hero-art { width: 100%; max-width: 520px; margin: 0 auto; }
.hero-art svg { display: block; width: 100%; }
@media (min-width: 960px) {
  .hero { padding: 96px 0 104px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
}

.page-hero { padding: 56px 0 40px; background: linear-gradient(180deg, var(--bg-tint) 0%, var(--bg) 100%); }
.page-hero .lead { max-width: 40em; }
@media (min-width: 768px) { .page-hero { padding: 80px 0 48px; } }

/* Grids and cards */
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--text-muted); }

.icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px; margin-bottom: 16px;
  background: var(--accent-soft); color: var(--accent);
}
.icon svg { width: 22px; height: 22px; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; }
.steps li::before {
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; margin-bottom: 14px;
  background: var(--accent); color: #fff; font-weight: 700;
}

/* Feature rows */
.feature-row { display: grid; gap: 32px; align-items: start; padding: 40px 0; border-top: 1px solid var(--border); }
.feature-row:first-child { border-top: 0; padding-top: 0; }
.feature-row h2 { font-size: 1.5rem; }
.feature-row p { color: var(--text-muted); }
@media (min-width: 900px) { .feature-row { grid-template-columns: 1fr 1fr; gap: 56px; } }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft);
}
.checklist li::after {
  content: ""; position: absolute; left: 6px; top: calc(.3em + 4px); width: 5px; height: 9px;
  border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* Pricing */
.pricing { align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 28px; }
.plan-featured { border: 2px solid var(--accent); box-shadow: var(--shadow); position: relative; }
.plan-badge {
  position: absolute; top: -13px; left: 28px;
  background: var(--accent); color: #fff; font-size: .75rem; font-weight: 600;
  padding: 3px 10px; border-radius: 999px; letter-spacing: .02em;
}
.plan-name { font-size: 1.25rem; margin-bottom: 4px; }
.plan-for { color: var(--text-muted); margin-bottom: 20px; min-height: 3.2em; }
.plan-price { font-size: 1.05rem; font-weight: 600; margin-bottom: 20px; }
.plan-price small { display: block; font-weight: 400; color: var(--text-muted); font-size: .9rem; }
.plan-limits { list-style: none; padding: 0; margin: 0 0 20px; border-top: 1px solid var(--border); }
.plan-limits li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .95rem; }
.plan-limits span:first-child { color: var(--text-muted); }
.plan-limits span:last-child { font-weight: 600; text-align: right; }
.plan .checklist { margin-bottom: 28px; font-size: .95rem; }
.plan .btn { margin-top: auto; }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 12px 0 0; color: var(--text-muted); }

/* Docs */
.docs-layout { display: grid; gap: 40px; }
@media (min-width: 960px) { .docs-layout { grid-template-columns: 220px 1fr; gap: 56px; } }
.docs-toc { font-size: .95rem; }
.docs-toc ul { list-style: none; padding: 0; margin: 0; }
.docs-toc a { display: block; padding: 6px 0; color: var(--text-muted); }
.docs-toc a:hover { color: var(--accent); }
.docs-toc-title { font-weight: 600; margin-bottom: 8px; }
@media (min-width: 960px) { .docs-toc { position: sticky; top: 96px; align-self: start; } }
.docs-content { min-width: 0; }
.docs-content section { margin-bottom: 56px; scroll-margin-top: 96px; }
.docs-content h2 { font-size: 1.6rem; }
.docs-content h3 { margin-top: 1.6em; }

.table-wrap { overflow-x: auto; margin-bottom: 1.5em; border: 1px solid var(--border); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--bg-soft); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

.callout {
  border-left: 4px solid var(--accent); background: var(--bg-tint);
  padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-bottom: 1.5em;
}
.callout p:last-child { margin-bottom: 0; }

/* Status */
.status-banner {
  display: flex; align-items: center; gap: 14px;
  background: var(--ok-soft); border: 1px solid #bfe6d1; color: #0d5f39;
  padding: 18px 22px; border-radius: var(--radius); font-weight: 600; margin-bottom: 32px;
}
.status-banner svg { width: 26px; height: 26px; flex: none; }
.status-list { list-style: none; padding: 0; margin: 0 0 40px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.status-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; border-bottom: 1px solid var(--border); background: #fff;
}
.status-list li:last-child { border-bottom: 0; }
.status-list .svc-name { font-weight: 600; }
.status-list .svc-desc { display: block; color: var(--text-muted); font-size: .9rem; font-weight: 400; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  color: var(--ok); font-weight: 600; font-size: .9rem;
}
.status-pill::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }

/* Prose pages */
.prose { max-width: 720px; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose p, .prose li { color: #2c3646; }
.prose .meta { color: var(--text-muted); font-size: .95rem; }

/* CTA */
.cta {
  background: var(--text); color: #fff; border-radius: 20px;
  padding: 48px 24px; text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: #c3cbd8; max-width: 36em; margin-left: auto; margin-right: auto; margin-bottom: 28px; }
.cta .btn-row { justify-content: center; }
.cta .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.cta .btn-secondary:hover { background: rgba(255, 255, 255, .08); }
@media (min-width: 768px) { .cta { padding: 64px 48px; } }

/* Contact */
.contact-card { max-width: 640px; text-align: center; padding: 40px 24px; }
.contact-email {
  display: inline-block; font-size: clamp(1.3rem, 5vw, 2rem); font-weight: 700;
  letter-spacing: -0.02em; margin: 8px 0 16px; word-break: break-all;
}

/* 404 */
.notfound { text-align: center; padding: 96px 0 120px; }
.notfound .code { font-size: clamp(4rem, 18vw, 8rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--accent-soft); margin-bottom: 8px; }
.notfound .lead { max-width: 28em; margin: 0 auto 28px; }
.notfound .btn-row { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 0; font-size: .95rem; color: var(--text-muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--accent); }

.muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; }
