/* byteQ 360 website. Colours come from the brand kit (ink #111111, white) and the chosen shade: assets/js/theme.js
   sets --accent-*-l (light) and --accent-*-d (dark); the fallbacks below are the brand teal. */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f7f6;
  --card: #ffffff;
  --fg: #111111;
  --muted: #5b6360;
  --line: #e4e8e6;
  --accent: var(--accent-l, #0D9488);
  --accent-strong: var(--accent-strong-l, #0B7C72);
  --accent-soft: var(--accent-soft-l, #e6f5f3);
  --accent-ink: var(--accent-ink-l, #0B7C72);
  --logo-ink: #111111;
  --frame: #f0f3f2;
  --shadow: 0 1px 2px rgba(17, 17, 17, .04), 0 12px 32px -12px rgba(17, 17, 17, .14);
  --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0f0f; --bg-alt: #131616; --card: #171a1a; --fg: #f1f3f2; --muted: #a2aaa7; --line: #262b2a;
    --accent: var(--accent-d, #0D9488); --accent-strong: var(--accent-strong-d, #14b8a6); --accent-soft: var(--accent-soft-d, #0f2a27); --accent-ink: var(--accent-ink-d, #5eead4); --logo-ink: #ffffff; --frame: #1d2121;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d0f0f; --bg-alt: #131616; --card: #171a1a; --fg: #f1f3f2; --muted: #a2aaa7; --line: #262b2a;
  --accent: var(--accent-d, #0D9488); --accent-strong: var(--accent-strong-d, #14b8a6); --accent-soft: var(--accent-soft-d, #0f2a27); --accent-ink: var(--accent-ink-d, #5eead4); --logo-ink: #ffffff; --frame: #1d2121;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 "Albert Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1400px; margin: 0 auto; padding-inline: 24px; }
.wrap.narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--fg); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Logo: drawn inline (#byteq-logo), so its mark follows the shade and its words the theme */
.logo { display: block; }

/* Colour picker in the header */
.accent-picker { position: relative; }
.accent-picker[hidden] { display: none; }
.accent-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 232px; padding: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.accent-menu[hidden] { display: none; }
.accent-menu p { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.accent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.accent-swatch {
  display: grid; justify-items: center; gap: 4px; padding: 6px 0 4px; border: 0; border-radius: 10px; background: transparent;
  color: var(--muted); font-family: inherit; font-size: 11px; font-weight: 500; line-height: 1.2; cursor: pointer;
}
.accent-swatch:hover { background: var(--bg-alt); color: var(--fg); }
.accent-swatch span { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.accent-swatch[aria-checked="true"] { color: var(--fg); font-weight: 700; }
.accent-swatch[aria-checked="true"] span { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px currentColor; }
.accent-reset { margin-top: 10px; width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--fg); font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.accent-reset:hover { border-color: var(--accent); color: var(--accent-ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-family: inherit; font-weight: 600; font-size: 15px; line-height: 1;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card); color: var(--fg); cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn .i-moon { display: none; }
:root[data-theme="dark"] .icon-btn .i-sun { display: none; }
:root[data-theme="dark"] .icon-btn .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn .i-sun { display: none; }
  :root:not([data-theme="light"]) .icon-btn .i-moon { display: block; }
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand .logo { width: 132px; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.nav a:hover, .nav a.active { color: var(--fg); background: var(--bg-alt); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: 72px 0; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 420px at 50% -8%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 0%, #000 45%, transparent 100%);
          mask-image: radial-gradient(ellipse 75% 60% at 50% 0%, #000 45%, transparent 100%);
  opacity: .9;
}
/* Copy on the left, the product tour on the right; stacked and centred on smaller screens */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 600px); gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; text-align: left; min-width: 0; }
.pill-date { color: var(--muted); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 0%, transparent); } 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent); } }
.hero h1 { font-size: clamp(36px, 4vw, 58px); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; margin: 26px 0 20px; max-width: 24ch; text-wrap: balance; }
.grad { background: linear-gradient(100deg, var(--accent) 10%, color-mix(in srgb, var(--accent) 60%, #7c3aed) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); max-width: 54ch; }
.lead strong { color: var(--fg); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 12px; margin: 34px 0 22px; }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-primary { box-shadow: 0 1px 0 rgba(255, 255, 255, .15) inset, 0 8px 20px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-ghost { background: var(--card); }
.btn-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.hero-facts { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 10px 24px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 14.5px; }
.hero-facts li { display: inline-flex; align-items: center; gap: 7px; }
.hero-facts svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Dashboard preview */
.showcase { position: relative; margin: 64px auto 0; max-width: 1240px; padding-bottom: 72px; }
.showcase-glow { position: absolute; inset: 8% 6% 30%; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 35%, transparent), transparent); filter: blur(30px); }
.app {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-align: left;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--card) 55%, transparent), 0 30px 80px -30px rgba(17, 17, 17, .35);
}
.app-top { display: flex; align-items: center; gap: 14px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: var(--frame); font-size: 12.5px; color: var(--muted); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.dots i:nth-child(1) { background: #f87171; } .dots i:nth-child(2) { background: #fbbf24; } .dots i:nth-child(3) { background: #34d399; }
.app-url { font-weight: 600; color: var(--fg); }
.app-search { margin-left: auto; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); min-width: 200px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 700; font-size: 11px; }
.app-shell { display: grid; grid-template-columns: 188px 1fr; }
.app-nav { display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; border-right: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.app-nav span { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; }
.app-nav i { width: 14px; height: 14px; border-radius: 4px; background: var(--frame); border: 1px solid var(--line); }
.app-nav .on { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.app-nav .on i { background: var(--accent); border-color: var(--accent); }
.app-content { padding: 20px 22px 22px; display: grid; gap: 16px; min-width: 0; }
.app-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app-head b { display: block; font-size: 18px; }
.app-head small, .stats small, .panel-head small, .list-panel small { color: var(--muted); font-size: 12px; }
.app-btn { padding: 8px 14px; border-radius: 9px; background: var(--fg); color: var(--bg); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stats div { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; }
.stats b { font-size: 24px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stats b.t { color: var(--accent-ink); font-size: 20px; line-height: 1.45; }
.stats em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.stats em.up { color: var(--accent-ink); }
.panels { display: grid; grid-template-columns: 1.15fr 1fr; gap: 12px; }
.panel { border: 1px solid var(--line); border-radius: 12px; padding: 14px; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.panel-head b { font-size: 14px; }
.bars { display: flex; align-items: flex-end; gap: 14px; height: 128px; padding-bottom: 18px; }
.bars i { position: relative; flex: 1; height: var(--h); border-radius: 7px 7px 3px 3px; background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 45%, transparent)); }
.bars span { position: absolute; bottom: -18px; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--muted); font-style: normal; }
.list-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.list-panel li { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.list-panel li div { flex: 1; min-width: 0; }
.list-panel li b { display: block; font-size: 13px; }
.ava { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; flex: none; }
.ava.a1 { background: #6366f1; } .ava.a2 { background: #f59e0b; } .ava.a3 { background: #ec4899; }
.chip { font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); }
.toast {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 11px 15px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 16px 40px -16px rgba(17, 17, 17, .35); text-align: left;
  animation: float 6s ease-in-out infinite;
}
.toast b { display: block; font-size: 13.5px; }
.toast small { color: var(--muted); font-size: 12px; }
.toast-ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; font-size: 14px; flex: none; }
.toast-ico.t2 { background: #2563EB; }
.toast-a { left: -28px; top: 34%; }
.toast-b { right: -28px; top: 62%; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* Product tour (slider in the HRMS section) */
.tour { position: relative; min-width: 0; }
.tour .showcase-glow { inset: 12% 4% 18%; }
/* Feature pills floating over the screenshot, three per screen */
.tour-pills { position: absolute; inset: 0 0 48px; pointer-events: none; z-index: 2; }
.pill-set { position: absolute; inset: 0; }
.pill {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 650; color: var(--fg); white-space: nowrap;
  box-shadow: 0 14px 34px -14px rgba(17, 17, 17, .38), 0 2px 6px rgba(17, 17, 17, .05);
  animation: pill-in .5s ease both, float 5.5s ease-in-out infinite;
}
.pill-ico { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--accent); }
.pill-ico.b { background: #2563EB; } .pill-ico.a { background: #f59e0b; }
.pill-ico svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
/* The pills sit in a row under the screen, so they never cover what the screen shows. */
.tour-pills { position: static; margin-top: 16px; }
.pill-set { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; }
.pill-set[hidden] { display: none; }
.pill { position: static; animation: pill-in .5s ease both; }
.pill.p2 { animation-delay: .08s; } .pill.p3 { animation-delay: .16s; }
@keyframes pill-in { from { opacity: 0; transform: translateY(10px) scale(.96); } }
@media (prefers-reduced-motion: reduce) { .pill { animation: none; } }
.tour .app-top { padding: 9px 14px; }
.tour .avatar { margin-left: auto; width: 24px; height: 24px; font-size: 10px; }
.tour-track { position: relative; height: 348px; overflow: hidden; }
.slide { position: absolute; inset: 0; padding: 16px 18px; display: grid; gap: 12px; align-content: start; opacity: 0; transform: translateX(24px); transition: opacity .45s ease, transform .45s ease; pointer-events: none; }
.slide.is-on { opacity: 1; transform: none; pointer-events: auto; }
.slide.is-out { transform: translateX(-24px); }
.s-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.s-head b { display: block; font-size: 16px; }
.s-head small { color: var(--muted); font-size: 12px; }
.tour .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tour .stats div { padding: 10px 12px; }
.tour .stats b { font-size: 21px; }
.tour .bars { height: 96px; gap: 12px; }
.tour .panel { padding: 12px; }
.rows { display: grid; gap: 8px; }
.rows div { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 11px; }
.rows .dot { grid-row: 1 / 3; width: 9px; height: 9px; border-radius: 50%; }
.dot.g { background: var(--accent); } .dot.a { background: #f59e0b; } .dot.b { background: #2563EB; }
.rows b { font-size: 13px; } .rows small { grid-column: 2; color: var(--muted); font-size: 12px; }
.rows .tag { grid-column: 3; grid-row: 1 / 3; }
.tag { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--frame); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.tag.ok { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.tag.warn { background: color-mix(in srgb, #f59e0b 16%, var(--card)); color: #b45309; border-color: transparent; }
.balances { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.balances div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 4px; }
.balances small { color: var(--muted); font-size: 12px; }
.balances b { font-size: 21px; font-variant-numeric: tabular-nums; }
.meter { height: 5px; border-radius: 99px; background: var(--frame); overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--w); background: var(--accent); border-radius: inherit; }
.kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kanban div { display: grid; gap: 7px; align-content: start; padding: 10px; border-radius: 12px; background: var(--frame); border: 1px solid var(--line); min-height: 190px; }
.kanban small { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 600; }
.kanban em { font-style: normal; color: var(--fg); }
.kanban .card { padding: 9px 10px; border-radius: 9px; background: var(--card); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; box-shadow: 0 1px 2px rgba(17, 17, 17, .04); }
.kanban .card.on { border-color: var(--accent); color: var(--accent-ink); }
.tour-controls { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.tour-arrow { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--fg); cursor: pointer; }
.tour-arrow:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.tour-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tour-dots { display: flex; gap: 6px; }
.tour-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: var(--line); cursor: pointer; transition: width .3s, background .3s; }
.tour-dots button:hover { background: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.tour-dots button.on { width: 22px; background: var(--accent); }
.tour-progress { flex: 1; height: 3px; border-radius: 99px; background: var(--line); overflow: hidden; }
.tour-progress i { display: block; height: 100%; width: 0; background: var(--accent); }
.tour-progress i.run { animation: tour-fill var(--tour-ms, 5000ms) linear forwards; }
@keyframes tour-fill { to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } .tour-progress { display: none; } }

/* Sections */
.section { padding-block: 96px; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.eyebrow { color: var(--accent-ink); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.section-head h2, .contact-copy h2 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
.section-head p:not(.eyebrow), .contact-copy > p:not(.eyebrow) { color: var(--muted); font-size: 17.5px; }

/* Products */
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product {
  position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.product:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-2px); box-shadow: var(--shadow); }
.product.live { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.product.more { border-style: dashed; background: transparent; }
.timeline li.more::before { border-style: dashed; }
.p-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.p-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.p-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.status { font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.status.live { background: var(--accent); color: #fff; }
.product h3 { font-size: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ai { font-size: 11px; font-weight: 800; letter-spacing: .08em; padding: 3px 7px; border-radius: 6px; background: linear-gradient(135deg, var(--accent), #2563EB); color: #fff; }
.product p { color: var(--muted); font-size: 15px; }
.product .p-link { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: 14.5px; color: var(--accent-ink); text-decoration: none; }
.product .p-link:hover { text-decoration: underline; }

/* HRMS features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; min-width: 0; }
.f-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 16px; }
.f-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

/* Roadmap */
.next-launch {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--fg); color: var(--bg); border-radius: 20px; padding: 26px 30px; margin-bottom: 40px;
}
.next-launch small { display: block; opacity: .7; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.next-launch .nl-name { font-size: 24px; font-weight: 800; }
.countdown { display: flex; gap: 10px; }
.countdown div { min-width: 74px; text-align: center; background: color-mix(in srgb, var(--bg) 12%, transparent); border-radius: 14px; padding: 10px 8px; }
.countdown b { display: block; font-size: 28px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.countdown span { font-size: 12px; opacity: .7; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 160px 1fr; gap: 22px; padding: 0 0 30px 44px; }
.timeline li::before {
  content: ""; position: absolute; left: 4px; top: 5px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--line);
}
.timeline li.live::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.timeline li.next::before { border-color: var(--accent); }
.t-date { font-weight: 700; font-variant-numeric: tabular-nums; }
.t-date small { display: block; color: var(--muted); font-weight: 500; font-size: 13px; }
.t-body h3 { font-size: 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 4px; }
.t-body p { color: var(--muted); font-size: 15px; max-width: 62ch; }
.notify { margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; max-width: 640px; }
.notify label { display: block; font-weight: 600; margin-bottom: 10px; }
.notify-row { display: flex; gap: 10px; flex-wrap: wrap; }
.notify-row input { flex: 1 1 220px; }

/* Why */
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.why article { border-top: 3px solid var(--accent); padding-top: 18px; min-width: 0; }
.why h3 { font-size: 18px; margin-bottom: 8px; }
.why p { color: var(--muted); font-size: 15px; }

/* Pricing */
.billing-switch { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); margin-bottom: 28px; }
.billing-switch button { font-family: inherit; font-weight: 600; font-size: 14px; line-height: 1; border: 0; background: transparent; color: var(--muted); padding: 10px 18px; border-radius: 999px; cursor: pointer; }
.billing-switch button.on { background: var(--card); color: var(--fg); box-shadow: var(--shadow); }
.billing-switch span { color: var(--accent-ink); font-size: 12.5px; margin-left: 4px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; min-width: 0; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, var(--shadow); }
.plan .tag { position: absolute; top: -12px; left: 28px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.plan h3 { font-size: 20px; }
.price { margin: 14px 0 6px; display: flex; align-items: baseline; gap: 4px; }
.price b { font-size: 40px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); }
.plan-sub { color: var(--muted); font-size: 14.5px; min-height: 44px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 10px; font-size: 15px; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; }
.plan .btn { margin-top: auto; }
.plan-desc { color: var(--muted); font-size: 14px; margin-top: 6px; min-height: 42px; }
.plans-source { margin-top: 16px; color: var(--muted); font-size: 13px; text-align: center; min-height: 1em; }
.billing-switch span:empty { display: none; }

/* Question / demo band */
.cta-band { background: var(--accent); color: #fff; padding-block: 56px; }
.cta-band-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.015em; margin-bottom: 8px; }
.cta-band p { opacity: .95; font-size: 17px; }
.cta-band .cta-row { margin: 0; }
.btn-light { background: #fff; color: var(--accent-strong-l, var(--accent-strong)); }   /* the light-theme shade: dark enough on white in both themes */
.btn-light:hover { background: #f1f5ff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 17px; padding: 16px 30px 16px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 24px; font-weight: 400; color: var(--accent-ink); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 18px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-copy { min-width: 0; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: center; }
.contact-list small { display: block; color: var(--muted); font-size: 13px; }
.c-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); flex: none; }
.c-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.copyable { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.copyable b { user-select: all; }
.copy { font-family: inherit; font-weight: 600; font-size: 12.5px; line-height: 1; border: 1px solid var(--line); background: var(--card); color: var(--muted); border-radius: 8px; padding: 6px 9px; cursor: pointer; }
.copy:hover { color: var(--fg); border-color: var(--accent); }
.contact-form { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); display: grid; gap: 16px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label { font-weight: 600; font-size: 14px; }
input, select, textarea {
  width: 100%; font-family: inherit; font-size: 15px; line-height: 1.4; color: var(--fg); background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #dc2626; }
/* A field only bots fill in; kept off-screen rather than hidden, which some bots skip. */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form, .notify { position: relative; }
button:disabled { opacity: .65; cursor: wait; }
.form-note { font-size: 14px; color: var(--muted); min-height: 1.2em; }
.form-note.ok { color: var(--accent-ink); }
.form-note.err { color: #dc2626; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 28px; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid .logo { width: 128px; margin-bottom: 14px; }
.footer-grid p { color: var(--muted); }
.footer-grid h3 { line-height: inherit; text-wrap: wrap; margin: 0 0 12px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; color: var(--fg); }
.footer-grid a:hover { color: var(--accent-ink); }
.footer-grid .soon { color: var(--muted); font-size: 13px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-base a { color: var(--muted); text-decoration: none; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse, .toast { animation: none; }
}

/* Smaller screens */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { align-items: center; text-align: center; }
  .cta-row, .hero-facts { justify-content: center; }
  .tour, .hero-scene { max-width: 600px; margin-inline: auto; width: 100%; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .toast-a { left: 12px; } .toast-b { right: 12px; }
  .app-shell { grid-template-columns: 150px 1fr; }
  .products, .features, .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-grid; }
  .nav {
    position: fixed; inset: calc(72px + env(safe-area-inset-top, 0px)) 0 auto 0; flex-direction: column; gap: 2px; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 16px 18px; box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; font-size: 16px; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 640px) {
  .tour-track { height: 372px; }
  .pill { font-size: 12px; padding: 6px 11px 6px 6px; }
  .pill-ico { width: 20px; height: 20px; }
  .slide { padding: 14px; }
  .tour .stats, .balances { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .tour .stats b, .balances b { font-size: 18px; }
  .kanban { gap: 7px; } .kanban div { padding: 8px; }
  .hide-sm { display: none; }
  .section { padding-block: 72px; }
  .hero { padding-block: 44px 0; }
  .br-lg { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panels { grid-template-columns: 1fr; }
  .app-search, .app-url { display: none; }
  .showcase { margin-top: 44px; padding-bottom: 56px; }
  .toast { display: none; }
  .products, .features, .plans, .why, .field-row, .footer-grid { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .next-launch { padding: 22px; }
  .countdown div { min-width: 0; flex: 1; }
  .app-shell { grid-template-columns: 1fr; }
  .app-nav { display: none; }
}

/* Hero scene: isometric platforms around the byteQ mark. Colours come from the shade (--accent) and the theme. */
.hero-scene { position: relative; min-width: 0; }
.hero-scene .showcase-glow { inset: 14% 8% 14%; }
.scene { position: relative; display: block; width: 100%; height: auto; overflow: visible; }
.sc-tile { fill: none; stroke: color-mix(in srgb, var(--accent) 22%, transparent); stroke-width: 1; }
.sc-top { fill: color-mix(in srgb, var(--accent) 9%, var(--card)); stroke: color-mix(in srgb, var(--accent) 30%, transparent); stroke-width: 1; }
.sc-top-strong { fill: color-mix(in srgb, var(--accent) 15%, var(--card)); }
.sc-left { fill: color-mix(in srgb, var(--accent) 30%, var(--card)); }
.sc-right { fill: color-mix(in srgb, var(--accent) 20%, var(--card)); }
.sc-ring { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 4 5; opacity: .55; }
.sc-glass-top { fill: color-mix(in srgb, var(--accent) 16%, transparent); stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.sc-glass-left { fill: color-mix(in srgb, var(--card) 72%, transparent); stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.sc-glass-right { fill: color-mix(in srgb, var(--accent) 22%, transparent); stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.sc-accent { fill: var(--accent); }
.sc-white { fill: #fff; }
.sc-dot-a { fill: #22c55e; }
.sc-dot-b { fill: var(--accent); }
.sc-screen { fill: var(--card); stroke: color-mix(in srgb, var(--accent) 45%, transparent); stroke-width: 1.5; }
.sc-screen-dark { fill: #111827; stroke: #0b1220; }
.sc-screen-bar { fill: var(--accent); }
.sc-screen-bar-dark { fill: #1f2937; }
.sc-line { fill: color-mix(in srgb, var(--fg) 32%, transparent); }
.sc-line-soft { fill: color-mix(in srgb, var(--fg) 14%, transparent); }
.sc-avatar0 { fill: var(--accent); }
.sc-avatar1 { fill: #f59e0b; }
.sc-avatar2 { fill: #ec4899; }
.sc-chip { fill: color-mix(in srgb, #22c55e 35%, transparent); }
.sc-txt { font: 800 14px "Albert Sans", system-ui, sans-serif; fill: var(--fg); }
.sc-bar { fill: var(--accent); }
.sc-card-a { fill: var(--accent); }
.sc-card-b { fill: #475569; }
.sc-card-c { fill: #f59e0b; }
.sc-card-move { fill: #22c55e; animation: scMove 6s ease-in-out infinite; }
.sc-col-top, .sc-mini-top { fill: color-mix(in srgb, var(--accent) 45%, #ffffff); }
.sc-col-left, .sc-mini-left { fill: var(--accent); }
.sc-col-right, .sc-mini-right { fill: color-mix(in srgb, var(--accent) 70%, #000000); }
.sc-badge-a { fill: var(--accent); }
.sc-badge-b { fill: #f59e0b; }
.sc-badge-c { fill: #ec4899; }
.sc-badge-d { fill: #22c55e; }
.sc-ico { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sc-link { fill: none; stroke: color-mix(in srgb, var(--fg) 40%, transparent); stroke-width: 1.4; stroke-dasharray: 5 6; animation: scDash 1.6s linear infinite; }

.sc-float { animation: scFloat 6s ease-in-out infinite; }
.sc-float-sm { animation-duration: 4.6s; }
.sc-grow, .sc-grow-iso { transform-box: fill-box; transform-origin: 50% 100%; animation: scGrow 3.4s ease-in-out infinite; }
@keyframes scFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes scGrow { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.62); } }
@keyframes scDash { to { stroke-dashoffset: -22; } }
@keyframes scMove { 0%, 20% { transform: translateX(0); } 45%, 70% { transform: translateX(var(--sc-move, 40px)); } 95%, 100% { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  .scene * { animation: none !important; }
}

/* A section heading beside the product tour (Platform section) */
.section-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 600px); gap: 56px; align-items: center; margin-bottom: 56px; }
.section-top .section-head { margin-bottom: 0; }
@media (max-width: 980px) {
  .section-top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

/* "Start free trial": which product */
.chooser { border: 0; padding: 0; background: transparent; max-width: min(520px, calc(100vw - 32px)); width: 100%; color: var(--fg); }
.chooser::backdrop { background: rgba(10, 12, 12, .55); backdrop-filter: blur(3px); }
.chooser-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.chooser-card h2 { margin: 0 0 4px; font-size: 22px; }
.chooser-sub { margin: 0 0 20px; color: var(--muted); }
.chooser-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--fg); font-size: 22px; line-height: 1; cursor: pointer; }
.chooser-close:hover { border-color: var(--accent); color: var(--accent-ink); }
.chooser-options { display: grid; gap: 12px; }
.chooser-option { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--fg); text-decoration: none; transition: border-color .2s, background .2s; }
.chooser-option:hover, .chooser-option:focus-visible { border-color: var(--accent); background: var(--accent-soft); }
.chooser-option strong { display: block; font-size: 16px; }
.chooser-option small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.chooser-option .p-icon svg { width: 22px; height: 22px; }
.chooser-go { color: var(--accent-ink); font-size: 20px; }
.chooser-foot { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.chooser-foot a { color: var(--accent-ink); }
@media (max-width: 480px) { .chooser-card { padding: 22px 18px; } }

/* Hero fills the first screen exactly (below the sticky header) on any screen size, and resizes with the window.
   Text stays at its normal size; the room is filled by the product cards, the scene and the strip along the bottom.
   On phones the scene takes the room the words leave and gives way entirely on short screens. */
:root { --header-h: calc(72px + env(safe-area-inset-top, 0px)); --hero-pad: clamp(16px, 3vh, 36px); --strip-h: 84px; }
.hero { display: flex; flex-direction: column; justify-content: center; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); padding-block: var(--hero-pad) 0; }
.hero > .hero-grid { width: 100%; flex: 1 1 auto; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 3vw, 56px); }
.hero h1 { font-size: clamp(30px, min(4.2vw, 6.6vh), 62px); margin: 0 0 clamp(10px, 2.2vh, 22px); text-wrap: balance; }
.hero .lead { font-size: clamp(16px, min(1.4vw, 2.3vh), 19.5px); }
.hero .cta-row { margin: clamp(14px, 3vh, 30px) 0 clamp(12px, 2.2vh, 20px); }
.hero .scene { height: calc(100svh - var(--header-h) - var(--hero-pad) - var(--strip-h) - 16px); max-height: 640px; width: auto; max-width: 100%; margin-inline: auto; }

/* What every product comes with: a strip along the bottom of the hero */
.hero-strip { flex: none; padding-block: 16px; }
.hero-strip ul { list-style: none; margin: 0; padding: 18px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 24px; border-top: 1px solid var(--line); }
.hero-strip li { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hs-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hs-icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); flex: none; }
.hero-strip b { display: block; font-size: 14.5px; }
.hero-strip small { display: block; color: var(--muted); font-size: 13px; }

@media (max-width: 980px) {
  .hero > .hero-grid { display: flex; flex-direction: column; justify-content: center; gap: clamp(12px, 3vh, 40px); }
  .hero-scene { flex: 1 1 0; min-height: 0; display: flex; justify-content: center; }
  .hero .scene { height: 100%; max-height: 440px; }
  .hero h1 { font-size: clamp(28px, min(8.4vw, 5.4vh), 48px); }
  .hero .lead { font-size: clamp(15px, min(4.1vw, 2.2vh), 18px); }
  .hero-strip ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) and (max-height: 560px) { .hero-scene { display: none; } }
@media (max-width: 520px) {
  .hero-strip small { display: none; }
  .hero-strip ul { gap: 12px 14px; }
}

/* Footer with a Legal column */
.footer-grid { grid-template-columns: 1.5fr 1.5fr 1fr 1fr; }
.footer-grid .soon { white-space: nowrap; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }

/* Legal and not-found pages */
.doc { padding-block: 56px 88px; }
.doc h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.doc .updated { color: var(--muted); margin-bottom: 32px; }
.doc h2 { font-size: 21px; margin: 34px 0 10px; }
.doc p, .doc li { color: var(--fg); line-height: 1.7; }
.doc ul { padding-left: 22px; margin: 0 0 14px; }
.doc a { color: var(--accent-ink); }
.notfound { min-height: calc(100svh - var(--header-h) - 120px); display: grid; place-content: center; text-align: center; gap: 14px; padding-block: 48px; }
.notfound h1 { font-size: clamp(34px, 6vw, 56px); font-weight: 800; }
.notfound p { color: var(--muted); }

/* "And many more" closes the product list across the full row. */
.product.more { grid-column: 1 / -1; }
.doc-nav { display: flex; gap: 4px; margin-left: auto; }
.doc-nav a { padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.doc-nav a:hover { color: var(--fg); background: var(--bg-alt); }
/* Phones: the three links fit beside the logo without a sideways scroll; the narrowest keep only Contact. */
@media (max-width: 480px) { .doc-nav { gap: 0; } .doc-nav a { padding: 8px 7px; font-size: 14px; } .header-row:has(.doc-nav) { gap: 10px; } .header-row:has(.doc-nav) .brand .logo { width: 112px; } }
@media (max-width: 374px) { .doc-nav a:nth-child(-n+2) { display: none; } }

/* Module names under the product cards */
.hero-modules { display: grid; gap: 8px; margin-top: clamp(18px, 3.4vh, 30px); width: 100%; max-width: 620px; }
.hm-row { display: flex; align-items: flex-start; gap: 10px; }
.hm-label { flex: none; width: 58px; padding-top: 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); text-align: left; }
.hero-modules ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hero-modules li { font-size: 12.5px; font-weight: 550; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--card) 85%, transparent); color: var(--fg); white-space: nowrap; }
@media (max-width: 980px) { .hero-modules { margin-inline: auto; } .hm-row { flex-direction: column; align-items: center; gap: 6px; } .hm-label { width: auto; padding: 0; } .hero-modules ul { justify-content: center; } }
@media (max-width: 520px) { .hero-modules li:nth-child(n+7) { display: none; } .hero-modules li { font-size: 12px; padding: 3px 9px; } }
/* Keep the hero to one screen where room is short: drop the small ticks, then (on phones) the strip */
@media (max-height: 780px), (max-width: 980px) { .hero-facts { display: none; } }
@media (max-width: 640px) {
  .hero-strip { display: none; }
  .hero { padding-bottom: var(--hero-pad); }
  .hero .cta-row { flex-wrap: nowrap; width: 100%; }
  .hero .cta-row .btn-lg { flex: 1; padding-inline: 12px; font-size: 15px; }
}
/* Mid-size screens: more room for the words, fewer chips; phones: the chips replace the scene */
@media (min-width: 981px) and (max-width: 1240px) {
  .hero > .hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .hero-modules li:nth-child(n+7) { display: none; }
  .hero-strip small { display: none; }
}

/* The scene, a little smaller, with module labels floating around the byteQ cube */
.hero-scene { display: flex; justify-content: center; align-items: center; }
.scene-box { position: relative; height: calc((100svh - var(--header-h) - var(--hero-pad) - var(--strip-h) - 16px) * .8); max-height: 520px; aspect-ratio: 572 / 444; max-width: 86%; }
.scene-box .scene, .hero .scene-box .scene { width: 100%; height: 100%; max-height: none; max-width: none; }
.scene-tags { position: absolute; inset: 0; pointer-events: none; }
.stag {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 12px;
  background: color-mix(in srgb, var(--card) 92%, transparent); border: 1px solid var(--line); backdrop-filter: blur(6px);
  box-shadow: 0 12px 28px -14px rgba(17, 17, 17, .35), 0 2px 6px rgba(17, 17, 17, .05);
  white-space: nowrap; animation: float 6s ease-in-out infinite; transform-origin: center;
}
.stag i { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); flex: none; }
.stag i svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stag b { display: block; font-size: 12.5px; line-height: 1.2; color: var(--fg); }
.stag small { display: block; font-size: 11px; line-height: 1.2; color: var(--muted); }
/* The byteQ 360 products around the cube (centre ≈ 47% / 47%), kept off the cube and the scene's own badges */
/* Each label sits by the drawing that shows its product: Campus by the list screen (students), HRMS by the payroll
   screen, Project Management under the task board, Business Finance above the bar chart, Documentation Studio on
   the document badge (which it replaces), Municipal Finance under the government building. */
.stag.t1 { left: 20%;  top: -1%;  animation-delay: 0s; }
.stag.t2 { right: -6%; top: 8%;   animation-delay: -1.5s; }
.stag.t3 { left: 50%;  top: 80%;  animation-delay: -3s; }
.stag.t5 { right: -14%; top: 56%; animation-delay: -4.5s; }
.stag.t6 { left: -12%; top: 27%;  animation-delay: -2.3s; }
.stag.t8 { left: -14%; top: 75%; animation-delay: -5.2s; }
.stag.live { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.stag.live i { background: var(--accent); color: #fff; }
.stag em { font-style: normal; font-weight: 700; font-size: 10px; padding: 1px 6px; margin-right: 3px; border-radius: 999px; background: var(--accent); color: #fff; }
.stag b { font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .stag { animation: none; } }
@media (max-width: 1240px) { .stag small { display: none; } .stag { padding: 5px 10px 5px 5px; } .stag i { width: 24px; height: 24px; } }
@media (max-width: 980px) {
  .scene-box { height: 100%; max-height: 380px; }
  .hero-scene { align-items: stretch; }
}
@media (max-width: 980px) and (max-height: 560px) { .hero-scene { display: none; } }
@media (max-width: 640px) { .scene-tags { display: none; } .scene-box { max-width: 100%; } }
/* Up to 1440px wide the scene sits close to the window's right edge: pull Documentation Studio in so it isn't cut off. */
@media (max-width: 1440px) { .stag.t5 { right: -8%; } }
/* A scene too small for its six labels (tablets, where its size follows the screen height) shows the picture alone. */
.scene-box { container-type: inline-size; }
@container (max-width: 320px) { .scene-tags { display: none; } }

/* Each product has its own colour on its floating label */
.stag i { color: #fff; }
.stag.app-campus i { background: #4f46e5; }
.stag.app-hrms i   { background: #2563eb; }
.stag.app-pms i    { background: #ea580c; }
.stag.app-docs i   { background: #9333ea; }
.stag.app-biz i    { background: #16a34a; }
.stag.app-mun i    { background: #0d9488; }
.stag i { width: 30px; height: 30px; }
.stag i svg { width: 18px; height: 18px; stroke-width: 1.9; }
.hero .scene g:has(> .sc-badge-a) { display: none; }   /* the Documentation Studio label takes its place */

/* Platform section: the heading centred above the product tour */
#platform .section-top { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 40px; }
#platform .section-head { text-align: center; margin-inline: auto; max-width: 760px; }
#platform .tour { width: 100%; max-width: 760px; }
.doc-footer { padding-top: 0; }
.doc-footer .footer-base { margin-top: 0; border-top: 0; }


/* Pricing: one panel holds the plans; its top bar has the product tabs (the same pill style as the Monthly /
   Yearly switch) on the left and that switch on the right. */
.pricing-panel { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 18px; box-shadow: 0 1px 2px rgba(17, 17, 17, .04); }
.pricing-panel .plans .plan { background: var(--bg); }
.pricing-panel .plans .plan.featured { background: var(--card); }
.pricing-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding: 0 0 18px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.pricing-bar .billing-switch { margin-bottom: 0; }
.product-tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); }
.product-tabs [role="tab"] { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px 8px 10px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: 14.5px; line-height: 1; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.product-tabs [role="tab"]:hover { color: var(--fg); }
.product-tabs [role="tab"][aria-selected="true"] { background: var(--card); color: var(--fg); box-shadow: var(--shadow); }
.product-tabs [role="tab"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pt-icon { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); flex: none; }
.pt-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
[aria-selected="true"] .pt-icon { background: var(--accent-soft); color: var(--accent-ink); }
.pt-text b { font-weight: inherit; }
.pt-text small { display: none; }
/* Campus: all four plans in one row on laptops and desktops */
.plans-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.plans-4 .plan { padding: 24px 20px; }
.plans-4 .price { flex-wrap: wrap; }
.plans-4 .price b { font-size: clamp(30px, 2.6vw, 40px); }
.plans-4 .price span { white-space: nowrap; flex-basis: 100%; }
.plans-4 ul { font-size: 14.5px; }
.plans-4 .btn { white-space: nowrap; }
.plans-foot { margin-top: 22px; color: var(--muted); font-size: 14px; }
.plans-foot a { color: var(--accent-ink); }
@media (max-width: 900px) { .plans-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .plans-4 { grid-template-columns: 1fr; }
  .pricing-panel { padding: 12px; border-radius: 20px; }
  .pricing-bar { flex-direction: column; align-items: stretch; }
  .product-tabs, .pricing-bar .billing-switch { display: flex; }
  .product-tabs [role="tab"], .pricing-bar .billing-switch button { flex: 1; justify-content: center; }
}
#pricing .section-head { max-width: none; }
@media (min-width: 1000px) { #pricing-note { white-space: nowrap; } }
/* Mid widths: the seven menu links and the header buttons share a narrow row */
@media (min-width: 861px) and (max-width: 1100px) { .nav { gap: 0; } .nav a { padding: 8px 9px; font-size: 14.5px; } .header-row { gap: 14px; } }
.c-sub { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.contact-list b a { color: inherit; text-decoration: none; }

/* Header: the Products menu (hover or keyboard on desktop; listed in the menu on phones) */
.nav-drop { position: relative; display: flex; }
.nav-drop-btn { display: inline-flex; align-items: center; gap: 4px; }
.nav-drop-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.nav-menu { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); min-width: 340px; padding: 8px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); display: none; z-index: 60; }
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-drop:hover .nav-menu, .nav-drop:focus-within .nav-menu { display: grid; }
@media (min-width: 861px) { .nav-drop.shut .nav-menu { display: none; } .nav-drop.shut .nav-drop-btn svg { transform: none; } }
.nav-drop:hover .nav-drop-btn svg, .nav-drop:focus-within .nav-drop-btn svg { transform: rotate(180deg); }
.nav .nav-menu a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; color: var(--fg); font-size: 14.5px; }
.nav .nav-menu a:hover { background: var(--bg-alt); }
.nm-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); flex: none; }
.nm-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nm-item b { display: flex; align-items: center; gap: 6px; font-weight: 650; }
.nm-item small { display: block; color: var(--muted); font-size: 12.5px; }
.nm-live { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: #fff; }
.nav .nav-menu a.nm-all { justify-content: center; margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; color: var(--accent-ink); font-weight: 650; }
@media (max-width: 860px) {
  .nav-drop { flex-direction: column; }
  .nav-menu { position: static; transform: none; display: grid; min-width: 0; box-shadow: none; border: 0; padding: 0 0 0 12px; background: transparent; }
  .nav-drop-btn svg { display: none; }
}

/* Products page */
.prod-hero { padding-block: 64px 40px; }
.prod-hero h1 { font-size: clamp(32px, 4.4vw, 54px); font-weight: 800; letter-spacing: -.03em; margin: 0 0 14px; }
.prod-hero .lead { max-width: 62ch; }
.prod-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.prod-jump a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--fg); text-decoration: none; font-weight: 600; font-size: 14px; }
.prod-jump a:hover { border-color: var(--accent); }
.prod-jump .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.prod-jump .dot.live { background: var(--accent); }
.prod-section { scroll-margin-top: 80px; }
.prod-head { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 22px; }
.prod-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 8px; }
.prod-lead { color: var(--muted); font-size: 17px; max-width: 70ch; margin: 0; }
.prod-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--accent); color: #fff; flex: none; }
.prod-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.prod-icon.sm { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); }
.prod-icon.sm svg { width: 21px; height: 21px; }
.prod-facts { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.prod-facts li { padding: 7px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; font-size: 14px; }
.prod-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.soon-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.soon-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; scroll-margin-top: 90px; display: flex; flex-direction: column; }
.soon-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.soon-card h3 { font-size: 21px; margin: 0 0 4px; }
.soon-who { color: var(--accent-ink); font-weight: 600; font-size: 14px; margin: 0 0 8px; }
.soon-card > p { color: var(--muted); }
.soon-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fg) !important; margin: 10px 0 6px; }
.soon-card ul { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 4px; }
.soon-card .p-link { margin-top: auto; font-weight: 600; color: var(--accent-ink); text-decoration: none; }
@media (max-width: 760px) { .soon-grid { grid-template-columns: 1fr; } .prod-head { flex-direction: column; gap: 14px; } }

/* Hero on wider screens: the animated scene and its glow a little smaller, and 10% more room between the words and the scene */
@media (min-width: 981px) {
  .hero > .hero-grid { gap: clamp(26px, 3.3vw, 62px); }
  .scene-box { height: calc((100svh - var(--header-h) - var(--hero-pad) - var(--strip-h) - 16px) * .72); max-height: 468px; max-width: 77%; }
  .hero-scene .showcase-glow { inset: 19% 13% 19%; }
}

/* Hero headline: "One platform." large, the promise under it in a lighter serif italic so the heading takes less height */
.hero h1 .h1-sub {
  display: block; margin-top: .12em; font-family: "Instrument Serif", Georgia, "Times New Roman", serif; font-style: italic;
  font-weight: 400; font-size: .62em; line-height: 1.12; letter-spacing: 0; color: var(--fg); text-wrap: balance;
}
.hero h1 .h1-sub .grad { margin-left: .1em; background: none; color: var(--accent); -webkit-text-fill-color: currentColor; }   /* solid brand colour, not a clipped gradient: a clipped gradient can cut the tails of the g in some browsers */

/* "Try a live demo" links in the hero's fact list */
.hero-facts .hero-demo a { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Hero: about a quarter less space above the words. The words are centred in the first screen, so on wide screens
   a bottom margin lifts them (half of it comes off the space above); the section's own top padding is 25% less too. */
.hero { padding-top: calc(var(--hero-pad) * .75); }
@media (min-width: 981px) {
  .hero-copy { margin-bottom: max(20px, calc((100svh - 720px) * .15 + 22px)); }
}

/* Links to the live demos: product cards, the Products menu and under each pricing tab */
.p-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: auto; }
.p-links .p-link { margin-top: 0; }
.p-demo { font-weight: 600; }
.nav .nav-menu a.nm-demo { display: inline-flex; margin: -8px 0 4px 46px; padding: 3px 10px; font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.nm-demo:hover { text-decoration: underline; text-underline-offset: 3px; }
.plans-demo { margin: 18px 0 0; text-align: center; font-size: 14.5px; color: var(--muted); }
.plans-demo a { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Hero: Try the demo next to the other two buttons; on phones it takes its own row under them */
@media (max-width: 640px) {
  .hero .cta-row { flex-wrap: wrap; }
  .hero .cta-row .btn-demo { flex-basis: 100%; }
}
