/* =============================================================================
   InvoiceVelo — marketing site
   Same visual language as the app: white surfaces, near-black ink, 1px
   borders, soft gray fills, solid colour tiles and square status dots.
   ========================================================================== */

:root {
  --primary: #3358ea;
  --primary-600: #2747c9;
  --primary-soft: #eef2fe;
  --ink: #111111;
  --ink-2: #2a2a2a;
  --text: #111111;
  --text-2: #5c5c5c;
  --text-3: #9a9a9a;
  --border: #e6e6e6;
  --border-2: #d9d9d9;
  --muted: #f0f0f0;
  --muted-2: #e4e4e4;
  --hover: #f6f6f6;
  --surface: #ffffff;
  --page: #ffffff;
  --success: #2f9e5b;
  --success-soft: #eaf6ec;
  --error: #e0485f;
  --error-soft: #fcebee;
  --warning: #d48d45;
  --warning-soft: #fbf1e6;
  --tile-blue: #3358ea;
  --tile-green: #7bc47f;
  --tile-orange: #d48d45;
  --tile-dark: #474643;
  --tile-lime: #8acb56;
  --tile-purple: #5a4fe3;
  --dot: #4f46e5;
  --nav-dot: #7bc47f;

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 28px;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 72px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --font: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

/* ----------------------------------------------------------------- reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open {
  overflow: hidden;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote,
dl,
dd {
  margin: 0;
}
ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection {
  background: var(--primary);
  color: #fff;
}
.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;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 12px;
}

/* ----------------------------------------------------------------- icons */
.ms {
  font-family: "Material Symbols Rounded";
  font-weight: 400;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  flex: none;
  user-select: none;
  width: 1em;
  overflow: hidden;
}
.ms.fill {
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

/* ------------------------------------------------------------ typography */
.display {
  font-size: clamp(44px, 7.6vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.048em;
  font-weight: 500;
}
.h1 {
  font-size: clamp(40px, 6.2vw, 84px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 500;
}
.h2 {
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 600;
}
.h4 {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 600;
}
.lead {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 640px;
}
.muted {
  color: var(--text-2);
}
.small {
  font-size: 14px;
}
.tiny {
  font-size: 12.5px;
}
.accent {
  color: var(--primary);
}
.nowrap {
  white-space: nowrap;
}
.num {
  font-variant-numeric: tabular-nums;
}
.text-success {
  color: var(--success);
}
.text-error {
  color: var(--error);
}
.text-warning {
  color: var(--warning);
}

/* Eyebrow / section label with the app's square dot. */
.eyebrow {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
  padding: 7px 12px 7px 10px;
  background: var(--muted);
  border-radius: 10px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--dot);
  flex: none;
}
.eyebrow.green::before {
  background: var(--nav-dot);
}
.eyebrow.orange::before {
  background: var(--tile-orange);
}
.eyebrow.red::before {
  background: var(--error);
}
.eyebrow.on-dark {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ---------------------------------------------------------------- layout */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: clamp(72px, 10vw, 136px);
  position: relative;
}
.section.tight {
  padding-block: clamp(48px, 7vw, 88px);
}
.section.alt {
  background: #fafafa;
  border-block: 1px solid var(--border);
}
.section-head {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(36px, 5vw, 64px);
  max-width: 760px;
}
.section-head.center {
  text-align: center;
  justify-items: center;
  margin-inline: auto;
}
.section-head.center .lead {
  margin-inline: auto;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.split.wide-left {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}
.split.wide-right {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}
.split.wide-right.reverse {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}
.split.reverse > :first-child {
  order: 2;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.stack {
  display: grid;
  gap: 16px;
}
.stack-lg {
  display: grid;
  gap: 28px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.row.wrap {
  flex-wrap: wrap;
}
.row.between {
  justify-content: space-between;
}

/* --------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  --btn-bd: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1.5px solid var(--btn-bd);
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
    border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn::after {
  /* light sweep on hover */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.btn:hover::after {
  transform: translateX(120%);
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0) scale(0.97);
}
.btn .ms {
  font-size: 20px;
  transition: transform 0.35s var(--spring);
}
.btn:hover .ms.arrow {
  transform: translateX(4px);
}
.btn-ink:hover {
  --btn-bg: #000;
}
.btn-primary {
  --btn-bg: var(--primary);
  --btn-bd: var(--primary);
}
.btn-primary:hover {
  --btn-bg: var(--primary-600);
  --btn-bd: var(--primary-600);
}
.btn-outline {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
  --btn-bd: var(--ink);
}
.btn-outline::after {
  background: linear-gradient(110deg, transparent 30%, rgba(17, 17, 17, 0.06) 50%, transparent 70%);
}
.btn-outline:hover {
  --btn-bg: var(--hover);
}
.btn-light {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
  --btn-bd: #fff;
}
.btn-light::after {
  background: linear-gradient(110deg, transparent 30%, rgba(51, 88, 234, 0.12) 50%, transparent 70%);
}
.btn-ghost-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, 0.35);
}
.btn-ghost-light:hover {
  --btn-bd: #fff;
}
.btn-sm {
  min-height: 42px;
  padding: 0 16px;
  font-size: 15px;
  border-radius: 12px;
}
.btn-lg {
  min-height: 60px;
  padding: 0 28px;
  font-size: 17.5px;
  border-radius: 16px;
}
.btn-block {
  width: 100%;
}
.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--primary);
}
.link .ms {
  font-size: 18px;
  transition: transform 0.3s var(--spring);
}
.link:hover .ms {
  transform: translateX(4px);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14.5px;
  color: var(--text-2);
}
.trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.trust .ms {
  font-size: 18px;
  color: var(--success);
}

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--border);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}
.brand img {
  height: 30px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: auto;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text);
  transition: background-color 0.2s var(--ease);
}
.nav-link:hover,
.nav-link[aria-expanded="true"] {
  background: var(--muted);
}
.nav-link.active {
  background: var(--ink);
  color: #fff;
}
.nav-link .chev {
  font-size: 20px;
  transition: transform 0.3s var(--ease);
}
.nav-link[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Mega menu */
.has-mega {
  position: static;
}
.mega {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--header-h) - 1px);
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.28s var(--ease), transform 0.35s var(--ease), visibility 0s linear 0.35s;
}
.mega.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.28s var(--ease), transform 0.35s var(--ease), visibility 0s;
}
.mega-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) 300px;
  gap: 28px;
  padding-block: 28px 32px;
}
.mega-group h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 10px;
  padding-left: 10px;
}
.mega-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  transition: background-color 0.2s var(--ease), transform 0.25s var(--ease);
  opacity: 0;
  transform: translateY(6px);
}
.mega.open .mega-item {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s var(--ease) calc(var(--i, 0) * 30ms), transform 0.45s var(--ease) calc(var(--i, 0) * 30ms),
    background-color 0.2s var(--ease);
}
.mega-item:hover {
  background: var(--hover);
}
.mega-item:hover .mi-icon {
  background: var(--ink);
  color: #fff;
  transform: rotate(-6deg) scale(1.06);
}
.mi-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--muted);
  flex: none;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.35s var(--spring);
}
.mi-icon .ms {
  font-size: 21px;
}
.mi-text strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}
.mi-text span {
  display: block;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.4;
  margin-top: 2px;
}
.mega-feature {
  border-radius: var(--r-lg);
  background: var(--tile-blue);
  color: #fff;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.mega-feature p {
  font-size: 14.5px;
  opacity: 0.9;
  line-height: 1.45;
}
.mega-feature .mf-amount {
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.mega-feature svg {
  margin-top: auto;
}
.mega-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding-left: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--primary);
}

/* Hamburger: two bars that turn into an X */
.burger {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--border);
  position: relative;
  flex: none;
  transition: background-color 0.2s var(--ease);
}
.burger:hover {
  background: var(--hover);
}
.burger span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.burger span:nth-child(1) {
  top: 18px;
}
.burger span:nth-child(2) {
  top: 26px;
}
.burger[aria-expanded="true"] span:nth-child(1) {
  top: 22px;
  transform: rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  top: 22px;
  transform: rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: #fff;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease), visibility 0s linear 0.4s;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease), visibility 0s;
}
.mm-scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px var(--gutter) 24px;
}
.mm-link,
.mm-acc > button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--border);
  text-align: left;
  opacity: 0;
  transform: translateY(10px);
}
.mobile-menu.open .mm-link,
.mobile-menu.open .mm-acc > button {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s var(--ease) calc(var(--i, 0) * 50ms + 80ms),
    transform 0.5s var(--ease) calc(var(--i, 0) * 50ms + 80ms);
}
.mm-link .ms,
.mm-acc > button .ms {
  font-size: 24px;
  transition: transform 0.35s var(--ease);
}
.mm-acc > button[aria-expanded="true"] .ms {
  transform: rotate(180deg);
}
.mm-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}
.mm-panel.open {
  grid-template-rows: 1fr;
}
.mm-panel > div {
  overflow: hidden;
}
.mm-group {
  padding: 14px 0 4px;
}
.mm-group h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  font-weight: 600;
  margin-bottom: 4px;
}
.mm-sub {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 17px;
  font-weight: 500;
}
.mm-sub .mi-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.mm-sub .mi-icon .ms {
  font-size: 19px;
}
.mm-sub.active {
  color: var(--primary);
}
.mm-foot {
  padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: #fff;
}

/* ------------------------------------------------------------ breadcrumbs */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 22px;
}
.crumbs a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.crumbs .ms {
  font-size: 16px;
  color: var(--text-3);
}

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  padding-block: clamp(48px, 8vw, 96px) clamp(56px, 8vw, 104px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.hero-copy {
  display: grid;
  gap: 24px;
  align-content: start;
}
.hero-copy .lead {
  max-width: 560px;
}
.hero.center .hero-copy {
  justify-items: center;
  text-align: center;
  max-width: 920px;
  margin-inline: auto;
}
.hero.center .lead {
  margin-inline: auto;
}
.hero.center .cta-row,
.hero.center .trust {
  justify-content: center;
}
.hero-visual {
  position: relative;
  min-height: 520px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  opacity: 0.55;
}
.word-swap {
  display: inline-grid;
  vertical-align: bottom;
}
.word-swap > span {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(40%);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
  color: var(--primary);
}
.word-swap > span.on {
  opacity: 1;
  transform: none;
}
.word-swap > span.off {
  opacity: 0;
  transform: translateY(-40%);
}

/* ----------------------------------------------------------------- cards */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(22px, 2.6vw, 32px);
  position: relative;
  transition: border-color 0.3s var(--ease), transform 0.4s var(--ease), background-color 0.3s var(--ease);
}
a.card:hover,
.card.hoverable:hover {
  border-color: var(--ink);
  transform: translateY(-4px);
}
.card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--muted);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.4s var(--spring);
}
.card .card-icon .ms {
  font-size: 24px;
}
.card:hover .card-icon {
  background: var(--ink);
  color: #fff;
  transform: rotate(-8deg) scale(1.05);
}
.card h3 {
  margin-bottom: 8px;
}
.card p {
  color: var(--text-2);
  font-size: 16px;
}
.card .link {
  margin-top: 16px;
}
.tile {
  border-radius: var(--r-xl);
  padding: clamp(22px, 2.6vw, 30px);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.tile.blue {
  background: var(--tile-blue);
}
.tile.green {
  background: var(--tile-green);
}
.tile.orange {
  background: var(--tile-orange);
}
.tile.dark {
  background: var(--tile-dark);
}
.tile.ink {
  background: var(--ink);
}
.tile.purple {
  background: var(--tile-purple);
}
.tile.lime {
  background: var(--tile-lime);
}

/* Feature list */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #fff;
}
.feature {
  padding: clamp(22px, 2.6vw, 32px);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s var(--ease);
}
.feature:hover {
  background: var(--hover);
}
.feature .f-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 16px;
  transition: transform 0.4s var(--spring);
}
.feature:hover .f-icon {
  transform: translateY(-3px) rotate(-6deg);
}
.feature h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.feature p {
  font-size: 15.5px;
  color: var(--text-2);
  line-height: 1.55;
}
.features > .feature:nth-child(3n) {
  border-right: 0;
}

/* Check list */
.checks {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}
.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 16.5px;
}
.checks li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 7px;
  background: var(--success-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f9e5b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}
.checks.x li::before {
  background: var(--error-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e0485f' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}

/* Steps (how it works) */
.steps {
  display: grid;
  gap: 0;
  counter-reset: step;
  margin-top: 8px;
}
.step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  position: relative;
  padding-bottom: 22px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 600;
  background: var(--muted);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
.step::after {
  content: "";
  position: absolute;
  left: 19.5px;
  top: 46px;
  bottom: 4px;
  width: 1px;
  background: var(--border);
}
.step:last-child::after {
  display: none;
}
.step.is-in::before {
  background: var(--ink);
  color: #fff;
}
.step h4 {
  font-size: 17.5px;
  font-weight: 600;
  margin-top: 8px;
}
.step p {
  color: var(--text-2);
  font-size: 15.5px;
}

/* ----------------------------------------------------------- impact stats */
.impact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.stat {
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(22px, 2.6vw, 30px);
  display: grid;
  gap: 8px;
  align-content: start;
  background: #fff;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.4s var(--ease);
}
.stat:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
}
.stat .stat-value {
  font-size: clamp(42px, 5vw, 60px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat .stat-label {
  font-weight: 600;
  font-size: 17px;
}
.stat .stat-note {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
}
.stat .stat-math {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-3);
  border-top: 1px dashed var(--border);
  padding-top: 10px;
  display: flex;
  gap: 6px;
  align-items: flex-start;
}
.stat .stat-math .ms {
  font-size: 16px;
  margin-top: 1px;
}
.stat .stat-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--muted);
  overflow: hidden;
  margin-top: 8px;
}
.stat .stat-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: var(--primary);
  transition: width 1.4s var(--ease) 0.2s;
}
.stat.is-in .stat-bar i {
  width: var(--w, 60%);
}
.stat.blue .stat-value {
  color: var(--primary);
}
.stat.green .stat-value {
  color: var(--success);
}
.stat.orange .stat-value {
  color: var(--warning);
}
.stat.red .stat-value {
  color: var(--error);
}

/* ------------------------------------------- real life vs InvoiceVelo */
.compare {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) auto minmax(0, 1.2fr);
  gap: clamp(16px, 2.4vw, 32px);
  align-items: stretch;
}
.compare-side {
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  padding: clamp(20px, 2.4vw, 28px);
  display: grid;
  gap: 18px;
  align-content: start;
  background: #fff;
}
.compare-side.real {
  background: #fbfaf7;
  border-style: dashed;
  border-color: #d9d3c7;
}
.compare-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
}
.compare-label .ms {
  font-size: 18px;
}
.compare-arrow {
  display: grid;
  place-items: center;
}
.compare-arrow span {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  animation: nudge 2.4s var(--ease-in-out) infinite;
}
.compare-arrow .ms {
  font-size: 26px;
}
@keyframes nudge {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(6px);
  }
}
.compare-caption {
  font-size: 15px;
  color: var(--text-2);
}
.illus {
  border-radius: var(--r-lg);
  background: #f3efe6;
  display: grid;
  place-items: center;
  padding: 18px;
  min-height: 220px;
  overflow: hidden;
}
.illus svg {
  width: 100%;
  max-width: 320px;
  height: auto;
}

/* ----------------------------------------------------- audience cards */
.audience {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.aud {
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(22px, 2.6vw, 30px);
  display: grid;
  gap: 12px;
  align-content: start;
  transition: border-color 0.3s var(--ease), transform 0.4s var(--ease);
}
.aud:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
}
.aud-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}
.aud-tag i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--tile-blue);
}
.aud:nth-child(2) .aud-tag i {
  background: var(--tile-orange);
}
.aud:nth-child(3) .aud-tag i {
  background: var(--tile-green);
}
.aud p {
  color: var(--text-2);
  font-size: 15.5px;
}
.aud .aud-example {
  font-size: 14px;
  background: var(--hover);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--text);
}

/* ---------------------------------------------------------- related */
.related {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.rel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: border-color 0.3s var(--ease), transform 0.35s var(--ease), background-color 0.3s var(--ease);
}
.rel:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
}
.rel:hover .mi-icon {
  background: var(--ink);
  color: #fff;
}
.rel strong {
  display: block;
  font-size: 15.5px;
}
.rel span.small {
  color: var(--text-2);
  display: block;
  line-height: 1.35;
}
.rel .go {
  margin-left: auto;
  color: var(--text-3);
  transition: transform 0.3s var(--spring), color 0.3s;
}
.rel:hover .go {
  transform: translateX(3px);
  color: var(--ink);
}

/* --------------------------------------------------------------- FAQ */
.faq {
  display: grid;
  gap: 12px;
  max-width: 880px;
  margin-inline: auto;
}
.faq details {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  transition: border-color 0.3s var(--ease);
}
.faq details[open] {
  border-color: var(--ink);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .ms {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--muted);
  display: grid;
  place-items: center;
  font-size: 20px;
  transition: transform 0.35s var(--ease), background-color 0.3s;
}
.faq details[open] summary .ms {
  transform: rotate(45deg);
  background: var(--ink);
  color: #fff;
}
.faq .faq-body {
  padding: 0 22px 22px;
  color: var(--text-2);
  font-size: 16px;
  max-width: 760px;
}
.faq details[open] .faq-body {
  animation: faqIn 0.4s var(--ease);
}
@keyframes faqIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* ------------------------------------------------------------ CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  background: var(--ink);
  color: #fff;
  padding: clamp(40px, 6vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 40px;
  align-items: center;
  isolation: isolate;
}
.cta-band .h2 {
  color: #fff;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  max-width: 560px;
}
.cta-band .trust {
  color: rgba(255, 255, 255, 0.7);
}
.cta-band .trust .ms {
  color: var(--tile-green);
}
.cta-orbs {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.cta-orbs i {
  position: absolute;
  border-radius: 28px;
  opacity: 0.9;
  animation: floaty 9s var(--ease-in-out) infinite;
}
.cta-orbs i:nth-child(1) {
  width: 140px;
  height: 140px;
  right: 8%;
  top: -40px;
  background: var(--tile-blue);
}
.cta-orbs i:nth-child(2) {
  width: 90px;
  height: 90px;
  right: 24%;
  bottom: -30px;
  background: var(--tile-orange);
  animation-delay: -3s;
}
.cta-orbs i:nth-child(3) {
  width: 64px;
  height: 64px;
  right: 4%;
  bottom: 22%;
  background: var(--tile-green);
  animation-delay: -6s;
}
@keyframes floaty {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(-10px, 14px) rotate(8deg);
  }
}
.cta-side {
  display: grid;
  gap: 12px;
  justify-items: stretch;
  max-width: 360px;
  margin-left: auto;
  width: 100%;
}
.cta-side .mini-note {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

/* -------------------------------------------------------------- footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 64px 32px;
  margin-top: clamp(40px, 6vw, 80px);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.footer-brand p {
  color: var(--text-2);
  font-size: 15px;
  margin-top: 14px;
  max-width: 300px;
}
.footer-brand img {
  height: 30px;
  width: auto;
}
.footer-col h3 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 14px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer-col a {
  font-size: 15px;
  color: var(--text-2);
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--text);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-2);
}
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 9px;
  background: var(--muted);
}
.footer-badges .ms {
  font-size: 16px;
}

/* Sticky CTA (phones) */
.sticky-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 90;
  display: none;
  gap: 10px;
  padding: 10px;
  border-radius: 20px;
  background: rgba(17, 17, 17, 0.96);
  color: #fff;
  align-items: center;
  transform: translateY(140%);
  transition: transform 0.5s var(--ease);
}
.sticky-cta.show {
  transform: none;
}
.sticky-cta p {
  flex: 1;
  font-size: 14px;
  line-height: 1.3;
  padding-left: 6px;
}
.sticky-cta p strong {
  display: block;
  font-size: 15px;
}

/* ------------------------------------------------------- scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 1ms);
}
[data-reveal="left"] {
  transform: translateX(-26px);
}
[data-reveal="right"] {
  transform: translateX(26px);
}
[data-reveal="zoom"] {
  transform: scale(0.96);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}
.no-js [data-reveal] {
  opacity: 1;
  transform: none;
}

/* Scroll progress bar */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--primary);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 101;
}

/* =============================================================================
   WIDGETS — recreations of the app's components, brought to life by main.js
   ========================================================================== */
.w {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.w-title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.w-sub {
  font-size: 13.5px;
  color: var(--text-2);
}
.w-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.w-head .ms {
  color: var(--text-3);
}
.w-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}
.w-big {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.w-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 13.5px;
  font-weight: 500;
  margin-top: 6px;
}
.w-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.w-meta .ms {
  font-size: 17px;
  color: var(--primary);
}
.w-stage {
  position: relative;
}
.w-float {
  position: absolute;
  z-index: 3;
}

/* App chrome frame (sidebar + topbar) used in the big hero mockups */
.app-frame {
  border: 1px solid var(--border);
  border-radius: 26px;
  background: #fff;
  overflow: hidden;
  display: grid;
  grid-template-columns: 180px 1fr;
}
.af-side {
  border-right: 1px solid var(--border);
  padding: 16px 12px;
  display: grid;
  gap: 4px;
  align-content: start;
}
.af-logo {
  height: 20px;
  width: auto;
  margin: 2px 6px 14px;
}
.af-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}
.af-item .ms {
  font-size: 18px;
}
.af-item.on {
  background: var(--ink);
  color: #fff;
}
.af-item.on::after {
  content: "";
  margin-left: auto;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--nav-dot);
}
.af-main {
  padding: 16px 20px 20px;
  min-width: 0;
}
.af-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.af-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 13px;
}
.af-pill .ms {
  font-size: 17px;
}
.af-pill.blue {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}
.af-search {
  margin-left: auto;
  color: var(--text-3);
  min-width: 140px;
}
.af-h {
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.04em;
  margin: 4px 0 12px;
}

/* KPI tiles (dashboard) */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.kpi {
  border-radius: 18px;
  padding: 14px 14px 0;
  color: #fff;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease);
}
.kpi:hover {
  transform: translateY(-3px);
}
.kpi-top {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
.kpi-top .ms {
  font-size: 17px;
}
.kpi-top .go {
  margin-left: auto;
  font-size: 16px;
  opacity: 0.85;
}
.kpi-value {
  font-size: clamp(20px, 2.1vw, 26px);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.kpi-delta {
  font-size: 11.5px;
  opacity: 0.88;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kpi svg {
  margin-top: auto;
  width: calc(100% + 28px);
  margin-left: -14px;
  height: 58px;
}
.kpi.blue {
  background: var(--tile-blue);
}
.kpi.orange {
  background: var(--tile-orange);
}
.kpi.green {
  background: var(--tile-green);
}
.kpi.dark {
  background: var(--tile-dark);
}
.kpis.big .kpi {
  min-height: 210px;
  padding: 20px 20px 0;
  border-radius: 24px;
}
.kpis.big .kpi-top {
  font-size: 15px;
}
.kpis.big .kpi-value {
  font-size: clamp(26px, 2.8vw, 38px);
}
.kpis.big .kpi-delta {
  font-size: 13px;
}
.kpis.big .kpi svg {
  width: calc(100% + 40px);
  margin-left: -20px;
  height: 84px;
}

/* Summary cards (Outstanding / Overdue / Paid / Drafts) */
.sum-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.sum {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 14px;
  min-width: 0;
}
.sum-l {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}
.sum-l i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex: none;
}
.sum-v {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}
.sum-n {
  font-size: 11.5px;
  color: var(--text-3);
}

/* Status chips: square dot + label (as in the app) */
.st {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.4s var(--ease);
}
.st::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: currentColor;
  flex: none;
  transition: background-color 0.4s var(--ease), transform 0.4s var(--spring);
}
.st.draft {
  color: var(--text-2);
}
.st.draft::before {
  background: #8a8a8a;
}
.st.sent,
.st.viewed {
  color: var(--text);
}
.st.sent::before,
.st.viewed::before {
  background: var(--primary);
}
.st.partial {
  color: var(--text);
}
.st.partial::before {
  background: var(--warning);
}
.st.paid,
.st.accepted {
  color: var(--text);
}
.st.paid::before,
.st.accepted::before {
  background: var(--success);
}
.st.overdue,
.st.declined {
  color: var(--error);
}
.st.converted {
  color: var(--text);
}
.st.converted::before {
  background: var(--tile-purple);
}
.st.expired {
  color: var(--text-3);
}
.st.pop::before {
  transform: scale(1.6);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 7px;
  background: var(--muted);
  white-space: nowrap;
}
.tag .ms {
  font-size: 14px;
}
.tag.green {
  background: var(--success-soft);
  color: var(--success);
}
.tag.red {
  background: var(--error-soft);
  color: var(--error);
}
.tag.blue {
  background: var(--primary-soft);
  color: var(--primary);
}
.tag.orange {
  background: var(--warning-soft);
  color: #a86424;
}

/* Data table (as in the app) */
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.tbl th {
  text-align: left;
  font-weight: 500;
  color: var(--text-2);
  font-size: 12.5px;
  padding: 0 10px 10px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.tbl td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  transition: background-color 0.4s var(--ease);
}
.tbl tr:last-child td {
  border-bottom: 0;
}
.tbl .r {
  text-align: right;
}
.tbl .b {
  font-weight: 600;
}
.tbl .sub {
  display: block;
  font-size: 12px;
  color: var(--text-3);
}
.tbl tbody tr {
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.tbl tbody tr.flash td {
  background: var(--primary-soft);
}
.tbl tbody tr.flash-green td {
  background: var(--success-soft);
}
.tbl-wrap {
  overflow-x: auto;
  margin-inline: -4px;
  padding-inline: 4px;
  scrollbar-width: thin;
}
.w-anim .tbl tbody tr {
  opacity: 0;
  transform: translateY(8px);
}
.w-anim.is-live .tbl tbody tr {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i, 0) * 90ms);
}
.ellipsis {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  vertical-align: bottom;
}
.dots {
  color: var(--text-2);
  letter-spacing: 1px;
  font-weight: 700;
}

/* Form fields (as in the app) */
.fld {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.fld label,
.fld .fl {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
}
.inp {
  height: 44px;
  border: 1px solid var(--border-2);
  border-radius: 12px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  background: #fff;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.inp.focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(51, 88, 234, 0.14);
}
.inp .ph {
  color: var(--text-3);
}
.inp .ms {
  font-size: 18px;
  color: var(--text-2);
}
.inp.r {
  justify-content: flex-end;
}
.caret {
  display: inline-block;
  width: 1.5px;
  height: 18px;
  background: var(--primary);
  margin-left: 1px;
  animation: blink 1s steps(2) infinite;
  vertical-align: middle;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.panel {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.panel-h {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
}
.panel-h .ms {
  font-size: 18px;
  color: var(--primary);
}
.chk {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--success);
  display: grid;
  place-items: center;
  color: #fff;
}
.chk .ms {
  font-size: 16px;
  color: #fff;
}
.mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 11px;
  border: 1.5px solid var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.25s;
  background: #fff;
}
.mini-btn .ms {
  font-size: 17px;
}
.mini-btn.ink {
  background: var(--ink);
  color: #fff;
}
.mini-btn.blue {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.mini-btn.press {
  transform: scale(0.93);
}
.mini-btn:hover {
  transform: translateY(-1px);
}

/* Invoice builder */
.builder {
  display: grid;
  gap: 12px;
}
.builder-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.lines {
  display: grid;
  gap: 0;
}
.line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px 86px 92px;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  transition: opacity 0.45s var(--ease), transform 0.5s var(--ease), background-color 0.4s;
}
.line.head {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
  padding-top: 0;
}
.line .item strong {
  display: block;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.line .item span {
  font-size: 12px;
  color: var(--text-3);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.line .r {
  text-align: right;
}
.line.pending {
  opacity: 0;
  transform: translateY(10px);
}
.totals {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  margin-left: auto;
  width: min(100%, 280px);
}
.totals div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.totals .grand {
  font-weight: 700;
  font-size: 17px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.builder-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

/* Toast (bottom-right notifications) */
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: #fff;
  padding: 12px 16px 12px 12px;
  border-radius: 16px;
  font-size: 14px;
  max-width: 320px;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition: opacity 0.45s var(--ease), transform 0.55s var(--spring);
}
.toast.show {
  opacity: 1;
  transform: none;
}
.toast .t-ic {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--success);
  flex: none;
}
.toast .t-ic .ms {
  font-size: 19px;
  color: #fff;
}
.toast.blue .t-ic {
  background: var(--primary);
}
.toast.red .t-ic {
  background: var(--error);
}
.toast.orange .t-ic {
  background: var(--warning);
}
.toast strong {
  display: block;
  font-size: 14px;
}
.toast span {
  display: block;
  font-size: 12.5px;
  opacity: 0.75;
}

/* Status timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  position: relative;
  margin-top: 8px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 19px;
  height: 2px;
  background: var(--border);
}
.timeline .tl-fill {
  position: absolute;
  left: 10%;
  top: 19px;
  height: 2px;
  background: var(--ink);
  width: 0;
  transition: width 0.7s var(--ease);
}
.tl-step {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.tl-dot {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1.5px solid var(--border-2);
  color: var(--text-3);
  transition: all 0.45s var(--ease);
}
.tl-dot .ms {
  font-size: 20px;
}
.tl-step strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  transition: color 0.4s;
}
.tl-step span {
  font-size: 11.5px;
  color: var(--text-3);
}
.tl-step.done .tl-dot {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.tl-step.done strong {
  color: var(--text);
}
.tl-step.now .tl-dot {
  transform: scale(1.12);
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Area / line charts */
.chart {
  width: 100%;
  height: 220px;
  overflow: visible;
}
.chart .grid line {
  stroke: var(--border);
  stroke-dasharray: 4 6;
}
.chart .axis text {
  font-size: 11px;
  fill: var(--text-3);
  font-family: var(--font);
}
.chart .ln {
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chart .ar {
  opacity: 0;
  transition: opacity 1s var(--ease) 0.5s;
}
.chart.drawn .ar {
  opacity: 1;
}
.chart .hover-line {
  stroke: var(--ink);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  opacity: 0;
  transition: opacity 0.2s;
}
.chart .hover-dot {
  opacity: 0;
  transition: opacity 0.2s;
}
.chart-wrap {
  position: relative;
}
.chart-tip {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  padding: 8px 10px;
  border-radius: 10px;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -110%);
  transition: opacity 0.2s;
  font-variant-numeric: tabular-nums;
  z-index: 4;
}
.chart-tip strong {
  display: block;
  font-size: 14px;
}
.chart-wrap.hovering .chart-tip,
.chart-wrap.hovering .hover-line,
.chart-wrap.hovering .hover-dot {
  opacity: 1;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12.5px;
  font-weight: 500;
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.seg {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 3px;
  gap: 2px;
  background: #fff;
}
.seg button {
  height: 30px;
  padding: 0 11px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.seg button .ms {
  font-size: 16px;
}
.seg button.on {
  background: var(--primary-soft);
  color: var(--primary);
}
.seg.red button.on {
  background: var(--error-soft);
  color: var(--error);
}

/* Bars */
.bars {
  display: grid;
  gap: 12px;
}
.bar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  font-size: 13.5px;
  align-items: center;
}
.bar-row .bl {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.bar-row .bl span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bar-row .bv {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.bar-row .track {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 4px;
  background: var(--muted);
  overflow: hidden;
}
.bar-row .track i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: var(--primary);
  transition: width 1.2s var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms);
}
.is-live .bar-row .track i {
  width: var(--w);
}
.vbars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 180px;
  padding-bottom: 22px;
  position: relative;
}
.vbar-group {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 100%;
  position: relative;
}
.vbar-group > i {
  width: min(12px, 30%);
  border-radius: 6px;
  height: 0;
  transition: height 1s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.is-live .vbar-group > i {
  height: var(--h);
}
.vbar-group > b {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  white-space: nowrap;
}

/* Ring (gauge) */
.ring {
  position: relative;
  width: 128px;
  height: 128px;
  flex: none;
}
.ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.ring circle {
  fill: none;
  stroke-width: 12;
}
.ring .bg {
  stroke: var(--muted);
}
.ring .fg {
  stroke: var(--primary);
  stroke-linecap: round;
  transition: stroke-dashoffset 1.6s var(--ease);
}
.ring .ring-v {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.ring .ring-v small {
  display: block;
  font-size: 11.5px;
  color: var(--text-2);
  font-weight: 500;
  letter-spacing: 0;
  margin-top: 4px;
}

/* Reminders list */
.rem-list {
  display: grid;
  gap: 8px;
}
.rem {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 14px;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease), border-color 0.3s, background-color 0.4s;
}
.rem:hover {
  border-color: var(--ink);
}
.rem .ms {
  color: var(--error);
}
.rem-t {
  flex: 1;
  min-width: 0;
}
.rem-t strong {
  display: block;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rem-t span {
  font-size: 12.5px;
  color: var(--error);
}
.rem-a {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.rem.sent {
  background: var(--success-soft);
  border-color: transparent;
}
.rem.sent .ms {
  color: var(--success);
}
.rem.sent .rem-t span {
  color: var(--success);
}

/* Mini calendar */
.cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  text-align: center;
  font-size: 12.5px;
}
.cal b {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  padding-bottom: 4px;
}
.cal span {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 9px;
  position: relative;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.3s;
}
.cal span.o {
  color: var(--text-3);
}
.cal span.today {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}
.cal span.ev::after {
  content: "";
  position: absolute;
  bottom: 4px;
  width: 5px;
  height: 5px;
  border-radius: 2px;
  background: var(--primary);
  transform: scale(0);
  transition: transform 0.4s var(--spring);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.cal span.ev.red::after {
  background: var(--error);
}
.cal span.ev.green::after {
  background: var(--success);
}
.is-live .cal span.ev::after {
  transform: scale(1);
}
.cal span:hover {
  background: var(--muted);
}
.cal span.today:hover {
  background: var(--ink);
}

/* Report tabs */
.rtabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.rtab {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  text-align: left;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 4px 8px;
  align-items: start;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s, transform 0.3s var(--ease);
}
.rtab:hover {
  border-color: var(--ink);
}
.rtab .ms {
  color: var(--primary);
  font-size: 22px;
  grid-row: span 2;
}
.rtab strong {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25;
}
.rtab span {
  font-size: 11.5px;
  color: var(--text-2);
  line-height: 1.35;
}
.rtab.on {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.rtab.on .ms,
.rtab.on span {
  color: #fff;
}
.rpanel {
  display: none;
}
.rpanel.on {
  display: block;
  animation: faqIn 0.45s var(--ease);
}
.rgroup td {
  background: #f4f4f4;
  font-weight: 600;
}
.rtotal td {
  font-weight: 700;
  background: #f4f4f4;
}
.rindent td:first-child {
  padding-left: 24px;
  color: var(--text-2);
}

/* Command palette */
.cmdk {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
}
.cmdk-in {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.cmdk-in .ms {
  color: var(--text-2);
}
.cmdk-in kbd {
  margin-left: auto;
  font-family: var(--font);
  font-size: 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 2px 7px;
  color: var(--text-2);
}
.cmdk-list {
  padding: 8px;
  display: grid;
  gap: 2px;
}
.cmdk-sec {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  padding: 8px 10px 4px;
}
.cmdk-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 11px;
  font-size: 14px;
  transition: background-color 0.25s var(--ease), opacity 0.3s;
}
.cmdk-item .ms {
  font-size: 19px;
  color: var(--text-2);
}
.cmdk-item.on {
  background: var(--muted);
}
.cmdk-item.on .ms {
  color: var(--primary);
}
.cmdk-item em {
  margin-left: auto;
  font-style: normal;
  font-size: 12px;
  color: var(--text-3);
}
.cmdk-item.hide {
  display: none;
}

/* Quick actions */
.qa {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Product / material record */
.record {
  display: grid;
  gap: 12px;
}
.rec-head {
  display: flex;
  gap: 14px;
  align-items: center;
}
.rec-img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #f3efe6;
  display: grid;
  place-items: center;
  flex: none;
  overflow: hidden;
}
.rec-img svg {
  width: 48px;
  height: 48px;
}
.rec-name {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.kv {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.kv div {
  border-radius: 14px;
  background: var(--hover);
  padding: 10px 12px;
  min-width: 0;
}
.kv span {
  display: block;
  font-size: 11.5px;
  color: var(--text-2);
  font-weight: 500;
}
.kv strong {
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.bom {
  display: grid;
  gap: 6px;
}
.bom-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  font-size: 13.5px;
  padding: 8px 10px;
  border-radius: 10px;
  align-items: center;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.5s var(--ease);
}
.bom-row:nth-child(odd) {
  background: var(--hover);
}
.bom-row span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bom-row.hl {
  background: var(--warning-soft);
}
.margin-meter {
  height: 12px;
  border-radius: 6px;
  background: var(--muted);
  overflow: hidden;
  display: flex;
}
.margin-meter i {
  display: block;
  height: 100%;
  transition: width 1s var(--ease);
}
.margin-meter .cost {
  background: var(--tile-orange);
}
.margin-meter .profit {
  background: var(--tile-green);
}

/* Stock gauge */
.stock {
  display: grid;
  gap: 10px;
}
.stock-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 60px;
  gap: 4px 12px;
  align-items: center;
  font-size: 13.5px;
}
.stock-row .sl {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.stock-row .sl span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stock-row .sv {
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.stock-row .track {
  grid-column: 1 / -1;
  height: 8px;
  background: var(--muted);
  border-radius: 4px;
  overflow: hidden;
}
.stock-row .track i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: var(--tile-green);
  transition: width 0.9s var(--ease), background-color 0.5s;
}
.is-live .stock-row .track i {
  width: var(--w);
  transition-delay: calc(var(--i, 0) * 100ms);
}
.stock-row.low .track i {
  background: var(--error);
}
.stock-row.low .sv {
  color: var(--error);
}
.rem.new {
  max-height: 0;
  padding-block: 0;
  border-width: 0;
  opacity: 0;
  margin-top: -8px;
  overflow: hidden;
  transition: max-height 0.6s var(--ease), padding 0.6s var(--ease), opacity 0.5s var(--ease), margin 0.6s var(--ease),
    background-color 0.4s, border-color 0.4s;
}
.rem.new.show {
  max-height: 90px;
  padding-block: 12px;
  border-width: 1px;
  opacity: 1;
  margin-top: 0;
  border-color: var(--primary);
  background: var(--primary-soft);
}
.rem.new.show.sent {
  background: var(--success-soft);
  border-color: transparent;
}

/* Customer profile card */
.cust {
  display: grid;
  gap: 12px;
}
.avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 600;
  background: var(--muted);
  flex: none;
}
.avatar.blue {
  background: var(--primary-soft);
  color: var(--primary);
}
.avatar.orange {
  background: var(--warning-soft);
  color: #a86424;
}
.avatar.green {
  background: var(--success-soft);
  color: var(--success);
}
.cert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--success-soft);
  color: #1f6e3f;
  font-size: 13px;
  font-weight: 500;
}
.cert .ms {
  color: var(--success);
}

/* Estimate → invoice conversion */
.convert {
  position: relative;
  height: 360px;
}
.doc {
  position: absolute;
  width: min(300px, 78%);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  padding: 16px;
  display: grid;
  gap: 8px;
  font-size: 13px;
  transition: transform 0.9s var(--ease), opacity 0.6s var(--ease);
}
.doc-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.doc-h strong {
  font-size: 15px;
}
.doc-l {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.doc-l b {
  color: var(--text);
  font-weight: 600;
}
.doc-t {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  font-weight: 700;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.doc.est {
  left: 0;
  top: 20px;
  transform: rotate(-3deg);
}
.doc.inv {
  right: 0;
  bottom: 10px;
  transform: translateY(30px) rotate(3deg) scale(0.92);
  opacity: 0;
}
.convert.step2 .doc.est {
  transform: translate(-10px, -6px) rotate(-6deg) scale(0.94);
  opacity: 0.55;
}
.convert.step2 .doc.inv {
  transform: rotate(2deg);
  opacity: 1;
}
.stamp {
  position: absolute;
  right: 14px;
  top: 52px;
  border: 2.5px solid var(--success);
  color: var(--success);
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 15px;
  padding: 4px 10px;
  border-radius: 8px;
  transform: rotate(-14deg) scale(2.2);
  opacity: 0;
  transition: transform 0.45s var(--spring), opacity 0.3s;
}
.convert.stamped .stamp {
  transform: rotate(-14deg) scale(1);
  opacity: 1;
}
.convert-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

/* Pipeline (estimates by status) */
.pipe {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.pipe div {
  border-radius: 14px;
  padding: 12px;
  background: var(--hover);
  display: grid;
  gap: 2px;
  min-width: 0;
}
.pipe strong {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.pipe span {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
  white-space: nowrap;
}
.pipe .acc {
  background: var(--success-soft);
}
.pipe .dec {
  background: var(--error-soft);
}

/* Receipt (real world) */
.receipt {
  width: 190px;
  background: #fff;
  padding: 16px 14px 22px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  line-height: 1.5;
  color: #333;
  position: relative;
  transform: rotate(-4deg);
  -webkit-mask: radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 0 / 14px 100%;
  mask: radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 0 / 14px 100%;
  border: 1px solid #e8e2d4;
  transition: transform 0.9s var(--ease), opacity 0.6s var(--ease);
}
.receipt .rc-h {
  text-align: center;
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 6px;
}
.receipt .rc-l {
  display: flex;
  justify-content: space-between;
}
.receipt .rc-t {
  border-top: 1px dashed #bbb;
  margin-top: 6px;
  padding-top: 6px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
}

/* Scan line effect */
.scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  top: 0;
  opacity: 0;
}
.scanning .scan {
  animation: scan 1.6s var(--ease-in-out);
}
@keyframes scan {
  0% {
    top: 0;
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

/* Flow diagram (how modules connect) */
.flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.flow-node {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px 12px;
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  background: #fff;
  position: relative;
  z-index: 1;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), background-color 0.4s;
}
.flow-node .mi-icon {
  transition: background-color 0.4s, color 0.4s;
}
.flow-node strong {
  font-size: 14px;
}
.flow-node span {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.35;
}
.flow-node.lit {
  border-color: var(--ink);
  transform: translateY(-4px);
}
.flow-node.lit .mi-icon {
  background: var(--primary);
  color: #fff;
}
.flow-node::after {
  content: "";
  position: absolute;
  right: -15px;
  top: 50%;
  width: 16px;
  height: 2px;
  background: var(--border-2);
}
.flow-node:last-child::after {
  display: none;
}
.flow-node.lit::after {
  background: var(--primary);
}

/* Bento grid (home / product overview) */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}
.bento > * {
  grid-column: span 2;
}
.bento .span-3 {
  grid-column: span 3;
}
.bento .span-4 {
  grid-column: span 4;
}
.bento .span-6 {
  grid-column: span 6;
}
.bento-card {
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(20px, 2.4vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  background: #fff;
  overflow: hidden;
  position: relative;
  transition: border-color 0.3s var(--ease), transform 0.45s var(--ease);
}
.bento-card:hover {
  border-color: var(--ink);
  transform: translateY(-4px);
}
.bento-card .bc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.bento-card .bc-top .ms.go {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--muted);
  transition: background-color 0.3s, color 0.3s, transform 0.4s var(--spring);
}
.bento-card:hover .bc-top .ms.go {
  background: var(--ink);
  color: #fff;
  transform: rotate(-45deg);
}
.bento-card h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.bento-card p {
  color: var(--text-2);
  font-size: 15.5px;
}
.bento-card .bc-visual {
  margin-top: auto;
}
.bento-card.blue {
  background: var(--tile-blue);
  border-color: var(--tile-blue);
  color: #fff;
}
.bento-card.blue p {
  color: rgba(255, 255, 255, 0.82);
}
.bento-card.blue .bc-top .ms.go {
  background: rgba(255, 255, 255, 0.16);
}
.bento-card.dark {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.bento-card.dark p {
  color: rgba(255, 255, 255, 0.7);
}
.bento-card.dark .bc-top .ms.go {
  background: rgba(255, 255, 255, 0.14);
}
.bento-card.blue:hover .bc-top .ms.go,
.bento-card.dark:hover .bc-top .ms.go {
  background: #fff;
  color: var(--ink);
}

/* Marquee */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  font-weight: 500;
  white-space: nowrap;
  font-size: 15.5px;
}
.marquee-item .ms {
  font-size: 20px;
  color: var(--primary);
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* Before / after toggle */
.ba-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px;
  gap: 4px;
  background: #fff;
}
.ba-toggle button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-2);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.ba-toggle button.on {
  background: var(--ink);
  color: #fff;
}
.ba-panels {
  display: grid;
  margin-top: 28px;
}
.ba-panel {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), visibility 0s linear 0.6s;
}
.ba-panel.on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), visibility 0s;
}
.day {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.day-card {
  border-radius: 22px;
  padding: 20px;
  border: 1px solid var(--border);
  display: grid;
  gap: 10px;
  align-content: start;
  background: #fff;
}
.day-card .time {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.day-card .time .ms {
  font-size: 17px;
}
.day-card h4 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.day-card p {
  font-size: 14.5px;
  color: var(--text-2);
}
.day-card .cost {
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ba-panel.before .day-card {
  background: #fbfaf7;
  border-style: dashed;
  border-color: #d9d3c7;
}
.ba-panel.before .cost {
  color: var(--error);
}
.ba-panel.after .cost {
  color: var(--success);
}
.ba-sum {
  margin-top: 16px;
  border-radius: 20px;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  font-weight: 600;
}
.ba-panel.before .ba-sum {
  background: var(--error-soft);
  color: #9b2335;
}
.ba-panel.after .ba-sum {
  background: var(--success-soft);
  color: #1f6e3f;
}

/* Calculator */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 32px;
  overflow: hidden;
}
.calc-in {
  padding: clamp(24px, 3vw, 40px);
  display: grid;
  gap: 26px;
  align-content: start;
}
.calc-out {
  padding: clamp(24px, 3vw, 40px);
  background: var(--tile-blue);
  color: #fff;
  display: grid;
  gap: 18px;
  align-content: center;
  position: relative;
  overflow: hidden;
}
.range {
  display: grid;
  gap: 10px;
}
.range-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-weight: 600;
}
.range-top output {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.range input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--ink) var(--p, 50%), var(--muted) var(--p, 50%));
  outline: none;
  cursor: pointer;
}
.range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: #fff;
  border: 2px solid var(--ink);
  transition: transform 0.2s var(--spring);
}
.range input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 9px;
  background: #fff;
  border: 2px solid var(--ink);
}
.range input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.15);
}
.range small {
  color: var(--text-2);
  font-size: 13.5px;
}
.calc-big {
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.calc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.calc-row div {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 14px 16px;
}
.calc-row span {
  display: block;
  font-size: 13px;
  opacity: 0.85;
}
.calc-row strong {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.calc-note {
  font-size: 13px;
  opacity: 0.78;
  line-height: 1.5;
}

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 980px;
  margin-inline: auto;
}
.plan {
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: clamp(26px, 3vw, 40px);
  display: grid;
  gap: 22px;
  align-content: start;
  background: #fff;
  position: relative;
  transition: transform 0.45s var(--ease), border-color 0.3s;
}
.plan:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
}
.plan.pro {
  background: var(--tile-blue);
  border-color: var(--tile-blue);
  color: #fff;
}
.plan.pro:hover {
  border-color: var(--tile-blue);
}
.plan-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 22px;
  font-weight: 600;
}
.plan-badge {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.18);
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.plan-price strong {
  font-size: clamp(52px, 6vw, 72px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}
.plan-price span {
  font-size: 16px;
  opacity: 0.8;
}
.plan-desc {
  font-size: 16px;
  opacity: 0.85;
}
.plan .checks li {
  font-size: 15.5px;
}
.plan.pro .checks li::before {
  background: rgba(255, 255, 255, 0.2)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}
.plan hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0;
}
.plan.pro hr {
  border-top-color: rgba(255, 255, 255, 0.22);
}
.cmp {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
}
.cmp th,
.cmp td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}
.cmp thead th {
  font-size: 15px;
  position: sticky;
  top: var(--header-h);
  background: #fff;
  z-index: 2;
}
.cmp td:not(:first-child),
.cmp th:not(:first-child) {
  text-align: center;
  width: 22%;
}
.cmp .grp td {
  background: var(--hover);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-2);
}
.cmp .yes {
  color: var(--success);
}
.cmp .no {
  color: var(--text-3);
}
.cmp tbody tr:not(.grp):hover td {
  background: #fafafa;
}

/* Plan picker */
.picker {
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: clamp(24px, 3vw, 40px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
.picker-out {
  border-radius: 24px;
  padding: 24px;
  background: var(--hover);
  display: grid;
  gap: 10px;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}
.picker-out.pro {
  background: var(--tile-blue);
  color: #fff;
}
.picker-out .po-plan {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.04em;
}
.toggles {
  display: grid;
  gap: 10px;
}
.switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition: border-color 0.3s;
}
.switch:hover {
  border-color: var(--ink);
}
.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.switch i {
  width: 46px;
  height: 28px;
  border-radius: 9px;
  background: var(--muted-2);
  position: relative;
  flex: none;
  transition: background-color 0.3s var(--ease);
}
.switch i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #fff;
  transition: transform 0.35s var(--spring);
}
.switch input:checked + i {
  background: var(--primary);
}
.switch input:checked + i::after {
  transform: translateX(18px);
}
.switch input:focus-visible + i {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.form {
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: clamp(24px, 3vw, 40px);
  display: grid;
  gap: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
}
.form input,
.form select,
.form textarea {
  width: 100%;
  border: 1px solid var(--border-2);
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 16px;
  background: #fff;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.form textarea {
  min-height: 150px;
  resize: vertical;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(51, 88, 234, 0.14);
}
.form .err {
  color: var(--error);
  font-size: 13px;
  font-weight: 500;
  min-height: 0;
}
.form input.bad,
.form textarea.bad {
  border-color: var(--error);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips label {
  display: block;
  cursor: pointer;
}
.chips input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chips span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-2);
  font-size: 14.5px;
  font-weight: 500;
  transition: all 0.25s var(--ease);
}
.chips input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.chips input:focus-visible + span {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.form-ok {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--success-soft);
  color: #1f6e3f;
  font-weight: 500;
}
.form-ok.show {
  display: flex;
  animation: faqIn 0.45s var(--ease);
}
.info-cards {
  display: grid;
  gap: 14px;
}

/* 404 */
.nf {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.nf-code {
  font-size: clamp(120px, 22vw, 240px);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

/* ----------------------------------------------------------- composites */
.hero-stack {
  position: relative;
  padding-block: 24px 40px;
}
.hero-stack .hs-main {
  position: relative;
  margin-left: 4%;
}
.hero-stack .app-frame {
  grid-template-columns: 62px minmax(0, 1fr);
}
.hero-stack .af-side {
  padding: 16px 10px;
  justify-items: center;
}
.hero-stack .af-logo {
  display: none;
}
.hero-stack .af-item {
  font-size: 0;
  gap: 0;
  justify-content: center;
  width: 40px;
  height: 38px;
  padding: 0;
}
.hero-stack .af-item .ms {
  font-size: 20px;
}
.hero-stack .kpis {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hero-stack .hs-a {
  left: -6%;
  bottom: 34px;
  width: 54%;
}
.hero-stack .hs-b {
  right: -4%;
  top: -6px;
}
.hero-stack .hs-c {
  right: -2%;
  bottom: 0;
}
.float-anim {
  animation: floaty 8s var(--ease-in-out) infinite;
}
.float-anim.slow {
  animation-duration: 11s;
}
.dash-mini {
  display: grid;
  gap: 10px;
}
.dash-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.note-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-radius: 18px;
  background: var(--hover);
  padding: 14px 16px;
  font-size: 14.5px;
  color: var(--text-2);
}
.note-box .ms {
  color: var(--primary);
  font-size: 20px;
  margin-top: 2px;
}

.us-badges {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

/* ------------------------------------------------------------ responsive */

/* ---------------------------------------------------------- refinements */
.hero.home .display {
  font-size: clamp(44px, 5.4vw, 80px);
}
.bento-card.blue .tag,
.bento-card.dark .tag {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.bento-card.blue .mi-icon,
.bento-card.dark .mi-icon {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
[data-widget="ba"] {
  display: grid;
  justify-items: center;
}
[data-widget="ba"] .ba-panels {
  width: 100%;
}
a.tag:hover {
  background: var(--ink);
  color: #fff;
}

@media (max-width: 1180px) {
  .mega-inner {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .mega-feature {
    display: none;
  }
  .rtabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .main-nav,
  .header-actions .hide-md {
    display: none;
  }
  .burger {
    display: block;
  }
  .header-actions {
    margin-left: auto;
  }
  .hero-grid,
  .split,
  .split.wide-left,
  .split.wide-right,
  .split.wide-right.reverse {
    grid-template-columns: minmax(0, 1fr);
  }
  .split.reverse > :first-child {
    order: 0;
  }
  .hero-visual {
    min-height: 0;
  }
  .hero-stack {
    min-height: 500px;
  }
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .features > .feature:nth-child(3n) {
    border-right: 1px solid var(--border);
  }
  .features > .feature:nth-child(2n) {
    border-right: 0;
  }
  .footer-top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cta-band {
    grid-template-columns: minmax(0, 1fr);
  }
  .cta-side {
    margin-left: 0;
    max-width: 420px;
  }
  .flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .flow-node::after {
    display: none;
  }
  .day {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .us-badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bento .span-4,
  .bento .span-3 {
    grid-column: span 6;
  }
  .bento > * {
    grid-column: span 3;
  }
  .contact-grid,
  .picker {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  body {
    font-size: 16.5px;
  }
  .grid-3,
  .grid-4,
  .impact,
  .audience {
    grid-template-columns: minmax(0, 1fr);
  }
  .grid-4.keep-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .compare {
    grid-template-columns: minmax(0, 1fr);
  }
  .compare-arrow span {
    transform: rotate(90deg);
    animation: nudgeDown 2.4s var(--ease-in-out) infinite;
  }
  @keyframes nudgeDown {
    0%,
    100% {
      transform: rotate(90deg) translateX(0);
    }
    50% {
      transform: rotate(90deg) translateX(6px);
    }
  }
  .calc {
    grid-template-columns: minmax(0, 1fr);
  }
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }
  .sum-cards,
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .app-frame,
  .hero-stack .app-frame {
    grid-template-columns: minmax(0, 1fr);
  }
  .af-side {
    display: none;
  }
  .rtabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pipe {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .sticky-cta {
    display: flex;
  }
  .site-footer {
    padding-bottom: 110px;
  }
}

@media (max-width: 600px) {
  :root {
    --header-h: 64px;
  }
  .brand img {
    height: 26px;
  }
  .header-actions .btn-sm {
    padding: 0 12px;
  }
  .header-actions .hide-sm {
    display: none;
  }
  .grid-2,
  .features,
  .related,
  .day,
  .us-badges,
  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .features > .feature {
    border-right: 0 !important;
  }
  .bento > *,
  .bento .span-3,
  .bento .span-4 {
    grid-column: span 6;
  }
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cta-row .btn {
    flex: 1 1 100%;
  }
  .hero.center .cta-row .btn {
    flex: 1 1 100%;
  }
  .w {
    padding: 16px;
    border-radius: 20px;
  }
  .kpi {
    min-height: 136px;
  }
  .kpis.big .kpi {
    min-height: 170px;
  }
  .builder-top {
    grid-template-columns: minmax(0, 1fr);
  }
  .line {
    grid-template-columns: minmax(0, 1fr) 30px 70px 78px;
    gap: 6px;
    font-size: 12.5px;
  }
  .timeline {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .tl-dot {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .timeline::before,
  .timeline .tl-fill {
    top: 16px;
  }
  .tl-step span {
    display: none;
  }
  .tl-step strong {
    font-size: 11px;
  }
  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-stack {
    min-height: 0;
    display: grid;
    gap: 14px;
  }
  .hero-stack .hs-main,
  .hero-stack .w-float {
    position: relative;
    inset: auto;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: auto;
    margin-left: 0;
    max-width: none;
  }
  .hero-stack .hs-b {
    display: none;
  }
  .convert {
    height: 400px;
  }
  .doc {
    width: 82%;
  }
  .kv {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pipe {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rtabs {
    grid-template-columns: 1fr 1fr;
  }
  .rtab span {
    display: none;
  }
  .calc-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .cmp {
    font-size: 14px;
  }
  .cmp th,
  .cmp td {
    padding: 12px 8px;
  }
  .ba-toggle {
    width: 100%;
  }
  .ba-toggle button {
    flex: 1;
    padding: 0 10px;
  }
  .mm-foot {
    grid-template-columns: minmax(0, 1fr);
  }
  .toast {
    max-width: 100%;
  }
  .receipt {
    width: 170px;
  }
}

@media (max-width: 380px) {
  .sum-cards,
  .kpis {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    animation-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .marquee-track {
    animation: none;
  }
}

/* ------------------------------------------------- late responsive tweaks */
.hero.home .word-swap {
  display: grid;
  width: max-content;
}
@media (max-width: 860px) {
  .af-top .af-pill.blue {
    display: none;
  }
}
/* Report tabs scroll sideways when their container is narrow */
.rtabs {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.rtabs::-webkit-scrollbar {
  display: none;
}
.rtab {
  flex: 1 0 168px;
  scroll-snap-align: start;
}

/* --------------------------------------- home hero: wide dashboard layout */
@media (min-width: 1081px) {
  .hero.home .hero-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr);
    gap: clamp(32px, 4vw, 56px);
    align-items: start;
  }
  .hero.home .hero-copy {
    padding-top: 24px;
  }
  .hero.home .display {
    font-size: clamp(40px, 4.4vw, 66px);
  }
}
.hero.home .hero-visual {
  min-height: 0;
}
.hero.home .af-h {
  font-size: 26px;
  margin: 0 0 10px;
}
@media (min-width: 861px) {
  .hero.home .hero-stack .kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .hero.home .hero-stack .kpi {
    min-height: 112px;
    padding: 12px 12px 0;
  }
  .hero.home .hero-stack .kpi-value {
    font-size: clamp(16px, 1.45vw, 21px);
  }
  .hero.home .hero-stack .kpi-delta {
    font-size: 11px;
  }
  .hero.home .hero-stack .hs-a {
    width: 46%;
    bottom: 18px;
  }
}

/* Flow: lit step keeps a white icon for contrast on blue */
.flow-node.lit .mi-icon .ms {
  color: #fff;
}

/* Toasts now enter from the top-right corner of their component */
.toast.w-float {
  transform: translateY(-16px) scale(0.96);
}
.toast.w-float.show {
  transform: none;
}
@media (min-width: 861px) {
  .hero.home .hero-stack .kpi-top {
    font-size: 11.5px;
    gap: 4px;
  }
  .hero.home .hero-stack .kpi-top .ms {
    font-size: 16px;
  }
}
.hero.home .hero-stack .chart {
  height: 150px;
}
.hero.home .hero-stack .w-big {
  font-size: 28px;
}

/* All sections on plain white */
.section.alt {
  background: #fff;
  border-block: 0;
}

/* Hero floating cards: staggered entrance, then a gentle vertical drift (no rotation) */
.hero-stack .float-anim {
  opacity: 0;
  animation: none;
}
.is-in .hero-stack .float-anim,
.hero-stack.is-in .float-anim {
  animation: hs-card-in 0.7s var(--ease) both, hs-drift 6s ease-in-out infinite;
}
.is-in .hero-stack .hs-b {
  animation-delay: 0.45s, 1.15s;
}
.is-in .hero-stack .hs-a {
  animation-delay: 0.75s, 1.45s;
  animation-duration: 0.7s, 7s;
}
.is-in .hero-stack .hs-c {
  animation-delay: 1.05s, 1.75s;
  animation-duration: 0.7s, 6.5s;
}
@keyframes hs-card-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes hs-drift {
  0%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-6px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-stack .float-anim {
    opacity: 1;
    animation: none !important;
  }
}

/* ---------------------------------------- icons: no colored backgrounds */
.mi-icon,
.mm-sub .mi-icon,
.mega-item:hover .mi-icon,
.rel:hover .mi-icon,
.card .card-icon,
.card:hover .card-icon,
.feature .f-icon,
.faq summary .ms,
.faq details[open] summary .ms,
.bento-card .bc-top .ms.go,
.bento-card:hover .bc-top .ms.go,
.bento-card.blue .bc-top .ms.go,
.bento-card.dark .bc-top .ms.go,
.bento-card.blue:hover .bc-top .ms.go,
.bento-card.dark:hover .bc-top .ms.go,
.bento-card.blue .mi-icon,
.bento-card.dark .mi-icon,
.flow-node.lit .mi-icon,
.toast .t-ic,
.toast.blue .t-ic,
.toast.red .t-ic,
.toast.orange .t-ic {
  background: transparent;
}
.mi-icon,
.card .card-icon,
.faq summary .ms {
  color: var(--ink);
}
.mega-item:hover .mi-icon,
.rel:hover .mi-icon,
.card:hover .card-icon,
.bento-card:hover .bc-top .ms.go,
.feature .f-icon {
  color: var(--primary);
}
.faq details[open] summary .ms {
  color: var(--ink);
}
.bento-card.blue .mi-icon,
.bento-card.dark .mi-icon,
.bento-card.blue .bc-top .ms.go,
.bento-card.dark .bc-top .ms.go,
.bento-card.blue:hover .bc-top .ms.go,
.bento-card.dark:hover .bc-top .ms.go {
  color: #fff;
}
/* Flow: the active step tints the icon instead of filling its box */
.flow-node.lit .mi-icon,
.flow-node.lit .mi-icon .ms {
  color: var(--primary);
}
/* Toasts sit on a dark surface: tint the glyph with the status color */
.toast .t-ic .ms {
  color: #4ade80;
  font-size: 22px;
}
.toast.blue .t-ic .ms {
  color: #8aa2ff;
}
.toast.red .t-ic .ms {
  color: #ff7a8c;
}
.toast.orange .t-ic .ms {
  color: #ffb057;
}
/* Checklist ticks without the tinted square */
.checks li::before,
.checks.x li::before {
  background-color: transparent;
  background-size: 18px;
}
.mi-icon .ms,
.card .card-icon .ms,
.feature .f-icon .ms,
.hero-stack .t-ic .ms {
  font-size: 26px;
}
/* Lifecycle timeline: state shown by border + icon color, never a filled box */
.tl-step.done .tl-dot {
  background: #fff;
  border-color: var(--ink);
  color: var(--ink);
}
.tl-step.now .tl-dot {
  background: #fff;
  border-color: var(--primary);
  color: var(--primary);
}
