/* Sinkrona marketing site.
   Plain CSS, no build step. Colours are tokens on :root and redefined for dark mode,
   so every rule below only uses var(--...). The blue matches the admin portal's primary colour. */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --primary-soft: #dbeafe;
  --accent: #0ea5e9;
  --new: #059669;
  --new-soft: #d1fae5;
  --band-bg: #0f172a;
  --band-text: #e2e8f0;
  --code-bg: #0f172a;
  --code-text: #e2e8f0;
  --shadow: 0 1px 2px rgb(15 23 42 / 0.06), 0 8px 24px rgb(15 23 42 / 0.06);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1120;
    --bg-alt: #111a2e;
    --surface: #131d33;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --border: #1f2a44;
    --primary: #3b82f6;
    --primary-strong: #60a5fa;
    --primary-soft: #1e3a8a;
    --accent: #38bdf8;
    --new: #34d399;
    --new-soft: #064e3b;
    --band-bg: #1e3a8a;
    --band-text: #e0e7ff;
    --code-bg: #060b16;
    --code-text: #e2e8f0;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
    color-scheme: dark;
  }
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--primary); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.7em 1.3em;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}
.btn-sm { padding: 0.45em 1em; font-size: 0.92rem; }
.btn-lg { padding: 0.9em 1.8em; font-size: 1.1rem; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-strong); }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); }
.btn-light { background: var(--band-text); color: var(--band-bg); white-space: nowrap; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem; }
.accent { color: var(--primary); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 38em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero-points { list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 0.95rem; }
.hero-points li { padding-left: 1.6em; position: relative; margin-bottom: 4px; }
.hero-points li::before { content: "✓"; position: absolute; left: 0; color: var(--new); font-weight: 700; }

.hero-figure { margin: 0; }
.hero-figure svg { width: 100%; height: auto; display: block; }
.svg-lines line { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 4; }
.svg-arrow { fill: var(--muted); }
.svg-node rect { fill: var(--surface); stroke: var(--border); stroke-width: 1.5; }
.svg-node text, .svg-mv text { fill: var(--text); font-size: 13px; font-weight: 600; text-anchor: middle; font-family: inherit; }
.svg-mv circle { fill: var(--primary-soft); stroke: var(--primary); stroke-width: 2; }
.svg-mv text { font-size: 16px; font-weight: 700; }
text.svg-sub { fill: var(--muted); font-size: 11px; font-weight: 400; }

/* Deadline band */
.band { background: var(--band-bg); color: var(--band-text); }
.band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 22px; }
.band p { margin: 0; }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-lead { color: var(--muted); font-size: 1.1rem; max-width: 46em; margin-bottom: 36px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.card p { color: var(--muted); margin: 0; }

.feature { padding: 22px 0; border-top: 1px solid var(--border); }
.feature p { color: var(--muted); margin: 0; }
.tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 2px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-strong); margin-bottom: 8px;
}
.tag-new { background: var(--new-soft); color: var(--new); }

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }
.compare { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.compare th, .compare td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { background: var(--bg-alt); font-weight: 600; }
.compare tbody th { font-weight: 600; white-space: nowrap; }
.compare td { color: var(--muted); }
.compare td:last-child { color: var(--text); font-weight: 500; }

/* Connectors */
.chips { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-weight: 500; }
.code-card { background: var(--code-bg); color: var(--code-text); border-radius: 14px; padding: 20px 24px; max-width: 720px; }
.code-title { font-size: 0.85rem; color: #94a3b8; margin-bottom: 10px; }
.code-card pre { margin: 0; overflow-x: auto; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.88rem; line-height: 1.7; }
.code-card .k { color: #c084fc; }
.code-card .t { color: #67e8f9; }
.code-card .c { color: #64748b; }

/* Editions */
.edition { display: flex; flex-direction: column; }
.edition .price { font-size: 1.4rem; font-weight: 700; color: var(--text); margin: 0 0 16px; }
.edition .btn { align-self: flex-start; margin-top: auto; }
.edition-pro { border-color: var(--primary); }
.checks { list-style: none; padding: 0; margin: 0 0 24px; }
.checks li { padding-left: 1.6em; position: relative; margin-bottom: 8px; color: var(--muted); }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

/* Migration steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 700; margin-bottom: 14px;
}
.steps p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* Contact */
.contact { text-align: center; }
.contact .section-lead { margin-left: auto; margin-right: auto; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 28px 0; font-size: 0.85rem; }
.footer-inner { display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; }

/* Screenshots of the admin portal */
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
.shot a:hover img { border-color: var(--primary); }
.shot figcaption { color: var(--muted); font-size: 0.92rem; margin-top: 10px; }
.shot-main { margin-bottom: 32px; }
.shots { gap: 32px 24px; }

/* Article pages (e.g. MIM end of life): a narrower reading column. */
.prose { max-width: 860px; }
.prose .steps { grid-template-columns: 1fr 1fr; margin-bottom: 24px; }
.prose .table-wrap { margin-bottom: 12px; }
.small { font-size: 0.88rem; }

/* FAQ: native details/summary, so it works without JavaScript and stays crawlable. */
.faq { border-top: 1px solid var(--border); padding: 18px 0; }
.faq:last-child { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; }
.faq p { color: var(--muted); margin: 12px 0 0; }

/* Narrow screens: stack everything into one column. */
@media (max-width: 900px) {
  .hero-grid, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .hero-figure { max-width: 420px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-inner .btn { margin-left: auto; }
  .steps { grid-template-columns: 1fr; }
  .band-inner { flex-direction: column; align-items: flex-start; }
  .hero { padding-top: 48px; }
  .section { padding: 56px 0; }
}

/* Medium screens: the full menu no longer fits on one line, so show only brand and button. */
.brand, .nav-links a, .nav .btn { white-space: nowrap; }
@media (max-width: 1200px) {
  .nav-links { display: none; }
  .nav-inner .btn { margin-left: auto; }
}
@media (max-width: 480px) {
  .nav-inner { gap: 12px; }
  .brand { font-size: 1.02rem; }
  .nav .btn-sm { padding: 0.45em 0.8em; font-size: 0.85rem; }
}

/* About: text next to a contact card */
.about { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.about p { max-width: 42em; }
.about-card p { margin-bottom: 16px; }
.about-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-weight: 600; }
.contact-row { justify-content: center; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 24px; } }

/* Compass teaser: a single highlighted card */
.teaser { border: 1px dashed var(--primary); border-radius: 18px; padding: 40px; background: var(--surface); box-shadow: var(--shadow); max-width: 880px; }
.teaser .section-lead { margin-bottom: 16px; }
.teaser .btn { margin-top: 8px; }
.tag-progress { background: var(--surface); color: var(--primary); border: 1px solid var(--primary); margin-bottom: 14px; }
@media (max-width: 640px) { .teaser { padding: 24px; } }

/* Blog articles */
.article h1 { margin-bottom: 0.3em; }
.article h2 { margin-top: 1.6em; font-size: clamp(1.4rem, 3vw, 1.8rem); }
.article .lead { margin-top: 1.5em; }
.note { border-left: 3px solid var(--primary); background: var(--bg-alt); padding: 12px 16px; border-radius: 0 10px 10px 0; color: var(--muted); font-size: 0.95rem; }

/* How it works (under the Why cards) and the roadmap list (under Features) */
.how { margin-top: 40px; max-width: 860px; }
.how p { color: var(--muted); }
.roadmap { margin-top: 40px; }
.roadmap .chips li { font-weight: 400; color: var(--muted); border-style: dashed; }
.about-name { border-top: 1px solid var(--border); margin-top: 20px; padding-top: 16px; }
.about-name h3 { font-size: 1rem; }
.about-name p { margin: 0; }
.roadmap .chips li { border-radius: 12px; }
.teaser .cta-row { margin: 16px 0 0; } .teaser .cta-row .btn { margin-top: 0; }

/* Clickable Sinkrona Compass node in the hero diagram */
.svg-compass rect { fill: var(--primary-soft); stroke: var(--primary); stroke-width: 1.5; stroke-dasharray: 5 3; transition: stroke-width .15s; }
.svg-compass text { fill: var(--primary-strong); font-size: 13px; font-weight: 700; text-anchor: middle; font-family: inherit; }
.svg-compass text.svg-sub { fill: var(--primary-strong); font-size: 11px; font-weight: 500; }
.svg-link { cursor: pointer; }
.svg-link:hover .svg-compass rect, .svg-link:focus-visible .svg-compass rect { stroke-width: 3; }
