/* Marketing site. --brand comes from site.config.json (set inline in each page's head). */
:root {
  --brand: #0f766e;
  --brand-hi: color-mix(in srgb, var(--brand) 70%, #5eead4);
  --brand-50: color-mix(in srgb, var(--brand) 6%, white);
  --brand-100: color-mix(in srgb, var(--brand) 13%, white);
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --ink: #0b1220;
  --text: #334155;
  --muted: #64748b;
  --line: #e5e9f0;
  --bg: #ffffff;
  --tint: #f5f8f8;
  --night: #050f0d;
  --night-2: #0a1916;
  --night-line: rgb(148 163 184 / 14%);
  --night-text: #a8b8b5;
  --crit: #e11d48;
  --high: #f59e0b;
  --ok: #10b981;
  --radius: 18px;
  --shadow: 0 1px 2px rgb(15 23 42 / 5%), 0 10px 30px -10px rgb(15 23 42 / 15%);
  --font: Inter, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
/* Panels set their own display; hidden must still win. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

/* Page scrollbar: a slim brand-gradient pill floating in a dark rail, in step with the hero and the footer. */
html::-webkit-scrollbar { width: 12px; }
html::-webkit-scrollbar-track { background: var(--night); }
html::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand-hi), var(--brand));
  border: 3px solid var(--night); /* the rail shows around the thumb, so it floats */
  border-radius: 999px;
  min-height: 48px;
}
html::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #5eead4, var(--brand-hi)); }
html::-webkit-scrollbar-thumb:active { background: var(--brand-hi); }
html::-webkit-scrollbar-button { display: none; }
/* Firefox has no ::-webkit-scrollbar, and Chromium ignores those rules once scrollbar-color is set: Firefox only. */
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-width: thin; scrollbar-color: var(--brand) var(--night); }
}
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { color: var(--ink); line-height: 1.12; margin: 0 0 0.7rem; letter-spacing: -0.03em; text-wrap: balance; }
.lead { text-wrap: pretty; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 800; letter-spacing: -0.045em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 650; letter-spacing: -0.015em; }
p { margin: 0 0 1rem; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 64ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: 0.14em; font: 600 0.72rem var(--mono); color: var(--brand); margin-bottom: 0.9rem; }
.eyebrow::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, white); outline-offset: 2px; border-radius: 8px; }
.icon { flex: none; }

/* ---- buttons ---------------------------------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; border-radius: 12px; padding: 0.72rem 1.2rem; font: 600 0.95rem/1.2 var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform 0.18s, box-shadow 0.18s, background 0.18s, border-color 0.18s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.88rem; border-radius: 10px; }
.btn-lg { padding: 0.95rem 1.5rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-primary { color: #fff; background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 82%, white), var(--brand)); box-shadow: 0 1px 0 rgb(255 255 255 / 25%) inset, 0 8px 24px -8px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn-primary:hover { box-shadow: 0 1px 0 rgb(255 255 255 / 25%) inset, 0 14px 30px -10px color-mix(in srgb, var(--brand) 80%, transparent); }
.btn-outline { color: var(--ink); background: #fff; border-color: var(--line); box-shadow: 0 1px 2px rgb(15 23 42 / 6%); }
.btn-outline:hover { border-color: color-mix(in srgb, var(--brand) 40%, white); }
.btn-glass { color: #fff; background: rgb(255 255 255 / 6%); border-color: rgb(255 255 255 / 16%); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgb(255 255 255 / 12%); }
.btn-ghost-dark { color: #e2f3f0; border-color: rgb(255 255 255 / 18%); background: transparent; }

/* ---- navigation ------------------------------------------------------------------------------------------------- */
.nav-bar { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / 82%); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: background 0.25s, border-color 0.25s; }
.nav-bar.is-scrolled { border-color: var(--line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.logo img { height: 36px; width: auto; }
.logo-on-dark { display: none; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.93rem; opacity: 0.82; transition: opacity 0.15s; }
.nav a:not(.btn):hover { opacity: 1; }
.nav-sep { width: 1px; height: 22px; background: var(--line); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px; color: var(--ink); cursor: pointer; }
/* Over the dark hero: a transparent bar with light text, until the page scrolls. */
.home .nav-bar.on-dark:not(.is-scrolled) { background: transparent; }
.home .nav-bar.on-dark:not(.is-scrolled) .logo-on-dark { display: block; }
.home .nav-bar.on-dark:not(.is-scrolled) .logo-on-light { display: none; }
.home .nav-bar.on-dark:not(.is-scrolled) .nav a:not(.btn) { color: #e7f5f2; }
.home .nav-bar.on-dark:not(.is-scrolled) .nav-sep { background: rgb(255 255 255 / 18%); }
.home .nav-bar.on-dark:not(.is-scrolled) .menu-btn { color: #fff; border-color: rgb(255 255 255 / 20%); }
.home .nav-bar { position: fixed; left: 0; right: 0; }

/* ---- dark backdrops (hero, call to action, page heads) ------------------------------------------------------------ */
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; }
.glow.g1 { width: 620px; height: 620px; background: color-mix(in srgb, var(--brand) 90%, #34d399); top: -260px; right: -120px; animation: drift 18s ease-in-out infinite alternate; }
.glow.g2 { width: 520px; height: 520px; background: var(--violet); bottom: -300px; left: -160px; opacity: 0.32; animation: drift 22s ease-in-out infinite alternate-reverse; }
.glow.g3 { width: 360px; height: 360px; background: var(--cyan); top: 30%; left: 42%; opacity: 0.16; }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgb(255 255 255 / 4.5%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 4.5%) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); }
@keyframes drift { to { transform: translate(-60px, 40px) scale(1.08); } }

/* ---- hero ------------------------------------------------------------------------------------------------------- */
.hero { position: relative; background: radial-gradient(1200px 600px at 70% -10%, #0c2a25, transparent 60%), var(--night); color: var(--night-text); padding: clamp(8rem, 13vw, 10.5rem) 0 clamp(4rem, 8vw, 7rem); overflow: hidden; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero h1 { color: #fff; max-width: 15ch; }
.grad { background: linear-gradient(100deg, #5eead4 10%, var(--cyan) 45%, #a78bfa 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px; border: 1px solid rgb(94 234 212 / 25%); background: rgb(94 234 212 / 7%); color: #b7f5ea; text-decoration: none; font-size: 0.84rem; font-weight: 500; margin-bottom: 1.6rem; transition: background 0.2s; }
.hero-badge:hover { background: rgb(94 234 212 / 13%); }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #b4c7c3; max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 2rem 0 1.8rem; }
.hero-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.hero-trust li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--night-line); border-radius: 999px; font-size: 0.84rem; color: #c9d8d5; background: rgb(255 255 255 / 3%); }
.hero-trust .icon { color: #5eead4; }

.hero-stage { position: relative; perspective: 1600px; }
.window { position: relative; border-radius: 16px; background: linear-gradient(180deg, #0f201d, #0b1715); border: 1px solid rgb(255 255 255 / 10%); box-shadow: 0 50px 100px -30px rgb(0 0 0 / 70%), 0 0 0 1px rgb(255 255 255 / 3%) inset, 0 0 80px -20px color-mix(in srgb, var(--brand) 50%, transparent); overflow: hidden; transform: rotateY(-8deg) rotateX(4deg); transform-style: preserve-3d; transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.win-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid rgb(255 255 255 / 7%); background: rgb(255 255 255 / 2%); }
.win-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgb(255 255 255 / 14%); }
.win-bar span:nth-child(1) { background: #ff5f57; } .win-bar span:nth-child(2) { background: #febc2e; } .win-bar span:nth-child(3) { background: #28c840; }
.win-bar em { margin: 0 auto; font: 500 0.72rem var(--mono); color: #7f9893; font-style: normal; padding: 3px 12px; border-radius: 6px; background: rgb(255 255 255 / 4%); }
.win-body { display: grid; grid-template-columns: 150px 1fr; min-height: 330px; }
.win-side { border-right: 1px solid rgb(255 255 255 / 6%); padding: 14px 10px; display: grid; align-content: start; gap: 3px; }
.win-brand { color: #e6f4f1; font-size: 0.78rem; display: flex; align-items: center; gap: 7px; margin: 2px 6px 12px; }
.win-dot { width: 9px; height: 9px; border-radius: 3px; background: linear-gradient(135deg, #5eead4, var(--brand)); }
.win-side span { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; color: #8aa29d; font-size: 0.78rem; }
.win-side span.on { background: rgb(94 234 212 / 10%); color: #d8faf3; }
.win-main { padding: 16px; display: grid; gap: 12px; align-content: start; }
.win-title { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.win-title b { color: #f1faf8; font-size: 0.95rem; }
.win-title span { font-size: 0.7rem; color: #7f9893; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpis div { padding: 10px 11px; border-radius: 10px; background: rgb(255 255 255 / 3.5%); border: 1px solid rgb(255 255 255 / 6%); display: grid; }
.kpis small { font-size: 0.66rem; color: #7f9893; }
.kpis b { color: #f1faf8; font-size: 1.05rem; letter-spacing: -0.02em; }
.kpis em { font-style: normal; font-size: 0.66rem; color: #7f9893; }
.kpis em.up { color: #34d399; }
.win-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.panel { border-radius: 10px; background: rgb(255 255 255 / 3%); border: 1px solid rgb(255 255 255 / 6%); padding: 10px; }
.panel-t { font-size: 0.68rem; color: #7f9893; margin: 0 0 8px; text-transform: uppercase; letter-spacing: 0.08em; }
.q { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; border-radius: 7px; font: 600 0.72rem var(--mono); color: #cfe3df; }
.q em { font: 500 0.64rem var(--font); color: #7f9893; font-style: normal; }
.q.now { background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 70%, transparent), transparent); color: #fff; }
.q.now em { color: #b7f5ea; }
.bars { height: 120px; display: flex; align-items: flex-end; gap: 7px; padding-top: 4px; }
.bars i { flex: 1; height: 100%; position: relative; }
.bars i::before, .bars i::after { content: ''; position: absolute; bottom: 0; width: 46%; border-radius: 4px 4px 2px 2px; }
.bars i::before { left: 0; height: var(--a); background: color-mix(in srgb, var(--brand-hi) 70%, transparent); }
.bars i::after { right: 0; height: var(--b); background: rgb(139 92 246 / 65%); }
.float { position: absolute; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; background: rgb(15 30 27 / 82%); border: 1px solid rgb(255 255 255 / 12%); backdrop-filter: blur(12px); box-shadow: 0 20px 40px -12px rgb(0 0 0 / 60%); animation: bob 6s ease-in-out infinite; }
.float small { display: block; font-size: 0.68rem; color: #8aa29d; }
.float b { color: #f1faf8; font-size: 0.84rem; white-space: nowrap; }
.float.f1 { top: 12%; left: -48px; }
.float.f2 { bottom: 14%; left: -28px; animation-delay: -2s; }
.float.f3 { bottom: -34px; right: -18px; animation-delay: -4s; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; box-shadow: 0 0 0 4px rgb(255 255 255 / 6%); }
.dot.crit { background: #fb7185; } .dot.ok { background: #34d399; } .dot.warn { background: #fbbf24; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ---- facts ------------------------------------------------------------------------------------------------------ */
.facts { background: var(--night); border-top: 1px solid var(--night-line); }
.facts-row { display: grid; grid-template-columns: repeat(5, 1fr); }
.fact { padding: 2rem 1rem; text-align: center; border-left: 1px solid var(--night-line); }
.fact:first-child { border-left: 0; }
.fact b { display: block; font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 800; letter-spacing: -0.04em; color: #fff; background: linear-gradient(180deg, #fff, #9fded3); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.fact span { font-size: 0.86rem; color: var(--night-text); }

/* ---- sections --------------------------------------------------------------------------------------------------- */
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; position: relative; }
.section-tint { background: var(--tint); }
.section-dark { background: radial-gradient(900px 500px at 85% 0%, #0d2b26, transparent 60%), var(--night); color: var(--night-text); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: #5eead4; }
.section-dark .lead { color: #9fb3af; }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 760px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .lead { margin-inline: auto; }
.section-head.center .eyebrow::before { display: none; }

/* ---- bento ------------------------------------------------------------------------------------------------------ */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { position: relative; border-radius: var(--radius); padding: 1.6rem; background: linear-gradient(180deg, #fff, #fbfdfd); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 25%, white); }
.tile p { margin: 0; font-size: 0.95rem; color: var(--muted); }
.t-wide { grid-column: span 2; flex-direction: row; gap: 1.5rem; align-items: center; }
.t-wide .tile-copy { flex: 1; }
.t-span2 { grid-column: span 2; }
.tile-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); color: var(--brand); margin-bottom: 1rem; border: 1px solid var(--brand-100); }
.tile-vis { margin-top: 1.2rem; }
.t-wide .tile-vis { margin-top: 0; flex: 1; }
.badge { font: 600 0.62rem var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand); background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 999px; padding: 2px 8px; vertical-align: middle; margin-left: 4px; }
.vis-board { background: var(--night); border-radius: 14px; padding: 12px; color: #cfe3df; }
.board-now { display: grid; padding: 12px 14px; border-radius: 10px; background: linear-gradient(120deg, var(--brand), color-mix(in srgb, var(--brand) 55%, var(--cyan))); color: #fff; margin-bottom: 8px; }
.board-now small { font-size: 0.7rem; opacity: 0.85; }
.board-now b { font: 700 1.5rem var(--mono); letter-spacing: 0.03em; }
.board-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.board-grid span { display: grid; padding: 8px 10px; border-radius: 8px; background: rgb(255 255 255 / 5%); font: 600 0.82rem var(--mono); }
.board-grid small { font: 500 0.64rem var(--font); color: #7f9893; }
.vis-receipt { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--tint); border: 1px dashed var(--line); }
.vis-receipt span { font-size: 0.75rem; color: var(--muted); }
.vis-receipt b { font: 700 1.3rem var(--font); color: var(--ink); letter-spacing: -0.02em; }
.vis-receipt i, .vis-stock i { display: block; height: 6px; border-radius: 6px; background: var(--line); position: relative; overflow: hidden; }
.vis-receipt i::after, .vis-stock i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); background: linear-gradient(90deg, var(--brand), var(--brand-hi)); border-radius: 6px; }
.vis-stock { display: grid; gap: 9px; }
.vis-stock i.low::after { background: linear-gradient(90deg, var(--crit), #fb7185); }
.vis-flags { display: flex; flex-wrap: wrap; gap: 6px; }
.vis-flags span, .mk-flag { font: 600 0.7rem var(--mono); padding: 4px 9px; border-radius: 999px; }
.crit { color: #be123c; background: #ffe4e6; } .high { color: #b45309; background: #fef3c7; } .ok { color: #047857; background: #d1fae5; }
.vis-beds { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; }
.vis-beds i { aspect-ratio: 1.4; border-radius: 5px; background: color-mix(in srgb, var(--brand) 75%, white); }
.vis-beds i.free { background: var(--brand-100); }
.vis-chart { height: 90px; display: flex; align-items: flex-end; gap: 6px; }
.vis-chart i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--brand-hi), var(--brand)); opacity: 0.85; }
.vis-perms { display: grid; gap: 8px; }
.vis-perms div { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 10px; background: var(--tint); border: 1px solid var(--line); font-size: 0.86rem; color: var(--ink); }
.vis-perms i { width: 34px; height: 20px; border-radius: 999px; background: #cbd5e1; position: relative; flex: none; }
.vis-perms i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left 0.2s; }
.vis-perms i.on { background: var(--brand); }
.vis-perms i.on::after { left: 17px; }

/* ---- journey ---------------------------------------------------------------------------------------------------- */
.journey { display: grid; grid-template-columns: 300px 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: stretch; }
.journey-steps { display: grid; gap: 6px; align-content: start; }
.journey-steps button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid transparent; background: transparent; color: #9fb3af; font: 600 1rem var(--font); text-align: left; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.journey-steps button:hover { color: #e6f4f1; background: rgb(255 255 255 / 3%); }
.journey-steps button.is-on { color: #fff; background: rgb(94 234 212 / 8%); border-color: rgb(94 234 212 / 22%); }
.journey-steps .n { font: 600 0.75rem var(--mono); color: #5eead4; opacity: 0.8; }
.journey-panels { position: relative; border-radius: 22px; border: 1px solid var(--night-line); background: linear-gradient(160deg, rgb(255 255 255 / 5%), rgb(255 255 255 / 1.5%)); padding: clamp(1.6rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: center; min-height: 300px; overflow: hidden; }
.journey-panel { display: flex; gap: 1.4rem; align-items: flex-start; animation: rise 0.45s ease; }
.journey-panel h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 0.6rem; }
.journey-panel p { font-size: 1.08rem; color: #b4c7c3; margin: 0; max-width: 52ch; }
.jp-icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; flex: none; color: #fff; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 50%, var(--violet))); box-shadow: 0 12px 30px -10px color-mix(in srgb, var(--brand) 70%, transparent); }
.journey-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgb(255 255 255 / 6%); }
.journey-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #5eead4, var(--violet)); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* ---- roles ------------------------------------------------------------------------------------------------------ */
.role-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 2rem; }
.role-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 600 0.92rem var(--font); cursor: pointer; transition: all 0.2s; }
.role-tabs button:hover { border-color: color-mix(in srgb, var(--brand) 35%, white); }
.role-tabs button.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.role-panel { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: 24px; background: linear-gradient(180deg, var(--tint), #fff); border: 1px solid var(--line); animation: rise 0.4s ease; }
.role-copy h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 1.2rem; }
.role-mock { border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgb(15 23 42 / 30%); padding: 18px; display: grid; gap: 12px; font-size: 0.86rem; }
.mk-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.mk-head b { color: var(--ink); }
.mk-pill { font: 600 0.68rem var(--font); padding: 4px 9px; border-radius: 999px; background: #eef2f6; color: #475569; white-space: nowrap; }
.mk-teal { background: var(--brand-100); color: var(--brand); }
.mk-soft { background: #f1f5f9; color: var(--muted); }
.mk-live { background: #dcfce7; color: #15803d; }
.mk-live::before { content: '● '; }
.mk-rows { display: grid; gap: 6px; }
.mk-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); }
.mk-tok { font: 600 0.8rem var(--mono); color: var(--ink); }
.mk-cta { text-align: center; padding: 10px; border-radius: 10px; color: #fff; font-weight: 600; background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 82%, white), var(--brand)); }
.mk-vitals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mk-vitals span { display: grid; padding: 8px; border-radius: 10px; background: var(--tint); font-size: 0.7rem; color: var(--muted); }
.mk-vitals b { color: var(--ink); font-size: 0.92rem; }
.mk-rx { display: grid; gap: 6px; }
.mk-rxl { display: flex; justify-content: space-between; gap: 10px; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line); }
.mk-rxl b { color: var(--ink); } .mk-rxl span { color: var(--muted); font-size: 0.78rem; }
.mk-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.mk-chips span { font-size: 0.74rem; padding: 4px 10px; border-radius: 999px; background: var(--brand-50); color: var(--brand); border: 1px solid var(--brand-100); }
.mk-table { width: 100%; border-collapse: collapse; }
.mk-table td { padding: 9px 6px; border-bottom: 1px solid var(--line); color: var(--muted); }
.mk-table td:first-child { color: var(--ink); font-weight: 500; }
.mk-table b { color: var(--ink); } .mk-crit { color: var(--crit) !important; } .mk-high { color: #b45309 !important; }
.mk-stock { display: grid; gap: 10px; }
.mk-stock div { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 10px; align-items: center; color: var(--ink); }
.mk-stock i { height: 7px; border-radius: 6px; background: var(--line); position: relative; overflow: hidden; }
.mk-stock i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--brand); border-radius: 6px; }
.mk-stock i.low::after { background: var(--crit); }
.mk-stock b { font-size: 0.74rem; color: var(--muted); font-weight: 600; }
.mk-bill { display: grid; gap: 4px; }
.mk-bill div { display: flex; justify-content: space-between; padding: 8px 2px; border-bottom: 1px dashed var(--line); color: var(--muted); }
.mk-bill b { color: var(--ink); font-variant-numeric: tabular-nums; }
.mk-total { border-bottom: 0 !important; font-weight: 600; } .mk-total b { color: var(--brand); font-size: 1.1rem; }
.mk-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mk-kpis div { display: grid; padding: 10px; border-radius: 10px; background: var(--tint); }
.mk-kpis small { font-size: 0.7rem; color: var(--muted); } .mk-kpis b { color: var(--ink); font-size: 1.1rem; }
.mk-bars { height: 90px; display: flex; align-items: flex-end; gap: 8px; }
.mk-bars i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--brand-hi), var(--brand)); }

/* ---- patients --------------------------------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.phone-wrap { display: grid; place-items: center; position: relative; }
.phone-wrap::before { content: ''; position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 22%, transparent), transparent 65%); }
.phone { position: relative; width: 280px; border-radius: 44px; padding: 12px; background: linear-gradient(160deg, #1d2b29, #0b1513); box-shadow: 0 50px 80px -30px rgb(15 23 42 / 55%), 0 0 0 1px rgb(255 255 255 / 8%) inset; }
.phone-notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 92px; height: 24px; border-radius: 14px; background: #000; z-index: 2; }
.phone-screen { border-radius: 34px; background: #0e1615; padding: 54px 16px 20px; min-height: 520px; display: grid; gap: 12px; align-content: start; color: #cfe3df; }
.ph-hosp { margin: 0; color: #fff; font-weight: 700; font-size: 1.05rem; }
.ph-pass { display: grid; gap: 2px; padding: 16px; border-radius: 20px; background: linear-gradient(140deg, var(--brand), color-mix(in srgb, var(--brand) 50%, var(--violet))); color: #fff; }
.ph-pass small { opacity: 0.8; font-size: 0.72rem; } .ph-pass b { font: 700 1.6rem var(--mono); } .ph-pass span { font-size: 0.76rem; opacity: 0.9; }
.ph-qr { justify-self: end; margin-top: -4px; padding: 6px; border-radius: 10px; background: #fff; color: #0e1615; }
.ph-ahead { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: rgb(255 255 255 / 5%); border: 1px solid rgb(255 255 255 / 8%); }
.ph-ahead b { font-size: 2rem; color: #5eead4; line-height: 1; } .ph-ahead span { font-size: 0.8rem; }
.ph-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ph-tiles span { display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: rgb(255 255 255 / 5%); font-size: 0.82rem; color: #e6f4f1; }
.ph-tiles .icon { color: #5eead4; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1.6rem; margin-top: 2rem; }
.feature-list > div { display: flex; gap: 12px; }
.feature-list > div > .icon { color: var(--brand); margin-top: 2px; }
.feature-list h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.feature-list p { margin: 0; font-size: 0.92rem; color: var(--muted); }

/* ---- security & india ------------------------------------------------------------------------------------------- */
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border-radius: 22px; overflow: hidden; background: var(--night-line); border: 1px solid var(--night-line); }
.sec { padding: 2rem; background: var(--night-2); transition: background 0.25s; }
.sec:hover { background: #0e211d; }
.sec p { margin: 0; color: #93a8a4; font-size: 0.94rem; }
.sec-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #5eead4; background: rgb(94 234 212 / 8%); border: 1px solid rgb(94 234 212 / 18%); margin-bottom: 1rem; }
.india { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.india-card { padding: 1.6rem; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: transform 0.25s, box-shadow 0.25s; }
.india-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.india-card p { margin: 0; font-size: 0.94rem; color: var(--muted); }

/* ---- pricing ---------------------------------------------------------------------------------------------------- */
.cycle { display: inline-flex; gap: 4px; padding: 5px; background: #eef2f5; border-radius: 14px; margin-top: 0.8rem; }
.cycle-btn { border: 0; background: transparent; padding: 0.55rem 1.1rem; border-radius: 10px; font: 600 0.9rem var(--font); color: var(--muted); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.cycle-btn em { font-style: normal; font-size: 0.7rem; color: var(--brand); background: var(--brand-50); padding: 2px 7px; border-radius: 999px; }
.cycle-btn.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgb(15 23 42 / 12%); }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 1.8rem 1.6rem; border-radius: 22px; border: 1px solid var(--line); background: #fff; transition: transform 0.25s, box-shadow 0.25s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan-hi { background: radial-gradient(400px 200px at 50% 0%, var(--brand-50), #fff 70%); border: 1.5px solid var(--brand); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--brand) 50%, transparent); }
.plan-tag { position: absolute; top: -13px; left: 1.6rem; color: #fff; background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 50%, var(--violet))); font: 600 0.72rem var(--font); padding: 4px 11px; border-radius: 999px; }
.plan h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.plan-for { font-size: 0.9rem; color: var(--muted); min-height: 2.9em; margin-bottom: 1rem; }
.price { font-size: 2.3rem; font-weight: 800; color: var(--ink); letter-spacing: -0.04em; margin: 0; font-variant-numeric: tabular-nums; }
.price small { font-size: 0.92rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 3px; }
.plan-limits { font-size: 0.88rem; color: var(--ink); font-weight: 500; margin: 0.3rem 0 1.3rem; }
.plan .ticks { margin: 1.4rem 0 0; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: 0.6rem; }
.ticks li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.94rem; color: var(--text); }
.ticks .icon { color: var(--brand); margin-top: 3px; padding: 2px; border-radius: 50%; background: var(--brand-50); width: 20px; height: 20px; }
.addons { margin-top: 1.6rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.addons summary { cursor: pointer; padding: 1.1rem 1.4rem; font-weight: 600; color: var(--ink); }
.addons-body { padding: 0 1.4rem 1.3rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
th, td { text-align: left; padding: 0.6rem 0.4rem; border-bottom: 1px solid var(--line); }
td:last-child, th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
th { color: var(--muted); font: 600 0.72rem var(--mono); text-transform: uppercase; letter-spacing: 0.06em; }
.note { margin: 1rem 0 0; font-size: 0.86rem; color: var(--muted); }

/* ---- partners --------------------------------------------------------------------------------------------------- */
.wl { --c: #0f766e; padding: 1.8rem; border-radius: 26px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.wl-label { font: 600 0.74rem var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.8rem; }
.wl-pick { display: flex; gap: 10px; margin-bottom: 1.2rem; }
.wl-pick button { width: 36px; height: 36px; border-radius: 50%; border: 3px solid #fff; background: var(--c); box-shadow: 0 0 0 1px var(--line); cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.wl-pick button.is-on { box-shadow: 0 0 0 2px var(--c); transform: scale(1.08); }
.wl-window { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.wl-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; color: #fff; background: linear-gradient(120deg, var(--c), color-mix(in srgb, var(--c) 60%, black)); transition: background 0.4s; }
.wl-bar span { font: 500 0.72rem var(--mono); opacity: 0.85; }
.wl-body { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px; background: var(--tint); }
.wl-kpi { display: grid; padding: 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.wl-kpi small { font-size: 0.72rem; color: var(--muted); } .wl-kpi b { font-size: 1.4rem; color: var(--ink); }
.wl-btn { grid-column: span 2; text-align: center; padding: 10px; border-radius: 10px; color: #fff; font-weight: 600; background: var(--c); transition: background 0.4s; }

/* ---- FAQ -------------------------------------------------------------------------------------------------------- */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; padding: 0 1.3rem; background: #fff; transition: box-shadow 0.2s, border-color 0.2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 25%, white); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-50); color: var(--brand); font-weight: 500; transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 1.2rem; color: var(--muted); }

/* ---- call to action & forms ------------------------------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; padding: clamp(5rem, 10vw, 8rem) 0; background: radial-gradient(1000px 500px at 20% 0%, #0d2b26, transparent 60%), var(--night); color: var(--night-text); }
.cta-band h2 { color: #fff; }
.cta-band .eyebrow { color: #5eead4; }
.cta-band .lead { color: #a9bcb8; }
.cta-band .ticks li { color: #d3e3e0; }
.cta-band .ticks .icon { color: #5eead4; background: rgb(94 234 212 / 12%); }
.cta-band .muted { color: #8aa29d; }
.cta-band a:not(.btn) { color: #5eead4; }
.demo { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.demo-form, .signin-form { display: grid; gap: 1rem; padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: 24px; background: #fff; box-shadow: 0 40px 80px -30px rgb(0 0 0 / 45%); }
.field { display: grid; gap: 0.4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { font-weight: 600; font-size: 0.88rem; color: var(--ink); }
.opt { color: var(--muted); font-weight: 400; }
input, select, textarea { font: inherit; color: var(--ink); width: 100%; padding: 0.75rem 0.9rem; border: 1px solid #d6dde6; border-radius: 12px; background: #fff; transition: border-color 0.15s, box-shadow 0.15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
.form-error { margin: 0; color: #be123c; font-size: 0.88rem; }
.form-note { margin: 0; font-size: 0.8rem; color: var(--muted); text-align: center; }

/* ---- inner pages ------------------------------------------------------------------------------------------------ */
.page-hero { position: relative; overflow: hidden; padding: clamp(4rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem); background: radial-gradient(900px 400px at 80% -20%, #0d2b26, transparent 60%), var(--night); color: var(--night-text); }
.page-hero .wrap { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-hero .eyebrow { color: #5eead4; }
.page-hero .lead { color: #a9bcb8; }
.page-hero .actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.page-body { padding-top: 3rem; }
.signin-form { box-shadow: var(--shadow); border: 1px solid var(--line); margin-top: -6rem; position: relative; }
.signin-form .btn { justify-self: start; }
.slug-input { display: flex; align-items: stretch; border: 1px solid #d6dde6; border-radius: 12px; overflow: hidden; transition: border-color 0.15s, box-shadow 0.15s; }
.slug-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
.slug-input input { border: 0; border-radius: 0; box-shadow: none !important; min-width: 0; }
.slug-input span { display: flex; align-items: center; padding: 0 0.9rem; background: var(--tint); color: var(--muted); font-weight: 500; white-space: nowrap; }
.signin-help { margin-top: 3rem; }
.signin-help h2 { font-size: 1.3rem; }

/* ---- footer ----------------------------------------------------------------------------------------------------- */
.site-footer { background: var(--night); color: #8aa29d; padding: 4.5rem 0 2rem; font-size: 0.92rem; border-top: 1px solid var(--night-line); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)) minmax(max-content, 1.2fr); gap: 2.4rem; }
.footer-brand img { height: 34px; width: auto; margin-bottom: 1rem; }
.footer-brand p { max-width: 34ch; color: #8aa29d; }
.footer-grid h3 { color: #e2f0ed; font: 600 0.74rem var(--mono); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.footer-grid a:not(.btn) { display: block; color: #8aa29d; text-decoration: none; margin-bottom: 0.55rem; overflow-wrap: break-word; transition: color 0.15s; }
.footer-grid a:not(.btn):hover { color: #fff; }
.footer-base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--night-line); font-size: 0.84rem; }

/* ---- scroll reveal (only when JavaScript runs; reduced motion skips it) ------------------------------------------ */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---- responsive ------------------------------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .india { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .float.f1 { left: -12px; } .float.f2 { left: 0; }
}
@media (max-width: 960px) {
  .menu-btn { display: inline-grid; place-items: center; }
  .nav { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 0.6rem 16px 1.2rem; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgb(15 23 42 / 25%); display: none; }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 0.85rem 0; border-bottom: 1px solid var(--line); color: var(--ink) !important; opacity: 1; }
  .nav-sep { display: none; }
  .nav .btn { margin-top: 1rem; }
  .home .nav-bar.on-dark .nav.is-open { background: #fff; }
  .hero-inner, .split, .demo, .journey, .role-panel { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .window { transform: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .t-wide, .t-span2 { grid-column: span 2; }
  .facts-row { grid-template-columns: repeat(3, 1fr); }
  .fact:nth-child(4) { border-left: 0; }
  .sec-grid { grid-template-columns: 1fr 1fr; }
  .journey-steps { grid-template-columns: repeat(3, 1fr); }
  .journey-steps button { justify-content: center; padding: 12px 10px; font-size: 0.92rem; }
  .phone-wrap { order: 2; }
}
@media (max-width: 640px) {
  .hero { padding-top: 7rem; }
  .win-body { grid-template-columns: 1fr; }
  .win-side { display: none; }
  .win-split { grid-template-columns: 1fr; }
  .float { display: none; }
  .hero-cta .btn { width: 100%; }
  .bento, .plans, .india, .sec-grid, .feature-list, .field-row { grid-template-columns: 1fr; }
  .t-wide { grid-column: auto; flex-direction: column; align-items: stretch; }
  .t-span2 { grid-column: auto; }
  .facts-row { grid-template-columns: 1fr 1fr; }
  .fact:last-child { grid-column: span 2; }
  .fact { border-left: 0; border-top: 1px solid var(--night-line); }
  .journey-steps { grid-template-columns: 1fr 1fr; }
  .journey-panel { flex-direction: column; }
  .mk-vitals, .mk-kpis { grid-template-columns: 1fr 1fr; }
  .mk-stock div { grid-template-columns: 1fr; gap: 4px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .phone { width: 250px; }
  .phone-screen { min-height: 470px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
