/* vi8n website: plain CSS, no build step. */

@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap; src: url('../fonts/manrope-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 500; font-display: swap; src: url('../fonts/manrope-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 600; font-display: swap; src: url('../fonts/manrope-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url('../fonts/manrope-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 800; font-display: swap; src: url('../fonts/manrope-latin-800-normal.woff2') format('woff2'); }

/* ==========================================================================
   SITE SETTINGS (these replace the old CMS "Site settings"; edit and save)
   --------------------------------------------------------------------------
   Text sizes   : 0.85 smaller | 0.92 small | 1 default | 1.1 large | 1.2 larger | 1.35 largest
                  --h1-scale = page titles, --h-scale = section headings (H2/H3),
                  --p-scale = paragraphs and lists
   Tags         : change .tag { font-weight } and .tag { text-transform } in the "Tags" block below
   Default theme: the data-default-theme attribute on <html> in every page (system | light | dark)
   Footer colour: --footer-bg
   ========================================================================== */
:root {
  --h1-scale: 1;
  --h-scale: 1;
  --p-scale: 1;
  --footer-bg: #6e7174;

  --canvas: #f8fafc;
  --ink: #0f172a;
  --body: #475569;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --inverse: #0f172a;
  --brand: #4b5563;      /* accent for buttons, links, active tabs: cool gray */
  --brand-dark: #374151;
  --muted: #64748b;
  --ok: #16a34a;
  --bad: #dc2626;
  --font: 'Manrope', ui-sans-serif, system-ui, sans-serif;
}
:root.dark {
  color-scheme: dark;
  --canvas: #000000;
  --surface: #0a0a0a;
  --surface-2: #111111;
  --ink: #f5f5f5;
  --body: #b3b3b3;
  --line: #262626;
  --line-strong: #3a3a3a;
  --inverse: #000000;
  --brand: #737373;
  --brand-dark: #a3a3a3;
  --muted: #a3a3a3;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--canvas); color: var(--body);
  font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3 { color: var(--ink); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
strong { color: var(--ink); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Text size settings (main content only) */
main h1 { zoom: var(--h1-scale); }
main h2, main h3 { zoom: var(--h-scale); }
main p:not(.tag), main li, main dd { zoom: var(--p-scale); }

/* ---------- Layout ---------- */
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.section { max-width: 72rem; margin: 0 auto; padding: 4rem 1.25rem; }
.band { background: var(--surface); border-bottom: 1px solid var(--line); }
.band-top { border-top: 1px solid var(--line); }
.grid { display: grid; gap: 1.25rem; }
.stack-sm > * + * { margin-top: 0.5rem; }
.stack > * + * { margin-top: 0.75rem; }
.mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; } .mt-5 { margin-top: 1.25rem; } .mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; } .mt-12 { margin-top: 3rem; }
.small { font-size: 0.875rem; }
.lead { font-size: 1.125rem; }
.mono-s { font-size: 0.75rem; color: var(--muted); }
.row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.ink { color: var(--ink); }
.brand-link { color: var(--brand); font-weight: 600; }
.brand-link:hover { color: var(--brand-dark); }
:root.dark .brand-link { color: #9ca3af; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  backdrop-filter: blur(8px);
}
.nav { display: flex; height: 4rem; align-items: center; justify-content: space-between; max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.logo { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.nav-links { display: none; align-items: center; gap: 1.75rem; }
.nav-links a { font-size: 0.875rem; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.icon-btn { background: transparent; border: 1px solid var(--line); border-radius: 0.375rem; padding: 0.5rem; line-height: 0; color: var(--body); }
.icon-btn:hover { color: var(--ink); }
.nav-cta { display: none; }
.mobile-menu { border-top: 1px solid var(--line); background: var(--surface); }
.mobile-menu ul { max-width: 72rem; margin: 0 auto; padding: 0.75rem 1.25rem; }
.mobile-menu a:not(.btn) { display: block; padding: 0.5rem 0; font-size: 0.875rem; font-weight: 500; color: var(--ink); }
.mobile-menu .btn { width: 100%; margin-top: 0.5rem; }
@media (min-width: 640px) { .nav-cta { display: inline-flex; } }
@media (min-width: 768px) { .nav-links { display: flex; } #menu-btn, .mobile-menu { display: none !important; } }

/* ---------- Buttons, cards, tags ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 0.375rem; padding: 0.625rem 1.25rem; border: 1px solid transparent;
  font-size: 0.875rem; font-weight: 600; transition: background-color .15s, border-color .15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: #94a3b8; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: default; }

.card { border: 1px solid var(--line); border-radius: 0.5rem; background: var(--surface); padding: 1.5rem; }
a.card { display: block; }
a.card:hover { border-color: #94a3b8; }

/* Tags. Text case and weight come from here (CMS "Tag text case" / "Bold tags"). */
.tag {
  display: inline-block; border: 1px solid var(--line); border-radius: 0.25rem; background: var(--surface);
  padding: 0.125rem 0.5rem; font-size: 0.75rem; color: var(--body);
  font-weight: 700;            /* 500 = normal, 700 = bold */
  text-transform: none;        /* none = as written | capitalize = Title Case | uppercase | lowercase */
}
/* Pull the first tag left so its text lines up with the text below it. */
.tag:first-child { margin-left: calc(-0.5rem - 1px); }
.tag-ok { border-color: var(--ok); color: var(--ok); }

/* ---------- Tabs / filters ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.tab {
  border: 1px solid var(--line); border-radius: 0.375rem; background: var(--surface); color: var(--body);
  padding: 0.375rem 0.75rem; font-size: 0.75rem; font-weight: 500;
}
.tab.lg { padding: 0.5rem 1rem; font-size: 0.875rem; }
.tab.pill { border-radius: 999px; padding: 0.375rem 1rem; font-size: 0.875rem; }
.tab[aria-selected='true'] { border-color: var(--brand); background: var(--brand); color: #fff; }

/* ---------- App window frame (screenshots) ---------- */
.frame { overflow: hidden; border: 1px solid var(--line); border-radius: 0.5rem; background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.frame-bar { display: flex; align-items: center; gap: 0.5rem; border-bottom: 1px solid var(--line); background: var(--surface-2); padding: 0.5rem 0.75rem; }
.frame-bar i { width: 0.625rem; height: 0.625rem; border-radius: 50%; background: #cbd5e1; }
.frame-bar span { margin-left: 0.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: var(--body); }
.frame-body { aspect-ratio: 16 / 10; width: 100%; background: var(--surface-2); }
.frame-body img { width: 100%; height: 100%; object-fit: contain; object-position: top; }

/* ---------- Hero ---------- */
.hero { display: grid; gap: 3rem; align-items: center; max-width: 72rem; margin: 0 auto; padding: 4rem 1.25rem; }
.hero h1 { font-size: 27px; }
.hero .sub { margin-top: 1.25rem; max-width: 36rem; font-size: 1.125rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.dot-list li { display: flex; gap: 0.75rem; font-size: 0.875rem; }
.dot-list li + li { margin-top: 0.75rem; }
.dot-list li::before { content: ''; flex: none; margin-top: 0.5rem; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.plain-list li + li { margin-top: 0.5rem; }
.bullets { list-style: disc; padding-left: 1.25rem; }
.bullets li + li { margin-top: 0.25rem; }
.numbers { list-style: decimal; padding-left: 1.25rem; }
.numbers li + li { margin-top: 0.5rem; }

.cta { border-radius: 0.5rem; background: var(--inverse); padding: 2.5rem; text-align: center; }
.cta h2 { color: #fff; }
.cta p { max-width: 36rem; margin: 0.75rem auto 0; color: #cbd5e1; }

.industry-img { aspect-ratio: 2 / 1; width: 100%; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.industry-img img { width: 100%; height: 100%; object-fit: contain; }
.industry-img.gray img { filter: grayscale(1); mix-blend-mode: multiply; }
:root.dark .industry-img.gray img { mix-blend-mode: normal; opacity: .9; }
.card.flush { padding: 0; overflow: hidden; }

/* ---------- Product blocks ---------- */
.product { scroll-margin-top: 6rem; }
.product-grid { display: grid; gap: 2rem; align-items: start; }
.custom { scroll-margin-top: 6rem; border-top: 1px solid var(--line); padding-top: 3.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: #f5f5f5; }
.footer-grid { display: grid; gap: 1.5rem; max-width: 72rem; margin: 0 auto; padding: 2rem 1.25rem; }
.site-footer .brand-name { font-size: 1.25rem; font-weight: 700; color: #fff; }
.site-footer .head { font-size: 0.875rem; font-weight: 700; color: #fff; }
.site-footer ul { margin-top: 0.5rem; font-size: 0.875rem; }
.site-footer ul li + li { margin-top: 0.25rem; }
.site-footer a:hover { color: #fff; }
.site-footer .tagline { margin-top: 0.5rem; font-size: 0.875rem; }
.copyright { border-top: 1px solid rgba(255,255,255,.2); padding: 0.75rem 0; text-align: center; font-size: 0.75rem; color: #e5e5e5; }

/* ---------- Forms ---------- */
.field label, legend { font-size: 0.875rem; font-weight: 500; color: var(--ink); }
.field input, .field select, .field textarea {
  display: block; width: 100%; margin-top: 0.25rem; padding: 0.5rem 0.75rem;
  border: 1px solid var(--line-strong); border-radius: 0.375rem; background: var(--surface);
  font-size: 0.875rem; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: 1px solid var(--brand); }
.field .err { margin-top: 0.25rem; font-size: 0.75rem; color: var(--bad); }
.form { display: grid; gap: 1.25rem; }
.form-2 { display: grid; gap: 1.25rem; }
fieldset { border: 0; padding: 0; margin: 0; }
.checks label { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; font-size: 0.875rem; }
.form-error { font-size: 0.875rem; color: var(--bad); }
.summary { border: 1px solid var(--line); border-radius: 0.375rem; font-size: 0.875rem; }
.summary div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 1rem; }
.summary div + div { border-top: 1px solid var(--line); }
.summary dt { color: var(--muted); }
.summary dd { text-align: right; color: var(--ink); }
.contact-dl dt { font-size: 0.75rem; text-transform: uppercase; color: var(--muted); }
.contact-dl > div + div { margin-top: 1rem; }

/* ---------- Blog article ---------- */
.article { max-width: 48rem; margin: 0 auto; padding: 3.5rem 1.25rem; }
.prose { margin-top: 2rem; color: var(--body); }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { margin-top: 2rem; font-size: 1.5rem; }
.prose h3 { margin-top: 1.5rem; font-size: 1.25rem; }
.prose ul { list-style: disc; padding-left: 1.5rem; }
.prose ol { list-style: decimal; padding-left: 1.5rem; }
.prose li + li { margin-top: 0.4rem; }
.prose a { color: var(--brand); text-decoration: underline; }
.prose blockquote { margin-left: 0; padding-left: 1rem; border-left: 3px solid var(--line-strong); }
.prose code { background: var(--surface-2); padding: 0.1rem 0.3rem; border-radius: 0.25rem; font-size: 0.9em; }
.prose img { max-width: 100%; border-radius: 0.5rem; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 0.4rem 0.6rem; text-align: left; }

/* ---------- Breakpoints ---------- */
@media (min-width: 768px) {
  .section { padding-top: 5rem; padding-bottom: 5rem; }
  .hero { grid-template-columns: 1fr 1fr; padding-top: 6rem; padding-bottom: 6rem; }
  .hero h1 { font-size: 36px; }
  .flagship-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flagship-product {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: center;
  }
  .flagship-product .frame { width: 100%; align-self: center; }
  .cols-2 { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: repeat(3, 1fr); }
  .cols-5 { grid-template-columns: repeat(5, 1fr); }
  .span-2 { grid-column: span 2; }
  .span-3 { grid-column: span 3; }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(12, 1fr); }
  .product-grid .text { grid-column: 8 / span 5; order: 2; }
  .product-grid .media { grid-column: 1 / span 7; order: 1; }
  .flip { order: 2; }
  .form-2 { grid-template-columns: repeat(2, 1fr); }
  .cta { padding: 3.5rem; }
}
@media (min-width: 1024px) { .cols-lg-3 { grid-template-columns: repeat(3, 1fr); } }


/* ==========================================================================
   POLISH LAYER: refined typography, depth, spacing and motion.
   Colours are unchanged; everything below uses the existing palette tokens.
   ========================================================================== */
:root {
  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, .06), 0 12px 24px -8px rgba(15, 23, 42, .10);
  --shadow-lg: 0 8px 12px -4px rgba(15, 23, 42, .08), 0 24px 48px -12px rgba(15, 23, 42, .16);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
:root.dark {
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, .7);
  --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, .8);
}

body { line-height: 1.65; text-rendering: optimizeLegibility; font-feature-settings: 'cv11', 'ss01'; }
::selection { background: color-mix(in srgb, var(--brand) 25%, transparent); color: var(--ink); }
h1 { letter-spacing: -0.03em; line-height: 1.12; }
h2 { letter-spacing: -0.025em; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline-offset: 3px; border-radius: 0.25rem; }

/* Header */
.site-header { background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); transition: box-shadow .2s; }
.nav { height: 4.25rem; }
.logo { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.04em; }
.nav-links { gap: 0.25rem; }
.nav-links a { position: relative; padding: 0.5rem 0.75rem; border-radius: var(--radius-sm); color: var(--body); transition: color .15s, background-color .15s; }
.nav-links a:hover { background: var(--surface-2); }
.nav-links a[aria-current]::after {
  content: ''; position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.1rem; height: 2px; border-radius: 2px; background: var(--brand);
}
.icon-btn { border-radius: var(--radius-sm); padding: 0.55rem; transition: border-color .15s, color .15s, background-color .15s; }
.icon-btn:hover { background: var(--surface-2); border-color: var(--line-strong); }

/* Buttons */
.btn { border-radius: var(--radius-sm); padding: 0.7rem 1.4rem; letter-spacing: -0.005em; transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn-primary { box-shadow: 0 1px 2px rgba(15, 23, 42, .15), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { box-shadow: var(--shadow-sm); }
.btn-outline:hover { transform: translateY(-1px); border-color: var(--brand); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

/* Cards */
.card { border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease); }
a.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card h3 { letter-spacing: -0.015em; }
.industry-img { background: linear-gradient(180deg, var(--surface-2), var(--surface)); }

/* Tags and tabs */
.tag { border-radius: 999px; padding: 0.2rem 0.7rem; background: var(--surface-2); font-size: 0.72rem; letter-spacing: 0.01em; }
.tag:first-child { margin-left: 0; }
.tag-ok { background: color-mix(in srgb, var(--ok) 8%, var(--surface)); }
.tab { border-radius: 999px; padding: 0.4rem 0.9rem; transition: background-color .2s, color .2s, border-color .2s; }
.tab:hover:not([aria-selected='true']) { border-color: var(--line-strong); color: var(--ink); background: var(--surface-2); }
.tab[aria-selected='true'] { box-shadow: var(--shadow-sm); }

/* Screenshot frames */
.frame { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.frame-bar { padding: 0.65rem 0.9rem; }
.frame-bar i { background: var(--line-strong); }
.frame-bar span { font-weight: 500; letter-spacing: 0.01em; }

/* Hero */
.band:first-child, main > .band:first-child {
  background:
    radial-gradient(60rem 28rem at 85% -10%, color-mix(in srgb, var(--brand) 9%, transparent), transparent 70%),
    var(--surface);
}
.hero { gap: 3.5rem; padding-top: 4.5rem; padding-bottom: 4.5rem; }
.hero h1 { font-size: clamp(1.9rem, 4.2vw, 2.75rem); font-weight: 800; }
.hero .sub { font-size: 1.15rem; line-height: 1.7; color: var(--body); }
.hero .actions { margin-top: 2.25rem; }

/* Sections */
.section { padding-top: 4.5rem; padding-bottom: 4.5rem; }
.section > h2:first-child, .section h2.section-title { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.section > h2 + p, .section > .lead { margin-top: 0.75rem; max-width: 42rem; }
.lead { line-height: 1.7; }
.dot-list li::before { margin-top: 0.55rem; }

/* CTA */
.cta {
  border-radius: calc(var(--radius) + 0.25rem); box-shadow: var(--shadow-lg);
  background: radial-gradient(40rem 18rem at 80% 0%, rgba(255, 255, 255, .08), transparent 70%), var(--inverse);
  border: 1px solid rgba(255, 255, 255, .06);
}
.cta h2 { font-size: clamp(1.5rem, 3vw, 2rem); }

/* Forms */
.field label, legend { letter-spacing: -0.005em; }
.field input, .field select, .field textarea { margin-top: 0.4rem; padding: 0.65rem 0.85rem; border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.summary { border-radius: var(--radius-sm); background: var(--surface-2); }
.checks input { accent-color: var(--brand); }

/* Blog / prose */
.prose { line-height: 1.8; }
.prose h2 { padding-top: 0.5rem; }
.prose blockquote { border-left-color: var(--brand); color: var(--ink); }

/* Footer */
.footer-grid { padding: 3rem 1.25rem 2.25rem; gap: 2rem; }
.site-footer ul li + li { margin-top: 0.4rem; }
.site-footer ul a { opacity: .85; transition: opacity .15s; }
.site-footer ul a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .head { letter-spacing: 0.02em; }
.copyright { padding: 1rem 0; }

/* Entrance motion (respects reduced-motion) */
@media (prefers-reduced-motion: no-preference) {
  .hero > *, .section > h2, .card { animation: rise .6s var(--ease) both; }
  .hero > *:nth-child(2) { animation-delay: .1s; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
@media (max-width: 639px) {
  .hero { padding-top: 3rem; padding-bottom: 3rem; gap: 2.5rem; }
  .section { padding-top: 3rem; padding-bottom: 3rem; }
  .cta { padding: 2rem 1.25rem; }
}

/* Blog cover images and CMS-inserted images */
.industry-img img { object-fit: cover; }
.prose img { height: auto; margin: 1.5rem 0; }
