/* ShifaDesk marketing site */
:root {
  --ink: #0b1220;
  --ink-2: #3b4558;
  --ink-3: #5d6779;
  --line: #e4e8f0;
  --line-2: #eef1f6;
  --ground: #ffffff;
  --ground-2: #f6f8fb;
  --blue: #2563eb;
  --blue-deep: #1d4ed8;
  --indigo: #4f46e5;
  --blue-soft: #eaf1ff;
  --red: #b42318;
  --red-soft: #fdecea;
  --amber: #b54708;
  --amber-soft: #fef4e6;
  --green: #067647;
  --green-soft: #e7f6ee;
  --night: #070d1c;
  --night-2: #0e1730;
  --night-line: rgba(173, 190, 230, 0.16);
  --night-ink: #e8edf8;
  --night-ink-2: #a7b3cc;

  --radius: 14px;
  --radius-s: 9px;
  --shadow-1: 0 1px 2px rgba(11, 18, 32, 0.06), 0 2px 6px rgba(11, 18, 32, 0.04);
  --shadow-app: 0 2px 4px rgba(11, 18, 32, 0.04), 0 12px 24px -6px rgba(11, 18, 32, 0.1), 0 32px 64px -16px rgba(30, 41, 99, 0.22);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: "ss01";
}
img, svg { display: block; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
::selection { background: rgba(37, 99, 235, 0.18); color: var(--ink); }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: #c3cad8 transparent; }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-thumb { background: #c3cad8; border-radius: 99px; border: 3px solid var(--ground); }

h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -0.025em; }
p { margin: 0; text-wrap: pretty; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.sr, .sprite { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: 600 15px/1 var(--font); text-decoration: none; letter-spacing: -0.005em;
  padding: 12px 18px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn--small { padding: 9px 14px; font-size: 14px; }
.btn--large { padding: 15px 22px; font-size: 16px; }
.btn--primary { color: #fff; background: var(--blue); box-shadow: 0 1px 2px rgba(29, 78, 216, 0.3), 0 6px 16px -4px rgba(37, 99, 235, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.btn--primary:hover { background: var(--blue-deep); transform: translateY(-1px); box-shadow: 0 2px 4px rgba(29, 78, 216, 0.3), 0 10px 22px -6px rgba(37, 99, 235, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.btn--ghost { color: var(--ink); background: rgba(255, 255, 255, 0.7); border-color: var(--line); }
.btn--ghost:hover { background: #fff; border-color: #cfd6e3; }
.btn--ghost .ic { transition: transform 0.3s var(--ease); }
.btn--ghost:hover .ic { transform: translateX(3px); }
.btn--white { background: #fff; color: var(--ink); box-shadow: 0 8px 24px -8px rgba(5, 10, 40, 0.5); }
.btn--white:hover { transform: translateY(-1px); }
.btn--white .ic { color: #128c4b; }
.btn:active { transform: translateY(0) scale(0.98); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; transition: background-color 0.3s, box-shadow 0.3s; }
.nav.is-scrolled { background: rgba(255, 255, 255, 0.82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav__inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand img { border-radius: 7px; }
.nav__links { display: flex; gap: 26px; margin-left: 12px; }
.nav__links a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; transition: color 0.2s; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { margin-left: auto; }
.nav__menu { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; place-items: center; }
.nav__burger, .nav__burger::before, .nav__burger::after { display: block; width: 16px; height: 1.75px; background: var(--ink); border-radius: 2px; position: relative; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav__burger::before, .nav__burger::after { content: ""; position: absolute; left: 0; }
.nav__burger::before { top: -5px; }
.nav__burger::after { top: 5px; }
.nav__menu[aria-expanded="true"] .nav__burger { background: transparent; }
.nav__menu[aria-expanded="true"] .nav__burger::before { transform: translateY(5px) rotate(45deg); }
.nav__menu[aria-expanded="true"] .nav__burger::after { transform: translateY(-5px) rotate(-45deg); }
.mobile-menu { display: grid; gap: 4px; padding: 8px var(--gutter) 20px; background: #fff; border-bottom: 1px solid var(--line); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { padding: 12px 4px; color: var(--ink); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line-2); }
.mobile-menu .btn { margin-top: 12px; }

/* Hero */
.hero { position: relative; padding: clamp(40px, 7vw, 88px) 0 clamp(64px, 8vw, 112px); margin-top: -68px; padding-top: calc(68px + clamp(40px, 7vw, 88px)); overflow: hidden; isolation: isolate; }
.hero__field { position: absolute; inset: 0 0 auto 0; height: 72%; z-index: -1; overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% 62%, 0 100%); }
.hero__field::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.55) 100%); }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.85; will-change: transform; }
.blob--a { width: 60vw; height: 60vw; max-width: 820px; max-height: 820px; left: -12vw; top: -30vw; background: #8fb4ff; animation: drift-a 22s var(--ease) infinite alternate; }
.blob--b { width: 46vw; height: 46vw; max-width: 640px; max-height: 640px; right: -8vw; top: -18vw; background: #a99dff; animation: drift-b 26s ease-in-out infinite alternate; }
.blob--c { width: 38vw; height: 38vw; max-width: 520px; max-height: 520px; left: 34vw; top: 4vw; background: #7dd3fc; opacity: 0.6; animation: drift-c 30s ease-in-out infinite alternate; }
.blob--d { width: 30vw; height: 30vw; max-width: 420px; max-height: 420px; left: 10vw; top: 12vw; background: #c7d7ff; animation: drift-b 24s ease-in-out infinite alternate-reverse; }
@keyframes drift-a { to { transform: translate(14vw, 6vw) scale(1.1); } }
@keyframes drift-b { to { transform: translate(-12vw, 8vw) scale(0.92); } }
@keyframes drift-c { to { transform: translate(-16vw, -4vw) scale(1.15); } }

.hero__grid { display: grid; justify-items: center; gap: clamp(40px, 5vw, 64px); }
.hero__copy { display: grid; justify-items: center; text-align: center; }
.hero__title { font-size: clamp(2.3rem, 1.2rem + 3.4vw, 4.4rem); line-height: 1.02; letter-spacing: -0.04em; font-weight: 700; color: var(--ink); max-width: 18ch; }
.hero__sub { margin-top: 22px; font-size: clamp(1.03rem, 0.95rem + 0.35vw, 1.2rem); color: var(--ink-2); max-width: 41rem; line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.hero__facts { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.hero__demo { width: 100%; max-width: 1060px; display: grid; justify-items: center; }
.hero__demo .app { width: 100%; text-align: left; }
.hero__facts li { display: inline-flex; align-items: center; gap: 7px; }
.hero__facts .ic { color: var(--blue); }

/* Mode switch */
.mode-switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 14px; background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(203, 213, 230, 0.9); border-radius: 999px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow-1); }
.mode-switch__btn { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 16px; border: 0; background: none; font: 600 14px/1 var(--font); color: var(--ink-3); cursor: pointer; border-radius: 999px; transition: color 0.3s; white-space: nowrap; }
.mode-switch__btn.is-active { color: var(--ink); }
.mode-switch__thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); background: #fff; border-radius: 999px; box-shadow: 0 1px 2px rgba(11, 18, 32, 0.1), 0 4px 10px -2px rgba(11, 18, 32, 0.1); transition: transform 0.5s var(--ease); }
.mode-switch[data-current="offline"] .mode-switch__thumb { transform: translateX(100%); }

/* App window */
.app { position: relative; background: #fff; border: 1px solid rgba(207, 214, 227, 0.9); border-radius: var(--radius); box-shadow: var(--shadow-app); overflow: hidden; font-size: 14px; color: var(--ink); }
.app__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: #fbfcfe; }
.app__title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; color: var(--ink); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app__title img { border-radius: 4px; }

.conn { position: relative; font-size: 12.5px; font-weight: 600; }
.conn > span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; transition: opacity 0.35s, transform 0.45s var(--ease); white-space: nowrap; }
.conn__online { color: var(--green); background: var(--green-soft); }
.conn__offline { position: absolute; right: 0; top: 0; color: var(--amber); background: var(--amber-soft); opacity: 0; transform: translateY(6px); }
.pos[data-mode-state="offline"] .conn__online { opacity: 0; transform: translateY(-6px); }
.pos[data-mode-state="offline"] .conn__offline { opacity: 1; transform: none; }

.pos__banner { display: flex; align-items: center; gap: 10px; padding: 0 16px; max-height: 0; overflow: hidden; background: var(--amber-soft); color: #7a3306; font-size: 13px; font-weight: 500; transition: max-height 0.55s var(--ease), padding 0.55s var(--ease); }
.pos__banner .ic { color: var(--amber); }
.pos[data-mode-state="offline"] .pos__banner { max-height: 80px; padding: 10px 16px; }

.pos__body { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); min-height: 360px; }
.pos__left { padding: 18px 20px; border-right: 1px solid var(--line); min-width: 0; }
.pos__right { padding: 18px 20px; background: #fbfcfe; display: flex; flex-direction: column; gap: 12px; min-width: 0; }

.search { display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 12px; border: 1.5px solid var(--blue); border-radius: var(--radius-s); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12); color: var(--ink); font-size: 14px; }
.search .ic { color: var(--blue); }
.search__text:empty::before { content: "Scan or type a medicine…"; color: var(--ink-3); }
.caret { width: 1.5px; height: 18px; background: var(--blue); animation: blink 1s steps(2) infinite; margin-left: -6px; }
@keyframes blink { 50% { opacity: 0; } }

.cart { margin-top: 12px; }
.cart__head, .cart__row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.15fr) 34px 70px; gap: 8px; align-items: center; }
.cart__head { font-size: 11.5px; font-weight: 600; color: var(--ink-3); padding: 0 4px 7px; border-bottom: 1px solid var(--line); }
.cart__head span:nth-child(n+3), .cart__row > span:nth-child(n+3) { text-align: right; }
.cart__rows { min-height: 168px; }
.cart__row { padding: 9px 4px; border-bottom: 1px solid var(--line-2); font-size: 13.5px; animation: row-in 0.6s var(--ease) both; }
.cart__row b { font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart__row small { color: var(--ink-3); font-size: 11.5px; }
.cart__row .mono { font-size: 11.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes row-in { from { opacity: 0; transform: translateY(8px); background: var(--blue-soft); } 40% { background: var(--blue-soft); } to { opacity: 1; transform: none; background: transparent; } }

.pos__note { margin-top: 10px; min-height: 34px; font-size: 12.5px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.pos__note .tag { flex: none; }
.pos__note.is-in { animation: fade-up 0.5s var(--ease) both; }

.totals { display: grid; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.totals__row { display: flex; justify-content: space-between; color: var(--ink-2); font-size: 13px; }
.totals__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 4px; font-weight: 600; }
.totals__total .num { font-size: clamp(20px, 1.2rem + 0.6vw, 26px); font-weight: 600; letter-spacing: -0.03em; }

.pay { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pay span { text-align: center; padding: 8px 2px; border: 1px solid var(--line); border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); background: #fff; transition: all 0.3s var(--ease); }
.pay span.is-on { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }

.khata-chip { display: grid; gap: 7px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; opacity: 0.55; transition: opacity 0.4s; }
.khata-chip.is-on { opacity: 1; }
.khata-chip > div:first-child { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; }
.khata-chip small { color: var(--ink-3); font-size: 11.5px; }
.khata-chip__meter { height: 6px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.khata-chip__meter span { display: block; height: 100%; width: 24.5%; background: var(--blue); border-radius: inherit; transition: width 0.9s var(--ease); }

.complete { margin-top: auto; text-align: center; padding: 12px; border-radius: 10px; background: var(--blue); color: #fff; font-weight: 600; font-size: 14px; transition: transform 0.2s var(--ease), background-color 0.2s; }
.complete.is-press { transform: scale(0.96); background: var(--blue-deep); }

.toast { position: absolute; left: 50%; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 999px; font-size: 13.5px; font-weight: 500; box-shadow: 0 12px 30px -8px rgba(11, 18, 32, 0.5); transform: translate(-50%, 24px); opacity: 0; transition: transform 0.6s var(--ease), opacity 0.3s; pointer-events: none; white-space: nowrap; }
.toast .ic { color: #6ee7a8; }
.toast.is-in { transform: translate(-50%, 0); opacity: 1; }


/* Sections */
.section { padding: clamp(80px, 10vw, 136px) 0; }
.section__head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section__head h2 { font-size: clamp(1.95rem, 1.2rem + 2.4vw, 3.15rem); line-height: 1.07; letter-spacing: -0.034em; font-weight: 700; }
.section__head p { margin: 18px auto 0; color: var(--ink-2); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); max-width: 40rem; }
.section__head--left { text-align: left; margin-left: 0; }
.section__head--left p { margin-left: 0; }
.section__head--light h2 { color: #fff; }
.section__head--light p { color: var(--night-ink-2); }

/* Tour */
.problems { background: var(--ground-2); border-top: 1px solid var(--line-2); }
.tour { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.45fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.tour__list { display: grid; gap: 4px; position: sticky; top: 96px; }
.tour__tab { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; padding: 16px 18px; border: 1px solid transparent; border-radius: 12px; background: none; text-align: left; font: inherit; color: var(--ink-2); cursor: pointer; overflow: hidden; transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s; }
.tour__tab > .ic { margin-top: 2px; width: 20px; height: 20px; color: var(--ink-3); transition: color 0.3s; }
.tour__text { display: grid; gap: 3px; }
.tour__text strong { font-size: 16.5px; font-weight: 600; color: var(--ink); letter-spacing: -0.012em; }
.tour__text span { font-size: 14.5px; color: var(--ink-3); line-height: 1.45; }
.tour__tab:hover { background: rgba(255, 255, 255, 0.6); }
.tour__tab.is-active { background: #fff; border-color: var(--line); box-shadow: var(--shadow-1); }
.tour__tab.is-active > .ic { color: var(--blue); }
.tour__progress { position: absolute; left: 18px; right: 18px; bottom: 0; height: 2px; background: transparent; }
.tour__progress span { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 2px; }
.tour__tab.is-active .tour__progress span { animation: progress var(--tour-ms, 7000ms) linear forwards; }
.tour.is-paused .tour__tab.is-active .tour__progress span { animation-play-state: paused; }
.tour.is-manual .tour__tab.is-active .tour__progress span { animation: none; width: 0; }
@keyframes progress { to { width: 100%; } }

.tour__stage { min-width: 0; display: grid; }
.panel { grid-area: 1 / 1; display: grid; gap: 28px; align-content: start; }
.panel[hidden] { display: grid; visibility: hidden; pointer-events: none; }
.panel__copy h3 { font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem); line-height: 1.18; letter-spacing: -0.026em; font-weight: 650; max-width: 30ch; }
.panel.is-active .panel__copy { animation: fade-up 0.6s var(--ease) both; }
.panel.is-active .scene { animation: scene-in 0.75s var(--ease) both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes scene-in { from { opacity: 0; transform: translateY(18px) scale(0.985); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 15.5px; line-height: 1.45; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 17px; height: 17px; border-radius: 50%; background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }
.ticks--light { grid-template-columns: 1fr; }
.ticks--light li { color: var(--night-ink-2); }
.ticks--light li::before { background-color: rgba(96, 140, 255, 0.16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393b4ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }

.scene { padding-bottom: 18px; }
.scene > *:not(.app__bar) { margin-left: 18px; margin-right: 18px; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.tag .ic { width: 13px; height: 13px; }
.tag--red { background: var(--red-soft); color: var(--red); }
.tag--amber { background: var(--amber-soft); color: var(--amber); }
.tag--green { background: var(--green-soft); color: var(--green); }

/* staged reveals inside an active scene */
.scene [data-step] { opacity: 0; transform: translateY(8px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
.scene [data-step].is-in { opacity: 1; transform: none; }

/* expiry */
.batches { display: grid; gap: 8px; margin-top: 16px; }
.batch { display: grid; grid-template-columns: 74px 92px minmax(40px, 1fr) auto; gap: 14px; align-items: center; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; transition: border-color 0.4s, background-color 0.4s, box-shadow 0.4s; }
.batch__exp { color: var(--ink-2); font-size: 13px; }
.bar { height: 6px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: #9db7f5; border-radius: inherit; transition: width 1.1s var(--ease); }
.scene.is-live .bar span { width: var(--w); }
.batch--bad.is-hit { border-color: #f5b5ae; background: #fff8f7; }
.batch--bad .batch__exp, .batch--bad .mono { text-decoration: line-through; text-decoration-color: rgba(217, 45, 32, 0.5); color: var(--ink-3); }
.batch--pick .bar span { background: #f0a24a; }
.batch--pick.is-hit { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
.scan-line, .wa-mini, .ret-chip, .match, .limit__alert { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; }
.scan-line { background: var(--ink); color: #fff; }
.scan-line .ic { color: #9db7f5; }
.wa-mini { background: #e8f8ef; color: #0b6b3a; font-weight: 500; }

/* khata */
.limit { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.limit__top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.limit__top strong { font-size: 26px; color: var(--ink); font-weight: 600; letter-spacing: -0.03em; }
.muted { color: var(--ink-3); }
.limit__bar { position: relative; margin-top: 12px; height: 12px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.limit__bar span { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 99px; width: 0; transition: width 1s var(--ease); }
.limit__due { background: var(--blue); z-index: 1; }
.limit__try { background: repeating-linear-gradient(-45deg, #f1958b 0 5px, #e8574a 5px 10px); }
.scene.is-live .limit__due { width: 89%; }
.scene.is-live .limit__try.is-in { width: 100%; }
.limit__alert { background: var(--red-soft); color: #9c1c12; margin: 14px 0 0; }
.limit__alert .ic { color: var(--red); }
.statement { margin-top: 14px; border-top: 1px solid var(--line); }
.st { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.st > span:first-child { color: var(--ink-3); }
.st--green { color: var(--green); }

/* cash */
.ledger { margin-top: 14px; }
.lr { display: flex; justify-content: space-between; padding: 9px 2px; border-bottom: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2); }
.lr--strong { color: var(--ink); font-weight: 600; border-bottom-color: var(--line); }
.lr--count { color: var(--ink); font-weight: 600; background: var(--blue-soft); margin: 6px -10px 0; padding: 11px 12px; border-radius: 9px; border: 0; }
.match { background: var(--green-soft); color: var(--green); font-weight: 600; }
.buckets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.buckets span { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; display: grid; gap: 2px; }
.buckets small { color: var(--ink-3); font-size: 12px; }
.buckets b { font-weight: 600; font-size: 15px; }

/* demand */
.demand { margin-top: 14px; }
.dm { display: grid; grid-template-columns: minmax(0, 1.6fr) 0.6fr 0.8fr 0.6fr; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.dm > span:not(:first-child) { text-align: right; }
.dm--head { font-size: 11.5px; font-weight: 600; color: var(--ink-3); border-bottom-color: var(--line); }
.dm__q { font-weight: 600; color: var(--blue); }
.dm__q--zero { color: var(--ink-3); font-weight: 400; }
.chat { margin-top: 14px; padding: 14px; border-radius: 12px; background: #efeae2; }
.chat__who { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: #3d4b3f; margin-bottom: 10px; }
.chat__who .ic { color: #128c4b; }
.bubble { position: relative; margin-left: auto; max-width: 260px; padding: 9px 12px 20px; background: #d9fdd3; border-radius: 10px 2px 10px 10px; font-size: 13.5px; line-height: 1.5; color: #111b21; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08); }
.bubble__time { position: absolute; right: 10px; bottom: 5px; font-size: 11px; color: #53bdeb; }

/* supplier */
.inv { margin-top: 14px; }
.iv { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.1fr) 0.6fr 0.7fr; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line-2); font-size: 13.5px; align-items: center; }
.iv > span:nth-child(n+3) { text-align: right; }
.iv .mono { font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iv--head { font-size: 11.5px; font-weight: 600; color: var(--ink-3); border-bottom-color: var(--line); }
.iv--ret { background: var(--amber-soft); border-radius: 8px; margin: 2px -6px; padding: 9px 8px; border: 0; }
.ret-chip { background: var(--amber-soft); color: #7a3306; font-weight: 500; }
.ret-chip .ic { color: var(--amber); }
.balance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.balance > div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; display: grid; gap: 2px; }
.balance small { color: var(--ink-3); font-size: 12px; line-height: 1.3; }
.balance b { font-size: 15px; font-weight: 600; }
.balance__owe { color: var(--blue); }

/* owner */
.dash { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; margin-top: 16px; }
.dash__figs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dash__figs > div { display: grid; gap: 2px; }
.dash__figs small { color: var(--ink-3); font-size: 12px; }
.dash__figs b { font-size: clamp(17px, 1rem + 0.5vw, 22px); font-weight: 600; letter-spacing: -0.03em; }
.dash__figs em { font-style: normal; font-size: 12px; color: var(--ink-3); }
.dash__figs em.up { color: var(--green); }
.line { width: 100%; height: 130px; margin-top: 14px; overflow: visible; }
.line path { fill: none; vector-effect: non-scaling-stroke; }
.line__prev { stroke: #c8d0de; stroke-width: 1.5; stroke-dasharray: 4 4; }
.line__area { fill: rgba(37, 99, 235, 0.08); stroke: none; opacity: 0; transition: opacity 0.8s 0.9s; }
.line__now { stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.scene.is-live .line__now { animation: draw 1.6s var(--ease) 0.2s forwards; }
.scene.is-live .line__area { opacity: 1; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.dash__todo { display: grid; gap: 9px; align-content: start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 13.5px; color: var(--ink-2); }
.dash__todo b { color: var(--ink); font-weight: 600; font-size: 14px; }
.dash__todo span { display: flex; gap: 8px; align-items: baseline; line-height: 1.4; }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; transform: translateY(-1px); }
.dot--red { background: var(--red); }
.dot--amber { background: #f59e0b; }
.dot--blue { background: var(--blue); }

/* Two ways to use it: animated stories */
.ways { background: #f3f7ff; border-top: 1px solid #e3ebfa; }
.story { display: grid; gap: 22px; }
.story__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 900px; margin: 0 auto; }
.story__tab { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border: 1.5px solid #dbe3f1; border-radius: 16px; background: #fff; font: inherit; text-align: left; color: var(--ink); cursor: pointer; transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease); }
.story__tab:hover { border-color: #b9c8e6; transform: translateY(-1px); }
.story__tab > .ic { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--ground-2); color: var(--ink-3); transition: background-color 0.3s, color 0.3s; }
.story__tab strong { display: block; font-size: 17px; font-weight: 650; letter-spacing: -0.012em; line-height: 1.3; }
.story__tab small { display: block; margin-top: 2px; font-size: 14px; color: var(--ink-3); }
.story__tab.is-active { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12), var(--shadow-1); }
.story__tab.is-active > .ic { background: var(--blue); color: #fff; }

.story__panel { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(22px, 3.5vw, 48px); align-items: center; margin-top: 8px; }
.story__panel[hidden] { display: none; }
.story__panel.is-active { animation: fade-up 0.6s var(--ease) both; }
.story__stage { position: relative; border-radius: 20px; overflow: hidden; background: #eaf1fb; box-shadow: 0 1px 2px rgba(11, 18, 32, 0.05), 0 28px 56px -26px rgba(30, 41, 99, 0.3); }
.art { width: 100%; height: auto; }
.art text { font-family: var(--font); }
.t-tiny { font-size: 10px; font-weight: 500; }
.t-small { font-size: 10.5px; font-weight: 600; }
.t-mid { font-size: 14px; font-weight: 650; }
.t-big { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.t-sign { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.t-coin { font-size: 7.5px; font-weight: 700; }
.w-ping { font-size: 13px; font-weight: 700; }

.stage__badge { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px 8px 10px; border-radius: 999px; background: #fff; color: var(--green); font-size: 14px; font-weight: 650; box-shadow: 0 6px 18px -6px rgba(11, 18, 32, 0.35); opacity: 0; transform: translateY(-8px) scale(0.96); transition: opacity 0.4s, transform 0.5s var(--ease); }
.stage__badge .ic { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--green); color: #fff; stroke-width: 3; }
[data-phase="3"] .stage__badge { opacity: 1; transform: none; transition-delay: 1.6s; }

/* steps */
.story__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.story__steps button { display: grid; grid-template-columns: 34px 1fr; gap: 14px; width: 100%; padding: 14px 16px; border: 0; border-radius: 14px; background: none; font: inherit; text-align: left; color: var(--ink-3); cursor: pointer; transition: background-color 0.35s, color 0.35s; }
.story__steps button:hover { background: rgba(255, 255, 255, 0.7); }
.story__n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid #cdd6e6; font-weight: 700; font-size: 15px; color: var(--ink-3); background: #fff; transition: all 0.35s var(--ease); }
.story__steps strong { display: block; font-size: 17px; font-weight: 650; line-height: 1.3; letter-spacing: -0.012em; color: var(--ink-2); transition: color 0.35s; }
.story__steps strong + span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.5; }
.story__steps li.is-active button { background: #fff; box-shadow: var(--shadow-1); color: var(--ink-2); }
.story__steps li.is-active .story__n { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.14); }
.story__steps li.is-active strong { color: var(--ink); }
.story__steps li.is-done .story__n { border-color: var(--blue); color: var(--blue); }
.story__note { margin-top: 14px; padding: 13px 16px; border-radius: 12px; background: #fff7ea; color: #6b4a16; font-size: 14.5px; line-height: 1.5; }
.story__note b { color: #4a3008; }

/* offline scene: base (lights on) */
.o-glow { opacity: 0.35; transition: opacity 0.4s; }
.o-bulb { fill: #ffd25a; transition: fill 0.3s; }
.o-dark { opacity: 0; transition: opacity 0.9s var(--ease); }
.o-screen-glow { opacity: 0; transition: opacity 0.9s var(--ease); }
.o-wifi { opacity: 1; transition: opacity 0.5s; }
.o-wifi-x { opacity: 0; transform: scale(0.6); transform-box: fill-box; transform-origin: center; transition: opacity 0.4s, transform 0.5s var(--ease); }
.o-led { transition: fill 0.3s; }
.o-night { opacity: 0; transition: opacity 1s; }
.scr { opacity: 0; transition: opacity 0.4s; }
[data-phase="0"] .scr-0 { opacity: 1; }
[data-phase="1"] .scr-0 { opacity: 1; animation: scr-out 0.01s 1.9s forwards; }
@keyframes scr-out { to { opacity: 0; } }
.o-box { transform: translateX(46px); transition: transform 0.9s var(--ease), opacity 0.4s; }
.o-arm { transform: translateX(10px); transition: transform 0.9s var(--ease); }
.o-beam { opacity: 0; }
.o-receipt, .o-receipt-lines { opacity: 0; transform: translateY(30px); transition: opacity 0.4s, transform 0.9s var(--ease); }
.o-usb { opacity: 0; transform: translateX(16px); transition: opacity 0.4s, transform 0.7s var(--ease); }
.o-doc { opacity: 0; transform-box: fill-box; transform-origin: center; }

/* phase 1: load-shedding */
[data-phase="1"] .o-bulb { animation: flicker 1.4s linear forwards; }
[data-phase="1"] .o-glow { animation: glow-off 1.4s linear forwards; }
[data-phase="1"] .o-dark { opacity: 0.5; transition-delay: 1.1s; }
[data-phase="1"] .o-screen-glow { opacity: 0.45; transition-delay: 1.1s; }
[data-phase="1"] .o-wifi { opacity: 0; transition-delay: 1.5s; }
[data-phase="1"] .o-wifi-x { opacity: 1; transform: none; transition-delay: 1.7s; }
[data-phase="1"] .o-led { fill: #64748b; transition-delay: 1.5s; }
[data-phase="1"] .scr-1 { opacity: 1; transition-delay: 2s; }
/* phases 2 and 3 stay dark */
[data-phase="2"] .o-bulb, [data-phase="3"] .o-bulb { fill: #94a3b8; }
[data-phase="2"] .o-glow, [data-phase="3"] .o-glow { opacity: 0; }
[data-phase="2"] .o-dark { opacity: 0.5; }
[data-phase="3"] .o-dark { opacity: 0.62; }
[data-phase="2"] .o-screen-glow, [data-phase="3"] .o-screen-glow { opacity: 0.45; }
[data-phase="2"] .o-wifi, [data-phase="3"] .o-wifi { opacity: 0; }
[data-phase="2"] .o-wifi-x, [data-phase="3"] .o-wifi-x { opacity: 1; transform: none; }
[data-phase="2"] .o-led, [data-phase="3"] .o-led { fill: #64748b; }
/* phase 2: a sale */
[data-phase="2"] .o-box, [data-phase="2"] .o-arm { transform: none; }
[data-phase="2"] .o-beam { animation: beep 0.45s 0.8s 2 both; }
[data-phase="2"] .scr-2 { opacity: 1; transition-delay: 1.5s; }
[data-phase="2"] .o-receipt, [data-phase="2"] .o-receipt-lines { opacity: 1; transform: none; transition-delay: 1.7s; }
/* phase 3: night copy */
[data-phase="3"] .o-box { opacity: 0; transform: none; }
[data-phase="3"] .o-night { opacity: 1; }
[data-phase="3"] .o-usb { opacity: 1; transform: none; transition-delay: 0.4s; }
[data-phase="3"] .o-doc { animation: fly 1.5s 1s var(--ease) forwards; }
[data-phase="3"] .scr-3 { opacity: 1; transition-delay: 1.8s; }

/* online scene */
.w-path { opacity: 0.25; transition: opacity 0.6s; }
.w-coins { opacity: 0; transition: opacity 0.4s; }
.w-ping { opacity: 0; }
.w-phone-glow { opacity: 0; }
.w-zoom { opacity: 0; transform: translate(40px, 70px) scale(0.35); transform-box: fill-box; transform-origin: 70% 100%; transition: opacity 0.4s, transform 0.8s var(--ease); }
.w-steam path { animation: steam 2.6s ease-in-out infinite; }
.w-steam path + path { animation-delay: 1.3s; }
[data-phase="2"] .w-path, [data-phase="3"] .w-path { opacity: 0.85; animation: dash 1s linear infinite; }
[data-phase="2"] .w-coins { opacity: 1; transition-delay: 0.5s; }
[data-phase="2"] .w-ping { animation: ping-up 1.6s 0.4s ease-out infinite; }
[data-phase="2"] .w-phone-glow, [data-phase="3"] .w-phone-glow { animation: glow-pulse 1.6s ease-in-out infinite; }
[data-phase="3"] .w-coins { opacity: 0.35; }
[data-phase="3"] .w-zoom { opacity: 1; transform: none; transition-delay: 0.3s; }

@keyframes flicker { 0% { fill: #ffd25a; } 14% { fill: #94a3b8; } 24% { fill: #ffd25a; } 38% { fill: #94a3b8; } 48% { fill: #ffe08a; } 66%, 100% { fill: #94a3b8; } }
@keyframes glow-off { 0% { opacity: 0.35; } 14% { opacity: 0; } 24% { opacity: 0.35; } 38% { opacity: 0; } 48% { opacity: 0.25; } 66%, 100% { opacity: 0; } }
@keyframes beep { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
@keyframes fly { 0% { opacity: 0; transform: none; } 18% { opacity: 1; transform: none; } 82% { opacity: 1; transform: translate(92px, -14px) scale(0.5); } 100% { opacity: 0; transform: translate(92px, -14px) scale(0.5); } }
@keyframes ping-up { 0% { opacity: 0; transform: translateY(6px); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(-18px); } }
@keyframes steam { 0% { opacity: 0; transform: translateY(4px); } 45% { opacity: 0.9; } 100% { opacity: 0; transform: translateY(-9px); } }
@keyframes dash { to { stroke-dashoffset: -22; } }
@keyframes glow-pulse { 0%, 100% { opacity: 0.15; } 50% { opacity: 0.65; } }

/* chooser */
.pick { max-width: 900px; margin: clamp(48px, 6vw, 72px) auto 0; }
.pick h3 { text-align: center; font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem); font-weight: 700; letter-spacing: -0.026em; }
.pick__list { list-style: none; padding: 0; margin: 22px 0 0; background: #fff; border: 1px solid #e3ebfa; border-radius: 18px; overflow: hidden; }
.pick__list li { display: grid; grid-template-columns: minmax(0, 1fr) 22px 230px; align-items: center; gap: 18px; padding: 18px 22px; border-top: 1px solid #edf1f8; }
.pick__list li:first-child { border-top: 0; }
.pick__if { font-size: 17px; font-weight: 500; color: var(--ink); }
.pick__arrow { color: #9aa7bf; width: 20px; height: 20px; }
.pick__then { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-deep); font-weight: 650; font-size: 15px; text-decoration: none; }
.pick__then .ic { width: 18px; height: 18px; }
.pick__then--wa { background: #e7f6ee; color: #0b6b3a; transition: background-color 0.2s; }
.pick__then--wa:hover { background: #d3f0e0; }
.pick__both { margin-top: 18px; text-align: center; color: var(--ink-2); font-size: 15.5px; }

/* Index */
.index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.index__col { padding: clamp(22px, 2.6vw, 32px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.index__col h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 650; letter-spacing: -0.015em; }
.index__col h3 .ic { color: var(--blue); width: 20px; height: 20px; }
.index__col ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 9px; }
.index__col li { color: var(--ink-2); font-size: 15px; line-height: 1.45; padding-left: 16px; position: relative; }
.index__col li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 1.5px; background: #9db0d6; }

/* Security */
.security { background: var(--ground-2); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.security__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.security .section__head { position: sticky; top: 110px; }
.guards { list-style: none; padding: 0; margin: 0; display: grid; }
.guards li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.guards li:first-child { padding-top: 4px; }
.guards .ic { width: 40px; height: 40px; padding: 9px; border-radius: 11px; background: #fff; color: var(--blue); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.guards strong { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.012em; }
.guards span { display: block; margin-top: 3px; color: var(--ink-2); font-size: 15.5px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; position: relative; max-width: 1040px; }
.steps::before { content: ""; position: absolute; top: 22px; left: 16%; right: 16%; height: 1.5px; background: linear-gradient(90deg, var(--blue), var(--indigo)); opacity: 0.35; }
.steps li { position: relative; display: grid; justify-items: center; text-align: center; gap: 18px; padding: 0 clamp(12px, 2vw, 28px); }
.steps__n { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 1.5px solid var(--blue); color: var(--blue); font-weight: 700; font-size: 17px; box-shadow: 0 0 0 6px var(--ground); position: relative; }
.steps strong { font-size: 18px; font-weight: 650; letter-spacing: -0.015em; }
.steps p { margin-top: 6px; color: var(--ink-2); font-size: 15.5px; max-width: 30ch; }

/* FAQ */
.faq { padding-top: 0; }
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 88px); border-top: 1px solid var(--line); padding-top: clamp(64px, 8vw, 104px); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; cursor: pointer; list-style: none; font-size: 17px; font-weight: 600; letter-spacing: -0.012em; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary .ic { color: var(--ink-3); transition: transform 0.35s var(--ease); }
.faq__list details[open] summary .ic { transform: rotate(45deg); color: var(--blue); }
.faq__list summary:hover { color: var(--blue-deep); }
.faq__list details p { padding: 0 40px 22px 0; color: var(--ink-2); font-size: 16px; animation: fade-up 0.45s var(--ease) both; }

/* CTA */
.cta { position: relative; overflow: hidden; isolation: isolate; padding: clamp(88px, 11vw, 140px) 0; background: linear-gradient(135deg, #1e40af 0%, var(--blue) 45%, var(--indigo) 100%); color: #fff; text-align: center; }
.hero__field--cta { height: 100%; clip-path: none; opacity: 0.55; mix-blend-mode: screen; }
.hero__field--cta::after { display: none; }
.cta__inner { display: grid; justify-items: center; gap: 18px; }
.cta h2 { font-size: clamp(2rem, 1.2rem + 2.8vw, 3.4rem); line-height: 1.05; letter-spacing: -0.036em; font-weight: 700; color: #fff; }
.cta p { max-width: 36rem; color: #f1f5ff; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); }
.cta .btn { margin-top: 12px; }

/* Footer */
.footer { padding: 36px 0 44px; border-top: 1px solid var(--line); }
.footer__inner { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; color: var(--ink-3); font-size: 14px; }
.footer__inner nav { display: flex; gap: 20px; margin-left: auto; }
.footer__inner nav a { color: var(--ink-2); text-decoration: none; }
.footer__inner nav a:hover { color: var(--ink); }

/* Reveal on scroll (content visible by default; JS opts in) */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease), transform 0.9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
  .nav__links { gap: 18px; }
  .nav__links a:nth-child(3) { display: none; }
}
@media (max-width: 960px) {
  .tour { grid-template-columns: 1fr; }
  .story__panel { grid-template-columns: 1fr; }
  .tour__list { position: static; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
  .tour__list::-webkit-scrollbar { display: none; }
  .tour__tab { scroll-snap-align: start; background: rgba(255, 255, 255, 0.5); border-color: var(--line-2); }
  .index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .security__grid, .faq__grid { grid-template-columns: 1fr; }
  .security .section__head { position: static; }
}
@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__menu { display: grid; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero__actions .btn { width: 100%; }
  .mode-switch { display: grid; width: 100%; }
  .mode-switch__btn { padding: 9px 8px; font-size: 13px; }
  .pos__body { grid-template-columns: 1fr; min-height: 0; }
  .pos__left { border-right: 0; border-bottom: 1px solid var(--line); }
  .cart__head, .cart__row { grid-template-columns: minmax(0, 1fr) 30px 66px; }
  .cart__head span:nth-child(2), .cart__row > span:nth-child(2) { display: none; }
  .cart__rows { min-height: 0; }
  .toast { white-space: normal; width: max-content; max-width: calc(100% - 32px); }
  .ticks { grid-template-columns: 1fr; }
  .story__tabs { grid-template-columns: 1fr; }
  .story__tab { padding: 14px 16px; }
  .story__tab strong { font-size: 16px; }
  .story__steps button { padding: 12px 10px; gap: 12px; }
  .pick__list li { grid-template-columns: 1fr; gap: 10px; padding: 16px; }
  .pick__arrow { display: none; }
  .scene > *:not(.app__bar) { margin-left: 12px; margin-right: 12px; }
  .batch { grid-template-columns: auto 1fr auto; gap: 8px 10px; }
  .batch .bar { grid-column: 1 / -1; grid-row: 2; }
  .dash { grid-template-columns: 1fr; }
  .balance { grid-template-columns: 1fr 1fr; }
  .balance > div:last-child { grid-column: 1 / -1; }
  .iv, .iv--head { grid-template-columns: minmax(0, 1.2fr) 0.7fr 0.8fr; }
  .iv > span:nth-child(2) { display: none; }
  .index { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { top: 0; bottom: 0; left: 22px; right: auto; width: 1.5px; height: auto; background: linear-gradient(180deg, var(--blue), var(--indigo)); }
  .steps li { grid-template-columns: 46px 1fr; justify-items: start; text-align: left; padding: 0; gap: 16px; }
  .faq__list details p { padding-right: 0; }
  .footer__inner nav { margin-left: 0; flex-wrap: wrap; }
}

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

/* ---------- Conversion parts ---------- */
.offerbar { position: relative; z-index: 51; background: var(--ink); color: #e8edf8; font-size: 14px; }
.offerbar__inner { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; text-align: center; }
.offerbar .ic { color: #fbbf77; }
.offerbar__text { font-weight: 600; }
.offerbar__link { display: inline-flex; align-items: center; gap: 6px; color: #9ec5ff; font-weight: 600; text-decoration: none; }
.offerbar__link:hover { color: #fff; }
.nav { top: 0; }
.hero { margin-top: -68px; }

.lang { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; height: 38px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.75); font: 600 14px/1 var(--font); color: var(--ink); cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
.lang:hover { border-color: #c3cede; background: #fff; }
.lang .ic { color: var(--blue); }
.lang [data-lang-label] { font-family: "Noto Nastaliq Urdu", var(--font); line-height: 1; }
html[lang="ur"] .lang [data-lang-label] { font-family: var(--font); }
.nav__cta { margin-left: 0; }

.hero__facts .ic { color: var(--green); stroke-width: 2.4; }

/* checklist */
.check { background: #fff; border-top: 1px solid var(--line-2); }
.check__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 920px; margin: 0 auto; }
.check__item { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: center; padding: 18px 20px; border: 1.5px solid #dfe5ef; border-radius: 16px; background: #fff; cursor: pointer; font-size: 17px; font-weight: 500; line-height: 1.4; transition: border-color 0.25s, background-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease); }
.check__item:hover { border-color: #b9c8e6; transform: translateY(-1px); }
.check__item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; border: 2px solid #c3cede; background: #fff; transition: all 0.25s var(--ease); }
.check__box .ic { width: 18px; height: 18px; color: #fff; stroke-width: 3; opacity: 0; transform: scale(0.5); transition: all 0.3s var(--ease); }
.check__item:has(input:checked) { border-color: #f3b2a8; background: #fff6f4; box-shadow: 0 6px 18px -10px rgba(180, 35, 24, 0.45); }
.check__item input:checked + .check__box { background: var(--red); border-color: var(--red); }
.check__item input:checked + .check__box .ic { opacity: 1; transform: none; }
.check__item input:focus-visible + .check__box { outline: 2.5px solid var(--blue); outline-offset: 3px; }
.check__result { display: flex; align-items: center; justify-content: space-between; gap: 18px 24px; flex-wrap: wrap; max-width: 920px; margin: 22px auto 0; padding: 18px 22px; border-radius: 16px; background: var(--ground-2); transition: background-color 0.3s; }
.check__result.is-hot { background: #eaf1ff; }
.check__msg { font-size: 17px; font-weight: 600; color: var(--ink); }
.check__msg b { color: var(--blue-deep); }

/* mid-section CTA */
.midcta { display: flex; align-items: center; justify-content: center; gap: 16px 22px; flex-wrap: wrap; margin-top: clamp(40px, 5vw, 56px); text-align: center; }
.midcta p { font-size: 18px; font-weight: 600; }

/* calculator */
.loss { background: #fff; }
.calc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 32px); align-items: stretch; max-width: 1080px; margin: 0 auto; }
.calc__inputs { display: grid; gap: 14px; }
.calc__row { padding: 18px 20px 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.calc__label { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; font-size: 16.5px; font-weight: 600; }
.calc__val { flex: none; font-size: 18px; font-weight: 700; color: var(--ink); }
.calc__row small { display: block; margin-top: 2px; color: var(--ink-3); font-size: 13px; }
.calc input[type="range"] { width: 100%; height: 28px; margin: 10px 0 0; background: none; -webkit-appearance: none; appearance: none; cursor: pointer; --p: 8%; }
.calc input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--track) var(--p), #e4e8f0 var(--p)); }
.calc input[type="range"]::-moz-range-track { height: 8px; border-radius: 99px; background: #e4e8f0; }
.calc input[type="range"]::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--track); }
.calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -8px; border-radius: 50%; background: #fff; border: 3px solid var(--track); box-shadow: 0 2px 6px rgba(11, 18, 32, 0.2); }
.calc input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--track); box-shadow: 0 2px 6px rgba(11, 18, 32, 0.2); }
html[dir="rtl"] .calc input[type="range"]::-webkit-slider-runnable-track { background: linear-gradient(-90deg, var(--track) var(--p), #e4e8f0 var(--p)); }
.calc__row[data-key="expiry"] { --track: #ef6c57; }
.calc__row[data-key="khata"] { --track: #f59e0b; }
.calc__row[data-key="cash"] { --track: #4f46e5; }
.calc__row[data-key="stock"] { --track: #10b981; }
.calc__result { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 36px); border-radius: 22px; background: linear-gradient(160deg, #13204a 0%, var(--ink) 70%); color: #fff; box-shadow: 0 30px 60px -30px rgba(11, 18, 32, 0.6); }
.calc__lead { color: #b8c4de; font-size: 17px; font-weight: 500; }
.calc__total { margin-top: 6px; font-size: clamp(2.4rem, 1.6rem + 2.6vw, 3.6rem); line-height: 1; font-weight: 700; letter-spacing: -0.035em; color: #ff9d8f; }
.calc__per { margin-top: 6px; color: #b8c4de; font-size: 17px; }
.calc__bars { display: flex; height: 12px; margin: 22px 0 20px; border-radius: 99px; overflow: hidden; background: rgba(255, 255, 255, 0.08); gap: 3px; }
.calc__bars span { display: block; height: 100%; transition: flex-grow 0.5s var(--ease); flex: 1 1 0; }
.calc__bars [data-bar="expiry"] { background: #ef6c57; }
.calc__bars [data-bar="khata"] { background: #f59e0b; }
.calc__bars [data-bar="cash"] { background: #6366f1; }
.calc__bars [data-bar="stock"] { background: #10b981; }
.calc__fix { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 11px; }
.calc__fix li { display: flex; gap: 10px; align-items: baseline; color: #dfe6f5; font-size: 15.5px; line-height: 1.45; }
.calc__fix .dot { width: 9px; height: 9px; transform: none; }
.calc__result .btn { margin-top: auto; align-self: flex-start; white-space: normal; text-align: center; }
.calc__result .btn .ic { color: #128c4b; }

/* offer */
.offer { background: var(--ground-2); border-top: 1px solid var(--line-2); }
.offer__card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; padding: clamp(28px, 4.5vw, 56px); border-radius: 28px; background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #4338ca 100%); color: #fff; box-shadow: 0 40px 80px -40px rgba(30, 64, 175, 0.7); }
.offer__copy h2 { font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.9rem); line-height: 1.08; letter-spacing: -0.034em; font-weight: 700; }
.offer__copy p { margin-top: 16px; font-size: 17.5px; color: #f1f5ff; max-width: 34rem; }
.offer__copy .btn { margin-top: 26px; white-space: normal; text-align: center; }
.offer__copy .btn .ic { color: #128c4b; }
.offer__price { display: block; margin-top: 14px; color: #eef3ff; font-size: 14.5px; }
.offer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.offer__list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.18); }
.offer__list .ic { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: #fff; color: var(--blue); }
.offer__list strong { display: block; font-size: 17px; font-weight: 650; }
.offer__list span { display: block; margin-top: 2px; font-size: 15px; color: #f1f5ff; }
.offer .steps { margin-top: clamp(44px, 5vw, 64px); }
.offer .steps__n { box-shadow: 0 0 0 6px var(--ground-2); }

/* sticky WhatsApp bar on phones */
.stickybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 -1px 0 var(--line); transform: translateY(110%); transition: transform 0.45s var(--ease); }
.stickybar .btn { width: 100%; }
.stickybar.is-on { transform: none; }

/* ---------- Urdu (right to left) ---------- */
.flip-rtl { transition: transform 0.3s var(--ease); }
html[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
html[dir="rtl"] .btn--ghost:hover .ic.flip-rtl { transform: scaleX(-1) translateX(3px); }
html[lang="ur"] body { font-family: "Noto Nastaliq Urdu", var(--font); line-height: 2; }
html[lang="ur"] h1, html[lang="ur"] h2, html[lang="ur"] h3, html[lang="ur"] strong, html[lang="ur"] summary { letter-spacing: 0; line-height: 1.9; }
html[lang="ur"] .hero__title { font-size: clamp(1.9rem, 1.1rem + 2.7vw, 3.3rem); line-height: 1.75; max-width: 20ch; }
html[lang="ur"] .section__head h2 { font-size: clamp(1.6rem, 1.05rem + 1.9vw, 2.5rem); line-height: 1.75; }
html[lang="ur"] .cta h2, html[lang="ur"] .offer__copy h2 { line-height: 1.75; }
html[lang="ur"] .btn { line-height: 1.6; padding-top: 10px; padding-bottom: 10px; font-family: "Noto Nastaliq Urdu", var(--font); }
html[lang="ur"] .app, html[lang="ur"] .app * , html[lang="ur"] .num, html[lang="ur"] .brand { font-family: var(--font); line-height: 1.55; }
html[lang="ur"] .calc__total, html[lang="ur"] .calc__val { font-family: var(--font); }
.app, .art, .brand, .num { direction: ltr; }
html[dir="rtl"] .ticks li { padding-left: 0; padding-right: 26px; }
html[dir="rtl"] .ticks li::before { left: auto; right: 0; top: 0.55em; }
html[dir="rtl"] .index__col li { padding-left: 0; padding-right: 16px; }
html[dir="rtl"] .index__col li::before { left: auto; right: 0; top: 1em; }
html[dir="rtl"] .tour__tab, html[dir="rtl"] .story__tab, html[dir="rtl"] .story__steps button, html[dir="rtl"] .check__item { text-align: right; }
html[dir="rtl"] .mode-switch[data-current="offline"] .mode-switch__thumb { transform: translateX(-100%); }
html[dir="rtl"] .mode-switch__thumb { left: auto; right: 4px; }
html[dir="rtl"] .footer__inner nav { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .faq__list details p { padding: 0 0 22px 40px; }

@media (max-width: 960px) {
  .calc { grid-template-columns: 1fr; }
  .offer__card { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .lang { margin-left: auto; }
  .nav__menu { margin-left: 8px; }
  html[dir="rtl"] .nav__menu { margin-left: 0; margin-right: 8px; }
  .stickybar { display: block; }
  body { padding-bottom: 76px; }
}
@media (max-width: 640px) {
  .offerbar { font-size: 13px; }
  .offerbar__inner { gap: 4px 8px; }
  .check__grid { grid-template-columns: 1fr; }
  .check__item { font-size: 16px; padding: 15px 16px; }
  .check__result .btn { width: 100%; }
  .calc__label { font-size: 15.5px; }
  .calc__result .btn, .offer__copy .btn { width: 100%; }
  .midcta .btn { width: 100%; }
  .lang { padding: 0 11px; }
  html[dir="rtl"] .steps::before { left: auto; right: 22px; }
  html[dir="rtl"] .steps li { text-align: right; }
}
.lang + .nav__cta { margin-left: -14px; }
html[dir="rtl"] .lang { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .lang + .nav__cta { margin-left: 0; margin-right: -14px; }

/* section rhythm after the conversion rewrite */
.offer { background: #fff; }
#everything { background: var(--ground-2); border-top: 1px solid var(--line-2); }
.security { background: #fff; }
.offer .steps__n { box-shadow: 0 0 0 6px #fff; }

/* story 3: several counters */
.story__tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1120px; }
.m-s { opacity: 0; transition: opacity 0.4s; }
.m-x { opacity: 0; transition: opacity 0.4s; }
.m-wifi { transition: opacity 0.5s; }
.m-cable { opacity: 0.25; transition: opacity 0.5s; }
.m-packets { opacity: 0; transition: opacity 0.4s; }
.m-drawer { transition: transform 0.8s var(--ease); }
.m-dlabel { opacity: 0; transition: opacity 0.4s; }
[data-phase="0"] .m-main0, [data-phase="1"] .m-main0 { opacity: 1; }
[data-phase="0"] .m-c1, [data-phase="1"] .m-c1 { opacity: 1; }
[data-phase="1"] .m-wifi, [data-phase="2"] .m-wifi, [data-phase="3"] .m-wifi { opacity: 0; transition-delay: 0.6s; }
[data-phase="1"] .m-x, [data-phase="2"] .m-x, [data-phase="3"] .m-x { opacity: 1; transition-delay: 0.8s; }
[data-phase="2"] .m-cable, [data-phase="3"] .m-cable { opacity: 0.85; animation: dash 1s linear infinite; }
[data-phase="2"] .m-packets { opacity: 1; transition-delay: 0.3s; }
[data-phase="3"] .m-packets { opacity: 0.35; }
[data-phase="2"] .m-main2 { opacity: 1; transition-delay: 1.2s; }
[data-phase="2"] .m-c2 { opacity: 1; transition-delay: 0.4s; }
[data-phase="2"] .m-led { animation: beep 0.6s linear infinite; }
[data-phase="3"] .m-drawer { transform: translateY(18px); }
[data-phase="3"] .m-dlabel { opacity: 1; transition-delay: 0.5s; }
[data-phase="3"] .m-main3 { opacity: 1; transition-delay: 0.6s; }
[data-phase="3"] .m-c3 { opacity: 1; transition-delay: 0.4s; }
@media (max-width: 1080px) { .story__tab { padding: 14px 16px; } .story__tab strong { font-size: 16px; } }
@media (max-width: 860px) { .story__tabs { grid-template-columns: 1fr; max-width: 640px; } }
.free-chip { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; background: var(--green-soft); color: #05603a; font-weight: 500; }
.free-chip .ic { color: var(--green); }
.free-chip + .ret-chip { margin-top: 8px; }
/* Urdu script needs taller lines in the small text */
html[lang="ur"] .story__steps strong + span, html[lang="ur"] .story__note, html[lang="ur"] .story__tab small,
html[lang="ur"] .tour__text span, html[lang="ur"] .ticks li, html[lang="ur"] .index__col li, html[lang="ur"] .guards span,
html[lang="ur"] .check__item, html[lang="ur"] .calc__fix li, html[lang="ur"] .offer__list span, html[lang="ur"] .steps p,
html[lang="ur"] .faq__list details p, html[lang="ur"] .pick__if, html[lang="ur"] .section__head p, html[lang="ur"] .hero__sub { line-height: 2.15; }
