/* ==========================================================================
   LanaTime 7.5 — design system
   Tokens → base → layout → components → mockups → utilities
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --midnight: #070f24;
  --navy-900: #0b1b3f;
  --navy-800: #12285a;
  --navy-700: #1b3672;
  --blue-700: #1648d6;
  --blue-600: #1f5eff;
  --blue-500: #3d78ff;
  --blue-200: #c5d7ff;
  --blue-100: #e3ecff;
  --blue-50: #f1f5ff;
  --cyan-500: #10b5d6;
  --cyan-400: #2fd0ec;

  /* Neutrals */
  --ink: #0b1430;
  --ink-2: #3b4866;
  --ink-3: #5f6b86;
  --ink-4: #8a94ab;
  --line: #e2e7f0;
  --line-2: #eef1f6;
  --surface: #ffffff;
  --surface-2: #f6f8fc;
  --surface-3: #eef3fb;

  /* Status (reserved — always paired with a label) */
  --good: #12925e;
  --good-bg: #e6f6ee;
  --warn: #b7770a;
  --warn-bg: #fdf3df;
  --bad: #d23f45;
  --bad-bg: #fdecec;
  --idle: #6b7690;
  --idle-bg: #eef0f5;

  /* Type */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;

  /* Spacing & shape */
  --container: 1200px;
  --gutter: 24px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(11, 20, 48, .05);
  --shadow-md: 0 1px 2px rgba(11, 20, 48, .04), 0 8px 24px -8px rgba(11, 20, 48, .10);
  --shadow-lg: 0 2px 4px rgba(11, 20, 48, .04), 0 24px 60px -18px rgba(11, 27, 63, .25);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 68px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--surface);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .5em; line-height: 1.15; font-family: var(--font-display); font-weight: 650; letter-spacing: -.02em; }
h1 { font-size: clamp(2.35rem, 5.2vw, 4rem); letter-spacing: -.035em; line-height: 1.04; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -.03em; line-height: 1.1; }
h3 { font-size: 1.2rem; letter-spacing: -.012em; }
h4 { font-size: 1rem; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--blue-100); color: var(--ink); }
.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-link { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section--tight { padding: clamp(48px, 6vw, 72px) 0; }
.section--alt { background: var(--surface-2); }
.section--line { border-top: 1px solid var(--line-2); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.125rem; color: var(--ink-3); margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 14px; height: 2px; border-radius: 2px; background: currentColor; }
.section-head--center .eyebrow::before { display: none; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-3); line-height: 1.55; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } :root { --gutter: 16px; } }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split--rev > :first-child { order: 2; }
.split--even { grid-template-columns: 1fr 1fr; }
.split > *, .cta-grid > *, .grid > *, .hero-grid > *, .tab-panel > * { min-width: 0; }
@media (max-width: 980px) { .split, .split--rev, .split--even { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 8px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  font-weight: 600; font-size: .95rem; letter-spacing: -.005em; white-space: nowrap;
  cursor: pointer; transition: background .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { color: var(--fg); }
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .18s var(--ease); }
.btn:hover svg.i-arrow { transform: translateX(2px); }
.btn--primary { --bg: var(--blue-600); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 16px -6px rgba(31, 94, 255, .55); }
.btn--primary:hover { --bg: var(--blue-700); }
.btn--dark:hover { --bg: var(--navy-800); }
.btn--ghost { --bg: var(--surface); --fg: var(--ink); --bd: var(--line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { --bd: #c9d2e3; --fg: var(--ink); }
.btn--light { --bg: #fff; --fg: var(--ink); }
.btn--light:hover { --bg: var(--blue-50); --fg: var(--ink); }
.btn--outline-light { --bg: transparent; --fg: #fff; --bd: rgba(255,255,255,.28); }
.btn--outline-light:hover { --bd: rgba(255,255,255,.6); --fg: #fff; }
.btn--sm { height: 36px; padding: 0 14px; font-size: .875rem; }
.btn--lg { height: 50px; padding: 0 22px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (max-width: 480px) { .hero .btn-row .btn, .page-hero .btn-row .btn, .cta-band .btn-row .btn { flex: 1 1 100%; } }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .95rem; }
.link-arrow svg { width: 15px; height: 15px; transition: transform .18s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(11,20,48,.35); }
.nav { display: flex; align-items: center; height: var(--header-h); gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { height: 34px; width: auto; }
.brand-version { font-size: .7rem; font-weight: 700; color: var(--blue-700); background: var(--blue-50); border: 1px solid var(--blue-100); padding: 2px 7px; border-radius: 999px; letter-spacing: .02em; }
.nav-menu { display: flex; align-items: center; gap: 2px; list-style: none; flex: 1; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 12px; border-radius: 8px;
  color: var(--ink-2); font-weight: 500; font-size: .93rem; background: none; border: 0; cursor: pointer;
}
.nav-link:hover, .nav-item.is-open > .nav-link { color: var(--ink); background: var(--surface-2); }
.nav-link[aria-current="page"], .nav-item.is-current > .nav-link { color: var(--ink); }
.nav-link .chev { width: 14px; height: 14px; opacity: .55; transition: transform .2s var(--ease); }
.nav-item.is-open > .nav-link .chev { transform: rotate(180deg); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.nav-actions .nav-link { font-weight: 500; }

.dropdown {
  position: absolute; top: calc(100% + 8px); inset-inline-start: -12px; min-width: 300px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .16s var(--ease), transform .16s var(--ease), visibility 0s .16s;
}
.dropdown::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.nav-item.is-open > .dropdown { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.dropdown--wide { min-width: 600px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.dd-link { display: flex; gap: 12px; padding: 10px 12px; border-radius: 9px; color: var(--ink); }
.dd-link:hover { background: var(--surface-2); color: var(--ink); }
.dd-link .dd-ic { flex: none; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); border: 1px solid var(--blue-100); }
.dd-link .dd-ic svg { width: 17px; height: 17px; }
.dd-link strong { display: block; font-size: .9rem; font-weight: 600; line-height: 1.3; }
.dd-link span { display: block; font-size: .8rem; color: var(--ink-3); line-height: 1.4; margin-top: 2px; }
.dd-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 6px; padding: 12px 14px; border-radius: 9px; background: var(--surface-2); font-size: .85rem; color: var(--ink-3); }

.nav-toggle { display: none; margin-inline-start: auto; width: 42px; height: 42px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; place-items: center; }
.nav-toggle svg { width: 20px; height: 20px; color: var(--ink); }
.mobile-nav { display: none; }

@media (max-width: 1160px) {
  .nav-menu, .nav-actions { display: none; }
  .nav-toggle { display: grid; }
  .mobile-nav {
    display: block; position: fixed; inset: var(--header-h) 0 0; z-index: 99; background: #fff;
    overflow-y: auto; padding: 8px var(--gutter) 32px; transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s .18s;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .mobile-nav { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
}
.m-group { border-bottom: 1px solid var(--line-2); }
.m-group > button, .m-group > a {
  display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 16px 2px;
  background: none; border: 0; font-weight: 600; font-size: 1.05rem; color: var(--ink); cursor: pointer; text-align: start;
}
.m-group > button svg { width: 18px; height: 18px; transition: transform .2s; }
.m-group > button[aria-expanded="true"] svg { transform: rotate(180deg); }
.m-sub { display: grid; gap: 2px; padding: 0 0 14px; }
.m-sub[hidden] { display: none; }
.m-sub a { padding: 9px 12px; border-radius: 8px; color: var(--ink-2); font-size: .97rem; }
.m-sub a:hover { background: var(--surface-2); }
.m-cta { display: grid; gap: 10px; margin-top: 22px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 8vw, 104px); isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 55% at 78% 30%, rgba(61, 120, 255, .16), transparent 70%),
    radial-gradient(40% 40% at 10% 0%, rgba(47, 208, 236, .12), transparent 70%),
    linear-gradient(180deg, #f7f9fe 0%, #fff 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000 30%, transparent 75%); mask-image: radial-gradient(70% 60% at 50% 20%, #000 30%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 1080px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: 20px; font-size: clamp(2.4rem, 4.6vw, 3.7rem); }
.hero h1 .accent { background: linear-gradient(92deg, var(--blue-600), var(--cyan-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { max-width: 540px; margin-bottom: 30px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; margin-bottom: 22px;
  border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: .84rem; font-weight: 500; color: var(--ink-2);
}
.pill b { font-weight: 700; font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--blue-600); padding: 3px 8px; border-radius: 999px; }
.pill:hover { color: var(--ink); border-color: #cfd8e8; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; font-size: .88rem; color: var(--ink-3); list-style: none; }
.hero-meta li { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--good); }
.hero-visual { position: relative; }
.hero-visual .app { transform: perspective(2200px) rotateY(-5deg) rotateX(2deg); transform-origin: left center; }
@media (max-width: 1080px) { .hero-visual .app { transform: none; } }

.page-hero { position: relative; padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line-2); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 80% at 85% 0%, rgba(61,120,255,.12), transparent 70%), linear-gradient(180deg, #f7f9fe, #fff); }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); max-width: 860px; }
.page-hero .lead { max-width: 680px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; font-size: .85rem; color: var(--ink-4); margin-bottom: 18px; }
.breadcrumb li + li::before { content: "/"; margin-inline-end: 6px; color: var(--line); }
.breadcrumb a { color: var(--ink-3); }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
a.card { display: block; color: inherit; }
a.card:hover { border-color: #cdd6e7; box-shadow: var(--shadow-md); transform: translateY(-2px); color: inherit; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-3); font-size: .95rem; margin: 0; }
.card .link-arrow { margin-top: 16px; }
.icon-tile { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 18px; color: var(--blue-600); background: var(--blue-50); border: 1px solid var(--blue-100); }
.icon-tile svg { width: 20px; height: 20px; }
.icon-tile--dark { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: var(--cyan-400); }
.card--flat { background: var(--surface-2); border-color: transparent; }
.ticks { list-style: none; display: grid; gap: 10px; margin-top: 18px; }
.ticks li { display: flex; gap: 10px; font-size: .95rem; color: var(--ink-2); line-height: 1.5; }
.ticks svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--blue-600); }

/* Feature rows (alternating storytelling blocks) */
.feature-row + .feature-row { margin-top: clamp(72px, 9vw, 120px); }
.feature-copy h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.feature-copy .lead { font-size: 1.07rem; }
.feature-copy .ticks { margin: 22px 0 26px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: .78rem; font-weight: 500; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); }

/* Bento grid */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.bento > * { grid-column: span 2; }
.bento .span-3 { grid-column: span 3; }
.bento .span-4 { grid-column: span 4; }
@media (max-width: 980px) { .bento > *, .bento .span-3, .bento .span-4 { grid-column: span 3; } }
@media (max-width: 640px) { .bento > *, .bento .span-3, .bento .span-4 { grid-column: span 6; } }

/* Trust strip */
.trust { padding: 40px 0 8px; }
.trust-label { text-align: center; font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 22px; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 44px; }
.logo-row img { height: 40px; width: auto; max-width: 130px; object-fit: contain; filter: grayscale(1); opacity: .62; mix-blend-mode: multiply; transition: filter .2s, opacity .2s; }
.logo-row img:hover { filter: none; opacity: 1; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; margin-top: 48px; }
.fact { padding: 24px 26px; }
.fact + .fact { border-inline-start: 1px solid var(--line); }
.fact strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); letter-spacing: -.03em; line-height: 1.1; font-weight: 650; }
.fact span { display: block; font-size: .88rem; color: var(--ink-3); margin-top: 6px; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr 1fr; } .fact:nth-child(3) { border-inline-start: 0; } .fact:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } .fact + .fact { border-inline-start: 0; border-top: 1px solid var(--line); } }

/* Dark band */
.band-dark { position: relative; background: var(--midnight); color: #b9c4dc; overflow: hidden; isolation: isolate; }
.band-dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 85% 0%, rgba(31,94,255,.32), transparent 70%), radial-gradient(40% 50% at 0% 100%, rgba(16,181,214,.14), transparent 70%); }
.band-dark h2, .band-dark h3, .band-dark h4 { color: #fff; }
.band-dark .lead, .band-dark .section-head p { color: #a9b5cf; }
.band-dark .eyebrow { color: var(--cyan-400); }
.band-dark .card { background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.09); }
.band-dark .card p { color: #a3afc9; }
.band-dark .ticks li { color: #c7d0e3; }
.band-dark .ticks svg { color: var(--cyan-400); }

/* Tabs (product showcase) */
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; margin: 0 auto 28px; max-width: max-content; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 9px; border: 0; background: transparent; color: var(--ink-3); font-weight: 600; font-size: .88rem; cursor: pointer; transition: background .18s, color .18s, box-shadow .18s; }
.tab svg { width: 16px; height: 16px; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.tab-panel { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; align-items: center; }
.tab-panel[hidden] { display: none; }
.tab-panel .panel-copy h3 { font-size: 1.5rem; letter-spacing: -.02em; }
.tab-panel .panel-copy p { color: var(--ink-3); }
@media (max-width: 980px) { .tab-panel { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: no-preference) { .tab-panel:not([hidden]) { animation: fadeUp .35s var(--ease); } }

/* Industry cards */
.industry { position: relative; }
.industry .use { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: .87rem; color: var(--ink-3); display: grid; gap: 6px; list-style: none; }
.industry .use li::before { content: "→"; color: var(--blue-600); margin-inline-end: 8px; }

/* Device list */
.device-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.device { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: .88rem; font-weight: 600; color: var(--ink); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: -.01em; }
.device svg { width: 16px; height: 16px; color: var(--ink-4); flex: none; }

/* Testimonials */
.quote { display: flex; flex-direction: column; height: 100%; }
.quote blockquote { margin: 0 0 22px; color: var(--ink); font-size: 1.02rem; line-height: 1.6; flex: 1; }
.quote figcaption { display: flex; align-items: center; gap: 12px; font-size: .88rem; color: var(--ink-3); }
.quote .avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-700); font-weight: 700; border: 1px solid var(--blue-100); }
.quote figcaption strong { display: block; color: var(--ink); font-weight: 600; }
.quote .stars { display: flex; gap: 2px; color: #f2b01e; margin-bottom: 16px; }
.quote .stars svg { width: 15px; height: 15px; }

/* Editable placeholders (business team must complete before launch) */
.placeholder { position: relative; border: 1.5px dashed #c3cde0 !important; background: repeating-linear-gradient(135deg, #fbfcfe, #fbfcfe 10px, #f6f8fc 10px, #f6f8fc 20px) !important; }
.placeholder-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--warn); background: var(--warn-bg); border-radius: 999px; padding: 3px 9px; margin-bottom: 14px; }
.ph { color: var(--ink-4); font-style: italic; }

/* Story card */
.story dl { display: grid; gap: 14px; margin: 18px 0 0; }
.story dt { font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-4); }
.story dd { margin: 2px 0 0; font-size: .93rem; color: var(--ink-2); }

/* Pricing / deployment */
.plan { display: flex; flex-direction: column; }
.plan .plan-top { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.plan .plan-top p { min-height: 3em; }
.plan .ticks { margin-top: 0; flex: 1; margin-bottom: 26px; }
.plan--featured { border-color: var(--blue-600); box-shadow: 0 0 0 3px var(--blue-100), var(--shadow-md); }
.plan .price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 650; color: var(--ink); letter-spacing: -.02em; margin: 14px 0 0; }
.plan .price small { font-size: .85rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .03em; background: var(--blue-50); color: var(--blue-700); border: 1px solid var(--blue-100); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
.table th, .table td { padding: 14px 18px; text-align: start; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table th { font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); background: var(--surface-2); }
.table tr:last-child td { border-bottom: 0; }
.table td:first-child { font-weight: 600; color: var(--ink); }

/* FAQ accordion */
.faq { border-top: 1px solid var(--line); max-width: 860px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { margin: 0; font-size: 1.05rem; }
.faq-q button { display: flex; width: 100%; gap: 16px; justify-content: space-between; align-items: center; padding: 22px 0; background: none; border: 0; text-align: start; font-weight: 600; color: var(--ink); cursor: pointer; font-size: inherit; font-family: var(--font-sans); letter-spacing: -.01em; }
.faq-q button:hover { color: var(--blue-700); }
.faq-q .pm { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink-3); transition: transform .22s var(--ease), background .2s; }
.faq-q .pm svg { width: 14px; height: 14px; }
.faq-q button[aria-expanded="true"] .pm { transform: rotate(45deg); background: var(--blue-50); color: var(--blue-600); border-color: var(--blue-100); }
.faq-a { overflow: hidden; }
.faq-a[hidden] { display: none; }
.faq-a > div { padding: 0 48px 24px 0; color: var(--ink-3); }
.faq-a p:last-child { margin: 0; }
.review-flag { display: inline-block; font-size: .72rem; font-weight: 700; color: var(--warn); background: var(--warn-bg); padding: 1px 7px; border-radius: 4px; margin-inline-start: 6px; vertical-align: 1px; letter-spacing: .02em; }

/* CTA band */
.cta-band { padding: clamp(72px, 9vw, 112px) 0; }
.cta-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 980px) { .cta-grid { grid-template-columns: 1fr; } }
.cta-band h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); }
.cta-points { list-style: none; display: grid; gap: 14px; margin: 28px 0 32px; }
.cta-points li { display: flex; gap: 12px; color: #c7d0e3; }
.cta-points svg { width: 20px; height: 20px; flex: none; color: var(--cyan-400); margin-top: 2px; }
.contact-lines { display: grid; gap: 8px; font-size: .93rem; }
.contact-lines a { color: #fff; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border-radius: 16px; padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-lg); border: 1px solid var(--line); color: var(--ink-2); }
.form-card h3, .form-card .form-title { font-size: 1.25rem; margin-bottom: 4px; letter-spacing: -.015em; color: var(--ink); }
.form-card > p { font-size: .92rem; color: var(--ink-3); margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field label .opt { font-weight: 400; color: var(--ink-4); }
.field input, .field select, .field textarea {
  width: 100%; height: 44px; padding: 0 13px; border-radius: 8px; border: 1px solid #d5dce8; background: #fff;
  font-size: .95rem; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field textarea { height: auto; min-height: 104px; padding: 11px 13px; resize: vertical; line-height: 1.5; }
.field select { 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='%235f6b86' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-inline-end: 36px; }
.field input::placeholder, .field textarea::placeholder { color: #9aa4b9; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b9c3d6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px var(--blue-100); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--bad); }
.field.has-error input:focus, .field.has-error textarea:focus { box-shadow: 0 0 0 3px var(--bad-bg); }
.field-error { display: none; font-size: .8rem; color: var(--bad); margin-top: 5px; }
.field.has-error .field-error { display: block; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.form-note { font-size: .8rem; color: var(--ink-4); margin: 0; }
.form-status { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-size: .92rem; line-height: 1.5; }
.form-status.is-visible { display: flex; gap: 10px; }
.form-status svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.form-status--ok { background: var(--good-bg); color: #0b6b44; }
.form-status--err { background: var(--bad-bg); color: #a12b30; }
.form-status a { color: inherit; text-decoration: underline; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-2); border-top: 1px solid var(--line); padding: 72px 0 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-brand p { color: var(--ink-3); max-width: 340px; margin: 16px 0 18px; }
.footer-brand img { height: 36px; width: auto; }
.site-footer h4 { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); font-family: var(--font-sans); font-weight: 600; margin-bottom: 14px; }
.footer-links { list-style: none; display: grid; gap: 9px; }
.footer-links a { color: var(--ink-2); }
.footer-links a:hover { color: var(--blue-600); }
.social { display: flex; gap: 8px; }
.social a { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; color: var(--ink-3); }
.social a:hover { color: var(--blue-600); border-color: var(--blue-200); }
.social svg { width: 16px; height: 16px; }
.footer-offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .87rem; }
.footer-offices strong { display: block; color: var(--ink); margin-bottom: 4px; font-size: .9rem; }
.footer-offices address { font-style: normal; }
@media (max-width: 780px) { .footer-offices { grid-template-columns: 1fr; } }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--ink-4); }
.footer-bottom nav { display: flex; gap: 20px; }
.footer-bottom a { color: var(--ink-3); }

/* ---------- Misc components ---------- */
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: 10px; background: var(--blue-50); border: 1px solid var(--blue-100); color: var(--ink-2); font-size: .92rem; }
.notice svg { width: 18px; height: 18px; flex: none; color: var(--blue-600); margin-top: 2px; }
.notice--warn { background: var(--warn-bg); border-color: #f4dfb2; }
.notice--warn svg { color: var(--warn); }
.steps { counter-reset: s; list-style: none; display: grid; gap: 16px; }
.steps li { counter-increment: s; position: relative; padding-inline-start: 46px; }
.steps li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: 0; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 700; font-size: .85rem; }
.steps strong { display: block; color: var(--ink); }
.code { overflow-wrap: anywhere; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .86em; background: var(--surface-3); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; color: var(--ink); }
.toc { position: sticky; top: calc(var(--header-h) + 24px); list-style: none; display: grid; gap: 2px; font-size: .9rem; }
.toc a { display: block; padding: 7px 12px; border-radius: 7px; color: var(--ink-3); border-inline-start: 2px solid transparent; }
.toc a:hover { background: var(--surface-2); color: var(--ink); }
.module-list { columns: 3 220px; column-gap: 24px; }
.module-group { break-inside: avoid; margin-bottom: 22px; }
.module-group h3 { display: flex; align-items: center; gap: 8px; font-size: .95rem; margin-bottom: 8px; }
.module-group h3 svg { width: 16px; height: 16px; color: var(--blue-600); }
.module-group ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-inline-start: 1.2em; margin-bottom: 1em; }
.prose li { margin-bottom: .4em; }
.divider-label { display: flex; align-items: center; gap: 14px; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); margin: 0 0 18px; }
.divider-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ==========================================================================
   Product interface mockups (illustrative — sample data)
   ========================================================================== */
.app {
  --a-line: #e6eaf2;
  position: relative; background: #fff; border-radius: 14px; border: 1px solid #dbe2ee; overflow: hidden;
  box-shadow: 0 1px 1px rgba(11,20,48,.04), 0 30px 70px -24px rgba(11,27,63,.32), 0 0 0 6px rgba(255,255,255,.6);
  font-size: 12px; line-height: 1.4; color: var(--ink-2); text-align: start;
}
.app-bar { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border-bottom: 1px solid var(--a-line); background: #fbfcfe; }
.app-dots { display: flex; gap: 5px; }
.app-dots i { width: 9px; height: 9px; border-radius: 50%; background: #e2e6ee; }
.app-url { flex: 1; max-width: 320px; margin: 0 auto; height: 22px; border-radius: 6px; background: #f0f3f8; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 10.5px; color: var(--ink-4); }
.app-url svg { width: 10px; height: 10px; }
.app-tag { font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); background: #f0f3f8; padding: 3px 7px; border-radius: 5px; }
.app-body { display: grid; grid-template-columns: 156px minmax(0, 1fr); min-height: 380px; }
.app-side { background: var(--navy-900); color: #93a1c2; padding: 12px 8px; display: flex; flex-direction: column; gap: 1px; }
.app-side .logo { display: flex; align-items: center; gap: 7px; padding: 4px 8px 12px; color: #fff; font-weight: 700; font-size: 12.5px; letter-spacing: -.01em; }
.app-side .logo i { width: 18px; height: 18px; border-radius: 50%; background: url("/static/img/favicon-32.png") center / contain no-repeat; }
.app-side .s-label { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: #5f6f95; padding: 10px 8px 4px; font-weight: 600; }
.app-side a, .app-side span.s-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; color: #a7b3cf; font-size: 11.5px; }
.app-side .s-item svg { width: 13px; height: 13px; opacity: .8; }
.app-side .s-item.is-active { background: rgba(255,255,255,.08); color: #fff; }
.app-side .s-item.is-active svg { color: var(--cyan-400); opacity: 1; }
.app[data-active="dashboard"] [data-k="dashboard"], .app[data-active="personnel"] [data-k="personnel"],
.app[data-active="attendance"] [data-k="attendance"], .app[data-active="schedule"] [data-k="schedule"],
.app[data-active="payroll"] [data-k="payroll"], .app[data-active="device"] [data-k="device"],
.app[data-active="access"] [data-k="access"], .app[data-active="reports"] [data-k="reports"],
.app[data-active="system"] [data-k="system"] { background: rgba(255,255,255,.08); color: #fff; }
.app[data-active] .s-item[data-k] svg { transition: none; }
.app[data-active="dashboard"] [data-k="dashboard"] svg, .app[data-active="personnel"] [data-k="personnel"] svg,
.app[data-active="attendance"] [data-k="attendance"] svg, .app[data-active="schedule"] [data-k="schedule"] svg,
.app[data-active="payroll"] [data-k="payroll"] svg, .app[data-active="device"] [data-k="device"] svg,
.app[data-active="access"] [data-k="access"] svg, .app[data-active="reports"] [data-k="reports"] svg,
.app[data-active="system"] [data-k="system"] svg { color: var(--cyan-400); opacity: 1; }
.app-main { padding: 14px 16px 16px; background: #f7f9fc; min-width: 0; }
.app-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.app-head h5 { margin: 0; font-size: 14px; color: var(--ink); letter-spacing: -.01em; font-weight: 650; }
.app-head small { display: block; font-size: 10.5px; color: var(--ink-4); margin-top: 1px; }
.app-btns { display: flex; gap: 6px; }
.a-btn { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 6px; border: 1px solid var(--a-line); background: #fff; font-size: 10.5px; font-weight: 600; color: var(--ink-2); }
.a-btn svg { width: 11px; height: 11px; }
.a-btn--pri { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.a-card { background: #fff; border: 1px solid var(--a-line); border-radius: 9px; padding: 11px 12px; min-width: 0; }
.a-card h6 { margin: 0 0 8px; font-size: 11px; font-weight: 650; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.a-card h6 small { font-weight: 500; color: var(--ink-4); font-size: 10px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.kpi { background: #fff; border: 1px solid var(--a-line); border-radius: 9px; padding: 10px 11px; }
.kpi-label { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--ink-3); font-weight: 500; }
.kpi-label i { width: 7px; height: 7px; border-radius: 2px; }
.kpi-val { font-size: 19px; font-weight: 700; color: var(--ink); letter-spacing: -.03em; margin-top: 3px; font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: 9.5px; color: var(--ink-4); }
.a-grid { display: grid; gap: 8px; }
.a-grid--2-1 { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
.a-grid--1-1 { grid-template-columns: 1fr 1fr; }
.a-grid--1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 18px; padding: 0 7px; border-radius: 999px; font-size: 9.5px; font-weight: 600; white-space: nowrap; }
.chip--good { background: var(--good-bg); color: var(--good); }
.chip--warn { background: var(--warn-bg); color: var(--warn); }
.chip--bad { background: var(--bad-bg); color: var(--bad); }
.chip--idle { background: var(--idle-bg); color: var(--idle); }
.chip--info { background: var(--blue-50); color: var(--blue-700); }
.a-list { list-style: none; display: grid; }
.a-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line-2); font-size: 10.5px; min-width: 0; }
.a-list li:first-child { border-top: 0; }
.a-list .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-list .muted { color: var(--ink-4); font-variant-numeric: tabular-nums; }
.a-list b { color: var(--ink); font-weight: 600; }
.av { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 8.5px; font-weight: 700; color: var(--navy-800); background: var(--blue-100); flex: none; }
.a-table { width: 100%; border-collapse: collapse; font-size: 10.5px; }
.a-table th { text-align: start; font-weight: 600; color: var(--ink-4); font-size: 9.5px; text-transform: uppercase; letter-spacing: .04em; padding: 6px 8px; border-bottom: 1px solid var(--a-line); background: #fafbfd; white-space: nowrap; }
.a-table td { padding: 7px 8px; border-bottom: 1px solid var(--line-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.a-table tr:last-child td { border-bottom: 0; }
.a-table td.name { display: flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 600; }
.a-table .num { text-align: end; }
.a-table-wrap { border: 1px solid var(--a-line); border-radius: 9px; overflow: hidden; background: #fff; }
.chart { width: 100%; height: auto; overflow: visible; }
.chart .grid-line { stroke: #edf0f5; stroke-width: 1; }
.chart .axis { font-size: 9px; fill: #8a94ab; font-family: var(--font-sans); }
.chart .bar { fill: var(--blue-500); }
.chart .bar--soft { fill: var(--blue-200); }
.chart .line { fill: none; stroke: var(--blue-600); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chart .area { fill: url(#gArea); }
.chart .marker { fill: #fff; stroke: var(--blue-600); stroke-width: 2; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 10px; color: var(--ink-3); margin-top: 6px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; }
.donut-wrap { display: flex; align-items: center; gap: 10px; min-width: 0; }
.donut-wrap svg { width: 68px; height: 68px; flex: none; }
.donut-legend { list-style: none; display: grid; gap: 5px; font-size: 10.5px; flex: 1; min-width: 0; }
.donut-legend li { display: flex; align-items: center; gap: 6px; }
.donut-legend b { margin-inline-start: auto; color: var(--ink); font-variant-numeric: tabular-nums; }
.meter { height: 6px; border-radius: 999px; background: #edf0f5; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 999px; background: var(--blue-500); }
.sched { display: grid; grid-template-columns: 96px repeat(7, minmax(0, 1fr)); gap: 3px; font-size: 10px; }
.sched .h { font-weight: 600; color: var(--ink-4); text-align: center; padding: 4px 0; font-size: 9.5px; text-transform: uppercase; letter-spacing: .04em; }
.sched .who { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); padding-inline-end: 4px; overflow: hidden; white-space: nowrap; }
.sched .s { height: 26px; border-radius: 5px; display: grid; place-items: center; font-weight: 600; font-size: 9.5px; }
.s--m { background: var(--blue-50); color: var(--blue-700); border: 1px solid var(--blue-100); }
.s--e { background: #e8f8fc; color: #0b7d95; border: 1px solid #c4ecf5; }
.s--n { background: var(--navy-900); color: #cfe0ff; }
.s--off { background: repeating-linear-gradient(135deg, #f3f5f9, #f3f5f9 4px, #fafbfc 4px, #fafbfc 8px); color: var(--ink-4); }
.s--lv { background: var(--warn-bg); color: var(--warn); border: 1px solid #f4dfb2; }
.perm { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, .6fr)); font-size: 10.5px; }
.perm > div { padding: 7px 8px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; }
.perm .ph-h { font-weight: 600; font-size: 9.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-4); background: #fafbfd; justify-content: center; }
.perm .ph-h:first-child { justify-content: flex-start; }
.perm .c { justify-content: center; }
.perm .ok { width: 14px; height: 14px; border-radius: 4px; background: var(--blue-600); display: grid; place-items: center; }
.perm .ok svg { width: 10px; height: 10px; color: #fff; }
.perm .no { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid #d5dce8; }
.app-note { position: absolute; inset-inline-end: 10px; bottom: 8px; font-size: 9px; color: var(--ink-4); background: rgba(255,255,255,.9); padding: 2px 6px; border-radius: 4px; border: 1px solid var(--line-2); }
.float-card { position: absolute; z-index: 2; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 10px 12px; font-size: 11.5px; display: flex; align-items: center; gap: 10px; }
.float-card .fi { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--good-bg); color: var(--good); }
.float-card .fi svg { width: 16px; height: 16px; }
.float-card strong { display: block; color: var(--ink); font-size: 12px; }
.float-card span { color: var(--ink-4); font-size: 10.5px; }
.float-card--a { inset-inline-start: -28px; bottom: 64px; }
.float-card--b { inset-inline-end: -18px; top: -22px; }
.float-card--b .fi { background: var(--blue-50); color: var(--blue-600); }
@media (max-width: 1240px) { .float-card--a { inset-inline-start: 8px; } .float-card--b { inset-inline-end: 8px; } }
@media (max-width: 640px) { .float-card { display: none; } }

/* Mockups collapse on small screens: hide sidebar, stack grids */
@media (max-width: 760px) {
  .app-body { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a-grid--2-1, .a-grid--1-1, .a-grid--1-2 { grid-template-columns: 1fr; }
  .app .hide-sm { display: none; }
  .a-table-wrap { overflow-x: auto; }
  .sched { grid-template-columns: 72px repeat(7, minmax(0, 1fr)); }
}

/* ---------- Motion ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(18,146,94,.45); } 50% { box-shadow: 0 0 0 5px rgba(18,146,94,0); } }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .reveal-d1 { transition-delay: .08s; } .js .reveal-d2 { transition-delay: .16s; } .js .reveal-d3 { transition-delay: .24s; }
  .live-dot { animation: pulse 2s infinite; }
  .js .chart .bar { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); transition: transform .7s var(--ease); }
  .js .is-in .chart .bar { transform: scaleY(1); }
  .js .chart .bar-h { transform-origin: left; transform: scaleX(0); }
  .js .is-in .chart .bar-h { transform: scaleX(1); }
  .js .chart .bar-hr { transform-box: fill-box; transform-origin: right; transform: scaleX(0); }
  .js .is-in .chart .bar-hr { transform: scaleX(1); }
  .js .chart .line { stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 1.4s var(--ease); }
  .js .is-in .chart .line { stroke-dashoffset: 0; }
}

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-6 { margin-top: 48px; }
.muted { color: var(--ink-3); }
.small { font-size: .88rem; }
.nowrap { white-space: nowrap; }
.max-640 { max-width: 640px; }

@media print {
  .site-header, .mobile-nav, .site-footer, .cta-band, .hero-visual { display: none !important; }
}

/* ---------- Review mode ----------
   Placeholders and "confirm" flags are hidden on the live site.
   Append ?review=1 to any URL to show them while content is being verified. */
[data-placeholder], .review-flag { display: none !important; }
.review-mode [data-placeholder] { display: grid !important; }
.review-mode .review-flag { display: inline-block !important; }
.review-mode body::before { content: "Review mode — placeholders and items to confirm are visible"; position: fixed; z-index: 300; bottom: 12px; left: 50%; transform: translateX(-50%); background: var(--warn); color: #fff; font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; box-shadow: var(--shadow-md); }

/* Mockups adapt to the width they're given (e.g. inside a split column), not just the viewport */
.app { container-type: inline-size; }
@container (max-width: 900px) {
  .app .hide-md { display: none; }
  .a-grid--1-2 { grid-template-columns: 1fr; }
}
@container (max-width: 760px) {
  .app .hide-sm { display: none; }
  .app-body:not(.keep-side) { grid-template-columns: 1fr; }
  .app-body:not(.keep-side) .app-side { display: none; }
  .a-grid--1-2 { grid-template-columns: 1fr; }
  .a-table th, .a-table td { padding: 6px 7px; }
}
@container (max-width: 560px) {
  .app-body.keep-side { grid-template-columns: 1fr; }
  .app-body.keep-side .app-side { display: none; }
}
@container (max-width: 440px) {
  .sched .s { font-size: 8px; }
  .sched { grid-template-columns: 64px repeat(7, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a-grid--2-1, .a-grid--1-1 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Arabic / RTL
   Layout uses logical properties throughout; these rules handle what can't flip on its own.
   ========================================================================== */
:root:lang(ar) {
  --font-sans: "IBM Plex Sans Arabic", "Inter", ui-sans-serif, system-ui, "Segoe UI", Tahoma, Arial, sans-serif;
  --font-display: "IBM Plex Sans Arabic", "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;
}
/* Arabic is a connected script: negative/positive tracking breaks letter joining */
:lang(ar) body, :lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) h4, :lang(ar) .eyebrow, :lang(ar) .btn,
:lang(ar) .trust-label, :lang(ar) .divider-label, :lang(ar) .site-footer h4, :lang(ar) .table th, :lang(ar) .fact strong,
:lang(ar) .pill b, :lang(ar) .placeholder-badge, :lang(ar) .story dt, :lang(ar) .badge, :lang(ar) .tab,
:lang(ar) .app *, :lang(ar) .faq-q button, :lang(ar) .review-flag { letter-spacing: 0 !important; }
:lang(ar) body { line-height: 1.75; }
:lang(ar) h1 { line-height: 1.25; }
:lang(ar) h2, :lang(ar) h3 { line-height: 1.35; }
:lang(ar) .hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); }
:lang(ar) .eyebrow, :lang(ar) .trust-label { text-transform: none; font-size: .85rem; }

/* Directional icons and motion */
[dir="rtl"] svg.i-arrow, [dir="rtl"] .link-arrow svg, [dir="rtl"] .pill svg { transform: scaleX(-1); }
[dir="rtl"] .btn:hover svg.i-arrow { transform: scaleX(-1) translateX(2px); }
[dir="rtl"] .link-arrow:hover svg { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .industry .use li::before { content: "←"; }
[dir="rtl"] .hero-visual .app { transform: perspective(2200px) rotateY(5deg) rotateX(2deg); transform-origin: right center; }
@media (max-width: 1080px) { [dir="rtl"] .hero-visual .app { transform: none; } }
[dir="rtl"] .field select { background-position: left 12px center; }
[dir="rtl"] .breadcrumb li + li::before { content: "\\"; }
/* Charts, codes, numbers, emails and phone numbers stay left-to-right */
.chart, .donut-wrap svg { direction: ltr; }
[dir="rtl"] .code, [dir="rtl"] .device, .ltr { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .device { justify-content: flex-end; }

/* Language switcher */
.lang-switch { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border-radius: 8px; color: var(--ink-2); font-weight: 500; font-size: .9rem; }
.lang-switch:hover { background: var(--surface-2); color: var(--ink); }
.lang-switch svg { width: 16px; height: 16px; opacity: .7; }
.lang-switch [lang="ar"] { font-family: "IBM Plex Sans Arabic", Tahoma, sans-serif; }
.m-lang { display: flex; justify-content: center; margin-top: 14px; }

/* ---------- Company picker (enquiry forms) ---------- */
.company-pick { border: 0; padding: 0; margin: 0 0 4px; min-width: 0; }
.company-pick legend { padding: 0; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .pick-grid { grid-template-columns: 1fr; } }
.pick { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid #d5dce8; border-radius: 10px; cursor: pointer; background: #fff; transition: border-color .15s, box-shadow .15s, background .15s; }
.pick:hover { border-color: #b9c3d6; }
.pick input { margin: 3px 0 0; accent-color: var(--blue-600); width: 16px; height: 16px; flex: none; }
.pick strong { display: block; color: var(--ink); font-size: .92rem; font-weight: 600; line-height: 1.3; }
.pick small { display: block; color: var(--ink-3); font-size: .78rem; margin-top: 2px; overflow-wrap: anywhere; }
.pick:has(input:checked) { border-color: var(--blue-600); background: var(--blue-50); box-shadow: 0 0 0 3px var(--blue-100); }
.pick:has(input:focus-visible) { outline: 2px solid var(--blue-600); outline-offset: 2px; }
.pick-alt { margin: 8px 0 0; }
.pick-alt a { font-weight: 600; }

/* ---------- Footer contact lines ---------- */
.contact-mini { display: block; margin-top: 6px; }
.contact-mini a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.contact-mini a:hover { color: var(--blue-600); }
.contact-mini svg { width: 15px; height: 15px; color: #1faa53; flex: none; }

/* ---------- Floating WhatsApp chooser ---------- */
.wa-fab { position: fixed; z-index: 90; inset-inline-end: 20px; bottom: 20px; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.wa-btn { width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: #1faa53; color: #fff; box-shadow: 0 10px 24px -8px rgba(18, 120, 60, .6), 0 2px 4px rgba(0,0,0,.08); transition: transform .18s var(--ease), background .18s; }
.wa-btn:hover { background: #179447; transform: translateY(-2px); }
.wa-btn svg { width: 28px; height: 28px; }
.wa-panel { width: min(320px, calc(100vw - 40px)); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 16px; }
.wa-title { margin: 0; font-weight: 700; color: var(--ink); }
.wa-sub { margin: 2px 0 12px; font-size: .86rem; color: var(--ink-3); }
.wa-option { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink); }
.wa-option + .wa-option { margin-top: 8px; }
.wa-option:hover { border-color: #9fdcb5; background: #f1fbf5; color: var(--ink); }
.wa-option strong { display: block; font-size: .93rem; }
.wa-option > span:last-child > span { display: block; font-size: .8rem; color: var(--ink-3); }
.wa-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #e7f7ee; color: #1faa53; flex: none; }
.wa-ic svg { width: 20px; height: 20px; }
@media (prefers-reduced-motion: no-preference) { .wa-panel:not([hidden]) { animation: fadeUp .2s var(--ease); } }
body.nav-open .wa-fab { display: none; }
@media print { .wa-fab { display: none; } }

/* ---------- App store buttons ---------- */
.store-row { display: flex; flex-wrap: wrap; gap: 10px; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px 0 12px; border-radius: 10px; background: var(--midnight); color: #fff; border: 1px solid rgba(255,255,255,.14); transition: background .18s, transform .18s var(--ease); }
.store-btn:hover { background: var(--navy-800); color: #fff; transform: translateY(-1px); }
.store-btn svg { width: 24px; height: 24px; flex: none; }
.store-btn > span { display: flex; flex-direction: column; line-height: 1.1; font-weight: 600; font-size: 1.02rem; letter-spacing: -.01em; }
.store-btn small { font-size: .62rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; opacity: .85; margin-bottom: 2px; }
:lang(ar) .store-btn small { text-transform: none; font-size: .7rem; letter-spacing: 0; }
.store-row--sm .store-btn { height: 40px; padding: 0 12px 0 10px; }
.store-row--sm .store-btn svg { width: 20px; height: 20px; }
.store-row--sm .store-btn > span { font-size: .88rem; }

/* ---------- Phone mockup (mobile app section) ---------- */
.phone { width: 260px; max-width: 100%; margin: 0 auto; border-radius: 38px; padding: 10px; background: var(--midnight); box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.08); }
.phone-screen { border-radius: 30px; overflow: hidden; background: #f7f9fc; font-size: 12px; color: var(--ink-2); min-height: 470px; position: relative; }
.phone-notch { height: 26px; display: flex; justify-content: center; align-items: center; background: var(--navy-900); }
.phone-notch i { width: 70px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.18); }
.phone-head { background: var(--navy-900); color: #fff; padding: 6px 16px 18px; }
.phone-head small { color: #93a1c2; display: block; font-size: 10.5px; }
.phone-head strong { font-size: 15px; font-weight: 650; }
.phone-punch { margin: -12px 14px 12px; background: #fff; border-radius: 16px; padding: 14px; text-align: center; box-shadow: var(--shadow-md); }
.phone-punch .t { font-size: 24px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.phone-punch .loc { font-size: 10.5px; color: var(--ink-4); display: flex; align-items: center; justify-content: center; gap: 4px; margin: 2px 0 10px; }
.phone-punch .loc svg { width: 11px; height: 11px; }
.phone-punch .go { display: block; border-radius: 12px; background: var(--blue-600); color: #fff; font-weight: 650; padding: 10px; font-size: 13px; }
.phone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 14px 12px; }
.phone-grid span { background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 600; font-size: 10.5px; color: var(--ink); text-align: center; }
.phone-grid svg { width: 18px; height: 18px; color: var(--blue-600); }
.phone-list { margin: 0 14px; background: #fff; border-radius: 12px; border: 1px solid var(--line-2); padding: 4px 10px; }
.phone-list div { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 7px 0; border-top: 1px solid var(--line-2); font-size: 10.5px; }
.phone-list div:first-child { border-top: 0; }
.phone-list b { color: var(--ink); font-weight: 600; }
.phone-tag { position: absolute; bottom: 8px; inset-inline-end: 10px; font-size: 9px; color: var(--ink-4); background: rgba(255,255,255,.9); border: 1px solid var(--line-2); padding: 1px 6px; border-radius: 4px; }

/* Client name shown when a logo image file isn't available */
.logo-word { font-family: var(--font-display); font-weight: 650; font-size: 1.02rem; letter-spacing: -.01em; color: var(--ink-4); white-space: nowrap; padding: 8px 2px; transition: color .2s; }
.logo-word:hover { color: var(--ink-2); }
:lang(ar) .logo-row .logo-word { font-family: "Inter Tight", "Inter", sans-serif; }
.logo-row:has(.logo-word) { gap: 10px 30px; }
