/* =========================================================
   Vyapsetu — Homepage design system & layout
   Concept: "the shop register, gone digital". Ledger-paper
   ruling, a red margin line and register-ink navy carry the
   identity; marigold is the single warm accent.
   ========================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Colour */
  --ink: #16213e;          /* register-ink navy: headings, dark surfaces */
  --ink-2: #2b3654;
  --text: #3a4560;         /* body text (≈9:1 on white) */
  --muted: #5b6478;        /* secondary text (≈6:1 on white) */
  --paper: #ffffff;
  --paper-2: #f5f6fa;      /* alternate section background */
  --line: #e2e5ee;
  --line-2: #cbd1df;
  --indigo: #3439b0;       /* primary action (refined from the old #4f46e5) */
  --indigo-700: #262a8a;
  --indigo-50: #eef0fb;
  --marigold: #eba21c;     /* warm accent: fills and marks only, never small text on white */
  --marigold-50: #fdf3dc;
  --marigold-800: #8a5a06; /* marigold-family text on light backgrounds */
  --red: #b42318;          /* errors, ledger margin */
  --red-soft: #f1b8b2;
  --rule: #d6e0f2;         /* ledger ruling */
  --green: #13804a;        /* WhatsApp actions */
  --green-700: #0e6339;
  --footer: #0f1830;

  /* Type */
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Hind', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'Courier New', monospace;
  --fs-xs: 0.8125rem;   /* 13 */
  --fs-sm: 0.9375rem;   /* 15 */
  --fs-base: 1.0625rem; /* 17 — Hind runs small */
  --fs-md: 1.25rem;     /* 20 */
  --fs-lg: 1.5625rem;   /* 25 */
  --fs-xl: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);     /* 28 → 40 */
  --fs-2xl: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);     /* 36 → 60 */

  /* Space & shape */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --r-sm: 6px;   /* chips, pills, small controls */
  --r: 10px;     /* buttons, inputs */
  --r-lg: 16px;  /* panels, cards */
  --r-xl: 22px;  /* large bands */
  --shadow-1: 0 1px 2px rgba(22, 33, 62, 0.06);
  --shadow-2: 0 10px 28px -12px rgba(22, 33, 62, 0.22), 0 2px 6px rgba(22, 33, 62, 0.05);
  --shadow-3: 0 28px 60px -24px rgba(22, 33, 62, 0.38);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 68px;
  --container: 1200px;
  --gutter: 24px;

  /* Aliases consumed by css/invoice-templates.css */
  --navy-900: var(--ink);
  --navy-800: var(--ink-2);
  --slate-600: var(--text);
  --slate-500: var(--muted);
  --border-color: var(--line);
  --border-strong: var(--line-2);
  --brand-indigo: var(--indigo);
  --bg-soft: var(--paper-2);
  --font: var(--sans);
  --font-display: var(--sans);
  --font-mono: var(--mono);
  --shadow-xs: var(--shadow-1);
  --shadow-sm: var(--shadow-2);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; line-height: 1.12; }
h3 { font-family: var(--sans); font-weight: 600; font-size: var(--fs-md); line-height: 1.3; }
h1, h2, h3, h4 { text-wrap: balance; }
h4 { font-weight: 600; }
p { margin: 0; }
a { color: var(--indigo); text-underline-offset: 3px; }
a:hover { color: var(--indigo-700); }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select { font: inherit; }
[hidden] { display: none !important; }
section[id], [id="testimonials"] { scroll-margin-top: calc(var(--header-h) + 12px); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.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; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.ico-sm { width: 14px; height: 14px; }

:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r); font-weight: 600; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- 3. Buttons ---------- */
.btn {
  --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  font-family: var(--sans); font-size: 1rem; font-weight: 600; line-height: 1.2; text-align: center;
  color: var(--btn-fg); background: var(--btn-bg); border: 1.5px solid var(--btn-bd); border-radius: var(--r);
  text-decoration: none; white-space: nowrap; position: relative;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s var(--ease), box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); color: var(--btn-fg); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { --btn-bg: var(--indigo); --btn-fg: #fff; box-shadow: 0 6px 16px -8px rgba(52, 57, 176, .7); }
.btn-primary:hover { --btn-bg: var(--indigo-700); }
.btn-outline { --btn-bd: var(--line-2); }
.btn-outline:hover { --btn-bd: var(--indigo); --btn-fg: var(--indigo); }
.btn-ghost { --btn-bg: transparent; }
.btn-ghost:hover { --btn-bg: var(--indigo-50); --btn-fg: var(--indigo); }
.btn-wa { --btn-bg: var(--green); --btn-fg: #fff; }
.btn-wa:hover { --btn-bg: var(--green-700); }
.btn-light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn-light:hover { --btn-bg: var(--marigold-50); }
.btn-gold { --btn-bg: var(--marigold); --btn-fg: var(--ink); }
.btn-gold:hover { --btn-bg: #f2b23c; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 1.0625rem; }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: var(--fs-sm); }
.btn-block { display: flex; width: 100%; }
.btn .ico { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.btn-row-center { justify-content: center; }
.link-btn { background: none; border: 0; padding: 0; color: var(--indigo); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--indigo-700); }

/* Loading state */
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn-label { opacity: 0; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.45); border-top-color: #fff; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 4. Announcement bar ---------- */
.announce { background: var(--ink); color: #dfe4f1; font-size: var(--fs-sm); }
.announce-inner { display: flex; align-items: center; justify-content: center; gap: var(--s-3); min-height: 42px; padding-top: 6px; padding-bottom: 6px; }
.announce p { text-align: center; line-height: 1.4; }
.announce-link { color: #fff; font-weight: 600; margin-left: 8px; text-decoration-color: var(--marigold); text-decoration-thickness: 2px; }
.announce-link:hover { color: var(--marigold); }
.announce-close { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: var(--r-sm); background: transparent; color: #aeb7cc; }
.announce-close:hover { background: rgba(255,255,255,.08); color: #fff; }
.announce-close .ico { width: 16px; height: 16px; }
.announce :focus-visible { outline-color: var(--marigold); }

/* ---------- 5. Header & navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(22,33,62,.35); }
.header-inner { display: flex; align-items: center; gap: var(--s-5); height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--indigo); color: #fff; }
.brand-mark .ico { width: 20px; height: 20px; stroke-width: 2.3; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.375rem; letter-spacing: -0.01em; }

.main-nav { display: flex; align-items: center; flex: 1; gap: var(--s-5); }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin-left: auto; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 12px; border: 0; background: none; border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2); text-decoration: none;
}
.nav-link:hover { color: var(--indigo); background: var(--indigo-50); }
.nav-link.is-current { color: var(--indigo); }
.nav-link.is-current::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--indigo); }
.menu-trigger .ico { transition: transform .2s ease; }
.menu-trigger[aria-expanded="true"] .ico { transform: rotate(180deg); }
.nav-actions { display: flex; align-items: center; gap: var(--s-2); }
.nav-actions .btn { min-height: 42px; font-size: var(--fs-sm); }

.has-menu { position: relative; }
.nav-menu {
  position: absolute; top: calc(100% + 8px); left: 50%; width: 340px;
  padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-3);
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px);
  transition: opacity .18s ease, transform .18s var(--ease), visibility .18s;
}
.has-menu.is-open .nav-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-menu a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r); text-decoration: none; color: var(--ink); }
.nav-menu a:hover { background: var(--paper-2); color: var(--ink); }
.nav-menu .ico { margin-top: 2px; color: var(--indigo); }
.nav-menu strong { display: block; font-weight: 600; font-size: var(--fs-sm); }
.nav-menu small { display: block; color: var(--muted); font-size: var(--fs-xs); line-height: 1.4; }

.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 6. Section scaffolding ---------- */
.section { padding: var(--s-9) 0; }
.section-head { max-width: 680px; margin-bottom: var(--s-7); }
.section-head h2 { font-size: var(--fs-xl); }
.section-head p { margin-top: var(--s-3); font-size: 1.125rem; color: var(--muted); max-width: 60ch; }
.visual-note { margin-top: var(--s-3); font-size: var(--fs-xs); color: var(--muted); font-style: italic; }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js [data-stagger] { animation: rise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 60ms); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- 7. Hero ---------- */
.hero { position: relative; padding: var(--s-8) 0 var(--s-7); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: var(--s-8); align-items: center; }
.hero-kicker { font-size: var(--fs-sm); font-weight: 600; color: var(--marigold-800); margin-bottom: var(--s-4); display: inline-flex; align-items: center; gap: 10px; }
.hero-kicker::before { content: ""; width: 28px; height: 2px; background: var(--marigold); border-radius: 2px; }
.hero h1 { font-size: var(--fs-2xl); max-width: 15ch; }
.hero-lead { margin-top: var(--s-5); font-size: 1.1875rem; line-height: 1.6; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero-wa { margin-top: var(--s-5); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: var(--fs-sm); }
.link-wa { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--green); text-decoration: none; min-height: 40px; }
.link-wa:hover { color: var(--green-700); text-decoration: underline; }
.hero-hours { color: var(--muted); }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--ink-2); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .ico { width: 18px; height: 18px; color: var(--green); stroke-width: 2.6; }

/* Hero visual: ledger sheet + thermal receipt */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 540px; }
.ledger-sheet {
  position: absolute; inset: 18px 6% 30px 2%;
  background:
    linear-gradient(90deg, transparent 54px, var(--red-soft) 54px, var(--red-soft) 55px, transparent 55px, transparent 58px, var(--red-soft) 58px, var(--red-soft) 59px, transparent 59px),
    repeating-linear-gradient(180deg, transparent 0 31px, var(--rule) 31px 32px),
    #fbfcff;
  border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow-2);
  transform: rotate(-2.2deg);
}
.receipt {
  --paper-w: 300px;
  position: relative; z-index: 1; width: var(--paper-w); margin: 0; padding: 22px 22px 34px;
  font-family: var(--mono); font-size: 13px; line-height: 1.55; color: #1f2433;
  background: #fffefa; transform: rotate(1.4deg);
  box-shadow: var(--shadow-3);
  /* torn thermal edge */
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 10px repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 10px repeat-x;
}
.receipt-head { display: grid; gap: 1px; text-align: center; padding-bottom: 12px; margin-bottom: 10px; border-bottom: 1px dashed #b9bfcc; }
.receipt-head strong { font-size: 15px; letter-spacing: 0.02em; }
.receipt-head span { font-size: 11.5px; color: #5d6476; }
.receipt-items { list-style: none; }
.receipt-items li, .receipt-tax div, .receipt-total { display: flex; justify-content: space-between; gap: 12px; }
.receipt-items em { font-style: normal; color: #6b7286; }
.receipt-tax { margin-top: 10px; padding-top: 8px; border-top: 1px dashed #b9bfcc; font-size: 12px; color: #4a5164; }
.receipt-total { margin-top: 8px; padding: 8px 0; border-top: 1.5px solid #1f2433; border-bottom: 1.5px solid #1f2433; font-weight: 700; font-size: 16px; }
.receipt-total b { font-weight: 700; font-variant-numeric: tabular-nums; }
.receipt-save { margin-top: 10px; text-align: center; font-weight: 700; }
.receipt-pay { text-align: center; font-size: 11.5px; color: #5d6476; }
.receipt-stamp {
  position: absolute; z-index: 2; right: -46px; bottom: 34px; margin: 0; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: var(--r); background: var(--green); color: #fff;
  font-family: var(--sans); font-size: 14px; font-weight: 600; box-shadow: var(--shadow-2); transform: rotate(-3deg);
}
.receipt-stamp .ico { width: 16px; height: 16px; }
.receipt-scan { position: absolute; left: 10px; right: 10px; top: 0; height: 2px; background: var(--red); box-shadow: 0 0 10px 2px rgba(180, 35, 24, .45); opacity: 0; border-radius: 2px; }
.hero-visual .visual-note { position: absolute; bottom: 0; right: 8%; margin: 0; }

/* Receipt print sequence (JS adds .is-printing then reveals lines) */
.js .scene-bill.is-printing [data-rline] { opacity: 0; transform: translateY(-4px); }
.js .scene-bill [data-rline] { transition: opacity .35s ease, transform .35s var(--ease); }
.js .scene-bill [data-rline].is-shown { opacity: 1; transform: none; }
.js .scene-bill.is-printing .receipt-scan { animation: scan 0.9s ease-in-out 4; }
@keyframes scan { 0% { top: 70px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 190px; opacity: 0; } }
.js .receipt-stamp.is-shown { animation: stamp .45s var(--ease) both; }
@keyframes stamp { 0% { opacity: 0; transform: rotate(-3deg) scale(1.25); } 100% { opacity: 1; transform: rotate(-3deg) scale(1); } }

/* Shop-type quick picker */
.shoptypes { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-top: var(--s-7); padding: var(--s-4) 0 0; }
.shoptypes-label { font-family: var(--serif); font-style: italic; font-size: 1.0625rem; color: var(--muted); }
.shoptypes ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.shoptypes a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: 999px; background: #fff;
  color: var(--ink-2); font-size: var(--fs-sm); font-weight: 500; text-decoration: none;
  transition: border-color .18s, color .18s, background-color .18s;
}
.shoptypes a:hover { border-color: var(--indigo); color: var(--indigo); background: var(--indigo-50); }

/* ---------- 8. Problems ledger ---------- */
.problems { border-top: 1px solid var(--line); }
.ledger { position: relative; border-top: 2px solid var(--ink); }
.ledger::before { /* red double margin rule */
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 5px;
  border-left: 1px solid var(--red-soft); border-right: 1px solid var(--red-soft);
}
.ledger-row {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.9fr) minmax(0, 1.05fr);
  gap: var(--s-6); padding: 22px 0 22px 32px; border-bottom: 1px solid var(--rule);
}
.ledger-headrow { padding-top: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.ledger-headrow span { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.ledger-headrow span:last-child { color: var(--indigo); }
.ledger-row strong { display: block; color: var(--ink); font-weight: 600; font-size: 1.0625rem; line-height: 1.35; margin-bottom: 4px; }
.ledger-row span { color: var(--muted); }
.lc-cost { font-family: var(--serif); font-style: italic; color: var(--red); line-height: 1.5; }
.lc-fix { position: relative; padding-left: 30px; }
.lc-fix::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--indigo-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233439b0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.lc-fix strong { color: var(--indigo); }
.ledger-row:not(.ledger-headrow) { transition: background-color .2s ease; }
.ledger-row:not(.ledger-headrow):hover { background: linear-gradient(90deg, rgba(235,162,28,.07), transparent 70%); }

/* ---------- 9. Features ---------- */
.features { background: var(--paper-2); }
.chip-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s-6); }
.chip {
  min-height: 42px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff;
  font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2); transition: all .18s ease;
}
.chip:hover { border-color: var(--indigo); color: var(--indigo); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.feature {
  display: flex; flex-direction: column; gap: 10px; padding: var(--s-5);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform .25s var(--ease), box-shadow .25s ease, border-color .25s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.feature-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--indigo-50); color: var(--indigo); margin-bottom: 4px; transition: transform .3s var(--ease); }
.feature:hover .feature-icon { transform: rotate(-6deg) scale(1.05); }
.feature-icon.is-ai { background: var(--marigold-50); color: var(--marigold-800); }
.feature h3 { font-size: 1.125rem; }
.feature p { font-size: var(--fs-sm); color: var(--muted); flex: 1; }
.feature-link { align-self: flex-start; font-size: var(--fs-sm); font-weight: 600; text-decoration: none; padding: 6px 0; }
.feature-link:hover { text-decoration: underline; }
.feature.is-entering { animation: rise .4s var(--ease) both; }
@media (min-width: 1025px) { .feature-grid[data-filter="all"] .feature:last-child { grid-column: span 2; } }

/* ---------- 10. Product tour ---------- */
.tour { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: var(--s-6); align-items: start; }
.tour-tabs { display: flex; flex-direction: column; gap: 4px; position: sticky; top: calc(var(--header-h) + 24px); }
.tour-tab {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 0 14px;
  border: 0; border-radius: var(--r); background: transparent; text-align: left;
  font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2); position: relative;
  transition: background-color .18s ease, color .18s ease;
}
.tour-tab .ico { color: var(--muted); transition: color .18s; }
.tour-tab:hover { background: var(--paper-2); }
.tour-tab.is-active { background: var(--indigo-50); color: var(--indigo); font-weight: 600; }
.tour-tab.is-active .ico { color: var(--indigo); }
.tour-tab.is-active::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--indigo); }
.tour-stage { min-width: 0; }
.tour-panel { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); gap: var(--s-6); align-items: start; }
.tour-panel.is-active { animation: panelIn .4s var(--ease) both; }
@keyframes panelIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.tour-info h3 { font-family: var(--serif); font-size: var(--fs-lg); font-weight: 600; }
.tour-info > p { margin-top: var(--s-3); color: var(--muted); }
.ticks { list-style: none; margin: var(--s-5) 0 var(--s-5); display: grid; gap: 10px; font-size: var(--fs-sm); }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before, .plan-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313804a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.screen { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-2); overflow: hidden; min-width: 0; }
.screen-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.screen-title { font-weight: 600; font-size: var(--fs-sm); color: var(--ink); }
.screen-body { padding: 16px; display: grid; gap: 14px; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.kpi span { display: block; font-size: 12.5px; color: var(--muted); }
.kpi strong { display: block; font-size: 1.0625rem; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; transition: opacity .2s; }
.kpi small { display: block; font-size: 12px; color: var(--green); line-height: 1.3; }
.kpi small.warn, .t-warn { color: var(--marigold-800) !important; }
.t-bad { color: var(--red) !important; }
.t-ok { color: var(--green) !important; }
.t-indigo { color: var(--indigo) !important; }
.kpis.is-updating strong { opacity: .25; }
.chart { width: 100%; height: auto; display: block; }
.chart-line { stroke-dasharray: 600; stroke-dashoffset: 0; }
.tour-panel.is-active .chart-line { animation: draw 1.2s var(--ease) both; }
.tour-panel.is-active .chart-line-2 { animation-delay: .15s; }
@keyframes draw { from { stroke-dashoffset: 600; } to { stroke-dashoffset: 0; } }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); margin-top: -6px; }
.legend i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.lg-a { background: var(--indigo); } .lg-b { background: var(--marigold); }
.toggle { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; }
.toggle-btn { min-height: 34px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background-color .18s, color .18s; }
.toggle-btn:hover { color: var(--indigo); }
.toggle-btn.is-active { background: var(--ink); color: #fff; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; min-width: 0; }
.ui-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ui-table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12.5px; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ui-table td { padding: 10px; border-bottom: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.ui-table tbody tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; padding: 3px 9px; border-radius: var(--r-sm); font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill-ok { background: #e3f4ea; color: #0f6b3d; }
.pill-warn { background: var(--marigold-50); color: var(--marigold-800); }
.stockbars { display: grid; gap: 8px; font-size: 13px; }
.stockbars div { display: grid; grid-template-columns: 1fr 120px 56px; align-items: center; gap: 10px; }
.stockbars i { display: block; height: 6px; border-radius: 6px; background: var(--line); position: relative; overflow: hidden; }
.stockbars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 6px; background: var(--green); transform-origin: left; }
.tour-panel.is-active .stockbars i::after { animation: grow .9s var(--ease) both; }
.stockbars .is-low i::after { background: var(--marigold); }
.stockbars b { text-align: right; font-weight: 600; color: var(--ink-2); }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.qr-split, .scan-split { grid-template-columns: 170px minmax(0, 1fr); align-items: center; }
.qr-card, .scan-doc { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 16px; border-radius: var(--r); background: var(--ink); color: #c9d0e0; font-size: 13px; }
.qr-card strong, .scan-doc strong { color: #fff; font-size: 14px; word-break: break-word; }
.qr-art { width: 84px; height: 84px; }
.scan-doc { background: var(--indigo-50); color: var(--muted); }
.scan-doc strong { color: var(--ink); }
.scan-doc .ico { width: 34px; height: 34px; color: var(--indigo); }

/* ---------- 11. How it works ---------- */
.steps-section { background: var(--paper-2); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); position: relative; }
.steps::before, .steps::after { content: ""; position: absolute; top: 21px; left: 22px; right: calc(25% - 22px); height: 2px; background: var(--line-2); }
.steps::after { background: var(--indigo); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease); }
.steps.is-on::after { transform: scaleX(1); }
.step { position: relative; }
.step-num {
  position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line-2); font-family: var(--serif); font-weight: 700; font-size: 1.125rem; color: var(--ink);
  transition: background-color .4s ease, border-color .4s ease, color .4s ease;
}
.steps.is-on .step-num { background: var(--indigo); border-color: var(--indigo); color: #fff; transition-delay: calc(var(--n, 0) * 380ms); }
.step h3 { margin-top: var(--s-5); font-size: 1.1875rem; }
.step p { margin-top: 8px; font-size: var(--fs-sm); color: var(--muted); }
.step .step-gain { margin-top: var(--s-3); font-family: var(--serif); font-style: italic; color: var(--indigo); font-size: 1rem; }

/* ---------- 12. Industries ---------- */
.ind-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-2); margin-bottom: var(--s-6); overflow-x: auto; scrollbar-width: none; }
.ind-tabs::-webkit-scrollbar { display: none; }
.ind-tab {
  flex: none; min-height: 48px; padding: 0 16px; border: 0; background: none; position: relative;
  font-size: var(--fs-sm); font-weight: 500; color: var(--muted); white-space: nowrap; transition: color .18s;
}
.ind-tab:hover { color: var(--ink); }
.ind-tab::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--indigo); transform: scaleX(0); transition: transform .25s var(--ease); }
.ind-tab.is-active { color: var(--ink); font-weight: 600; }
.ind-tab.is-active::after { transform: scaleX(1); }
.ind-panel { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--s-7); align-items: start; }
.ind-panel.is-active { animation: rise .45s var(--ease) both; }
.ind-for { font-size: var(--fs-sm); font-weight: 600; color: var(--marigold-800); margin-bottom: 8px; }
.ind-main h3 { font-family: var(--serif); font-size: var(--fs-lg); font-weight: 600; line-height: 1.25; }
.ind-main > p { margin-top: var(--s-3); max-width: 62ch; }
.ind-flow { list-style: none; counter-reset: flow; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); margin: var(--s-5) 0 var(--s-6); }
.ind-flow li { counter-increment: flow; position: relative; padding: 14px 14px 14px 52px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.ind-flow li::before { content: counter(flow); position: absolute; left: 14px; top: 14px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--indigo-50); color: var(--indigo); font-weight: 700; font-size: 14px; }
.ind-flow strong { display: block; color: var(--ink); font-size: var(--fs-sm); }
.ind-flow span { display: block; font-size: 14px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.ind-aside { padding: var(--s-6); border-radius: var(--r-lg); background: var(--ink); color: #c9d0e0; }
.ind-q-label { font-size: var(--fs-sm); color: var(--marigold); font-weight: 600; }
.ind-aside h4 { margin-top: 8px; color: #fff; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; line-height: 1.35; }
.ind-aside p { margin-top: var(--s-3); font-size: var(--fs-sm); }
.ind-aside a { color: #fff; text-decoration-color: var(--marigold); }
.ind-aside :focus-visible { outline-color: var(--marigold); }
.ind-formats { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid rgba(255,255,255,.14); font-size: var(--fs-sm); }
.ind-formats strong { color: #fff; }
.ind-formats ul { list-style: none; margin-top: 6px; display: grid; gap: 4px; }
.ind-formats li::before { content: "—"; margin-right: 8px; color: var(--marigold); }
.ind-more { margin-top: var(--s-6); color: var(--muted); }

/* ---------- 13. Invoice templates (overrides for css/invoice-templates.css) ---------- */
.invoice-templates-section { background: var(--paper-2); border-bottom: 0; padding: var(--s-9) 0; }
.tpl-top-controls { justify-content: space-between; }
.print-pill-switcher { border: 1px solid var(--line-2); box-shadow: none; padding: 4px; }
.print-pill-btn { padding: 9px 22px; font-family: var(--sans); font-size: var(--fs-sm); color: var(--ink-2); }
.print-pill-btn:hover { color: var(--indigo); }
.print-pill-btn.active { background: var(--ink); box-shadow: none; color: #fff; }
.rich-tpl-card:hover .rich-doc-frame { border-color: var(--indigo); box-shadow: var(--shadow-2); }

/* ---------- 14. Pricing ---------- */
.pricing-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: var(--s-6); font-size: var(--fs-sm); color: var(--muted); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; transition: box-shadow .25s ease, transform .25s var(--ease); }
.plan:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.plan-featured { border: 2px solid var(--indigo); box-shadow: var(--shadow-2); }
.plan-flag { position: absolute; top: -14px; left: var(--s-6); padding: 3px 12px; border-radius: var(--r-sm); background: var(--marigold); color: var(--ink); font-size: var(--fs-xs); font-weight: 700; }
.plan h3 { font-family: var(--serif); font-size: var(--fs-lg); font-weight: 600; }
.plan-desc { margin-top: 6px; font-size: var(--fs-sm); color: var(--muted); min-height: 4.8em; }
.plan-price { margin-top: var(--s-5); display: flex; align-items: baseline; gap: 4px; color: var(--ink); }
.plan-cur { font-size: 1.375rem; font-weight: 600; }
.plan-amount { font-family: var(--serif); font-size: 2.75rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; transition: opacity .2s; }
.plan-amount.is-swapping { opacity: 0; }
.plan-cycle { font-size: var(--fs-sm); color: var(--muted); margin-left: 4px; }
.plan-note { margin: 6px 0 var(--s-5); font-size: var(--fs-sm); color: var(--green); font-weight: 500; min-height: 3.2em; }
.plan-list { list-style: none; display: grid; gap: 10px; margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.plan-list li { position: relative; padding-left: 28px; }
.plan-list li.plan-inherit { padding-left: 0; font-weight: 600; color: var(--ink); }
.plan-list li.plan-inherit::before { display: none; }
.plan-compare { margin-top: var(--s-6); border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.plan-compare summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 var(--s-5); font-weight: 600; color: var(--ink); }
.plan-compare summary::-webkit-details-marker { display: none; }
.plan-compare summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease); }
.plan-compare[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.plan-compare .table-wrap { padding: 0 var(--s-5) var(--s-5); }
.cmp-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 540px; }
.cmp-table th, .cmp-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: center; }
.cmp-table th[scope="row"], .cmp-table thead th:first-child { text-align: left; font-weight: 500; color: var(--ink-2); }
.cmp-table thead th { font-weight: 600; color: var(--ink); }
.cmp-table td { font-size: 0; } /* words stay in the DOM for screen readers; icons are drawn with ::before */
.cmp-table td[data-yes]::before { content: ""; display: inline-block; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313804a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 18px no-repeat; }
.cmp-table td[data-no]::before { content: ""; display: inline-block; width: 12px; height: 2px; background: var(--line-2); vertical-align: middle; }
.pricing-help { margin-top: var(--s-5); color: var(--muted); }

/* ---------- 15. Trust ---------- */
.trust { background: var(--paper-2); }
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6); }
.pillar { padding-top: var(--s-4); border-top: 2px solid var(--ink); }
.pillar .ico { width: 26px; height: 26px; color: var(--indigo); }
.pillar h3 { margin-top: var(--s-3); font-size: 1.125rem; }
.pillar p { margin-top: 8px; font-size: var(--fs-sm); color: var(--muted); }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); margin-top: var(--s-7); }
.quote { margin: 0; padding: var(--s-5); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.quote blockquote { margin: 0; font-family: var(--serif); font-style: italic; color: var(--ink-2); }
.quote figcaption { margin-top: var(--s-4); font-size: var(--fs-sm); }
.quote figcaption strong { display: block; color: var(--ink); }
.quote figcaption span { color: var(--muted); }
.support-band {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); flex-wrap: wrap;
  margin-top: var(--s-8); padding: var(--s-6) var(--s-7); border-radius: var(--r-xl); background: var(--ink); color: #c9d0e0;
}
.support-band h3 { color: #fff; font-family: var(--serif); font-size: var(--fs-lg); font-weight: 600; max-width: 26ch; line-height: 1.3; }
.contact-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: var(--s-4); font-size: var(--fs-sm); }
.contact-list li { display: inline-flex; align-items: center; gap: 8px; }
.contact-list .ico { width: 16px; height: 16px; color: var(--marigold); }
.contact-list a { color: #fff; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; color: #fff; }
.support-band :focus-visible { outline-color: var(--marigold); }

/* ---------- 16. Free tools ---------- */
.tools-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--s-8); align-items: start; }
.tools .section-head { margin-bottom: 0; }
.tool-list { list-style: none; border-top: 1px solid var(--line-2); }
.tool-list a { display: flex; align-items: center; gap: var(--s-4); padding: 18px 8px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: background-color .18s ease, padding .2s var(--ease); }
.tool-list a:hover { background: var(--paper-2); padding-left: 14px; color: var(--ink); }
.tool-list .ico { color: var(--indigo); width: 22px; height: 22px; }
.tool-list span { flex: 1; }
.tool-list strong { display: block; font-weight: 600; }
.tool-list small { display: block; color: var(--muted); font-size: var(--fs-sm); line-height: 1.45; }
.tool-list .ico-go { color: var(--muted); transition: transform .2s var(--ease), color .2s; }
.tool-list a:hover .ico-go { transform: translateX(4px); color: var(--indigo); }

/* ---------- 17. FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--s-8); align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--line-2); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  min-height: 64px; padding: 14px 4px; font-weight: 600; font-size: 1.0625rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 11px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 11px no-repeat;
  transition: transform .3s var(--ease), background-color .2s;
}
.faq-item[open] summary::after { transform: rotate(135deg); background-color: var(--indigo-50); }
.faq-item summary:hover { color: var(--indigo); }
.faq-body { overflow: hidden; }
.faq-body p { padding: 0 44px 20px 4px; color: var(--text); }

/* ---------- 18. Final CTA ---------- */
.final-cta {
  position: relative; padding: var(--s-9) 0; color: #c9d0e0; text-align: center; overflow: hidden;
  background:
    repeating-linear-gradient(180deg, transparent 0 39px, rgba(255,255,255,.05) 39px 40px),
    var(--ink);
}
.final-cta::before { content: ""; position: absolute; top: 0; bottom: 0; left: max(24px, calc(50% - 560px)); width: 5px; border-left: 1px solid rgba(241,184,178,.35); border-right: 1px solid rgba(241,184,178,.35); }
.final-inner { position: relative; max-width: 760px; }
.final-cta h2 { color: #fff; font-size: var(--fs-xl); }
.final-cta p { margin: var(--s-4) auto var(--s-6); max-width: 58ch; font-size: 1.125rem; }
.final-cta .final-wa { margin: var(--s-5) 0 0; font-size: var(--fs-sm); }
.final-cta a { color: #fff; text-decoration-color: var(--marigold); }
.final-cta :focus-visible { outline-color: var(--marigold); }

/* ---------- 19. Footer ---------- */
.site-footer { background: var(--footer); color: #aab3c8; padding: var(--s-8) 0 var(--s-5); font-size: var(--fs-sm); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: var(--s-6); }
.site-footer .brand { display: inline-flex; padding: 0; }
.brand-light, .brand-light:hover { color: #fff; text-decoration: none; }
.footer-brand p { margin-top: var(--s-4); max-width: 38ch; }
.site-footer h4 { color: #fff; font-size: var(--fs-sm); margin-bottom: var(--s-3); }
.site-footer ul { list-style: none; display: grid; gap: 4px; }
.site-footer a { color: #aab3c8; text-decoration: none; display: inline-block; padding: 4px 0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { padding: 4px 0; }
.footer-contact li a { padding: 0; }
.footer-base { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid rgba(255,255,255,.1); font-size: var(--fs-xs); }
.site-footer :focus-visible { outline-color: var(--marigold); }

/* ---------- 20. Floating UI ---------- */
.mobile-bar { display: none; }
.to-top {
  position: fixed; right: 24px; bottom: 84px; z-index: 80; display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line-2); border-radius: 50%; background: #fff; color: var(--ink); box-shadow: var(--shadow-2);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--indigo); border-color: var(--indigo); }
.callback-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 80; display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--ink); color: #fff;
  font-size: var(--fs-sm); font-weight: 600; box-shadow: var(--shadow-3); transition: transform .2s var(--ease), background-color .2s;
}
.callback-fab:hover { transform: translateY(-2px); background: var(--ink-2); }
.callback-fab .ico { width: 17px; height: 17px; color: var(--marigold); }
.callback-panel {
  position: fixed; right: 24px; bottom: 84px; z-index: 90; width: 340px; max-width: calc(100vw - 32px);
  padding: var(--s-5); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-3);
  transform-origin: bottom right; animation: pop .25s var(--ease) both;
}
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.cb-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.cb-head h3 { font-size: 1.125rem; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: var(--r); background: transparent; color: var(--muted); }
.icon-btn:hover { background: var(--paper-2); color: var(--ink); }

/* ---------- 21. Modals & forms ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 24, 48, 0.55); opacity: 0; transition: opacity .25s ease; }
.modal-box {
  position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow-y: auto;
  padding: var(--s-6); background: #fff; border-radius: 18px; box-shadow: var(--shadow-3);
  opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .25s ease, transform .3s var(--ease);
}
.modal.is-open .modal-backdrop { opacity: 1; }
.modal.is-open .modal-box { opacity: 1; transform: none; }
.modal-close { position: absolute; top: 12px; right: 12px; }
.modal h3 { font-family: var(--serif); font-size: var(--fs-lg); font-weight: 600; padding-right: 36px; }
.muted { color: var(--muted); font-size: var(--fs-sm); margin-top: 6px; }
.lead-form { display: grid; gap: var(--s-4); margin-top: var(--s-5); }
.lead-field { display: grid; gap: 6px; min-width: 0; }
.lead-field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.lead-field label { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.lead-field input, .lead-field select {
  width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: var(--r);
  background: #fff; color: var(--ink); font-size: 1rem; transition: border-color .18s, box-shadow .18s;
}
.lead-field select { appearance: none; -webkit-appearance: none; padding-right: 36px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6478' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 16px no-repeat; }
.lead-field input:focus, .lead-field select:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(52, 57, 176, .15); }
.phone-input { display: flex; align-items: stretch; border: 1.5px solid var(--line-2); border-radius: var(--r); background: #fff; transition: border-color .18s, box-shadow .18s; }
.phone-input:focus-within { border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(52, 57, 176, .15); }
.phone-input span { display: grid; place-items: center; padding: 0 12px; border-right: 1px solid var(--line); color: var(--muted); font-weight: 600; }
.phone-input input { border: 0; min-height: 45px; box-shadow: none !important; letter-spacing: .03em; }
.lead-field.is-invalid input, .lead-field.is-invalid .phone-input { border-color: var(--red); }
.field-error { font-size: 14px; color: var(--red); min-height: 0; }
.field-error:empty { display: none; }
.field-hint { font-size: 13.5px; color: var(--muted); }
.form-error { font-size: 14.5px; color: var(--red); }
.form-error:empty { display: none; }
.fine { font-size: 13px; color: var(--muted); text-align: center; }
.or-wa { margin-top: var(--s-4); font-size: var(--fs-sm); color: var(--muted); text-align: center; }
.or-wa a { color: var(--green); font-weight: 600; }

.lead-result { text-align: center; padding-top: 6px; outline: none; }
.lead-result .result-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto var(--s-4); border-radius: 50%; background: #e3f4ea; color: var(--green); animation: stamp .45s var(--ease) both; }
.lead-result .result-icon.is-wa { background: #e3f4ea; }
.lead-result .result-icon.is-error { background: #fde8e6; color: var(--red); }
.lead-result .result-icon .ico { width: 28px; height: 28px; stroke-width: 2.6; }
.lead-result h3 { padding-right: 0; }
.lead-result p { margin: var(--s-3) auto var(--s-5); color: var(--text); font-size: var(--fs-sm); max-width: 38ch; }
.lead-result .btn-row { justify-content: center; flex-direction: column; align-items: stretch; }
.lead-summary { text-align: left; margin: 0 auto var(--s-5); padding: 12px 14px; border-radius: var(--r); background: var(--paper-2); font-size: 14px; color: var(--ink-2); max-width: 360px; }
.lead-summary div { display: flex; justify-content: space-between; gap: 12px; }
.lead-summary span { color: var(--muted); }

/* ---------- 22. Responsive ---------- */
@media (max-width: 1180px) {
  .nav-list .nav-link { padding: 10px 9px; }
  .tour { grid-template-columns: 220px minmax(0, 1fr); }
  .tour-panel { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tour-info { max-width: 60ch; }
}

@media (max-width: 1024px) {
  :root { --header-h: 64px; }
  /* backdrop-filter would make the header the containing block of the fixed menu panel */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: var(--nav-top, var(--header-h)); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: var(--s-5);
    padding: var(--s-4) var(--gutter) calc(var(--s-6) + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--line); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .22s ease, transform .25s var(--ease), visibility .22s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; margin: 0; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-list .nav-link { width: 100%; min-height: 54px; padding: 0 4px; font-size: 1.0625rem; justify-content: space-between; border-radius: 0; }
  .nav-link.is-current::after { display: none; }
  .nav-list .nav-link:hover { background: transparent; }
  .nav-menu { position: static; width: auto; transform: none; box-shadow: none; border: 0; padding: 0 0 8px; display: none; opacity: 1; visibility: visible; }
  .has-menu.is-open .nav-menu { display: block; transform: none; }
  .nav-actions { flex-direction: column; align-items: stretch; }
  .nav-actions .btn { min-height: 50px; font-size: 1rem; }
  .nav-actions .btn-ghost { border: 1.5px solid var(--line-2); }
  body.nav-open { overflow: hidden; }

  .hero-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .hero h1 { max-width: 18ch; }
  .hero-visual { min-height: 500px; width: 100%; max-width: 580px; margin: 0 auto; }
  .ledger-row { gap: var(--s-5); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tour { grid-template-columns: 1fr; }
  .tour-tabs { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); }
  .tour-tabs::-webkit-scrollbar { display: none; }
  .tour-tab { flex: none; width: auto; min-height: 44px; border: 1px solid var(--line-2); border-radius: 999px; white-space: nowrap; }
  .tour-tab.is-active { border-color: var(--indigo); }
  .tour-tab.is-active::before { display: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-7); }
  .steps::before, .steps::after { display: none; }
  .ind-panel { grid-template-columns: 1fr; gap: var(--s-6); }
  .plans { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .plan-featured { order: -1; }
  .plan-desc, .plan-note { min-height: 0; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quotes { grid-template-columns: 1fr; }
  .tools-grid, .faq-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .faq-grid .section-head { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  :root { --gutter: 16px; --fs-base: 1rem; }
  .section, .invoice-templates-section, .final-cta { padding: var(--s-8) 0; }
  .section-head { margin-bottom: var(--s-6); }
  .section-head p { font-size: 1.0625rem; }
  .announce-inner { justify-content: space-between; }
  .announce p { text-align: left; font-size: 14px; }
  .announce-link { margin-left: 4px; }
  .hero { padding-top: var(--s-6); }
  .hero-lead { font-size: 1.0625rem; }
  .hero-actions .btn { width: 100%; }
  .hero-points { flex-direction: column; gap: 8px; }
  .hero-visual { min-height: 470px; margin: 0 -8px; }
  .receipt { --paper-w: 268px; padding: 18px 18px 30px; font-size: 12.5px; }
  .receipt-stamp { right: -14px; bottom: 26px; font-size: 13px; }
  .ledger-sheet { inset: 14px 4% 26px 4%; }
  .hero-visual .visual-note { right: 6%; }
  .shoptypes { margin-top: var(--s-6); }

  .ledger::before { display: none; }
  .ledger-headrow { display: none; }
  .ledger-row { grid-template-columns: 1fr; gap: 10px; padding: 20px 0; }
  .lc-cost::before { content: "What it costs: "; font-family: var(--sans); font-style: normal; font-weight: 600; font-size: 14px; color: var(--muted); }
  .lc-fix { margin-top: 4px; padding: 12px 12px 12px 42px; background: var(--indigo-50); border-radius: var(--r); }
  .lc-fix::before { left: 12px; top: 14px; background-color: #fff; }

  .feature-grid { grid-template-columns: 1fr; }
  .chip-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; }
  .chip-tabs::-webkit-scrollbar { display: none; }
  .chip { flex: none; white-space: nowrap; }
  .kpis, .kpis-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis-3 .kpi:last-child { grid-column: 1 / -1; }
  .qr-split, .scan-split { grid-template-columns: 1fr; }
  .stockbars div { grid-template-columns: 1fr 70px 52px; }
  .screen-bar .toggle { width: 100%; }
  .screen-bar .toggle-btn { flex: 1; }

  .steps { grid-template-columns: 1fr; row-gap: var(--s-6); padding-left: 0; }
  .step { display: grid; grid-template-columns: 44px 1fr; column-gap: var(--s-4); }
  .step > * { grid-column: 2; }
  .step-num { grid-column: 1; grid-row: 1 / span 4; }
  .step h3 { margin-top: 8px; }

  .ind-tabs { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .ind-flow { grid-template-columns: 1fr; }
  .ind-main .btn-row .btn { width: 100%; white-space: normal; }
  .ind-aside { padding: var(--s-5); }

  .tpl-top-controls { flex-direction: column; align-items: stretch; }
  .tpl-top-controls .btn { width: 100%; }
  .homepage-5-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 16px; scrollbar-width: thin; }
  .homepage-5-grid > * { scroll-snap-align: start; }
  .homepage-5-grid:has(.thermal-dual-stage) { grid-auto-columns: 100%; }

  .plan { padding: var(--s-5); }
  .plan-flag { left: var(--s-5); }
  .pricing-controls .toggle { width: 100%; }
  .pricing-controls .toggle-btn { flex: 1; padding: 0 6px; }

  .pillars { grid-template-columns: 1fr; gap: var(--s-5); }
  .support-band { padding: var(--s-5); margin-top: var(--s-7); }
  .support-band .btn-row, .support-band .btn { width: 100%; }

  .faq-item summary { font-size: 1rem; }
  .faq-body p { padding-right: 4px; }
  .final-cta .btn { width: 100%; }
  .final-cta::before { display: none; }

  .footer-grid { grid-template-columns: 1fr; gap: var(--s-5); }

  .lead-field-2 { grid-template-columns: 1fr; }
  .modal { align-items: flex-end; padding: 0; }
  .modal-box { max-width: none; border-radius: 18px 18px 0 0; padding: var(--s-5) var(--s-5) calc(var(--s-5) + env(safe-area-inset-bottom)); max-height: 92vh; transform: translateY(40px); }

  /* mobile bottom bar replaces the floating callback button */
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97);
    border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgba(22,33,62,.4);
    transition: transform .25s var(--ease);
  }
  .mobile-bar .btn { min-height: 46px; }
  body.nav-open .mobile-bar, body.modal-open .mobile-bar { transform: translateY(110%); }
  .callback-fab, .callback-panel { display: none !important; }
  .to-top { right: 16px; bottom: calc(80px + env(safe-area-inset-bottom)); }
}

@media (max-width: 380px) {
  .receipt { --paper-w: 246px; }
  .hero h1 { font-size: 2.05rem; }
  .btn-lg { padding: 0 18px; }
}

/* ---------- 23. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .js .reveal, .js [data-stagger] { opacity: 1 !important; transform: none !important; }
  .js .scene-bill.is-printing [data-rline] { opacity: 1; transform: none; }
  .receipt-scan { display: none; }
}

/* ---------- 24. Switching section & plan bundle note ---------- */
.switch { border-top: 1px solid var(--line); }
.switch-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--s-8); align-items: start; }
.switch .section-head { margin-bottom: 0; }
.switch-compare { font-weight: 600; }
.switch-steps { grid-template-columns: 1fr; margin-top: 0; }
.plan-bundle { margin: 0 0 var(--s-5); padding: 14px 18px; border-left: 3px solid var(--marigold); background: var(--marigold-50); border-radius: 0 var(--r) var(--r) 0; font-size: var(--fs-sm); color: var(--ink-2); max-width: 760px; }
.plan-bundle strong { color: var(--ink); }
@media (max-width: 1024px) { .switch-grid { grid-template-columns: 1fr; gap: var(--s-6); } }
@media (max-width: 767px) { .switch .btn-row .btn { width: 100%; } }

/* =========================================================
   25. Motion system (landing page only: body.home)
   Principles: transform/opacity only, one easing family,
   nothing loops unless it is ambient and paused off-screen,
   everything off under prefers-reduced-motion.
   ========================================================= */
:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);   /* entrances */
  --ease-soft: cubic-bezier(0.45, 0, 0.2, 1);  /* ambient loops */
  --dur-1: .2s; --dur-2: .45s; --dur-3: .8s;
}

/* Reveal: uses the individual `translate` property so hover transforms still work */
.js .reveal { transform: none; translate: 0 14px; transition: opacity .6s var(--ease), translate .6s var(--ease); }
.js .reveal.in { translate: none; }
html.js body.home .reveal { translate: 0 22px; filter: blur(4px); transition: opacity var(--dur-3) var(--ease-out), translate var(--dur-3) var(--ease-out), filter var(--dur-3) var(--ease-out); }
html.js body.home .reveal.in { translate: none; filter: none; }

/* Scroll progress (header bottom edge) */
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--indigo), var(--marigold)); transform: scaleX(var(--p, 0)); transform-origin: left center; pointer-events: none; }
body:not(.home) .scroll-progress { display: none; }

/* ---------- Aurora: animated gradient field (hero + final CTA) ---------- */
body.home .hero > .container { position: relative; z-index: 1; }
.aurora { position: absolute; inset: -12% -8% -8% -8%; z-index: 0; pointer-events: none; overflow: hidden; translate: 0 calc(var(--sy, 0) * 1px); }
.aurora span { position: absolute; border-radius: 50%; will-change: transform; animation: auroraA 24s var(--ease-soft) infinite alternate; }
.aurora span:nth-child(1) { width: 640px; height: 640px; top: -12%; right: 2%; background: radial-gradient(circle, rgba(52, 57, 176, .20) 0%, rgba(52, 57, 176, 0) 66%); }
.aurora span:nth-child(2) { width: 520px; height: 520px; top: 34%; right: 26%; background: radial-gradient(circle, rgba(235, 162, 28, .17) 0%, rgba(235, 162, 28, 0) 66%); animation-name: auroraB; animation-duration: 28s; }
.aurora span:nth-child(3) { width: 760px; height: 760px; top: -30%; left: -18%; background: radial-gradient(circle, rgba(96, 126, 240, .13) 0%, rgba(96, 126, 240, 0) 64%); animation-name: auroraC; animation-duration: 32s; }
@keyframes auroraA { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-60px, 40px) scale(1.08); } 100% { transform: translate(30px, 80px) scale(.96); } }
@keyframes auroraB { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(80px, -30px) scale(1.12); } 100% { transform: translate(-40px, 20px) scale(1); } }
@keyframes auroraC { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(50px, 60px) scale(.94); } 100% { transform: translate(90px, -20px) scale(1.06); } }
.aurora-dark span:nth-child(1) { background: radial-gradient(circle, rgba(96, 110, 255, .38) 0%, rgba(96, 110, 255, 0) 66%); }
.aurora-dark span:nth-child(2) { background: radial-gradient(circle, rgba(235, 162, 28, .20) 0%, rgba(235, 162, 28, 0) 66%); }
.aurora-dark span:nth-child(3) { background: radial-gradient(circle, rgba(52, 57, 176, .45) 0%, rgba(52, 57, 176, 0) 64%); }
.is-paused .aurora span, .is-paused .float-chip, .is-paused .receipt-scan { animation-play-state: paused !important; }

/* ---------- Hero headline: word-by-word reveal ---------- */
body.home h1.is-split { animation: none; }
body.home h1.is-split .hw { display: inline-block; opacity: 0; translate: 0 .32em; filter: blur(8px); animation: wordIn .9s var(--ease-out) forwards; animation-delay: calc(var(--w, 0) * 55ms + 120ms); }
@keyframes wordIn { to { opacity: 1; translate: none; filter: blur(0); } }

/* ---------- Hero visual: depth + pointer parallax + floating cards ---------- */
body.home .ledger-sheet { translate: calc(var(--px, 0) * -6px) calc(var(--py, 0) * -6px); transition: translate .35s linear; animation: sheetIn 1s var(--ease-out) both; }
body.home .receipt { translate: calc(var(--px, 0) * 8px) calc(var(--py, 0) * 8px); transition: translate .35s linear; animation: receiptIn 1s var(--ease-out) .15s both; }
@keyframes sheetIn { from { opacity: 0; transform: rotate(-6deg) translateY(24px); } to { opacity: 1; transform: rotate(-2.2deg); } }
@keyframes receiptIn { from { opacity: 0; transform: rotate(5deg) translateY(36px); } to { opacity: 1; transform: rotate(1.4deg); } }

.float-chip {
  --d: 1;
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; max-width: 250px;
  padding: 10px 14px 10px 10px; border: 1px solid rgba(203, 209, 223, .8); border-radius: 14px;
  background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 18px 40px -18px rgba(22, 33, 62, .35), 0 2px 6px rgba(22, 33, 62, .06);
  font-size: 13px; line-height: 1.3; color: var(--ink);
  transform: translate3d(calc(var(--px, 0) * var(--d) * 14px), calc(var(--py, 0) * var(--d) * 14px + var(--sy, 0) * var(--d) * -0.06px), 0);
  transition: transform .35s linear;
  animation: chipIn .8s var(--ease-out) both, bob 7s var(--ease-soft) infinite;
}
.float-chip strong { display: block; font-weight: 600; white-space: nowrap; }
.float-chip small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; }
.fc-icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--indigo-50); color: var(--indigo); }
.fc-icon .ico { width: 18px; height: 18px; }
.fc-icon.is-warn { background: var(--marigold-50); color: var(--marigold-800); }
.fc-icon.is-ai { background: #e3f4ea; color: var(--green); }
.fc-order { --d: 1.2; top: 3%; left: -6%; animation-delay: 2.0s, 2.8s; }
.fc-stock { --d: 0.8; top: 8%; right: -9%; animation-delay: 2.5s, 3.3s; animation-duration: .8s, 8s; }
.fc-scan  { --d: 1.5; bottom: 4%; left: -4%; animation-delay: 3.0s, 3.8s; animation-duration: .8s, 9s; }
@media (min-width: 1025px) { body.home .hero-visual { min-height: 610px; } }
@keyframes chipIn { from { opacity: 0; scale: .92; } to { opacity: 1; scale: 1; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* ---------- Cards: elevation, cursor spotlight border, icon draw ---------- */
body.home .spot { position: relative; isolation: isolate; }
body.home .spot::after {
  content: ""; position: absolute; inset: -1px; z-index: 2; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(52, 57, 176, .65), rgba(235, 162, 28, .25) 45%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity var(--dur-2) var(--ease-out);
}
body.home .spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(52, 57, 176, .06), transparent 70%);
  opacity: 0; transition: opacity var(--dur-2) var(--ease-out);
}
body.home .spot:hover::after, body.home .spot:hover::before { opacity: 1; }
body.home .feature { transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out); }
body.home .feature:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 24px 48px -24px rgba(22, 33, 62, .35), 0 2px 8px rgba(22, 33, 62, .05); }
body.home .feature-icon { transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out); }
body.home .feature:hover .feature-icon { transform: translateY(-2px); background: var(--indigo); color: #fff; }
body.home .feature:hover .feature-icon.is-ai { background: var(--marigold); color: var(--ink); }
body.home .feature:hover .feature-icon .ico { animation: iconDraw .9s var(--ease-out) both; }
@keyframes iconDraw { from { stroke-dasharray: 90; stroke-dashoffset: 90; } to { stroke-dasharray: 90; stroke-dashoffset: 0; } }
body.home .feature-link { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1.5px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size var(--dur-2) var(--ease-out); }
body.home .feature-link:hover { text-decoration: none; background-size: 100% 1.5px; }
body.home .plan { transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); }
body.home .plan:hover { transform: translateY(-4px); box-shadow: 0 28px 56px -28px rgba(22, 33, 62, .4); }
body.home .ind-flow li { transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); }
body.home .ind-flow li:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }

/* ---------- Buttons: sheen sweep + soft glow ---------- */
body.home .btn-primary, body.home .btn-gold { overflow: hidden; isolation: isolate; }
body.home .btn-primary::before, body.home .btn-gold::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, .32) 48%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease-out);
}
body.home .btn-primary:hover::before, body.home .btn-gold:hover::before { transform: translateX(120%); }
body.home .btn-primary:hover { box-shadow: 0 14px 28px -12px rgba(52, 57, 176, .75); }
body.home .btn-gold:hover { box-shadow: 0 14px 28px -12px rgba(235, 162, 28, .7); }
body.home .btn { transition: background-color var(--dur-1) ease, border-color var(--dur-1) ease, color var(--dur-1) ease, transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); }
body.home :focus-visible { transition: outline-offset var(--dur-1) var(--ease-out); }

/* ---------- Navigation: grow-in underline, staggered menus ---------- */
@media (min-width: 1025px) {
  body.home .nav-link[data-nav]::after, body.home .menu-trigger::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--indigo); transform: scaleX(0); transition: transform .35s var(--ease-out); display: block; }
  body.home .nav-link[data-nav]:hover::after, body.home .nav-link.is-current::after, body.home .menu-trigger[aria-expanded="true"]::after { transform: scaleX(1); }
  body.home .nav-list .nav-link:hover { background: transparent; }
}
body.home .has-menu.is-open .nav-menu a { animation: menuItem .4s var(--ease-out) both; }
body.home .has-menu.is-open .nav-menu a:nth-child(2) { animation-delay: .04s; }
body.home .has-menu.is-open .nav-menu a:nth-child(3) { animation-delay: .08s; }
body.home .has-menu.is-open .nav-menu a:nth-child(4) { animation-delay: .12s; }
body.home .has-menu.is-open .nav-menu a:nth-child(5) { animation-delay: .16s; }
@keyframes menuItem { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: none; } }
@media (max-width: 1024px) {
  body.home .main-nav.is-open .nav-list > li, body.home .main-nav.is-open .nav-actions { animation: menuItem .45s var(--ease-out) both; }
  body.home .main-nav.is-open .nav-list > li:nth-child(2) { animation-delay: .04s; }
  body.home .main-nav.is-open .nav-list > li:nth-child(3) { animation-delay: .08s; }
  body.home .main-nav.is-open .nav-list > li:nth-child(4) { animation-delay: .12s; }
  body.home .main-nav.is-open .nav-list > li:nth-child(5) { animation-delay: .16s; }
  body.home .main-nav.is-open .nav-list > li:nth-child(6) { animation-delay: .20s; }
  body.home .main-nav.is-open .nav-actions { animation-delay: .26s; }
}

/* ---------- Product tour: layered depth, float, tilt, live rows ---------- */
body.home .tour-panel .screen {
  box-shadow: 14px 14px 0 -1px var(--paper-2), 14px 14px 0 0 var(--line), 0 34px 64px -32px rgba(22, 33, 62, .38);
  transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease-out);
}
body.home .tour-panel.is-active .kpi, body.home .tour-panel.is-active .ui-table tbody tr { animation: rowIn .55s var(--ease-out) both; }
body.home .tour-panel.is-active .kpi:nth-child(2) { animation-delay: .06s; }
body.home .tour-panel.is-active .kpi:nth-child(3) { animation-delay: .12s; }
body.home .tour-panel.is-active .kpi:nth-child(4) { animation-delay: .18s; }
body.home .tour-panel.is-active .ui-table tbody tr:nth-child(1) { animation-delay: .22s; }
body.home .tour-panel.is-active .ui-table tbody tr:nth-child(2) { animation-delay: .32s; }
body.home .tour-panel.is-active .ui-table tbody tr:nth-child(3) { animation-delay: .42s; }
body.home .tour-panel.is-active .ui-table tbody tr:nth-child(4) { animation-delay: .52s; }
@keyframes rowIn { from { opacity: 0; translate: -10px 0; } to { opacity: 1; translate: none; } }
body.home .qr-card, body.home .scan-doc { position: relative; overflow: hidden; }
.qr-scanline { position: absolute; left: 12%; right: 12%; top: 14%; height: 2px; border-radius: 2px; background: var(--marigold); box-shadow: 0 0 14px 3px rgba(235, 162, 28, .55); animation: qrScan 2.6s var(--ease-soft) 3 both; pointer-events: none; }
.scan-doc .qr-scanline { background: var(--indigo); box-shadow: 0 0 14px 3px rgba(52, 57, 176, .4); }
@keyframes qrScan { 0%, 100% { top: 12%; opacity: .2; } 10%, 90% { opacity: 1; } 50% { top: 48%; } }

/* ---------- Smooth hand-off between white and tinted sections ---------- */
body.home .features, body.home .steps-section, body.home .invoice-templates-section, body.home .trust {
  background: linear-gradient(180deg, #fff 0, var(--paper-2) 160px, var(--paper-2) calc(100% - 160px), #fff 100%);
}
body.home .final-cta .final-inner { z-index: 1; }

/* ---------- Responsive tuning ---------- */
@media (max-width: 1024px) {
  .fc-order { left: 0; }
  .fc-stock { right: 0; }
  .fc-scan { left: 2%; }
  .aurora span:nth-child(1) { width: 460px; height: 460px; }
  .aurora span:nth-child(3) { width: 520px; height: 520px; }
}
@media (max-width: 767px) {
  .float-chip { padding: 8px 10px 8px 8px; gap: 8px; font-size: 12px; border-radius: 12px; }
  .float-chip small { font-size: 11px; }
  .fc-icon { width: 28px; height: 28px; border-radius: 8px; }
  .fc-order { top: 2%; left: 16px; }
  .fc-stock { top: auto; bottom: 18%; right: 16px; }
  .fc-scan { display: none; }
  body.home .tour-panel .screen { box-shadow: 8px 8px 0 -1px var(--paper-2), 8px 8px 0 0 var(--line), 0 24px 48px -28px rgba(22, 33, 62, .35); margin-right: 8px; }
  html.js body.home .reveal { filter: none; }
}
@media (hover: none) {
  body.home .spot::after, body.home .spot::before { display: none; }
}

/* ---------- Reduced motion: everything visible, nothing moves ---------- */
@media (prefers-reduced-motion: reduce) {
  .aurora span, .float-chip, .qr-scanline, body.home .ledger-sheet, body.home .receipt { animation: none !important; }
  .float-chip, body.home h1.is-split .hw, body.home .tour-panel.is-active .kpi, body.home .tour-panel.is-active .ui-table tbody tr { opacity: 1 !important; translate: none !important; scale: none !important; filter: none !important; }
  .float-chip, body.home .receipt, body.home .ledger-sheet, body.home .tour-panel .screen { transform: none; translate: none; }
  body.home .receipt { transform: rotate(1.4deg); }
  body.home .ledger-sheet { transform: rotate(-2.2deg); }
  html.js body.home .reveal { filter: none !important; translate: none !important; }
  .qr-scanline { display: none; }
  body.home .btn-primary::before, body.home .btn-gold::before { display: none; }
}

/* ---------- 26. Hero headline rotator ---------- */
.h1-lead { display: inline; }
@media (min-width: 1025px) { body.home .hero h1 { max-width: none; } }
.rotator { display: grid; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.rot-item { grid-area: 1 / 1; align-self: start; }
.rot-item + .rot-item { visibility: hidden; }              /* without JS only the first phrase shows */
.rotator.is-live .rot-item { visibility: visible; opacity: 0; translate: 0 105%; transition: translate .7s var(--ease-out), opacity .5s var(--ease-out); }
.rotator.is-live .rot-item.is-active { opacity: 1; translate: none; }
.rotator.is-live .rot-item.is-leaving { opacity: 0; translate: 0 -105%; }
body.home h1.is-split .rotator { opacity: 0; animation: wordIn .9s var(--ease-out) forwards; animation-delay: .5s; }
@media (prefers-reduced-motion: reduce) {
  body.home h1.is-split .rotator { opacity: 1; animation: none; }
}
/* keep every rotating phrase to two lines at in-between widths */
@media (min-width: 1025px) and (max-width: 1240px) { body.home .hero h1 { font-size: 3.25rem; } }
@media (max-width: 380px) { body.home .hero h1 { font-size: 1.8rem; } }

/* ---------- 27. Hero scenes: the picture follows the rotating headline ---------- */
.scenes { position: relative; z-index: 1; display: grid; place-items: center; width: 100%; }
.scene { grid-area: 1 / 1; position: relative; }
.scenes.is-live .scene { transition: opacity .55s var(--ease-out), translate .75s var(--ease-out), visibility 0s linear .75s; opacity: 0; translate: 0 48px; visibility: hidden; }
.scenes.is-live .scene.is-active { opacity: 1; translate: none; visibility: visible; transition-delay: .12s, .12s, 0s; }
.scenes.is-live .scene.is-leaving { opacity: 0; translate: 0 -48px; visibility: visible; transition-delay: 0s; }

.sc-card {
  width: 300px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff;
  box-shadow: var(--shadow-3); font-size: 13px; color: var(--ink-2); rotate: 1.2deg;
  translate: calc(var(--px, 0) * 8px) calc(var(--py, 0) * 8px); transition: translate .35s linear;
}
.sc-card .ico { width: 16px; height: 16px; }
.sc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.sc-head strong { color: var(--ink); font-size: 14px; }
.sc-foot { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: var(--paper-2); font-weight: 500; }
.sc-foot.ok { background: #e3f4ea; color: var(--green-700); }
.sc-rows { list-style: none; display: grid; }
.sc-rows li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line-2); }
.sc-rows li:last-child { border-bottom: 0; }
.sc-rows span { color: var(--ink); }
.sc-rows small { display: block; color: var(--muted); font-size: 11.5px; }
.sc-rows b { font-weight: 600; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.t-muted { color: var(--muted) !important; }
.sc-total { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1.5px solid var(--ink); font-weight: 600; color: var(--ink); }
.sc-total.big b { font-family: var(--serif); font-size: 22px; }
.sc-total.big { align-items: baseline; }

/* 1 print formats */
.sc-papers { display: grid; grid-template-columns: 0.7fr 1fr 1.25fr; gap: 12px; align-items: end; }
.sc-paper-col { display: grid; justify-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.sc-paper { position: relative; width: 100%; display: grid; align-content: start; gap: 5px; padding: 10px 8px; background: #fffefa; border: 1px solid var(--line-2); border-radius: 3px; overflow: hidden; }
.sc-paper i { display: block; height: 3px; border-radius: 2px; background: var(--line-2); }
.sc-paper i:nth-child(odd) { width: 70%; }
.sc-paper em { display: block; height: 8px; width: 55%; border-radius: 2px; background: var(--indigo); opacity: .7; margin-bottom: 4px; }
.sc-paper b { display: block; height: 5px; margin-top: 4px; background: var(--ink); width: 50%; justify-self: end; border-radius: 2px; }
.p-thermal { height: 150px; }
.p-a5 { height: 112px; }
.p-a4 { height: 150px; }
.scenes.is-live .scene.is-active .sc-paper { animation: paperOut 1.1s var(--ease-out) both; }
.scenes.is-live .scene.is-active .sc-paper-col:nth-child(2) .sc-paper { animation-delay: .15s; }
.scenes.is-live .scene.is-active .sc-paper-col:nth-child(3) .sc-paper { animation-delay: .3s; }
@keyframes paperOut { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

/* 2 barcode */
.sc-barcode { position: relative; display: grid; justify-items: center; gap: 4px; padding: 12px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-family: var(--mono); font-size: 11.5px; color: var(--ink); }
.sc-bars { width: 170px; height: 46px; background: repeating-linear-gradient(90deg, #1f2433 0 2px, transparent 2px 4px, #1f2433 4px 5px, transparent 5px 7px, #1f2433 7px 10px, transparent 10px 11px, #1f2433 11px 12px, transparent 12px 15px); }
.sc-laser { position: absolute; left: 6%; right: 6%; top: 40%; height: 2px; background: var(--red); box-shadow: 0 0 10px 2px rgba(180, 35, 24, .45); border-radius: 2px; }
.scenes.is-live .scene.is-active .sc-barcode .sc-laser { animation: laser 1.2s var(--ease-soft) 2 both; }
@keyframes laser { 0%, 100% { top: 18%; } 50% { top: 62%; } }
.sc-rows li.is-new { background: linear-gradient(90deg, rgba(19,128,74,.08), transparent); }
.sc-rows li.is-new em { font-style: normal; font-size: 11px; color: var(--green); margin-left: 6px; font-weight: 600; }
.scenes.is-live .scene.is-active .sc-rows li.is-new { animation: rowIn .5s var(--ease-out) 1.1s both; }

/* 3 bill photo */
.sc-doc { position: relative; display: grid; gap: 6px; padding: 14px; margin-bottom: 8px; background: #fbfaf5; border: 1px solid var(--line-2); border-radius: 6px; rotate: -2deg; overflow: hidden; }
.sc-doc span { font-size: 11.5px; font-weight: 600; color: var(--ink); }
.sc-doc i { display: block; height: 3px; border-radius: 2px; background: var(--line-2); }
.sc-doc i:nth-child(even) { width: 80%; }
.sc-doc .sc-laser { background: var(--indigo); box-shadow: 0 0 10px 2px rgba(52, 57, 176, .4); height: 2px; width: auto; }
.scenes.is-live .scene.is-active .sc-doc .sc-laser { animation: laser 1.4s var(--ease-soft) 2 both; }
.scenes.is-live .scene.is-active[data-scene="3"] .sc-rows li { animation: rowIn .5s var(--ease-out) both; }
.scenes.is-live .scene.is-active[data-scene="3"] .sc-rows li:nth-child(1) { animation-delay: .9s; }
.scenes.is-live .scene.is-active[data-scene="3"] .sc-rows li:nth-child(2) { animation-delay: 1.1s; }
.scenes.is-live .scene.is-active[data-scene="3"] .sc-rows li:nth-child(3) { animation-delay: 1.3s; }

/* 4 QR catalogue (phone) */
.sc-phone { width: 250px; padding: 0; overflow: hidden; border: 6px solid var(--ink); border-radius: 26px; }
.sc-phone-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: var(--ink); color: #fff; }
.sc-phone-bar .ico { color: var(--marigold); }
.sc-cat { list-style: none; padding: 6px 14px; }
.sc-cat li { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); }
.sc-cat span { color: var(--ink); }
.sc-cat small { display: block; color: var(--muted); font-size: 11.5px; }
.sc-cat b { padding: 4px 10px; border-radius: 999px; background: var(--green); color: #fff; font-size: 11.5px; font-weight: 600; }
.sc-cat b.is-off { background: #fff; color: var(--green); border: 1px solid var(--green); }
.sc-cart { margin: 6px 14px 14px; padding: 10px; border-radius: 10px; background: var(--indigo); color: #fff; text-align: center; font-weight: 600; }
.scenes.is-live .scene.is-active .sc-cart { animation: pulseIn .8s var(--ease-out) .8s both; }
@keyframes pulseIn { 0% { scale: .9; opacity: 0; } 60% { scale: 1.03; opacity: 1; } 100% { scale: 1; } }

/* 5 expiry, 6 khata */
.sc-badge { padding: 3px 8px; border-radius: 6px; font-size: 11.5px; }
.sc-badge.bad { background: #fde8e6; color: var(--red) !important; }
.sc-badge.warn { background: var(--marigold-50); color: var(--marigold-800) !important; }
.sc-khata li { display: grid; grid-template-columns: 1fr auto auto; }
.sc-khata em { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--green); padding: 3px 8px; border: 1px solid var(--green); border-radius: 999px; }
.scenes.is-live .scene.is-active .sc-exp li, .scenes.is-live .scene.is-active .sc-khata li { animation: rowIn .5s var(--ease-out) both; }
.scenes.is-live .scene.is-active .sc-exp li:nth-child(2), .scenes.is-live .scene.is-active .sc-khata li:nth-child(2) { animation-delay: .12s; }
.scenes.is-live .scene.is-active .sc-exp li:nth-child(3), .scenes.is-live .scene.is-active .sc-khata li:nth-child(3) { animation-delay: .24s; }

/* 7 WhatsApp */
.sc-chat { background: #efeae2; padding: 0; overflow: hidden; }
.sc-chat-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #075e54; color: #fff; }
.sc-avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: #075e54; font-weight: 700; }
.sc-bubble { position: relative; margin: 10px 14px 0 auto; max-width: 82%; padding: 8px 10px; border-radius: 10px 2px 10px 10px; background: #d9fdd3; color: #111b21; box-shadow: 0 1px 1px rgba(0,0,0,.08); width: fit-content; }
.sc-bubble:last-child { margin-bottom: 14px; }
.sc-bubble small { display: block; text-align: right; font-size: 10.5px; color: #667781; margin-top: 2px; }
.sc-file { display: flex; align-items: center; gap: 10px; }
.sc-file .ico { width: 28px; height: 28px; color: var(--red); }
.sc-file strong { display: block; font-size: 12.5px; }
.scenes.is-live .scene.is-active .sc-bubble { animation: rowIn .45s var(--ease-out) both; }
.scenes.is-live .scene.is-active .sc-bubble:nth-of-type(2) { animation-delay: .5s; }
.scenes.is-live .scene.is-active .sc-bubble:nth-of-type(3) { animation-delay: 1s; }
.scenes.is-live .scene.is-active .sc-bubble:nth-of-type(4) { animation-delay: 1.5s; }

/* 8 profit, 9 GST */
.sc-split { display: flex; height: 8px; margin-top: 10px; border-radius: 6px; overflow: hidden; background: var(--line); }
.sc-split i { width: var(--w); }
.sc-split i:nth-child(1) { background: var(--line-2); }
.sc-split i:nth-child(2) { background: var(--marigold); }
.sc-split i:nth-child(3) { background: var(--green); }
.scenes.is-live .scene.is-active .sc-split { animation: grow .9s var(--ease-out) .3s both; transform-origin: left; }
.sc-reports { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.sc-reports span { padding: 4px 10px; border-radius: 999px; background: var(--indigo-50); color: var(--indigo); font-size: 11.5px; font-weight: 600; }

@media (max-width: 767px) {
  .sc-card { width: 268px; padding: 14px; font-size: 12.5px; }
  .sc-phone { width: 236px; padding: 0; }
  .sc-chat { padding: 0; }
  .p-thermal, .p-a4 { height: 128px; }
  .p-a5 { height: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .sc-card { translate: none; }
}

/* on phones the switching screens carry the story; the floating cards would cover them */
@media (max-width: 767px) { .hero-visual.has-scenes .float-chip { display: none; } }
@media (min-width: 1025px) { .sc-card { width: 320px; } .sc-phone { width: 260px; } }
