/* ============================================================
   Tasur — internal preview stylesheet
   Dark theme default; light via [data-theme="light"].
   Self-hosted fonts only; zero external requests.
   ============================================================ */

@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0a0d12;
  --bg-2: #0f131b;
  --surface: #12161f;
  --surface-2: #161b26;
  --text: #e9edf3;
  --text-strong: #ffffff;
  --muted: #9aa5b4;
  --faint: #6b7686;
  --border: #232b39;
  --border-soft: #1b212d;
  --accent: #6ea8fe;
  --accent-strong: #8fbcff;
  --accent-ink: #08101d;
  --accent-dim: rgba(110, 168, 254, 0.12);
  --ok: #7fd4a3;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --shadow-ring: 0 0 0 1px var(--border);
  --ribbon-h: 2.25rem;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fbfcfe;
  --bg-2: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --text: #1a2029;
  --text-strong: #0c1118;
  --muted: #5b6574;
  --faint: #8a93a1;
  --border: #dfe4ec;
  --border-soft: #e9edf3;
  --accent: #1e5fd0;
  --accent-strong: #174ba8;
  --accent-ink: #ffffff;
  --accent-dim: rgba(30, 95, 208, 0.08);
  --ok: #1a7f4e;
}

/* ---------- base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "cv05", "cv11";
  padding-bottom: var(--ribbon-h);
}

h1, h2, h3 {
  color: var(--text-strong);
  line-height: 1.15;
  letter-spacing: -0.022em;
  margin: 0 0 0.6em;
  font-weight: 650;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.5vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.14rem; letter-spacing: -0.012em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

ul { padding-left: 1.2em; margin: 0 0 1em; }
li { margin-bottom: 0.45em; }

.mono, .num {
  font-family: var(--mono);
  font-feature-settings: normal;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2rem);
}

.muted { color: var(--muted); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.5rem 1rem;
  z-index: 100;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-strong);
  font-weight: 700;
  font-size: 1.14rem;
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; color: var(--text-strong); }
.brand svg { display: block; color: var(--accent); }

.site-nav {
  display: flex;
  gap: 0.15rem;
  margin-right: auto;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
  padding: 0.35rem 0.7rem;
  border-radius: 7px;
}
.site-nav a:hover { color: var(--text-strong); text-decoration: none; background: var(--accent-dim); }
.site-nav a.active { color: var(--text-strong); background: var(--accent-dim); }

.header-tools { display: flex; align-items: center; gap: 0.7rem; margin-left: auto; }

.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.lang-switch a {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 0.32rem 0.55rem;
}
.lang-switch a + a { border-left: 1px solid var(--border); }
.lang-switch a:hover { color: var(--text-strong); text-decoration: none; background: var(--accent-dim); }
.lang-switch a[aria-current="true"] {
  color: var(--accent-ink);
  background: var(--accent);
}

.theme-toggle {
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.theme-toggle:hover { color: var(--text-strong); border-color: var(--faint); }
.theme-toggle svg { width: 1rem; height: 1rem; }
.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.4rem, 8vw, 6.5rem) 0 clamp(2.8rem, 6vw, 5rem);
  border-bottom: 1px solid var(--border-soft);
  background:
    radial-gradient(ellipse 90% 70% at 70% -10%, var(--accent-dim), transparent 60%),
    var(--bg);
}

.hero-grid-motif {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--border);
  pointer-events: none;
  user-select: none;
}
.hero-grid-motif .cell-accent { fill: var(--accent); opacity: 0.55; }
@media (max-width: 860px) { .hero-grid-motif { display: none; } }

.hero-inner { position: relative; max-width: 46rem; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.1rem;
}

.lede {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 42rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.9rem;
  align-items: center;
}

.hero-note {
  margin-top: 1.15rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--faint);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 0.97rem;
  padding: 0.68rem 1.35rem;
  border-radius: 9px;
  border: 1px solid transparent;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--accent-strong); color: var(--accent-ink); text-decoration: none; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--accent-dim); color: var(--text-strong); border-color: var(--faint); }

/* ---------- sections ---------- */

.section { padding: clamp(2.8rem, 6vw, 4.6rem) 0; }
.section + .section { border-top: 1px solid var(--border-soft); }
.section-alt { background: var(--bg-2); }

.section-head { max-width: 44rem; margin-bottom: 2rem; }
.section-head .lede { font-size: 1.05rem; }

/* ---------- pillar cards ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1.4rem;
}
.card h3 { margin-bottom: 0.55rem; }
.card p { color: var(--muted); font-size: 0.96rem; }

.card-kicker {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

.footnote-reframe {
  margin-top: 1.6rem;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
  color: var(--faint);
  font-size: 0.9rem;
  max-width: 40rem;
}

.dev-line {
  margin-top: 1.4rem;
  font-family: var(--mono);
  font-size: 0.84rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0.75rem 1rem;
  display: inline-block;
}
.dev-line::before { content: "$ "; color: var(--accent); }

/* ---------- tier teaser / cards ---------- */

.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(14.5rem, 100%), 1fr));
  gap: 1rem;
}

.tier-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.tier-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tier-name { font-weight: 650; color: var(--text-strong); font-size: 1.02rem; letter-spacing: -0.01em; }
.tier-price {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 1.55rem;
  color: var(--text-strong);
  letter-spacing: -0.02em;
}
.tier-price small { font-size: 0.78rem; color: var(--faint); font-weight: 400; }
.tier-vat { font-family: var(--mono); font-size: 0.76rem; color: var(--faint); }
.tier-desc { color: var(--muted); font-size: 0.92rem; flex-grow: 1; }
.tier-link { font-size: 0.92rem; font-weight: 550; }

.vat-note {
  margin-top: 1.3rem;
  font-size: 0.86rem;
  color: var(--faint);
}

/* ---------- badges ---------- */

.badge-tbc {
  display: inline-block;
  vertical-align: 0.14em;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0.1rem 0.5rem;
  white-space: nowrap;
}

/* ---------- pricing table ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  margin-top: 2.2rem;
}

table.ladder {
  border-collapse: collapse;
  width: 100%;
  min-width: 46rem;
  font-size: 0.92rem;
}
.ladder caption {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.ladder th, .ladder td {
  text-align: left;
  padding: 0.62rem 0.9rem;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}
.ladder thead th {
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--text-strong);
  background: var(--surface-2);
  position: sticky;
  top: 0;
}
.ladder thead th:not(:first-child) { font-family: var(--mono); font-weight: 500; }
.ladder tbody th[scope="row"] {
  font-weight: 500;
  color: var(--text);
  width: 34%;
}
.ladder td { font-family: var(--mono); font-size: 0.84rem; color: var(--muted); }
.ladder td.yes { color: var(--ok); }
.ladder td.no { color: var(--faint); }
.ladder tr.group th {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--bg-2);
  padding-top: 0.85rem;
}
.ladder tbody tr:last-child th, .ladder tbody tr:last-child td { border-bottom: none; }

.table-notes {
  margin-top: 0.9rem;
  font-size: 0.84rem;
  color: var(--faint);
}
.table-notes p { margin-bottom: 0.3em; }

/* ---------- FAQ ---------- */

.faq { max-width: 46rem; }
.faq details {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  margin-bottom: 0.7rem;
  padding: 0 1.1rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-strong);
  padding: 0.9rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--accent);
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "–"; }
.faq details > div {
  padding: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- prose blocks (bureaus / product) ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  gap: 1rem;
}

.feature-list { list-style: none; padding: 0; }
.feature-list li {
  padding-left: 1.35rem;
  position: relative;
  color: var(--muted);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.55rem;
  height: 0.55rem;
  border: 1.5px solid var(--accent);
  border-radius: 2px;
}
.feature-list li strong { color: var(--text); font-weight: 600; }

/* ---------- closing CTA ---------- */

.cta-final {
  text-align: center;
  padding: clamp(3.2rem, 7vw, 5.5rem) 0;
}
.cta-final .lede { margin: 0 auto 1.6rem; }
.cta-final .hero-ctas { justify-content: center; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border-soft);
  background: var(--bg-2);
  padding: 2.2rem 0 2.6rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  align-items: baseline;
  justify-content: space-between;
}
.footer-brandline {
  font-weight: 650;
  color: var(--text-strong);
  letter-spacing: -0.01em;
}
.footer-legal {
  font-size: 0.82rem;
  color: var(--faint);
  max-width: 34rem;
  margin: 0;
}

/* ---------- preview ribbon ---------- */

.preview-ribbon {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  height: var(--ribbon-h);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 0.8rem;
}
.preview-ribbon::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 0.6rem;
  flex-shrink: 0;
  opacity: 0.8;
}

/* ---------- language fallback list (root) ---------- */

.lang-fallback {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
}
.lang-fallback ul { list-style: none; padding: 0; }
.lang-fallback a { font-size: 1.2rem; font-weight: 600; }

/* ---------- docs (user guide) ---------- */

.docs-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}
.docs-layout .hero-docs .container,
.docs-layout .section .container { max-width: none; padding-left: 0; padding-right: 0; }
.docs-sidebar {
  position: sticky;
  top: 4.6rem;
  padding: 1.4rem 0 2rem;
  max-height: calc(100vh - 5.5rem);
  overflow-y: auto;
  scrollbar-width: thin;
}
.docs-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  border-left: 1px solid var(--border-soft);
}
.docs-sidebar a {
  padding: 0.42rem 0.85rem;
  margin-left: -1px;
  font-size: 0.86rem;
  color: var(--muted);
  border-left: 2px solid transparent;
  text-decoration: none;
  line-height: 1.35;
}
.docs-sidebar a:hover { color: var(--text-strong); text-decoration: none; }
.docs-sidebar a.active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.docs-sidebar-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0.5rem 0.9rem;
  font: inherit;
  font-size: 0.86rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
@media (max-width: 900px) {
  .docs-layout { display: block; }
  .docs-sidebar-toggle { display: inline-flex; }
  .docs-sidebar {
    display: none;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: min(78vw, 20rem);
    z-index: 70;
    background: var(--bg-2);
    border-right: 1px solid var(--border);
    padding: 1.4rem 1rem 2rem;
    max-height: none;
  }
  .docs-sidebar.open { display: block; }
  body.docs-sidebar-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgb(0 0 0 / 0.55);
    z-index: 60;
  }
}

.hero-docs { padding-top: clamp(2.2rem, 5vw, 3.4rem); padding-bottom: clamp(1.6rem, 4vw, 2.6rem); }

.docs-prose { max-width: 46rem; }
.docs-prose h2 {
  margin-top: 2.1rem;
  font-size: 1.3rem;
}
.docs-prose h2:first-child { margin-top: 0; }
.docs-prose p { color: var(--muted); }

ol.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0.4rem 0 0.8rem;
}
ol.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.3rem;
  margin-bottom: 0.6rem;
  color: var(--muted);
}
ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.55rem;
  height: 1.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
}

.note-soon {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: var(--surface);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 1.1rem 0 0.4rem;
}

/* ---------- hero grid + pure-CSS API mock ---------- */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(1.6rem, 4vw, 3.2rem);
  align-items: center;
}
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .api-mock { max-width: 34rem; }
}

.api-mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-family: var(--mono);
  box-shadow: 0 18px 44px -22px rgba(0, 0, 0, 0.55), var(--shadow-ring);
}
:root[data-theme="light"] .api-mock {
  box-shadow: 0 18px 44px -28px rgba(12, 17, 24, 0.35), var(--shadow-ring);
}

.api-mock-chrome {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.6rem 0.9rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border-soft);
}
.api-mock-chrome .dot {
  width: 0.56rem;
  height: 0.56rem;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}
.api-mock-chrome .url {
  margin-left: 0.45rem;
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.api-mock pre {
  margin: 0;
  padding: 0.85rem 1rem;
  font-size: 0.7rem;
  line-height: 1.6;
  overflow-x: auto;
  color: var(--text);
}
.api-mock .api-req { border-bottom: 1px dashed var(--border); }

.tok-c { color: var(--faint); }
.tok-k { color: var(--accent); font-weight: 500; }
.tok-s { color: var(--ok); }
.tok-n { color: var(--accent-strong); }

/* ---------- real-screenshot figures (theme-aware light/dark swap) ---------- */

.shots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(24rem, 100%), 1fr));
  gap: 1.1rem;
}
.shots-grid.shots-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(16.5rem, 100%), 1fr));
}

.shot-frame {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
}
/* dark theme is the default: show the dark capture, hide the light one */
.shot-frame .shot-light { display: none; }
:root[data-theme="light"] .shot-frame .shot-light { display: block; }
:root[data-theme="light"] .shot-frame .shot-dark { display: none; }

.shot-frame figcaption {
  padding: 0.65rem 0.95rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border-soft);
  flex-grow: 1;
}

.shots-note {
  margin-top: 1.1rem;
  font-size: 0.84rem;
  color: var(--faint);
}

/* ---------- anatomy mocks (OpenAPI / webhook log / audit trail) ---------- */

.anat { display: flex; flex-direction: column; gap: 0.9rem; }

.anat-mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.55rem 0.4rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  line-height: 1.45;
  overflow: hidden;
  color: var(--muted);
}

.am-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.28rem 0.6rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 6px;
}
.am-row.am-open { background: var(--accent-dim); }
.am-row.am-param { padding-left: 2.9rem; color: var(--faint); }

.am-m {
  display: inline-block;
  width: 2.6rem;
  flex-shrink: 0;
  text-align: center;
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  border-radius: 5px;
  padding: 0.06rem 0;
}
.am-m.get { color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 45%, transparent); }
.am-m.post { color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.am-m.del { color: var(--faint); border: 1px solid var(--border); }
.am-p { color: var(--text); }
.am-key { color: var(--accent); }
.am-req {
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0 0.4rem;
}

.am-time { color: var(--faint); flex-shrink: 0; }
.am-evt { color: var(--text); }
.am-id { color: var(--faint); overflow: hidden; text-overflow: ellipsis; }
.am-status { margin-left: auto; flex-shrink: 0; font-weight: 500; }
.am-status.ok { color: var(--ok); }
.am-status.warn { color: var(--accent-strong); }
.am-lat { color: var(--faint); flex-shrink: 0; }

.anat-audit { padding: 0.7rem 0.75rem; }
.am-entry { display: flex; gap: 0.6rem; padding: 0.35rem 0; }
.am-entry + .am-entry { border-top: 1px solid var(--border-soft); }
.am-avatar {
  width: 1.7rem;
  height: 1.7rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.58rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-dim);
}
.am-avatar.api { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.am-avatar.bot { color: var(--muted); background: var(--surface-2); }
.am-entry-body { min-width: 0; }
.am-entry-h { display: flex; gap: 0.7rem; align-items: baseline; }
.am-actor { color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.am-stamp { color: var(--faint); font-size: 0.6rem; }
.am-act { color: var(--muted); }
.am-old { text-decoration: line-through; color: var(--faint); }
.am-new { color: var(--ok); }
.am-act code, .am-act .am-new { font-family: inherit; }

.anat-cap h3 { margin-bottom: 0.35rem; }
.anat-cap p { color: var(--muted); font-size: 0.93rem; }

/* ---------- community strip / external nav link ---------- */

.community .btn-ghost { margin-top: 0.2rem; }
.nav-ext span, .community .btn-ghost span { opacity: 0.65; }

/* Brand logo (Bungee wordmark) */
.brand-logo { height: 30px; width: auto; display: block; }
.brand-logo-footer { height: 26px; margin: 0 auto 1rem; }
@media (max-width: 640px) { .brand-logo { height: 24px; } }
.lockup-kassaraamat { height: 76px; width: auto; margin: 0 0 1.2rem; }
@media (max-width: 640px) { .lockup-kassaraamat { height: 56px; } }

/* Employment cost worked example */
.cost-table { width: 100%; max-width: 34rem; border-collapse: collapse; margin: 1.2rem 0 1.6rem; }
.cost-table td { padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--border-soft); color: var(--muted); }
.cost-table td.num { text-align: right; font-family: var(--mono); color: var(--text); white-space: nowrap; }
.cost-table tr.cost-total td { color: var(--text-strong); font-weight: 600; border-top: 2px solid var(--border); }
.stat-card { text-align: center; }
.stat-num { font-family: var(--mono); font-size: 1.9rem; color: var(--text-strong); margin: 0 0 0.3rem; }

/* Live-demo screenshot links */
.shot-demo-link { display: block; position: relative; text-decoration: none; }
.shot-demo-badge {
  position: absolute; right: 0.7rem; bottom: 0.7rem;
  padding: 0.3rem 0.7rem; font-family: var(--mono); font-size: 0.72rem;
  color: var(--text-strong); background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; opacity: 0; transition: opacity 0.15s ease;
}
.shot-demo-link:hover .shot-demo-badge, .shot-demo-link:focus .shot-demo-badge { opacity: 1; }
.demo-note { max-width: 46rem; }
