/* Brand palette from the VeraGrid customer introduction deck (theme colours). */
:root {
  --navy: #0F1235;
  --indigo: #4F46E5;
  --indigo-strong: #4338CA;
  --lavender: #A5A0FF;
  --mist: #F1F2FA;
  --slate: #6B7090;
  --green: #1F8A70;
  --amber: #E8A317;
  --red: #C0392B;

  --bg: #ffffff;
  --bg-tint: var(--mist);
  --tile: var(--mist);
  --tile-on-tint: #ffffff;
  --text: var(--navy);
  --muted: var(--slate);
  --line: #E1E3F0;
  --brand: var(--indigo);
  --brand-strong: var(--indigo-strong);
  --brand-soft: #E6E5FD;
  --feature: var(--navy);
  --feature-text: #ffffff;
  --red-soft: #F8E1DE; --red-text: var(--red);
  --amber-soft: #FBF0D6; --amber-text: #8A5E00;
  --grey-soft: #E7E8F2;
  --code-bg: var(--navy);
  --code-text: #DCDDF5;
  --serif: Cambria, "Source Serif 4", Georgia, serif;
  --sans: Calibri, Carlito, "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0D26; --bg-tint: #10133A; --tile: #161A45; --tile-on-tint: #1B2052; --text: #EEEFFB; --muted: #A9ACC9;
    --line: #262B5C; --brand: #7C75FF; --brand-strong: #948EFF; --brand-soft: #24285E; --feature: #1B2052;
    --red-soft: #3B1B1A; --red-text: #F08A7E; --amber-soft: #3A2D0E; --amber-text: #F3C25C; --grey-soft: #20244F;
    --code-bg: #070920;
  }
}
:root[data-theme="dark"] {
  --bg: #0B0D26; --bg-tint: #10133A; --tile: #161A45; --tile-on-tint: #1B2052; --text: #EEEFFB; --muted: #A9ACC9;
  --line: #262B5C; --brand: #7C75FF; --brand-strong: #948EFF; --brand-soft: #24285E; --feature: #1B2052;
  --red-soft: #3B1B1A; --red-text: #F08A7E; --amber-soft: #3A2D0E; --amber-text: #F3C25C; --grey-soft: #20244F;
  --code-bg: #070920;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1, h2 { font-family: var(--serif); font-weight: 700; text-wrap: balance; letter-spacing: -.005em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--brand); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 20; background: var(--bg); padding: 8px 12px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 1.25rem var(--sans); color: var(--text); text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex-shrink: 0; display: block; }
.nav { display: none; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--text); }
.lang { display: flex; gap: 2px; margin-left: auto; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang a { font-size: .8rem; font-weight: 700; text-decoration: none; color: var(--muted); padding: 3px 9px; border-radius: 999px; }
.lang a[aria-current="true"] { background: var(--brand); color: #fff; }
.topbar .btn-small { display: none; }
@media (min-width: 980px) { .nav { display: flex; } .lang { margin-left: 0; } .topbar .btn-small { display: inline-flex; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; border-radius: 6px; background: var(--brand); color: #fff;
  font-weight: 700; text-decoration: none; border: 1px solid var(--brand); transition: background .15s ease; }
.btn:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.btn-small { padding: 8px 14px; font-size: .92rem; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-tint); border-color: var(--line); }
.btn-light { background: #fff; color: var(--indigo); border-color: #fff; }
.btn-light:hover { background: var(--mist); border-color: var(--mist); }

/* Hero */
.hero { padding: 56px 0 48px; background: radial-gradient(900px 420px at 88% -10%, var(--brand-soft), transparent 70%); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .hero { padding: 88px 0 72px; } .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; } }
.origin-badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 4px 12px 4px 10px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--bg); font-size: .85rem; font-weight: 700; color: var(--text); }
.origin-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.eyebrow { color: var(--brand); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .09em; margin-bottom: .8em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40em; }
.lead-narrow { color: var(--muted); max-width: 46em; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 0; color: var(--muted); }
.hero-points li::before, .checks li::before { content: "✓"; color: var(--brand); font-weight: 700; margin-right: 8px; }

.hero-card { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 32px rgba(15, 18, 53, .10); padding: 20px; }
.mock-label { font-size: .82rem; font-weight: 700; color: var(--muted); }
.mock-input { margin: 6px 0 10px; border: 2px solid var(--brand); border-radius: 6px; padding: 10px 12px; font-weight: 600; }
.caret { display: inline-block; width: 2px; height: 1.05em; background: var(--brand); vertical-align: -2px; margin-left: 2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } html { scroll-behavior: auto; } }
.mock-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.mock-filters span { font-size: .8rem; background: var(--bg-tint); border-radius: 999px; padding: 2px 10px; color: var(--muted); }
.mock-hits { list-style: none; padding: 0; margin: 16px 0 10px; display: grid; gap: 8px; }
.mock-hits li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; background: var(--bg-tint); border-radius: 6px; }
.score { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--brand); }
.badge { font-size: .76rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.badge-red { background: var(--red-soft); color: var(--red-text); }
.badge-amber { background: var(--amber-soft); color: var(--amber-text); }
.badge-grey { background: var(--grey-soft); color: var(--muted); }
.hero-card figcaption { font-size: .8rem; color: var(--muted); }

/* Key figures */
.stats { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats li { background: var(--bg); padding: 18px 20px; }
.stats strong { display: block; font: 700 2.2rem/1 var(--serif); color: var(--brand); margin-bottom: 6px; }
.stats span { color: var(--muted); font-size: .95rem; }

/* Sections and tiles (deck style: flat mist tiles, white icon in an indigo circle) */
.section { padding: 64px 0; }
@media (min-width: 980px) { .section { padding: 88px 0; } }
.section-tint { background: var(--bg-tint); }
.grid { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 720px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.tile { background: var(--tile); padding: 24px; }
.section-tint .tile { background: var(--tile-on-tint); }
.tile p { color: var(--muted); }
.tile p:last-child { margin-bottom: 0; }
.tile-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.tile-head h3 { margin: 0; }
.icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: var(--indigo); display: grid; place-items: center; }
.icon img { width: 22px; height: 22px; display: block; }
.benefit { color: var(--text) !important; font-weight: 700; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }

/* Benefit rows (deck slide 4: navy label tile + mist text tile) */
.benefits { display: grid; gap: 10px; margin-top: 28px; }
.benefit-row { display: grid; gap: 0; }
@media (min-width: 720px) { .benefit-row { grid-template-columns: minmax(220px, 30%) 1fr; } }
.benefit-label { background: var(--feature); color: var(--feature-text); display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.benefit-label h3 { margin: 0; color: var(--feature-text); }
.benefit-text { background: var(--tile); padding: 18px 22px; color: var(--text); display: flex; align-items: center; }
.benefit-text p { margin: 0; }

.flow { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; }
@media (min-width: 720px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .flow { grid-template-columns: repeat(5, 1fr); } }
.flow li { background: var(--tile-on-tint); padding: 20px; border-top: 3px solid var(--brand); }
.flow p { color: var(--muted); margin: 0; font-size: .97rem; }
.step { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 12px; }
.note { margin-top: 24px; color: var(--muted); border-left: 3px solid var(--brand); padding-left: 14px; }

.showcase { display: grid; gap: 36px; align-items: center; }
@media (min-width: 980px) { .showcase { grid-template-columns: .8fr 1.2fr; gap: 48px; } }
.points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.points li { border-left: 3px solid var(--brand); padding: 2px 0 2px 16px; }
.points strong { display: block; }
.points span { color: var(--muted); }
.screenshot { margin: 0; }
.screenshot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(15, 18, 53, .14); }
.screenshot figcaption { margin-top: 10px; font-size: .85rem; color: var(--muted); }

.ai-grid { display: grid; gap: 16px; margin-top: 28px; align-items: start; }
.ai-grid .grid { margin-top: 0; }
@media (min-width: 1040px) { .ai-grid { grid-template-columns: 1.7fr 1fr; } }
.guard { background: var(--feature); color: var(--feature-text); padding: 24px; }
.guard h3 { color: var(--feature-text); }
.guard .checks li::before { color: var(--lavender); }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { padding-left: 24px; text-indent: -24px; }
.plan-featured { outline: 2px solid var(--brand); outline-offset: -2px; }
.plan-sub { color: var(--brand) !important; font-weight: 700; }

/* Tenancy models */
.tenancy { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 900px) { .tenancy { grid-template-columns: 1fr 1fr; } }
.model { background: var(--tile-on-tint); padding: 24px; }
.model-tag { display: inline-grid; place-items: center; width: 30px; height: 30px; background: var(--feature); color: var(--feature-text); font-weight: 700; margin-right: 10px; }
.model h3 { display: flex; align-items: center; }
.model p { color: var(--muted); }
.group { margin-top: 16px; border-top: 3px solid var(--brand); }
.group .checks { margin-top: 4px; }
@media (min-width: 900px) { .group .checks { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.dbs { display: grid; gap: 6px; margin-top: 16px; }
.dbs span { background: var(--bg-tint); padding: 8px 12px; font-size: .92rem; border-left: 3px solid var(--lavender); }

.api-grid { align-items: center; gap: 40px; }
.code { margin: 0; background: var(--code-bg); color: var(--code-text); border-radius: 6px; padding: 22px; overflow-x: auto; font: 14px/1.7 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.c-k { color: var(--lavender); font-weight: 700; } .c-s { color: #9CC4FF; } .c-v { color: #FFD38A; } .c-n { color: #FFA59A; } .c-p { color: #8A8DB0; }

.source { border-top: 3px solid var(--brand); }
.source h3 { margin-bottom: .4em; }
.sources { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sources li { background: var(--tile-on-tint); padding: 10px 18px; font-weight: 700; border-left: 3px solid var(--brand); }

.table-wrap { overflow-x: auto; margin-top: 28px; }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--feature); color: var(--feature-text); }
.compare tbody th { font-weight: 700; width: 18%; background: var(--tile); }
.compare td:nth-child(2) { color: var(--muted); }
.compare td:last-child { font-weight: 600; background: var(--brand-soft); }

.segment-eyebrow { margin: 0; }
.glossary { margin: 28px 0 0; display: grid; gap: 16px; }
@media (min-width: 720px) { .glossary { grid-template-columns: 1fr 1fr; } }
.term { background: var(--tile); padding: 18px 22px; border-left: 3px solid var(--brand); }
.term dt { font-weight: 700; margin-bottom: 4px; }
.term dd { margin: 0; color: var(--muted); }

.faq { margin-top: 28px; display: grid; gap: 8px; max-width: 880px; }
.faq details { background: var(--tile); padding: 2px 20px; }
.section-tint .faq details, .section-tint .term { background: var(--tile-on-tint); }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); }

.cta { background: var(--navy); color: #fff; }
.cta-inner { max-width: 1000px; text-align: center; }
.cta h2 { color: #fff; }
.cta-lead { color: #C9CBEA; font-size: 1.12rem; }
.next-steps { list-style: none; padding: 0; margin: 32px 0; display: grid; gap: 12px; text-align: left; }
@media (min-width: 820px) { .next-steps { grid-template-columns: repeat(3, 1fr); } }
.next-steps li { background: #1A1E4D; padding: 20px; border-top: 3px solid var(--lavender); }
.next-steps h3 { color: #fff; }
.next-steps p { color: #C9CBEA; margin: 0; font-size: .97rem; }
.next-steps .step { background: var(--lavender); color: var(--navy); }

.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.footer a { color: var(--muted); }
