/* ==========================================================================
   Pulse Generation UG — site design system
   iOS-inspired: system colours, grouped surfaces, glass materials, springy motion.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --bg: #F2F2F7;
  --bg-2: #FFFFFF;
  --bg-3: #F7F7FA;
  --elev: #FFFFFF;
  --elev-2: #F2F2F7;
  --label: #0B0B0F;
  --label-2: rgba(60, 60, 67, .72);
  --label-3: rgba(60, 60, 67, .5);
  --sep: rgba(60, 60, 67, .14);
  --sep-strong: rgba(60, 60, 67, .24);
  --fill: rgba(118, 118, 128, .12);
  --fill-2: rgba(118, 118, 128, .2);
  --glass: rgba(255, 255, 255, .72);
  --glass-border: rgba(255, 255, 255, .6);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 16px rgba(0, 0, 0, .05);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, .04), 0 18px 48px -12px rgba(16, 24, 64, .18);
  --shadow-3: 0 30px 80px -20px rgba(16, 24, 64, .35);

  --blue: #007AFF;
  --green: #34C759;
  --orange: #FF9500;
  --red: #FF3B30;
  --yellow: #FFCC00;
  --indigo: #5856D6;
  --purple: #AF52DE;
  --pink: #FF2D55;
  --teal: #12B5A2;
  --cyan: #32ADE6;

  --hmis: #0FB9A4;
  --hmis-deep: #0E6E62;
  --edu: #5E5CE6;
  --edu-2: #2F5BFF;
  --ludo: #0A0F1F;

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;

  --spring: cubic-bezier(.22, 1.2, .36, 1);
  --ease: cubic-bezier(.25, .1, .25, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --nav-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #000000;
    --bg-2: #0B0B0E;
    --bg-3: #111115;
    --elev: #1C1C1E;
    --elev-2: #2C2C2E;
    --label: #FFFFFF;
    --label-2: rgba(235, 235, 245, .7);
    --label-3: rgba(235, 235, 245, .45);
    --sep: rgba(84, 84, 88, .45);
    --sep-strong: rgba(84, 84, 88, .7);
    --fill: rgba(118, 118, 128, .24);
    --fill-2: rgba(118, 118, 128, .36);
    --glass: rgba(22, 22, 26, .66);
    --glass-border: rgba(255, 255, 255, .08);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .3);
    --shadow-2: 0 2px 8px rgba(0, 0, 0, .4), 0 24px 60px -16px rgba(0, 0, 0, .7);
    --shadow-3: 0 40px 100px -24px rgba(0, 0, 0, .9);
    --blue: #0A84FF;
    --green: #30D158;
    --orange: #FF9F0A;
    --red: #FF453A;
    --yellow: #FFD60A;
    --indigo: #5E5CE6;
    --purple: #BF5AF2;
    --pink: #FF375F;
    --teal: #22D3B8;
    --cyan: #64D2FF;
    --hmis: #22D3B8;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --bg-2: #0B0B0E;
  --bg-3: #111115;
  --elev: #1C1C1E;
  --elev-2: #2C2C2E;
  --label: #FFFFFF;
  --label-2: rgba(235, 235, 245, .7);
  --label-3: rgba(235, 235, 245, .45);
  --sep: rgba(84, 84, 88, .45);
  --sep-strong: rgba(84, 84, 88, .7);
  --fill: rgba(118, 118, 128, .24);
  --fill-2: rgba(118, 118, 128, .36);
  --glass: rgba(22, 22, 26, .66);
  --glass-border: rgba(255, 255, 255, .08);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .3);
  --shadow-2: 0 2px 8px rgba(0, 0, 0, .4), 0 24px 60px -16px rgba(0, 0, 0, .7);
  --shadow-3: 0 40px 100px -24px rgba(0, 0, 0, .9);
  --blue: #0A84FF;
  --green: #30D158;
  --orange: #FF9F0A;
  --red: #FF453A;
  --yellow: #FFD60A;
  --indigo: #5E5CE6;
  --purple: #BF5AF2;
  --pink: #FF375F;
  --teal: #22D3B8;
  --cyan: #64D2FF;
  --hmis: #22D3B8;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--label);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img, svg, video { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 60%, transparent); outline-offset: 3px; border-radius: 10px; }
::selection { background: color-mix(in srgb, var(--blue) 30%, transparent); }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.025em; line-height: 1.08; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: var(--r-pill); transition: top .2s; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section.tight { padding: clamp(48px, 7vw, 88px) 0; }
.section-alt { background: var(--bg-2); }

/* ---------- Type scale (iOS Large Title → Caption) ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase;
  color: var(--label-2);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.display { font-size: clamp(44px, 7.6vw, 92px); font-weight: 800; letter-spacing: -.045em; line-height: .98; }
.title-1 { font-size: clamp(34px, 5vw, 60px); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; }
.title-2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; letter-spacing: -.03em; }
.title-3 { font-size: clamp(20px, 2vw, 24px); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.headline { font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.lead { font-size: clamp(18px, 1.7vw, 22px); color: var(--label-2); line-height: 1.45; letter-spacing: -.015em; }
.body-2 { font-size: 15px; color: var(--label-2); line-height: 1.5; }
.caption { font-size: 13px; color: var(--label-3); }
.muted { color: var(--label-2); }
.grad-text {
  background: linear-gradient(100deg, var(--blue) 0%, var(--indigo) 35%, var(--pink) 70%, var(--orange) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%;
  animation: hue 12s ease-in-out infinite alternate;
}
.grad-hmis { background: linear-gradient(100deg, var(--hmis) 0%, var(--cyan) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-edu { background: linear-gradient(100deg, #8E8CFF 0%, var(--edu-2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-ludo { background: linear-gradient(90deg, #FF453A, #FFD60A, #30D158, #0A84FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes hue { to { background-position: 100% 0; } }

.section-head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head .lead { margin-top: 16px; }
.section-head.left { margin-left: 0; text-align: left; }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--blue); --b-fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-pill);
  background: var(--b-bg); color: var(--b-fg);
  font-size: 16px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .35s var(--spring), filter .2s, background-color .2s, box-shadow .3s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.96); transition-duration: .1s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 14px; }
.btn-tinted { --b-bg: color-mix(in srgb, var(--blue) 14%, transparent); --b-fg: var(--blue); }
.btn-gray { --b-bg: var(--fill); --b-fg: var(--label); }
.btn-glass { --b-bg: var(--glass); --b-fg: var(--label); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); box-shadow: inset 0 0 0 1px var(--glass-border), var(--shadow-1); }
.btn-dark { --b-bg: var(--label); --b-fg: var(--bg-2); }
.btn-white { --b-bg: #fff; --b-fg: #0B0B0F; }
.btn-shine::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  background-size: 250% 100%; background-position: 150% 0; animation: shine 4.5s ease-in-out infinite;
}
@keyframes shine { 0%, 60% { background-position: 150% 0; } 100% { background-position: -100% 0; } }

/* App-Store style "GET" pill */
.get {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 74px; height: 32px; padding: 0 16px; border-radius: var(--r-pill);
  background: var(--fill); color: var(--blue);
  font-size: 15px; font-weight: 700; letter-spacing: .01em;
  transition: transform .35s var(--spring), background-color .2s;
}
.get:hover { background: var(--fill-2); }
.get:active { transform: scale(.94); }
.get.solid { background: var(--blue); color: #fff; }

.link-arrow { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--spring); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Navigation bar (glass) ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 90; height: var(--nav-h);
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.scrolled {
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 .5px 0 var(--sep-strong);
}
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--label); font-weight: 700; letter-spacing: -.02em; font-size: 17px; flex: none; }
.brand img { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.brand small { display: block; font-size: 11px; font-weight: 600; color: var(--label-3); letter-spacing: .04em; text-transform: uppercase; line-height: 1; margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.nav-links a {
  position: relative; padding: 8px 14px; border-radius: var(--r-pill);
  color: var(--label-2); font-size: 15px; font-weight: 500; white-space: nowrap; transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: var(--label); background: var(--fill); }
.nav-links a[aria-current="page"], .nav-links a.active { color: var(--label); background: var(--fill); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  color: var(--label); background: var(--fill); transition: transform .3s var(--spring), background-color .2s;
}
.icon-btn:hover { background: var(--fill-2); }
.icon-btn:active { transform: scale(.9); }
.icon-btn svg { width: 19px; height: 19px; }
.search-pill {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 14px;
  border-radius: var(--r-pill); background: var(--fill); color: var(--label-3); font-size: 15px; min-width: 190px;
  transition: background-color .2s;
}
.search-pill:hover { background: var(--fill-2); }
.search-pill svg { width: 16px; height: 16px; }
.search-pill kbd { margin-left: auto; font-family: var(--font); font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: var(--bg-2); color: var(--label-3); box-shadow: 0 0 0 .5px var(--sep-strong); }
.theme-ico-sun, [data-theme-mode="dark"] .theme-ico-moon { display: none; }
[data-theme-mode="dark"] .theme-ico-sun { display: block; }
@media (max-width: 1600px) { .nav-links a { padding: 8px 9px; font-size: 14.5px; } .brand small { display: none; } }
@media (max-width: 1600px) { .search-pill { min-width: 0; width: 40px; padding: 0; justify-content: center; } .search-pill span, .search-pill kbd { display: none; } }
@media (max-width: 900px) { .nav-links, .nav-cta { display: none !important; } }

/* ---------- iOS tab bar (mobile) ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: var(--glass); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 -.5px 0 var(--sep-strong);
}
.tabbar ul { display: grid; grid-template-columns: repeat(5, 1fr); }
.tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0;
  color: var(--label-3); font-size: 10.5px; font-weight: 600; letter-spacing: 0;
  -webkit-tap-highlight-color: transparent; transition: color .2s;
}
.tabbar a svg { width: 25px; height: 25px; transition: transform .35s var(--spring); }
.tabbar a:active svg { transform: scale(.85); }
.tabbar a.active { color: var(--blue); }
@media (max-width: 900px) {
  .tabbar { display: block; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .toast-region { bottom: calc(80px + env(safe-area-inset-bottom)) !important; }
}

/* ---------- Surfaces ---------- */
.card {
  background: var(--elev); border-radius: var(--r-lg);
  box-shadow: var(--shadow-1); position: relative; overflow: hidden;
}
.glass {
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: inset 0 0 0 1px var(--glass-border), var(--shadow-2);
}
.hairline { box-shadow: inset 0 0 0 .5px var(--sep-strong); }
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px;
  border-radius: var(--r-pill); font-size: 13px; font-weight: 600;
  background: var(--fill); color: var(--label-2);
}
.pill svg { width: 14px; height: 14px; }
.pill.blue { background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue); }
.pill.green { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); }
.pill.orange { background: color-mix(in srgb, var(--orange) 16%, transparent); color: var(--orange); }
.pill.red { background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red); }
.pill.indigo { background: color-mix(in srgb, var(--indigo) 16%, transparent); color: var(--indigo); }
.pill.teal { background: color-mix(in srgb, var(--teal) 16%, transparent); color: var(--teal); }
.pill.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.app-icon { border-radius: 22.5%; box-shadow: 0 0 0 .5px rgba(0,0,0,.08), 0 6px 18px -6px rgba(0,0,0,.35); background: #fff; flex: none; object-fit: cover; }

/* ---------- Ambient background ---------- */
.ambient { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.ambient .blob {
  position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(80px); opacity: .45;
  animation: drift 22s ease-in-out infinite alternate;
}
.ambient .b1 { background: radial-gradient(circle, #5E8BFF, transparent 65%); top: -18vmax; left: -10vmax; }
.ambient .b2 { background: radial-gradient(circle, #22D3B8, transparent 65%); top: -10vmax; right: -16vmax; animation-delay: -6s; }
.ambient .b3 { background: radial-gradient(circle, #BF5AF2, transparent 65%); bottom: -24vmax; left: 30%; animation-delay: -12s; opacity: .3; }
@keyframes drift { 0% { transform: translate3d(0,0,0) scale(1); } 100% { transform: translate3d(4vmax, 3vmax, 0) scale(1.12); } }
.grid-fade {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--sep) 1px, transparent 1px), linear-gradient(90deg, var(--sep) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 70%);
  opacity: .55;
}
[data-theme-mode="dark"] .grid-fade { opacity: .28; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + clamp(40px, 8vw, 96px)) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.hero-center { text-align: center; max-width: 980px; margin: 0 auto; }
.hero-center .lead { max-width: 700px; margin: 22px auto 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 26px; color: var(--label-2); font-size: 14px; font-weight: 500; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--green); }
.announce {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; margin-bottom: 26px;
  border-radius: var(--r-pill); font-size: 14px; font-weight: 500; color: var(--label);
  transition: transform .35s var(--spring);
}
.announce:hover { transform: translateY(-2px); }
.announce .tag { padding: 3px 10px; border-radius: var(--r-pill); background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; }
.announce svg { width: 14px; height: 14px; color: var(--label-3); }

/* Device stage */
.stage { position: relative; margin: clamp(48px, 7vw, 80px) auto 0; max-width: 1080px; height: clamp(360px, 52vw, 600px); perspective: 1600px; }
.stage .laptop { position: absolute; left: 50%; top: 0; width: min(78%, 820px); transform: translateX(-50%); }
.stage .phone { position: absolute; width: clamp(150px, 21%, 230px); }
.stage .phone.left { left: 0; bottom: 0; }
.stage .phone.right { right: 0; bottom: 4%; }
.float-a { animation: floatY 7s ease-in-out infinite; }
.float-b { animation: floatY 8s ease-in-out -2.5s infinite; }
.float-c { animation: floatY 9s ease-in-out -5s infinite; }
@keyframes floatY { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@media (max-width: 640px) {
  .stage { height: auto; display: grid; gap: 20px; }
  .stage .laptop, .stage .phone { position: relative; left: auto; right: auto; bottom: auto; transform: none; width: 100%; }
  .stage .phone { width: 62%; justify-self: center; }
  .stage .phone.right { display: none; }
}

/* Laptop + phone frames */
.laptop-screen {
  border-radius: 18px 18px 6px 6px; padding: 10px; background: linear-gradient(#2a2a2e, #141416);
  box-shadow: var(--shadow-3), inset 0 0 0 1px rgba(255,255,255,.08);
}
.laptop-screen .screen { border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--elev); position: relative; }
.laptop-base { height: 16px; margin: 0 -7%; border-radius: 0 0 22px 22px; background: linear-gradient(#d9d9de, #a9a9b0); box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); position: relative; }
.laptop-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 6px; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: rgba(0,0,0,.18); }
[data-theme-mode="dark"] .laptop-base { background: linear-gradient(#4a4a50, #2a2a2e); }
.phone-frame {
  border-radius: 42px; padding: 9px; background: linear-gradient(145deg, #3a3a3f, #111113);
  box-shadow: var(--shadow-3), inset 0 0 0 1.5px rgba(255,255,255,.12);
}
.phone-frame .screen { border-radius: 34px; overflow: hidden; aspect-ratio: 9 / 19.5; background: var(--elev); position: relative; }
.phone-frame .island { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 34%; height: 22px; border-radius: 20px; background: #000; z-index: 3; }

/* Mini app UI used inside device mockups */
.mini { position: absolute; inset: 0; display: flex; font-size: 11px; color: var(--label); background: var(--bg); }
.mini-side { width: 26%; background: var(--elev); padding: 12px 8px; display: flex; flex-direction: column; gap: 4px; box-shadow: .5px 0 0 var(--sep-strong); }
.mini-side .logo { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 11px; margin: 0 4px 10px; }
.mini-side .logo img { width: 18px; height: 18px; border-radius: 5px; }
.mini-side i { display: flex; align-items: center; gap: 6px; font-style: normal; padding: 5px 6px; border-radius: 7px; color: var(--label-2); font-size: 10px; font-weight: 500; }
.mini-side i b { width: 12px; height: 12px; border-radius: 4px; background: var(--fill-2); flex: none; }
.mini-side i.on { background: color-mix(in srgb, var(--hmis) 16%, transparent); color: var(--label); }
.mini-side i.on b { background: var(--hmis); }
.mini-main { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mini-h { font-size: 15px; font-weight: 800; letter-spacing: -.02em; }
.mini-search { height: 22px; border-radius: 8px; background: var(--fill); display: flex; align-items: center; padding: 0 8px; color: var(--label-3); font-size: 9.5px; }
.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.mini-stat { background: var(--elev); border-radius: 10px; padding: 8px; box-shadow: var(--shadow-1); }
.mini-stat small { display: block; color: var(--label-3); font-size: 8.5px; font-weight: 600; }
.mini-stat strong { font-size: 15px; letter-spacing: -.02em; }
.mini-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; flex: 1; min-height: 0; }
.mini-panel { background: var(--elev); border-radius: 10px; padding: 9px; box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 5px; min-height: 0; overflow: hidden; }
.mini-panel h5 { margin: 0 0 2px; font-size: 10px; font-weight: 700; }
.mini-li { display: flex; align-items: center; gap: 6px; font-size: 9.5px; padding: 3px 0; box-shadow: 0 .5px 0 var(--sep); }
.mini-li .av { width: 16px; height: 16px; border-radius: 50%; flex: none; }
.mini-li span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-li em { font-style: normal; font-size: 8.5px; font-weight: 700; padding: 1px 6px; border-radius: 99px; }
.mini-bars { display: flex; align-items: flex-end; gap: 4px; flex: 1; min-height: 40px; }
.mini-bars i { flex: 1; border-radius: 3px 3px 1px 1px; background: linear-gradient(var(--hmis), color-mix(in srgb, var(--hmis) 40%, transparent)); transform-origin: bottom; animation: grow 1.2s var(--ease-out) both; }
@keyframes grow { from { transform: scaleY(0); } }

/* phone mini app */
.pm { position: absolute; inset: 0; padding: 40px 12px 12px; display: flex; flex-direction: column; gap: 8px; font-size: 10px; background: var(--bg); }
.pm-title { font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.pm-card { background: var(--elev); border-radius: 14px; padding: 10px; box-shadow: var(--shadow-1); }
.pm-group { background: var(--elev); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-1); }
.pm-group div { display: flex; align-items: center; gap: 8px; padding: 7px 9px; box-shadow: 0 .5px 0 var(--sep); font-size: 10px; }
.pm-group div b { width: 20px; height: 20px; border-radius: 6px; flex: none; display: grid; place-items: center; color: #fff; font-size: 9px; }
.pm-group div span { flex: 1; }
.pm-group div em { font-style: normal; color: var(--label-3); font-size: 9px; }
.pm-tab { margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 0 2px; box-shadow: 0 -.5px 0 var(--sep-strong); }
.pm-tab i { height: 14px; width: 14px; margin: 0 auto; border-radius: 4px; background: var(--fill-2); }
.pm-tab i.on { background: var(--blue); }

/* ---------- Marquee / trust strip ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Product showcase ---------- */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1240px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 980px) { .products { grid-template-columns: 1fr; } }
.product {
  position: relative; display: flex; flex-direction: column; min-height: 560px; padding: 28px;
  border-radius: var(--r-xl); overflow: hidden; color: #fff; isolation: isolate;
  transition: transform .5s var(--spring), box-shadow .4s;
  box-shadow: var(--shadow-2);
}
.product:hover { transform: translateY(-6px) scale(1.01); box-shadow: var(--shadow-3); }
.product::before { content: ""; position: absolute; inset: 0; z-index: -2; }
.product.hmis::before { background: radial-gradient(120% 80% at 100% 0%, #1fd1b9 0%, transparent 55%), linear-gradient(160deg, #0c5c52 0%, #06201d 100%); }
.product.edu::before { background: radial-gradient(120% 80% at 100% 0%, #8b89ff 0%, transparent 55%), linear-gradient(160deg, #3b3ab8 0%, #0d0f3a 100%); }
.product.remit::before { background: radial-gradient(120% 80% at 100% 0%, #22d3ee 0%, transparent 55%), linear-gradient(160deg, #0e7490 0%, #04202a 100%); }
.product.ludo::before { background: radial-gradient(120% 80% at 100% 0%, #2a4bff 0%, transparent 55%), linear-gradient(160deg, #101a44 0%, #050816 100%); }
.product .p-top { display: flex; align-items: center; gap: 14px; }
.product .app-icon { width: 64px; height: 64px; }
.product .p-kicker { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.7); letter-spacing: .02em; text-transform: uppercase; }
.product h3 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin-top: 2px; }
.product .p-desc { margin-top: 18px; font-size: 17px; color: rgba(255,255,255,.82); line-height: 1.45; }
.product .p-list { margin-top: 18px; display: grid; gap: 9px; }
.product .p-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: rgba(255,255,255,.88); }
.product .p-list svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: #fff; opacity: .9; }
.product .p-foot { margin-top: auto; padding-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.product .p-foot .btn { --b-bg: #fff; --b-fg: #0B0B0F; }
.product .p-foot .btn.ghost { --b-bg: rgba(255,255,255,.14); --b-fg: #fff; backdrop-filter: blur(10px); }
.product .p-art { position: absolute; right: -40px; bottom: 90px; width: 220px; opacity: .14; z-index: -1; transform: rotate(-12deg); }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento > * { grid-column: span 2; }
.bento .w3 { grid-column: span 3; }
.bento .w4 { grid-column: span 4; }
.bento .w6 { grid-column: span 6; }
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento > *, .bento .w3, .bento .w4 { grid-column: span 1; } .bento .w6, .bento .w4 { grid-column: span 2; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .bento > *, .bento .w3, .bento .w4, .bento .w6 { grid-column: span 1; } }
.tile { padding: 26px; border-radius: var(--r-lg); background: var(--elev); box-shadow: var(--shadow-1); position: relative; overflow: hidden; transition: transform .45s var(--spring), box-shadow .3s; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.tile .t-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; margin-bottom: 18px; box-shadow: 0 6px 16px -6px currentColor; }
.tile .t-ico svg { width: 24px; height: 24px; color: #fff; }
.tile h3 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px; }
.tile p { font-size: 15px; color: var(--label-2); }
.tile .big { font-size: clamp(40px, 5vw, 64px); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.ico-blue { background: linear-gradient(135deg, #3d9bff, #0060df); }
.ico-green { background: linear-gradient(135deg, #4fe07a, #1f9e45); }
.ico-orange { background: linear-gradient(135deg, #ffb340, #ff7a00); }
.ico-red { background: linear-gradient(135deg, #ff6b61, #e0261b); }
.ico-indigo { background: linear-gradient(135deg, #8280ff, #4240c8); }
.ico-teal { background: linear-gradient(135deg, #3fe3cb, #0d8f80); }
.ico-pink { background: linear-gradient(135deg, #ff6b8b, #e01e4a); }
.ico-purple { background: linear-gradient(135deg, #cf7cff, #8f35c4); }
.ico-gray { background: linear-gradient(135deg, #a1a1aa, #636369); }
.ico-yellow { background: linear-gradient(135deg, #ffe14d, #f2b500); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 24px; border-radius: var(--r-lg); background: var(--elev); box-shadow: var(--shadow-1); }
.stat strong { display: block; font-size: clamp(34px, 4.4vw, 52px); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.stat span { display: block; margin-top: 8px; color: var(--label-2); font-size: 15px; }

/* ---------- Segmented control (UISegmentedControl) ---------- */
.segmented {
  position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 3px; border-radius: 12px; background: var(--fill); isolation: isolate; max-width: 100%;
}
.segmented button {
  position: relative; z-index: 1; padding: 7px 18px; min-height: 36px; border-radius: 9px;
  font-size: 14px; font-weight: 600; color: var(--label); white-space: nowrap; transition: color .2s;
  -webkit-tap-highlight-color: transparent;
}
.segmented button[aria-selected="false"], .segmented button[aria-pressed="false"] { color: var(--label-2); }
.segmented .thumb {
  position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; border-radius: 9px;
  background: var(--bg-2); box-shadow: 0 3px 8px rgba(0,0,0,.12), 0 3px 1px rgba(0,0,0,.04), inset 0 0 0 .5px var(--sep);
  transition: transform .45s var(--spring), width .45s var(--spring);
}
[data-theme-mode="dark"] .segmented .thumb { background: #636366; }
.seg-wrap { display: flex; justify-content: center; margin-bottom: 32px; overflow-x: auto; padding: 4px; scrollbar-width: none; }
.seg-wrap::-webkit-scrollbar { display: none; }

/* ---------- Downloads ---------- */
.dl-grid { display: grid; gap: 18px; }
.dl-app {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start;
  padding: 26px; border-radius: var(--r-lg); background: var(--elev); box-shadow: var(--shadow-1);
  animation: rise .6s var(--ease-out) both;
}
@media (max-width: 760px) { .dl-app { grid-template-columns: 1fr; padding: 20px; gap: 16px; } }
.dl-app .app-icon { width: 96px; height: 96px; }
@media (max-width: 760px) { .dl-app .app-icon { width: 72px; height: 72px; } }
.dl-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.dl-head h3 { font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.dl-sub { margin-top: 4px; color: var(--label-2); font-size: 15px; }
.dl-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
@media (max-width: 560px) { .dl-buttons { grid-template-columns: 1fr; } }
.dl-btn {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-md);
  background: var(--elev-2); color: var(--label); text-align: left;
  transition: transform .4s var(--spring), background-color .2s, box-shadow .3s;
  box-shadow: inset 0 0 0 .5px var(--sep);
}
[data-theme-mode="light"] .dl-btn { background: var(--bg); }
.dl-btn:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 .5px var(--sep-strong), var(--shadow-1); }
.dl-btn:active { transform: scale(.98); }
.dl-btn .os { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff; }
.dl-btn .os svg { width: 24px; height: 24px; }
.dl-btn .os.android { background: linear-gradient(135deg, #4fe07a, #1f9e45); }
.dl-btn .os.windows { background: linear-gradient(135deg, #3d9bff, #0060df); }
.dl-btn .os.apple { background: linear-gradient(135deg, #8e8e93, #1c1c1e); }
.dl-btn .txt { flex: 1; min-width: 0; }
.dl-btn .txt b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.dl-btn .txt small { display: block; font-size: 13px; color: var(--label-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-btn .arrow { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; flex: none; transition: transform .4s var(--spring); }
.dl-btn:hover .arrow { transform: translateY(2px); }
.dl-btn .arrow svg { width: 17px; height: 17px; }
.dl-btn.recommended { box-shadow: inset 0 0 0 2px var(--blue); }
.dl-btn .rec { position: absolute; top: -9px; right: 14px; padding: 2px 9px; border-radius: 99px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: 13px; color: var(--label-3); }
.dl-meta span { display: inline-flex; align-items: center; gap: 5px; }
.dl-meta svg { width: 14px; height: 14px; }
.dl-note { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; color: var(--label-2); font-size: 14px; text-align: center; }
.dl-note > span { display: inline-flex; align-items: center; gap: 6px; }
.dl-note svg { flex: none; width: 16px; height: 16px; color: var(--green); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Inset grouped list (iOS Settings) ---------- */
.group { background: var(--elev); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-1); }
.group-title { font-size: 13px; text-transform: uppercase; letter-spacing: .03em; color: var(--label-3); font-weight: 600; margin: 0 0 8px 16px; }
.row {
  display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 10px 16px; color: var(--label);
  position: relative; transition: background-color .15s;
}
.row + .row::before { content: ""; position: absolute; top: 0; right: 0; left: 62px; height: .5px; background: var(--sep-strong); }
a.row:hover, button.row:hover { background: var(--fill); }
a.row:active, button.row:active { background: var(--fill-2); }
.row .r-ico { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; flex: none; color: #fff; }
.row .r-ico svg { width: 18px; height: 18px; }
.row .r-txt { flex: 1; min-width: 0; text-align: left; }
.row .r-txt b { display: block; font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.row .r-txt small { display: block; color: var(--label-2); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .chev, .row > svg:last-child { width: 14px; height: 14px; color: var(--label-3); flex: none; }
.row .val { color: var(--label-2); font-size: 15px; }

/* ---------- Disclosure (FAQ, install steps) ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq-search { position: relative; margin-bottom: 18px; }
.faq-search input {
  width: 100%; height: 48px; border: 0; border-radius: 14px; background: var(--fill);
  padding: 0 16px 0 44px; font-size: 16px; outline: none; transition: box-shadow .2s, background-color .2s;
}
.faq-search input:focus { background: var(--elev); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 40%, transparent); }
.faq-search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--label-3); }
details.disc { background: var(--elev); border-radius: var(--r-md); box-shadow: var(--shadow-1); margin-bottom: 10px; overflow: hidden; }
details.disc summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; font-weight: 600; font-size: 17px; letter-spacing: -.015em;
}
details.disc summary::-webkit-details-marker { display: none; }
details.disc summary .tag { min-width: 78px; text-align: center; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--fill); color: var(--label-2); flex: none; }
details.disc summary .plus { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; flex: none; transition: transform .45s var(--spring), background-color .2s; }
details.disc summary .plus svg { width: 14px; height: 14px; }
details.disc[open] summary .plus { transform: rotate(45deg); background: var(--blue); color: #fff; }
details.disc .disc-body { padding: 0 20px 20px; color: var(--label-2); font-size: 16px; line-height: 1.55; }
details.disc .disc-body p + p { margin-top: 10px; }
details.disc .disc-body a { font-weight: 600; }
.faq-empty { text-align: center; color: var(--label-3); padding: 30px 0; display: none; }

/* ---------- Video cards ---------- */
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 980px) { .videos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .videos { grid-template-columns: 1fr; } }
.video-card { text-align: left; border-radius: var(--r-lg); overflow: hidden; background: var(--elev); box-shadow: var(--shadow-1); transition: transform .45s var(--spring), box-shadow .3s; display: flex; flex-direction: column; animation: rise .6s var(--ease-out) both; }
.video-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
.video-card .thumb { position: relative; aspect-ratio: 16/9; background: #111 center/cover no-repeat; overflow: hidden; }
.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.video-card:hover .thumb img { transform: scale(1.05); }
.video-card .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.45)); }
.video-card .play {
  position: absolute; left: 50%; top: 50%; z-index: 1; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.28); backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); color: #fff; transition: transform .45s var(--spring);
}
.video-card:hover .play { transform: translate(-50%, -50%) scale(1.1); }
.video-card .play svg { width: 26px; height: 26px; margin-left: 3px; }
.video-card .v-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.video-card .v-body h3 { font-size: 18px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.video-card .v-body p { font-size: 14px; color: var(--label-2); }
.video-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.5fr 1fr; }
.video-featured .thumb { aspect-ratio: auto; min-height: 320px; }
.video-featured .v-body { padding: 32px; justify-content: center; gap: 12px; }
.video-featured .v-body h3 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.03em; }
.video-featured .v-body p { font-size: 17px; }
@media (max-width: 820px) { .video-featured { grid-template-columns: 1fr; } .video-featured .thumb { min-height: 0; aspect-ratio: 16/9; } .video-featured .v-body { padding: 22px; } }
.video-empty { grid-column: 1 / -1; text-align: center; padding: 48px 24px; border-radius: var(--r-lg); background: var(--elev); box-shadow: var(--shadow-1); color: var(--label-2); }

/* ---------- Sheet (iOS modal) ---------- */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,.45);
  opacity: 0; transition: opacity .35s var(--ease); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.sheet {
  position: fixed; z-index: 151; left: 50%; bottom: 0; width: min(100%, 880px); max-height: 92vh;
  transform: translate(-50%, 104%); transition: transform .55s var(--spring);
  background: var(--elev); border-radius: 22px 22px 0 0; box-shadow: var(--shadow-3);
  display: flex; flex-direction: column; overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 760px) {
  .sheet { top: 50%; bottom: auto; border-radius: 22px; transform: translate(-50%, -46%) scale(.94); opacity: 0; transition: transform .5s var(--spring), opacity .3s; }
}
.sheet.small { width: min(100%, 560px); }
.sheet-open .sheet-backdrop { opacity: 1; }
.sheet-open .sheet { transform: translate(-50%, 0); }
@media (min-width: 760px) { .sheet-open .sheet { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.sheet-grabber { width: 36px; height: 5px; border-radius: 3px; background: var(--fill-2); margin: 8px auto 0; flex: none; }
@media (min-width: 760px) { .sheet-grabber { display: none; } }
.sheet-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px 12px 22px; flex: none; }
.sheet-head h2 { font-size: 19px; font-weight: 700; letter-spacing: -.02em; flex: 1; min-width: 0; }
.sheet-head p { font-size: 14px; color: var(--label-2); }
.sheet-close { width: 32px; height: 32px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; color: var(--label-2); flex: none; }
.sheet-close svg { width: 14px; height: 14px; }
.sheet-body { padding: 4px 22px 22px; overflow: auto; overscroll-behavior: contain; }
.sheet-video { aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #000; }
.sheet-video iframe { width: 100%; height: 100%; border: 0; display: block; }
body.lock { overflow: hidden; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 10px; }
.steps li { counter-increment: step; display: flex; gap: 14px; align-items: flex-start; font-size: 16px; }
.steps li::before {
  content: counter(step); width: 28px; height: 28px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue);
  font-size: 14px; font-weight: 700;
}
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--orange) 12%, transparent); font-size: 14.5px; color: var(--label); }
.callout svg { width: 20px; height: 20px; flex: none; color: var(--orange); margin-top: 1px; }
.callout.info { background: color-mix(in srgb, var(--blue) 10%, transparent); }
.callout.info svg { color: var(--blue); }
.callout.ok { background: color-mix(in srgb, var(--green) 12%, transparent); }
.callout.ok svg { color: var(--green); }

/* ---------- Spotlight search ---------- */
.spot-backdrop { position: fixed; inset: 0; z-index: 160; background: rgba(0,0,0,.3); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .25s; }
.spotlight {
  position: fixed; z-index: 161; left: 50%; top: 12vh; width: min(calc(100% - 24px), 640px);
  transform: translateX(-50%) scale(.96); opacity: 0; transition: transform .4s var(--spring), opacity .2s;
  border-radius: 22px; overflow: hidden;
  background: var(--glass); backdrop-filter: blur(40px) saturate(200%); -webkit-backdrop-filter: blur(40px) saturate(200%);
  box-shadow: inset 0 0 0 1px var(--glass-border), var(--shadow-3);
}
.spot-open .spot-backdrop { opacity: 1; }
.spot-open .spotlight { opacity: 1; transform: translateX(-50%) scale(1); }
.spot-input { display: flex; align-items: center; gap: 12px; padding: 0 18px; height: 62px; box-shadow: 0 .5px 0 var(--sep-strong); }
.spot-input svg { width: 22px; height: 22px; color: var(--label-2); flex: none; }
.spot-input input { flex: 1; border: 0; background: transparent; outline: none; font-size: 21px; font-weight: 500; letter-spacing: -.02em; min-width: 0; }
.spot-input kbd { font-family: var(--font); font-size: 12px; padding: 2px 7px; border-radius: 6px; background: var(--fill); color: var(--label-2); }
.spot-results { max-height: min(56vh, 460px); overflow: auto; padding: 8px; }
.spot-group { font-size: 12px; font-weight: 700; color: var(--label-3); text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px 6px; }
.spot-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border-radius: 12px; text-align: left; color: var(--label); }
.spot-item .s-ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; color: #fff; overflow: hidden; }
.spot-item .s-ico img { width: 100%; height: 100%; object-fit: cover; }
.spot-item .s-ico svg { width: 18px; height: 18px; }
.spot-item b { display: block; font-weight: 600; font-size: 15.5px; }
.spot-item small { display: block; font-size: 13px; color: var(--label-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot-item span { flex: 1; min-width: 0; }
.spot-item.sel { background: var(--blue); color: #fff; }
.spot-item.sel small { color: rgba(255,255,255,.8); }
.spot-empty { padding: 30px; text-align: center; color: var(--label-3); }

/* ---------- Toasts (iOS banners) ---------- */
.toast-region { position: fixed; z-index: 170; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; width: min(calc(100% - 24px), 420px); pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px;
  background: var(--glass); backdrop-filter: blur(30px) saturate(200%); -webkit-backdrop-filter: blur(30px) saturate(200%);
  box-shadow: inset 0 0 0 1px var(--glass-border), var(--shadow-2);
  font-size: 15px; font-weight: 500; transform: translateY(20px) scale(.96); opacity: 0;
  transition: transform .5s var(--spring), opacity .3s; pointer-events: auto;
}
.toast.show { transform: none; opacity: 1; }
.toast .t-ico { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--green); flex: none; }
.toast .t-ico svg { width: 15px; height: 15px; }

/* ---------- Forms ---------- */
.form-card { padding: clamp(22px, 3vw, 32px); border-radius: var(--r-xl); background: var(--elev); box-shadow: var(--shadow-2); }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--label-2); padding-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%; border: 0; outline: none; border-radius: 12px; background: var(--fill);
  padding: 13px 14px; font-size: 16px; transition: box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { background: var(--elev); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 40%, transparent); }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.form-status { font-size: 14px; min-height: 20px; }
.form-status.err { color: var(--red); }
.form-status.ok { color: var(--green); }
.hp { position: absolute; left: -9999px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--label-2); }
.check input { width: 20px; height: 20px; accent-color: var(--blue); flex: none; margin-top: 1px; }

/* iOS switch */
.switch { position: relative; width: 51px; height: 31px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 1; margin: 0; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--fill-2); transition: background-color .25s; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.15), 0 3px 1px rgba(0,0,0,.06); transition: transform .4s var(--spring); }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(20px); }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .founder { grid-template-columns: 1fr; } }
.founder-photo { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-3); max-width: 460px; }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-photo .badge { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 14px 16px; border-radius: 18px; }
.founder-photo .badge b { display: block; font-size: 17px; }
.founder-photo .badge small { color: var(--label-2); font-size: 13px; }
.quote { font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; letter-spacing: -.025em; line-height: 1.25; }
.quote::before { content: "\201C"; display: block; font-size: 72px; line-height: .6; color: var(--blue); margin-bottom: 10px; font-family: Georgia, serif; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
@media (max-width: 620px) { .values { grid-template-columns: 1fr; } }
.value { padding: 16px; border-radius: var(--r-md); background: var(--elev); box-shadow: var(--shadow-1); }
.value b { display: block; font-size: 15px; margin-bottom: 4px; }
.value span { font-size: 14px; color: var(--label-2); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(36px, 6vw, 72px);
  background: radial-gradient(80% 120% at 0% 0%, #2f6bff 0%, transparent 60%), radial-gradient(80% 120% at 100% 100%, #13c2a8 0%, transparent 55%), #0a0d1f;
  color: #fff; text-align: center; box-shadow: var(--shadow-3);
}
.cta-band .lead { color: rgba(255,255,255,.78); max-width: 620px; margin: 16px auto 0; }
.cta-band .hero-cta .btn-glass { --b-bg: rgba(255,255,255,.14); --b-fg: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }

/* ---------- Footer ---------- */
.footer { padding: 64px 0 40px; background: var(--bg-2); box-shadow: 0 -.5px 0 var(--sep-strong); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.footer h4 { font-size: 13px; font-weight: 700; color: var(--label); margin-bottom: 14px; letter-spacing: 0; }
.footer ul { display: grid; gap: 10px; }
.footer a { color: var(--label-2); transition: color .15s; }
.footer a:hover { color: var(--label); }
.footer .about { color: var(--label-2); max-width: 360px; margin-top: 14px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; color: var(--label); transition: transform .35s var(--spring), background-color .2s, color .2s; }
.socials a:hover { transform: translateY(-3px); background: var(--blue); color: #fff; }
.socials svg { width: 17px; height: 17px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; box-shadow: 0 -.5px 0 var(--sep-strong); color: var(--label-3); font-size: 13px; }
.motto { font-weight: 700; letter-spacing: .14em; font-size: 12px; color: var(--label-2); }

/* ---------- Product page header (App Store style) ---------- */
.app-hero { position: relative; overflow: hidden; padding: calc(var(--nav-h) + clamp(32px, 6vw, 72px)) 0 clamp(48px, 6vw, 80px); }
.app-hero .wrap { position: relative; z-index: 1; }
.app-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 960px) { .app-hero-grid { grid-template-columns: 1fr; } }
.app-id { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.app-id .app-icon { width: clamp(84px, 9vw, 112px); height: clamp(84px, 9vw, 112px); }
.app-id h1 { font-size: clamp(30px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.035em; }
.app-id p { color: var(--label-2); font-size: 16px; margin-top: 2px; }
.app-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.info-strip { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 34px; padding: 14px 0; box-shadow: 0 -.5px 0 var(--sep-strong), 0 .5px 0 var(--sep-strong); }
@media (max-width: 640px) { .info-strip { grid-template-columns: repeat(3, 1fr); row-gap: 16px; } }
.info-strip div { text-align: center; padding: 0 6px; position: relative; }
.info-strip div + div::before { content: ""; position: absolute; left: 0; top: 15%; bottom: 15%; width: .5px; background: var(--sep-strong); }
@media (max-width: 640px) { .info-strip div:nth-child(4)::before { display: none; } }
.info-strip small { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--label-3); }
.info-strip b { display: block; font-size: 19px; font-weight: 700; color: var(--label-2); letter-spacing: -.02em; margin: 4px 0 2px; }
.info-strip span { display: block; font-size: 12px; color: var(--label-3); }

/* Sticky in-page nav for product pages */
.subnav { position: sticky; top: var(--nav-h); z-index: 80; background: var(--glass); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); box-shadow: 0 .5px 0 var(--sep-strong); }
.subnav .wrap { display: flex; align-items: center; gap: 16px; height: 52px; }
.subnav .name { font-weight: 700; font-size: 17px; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; flex: none; }
.subnav .name img { width: 28px; height: 28px; border-radius: 7px; }
.subnav nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-left: auto; }
.subnav nav::-webkit-scrollbar { display: none; }
.subnav nav a { padding: 6px 12px; border-radius: 99px; color: var(--label-2); font-size: 14px; font-weight: 500; white-space: nowrap; }
.subnav nav a:hover, .subnav nav a.active { color: var(--label); background: var(--fill); }
.subnav .btn { flex: none; }
@media (max-width: 700px) { .subnav .name span { display: none; } .subnav .btn { display: none; } }

/* Feature grid (product pages) */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 24px; border-radius: var(--r-lg); background: var(--elev); box-shadow: var(--shadow-1); transition: transform .45s var(--spring), box-shadow .3s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.feature .t-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; }
.feature .t-ico svg { width: 22px; height: 22px; color: #fff; }
.feature h3 { font-size: 18px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 6px; }
.feature p { font-size: 15px; color: var(--label-2); }
.feature ul { margin-top: 12px; display: grid; gap: 6px; }
.feature li { font-size: 14px; color: var(--label-2); display: flex; gap: 8px; }
.feature li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--label-3); margin-top: 8px; flex: none; }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }
.checklist { display: grid; gap: 12px; margin-top: 24px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.checklist li svg { width: 22px; height: 22px; flex: none; color: var(--green); }
.checklist li b { font-weight: 600; }
.checklist li span { color: var(--label-2); }

/* Demo frame */
.demo { border-radius: var(--r-xl); background: var(--elev); box-shadow: var(--shadow-2); overflow: hidden; }
.demo-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--elev-2); box-shadow: 0 .5px 0 var(--sep-strong); }
[data-theme-mode="light"] .demo-bar { background: var(--bg-3); }
.demo-bar i { width: 12px; height: 12px; border-radius: 50%; }
.demo-bar i:nth-child(1) { background: #FF5F57; } .demo-bar i:nth-child(2) { background: #FEBC2E; } .demo-bar i:nth-child(3) { background: #28C840; }
.demo-bar span { margin-left: 10px; font-size: 13px; font-weight: 600; color: var(--label-2); }
.demo-bar .pill { margin-left: auto; height: 24px; font-size: 12px; }
.demo-body { padding: clamp(18px, 3vw, 28px); }
.demo-note { font-size: 12.5px; color: var(--label-3); margin-top: 14px; text-align: center; }

/* Journey stepper */
.journey { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; position: relative; margin-bottom: 26px; }
@media (max-width: 760px) { .journey { grid-template-columns: repeat(3, 1fr); } }
.journey button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px; border-radius: 16px; font-size: 13px; font-weight: 600; color: var(--label-2); transition: background-color .2s, color .2s, transform .35s var(--spring); }
.journey button:hover { background: var(--fill); }
.journey button .j-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--fill); color: var(--label-2); transition: background-color .3s, color .3s, transform .45s var(--spring), box-shadow .3s; }
.journey button .j-ico svg { width: 22px; height: 22px; }
.journey button.active { color: var(--label); }
.journey button.active .j-ico { background: var(--hmis); color: #fff; transform: scale(1.08); box-shadow: 0 8px 22px -8px var(--hmis); }
.journey button.done .j-ico { background: color-mix(in srgb, var(--hmis) 18%, transparent); color: var(--hmis); }
.j-progress { height: 4px; border-radius: 4px; background: var(--fill); overflow: hidden; margin-bottom: 22px; }
.j-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--hmis), var(--cyan)); border-radius: 4px; transition: width .6s var(--ease-out); }
.j-panel { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; animation: rise .5s var(--ease-out) both; }
@media (max-width: 760px) { .j-panel { grid-template-columns: 1fr; } }
.j-panel h3 { font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.j-panel p { color: var(--label-2); margin-top: 8px; }
.j-panel .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.j-screen { border-radius: 18px; background: var(--bg); padding: 14px; box-shadow: inset 0 0 0 .5px var(--sep-strong); display: grid; gap: 8px; }
.j-screen .line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--elev); font-size: 14px; box-shadow: var(--shadow-1); }
.j-screen .line span { color: var(--label-2); }
.j-screen .line b { font-weight: 600; text-align: right; }
.j-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }

/* LAN sync diagram */
.lan { position: relative; aspect-ratio: 1; max-width: 520px; margin: 0 auto; }
.lan svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lan .node {
  position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: var(--label-2); text-align: center; width: 92px;
}
.lan .node .n-ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--elev); box-shadow: var(--shadow-2); color: var(--hmis); }
.lan .node .n-ico svg { width: 26px; height: 26px; }
.lan .node.host .n-ico { width: 92px; height: 92px; border-radius: 26px; background: linear-gradient(135deg, var(--hmis), var(--hmis-deep)); color: #fff; box-shadow: 0 0 0 10px color-mix(in srgb, var(--hmis) 12%, transparent), 0 0 0 22px color-mix(in srgb, var(--hmis) 6%, transparent), var(--shadow-2); }
.lan .node.host .n-ico svg { width: 40px; height: 40px; }
.lan .node.host { color: var(--label); width: 140px; }
.lan .packet { fill: var(--hmis); }
.lan .wire { vector-effect: non-scaling-stroke; stroke: color-mix(in srgb, var(--hmis) 45%, transparent); stroke-width: 1.5; stroke-dasharray: 4 6; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -20; } }
.lan .cloud { position: absolute; left: 50%; top: -2%; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 99px; background: var(--fill); color: var(--label-2); white-space: nowrap; }
.lan .cloud svg { width: 15px; height: 15px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; padding: 28px; border-radius: var(--r-xl); background: var(--elev); box-shadow: var(--shadow-1); position: relative; }
.plan.pop { box-shadow: inset 0 0 0 2px var(--hmis), var(--shadow-2); }
.plan .pop-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 4px 12px; border-radius: 99px; background: var(--hmis); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.plan h3 { font-size: 18px; font-weight: 700; }
.plan .price { margin: 14px 0 4px; font-size: 42px; font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.plan .price small { font-size: 16px; font-weight: 600; color: var(--label-2); letter-spacing: -.01em; }
.plan .per { color: var(--label-2); font-size: 14px; }
.plan ul { margin: 22px 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; font-size: 15px; }
.plan li svg { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 2px; }
.plan .btn { margin-top: auto; }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); background: var(--elev); box-shadow: var(--shadow-1); }
table.matrix { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.matrix th, .matrix td { padding: 12px 14px; text-align: center; box-shadow: 0 .5px 0 var(--sep); }
.matrix th { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--label-3); font-weight: 700; background: var(--bg-3); }
[data-theme-mode="dark"] .matrix th { background: var(--elev-2); }
.matrix td:first-child, .matrix th:first-child { text-align: left; font-weight: 600; position: sticky; left: 0; background: var(--elev); }
.matrix th:first-child { background: var(--bg-3); }
[data-theme-mode="dark"] .matrix th:first-child { background: var(--elev-2); }
.matrix .y { color: var(--green); font-weight: 800; }
.matrix .o { color: var(--orange); font-weight: 700; }
.matrix .n { color: var(--label-3); }

/* Timeline / roadmap */
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .roadmap { grid-template-columns: 1fr; } }
.lane { padding: 24px; border-radius: var(--r-lg); background: var(--elev); box-shadow: var(--shadow-1); }
.lane h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin-bottom: 16px; }
.lane ul { display: grid; gap: 10px; }
.lane li { padding: 12px 14px; border-radius: 12px; background: var(--fill); font-size: 14.5px; }
.lane li b { display: block; font-size: 15px; margin-bottom: 2px; }
.lane li span { color: var(--label-2); font-size: 13.5px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 99px; background: var(--elev); box-shadow: var(--shadow-1); font-size: 14px; font-weight: 600; transition: transform .35s var(--spring); }
.chip:hover { transform: translateY(-2px); }

/* EduPulse demos */
.edu-dash { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 620px) { .edu-dash { grid-template-columns: repeat(2, 1fr); } }
.kpi { padding: 14px; border-radius: 16px; background: var(--bg); box-shadow: inset 0 0 0 .5px var(--sep-strong); }
.kpi small { display: block; color: var(--label-3); font-size: 12px; font-weight: 600; }
.kpi strong { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.03em; margin-top: 2px; }
.kpi em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--green); }
.marks { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 14px; }
.marks th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--label-3); padding: 0 10px; }
.marks td { padding: 8px 10px; background: var(--bg); }
.marks td:first-child { border-radius: 10px 0 0 10px; font-weight: 600; }
.marks td:last-child { border-radius: 0 10px 10px 0; }
.marks input { width: 64px; border: 0; border-radius: 8px; background: var(--elev); padding: 7px 8px; text-align: center; font-weight: 600; outline: none; box-shadow: inset 0 0 0 .5px var(--sep-strong); }
.marks input:focus { box-shadow: 0 0 0 2px var(--edu); }
.grade { display: inline-grid; place-items: center; min-width: 34px; height: 28px; padding: 0 8px; border-radius: 8px; font-weight: 800; color: #fff; transition: background-color .3s; }
.g-A { background: var(--green); } .g-B { background: #34aadc; } .g-C { background: var(--indigo); } .g-D { background: var(--orange); } .g-E { background: #ff6b3d; } .g-F { background: var(--red); }
.rc-summary { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.rc-summary .kpi { flex: 1; min-width: 120px; }

.attn { display: grid; gap: 8px; }
.attn button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--bg); text-align: left; transition: transform .3s var(--spring); }
.attn button:active { transform: scale(.98); }
.attn .av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; flex: none; }
.attn .nm { flex: 1; font-weight: 600; font-size: 15px; }
.attn .st { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 99px; letter-spacing: .03em; min-width: 82px; text-align: center; }
.st-PRESENT { background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--green); }
.st-ABSENT { background: color-mix(in srgb, var(--red) 16%, transparent); color: var(--red); }
.st-LATE { background: color-mix(in srgb, var(--orange) 18%, transparent); color: var(--orange); }
.st-EXCUSED { background: color-mix(in srgb, var(--blue) 16%, transparent); color: var(--blue); }
.st-SICK { background: color-mix(in srgb, var(--purple) 16%, transparent); color: var(--purple); }
.ring { --p: 0; width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--ring-c, var(--green)) calc(var(--p) * 1%), var(--fill) 0); transition: --p .6s; position: relative; flex: none; }
.ring::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--elev); }
.ring b { position: relative; font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }

.letterhead { border-radius: 14px; background: #fff; color: #111; padding: 20px; box-shadow: var(--shadow-2); font-family: Georgia, "Times New Roman", serif; }
.letterhead .lh { display: flex; align-items: center; gap: 14px; padding-bottom: 12px; border-bottom: 2px solid #1f2a6b; transition: all .4s var(--ease-out); }
.letterhead .lh .logo { width: 56px; height: 56px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 35%, #8d8bff, #2f3fb8); display: grid; place-items: center; color: #fff; font: 800 18px var(--font); transition: all .4s var(--ease-out); }
.letterhead .lh .txt { flex: 1; transition: all .4s; }
.letterhead .lh b { display: block; font-size: 17px; letter-spacing: .02em; text-transform: uppercase; color: #1f2a6b; }
.letterhead .lh small { display: block; font-size: 11.5px; color: #444; }
.letterhead .lh i { display: block; font-size: 11.5px; color: #8a6d00; margin-top: 2px; }
.letterhead[data-layout="A"] .lh .txt { text-align: center; }
.letterhead[data-layout="B"] .lh .logo.r { display: none; }
.letterhead[data-layout="C"] .lh { flex-direction: row-reverse; }
.letterhead[data-layout="C"] .lh .logo.r { display: none; }
.letterhead[data-layout="C"] .lh .txt { text-align: left; }
.letterhead .doc-title { text-align: center; font: 800 12px var(--font); letter-spacing: .14em; margin: 12px 0 10px; color: #1f2a6b; }
.letterhead .doc-lines i { display: block; height: 8px; border-radius: 4px; background: #eceef5; margin-bottom: 7px; }
.letterhead .doc-foot { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 8px; border-top: 1px solid #e3e3ea; font: 500 10px var(--font); color: #777; }

/* Ludo */
.ludo-page { --bg: #050816; --bg-2: #070b1d; --bg-3: #0b1029; --elev: #0f1533; --elev-2: #151c40; --label: #fff; --label-2: rgba(225,230,255,.72); --label-3: rgba(225,230,255,.45); --sep: rgba(120,130,200,.22); --sep-strong: rgba(120,130,200,.34); --fill: rgba(130,140,220,.16); --fill-2: rgba(130,140,220,.26); --glass: rgba(10,14,36,.66); --glass-border: rgba(255,255,255,.08); color-scheme: dark; --shadow-1: 0 6px 24px rgba(0,0,0,.35); --shadow-2: 0 24px 60px -16px rgba(0,0,0,.7); }
.dice-stage { display: grid; place-items: center; gap: 22px; perspective: 900px; }
.dice { width: 110px; height: 110px; position: relative; transform-style: preserve-3d; transition: transform 1.3s cubic-bezier(.2,.8,.2,1); transform: rotateX(-25deg) rotateY(35deg); }
.dice .face { position: absolute; inset: 0; border-radius: 22px; background: linear-gradient(145deg, #ffffff, #dfe3f0); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06), inset -6px -8px 16px rgba(0,0,0,.08); display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: 16px; }
.dice .face i { width: 18px; height: 18px; border-radius: 50%; background: #111; align-self: center; justify-self: center; box-shadow: inset 0 2px 3px rgba(255,255,255,.25); }
.dice .face.red i { background: #e0261b; }
.dice .f1 { transform: rotateY(0deg) translateZ(55px); }
.dice .f2 { transform: rotateY(90deg) translateZ(55px); }
.dice .f3 { transform: rotateX(90deg) translateZ(55px); }
.dice .f4 { transform: rotateX(-90deg) translateZ(55px); }
.dice .f5 { transform: rotateY(-90deg) translateZ(55px); }
.dice .f6 { transform: rotateY(180deg) translateZ(55px); }
.callout-word { font-size: clamp(30px, 4vw, 44px); font-weight: 900; letter-spacing: -.03em; min-height: 1.2em; text-align: center; }
.callout-word.pop { animation: popword .6s var(--spring); }
@keyframes popword { 0% { transform: scale(.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.pawns { display: flex; justify-content: center; gap: 4px; }
.pawns img { width: clamp(70px, 9vw, 120px); filter: drop-shadow(0 18px 24px rgba(0,0,0,.5)); }
.pawns img:nth-child(1) { animation: floatY 6s ease-in-out infinite; }
.pawns img:nth-child(2) { animation: floatY 6s ease-in-out -1.5s infinite; }
.pawns img:nth-child(3) { animation: floatY 6s ease-in-out -3s infinite; }
.pawns img:nth-child(4) { animation: floatY 6s ease-in-out -4.5s infinite; }
.quickchat { display: flex; flex-wrap: wrap; gap: 8px; }
.quickchat button { padding: 9px 14px; border-radius: 18px 18px 18px 6px; background: var(--fill); font-size: 14px; font-weight: 600; transition: transform .35s var(--spring), background-color .2s; }
.quickchat button:hover { background: var(--fill-2); }
.quickchat button:active { transform: scale(.94); }
.bubbles { min-height: 140px; display: flex; flex-direction: column; gap: 8px; justify-content: flex-end; }
.bubble { align-self: flex-start; max-width: 80%; padding: 9px 14px; border-radius: 18px 18px 18px 6px; background: var(--fill-2); font-size: 15px; animation: rise .4s var(--spring) both; }
.bubble.me { align-self: flex-end; background: var(--blue); color: #fff; border-radius: 18px 18px 6px 18px; }
.tiers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
@media (max-width: 620px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier { text-align: center; padding: 16px 8px; border-radius: 18px; background: var(--elev); box-shadow: var(--shadow-1); font-weight: 700; font-size: 14px; }
.tier .medal { width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 10px; box-shadow: inset 0 -4px 8px rgba(0,0,0,.25), 0 6px 16px -6px rgba(0,0,0,.6); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(.94); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal-scale.in { opacity: 1; transform: none; }
.no-js .reveal, .no-js .reveal-scale { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-scale { opacity: 1; transform: none; }
}

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.flex { display: flex; } .wrap-gap { display: flex; flex-wrap: wrap; gap: 10px; }
.gap-12 { gap: 12px; }
.hide-sm { } @media (max-width: 640px) { .hide-sm { display: none !important; } }

/* Grid children may shrink below their content (wide tables scroll inside .table-wrap). */
.dl-app > *, .dl-grid > *, .dl-buttons > *, .split > *, .features > *, .bento > *, .app-hero-grid > *, .founder > *, .products > *, .pricing > *, .roadmap > *, .footer-grid > * { min-width: 0; }
.btn { max-width: 100%; }
@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; line-height: 1.25; padding-top: 10px; padding-bottom: 10px; }
  .hero-cta .btn, .app-actions .btn { flex: 1 1 100%; }
}

/* ---------- Print ---------- */
@media print {
  .nav, .tabbar, .subnav, .toast-region, .ambient, .grid-fade { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  .reveal, .reveal-scale { opacity: 1 !important; transform: none !important; }
}

.ludo-page [data-theme-toggle] { display: none; }
.ludo-page .tile h3, .ludo-page .tile p { color: #fff; }
.ludo-page .tile p { color: rgba(225,230,255,.78); }

/* ---------------- support conversations ---------------- */
.sup-head{display:flex;align-items:center;gap:10px;justify-content:space-between;flex-wrap:wrap;margin-bottom:12px}
.sup-head h3{margin:0}
.sup-thread{display:flex;flex-direction:column;gap:10px}
.sup-msg{max-width:88%;padding:12px 14px;border-radius:16px;background:var(--fill);color:var(--label);line-height:1.45;word-wrap:break-word}
.sup-msg.mine{align-self:flex-end;background:var(--blue);color:#fff}
.sup-msg.mine .sup-meta{color:rgba(255,255,255,.75)}
.sup-meta{font-size:12px;color:var(--label-3);margin-bottom:4px}
.sup-reply{display:flex;flex-direction:column;gap:10px;margin-top:16px}
.sup-reply textarea{width:100%;box-sizing:border-box;border-radius:14px;border:1px solid var(--fill-2);background:var(--bg-3);color:var(--label);padding:12px;font:inherit;resize:vertical}
.sup-reply .btn{align-self:flex-end}
.sup-list{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.sup-item{display:flex;justify-content:space-between;gap:10px;padding:12px 14px;border-radius:14px;background:var(--fill);color:var(--label);text-decoration:none}
.sup-item span{color:var(--label-3);font-size:13px}

/* ---------------- account ---------------- */
.acct-section { padding-top: 110px; min-height: 72vh; }
.acct-card { padding: clamp(18px, 3vw, 28px); }
.acct-card:hover { transform: none; }
.acct-card h3 { margin-bottom: 10px; }
.acct-tabs { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; margin-bottom: 18px; }
.acct-tabs button { color: var(--label-2); }
.acct-tabs button.active { background: var(--bg-2); color: var(--label); box-shadow: 0 3px 8px rgba(0,0,0,.12), inset 0 0 0 .5px var(--sep); }
[data-theme-mode="dark"] .acct-tabs button.active { background: #636366; }
.acct-form { display: grid; gap: 14px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--label-2); padding-left: 4px; }
.field.pw { position: relative; }
.field.pw input { padding-right: 48px; }
.pw-eye { position: absolute; right: 10px; bottom: 9px; width: 32px; height: 32px; border-radius: 8px; opacity: .65; font-size: 16px; }
.pw-eye:hover { opacity: 1; background: var(--fill); }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 6px; align-items: center; margin-top: -4px; }
.pw-meter i { height: 5px; border-radius: 3px; background: var(--fill-2); }
.pw-meter i.on.s1 { background: var(--red); } .pw-meter i.on.s2 { background: var(--orange); }
.pw-meter i.on.s3, .pw-meter i.on.s4 { background: var(--green); }
.pw-meter b { font-size: 12px; color: var(--label-2); min-width: 64px; text-align: right; }
.acct-submit { justify-self: stretch; }
.acct-hello { display: flex; align-items: center; gap: 14px; }
.acct-hello h3 { margin: 0; }
.acct-avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--indigo)); flex: none; }
.acct-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.acct-head h3 { margin: 0; }
.acct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .acct-grid { grid-template-columns: 1fr; } .acct-hello { flex-wrap: wrap; } }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 99px; background: var(--fill); font-size: 14px; cursor: pointer; }
.chip-check input { accent-color: var(--blue); }
.acct-danger { --b-bg: color-mix(in srgb, var(--red) 14%, transparent); --b-fg: var(--red); }
.grow { flex: 1; min-width: 0; }
.sup-item .grow small { color: var(--label-2); }
.acct-btn.signed-in { padding: 0; }
.acct-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--indigo)); }

/* ---------------- newsletter ---------------- */
.newsletter { display: grid; grid-template-columns: 1fr 1.2fr; gap: 10px 24px; align-items: center; padding: 22px 0; margin-top: 24px;
  border-top: .5px solid var(--sep); }
.newsletter h4 { margin: 0 0 4px; }
.newsletter p { margin: 0; color: var(--label-2); font-size: 14px; }
.nl-row { display: flex; gap: 8px; }
.nl-row input { flex: 1; min-width: 0; border: 0; outline: none; border-radius: 12px; background: var(--fill); padding: 12px 14px; font-size: 15px; color: var(--label); }
.nl-row input:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 40%, transparent); }
.newsletter .form-status { grid-column: 1 / -1; }
@media (max-width: 720px) { .newsletter { grid-template-columns: 1fr; } }

/* ---------------- floating WhatsApp ---------------- */
.wa-float { position: fixed; right: 18px; bottom: 22px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 10px 28px -6px rgba(37, 211, 102, .6); transition: transform .3s var(--spring); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }
@media (max-width: 760px) { .wa-float { bottom: 84px; right: 14px; width: 50px; height: 50px; } }

/* ---------------- pricing ---------------- */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
@media (max-width: 900px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .price-grid { grid-template-columns: 1fr; } }
.price-card { position: relative; padding: 24px; border-radius: var(--r-lg); background: var(--elev); box-shadow: var(--shadow-1); text-align: center; }
.price-card h3 { font-size: 18px; margin-bottom: 6px; }
.price-card .price { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0; color: var(--blue); }
.price-card.best { box-shadow: 0 0 0 2px var(--orange), var(--shadow-1); }
.price-tag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--orange); color: #fff; font-size: 12px; font-weight: 800;
  padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
@media (max-width: 1080px) { .nav-cta { font-size: 0; gap: 0; padding: 0 12px; } .nav-cta svg { margin: 0; } }
@media (max-width: 1120px) { .nav-links a:nth-child(5), .nav-links a:nth-child(6) { display: none; } }
@media (max-width: 480px) { .acct-tabs button { padding: 6px 4px; font-size: 13px; white-space: normal; line-height: 1.2; } }

/* ===== PulseProperty Pro & PulseStock (2026-10) ===== */
:root { --prop: #14A394; --prop-deep: #0E6E62; --stock: #3B82F6; --stock-deep: #1E40AF; }
.grad-prop { background: linear-gradient(100deg, #2fd3bf 0%, var(--prop-deep) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-stock { background: linear-gradient(100deg, #60a5fa 0%, var(--stock-deep) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.product.prop::before { background: radial-gradient(120% 80% at 100% 0%, #2fd3bf 0%, transparent 55%), linear-gradient(160deg, #0b5048 0%, #03201c 100%); }
.product.stock::before { background: radial-gradient(120% 80% at 100% 0%, #60a5fa 0%, transparent 55%), linear-gradient(160deg, #1e3a8a 0%, #070f2e 100%); }
.products.six { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1240px) { .products.six { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 980px) { .products.six { grid-template-columns: 1fr; } }
.pricing.pricing-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .pricing.pricing-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pricing.pricing-4 { grid-template-columns: 1fr; } }
.app-shots { position: relative; padding-bottom: 40px; }
.shot { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: var(--shadow-2); border: 1px solid var(--separator, rgba(0,0,0,.08)); background: var(--elev); }
.app-shots .shot-phone { position: absolute; right: -8px; bottom: 0; width: 26%; min-width: 110px; border-radius: 22px; }
.shot-band { max-width: 1100px; margin-left: auto; margin-right: auto; }
.story-video { max-width: 980px; margin: 0 auto; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-2); aspect-ratio: 16 / 9; background: #000; }
.story-video iframe { display: block; width: 100%; height: 100%; border: 0; }
