/* ZimBiz OS website. Tokens follow branding/tokens.json. Layout: one 1120px column, sections stacked, content-sized hero. */
@font-face { font-family: "Sora"; src: url("fonts/sora-var.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/plex-sans-var.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --teal: #0B3A43;
  --teal-2: #0F4A54;
  --aqua: #17A398;
  --aqua-text: #0E7D74;
  --aqua-light: #3CC9BC;
  --sun: #F2B33D;
  --sun-text: #8A5A00;
  --paper: #F6F8F7;
  --ink: #0D1B1E;

  --bg: #F3F6F5;
  --surface: #FFFFFF;
  --surface-2: #EAF0EE;
  --text: #0D1B1E;
  --muted: #4A5B5E;
  --line: #D3DEDC;
  --link: #0E7D74;
  --accent-text: #0E7D74;
  --hero-bg: #0B3A43;
  --hero-text: #F6F8F7;
  --hero-muted: #B7D3D0;

  --display: "Sora", "Segoe UI", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --radius: 16px;
  --radius-lg: 24px;
  --width: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1416; --surface: #0D1B1E; --surface-2: #142427; --text: #E3ECEB; --muted: #A9BBBC; --line: #2C3E41;
    --link: #5FD3C6; --accent-text: #5FD3C6; --hero-bg: #0D2C33; --hero-text: #F6F8F7; --hero-muted: #A9C8C5; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1416; --surface: #0D1B1E; --surface-2: #142427; --text: #E3ECEB; --muted: #A9BBBC; --line: #2C3E41;
  --link: #5FD3C6; --accent-text: #5FD3C6; --hero-bg: #0D2C33; --hero-text: #F6F8F7; --hero-muted: #A9C8C5; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--body); }
img, svg { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--width); margin-inline: auto; padding-inline: 20px; }
.eyebrow { font: 600 0.8rem/1.3 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; z-index: 20; }
.skip:focus { left: 8px; }

/* Header */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; }
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 34px; height: 34px; }
.brand span { font: 800 1.3rem/1 var(--display); letter-spacing: -0.035em; }
.brand span b { font-weight: 600; color: var(--accent-text); letter-spacing: 0; margin-left: 4px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.98rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent-text); }
.nav .btn { padding: 9px 16px; min-height: 40px; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 22px; border-radius: 14px; font: 600 1rem/1.2 var(--body); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform 0.15s ease, background-color 0.15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--aqua); color: var(--ink); }
.btn-primary:hover { background: #1BB5A9; }
.btn-dark { background: var(--teal); color: var(--paper); }
.btn-dark:hover { background: var(--teal-2); }
.btn-ghost { border-color: color-mix(in srgb, currentColor 40%, transparent); color: inherit; background: transparent; }
.btn-ghost:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.btn small { font-weight: 500; opacity: 0.8; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Hero */
.hero { background: var(--hero-bg); color: var(--hero-text); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; padding-block: 72px 80px; }
.hero .eyebrow { color: var(--aqua-light); }
.hero h1 { margin-top: 14px; }
.hero .lede { color: var(--hero-muted); margin-top: 20px; font-size: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 16px; color: var(--hero-muted); font-size: 0.92rem; }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; padding-block: 48px 56px; } }

/* The receipt: the brand's own object, set in Plex Mono with a torn bottom edge */
.receipt { --tear: 10px; position: relative; background: #FFFFFF; color: #1C2A2D; font: 500 0.92rem/1.55 var(--mono); padding: 26px 24px calc(22px + var(--tear)); width: min(100%, 360px); margin-inline: auto; border-radius: 6px 6px 0 0; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--tear)) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 20px var(--tear) repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--tear)) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 20px var(--tear) repeat-x; }
.receipt .c { text-align: center; }
.receipt .b { font-weight: 500; }
.receipt .big { font-size: 1.05rem; }
.receipt .row { display: flex; justify-content: space-between; gap: 12px; }
.receipt hr { border: 0; border-top: 1.5px dashed #B8C5C6; margin: 10px 0; }
.receipt .head { font: 800 1.2rem/1.2 var(--display); letter-spacing: -0.02em; text-align: center; color: #0B3A43; }
.receipt .paid { color: #0E7D74; }

/* Sections */
section { padding-block: 88px; }
section + section { padding-top: 0; }
.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: 44px; }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.band + section { padding-top: 88px; }

/* Facts row */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding-block: 0; }
.facts div { padding: 26px 22px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; padding-left: 0; }
.facts b { display: block; font: 700 1.25rem/1.2 var(--display); letter-spacing: -0.015em; }
.facts span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 880px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts div:nth-child(3) { border-left: 0; padding-left: 0; } .facts div { border-top: 1px solid var(--line); } .facts div:nth-child(-n+2) { border-top: 0; } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } .facts div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } .facts div:first-child { border-top: 0; } }

/* Showcase rows */
.show { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.show + .show { margin-top: 88px; }
.show.flip .copy { order: 2; }
.show .copy { display: grid; gap: 16px; }
.show ul { margin: 6px 0 0; padding-left: 1.2em; color: var(--muted); display: grid; gap: 6px; }
.show li::marker { color: var(--aqua); }
.stage { background: var(--surface-2); border-radius: var(--radius-lg); padding: 32px; min-height: 340px; display: grid; place-items: center; }
@media (max-width: 880px) { .show { grid-template-columns: 1fr; gap: 28px; } .show.flip .copy { order: 0; } .stage { padding: 20px; min-height: 0; } }

/* Mini UI pieces drawn in HTML, matching the app */
.ui { width: min(100%, 380px); display: grid; gap: 12px; font-family: var(--body); }
.ui-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.ui-hero { background: #0B3A43; color: #F6F8F7; border-radius: 22px; padding: 18px 20px; display: grid; gap: 4px; }
.ui-hero small { color: #B7D3D0; font-size: 0.85rem; }
.ui-hero strong { font: 800 2rem/1.15 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ui-hero .ui-btn { margin-top: 10px; background: #17A398; color: #0D1B1E; border-radius: 12px; text-align: center; font-weight: 600; padding: 11px; }
.ui-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ui-product { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: grid; gap: 4px; }
.ui-product.on { border: 2px solid var(--aqua-text); background: color-mix(in srgb, var(--aqua) 14%, var(--surface)); }
.ui-product b { font-weight: 600; font-size: 0.95rem; }
.ui-product b::before { content: "+ "; color: var(--accent-text); font-weight: 700; }
.ui-product .price { font: 700 1.2rem/1.2 var(--display); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.ui-product .price small { font: 600 0.75rem var(--body); color: var(--muted); margin-right: 4px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); margin-right: 6px; vertical-align: 1px; }
.dot.warn { background: var(--sun); }
.dot.bad { background: #B3261E; }
.ui-meta { font-size: 0.82rem; color: var(--muted); }
.ui-total { background: var(--teal); color: var(--paper); border-radius: 18px; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; }
.ui-total strong { font: 700 1.5rem/1 var(--display); font-variant-numeric: tabular-nums; }
.chat { width: min(100%, 360px); background: #E7DED3; border-radius: 22px; padding: 18px; display: grid; gap: 10px; }
.bubble { background: #FFFFFF; color: #1C2A2D; border-radius: 4px 14px 14px 14px; padding: 10px 12px 18px; font-size: 0.92rem; line-height: 1.45; position: relative; max-width: 92%; }
.bubble.out { background: #D9FDD3; border-radius: 14px 4px 14px 14px; justify-self: end; }
.bubble time { position: absolute; right: 10px; bottom: 4px; font-size: 0.7rem; color: #667; }
.stock-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
.stock-row:first-child { border-top: 0; }
.stock-row span:nth-child(2), .stock-row span:nth-child(3) { font-variant-numeric: tabular-nums; }
.pill { font-size: 0.78rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--sun) 28%, var(--surface)); color: var(--sun-text); }
:root[data-theme="dark"] .pill { color: var(--sun); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill { color: var(--sun); } }
.pill.ok { background: color-mix(in srgb, var(--aqua) 22%, var(--surface)); color: var(--accent-text); }

/* Also included */
.also { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.also div { padding: 22px 22px 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.also p { color: var(--muted); font-size: 0.97rem; }
@media (max-width: 880px) { .also { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .also { grid-template-columns: 1fr; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: grid; gap: 14px; align-content: start; }
.plan.featured { border: 2px solid var(--teal); }
:root[data-theme="dark"] .plan.featured { border-color: var(--aqua); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .plan.featured { border-color: var(--aqua); } }
.plan .price { font: 800 2.4rem/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan .price small { font: 500 1rem var(--body); color: var(--muted); letter-spacing: 0; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 10px; height: 6px; border-left: 2px solid var(--aqua-text); border-bottom: 2px solid var(--aqua-text); transform: rotate(-45deg); }
.tag { justify-self: start; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; padding: 4px 10px; border-radius: 999px; background: var(--teal); color: var(--paper); }
@media (max-width: 880px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font: 600 1.08rem/1.4 var(--body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 26px; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 70ch; }

/* Closing call to action */
.cta { background: var(--hero-bg); color: var(--hero-text); border-radius: 28px; padding: 48px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.cta p { color: var(--hero-muted); margin-top: 10px; }
.cta .hero-actions { margin-top: 0; }
@media (max-width: 880px) { .cta { grid-template-columns: 1fr; padding: 32px 24px; } }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 40px 48px; margin-top: 88px; color: var(--muted); font-size: 0.95rem; }
.site-foot .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-foot h4 { margin: 0 0 10px; font: 600 0.85rem var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--accent-text); text-decoration: underline; }
@media (max-width: 760px) { .site-foot .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-foot .wrap > div:first-child { grid-column: 1 / -1; } }

/* Content pages (guides, privacy, download) */
.page-head { background: var(--hero-bg); color: var(--hero-text); }
.page-head .wrap { padding-block: 56px 60px; display: grid; gap: 14px; }
.page-head .lede { color: var(--hero-muted); }
.page-head .eyebrow { color: var(--aqua-light); }
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-block: 56px 0; }
.doc nav { position: sticky; top: 96px; align-self: start; display: grid; gap: 4px; font-size: 0.95rem; }
.doc nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; }
.doc nav a:hover { background: var(--surface-2); color: var(--text); }
.prose { max-width: 72ch; display: grid; gap: 16px; }
.prose h2 { font-size: 1.7rem; margin-top: 32px; padding-top: 8px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 12px; }
.prose ol, .prose ul { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.prose li::marker { color: var(--accent-text); font-weight: 600; }
.prose .note { background: var(--surface-2); border-radius: var(--radius); padding: 16px 18px; color: var(--text); }
.prose code, .prose kbd { font-family: var(--mono); font-size: 0.9em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
.path { font-weight: 600; color: var(--text); }
@media (max-width: 880px) { .doc { grid-template-columns: 1fr; gap: 24px; padding-block: 32px 0; } .doc nav { position: static; grid-auto-flow: row; } }

.download-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: grid; gap: 18px; }
.download-meta { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; font-size: 0.95rem; }
.download-meta dt { color: var(--muted); }
.download-meta dd { margin: 0; overflow-wrap: anywhere; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: start; }
.steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; background: var(--teal); color: var(--paper); display: grid; place-items: center; font: 700 0.95rem var(--display); }
:root[data-theme="dark"] .steps li::before { background: var(--aqua); color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .steps li::before { background: var(--aqua); color: var(--ink); } }

.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.swatch { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.swatch i { display: block; height: 84px; }
.swatch div { padding: 10px 12px; font-size: 0.9rem; }
.logo-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.logo-tiles figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.logo-tiles .pad { padding: 28px; display: grid; place-items: center; min-height: 150px; }
.logo-tiles .pad.dark { background: #0D1B1E; }
.logo-tiles figcaption { padding: 10px 14px; border-top: 1px solid var(--line); font-size: 0.9rem; display: flex; justify-content: space-between; gap: 10px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Spacing helpers */
.mt-xs { margin-top: 6px; } .mt-s { margin-top: 12px; } .mt-m { margin-top: 18px; } .mt-xl { margin-top: 88px; }
.metric-value { font: 700 1.25rem/1.3 var(--display); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 0.85rem; border-radius: 10px; vertical-align: middle; }
.font-display { font-family: var(--display); }
.sw-teal { background: #0B3A43; } .sw-aqua { background: #17A398; } .sw-sun { background: #F2B33D; } .sw-paper { background: #F6F8F7; border-bottom: 1px solid var(--line); } .sw-ink { background: #0D1B1E; }
[hidden] { display: none !important; }
.nav a.btn-dark, .nav a.btn-dark:hover { color: var(--paper); }
