/* ==========================================================================
   Cereipo landing — styles
   tokens → base → layout → components → sections → utilities
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink-900: #0B1B33;
  --ink-800: #1A2B47;
  --ink-700: #2A3A55;
  --ink-500: #52627A;
  --ink-400: #7A889C;
  --ink-300: #A9B5C6;

  --bg: #FFFFFF;
  --bg-soft: #F5F8FA;
  --surface: #FFFFFF;
  --surface-2: #F9FBFC;
  --line: #E3E8EF;
  --line-strong: #D2D9E3;

  --accent-50: #E9F7F6;
  --accent-100: #CDEDEA;
  --accent-300: #7FD6CF;
  --accent-500: #12B5AE;
  --accent-600: #0B7F7A;
  --accent-700: #096B67;
  --accent-light: #5FE0D8;

  --brand-green: #23CE6B;
  --brand-blue: #72A1E5;
  --brand-purple: #9883E5;

  --ok-bg: #E2F7EA;   --ok-fg: #146C3B;
  --warn-bg: #FFF2D9; --warn-fg: #8A5300;
  --info-bg: #E8F0FC; --info-fg: #2A5AA0;
  --danger-bg: #FDECEC; --danger-fg: #B42318;
  --muted-bg: #EEF2F6; --muted-fg: #4A5A72;

  --chart-in: #12B5AE;
  --chart-out: #33476A;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font-sans);
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(11, 27, 51, .06);
  --shadow-md: 0 1px 2px rgba(11, 27, 51, .05), 0 8px 24px -8px rgba(11, 27, 51, .12);
  --shadow-lg: 0 2px 4px rgba(11, 27, 51, .04), 0 24px 48px -16px rgba(11, 27, 51, .18);
  --shadow-xl: 0 4px 8px rgba(11, 27, 51, .04), 0 40px 80px -24px rgba(11, 27, 51, .25);

  --container: 1200px;
  --gutter: 24px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 64px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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;
  background: var(--bg);
  color: var(--ink-900);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, h4 { margin: 0; color: var(--ink-900); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; }
table { border-collapse: collapse; }

:focus-visible {
  outline: 2px solid var(--accent-600);
  outline-offset: 3px;
  border-radius: 6px;
}
main:focus { outline: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 20px; height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visually-hidden {
  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; left: 16px; top: -100px; z-index: 100;
  background: var(--ink-900); color: #fff;
  padding: 10px 16px; border-radius: var(--r-md);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.text-accent { color: var(--accent-700); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { position: relative; padding-block: clamp(72px, 9vw, 120px); }
.section-alt { background: var(--bg-soft); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 56px); }
.section-head-center { margin-inline: auto; text-align: center; }
.section-head-center .section-lead { margin-inline: auto; }

.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-700);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 1.25rem + 2.1vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -.028em;
  text-wrap: balance;
}
.section-lead {
  margin-top: 18px;
  max-width: 62ch;
  font-size: clamp(1rem, .95rem + .3vw, 1.125rem);
  color: var(--ink-500);
}

/* ---------- Components ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-size: 15px; font-weight: 600; line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(2px); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--accent-600); color: #fff;
  box-shadow: 0 1px 2px rgba(11, 27, 51, .12), 0 8px 20px -8px rgba(11, 127, 122, .55);
}
.btn-primary:hover { background: var(--accent-700); transform: translateY(-1px); }
.btn-primary:active { transform: none; }
.btn-primary[disabled] { opacity: .7; cursor: progress; transform: none; }

.btn-secondary {
  background: var(--surface); color: var(--ink-900);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: var(--ink-300); background: var(--surface-2); }

.icon-badge {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; flex: none;
  border-radius: var(--r-md);
  background: var(--accent-50);
  border: 1px solid var(--accent-100);
  color: var(--accent-700);
}
.icon-badge .icon { width: 22px; height: 22px; }
.icon-badge-sm { width: 40px; height: 40px; }
.icon-badge-sm .icon { width: 20px; height: 20px; }

.tag {
  display: inline-flex; align-items: center;
  height: 22px; padding: 0 8px;
  border-radius: 999px;
  font-size: 11.5px; font-weight: 600; line-height: 1;
  white-space: nowrap;
}
.tag-ok { background: var(--ok-bg); color: var(--ok-fg); }
.tag-warn { background: var(--warn-bg); color: var(--warn-fg); }
.tag-info { background: var(--info-bg); color: var(--info-fg); }
.tag-danger { background: var(--danger-bg); color: var(--danger-fg); }
.tag-muted { background: var(--muted-bg); color: var(--muted-fg); }
.tag-module { background: var(--accent-50); color: var(--accent-700); }

.chip {
  display: inline-flex; align-items: center;
  height: 30px; padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12.5px; font-weight: 500; color: var(--ink-700);
  white-space: nowrap;
}
.chip.is-on { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }

.bar { height: 6px; border-radius: 99px; background: #E9EEF3; overflow: hidden; }
.bar i {
  display: block; height: 100%; width: var(--w, 50%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-600), var(--accent-500));
}
.bar-lg { height: 8px; }
.bar-warn i { background: linear-gradient(90deg, #C98A12, #E7A93A); }

.avatar {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-100), #DDE8F8);
  color: var(--ink-800);
  font-size: 11.5px; font-weight: 700;
}
.avatar-sm { width: 24px; height: 24px; font-size: 9.5px; }

.legend { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-500); font-weight: 500; }
.legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.legend i + * { margin-right: 4px; }
.lg-in { background: var(--chart-in); }
.lg-out { background: var(--chart-out); margin-left: 6px; }
.ch-in rect { fill: var(--chart-in); }
.ch-out rect { fill: var(--chart-out); }

/* ---------- Header ---------- */
.scroll-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 24px; pointer-events: none; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  margin-bottom: calc(var(--header-h) * -1);
  border-bottom: 1px solid transparent;
  transition: background-color .25s, border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(255, 255, 255, .92);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px -16px rgba(11, 27, 51, .4);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
}
.site-header.menu-open { background: #fff; }

.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-900); border-radius: 8px; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-word { width: 87px; height: 22px; flex: none; fill: currentColor; }
.brand-light { color: #fff; }

.nav { margin-left: auto; }
.nav-list { display: flex; gap: 4px; }
.nav-list a {
  display: inline-block; padding: 8px 12px; border-radius: var(--r-sm);
  font-size: 15px; font-weight: 500; color: var(--ink-700);
  transition: color .2s, background-color .2s;
}
.nav-list a:hover { color: var(--ink-900); background: rgba(11, 27, 51, .05); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-900);
  cursor: pointer;
}

.mobile-menu {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px -24px rgba(11, 27, 51, .3);
  padding-block: 8px 20px;
}
.mobile-menu ul { margin-bottom: 16px; }
.mobile-menu li a {
  display: block; padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 17px; font-weight: 500;
}

@media (max-width: 960px) {
  .nav { display: none; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: inline-grid; }
}
@media (max-width: 560px) {
  .header-cta { display: none; }
}
@media (min-width: 961px) {
  .mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(40px, 6vw, 80px));
  padding-bottom: clamp(72px, 8vw, 112px);
  overflow: hidden;
  background: linear-gradient(180deg, #F3F8F9 0%, #FFFFFF 100%);
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(55% 55% at 82% 18%, rgba(18, 181, 174, .14), transparent 70%),
    radial-gradient(40% 45% at 6% 90%, rgba(35, 206, 107, .08), transparent 70%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(11, 27, 51, .14) 1px, transparent 1.2px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .5) 50%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .5) 50%, transparent 92%);
  opacity: .55;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 5vw, 64px);
  align-items: center;
}
.hero-copy { min-width: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .85);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 13.5px; font-weight: 600; color: var(--ink-700);
  margin-bottom: 24px;
}
.eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-500);
  box-shadow: 0 0 0 4px rgba(18, 181, 174, .18);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.45rem, 1.35rem + 3.4vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.038em;
  text-wrap: balance;
}
.hero-title .text-accent {
  display: block;
  background: linear-gradient(92deg, var(--accent-700) 0%, #0C948E 60%, #10A49C 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero-lead {
  margin-top: 22px;
  max-width: 34rem;
  font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem);
  color: var(--ink-500);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-statement {
  display: flex; align-items: center; gap: 10px;
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 34rem;
  font-size: 15px; font-weight: 500; color: var(--ink-700);
}
.hero-statement .icon { color: var(--accent-600); }

.hero-visual { position: relative; min-width: 0; padding-block: 44px; }


/* Dashboard mockup */
.mock {
  position: relative;
  container-type: inline-size;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-700);
}
.mock .icon { width: 18px; height: 18px; }
.mock-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 48px; padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.mock-top-left, .mock-top-right { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mock-logo { width: 20px; height: 20px; flex: none; }
.mock-title { font-weight: 700; color: var(--ink-900); font-size: 13px; white-space: nowrap; }
.mock-sep { color: var(--ink-300); }
.mock-crumb { color: var(--ink-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-avatar {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink-900); color: #fff; font-size: 10px; font-weight: 700;
}

.mock-body { display: grid; grid-template-columns: 52px minmax(0, 1fr); }
.mock-rail {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 0;
  border-right: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-400);
}
.mock-rail span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; }
.mock-rail .is-active { background: var(--accent-50); color: var(--accent-700); }

.mock-main { padding: 14px; display: grid; gap: 12px; background: #FBFCFD; min-width: 0; }

.mock-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kpi {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  min-width: 0;
}
.kpi-label { font-size: 10.5px; color: var(--ink-500); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-value { font-family: var(--font-display); font-size: 21px; font-weight: 700; color: var(--ink-900); letter-spacing: -.02em; }
.kpi-note { font-size: 10px; color: var(--ink-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mock-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.panel {
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  min-width: 0;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 10px;
  font-weight: 700; color: var(--ink-900); font-size: 12px;
}
.panel-head > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel-link { font-weight: 500; color: var(--accent-700); font-size: 10.5px; white-space: nowrap; }
.panel .legend { font-size: 10px; gap: 4px; }

.progress-list { display: grid; gap: 10px; }
.pl-row { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 5px; font-size: 11.5px; }
.pl-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-row b { color: var(--ink-900); }

.fin-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.fin-totals span { display: block; font-size: 10.5px; color: var(--ink-500); }
.fin-totals b { font-family: var(--font-display); font-size: 15px; color: var(--ink-900); letter-spacing: -.01em; }
.mini-chart { width: 100%; height: 64px; }

.inv-list { display: grid; gap: 8px; }
.inv-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.inv-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.inv-name { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock .tag { height: 19px; font-size: 10px; padding: 0 7px; }

.kb { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.kb-col { display: flex; flex-direction: column; gap: 5px; padding: 6px; background: var(--bg-soft); border-radius: var(--r-sm); min-width: 0; }
.kb-title { display: flex; justify-content: space-between; font-size: 10px; font-weight: 600; color: var(--ink-500); }
.kb-title em { font-style: normal; color: var(--ink-400); }
.kb-card {
  padding: 5px 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 10.5px; font-weight: 500; color: var(--ink-700);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  line-height: 1.3;
}
.kb-active { border-left: 3px solid var(--accent-500); }
.kb-done { color: var(--ink-400); text-decoration: line-through; }

@container (max-width: 600px) {
  .mock-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 480px) {
  .mock { font-size: 13px; }
  .mock-body { grid-template-columns: minmax(0, 1fr); }
  .mock-rail, .mock-sep, .mock-crumb { display: none; }
  .mock-grid { grid-template-columns: minmax(0, 1fr); }
  .mp-inventory, .mp-kanban { display: none; }
  .kpi-label { font-size: 11.5px; }
  .kpi-note { font-size: 11px; }
  .panel-head { font-size: 13px; }
  .pl-row { font-size: 12.5px; }
  .mini-chart { height: 72px; }
}

/* Floating cards */
.float-card {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  font-size: 13px; line-height: 1.3;
  white-space: nowrap;
}
.float-card b { display: block; color: var(--ink-900); font-weight: 700; }
.float-card small { display: block; color: var(--ink-500); font-size: 12px; }
.fc-icon {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent-50); color: var(--accent-700);
}
.fc-icon .icon { width: 18px; height: 18px; }
.fc-time { top: 0; left: 6%; }
.fc-doc { bottom: 0; right: -12px; }
.fc-fleet { bottom: 0; left: 14%; }

@media (prefers-reduced-motion: no-preference) {
  .float-card { animation: float 7s ease-in-out infinite; }
  .fc-doc { animation-delay: -2.3s; }
  .fc-fleet { animation-delay: -4.6s; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 680px; }
  .float-card { display: none; }
  .hero-visual { padding-block: 0; }
}

/* ---------- Value proposition ---------- */
.value-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.value-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.value-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.value-card h3 { margin-top: 20px; font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.value-card p { margin-top: 10px; font-size: 15.5px; color: var(--ink-500); }

.local-band {
  display: flex; align-items: center; gap: 18px;
  margin-top: 24px;
  padding: 22px 28px;
  border-radius: var(--r-lg);
  background: linear-gradient(95deg, var(--accent-50) 0%, #EEF9F3 100%);
  border: 1px solid var(--accent-100);
}
.local-band p { font-size: 17px; color: var(--ink-700); }
.local-band strong { color: var(--ink-900); }
.local-icon {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: var(--accent-700);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 900px) {
  .value-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .value-card { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; padding: 22px; }
  .value-card .icon-badge { grid-row: span 2; }
  .value-card h3 { margin-top: 0; }
  .value-card p { margin-top: 6px; }
  .local-band { align-items: flex-start; padding: 20px; }
  .local-band p { font-size: 16px; }
}

/* ---------- Modules (bento) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "inv  inv  stor code"
    "inv  inv  time kan"
    "pay  fin  proj proj"
    "pay  fin  proj proj";
  gap: 20px;
}
.mod-storage { grid-area: stor; }
.mod-inventory { grid-area: inv; }
.mod-code { grid-area: code; }
.mod-time { grid-area: time; }
.mod-projects { grid-area: proj; }
.mod-kanban { grid-area: kan; }
.mod-payroll { grid-area: pay; }
.mod-finance { grid-area: fin; }

.mod {
  display: flex; flex-direction: column; gap: 12px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  min-width: 0;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.mod:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.mod-feature {
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(18, 181, 174, .09), transparent 70%),
    var(--surface);
}
.mod-head { display: flex; align-items: center; gap: 14px; }
.mod h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.mod-feature h3 { font-size: 20px; }
.mod p { font-size: 15px; color: var(--ink-500); }
.mod-feature > p { font-size: 15.5px; max-width: 52ch; }

.frag {
  margin-top: auto;
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 12.5px;
  color: var(--ink-700);
}
.frag .icon { width: 16px; height: 16px; color: var(--ink-400); }

.frag-files { display: grid; gap: 6px; }
.frag-files li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.frag-files span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.frag-table { display: flex; flex-direction: column; padding: 14px; background: var(--surface); }
.mod-feature .frag { margin-top: 8px; flex: 1; }
.ft-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-500); }
.ft-link { color: var(--accent-700); font-weight: 600; }
.ft-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ft-chips .chip { height: 26px; font-size: 12px; padding: 0 10px; }
.ft-row {
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) auto;
  align-items: center; gap: 12px;
  padding: 10px 2px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.ft-row > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ft-row > span:first-child { display: flex; align-items: center; gap: 8px; color: var(--ink-900); font-weight: 500; }
.ft-row > span:nth-child(2) { color: var(--ink-500); }
.ft-headrow { border-top: 0; padding-top: 0; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-500); }
.ft-headrow > span:first-child { color: var(--ink-500); font-weight: 600; }
.ft-headrow > span:last-child { justify-self: end; }

.frag-code { display: grid; gap: 10px; justify-items: start; }
.code-chip {
  display: inline-flex; gap: 2px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--accent-100);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 13.5px; color: var(--ink-400);
  letter-spacing: .02em;
}
.code-chip b { color: var(--accent-700); font-weight: 600; }
.code-legend { display: flex; flex-wrap: wrap; gap: 6px; }
.code-legend span { font-size: 11px; padding: 2px 8px; border-radius: 99px; background: var(--muted-bg); color: var(--muted-fg); font-weight: 500; }

.frag-time { display: flex; align-items: center; gap: 10px; }
.ft-meta { flex: 1; min-width: 0; }
.ft-meta b { display: block; color: var(--ink-900); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ft-meta small { color: var(--ink-500); font-size: 12px; }
.hours { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--accent-700); }

.frag-milestones { padding: 16px; background: var(--surface); }
.ms-top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-weight: 600; color: var(--ink-900); font-size: 13.5px; }
.ms-pct { color: var(--accent-700); font-weight: 600; white-space: nowrap; }
.ms-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; position: relative; }
.ms-list::before {
  content: ""; position: absolute; top: 11px; left: 12px; right: 12px; height: 2px;
  background: linear-gradient(90deg, var(--accent-500) 0 55%, var(--line) 55% 100%);
}
.ms-list li { position: relative; display: grid; gap: 2px; min-width: 0; }
.ms-dot {
  display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--line-strong);
  margin-bottom: 6px;
}
.ms-dot .icon { width: 13px; height: 13px; color: #fff; stroke-width: 2.5; }
.ms-list .is-done .ms-dot { background: var(--accent-600); border-color: var(--accent-600); }
.ms-list .is-current .ms-dot { border-color: var(--accent-500); box-shadow: 0 0 0 4px rgba(18, 181, 174, .18); }
.ms-list b { font-size: 12.5px; color: var(--ink-900); font-weight: 600; }
.ms-list small { font-size: 11.5px; color: var(--ink-500); }

.frag-kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fk-col { display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 8px; background: var(--muted-bg); min-height: 72px; }
.fk-col i { display: block; height: 16px; border-radius: 4px; background: var(--surface); border: 1px solid var(--line); }
.fk-col i.is-active { border-left: 3px solid var(--accent-500); }
.fk-col i.is-done { background: var(--ok-bg); border-color: #C4ECD3; }

.frag-list { display: grid; gap: 8px; }
.fl-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.fl-row:last-child { border-bottom: 0; padding-bottom: 0; }
.fl-muted { color: var(--ink-500); }
.fl-muted b { color: var(--ink-900); font-family: var(--font-display); font-size: 15px; }

.frag-budget { display: grid; gap: 10px; }
.fb-row span { display: block; font-size: 12px; margin-bottom: 4px; color: var(--ink-500); }

@media (max-width: 1100px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "inv  inv"
      "stor code"
      "time kan"
      "proj proj"
      "pay  fin";
  }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: none; gap: 14px; }
  .bento > .mod { grid-area: auto; }
  .mod { padding: 20px; }
  .mod-feature h3 { font-size: 18px; }
  .ft-row { grid-template-columns: minmax(0, 1fr) auto; }
  .ft-row > span:nth-child(2) { display: none; }
  .ms-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .ms-list::before { display: none; }
}

/* ---------- Workflow (interactive stepper) ---------- */
.flow-wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.flow-steps { position: relative; display: grid; gap: 6px; }
.flow-steps::before {
  content: ""; position: absolute;
  top: 34px; bottom: 34px; left: 37px; width: 2px;
  background: linear-gradient(180deg, var(--accent-500), var(--accent-300) 55%, var(--brand-green));
  opacity: .4;
}
.flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  background: transparent;
  text-align: left;
  color: var(--ink-900);
  cursor: pointer;
  transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.flow-step:hover { background: rgba(255, 255, 255, .7); border-color: var(--line); }
.flow-step[aria-selected="true"] {
  background: var(--surface);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.flow-node {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent-300);
  font-family: var(--font-display); font-weight: 800; font-size: 16px;
  color: var(--accent-700);
  box-shadow: 0 0 0 5px var(--bg);
  transition: background-color .2s, border-color .2s, color .2s;
}
.flow-step[aria-selected="true"] .flow-node {
  background: var(--accent-600); border-color: var(--accent-600); color: #fff;
  box-shadow: 0 0 0 5px var(--surface), 0 0 0 7px var(--accent-100);
}
.flow-text { display: grid; gap: 2px; min-width: 0; }
.flow-title { font-family: var(--font-display); font-size: 16.5px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.flow-desc { font-size: 14px; color: var(--ink-500); line-height: 1.5; }
.flow-step .tag { align-self: start; margin-top: 2px; }

.flow-stage {
  position: sticky; top: calc(var(--header-h) + 24px);
  padding: clamp(20px, 3vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.flow-stage::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 120px; pointer-events: none;
  background: radial-gradient(60% 100% at 100% 0%, rgba(18, 181, 174, .1), transparent 70%);
}
.stage-panel { position: relative; min-height: 380px; }
.stage-panel:focus-visible { outline-offset: 8px; }
.stage-panel:not([hidden]) { animation: stage-in .35s var(--ease); }
@keyframes stage-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.stage-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.stage-step { font-size: 13px; font-weight: 600; color: var(--ink-500); margin-right: 4px; }
.stage-sample { margin-left: auto; }
.stage-title { font-family: var(--font-display); font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.stage-desc { margin-top: 6px; color: var(--ink-500); font-size: 15px; }
.stage-body { display: grid; gap: 14px; margin-top: 20px; }
.stage-hint { font-size: 13.5px; color: var(--ink-500); }

.stage-card { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.sc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 14.5px; }
.sc-muted { font-size: 13px; color: var(--ink-500); font-variant-numeric: tabular-nums; }
.sc-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
.sc-fields dt { font-size: 12px; color: var(--ink-500); }
.sc-fields dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; color: var(--ink-900); }
.sc-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.sc-split b { display: block; font-family: var(--font-display); font-size: 18px; margin-top: 2px; }

.gantt {
  --label: 104px;
  position: relative;
  display: grid; gap: 10px;
  padding: 16px 16px 30px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.gantt-head, .gantt-row { display: grid; grid-template-columns: var(--label) minmax(0, 1fr); align-items: center; }
.gantt-head { grid-template-columns: var(--label) repeat(4, minmax(0, 1fr)); font-size: 11.5px; font-weight: 600; color: var(--ink-500); text-transform: uppercase; letter-spacing: .04em; }
.gantt-row > span { font-size: 13px; color: var(--ink-700); font-weight: 500; }
.gantt-track { position: relative; height: 22px; border-radius: 6px; background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), var(--line) calc(25% - 1px) 25%); }
.gantt-track i {
  position: absolute; top: 3px; bottom: 3px;
  left: var(--s); right: calc(100% - var(--e));
  border-radius: 5px;
  background: var(--muted-bg);
  border: 1px solid var(--line-strong);
}
.gantt-track i.is-done { background: var(--accent-600); border-color: var(--accent-600); }
.gantt-track i.is-current { background: linear-gradient(90deg, var(--accent-500) 0 19%, var(--accent-100) 19%); border-color: var(--accent-300); }
.gantt-today {
  position: absolute; top: 36px; bottom: 28px;
  left: calc(16px + var(--label) + (100% - 32px - var(--label)) * var(--x));
  width: 2px; background: #E3A13A; border-radius: 2px;
}
.gantt-today::before {
  content: "Hoy"; position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%);
  font-size: 10.5px; font-weight: 700; color: #9A6200;
}

.kanban-live { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kl-col {
  display: flex; flex-direction: column; gap: 8px;
  min-height: 220px;
  padding: 10px;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px dashed transparent;
  transition: background-color .2s, border-color .2s;
}
.kl-col.is-over { background: var(--accent-50); border-color: var(--accent-300); }
.kl-head { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; font-weight: 700; color: var(--ink-700); padding: 2px 4px; }
.kl-count { min-width: 22px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: 11px; color: var(--ink-500); }
.kl-list { display: grid; gap: 8px; align-content: start; flex: 1; }
.kl-card {
  display: grid; gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  text-align: left;
  color: var(--ink-900);
  font-size: 13px; font-weight: 600; line-height: 1.35;
  box-shadow: var(--shadow-sm);
  cursor: grab;
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s, opacity .2s;
}
.kl-card:hover { border-color: var(--accent-300); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.kl-card:active { cursor: grabbing; }
.kl-card.is-dragging { opacity: .45; }
.kl-card.is-moved { animation: kl-pop .45s var(--ease); }
@keyframes kl-pop { 0% { transform: scale(.96); box-shadow: 0 0 0 3px var(--accent-100); } 100% { transform: none; } }
.kl-meta { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; font-weight: 500; color: var(--ink-500); }
.kl-col[data-col="En curso"] .kl-card { border-left: 3px solid var(--accent-500); }
.kl-col[data-col="Listo"] .kl-title { color: var(--ink-500); text-decoration: line-through; text-decoration-color: var(--ink-300); }

.res-list { display: grid; gap: 8px; }
.res-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.res-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--accent-50); color: var(--accent-700); }
.res-icon .icon { width: 18px; height: 18px; }
.res-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; }
.res-name small { display: block; font-size: 12.5px; font-weight: 400; color: var(--ink-500); }

.table-compact { min-width: 560px; }
.table-compact th, .table-compact td { padding: 10px 12px; }

.stage-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stage-metrics .bar { margin-top: 8px; }

.stage-nav {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--line);
}
.stage-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-900);
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.stage-btn:hover:not([disabled]) { border-color: var(--ink-300); background: var(--surface-2); }
.stage-btn[disabled] { opacity: .45; cursor: default; }
.stage-btn .icon { width: 16px; height: 16px; }
.icon-flip { transform: scaleX(-1); }
.stage-dots { display: flex; gap: 6px; }
.stage-dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--line-strong); transition: width .25s var(--ease), background-color .25s; }
.stage-dots i.is-on { width: 22px; background: var(--accent-500); }

@media (max-width: 1023px) {
  .flow-wrap { grid-template-columns: minmax(0, 1fr); }
  .flow-steps {
    display: flex; gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 8px;
    scrollbar-width: none;
  }
  .flow-steps::-webkit-scrollbar { display: none; }
  .flow-steps::before { display: none; }
  .flow-step {
    flex: none;
    width: auto;
    grid-template-columns: 30px auto;
    gap: 10px;
    padding: 8px 14px 8px 8px;
    border-color: var(--line);
    background: var(--surface);
    border-radius: 999px;
    scroll-snap-align: start;
  }
  .flow-node { width: 30px; height: 30px; font-size: 13px; box-shadow: none; }
  .flow-step[aria-selected="true"] .flow-node { box-shadow: none; }
  .flow-step[aria-selected="true"] { border-color: var(--accent-600); box-shadow: 0 0 0 1px var(--accent-600); }
  .flow-title { font-size: 14px; white-space: nowrap; }
  .flow-desc, .flow-step .tag { display: none; }
  .flow-stage { position: static; }
  .stage-panel { min-height: 0; }
}
@media (max-width: 640px) {
  .sc-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gantt { --label: 86px; padding: 14px 12px 30px; }
  .gantt-today { left: calc(12px + var(--label) + (100% - 24px - var(--label)) * var(--x)); }
  .gantt-row > span { font-size: 12px; }
  .kanban-live { grid-template-columns: minmax(0, 1fr); }
  .kl-col { min-height: 0; }
  .stage-metrics { grid-template-columns: minmax(0, 1fr); }
  .stage-sample { margin-left: 0; }
}

/* ---------- Product showcase ---------- */
.section-showcase {
  background:
    radial-gradient(50% 40% at 50% 62%, rgba(18, 181, 174, .12), transparent 70%),
    linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
}

.tabs {
  display: flex; justify-content: center; gap: 4px;
  width: max-content; max-width: 100%;
  margin: 0 auto 28px;
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.tab {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 16px;
  border: 0; border-radius: 10px;
  background: transparent;
  color: var(--ink-500);
  font-size: 14.5px; font-weight: 600;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.tab .icon { width: 18px; height: 18px; }
.tab:hover { color: var(--ink-900); background: var(--bg-soft); }
.tab[aria-selected="true"] { background: var(--ink-900); color: #fff; }
.tab:focus-visible { outline-offset: 2px; }

.app {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  min-height: 600px;
}
.app-side {
  padding: 22px 16px;
  background: var(--ink-900);
  color: #AFC0D6;
  font-size: 14px;
}
.app-brand { display: flex; align-items: center; gap: 10px; color: #fff; padding: 0 6px; }
.app-brand .brand-mark { width: 26px; height: 26px; }
.app-brand .brand-word { width: 75px; height: 19px; }
.app-company {
  display: block; margin: 20px 0 14px; padding: 9px 12px;
  border-radius: 10px; background: rgba(255, 255, 255, .06);
  color: #DCE6F2; font-size: 13px; font-weight: 500;
}
.app-nav { display: grid; gap: 2px; }
.app-nav li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px;
  font-weight: 500;
}
.app-nav .icon { width: 18px; height: 18px; color: #7F93AE; }
.app-nav li.is-active { background: rgba(18, 181, 174, .16); color: #fff; box-shadow: inset 2px 0 0 var(--accent-500); }
.app-nav li.is-active .icon { color: var(--accent-light); }

.app-main { padding: 26px 28px; background: #FBFCFD; min-width: 0; }
.app-panel:focus-visible { outline-offset: 6px; }
.app-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.app-title { font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -.015em; }
.app-sub { font-size: 13.5px; color: var(--ink-500); margin-top: 2px; }
.app-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.fake-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 12px;
  border-radius: 10px;
  background: var(--accent-600); color: #fff;
  font-size: 13px; font-weight: 600;
  white-space: nowrap;
}
.fake-btn .icon { width: 16px; height: 16px; }
.fake-btn-ghost { background: var(--surface); color: var(--ink-700); border: 1px solid var(--line); }

.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  min-width: 0;
}
.stat span { display: block; font-size: 12.5px; color: var(--ink-500); font-weight: 500; }
.stat b { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin: 2px 0; }
.stat small { display: block; font-size: 12px; color: var(--ink-500); }

.app-cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; }
.app-cols-wide { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.card {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  min-width: 0;
}
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.card-head h4 { font-size: 14.5px; font-weight: 700; }
.card-link { font-size: 12.5px; color: var(--accent-700); font-weight: 500; }

.activity li, .deadlines li {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-700);
}
.activity li:first-child, .deadlines li:first-child { border-top: 0; }
.activity b, .deadlines b { color: var(--ink-900); font-weight: 600; }
.activity small, .deadlines small { display: block; font-size: 12px; color: var(--ink-500); margin-top: 1px; }
.act-icon {
  display: grid; place-items: center; flex: none;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent-50); color: var(--accent-700);
}
.act-icon .icon { width: 17px; height: 17px; }
.deadlines li > span:nth-child(2) { flex: 1; min-width: 0; }
.dl-date {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 46px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface-2);
  font-size: 11px; color: var(--ink-500); line-height: 1.1; text-transform: uppercase;
}
.dl-date b { font-family: var(--font-display); font-size: 17px; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 14px; }
.toolbar-end { margin-left: auto; }

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.table { width: 100%; min-width: 640px; font-size: 13.5px; }
.table th {
  text-align: left;
  padding: 11px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-500);
  white-space: nowrap;
}
.table td { padding: 12px 16px; border-top: 1px solid var(--line); color: var(--ink-700); white-space: nowrap; }
.table tbody tr:first-child td { border-top: 0; }
.table tbody tr:hover td { background: #FAFCFD; }
.table td:nth-child(2) { color: var(--ink-900); font-weight: 500; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .mono { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-500); }
.who { display: inline-flex; align-items: center; gap: 8px; }

.proj-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.proj-card { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.pc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 14px; }
.pc-top b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--ink-500); }

.chart { width: 100%; height: auto; margin-top: 8px; }
.chart-grid line { stroke: #EDF1F5; stroke-width: 1; }
.chart-axis text { font-size: 10px; fill: var(--ink-500); font-family: var(--font-sans); }
.chart-x text { text-anchor: middle; }

.budget { display: grid; gap: 14px; margin-top: 6px; }
.budget .pl-row { font-size: 13px; }
.budget .pl-row span:last-child { color: var(--ink-500); font-variant-numeric: tabular-nums; }

@media (max-width: 1023px) {
  .app { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .app-side { display: none; }
}
@media (max-width: 760px) {
  .tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .tab { justify-content: center; padding: 0 10px; }
  .app { border-radius: 20px; }
  .app-main { padding: 18px 16px; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-row-3 { grid-template-columns: minmax(0, 1fr); }
  .stat-row-3 .stat { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; column-gap: 12px; }
  .stat-row-3 .stat small { width: 100%; }
  .app-cols, .app-cols-wide { grid-template-columns: minmax(0, 1fr); }
  .proj-cards { grid-template-columns: minmax(0, 1fr); }
  .toolbar-end { margin-left: 0; }
}

/* Showcase interactions */
.chip-group { display: flex; flex-wrap: wrap; gap: 6px; }
button.chip { cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
button.chip:hover:not(.is-on) { border-color: var(--ink-300); color: var(--ink-900); }

.search-field {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; width: 260px; padding: 0 12px;
  border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-500);
  transition: border-color .2s, box-shadow .2s;
}
.search-field .icon { width: 16px; height: 16px; }
.search-field input {
  flex: 1; min-width: 0; height: 100%;
  border: 0; outline: none; background: transparent;
  font: inherit; font-size: 13px; color: var(--ink-900);
}
.search-field input::placeholder { color: var(--ink-500); }
.search-field:focus-within { border-color: var(--accent-600); box-shadow: 0 0 0 3px rgba(11, 127, 122, .16); }
.filter-count { font-size: 12.5px; color: var(--ink-500); }
.empty-row td { text-align: center; color: var(--ink-500); padding: 28px 16px !important; white-space: normal; }

.series-toggles { display: flex; gap: 6px; }
.series-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 10px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12px; font-weight: 600; color: var(--ink-700);
  cursor: pointer;
  transition: opacity .2s, border-color .2s;
}
.series-btn i { width: 8px; height: 8px; border-radius: 2px; }
.series-btn[aria-pressed="false"] { opacity: .5; text-decoration: line-through; }
.series-btn:hover { border-color: var(--ink-300); }
.chart-readout { font-size: 13px; color: var(--ink-500); min-height: 1.5em; }
.chart-readout b { color: var(--ink-900); }
.chart { cursor: crosshair; border-radius: 8px; }
.chart rect { transition: opacity .2s; }
.chart.hide-in .ch-in, .chart.hide-out .ch-out { display: none; }
.chart.has-active rect:not(.is-active) { opacity: .35; }

.mod-link {
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start;
  font-size: 14px; font-weight: 600; color: var(--accent-700);
  border-radius: 6px;
}
.mod-link .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.mod-link:hover { color: var(--ink-900); }
.mod-link:hover .icon { transform: translateX(3px); }

/* Hero pointer tilt (enabled from JS for fine pointers without reduced motion) */
.hero-visual.can-tilt .mock {
  transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .4s var(--ease);
  will-change: transform;
}
.hero-visual.can-tilt .float-card { translate: var(--fx, 0) var(--fy, 0); transition: translate .4s var(--ease); }

@media (max-width: 760px) {
  .search-field { width: 100%; }
  .filter-count { width: 100%; }
}

/* ---------- Benefits ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.benefits-grid .section-head { margin-bottom: 28px; }
.benefits li {
  display: flex; gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.benefits li:last-child { border-bottom: 1px solid var(--line); }
.benefits h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -.01em; line-height: 1.35; }
.benefits p { margin-top: 4px; font-size: 15px; color: var(--ink-500); }

.hub { position: relative; width: 100%; max-width: 460px; aspect-ratio: 1; margin-inline: auto; }
.hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--accent-500); stroke-width: 1.5; }
.hub-lines path { opacity: .45; stroke-dasharray: 3 6; }
.hub-ring { stroke: var(--line-strong); stroke-dasharray: 2 6; }
.hub-ring-2 { stroke: var(--accent-100); stroke-dasharray: none; fill: rgba(18, 181, 174, .04); }
.hub-dot { fill: var(--accent-500); stroke: none; }
.hub-center {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  width: 26%; aspect-ratio: 1;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg), 0 0 0 10px rgba(18, 181, 174, .06);
}
.hub-center svg { width: 56%; height: 56%; }
.hub-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  font-size: 13.5px; font-weight: 600; color: var(--ink-900);
  white-space: nowrap;
}
.hub-node .icon { width: 18px; height: 18px; color: var(--accent-700); }
.hn-1 { left: 50%; top: 12.5%; }
.hn-2 { left: 85.75%; top: 38.5%; }
.hn-3 { left: 72%; top: 80.25%; }
.hn-4 { left: 28%; top: 80.25%; }
.hn-5 { left: 14.25%; top: 38.5%; }

@media (max-width: 1023px) {
  .benefits-grid { grid-template-columns: minmax(0, 1fr); }
  .hub { max-width: 420px; }
}
@media (max-width: 520px) {
  .hub-node { padding: 8px; font-size: 0; gap: 0; }
}

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.faq-grid .section-lead { margin-bottom: 24px; font-size: 16px; }

.faq {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 4px 28px;
}
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0;
  list-style: none;
  cursor: pointer;
  font-size: 17px; font-weight: 600; color: var(--ink-900);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-700); }
.faq-item summary .icon {
  width: 30px; height: 30px; padding: 6px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--ink-700);
  transition: transform .25s var(--ease), background-color .2s;
}
.faq-item[open] summary .icon { transform: rotate(180deg); background: var(--accent-50); color: var(--accent-700); }
.faq-body { padding: 0 44px 22px 0; color: var(--ink-500); font-size: 15.5px; }
.faq-body ul { margin-top: 10px; display: grid; gap: 6px; }
.faq-body li { position: relative; padding-left: 20px; }
.faq-body li::before {
  content: ""; position: absolute; left: 4px; top: .65em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-500);
}

@media (max-width: 900px) {
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-grid .section-head { position: static; }
  .faq { padding: 4px 20px; }
  .faq-item summary { font-size: 16px; }
  .faq-body { padding-right: 0; }
}

/* ---------- Final CTA ---------- */
.cta-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding: clamp(28px, 6vw, 72px);
  border-radius: var(--r-xl);
  background: var(--ink-900);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.cta-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 70% at 0% 0%, rgba(18, 181, 174, .35), transparent 70%),
    radial-gradient(40% 60% at 100% 100%, rgba(35, 206, 107, .18), transparent 70%);
}
.cta-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(70% 80% at 20% 30%, #000, transparent 80%);
  mask-image: radial-gradient(70% 80% at 20% 30%, #000, transparent 80%);
}
.kicker-light { color: var(--accent-light); }
.cta-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -.03em;
  color: #fff;
  text-wrap: balance;
}
.cta-lead { margin-top: 18px; font-size: 17.5px; color: #C5D2E3; max-width: 34rem; }
.cta-points { margin-top: 28px; display: grid; gap: 12px; }
.cta-points li { display: flex; align-items: center; gap: 12px; color: #DCE6F2; font-size: 15.5px; }
.cta-points .icon {
  width: 24px; height: 24px; padding: 4px;
  border-radius: 50%;
  background: rgba(95, 224, 216, .14);
  color: var(--accent-light);
  stroke-width: 2.5;
}
.section-cta :focus-visible { outline-color: var(--accent-light); }
.section-cta .demo-form :focus-visible { outline-color: var(--accent-600); }

.demo-form {
  padding: clamp(22px, 3vw, 32px);
  background: #fff;
  color: var(--ink-900);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45);
}
.form-title { font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -.015em; }
.form-hint { font-size: 13.5px; color: var(--ink-500); margin: 4px 0 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--ink-800); }
.req { color: var(--danger-fg); }
.optional { color: var(--ink-500); font-weight: 400; }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-900);
  font: inherit; font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.field input { height: 46px; }
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-400); }
.field input:hover, .field textarea:hover { border-color: var(--ink-300); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent-600);
  box-shadow: 0 0 0 3px rgba(11, 127, 122, .18);
}
.field [aria-invalid="true"] { border-color: var(--danger-fg); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, .15); }
.field-error { margin-top: 6px; font-size: 13px; color: var(--danger-fg); font-weight: 500; }

.demo-form .btn { margin-top: 4px; }
.form-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
}
.form-status.is-info { background: var(--muted-bg); color: var(--ink-700); }
.form-status.is-success { background: var(--ok-bg); color: var(--ok-fg); }
.form-status.is-error { background: var(--danger-bg); color: var(--danger-fg); }

@media (max-width: 900px) {
  .cta-panel { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .section-cta .container { padding-inline: 12px; }
  .cta-panel { border-radius: 24px; padding: 32px 18px 18px; }
  .cta-copy { padding-inline: 6px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-900);
  color: #B9C6D8;
  padding: 64px 0 28px;
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
}
.footer-brand p { margin-top: 16px; max-width: 34ch; }
.footer-title {
  font-family: var(--font-sans);
  font-size: 12.5px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: #8FA1BA;
  margin-bottom: 14px;
}
.footer-nav ul { display: grid; gap: 10px; }
.footer-nav a { color: #DCE6F2; transition: color .2s; border-radius: 4px; }
.footer-nav a:hover { color: #fff; }
.footer-nav a.is-placeholder { color: #9FB0C6; cursor: default; display: inline-flex; align-items: center; gap: 8px; }
.soon {
  font-size: 11px; font-weight: 500;
  padding: 2px 7px; border-radius: 6px;
  background: rgba(255, 255, 255, .08);
  color: #9FB0C6;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .09);
  font-size: 13.5px; color: #8FA1BA;
}
.back-top { color: #DCE6F2; }
.back-top:hover { color: #fff; }
.site-footer :focus-visible { outline-color: var(--accent-light); }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
