/* Karty public site — shared stylesheet for every page (site/build.mjs
   writes every page to reference this one file instead of embedding its
   own copy of the same ~250 lines — one cacheable file across the whole
   site beats duplicating it per page, and it means a design tweak is one
   edit here, not N edits across every generated HTML file). Extracted
   2026-10-01 from the original single-page site/index.html; design tokens
   below are unchanged from that version. */

@font-face {
  font-family: "Golos Text";
  src: url("/assets/landing-v1/fonts/golos-text-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Golos Text";
  src: url("/assets/landing-v1/fonts/golos-text-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-page: #F8FAFC;
  --surface: #FFFFFF;
  --surface-2: #F1F5F9;
  --border: #E2E8F0;
  --text-heading: #0F172A;
  --text-body: #334155;
  --text-secondary: #64748B;
  --accent: #006B71;
  --accent-soft: #E1F1F1;
  --accent-text-on: #FFFFFF;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-page: #0B1220;
    --surface: #121A2B;
    --surface-2: #1A2438;
    --border: #263349;
    --text-heading: #F1F5F9;
    --text-body: #CBD5E1;
    --text-secondary: #94A3B8;
    --accent: #2DD4BF;
    --accent-soft: rgba(45, 212, 191, 0.12);
    --accent-text-on: #0F172A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg-page: #0B1220;
  --surface: #121A2B;
  --surface-2: #1A2438;
  --border: #263349;
  --text-heading: #F1F5F9;
  --text-body: #CBD5E1;
  --text-secondary: #94A3B8;
  --accent: #2DD4BF;
  --accent-soft: rgba(45, 212, 191, 0.12);
  --accent-text-on: #0F172A;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-body);
  font-family: "Golos Text", -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; }
a { color: inherit; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* --- header --- */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border);
}
.site-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; color: var(--text-heading); text-decoration: none; }
.logo svg { flex-shrink: 0; }
nav.primary { display: flex; gap: 28px; }
nav.primary a { text-decoration: none; color: var(--text-body); font-size: 14.5px; }
nav.primary a:hover, nav.primary a[aria-current="page"] { color: var(--accent); }
.header-actions { display: flex; gap: 10px; align-items: center; }
@media (max-width: 780px) { nav.primary { display: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 6px; padding: 10px 18px; font-size: 14.5px; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: var(--accent); color: var(--accent-text-on); }
.btn-primary:hover { opacity: 0.92; }
.btn-secondary { background: transparent; color: var(--text-heading); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* --- hero --- */
.hero { padding: 64px 0 20px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--accent); background: var(--accent-soft); padding: 5px 11px; border-radius: 100px;
  margin: 0 0 18px;
}
h1 {
  font-size: 40px; line-height: 1.18; font-weight: 700; color: var(--text-heading);
  margin: 0 0 18px; text-wrap: balance;
}
@media (max-width: 640px) { h1 { font-size: 30px; } }
.hero-sub { font-size: 17px; color: var(--text-secondary); max-width: 46ch; margin: 0 0 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.hero-note { font-size: 13px; color: var(--text-secondary); }
.hero-media { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); position: relative; }
.hero-media img { display: block; width: 100%; height: auto; }
.hero-media figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-size: 12px; color: #fff; background: rgba(15,23,42,0.55);
  padding: 6px 12px; margin: 0;
}

/* --- section shell --- */
section { padding: 56px 0; }
.section-head { max-width: 640px; margin: 0 0 36px; }
.section-head .eyebrow { margin-bottom: 12px; }
h2 { font-size: 27px; font-weight: 700; color: var(--text-heading); margin: 0 0 10px; text-wrap: balance; }
.section-head p { color: var(--text-secondary); margin: 0; }

/* --- feature grid --- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 22px;
}
.feature-icon {
  width: 38px; height: 38px; border-radius: 8px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
  color: var(--accent);
}
.feature-card h3 { font-size: 16px; font-weight: 700; color: var(--text-heading); margin: 0 0 8px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); margin: 0; }

/* --- how it works --- */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 780px) { .how-grid { grid-template-columns: 1fr; } }
.how-step { padding-top: 14px; border-top: 2px solid var(--border); }
.how-step .num { font-size: 13px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.how-step h3 { font-size: 16px; font-weight: 700; color: var(--text-heading); margin: 8px 0 8px; }
.how-step p { font-size: 14px; color: var(--text-secondary); margin: 0; }

/* --- pilot / pricing box (original single pilot callout) --- */
.pilot-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 40px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: center;
}
@media (max-width: 780px) { .pilot-box { grid-template-columns: 1fr; padding: 28px; } }
.pilot-box h2 { margin-bottom: 12px; }
.pilot-box p { color: var(--text-secondary); margin: 0 0 4px; }
.pilot-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 9px; }
.pilot-list li { display: flex; gap: 9px; font-size: 14px; color: var(--text-body); }
.pilot-list li svg { flex-shrink: 0; margin-top: 2px; color: var(--accent); }
.pilot-cta { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
@media (max-width: 780px) { .pilot-cta { align-items: stretch; } .pilot-cta .btn { width: 100%; } }

/* --- footer --- */
footer.site {
  border-top: 1px solid var(--border); padding: 36px 0; margin-top: 24px;
}
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-row .logo { font-size: 15px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 13.5px; color: var(--text-secondary); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-attrib { font-size: 12.5px; color: var(--text-secondary); margin-top: 20px; }

/* ====================================================================
   Added 2026-10-01 for the multi-page site (SITE-PLAN.md §2.5-2.8/2.11)
   ==================================================================== */

/* --- generic content page (docs, features, solutions, contacts) --- */
.page-head { padding: 48px 0 8px; }
.page-head h1 { font-size: 32px; margin-bottom: 10px; }
@media (max-width: 640px) { .page-head h1 { font-size: 26px; } }
.page-head .lede { font-size: 16.5px; color: var(--text-secondary); max-width: 62ch; margin: 0; }
.breadcrumbs { font-size: 13px; color: var(--text-secondary); padding: 20px 0 0; }
.breadcrumbs a { text-decoration: none; color: var(--text-secondary); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { margin: 0 6px; opacity: 0.6; }

/* --- long-form docs prose --- */
.prose { padding: 8px 0 64px; max-width: 760px; }
.prose h2 { font-size: 22px; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17px; color: var(--text-heading); margin: 28px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.9em; background: var(--surface-2); padding: 2px 6px; border-radius: 4px;
}
.prose pre {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px;
  padding: 16px 18px; overflow-x: auto; margin: 0 0 18px;
}
.prose pre code { background: none; padding: 0; font-size: 13.5px; line-height: 1.55; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 14px; }
.prose th, .prose td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); }
.prose th { color: var(--text-heading); font-weight: 700; }
.prose blockquote {
  margin: 0 0 18px; padding: 10px 16px; border-left: 3px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 6px 6px 0; color: var(--text-body);
}
.docs-toc { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0 0 32px; font-size: 13.5px; }
.docs-toc a { color: var(--text-secondary); text-decoration: none; }
.docs-toc a:hover { color: var(--accent); }

/* --- solutions / audience cards --- */
.solution-block {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 32px; margin-bottom: 24px;
}
.solution-block h2 { margin-bottom: 8px; }
.solution-block .tag {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); padding: 4px 10px; border-radius: 100px; margin-bottom: 14px;
}
.solution-block ul { margin: 16px 0 0; padding-left: 20px; }
.solution-block li { margin-bottom: 8px; color: var(--text-body); font-size: 14.5px; }

/* --- pricing --- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 980px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 26px; display: flex; flex-direction: column;
}
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.price-card h3 { font-size: 17px; margin: 0 0 6px; color: var(--text-heading); }
.price-card .price { font-size: 28px; font-weight: 700; color: var(--text-heading); margin: 0 0 4px; }
.price-card .price small { font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.price-card .tbd { font-size: 20px; font-weight: 700; color: var(--text-secondary); margin: 0 0 4px; }
.price-card .for { font-size: 13.5px; color: var(--text-secondary); margin: 0 0 18px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 20px; flex-grow: 1; display: grid; gap: 9px; }
.price-card li { display: flex; gap: 8px; font-size: 13.5px; color: var(--text-body); }
.price-card li svg { flex-shrink: 0; margin-top: 2px; color: var(--accent); }
.price-note { font-size: 12.5px; color: var(--text-secondary); margin-top: 10px; }
.compare-box {
  background: var(--surface-2); border-radius: 12px; padding: 28px; margin-top: 40px;
}
.compare-box h2 { font-size: 21px; }
.compare-box ul { padding-left: 20px; margin: 14px 0 0; }
.compare-box li { margin-bottom: 10px; font-size: 14.5px; color: var(--text-body); }

/* --- contacts --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 56px; }
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 28px;
}
.contact-card h2 { font-size: 19px; margin: 0 0 14px; }
.contact-card dl { margin: 0; }
.contact-card dt { font-size: 12.5px; color: var(--text-secondary); margin-top: 14px; }
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: 2px 0 0; font-size: 15px; color: var(--text-heading); }
.contact-card .placeholder { color: var(--text-secondary); font-style: italic; }

/* --- 404 --- */
.not-found { padding: 100px 0; text-align: center; }
.not-found .code { font-size: 72px; font-weight: 700; color: var(--accent); margin: 0; }
.not-found h1 { margin: 12px 0 10px; }
.not-found p { color: var(--text-secondary); margin: 0 0 28px; }
