/* opendb landing. Same palette as the dashboard (apps/opendb/manager/public/styles.css). */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --border: #e2e5ea;
  --text: #15171c;
  --muted: #5f6571;
  --accent: #2563eb;
  --accent-soft: #e8efff;
  --ok: #15803d;
  --code-bg: #0f1115;
  --code-text: #e8e9ec;
  --code-muted: #8b919c;
  --code-str: #86efac;
  --code-key: #93c5fd;
  --code-num: #fcd34d;
  --shadow: 0 20px 50px rgba(15, 18, 24, 0.12);
  --radius: 12px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f12;
    --surface: #16181c;
    --surface-2: #121418;
    --border: #2a2e35;
    --text: #e8e9ec;
    --muted: #9aa0ab;
    --accent: #3b82f6;
    --accent-soft: #1b2a45;
    --ok: #4ade80;
    --code-bg: #0a0b0e;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: 16px; top: -48px; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 20; }
.skip:focus { top: 12px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--text); }
.brand:hover { text-decoration: none; }
.logo { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.logo svg { width: 17px; height: 17px; }
.links { display: flex; gap: 22px; margin-right: auto; }
.links a { color: var(--muted); font-size: 15px; }
.links a:hover { color: var(--text); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.lang a { color: var(--muted); padding: 6px 10px; font: 600 12px var(--sans); }
.lang a:hover { color: var(--text); text-decoration: none; }
.lang a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-weight: 600; font-size: 15px;
}
.btn:hover { text-decoration: none; border-color: var(--muted); }
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.small { padding: 8px 14px; font-size: 14px; }

/* Hero */
.hero { padding: 84px 0 56px; background: radial-gradient(900px 420px at 85% -10%, var(--accent-soft), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 650; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); font-weight: 750; }
.lead { color: var(--muted); font-size: 18px; margin-top: 20px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.window { margin: 0; background: var(--code-bg); border: 1px solid #23262d; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.window-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid #23262d; }
.window-bar > span { width: 11px; height: 11px; border-radius: 50%; background: #3a3f48; }
.window-bar em { color: var(--code-muted); font: 12px var(--mono); margin-left: 8px; font-style: normal; }
.window pre { margin: 0; padding: 18px 20px 20px; overflow-x: auto; color: var(--code-text); font: 13px/1.7 var(--mono); }
.window code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; }
.c-prompt, .c-comment { color: var(--code-muted); }
.c-str { color: var(--code-str); }
.c-key { color: var(--code-key); }
.c-num { color: var(--code-num); }
.c-var { color: #f0abfc; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 64px 0 0; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stats div { background: var(--surface); padding: 20px 22px; }
.stats dt { color: var(--muted); font-size: 13px; }
.stats dd { margin: 4px 0 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }

/* Sections */
.section { padding: 96px 0; }
.section.alt { background: var(--surface-2); border-block: 1px solid var(--border); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 720; max-width: 22em; }
.sub { color: var(--muted); font-size: 17px; margin-top: 16px; max-width: 40em; }
.sub + .sub { margin-top: 12px; }
.note { color: var(--muted); font-size: 14px; margin-top: 28px; }

.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.features article { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.features h3 { font-size: 17px; margin: 14px 0 8px; }
.features p { color: var(--muted); font-size: 14.5px; }
.ico { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Architecture */
.arch { margin-top: 44px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: grid; gap: 18px; }
.arch-row { display: flex; align-items: stretch; gap: 10px; }
.arch-row.secondary { padding-top: 18px; border-top: 1px dashed var(--border); }
.node { flex: 1; min-width: 0; border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; background: var(--bg); display: flex; flex-direction: column; gap: 4px; }
.node strong { font-size: 15px; }
.node span { color: var(--muted); font-size: 13px; }
.node.accent { border-color: var(--accent); background: var(--accent-soft); }
.node.stack { box-shadow: 5px 5px 0 -1px var(--bg), 5px 5px 0 0 var(--border); }
.node.db { border-color: var(--ok); }
.arrow { flex: none; width: 22px; align-self: center; height: 2px; background: var(--muted); position: relative; opacity: 0.6; }
.arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--muted); border-right: 0; }
.arch-row.secondary .node:last-child { flex: 1; }
.arch-row.secondary::after { content: ""; flex: 1; }

.steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { position: relative; padding: 22px 22px 22px 70px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.steps li > span { position: absolute; left: 22px; top: 22px; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.steps h3 { font-size: 17px; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 14.5px; }

/* Security + start */
.two { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding: 16px 18px 16px 50px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.checks li::before { content: ""; position: absolute; left: 18px; top: 19px; width: 18px; height: 18px; border-radius: 50%; background: var(--ok); opacity: 0.15; }
.checks li::after { content: ""; position: absolute; left: 24px; top: 23px; width: 5px; height: 9px; border: solid var(--ok); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Service */
.features.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 44px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px 24px; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.plan .badge { position: absolute; top: -12px; left: 24px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 650; padding: 3px 10px; border-radius: 999px; }
.plan h3 { font-size: 20px; }
.plan-for { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.price { margin: 18px 0 22px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price .amount { font-size: 34px; font-weight: 750; letter-spacing: -0.02em; }
.price .per, .price .from { color: var(--muted); font-size: 15px; }
.plan .btn { justify-content: center; margin-top: auto; }

/* Comparison table */
.compare-title { font-size: 20px; margin: 56px 0 16px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14.5px; }
.compare th, .compare td { padding: 12px 18px; text-align: center; border-bottom: 1px solid var(--border); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { font-size: 15px; padding-top: 16px; padding-bottom: 16px; }
.compare th[scope="row"] { text-align: left; font-weight: 500; color: var(--muted); width: 32%; }
.compare tr.group th { text-align: left; background: var(--surface-2); font-size: 12px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); padding-top: 10px; padding-bottom: 10px; }
.compare .hl { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.compare thead .hl { color: var(--accent); }
.compare .yes { display: inline-block; width: 7px; height: 13px; border: solid var(--ok); border-width: 0 2px 2px 0; transform: rotate(45deg); margin-bottom: 3px; }
.compare .no { color: var(--muted); opacity: 0.6; }
/* Keeps the feature names visible while the table scrolls sideways on phones. */
.compare th[scope="row"], .compare tr.group th { position: sticky; left: 0; z-index: 1; }
.compare th[scope="row"] { background: var(--surface); }

/* FAQ */
.narrow { max-width: 800px; }
.faq { margin-top: 32px; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 20px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 20px; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 18px; color: var(--muted); }

/* Contact band */
.cta-band { background: radial-gradient(700px 300px at 50% 0%, var(--accent-soft), transparent 70%); }
.center { text-align: center; justify-content: center; }
.center h2, .center .sub { margin-left: auto; margin-right: auto; }
.contact { margin-top: 18px; color: var(--muted); font-size: 15px; }

/* Footer */
.footer { padding: 36px 0 44px; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.brand.small { font-size: 15px; }
.brand.small .logo { width: 24px; height: 24px; }
.brand.small .logo svg { width: 15px; height: 15px; }
.footer-links { display: flex; gap: 18px; margin-left: auto; }
.footer-links a { color: var(--muted); }

@media (max-width: 1000px) {
  .features, .features.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare th, .compare td { padding: 10px 12px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .compare { min-width: 600px; font-size: 13.5px; }
  .compare th[scope="row"] { width: 130px; min-width: 130px; }
  .hero-grid, .two { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .links { display: none; }
  .nav-actions { margin-left: auto; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 56px 0 40px; }
  .section { padding: 64px 0; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 44px; }
  .arch { padding: 18px; }
  .arch-row { flex-direction: column; }
  .arch-row.secondary::after { display: none; }
  .arrow { width: 2px; height: 16px; align-self: center; }
  .arrow::after { right: auto; left: -4px; top: auto; bottom: -1px; border: 5px solid transparent; border-top: 7px solid var(--muted); border-bottom: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .footer-links { margin-left: 0; }
}
@media (max-width: 560px) {
  .features, .features.three { grid-template-columns: minmax(0, 1fr); }
  .btn.small { padding: 7px 10px; font-size: 13px; }
  .window pre { font-size: 12.5px; padding: 16px; }
}

/* Docs (/docs/, /en/docs/): sidebar with the contents, one long page. */
.links a[aria-current="page"] { color: var(--text); font-weight: 600; }
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding-top: 40px; padding-bottom: 80px; }
.toc { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; font-size: 14px; }
.toc p { font-weight: 700; margin-bottom: 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 2px 0; }
.toc li li { padding-left: 12px; }
.toc a { display: block; color: var(--muted); padding: 3px 0; }
.toc a:hover { color: var(--text); text-decoration: none; }
.doc { min-width: 0; max-width: 820px; }
.doc h1 { font-size: 38px; margin-bottom: 14px; }
.doc .lead { font-size: 18px; color: var(--muted); margin-bottom: 8px; }
.doc h2 { font-size: 26px; margin: 56px 0 14px; padding-top: 12px; border-top: 1px solid var(--border); scroll-margin-top: 84px; }
.doc h3 { font-size: 19px; margin: 34px 0 10px; scroll-margin-top: 84px; }
.doc p, .doc ul, .doc ol { margin: 0 0 14px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc .endpoint { display: inline-flex; gap: 8px; align-items: center; font-family: var(--mono); font-size: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; margin: 0 0 12px; overflow-wrap: anywhere; }
.doc .method { font-weight: 700; color: var(--accent); }
.doc .code { position: relative; margin: 0 0 16px; }
.doc pre { margin: 0; background: var(--code-bg); color: var(--code-text); border-radius: 10px; padding: 16px 18px; overflow-x: auto; font: 13.5px/1.55 var(--mono); }
.doc pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.doc .copy { position: absolute; top: 8px; right: 8px; font: 600 12px var(--sans); color: var(--code-muted); background: transparent; border: 1px solid #2f343c; border-radius: 6px; padding: 4px 8px; cursor: pointer; }
.doc .copy:hover { color: var(--code-text); }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 14.5px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.doc th { font-weight: 600; background: var(--surface-2); }
.doc .callout { background: var(--accent-soft); border-left: 3px solid var(--accent); border-radius: 8px; padding: 12px 16px; margin: 0 0 16px; }
.doc .callout.warn { background: color-mix(in srgb, #f59e0b 14%, var(--surface)); border-left-color: #f59e0b; }
@media (max-width: 1000px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; }
  .toc { position: static; max-height: none; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; background: var(--surface); }
  .doc h1 { font-size: 30px; }
}
