/* live.css - peekPOS public site.
   The idea: the page is a shop counter. Warm Paper with the logo's barcode grain,
   Warm Ink for the counter top, and one Terracotta scanner beam. */

.live { --live-max: 1200px; --gutter: clamp(20px, 4vw, 48px); color: var(--text-primary); background: var(--paper); }
.live .wrap { max-width: var(--live-max); margin: 0 auto; padding-inline: var(--gutter); }
.live h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 700; font-style: italic; letter-spacing: -0.03em; line-height: 1.06; color: var(--ink); max-width: 18ch; }
.live section { scroll-margin-top: 72px; }

/* ---- nav ---- */
.live-nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: var(--sp-6);
  padding: 10px var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid rgba(34, 31, 28, 0.12);
}
.live-nav__brand img { height: 40px; width: auto; }
.live-nav__links { display: flex; gap: var(--sp-5); margin-right: auto; }
.live-nav__links a { font-size: 0.95rem; font-weight: 500; color: var(--gray-700); }
.live-nav__links a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--terracotta); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.live-nav__end { display: flex; align-items: center; gap: var(--sp-2); margin-left: auto; }
.live .btn--ghost { color: var(--ink); }

/* ---- hero: the shop fills the first screen ---- */
.hero {
  position: relative;
  min-height: clamp(620px, calc(100dvh - 61px), 900px);
  overflow: hidden;
  /* the fine vertical grain of the logo's paper */
  background:
    repeating-linear-gradient(90deg, rgba(122, 111, 100, 0.05) 0 1px, transparent 1px 5px, rgba(122, 111, 100, 0.03) 5px 8px, transparent 8px 13px),
    var(--paper);
}
.hero__copy {
  position: absolute; z-index: 2; top: 0; bottom: 0; left: 0; width: min(33vw, 460px);
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: clamp(24px, 4vh, 44px) 0 0 clamp(24px, 3.2vw, 56px);
  pointer-events: none;
  transition: opacity 400ms ease, visibility 400ms;
}
.hero__copy a, .hero__copy button { pointer-events: auto; }
.hero:has(.is-inside) .hero__copy { opacity: 0; visibility: hidden; }
/* paper wash so the headline never sits on top of the street */
.hero::after { content: ""; position: absolute; z-index: 1; inset: 0 auto 0 0; width: min(37vw, 520px); pointer-events: none; background: linear-gradient(90deg, var(--paper) 0, var(--paper) 78%, rgba(241, 235, 225, 0) 100%); transition: opacity 400ms ease; }
.hero:has(.is-inside)::after { opacity: 0; }
.scene-loading { position: absolute; right: 22%; top: 45%; color: var(--text-muted); font-size: 0.95rem; }
.hero__title {
  font-size: clamp(2.3rem, 3.7vw, 3.6rem); max-width: 7.2em; font-weight: 800; font-style: italic;
  line-height: 0.98; letter-spacing: -0.04em; color: var(--ink);
}
.hero__title span { display: block; }
.hero__kicker { margin-bottom: var(--sp-4); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em; color: var(--terracotta-ink, var(--gray-700)); }
.hero__lead { margin-top: var(--sp-5); max-width: 38ch; font-size: clamp(1.02rem, 1.3vw, 1.15rem); line-height: 1.55; color: var(--gray-700); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-5); margin-top: var(--sp-6); }
.hero__wa { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--terracotta); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.hero__scene { position: absolute; inset: 0; min-width: 0; }
.hero__scene > canvas { position: absolute; inset: 0; display: block; }
.shop3d { cursor: grab; touch-action: pan-y; outline: none; }
.shop3d.is-dragging { cursor: grabbing; }
.shop3d:focus-visible { box-shadow: inset 0 0 0 2px var(--terracotta); }

.scene-nav { position: absolute; z-index: 3; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; justify-content: center; width: max-content; max-width: calc(100% - 24px); }
.scene-nav__stops, .scene-nav__zoom { display: flex; padding: 3px; gap: 2px; background: var(--gray-0); border: 1px solid var(--border-strong); border-radius: var(--radius-md); box-shadow: 0 8px 18px -12px rgba(34, 31, 28, 0.5); }
.scene-nav button { height: 34px; padding: 0 10px; border-radius: var(--radius-sm); font-size: 0.88rem; font-weight: 500; color: var(--gray-700); white-space: nowrap; }
.scene-nav button:hover { background: var(--gray-150); color: var(--ink); }
.scene-nav button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.scene-nav__zoom button { width: 34px; padding: 0; font-size: 1.1rem; }
.scene-nav__hint { display: none; width: 100%; text-align: center; font-size: 0.82rem; color: var(--ink); text-shadow: 0 0 6px var(--paper), 0 0 2px var(--paper); }
.is-inside .scene-nav__hint { display: block; }
.is-inside .till__log, .is-inside .till__title, .is-inside .till__legend, .is-inside .till__next { display: none; }
.is-cashier .till, .is-cashier .scene-nav__zoom, .is-cashier .scene-nav__hint { display: none; }
.scene-nav button.scene-nav__play { background: var(--terracotta); color: #fff; font-weight: 600; margin-left: 4px; }
.scene-nav button.scene-nav__play:hover { background: var(--brand-700); color: #fff; }
.scene-nav button.scene-nav__play[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.cash-panel { position: absolute; z-index: 3; left: 20px; top: 20px; width: min(280px, calc(100% - 24px)); padding: var(--sp-4); background: var(--ink); color: var(--paper); border-radius: var(--radius-lg); box-shadow: 0 18px 30px -18px rgba(34, 31, 28, 0.7); }
.cash-panel[hidden] { display: none; }
.cash-panel__lines { list-style: none; margin: 0 0 var(--sp-2); padding: 0; font-size: 0.88rem; }
.cash-panel__lines li { display: flex; justify-content: space-between; gap: var(--sp-3); padding: 2px 0; }
.cash-panel__lines b { font-weight: 600; font-variant-numeric: tabular-nums; }
.cash-panel__total { display: block; font-size: 1.9rem; font-weight: 750; letter-spacing: -0.02em; margin-bottom: var(--sp-2); }
.cash-panel__say { font-size: 0.95rem; line-height: 1.35; color: #E4DCD0; }
.cash-panel__ok { color: #8FE0A8; font-weight: 600; }
.cash-panel__sums { margin: 0; display: grid; gap: var(--sp-1); }
.cash-panel__sums > div { display: flex; justify-content: space-between; gap: var(--sp-3); font-size: 0.95rem; color: #C9BFB1; }
.cash-panel__sums dd { margin: 0; font-weight: 600; color: var(--paper); font-variant-numeric: tabular-nums; }
.cash-panel__sums .is-change { margin-top: var(--sp-2); padding-top: var(--sp-2); border-top: 1px solid #4A443C; font-size: 1.05rem; color: var(--paper); }
.cash-panel__sums .is-change dd { font-size: 1.7rem; font-weight: 750; letter-spacing: -0.02em; }
.cash-panel__sub { margin-top: var(--sp-2); font-size: 0.88rem; color: #C9BFB1; display: flex; justify-content: space-between; }
.cash-panel .btn { width: 100%; margin-top: var(--sp-3); }
.cash-panel__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.is-inside .till { padding-block: var(--sp-2); }

.till {
  position: absolute; left: clamp(24px, 3.2vw, 56px); bottom: 16px; z-index: 2; width: 290px; padding: var(--sp-2) var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--ink); color: var(--paper); border-radius: var(--radius-lg);
  box-shadow: 0 18px 30px -18px rgba(34, 31, 28, 0.6);
}
.till__title { font-size: 0.8rem; color: #C9BFB1; }
.till__stats { margin: var(--sp-2) 0 0; display: grid; grid-template-columns: 1fr auto auto; gap: var(--sp-3); }
.till__stats dt { font-size: 0.74rem; color: #C9BFB1; white-space: nowrap; }
.till__stats dd { margin: 0; font-size: 1.02rem; font-weight: 700; white-space: nowrap; }
.till__log { list-style: none; margin: var(--sp-2) 0 0; padding: var(--sp-2) 0 0; border-top: 1px solid #4A443C; min-height: 66px; font-size: 0.8rem; }
.till__chart { display: block; width: 100%; height: 66px; margin-top: var(--sp-2); background: var(--paper); border-radius: var(--radius-sm); }
.till__legend { display: flex; gap: var(--sp-3); margin-top: 2px; font-size: 0.72rem; color: #C9BFB1; }
.till__legend span::before { content: ""; display: inline-block; width: 7px; height: 11px; margin-right: 5px; vertical-align: -1px; border-radius: 1px; }
.till__legend .is-up::before { background: #2F9E5B; }
.till__legend .is-down::before { background: #D5332B; }
.till__line { display: flex; justify-content: space-between; gap: var(--sp-3); padding: 1px 0; }
.till__line span { color: #C9BFB1; }
.till__line b { font-weight: 600; font-variant-numeric: tabular-nums; }
.till__line--out b { color: #6FD893; }
.till__line--in b { color: #F1958C; }
.till__line--low b { color: #F2C14E; }
.till__next { margin-top: 2px; font-size: 0.72rem; color: #C9BFB1; font-variant-numeric: tabular-nums; }

/* ---- the counter ---- */
.counter {
  display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: var(--sp-5);
  align-items: start;
  padding: var(--sp-5);
  background: var(--ink); color: var(--paper);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 50px -30px rgba(34, 31, 28, 0.55);
}
.counter__tip { font-size: 0.9rem; color: #C9BFB1; margin-bottom: var(--sp-3); }
.counter__items { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.scan-item {
  display: flex; flex-direction: column; gap: 6px; text-align: left;
  padding: var(--sp-3); background: #FAF6F0; color: var(--ink);
  border-radius: var(--radius-md); cursor: pointer;
  transition: background-color var(--dur-fast);
}
.scan-item:hover { background: #fff; }
.scan-item:focus-visible { outline: 2px solid var(--brand-400); outline-offset: 2px; }
.scan-item:disabled { opacity: 0.45; cursor: not-allowed; }
.scan-item__code { position: relative; display: block; overflow: hidden; height: 34px; }
.scan-item__code svg { display: block; width: 100%; height: 34px; }
.scan-item__code svg > rect:first-child { fill: transparent; }
.scan-item__beam { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--terracotta); transform: scaleX(0); transform-origin: right; }
.scan-item.is-scanning .scan-item__beam { animation: beam 420ms var(--ease-out); }
@keyframes beam { 0% { transform: scaleX(0); opacity: 1; } 55% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.scan-item__name { font-size: 0.92rem; font-weight: 550; line-height: 1.25; }
.scan-item__row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-2); }
.scan-item__row b { font-weight: 700; }
.scan-item__stock { font-size: 0.82rem; color: var(--text-muted); }
.scan-item__stock.is-down { color: var(--brand-700); font-weight: 600; }
.counter__till {
  display: flex; align-items: baseline; gap: var(--sp-3); flex-wrap: wrap;
  margin-top: var(--sp-4); padding-top: var(--sp-3); border-top: 1px solid #4A443C;
  font-size: 0.9rem; color: #C9BFB1;
}
.counter__till b { font-size: 1.3rem; color: var(--paper); font-weight: 700; }

.receipt {
  position: relative; display: flex; flex-direction: column;
  min-height: 390px; padding: var(--sp-4) var(--sp-4) var(--sp-6);
  background: #FDFBF7; color: var(--ink);
  font-size: 0.86rem;
  /* the torn edge of thermal paper */
  --tooth: 10px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--tooth) 51% repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth) / 2) no-repeat;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--tooth) 51% repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth) / 2) no-repeat;
}
.receipt__head { text-align: center; padding-bottom: var(--sp-3); border-bottom: 1px dashed var(--gray-400); font-size: 0.78rem; color: var(--text-muted); }
.receipt__head img { display: block; width: 104px; height: auto; margin: 0 auto 4px; }
.receipt__lines { list-style: none; flex: 1; margin: 0; padding: var(--sp-3) 0; font-family: var(--font-mono); font-size: 0.76rem; }
.receipt__lines li { display: grid; grid-template-columns: 1fr auto; gap: 0 var(--sp-2); padding: 3px 0; }
.receipt__lines li span:first-child { grid-column: 1 / -1; }
.receipt__qty { color: var(--text-muted); }
.receipt__lines b { font-weight: 600; }
.receipt__lines li.is-new { animation: print 260ms var(--ease-out); }
@keyframes print { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
.receipt__lines .receipt__empty { display: block; font-family: var(--font-sans); font-size: 0.86rem; color: var(--text-muted); padding-top: var(--sp-3); }
.receipt__total { display: flex; justify-content: space-between; align-items: baseline; padding: var(--sp-2) 0 var(--sp-3); border-top: 1px dashed var(--gray-400); font-weight: 600; }
.receipt__total b { font-size: 1.35rem; font-weight: 750; }

/* ---- how it works ---- */
.how { padding-block: clamp(56px, 8vw, 104px); }
.try { padding-block: clamp(56px, 8vw, 104px); }
.try .counter { margin-top: var(--sp-7); max-width: 860px; }
.how__acts { display: grid; grid-template-columns: 3fr 5fr 3fr; gap: clamp(20px, 3vw, 40px); margin-top: var(--sp-8); align-items: start; }
.how__act h3 { font-size: 1rem; font-weight: 600; color: var(--text-muted); padding-bottom: var(--sp-3); border-bottom: 2px solid var(--ink); }
.how__act--main h3 { border-bottom-color: var(--terracotta); color: var(--ink); }
.how__act ol { list-style: none; margin: 0; padding: 0; }
.how__act li { display: grid; gap: 2px; padding: var(--sp-4) 0; border-bottom: 1px solid var(--border-subtle); }
.how__act li b { font-size: 1.08rem; font-weight: 650; color: var(--ink); }
.how__act li span { font-size: 0.95rem; line-height: 1.45; color: var(--gray-600); max-width: 38ch; }
.how__act--main li b { font-size: 1.25rem; }

/* ---- spec sheet ---- */
.spec { padding-block: clamp(56px, 8vw, 104px); background: var(--gray-0); }
.spec__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.spec__head { position: sticky; top: 90px; }
.spec__label {
  display: inline-grid; gap: 6px; margin-top: var(--sp-7); padding: var(--sp-4);
  background: #FDFBF7; border-radius: var(--radius-sm); transform: rotate(-2deg);
  box-shadow: 0 1px 2px rgba(34, 31, 28, 0.18); font-size: 0.86rem; color: var(--ink);
}
.spec__label svg { display: block; }
.spec__label b { font-size: 1.05rem; font-weight: 700; }
.spec__caption { margin-top: var(--sp-4); font-size: 0.88rem; color: var(--text-muted); }
.spec__groups { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8) clamp(24px, 4vw, 56px); }
.spec__group h3 { font-size: 1.3rem; font-weight: 700; color: var(--ink); padding-bottom: var(--sp-2); border-bottom: 2px solid var(--ink); }
.spec__group dl { margin: 0; }
.spec__group dl > div { padding: var(--sp-3) 0; border-bottom: 1px solid rgba(34, 31, 28, 0.14); }
.spec__group dt { font-weight: 600; color: var(--ink); }
.spec__group dd { margin: 2px 0 0; font-size: 0.93rem; line-height: 1.45; color: var(--gray-600); }

/* ---- offline band ---- */
.offline { background: var(--ink); color: var(--paper); padding-block: clamp(56px, 7vw, 88px); }
.live .offline h2 { color: var(--paper); }
.offline__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.offline__body p { font-size: 1.08rem; line-height: 1.6; color: #D8CFC2; max-width: 56ch; }
.offline__body p + p { margin-top: var(--sp-4); }

/* ---- pricing ----
   Three price cards on one strip, Business lifted out in Warm Ink. Every number
   comes from the live price rules (js/app-live.js planQuote). Money reads like a
   receipt: tabular figures, dashed rules between the lines. */
.prices { padding-block: clamp(56px, 8vw, 104px); background: var(--gray-0); }
.prices__head p { margin-top: var(--sp-3); max-width: 56ch; color: var(--gray-700); font-size: 1.05rem; line-height: 1.5; }
.live .prices h2 { max-width: 22ch; }
.prices .pos-amount, .versus .pos-amount { font-variant-numeric: tabular-nums; }

.stepper { display: inline-flex; align-items: center; background: var(--gray-0); border: 1px solid var(--border-strong); border-radius: var(--radius-md); }
.stepper button { width: 40px; height: 40px; font-size: 1.2rem; color: var(--ink); border-radius: var(--radius-md); }
.stepper button:hover:not(:disabled) { background: var(--gray-150); }
.stepper button:disabled { color: var(--gray-300); cursor: default; }
.stepper input { width: 3.2ch; min-width: 40px; height: 40px; padding: 0; border: 0; background: transparent; text-align: center; font: inherit; font-weight: 700; font-size: 1.1rem; color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.plans { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-rows: repeat(8, auto); gap: 0; margin-top: var(--sp-7); background: var(--gray-25); border: 1px solid var(--border); border-radius: var(--radius-xl); }
.plan { display: flex; flex-direction: column; padding: var(--sp-6); min-width: 0; }
/* side by side, the cards share their rows so prices, lines and buttons line up */
@supports (grid-template-rows: subgrid) {
  .plans > .plan { display: grid; grid-template-rows: subgrid; grid-row: 1 / span 8; align-content: start; }
  .plan .btn { align-self: end; }
}
.plan + .plan { border-left: 1px solid var(--border-subtle); }
.plan--featured { position: relative; background: var(--ink); color: var(--paper); margin: -12px 0; padding-block: calc(var(--sp-6) + 12px); border-radius: var(--radius-lg); border-left: 0 !important; box-shadow: 0 24px 40px -24px rgba(34, 31, 28, 0.6); }
.plan--featured + .plan { border-left: 0; }
.plan__head { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2); flex-wrap: wrap; min-height: 28px; }
.plan h3 { font-size: 1.35rem; font-weight: 700; font-style: italic; letter-spacing: -0.02em; color: var(--ink); }
.plan--featured h3 { color: var(--paper); }
.plan__badge { padding: 3px 10px; border-radius: 999px; background: var(--terracotta); color: var(--gray-0); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.01em; }
.plan__desc { margin-top: var(--sp-2); min-height: 2.9em; font-size: 0.95rem; line-height: 1.45; color: var(--gray-600); }
.plan--featured .plan__desc { color: #D8CFC2; }
.plan__price { display: flex; align-items: baseline; gap: var(--sp-2); margin-top: var(--sp-4); font-size: 0.9rem; color: var(--text-muted); flex-wrap: wrap; }
.plan__price b { font-size: clamp(2rem, 3vw, 2.4rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); }
.plan--featured .plan__price { color: #C9BFB1; }
.plan--featured .plan__price b { color: var(--paper); }

/* the receipt lines: branches, setup (list price struck through), accounts */
.plan__terms { margin: var(--sp-4) 0 0; border-top: 1px dashed var(--gray-300); }
.plan__row { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); min-height: 52px; padding-block: 6px; border-bottom: 1px dashed var(--gray-300); }
.plan__row dt { font-size: 0.9rem; color: var(--gray-600); }
.plan__row dd { margin: 0; display: flex; align-items: baseline; gap: var(--sp-2); flex-wrap: wrap; justify-content: flex-end; text-align: right; }
.plan__row dd b { font-size: 1.1rem; font-weight: 650; color: var(--ink); }
.plan__was { font-size: 0.9rem; color: var(--gray-500); text-decoration-thickness: 1.5px; text-decoration-color: var(--terracotta); }
.plan--featured .plan__terms, .plan--featured .plan__row { border-color: #5E564C; }
.plan--featured .plan__row dt { color: #C9BFB1; }
.plan--featured .plan__row dd b { color: var(--paper); }
.plan--featured .plan__was { color: #A89E90; text-decoration-color: var(--brand-300); }
.plan__note { display: grid; gap: 2px; min-height: 2.6em; margin-top: var(--sp-2); font-size: 0.84rem; line-height: 1.4; color: var(--gray-600); }
.plan__off { color: var(--brand-700); font-weight: 600; }
.plan--featured .plan__off { color: var(--brand-300); }
.plan__stepper { background: var(--gray-0); }
.plan__stepper button { width: 36px; height: 36px; }
.plan__stepper input { height: 36px; }

.plan__features { list-style: none; margin: var(--sp-4) 0 var(--sp-5); padding: 0; display: grid; align-content: start; gap: var(--sp-2); font-size: 0.93rem; line-height: 1.35; }
.plan__features li { padding-left: 16px; position: relative; color: var(--gray-700); }
.plan__features li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 9px; height: 2px; background: var(--terracotta); }
.plan--featured .plan__features li { color: #E4DCD0; }
.plan .btn { margin-top: auto; }
.plan--featured .btn:not(.btn--primary) { color: var(--paper); }
.plan--featured :focus-visible { outline-color: var(--brand-300); }
.plan__wa { margin-top: var(--sp-2); text-align: center; font-size: 0.86rem; color: inherit; opacity: 0.75; text-decoration: underline; text-underline-offset: 3px; }
.plan__wa:hover { opacity: 1; }

/* a number on the Growth card that just changed gets a short terracotta underline */
@keyframes plan-tick { from { background-size: 100% 2px; } to { background-size: 0 2px; } }
.plan .is-tick { background: linear-gradient(var(--terracotta), var(--terracotta)) left bottom / 0 2px no-repeat; animation: plan-tick 0.7s ease-out; }

/* ---- 2 Starter plans vs 1 Business plan: the sum done on paper ---- */
.versus { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); grid-template-areas: 'intro sheet' 'end sheet'; grid-template-rows: auto 1fr; gap: var(--sp-6) clamp(24px, 4vw, 56px); margin-top: clamp(48px, 6vw, 72px); padding-top: var(--sp-6); border-top: 2px solid var(--ink); }
.versus__intro h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 700; font-style: italic; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); max-width: 20ch; }
.versus__intro p { margin-top: var(--sp-3); max-width: 42ch; font-size: 1rem; line-height: 1.5; color: var(--gray-700); }
.versus__intro { grid-area: intro; }
.versus__sheet { grid-area: sheet; min-width: 0; }
.versus__table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.versus__table th, .versus__table td { padding: 10px 14px; text-align: right; vertical-align: bottom; border-bottom: 1px dashed var(--gray-300); }
.versus__table th[scope="row"] { text-align: left; font-weight: 500; color: var(--gray-700); padding-left: 0; }
.versus__table thead th { font-size: 0.9rem; font-weight: 650; color: var(--ink); border-bottom: 1px solid var(--ink); }
.versus__table thead td { border-bottom: 1px solid var(--ink); }
.versus__table td { color: var(--gray-600); }
.versus__table .is-pick { background: var(--brand-50); color: var(--ink); }
.versus__table thead .is-pick { border-radius: var(--radius-md) var(--radius-md) 0 0; }
.versus__table tfoot .is-pick { border-radius: 0 0 var(--radius-md) var(--radius-md); }
.versus__sum { display: grid; justify-items: end; font-size: 0.84rem; line-height: 1.35; color: var(--gray-500); }
.versus__sum span:last-child { padding-bottom: 3px; border-bottom: 1px solid var(--gray-400); }
.versus__total { display: block; margin-top: 3px; font-size: 1.05rem; font-weight: 650; color: var(--gray-700); }
.versus__table .is-pick .versus__total { color: var(--ink); font-size: 1.15rem; }
.versus__table tfoot th, .versus__table tfoot td { border-bottom: 0; border-top: 2px solid var(--ink); padding-block: 14px; font-weight: 650; color: var(--ink); }
.versus__table tfoot b { font-size: 1.1rem; }
.versus__table tfoot .is-pick b { font-size: 1.3rem; color: var(--brand-700); }
.versus__end { grid-area: end; display: grid; justify-items: start; align-content: start; gap: var(--sp-4); }
.versus__verdict { padding-left: var(--sp-4); border-left: 3px solid var(--terracotta); font-size: 1.1rem; font-weight: 600; line-height: 1.4; color: var(--ink); max-width: 30ch; }

.prices__note { margin-top: var(--sp-6); font-size: 0.95rem; color: var(--gray-700); }
.prices__note a { color: var(--brand-700); font-weight: 500; }

/* ---- FAQ ---- */
.faq { padding-block: clamp(48px, 7vw, 88px); background: var(--gray-0); }
.faq__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 72px); }
.faq__list details { border-top: 1px solid var(--border); }
.faq__list details:last-child { border-bottom: 1px solid var(--border); }
.faq__list summary { display: flex; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-4) 0; font-size: 1.08rem; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; font-weight: 400; font-size: 1.4rem; line-height: 1; color: var(--terracotta); }
.faq__list details[open] summary::after { content: "\2212"; }
.faq__list p { max-width: 62ch; padding-bottom: var(--sp-5); line-height: 1.6; color: var(--gray-700); }

/* ---- in Bangla: the same promise in the words shopkeepers search with ---- */
.bn { padding-block: clamp(48px, 7vw, 80px); background: var(--paper); }
.bn__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.bn__in h2 { grid-row: span 2; font-family: var(--font-bn, "Hind Siliguri", sans-serif); line-height: 1.25; }
.bn__in p, .bn__in li { font-family: var(--font-bn, "Hind Siliguri", sans-serif); font-size: 1.06rem; line-height: 1.75; color: var(--gray-700); max-width: 60ch; }
.bn__in ul { display: grid; gap: var(--sp-2); padding-left: 1.1em; margin: 0; }
.bn__in li::marker { color: var(--terracotta); }
@media (max-width: 760px) { .bn__in { grid-template-columns: minmax(0, 1fr); } .bn__in h2 { grid-row: auto; } }

/* ---- close ---- */
.close { background: var(--terracotta); padding-block: clamp(48px, 7vw, 80px); color: #fff; }
.live .close h2 { color: #fff; max-width: 20ch; }
.close__in { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-6); flex-wrap: wrap; }
.close__actions { display: flex; align-items: center; gap: var(--sp-5); flex-wrap: wrap; }
.close__actions a { color: #fff; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.close__btn { --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-bd: var(--ink); }
.close__btn:hover { background: #000; }

/* ---- footer ---- */
.live-foot { padding-block: var(--sp-7) var(--sp-8); }
.live-foot__in { display: flex; align-items: center; gap: var(--sp-6); flex-wrap: wrap; }
.live-foot__logo { height: 44px; width: auto; }
.live-foot nav { display: flex; gap: var(--sp-5); margin-left: auto; flex-wrap: wrap; font-size: 0.93rem; }
.live-foot nav a { color: var(--gray-700); }
.live-foot__c { font-size: 0.88rem; color: var(--text-muted); }

/* ---- responsive ---- */
@media (max-width: 1080px) {
  .hero { min-height: 0; }
  .hero__copy { position: relative; width: auto; padding: var(--sp-7) var(--gutter) var(--sp-5); pointer-events: auto; }
  .hero:has(.is-inside) .hero__copy { opacity: 1; visibility: visible; }
  .hero__title span { display: inline; }
  .hero__lead { max-width: 56ch; }
  .hero__scene { position: relative; inset: auto; height: clamp(400px, 92vw, 660px); margin-bottom: 262px; }
  .scene-nav { bottom: 10px; }
  .scene-nav__stops { overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .scene-nav button { padding: 0 7px; font-size: 0.78rem; height: 32px; }
  .scene-nav__zoom { display: none; }
  .cash-panel { top: 8px; left: 8px; width: 210px; padding: var(--sp-3); }
  .cash-panel__total { font-size: 1.4rem; }
  .cash-panel__lines { display: none; }
  .till__chart { height: 90px; }
  .hero::after { display: none; }
  .scene-loading { right: auto; left: 0; width: 100%; text-align: center; }
  .till { top: auto; right: var(--gutter); left: var(--gutter); width: auto; bottom: -250px; }
  .till__log { min-height: 0; }
  .live-nav__links { display: none; }
}
@media (max-width: 860px) {
  .how__acts, .spec__in, .offline__in, .faq__in { grid-template-columns: 1fr; }
  .spec__head { position: static; }
  .plans { grid-auto-flow: row; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--border-subtle); }
  .plan--featured { margin: 0 -1px; padding-block: var(--sp-6); }
  .plan--featured + .plan { border-top: 0; }
  .plan__desc, .plan__note { min-height: 0; }
  .plans > .plan { display: flex; grid-row: auto; }
  .versus { grid-template-columns: 1fr; grid-template-areas: 'intro' 'sheet' 'end'; grid-template-rows: auto; gap: var(--sp-5); }
  .versus__verdict { max-width: 44ch; }
}
@media (max-width: 480px) {
  .plan { padding: var(--sp-5); }
  .versus__table { font-size: 0.88rem; }
  .versus__table th, .versus__table td { padding: 10px 8px; }
  .versus__end .btn { width: 100%; }
}
@media (max-width: 620px) {
  .counter { grid-template-columns: 1fr; padding: var(--sp-3); }
  .receipt { min-height: 0; }
  .spec__groups { grid-template-columns: 1fr; }
  .live-nav { gap: var(--sp-2); padding-inline: 12px; }
  .live-nav__brand img { height: 32px; }
  .live-nav .lang-switch { display: none; }
  .live-foot nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .scan-item.is-scanning .scan-item__beam, .receipt__lines li.is-new { animation: none; }
  .plan .is-tick { animation: none; background: none; }
}

/* ---- support chat widget (js/pages/live/chat-widget.js) ---- */
.live-chat { position: fixed; right: 18px; bottom: 18px; z-index: 60; font-size: .9rem; }
.live-chat__fab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px; border: 0; border-radius: var(--radius-md); cursor: pointer;
  background: var(--ink); color: var(--paper); font: inherit; font-weight: 600;
  box-shadow: 0 10px 24px -10px rgba(34,31,28,.6);
}
.live-chat__fab:hover { background: #000; }
.live-chat.is-open .live-chat__fab { display: none; }
.live-chat__panel {
  position: absolute; right: 0; bottom: 0;
  width: min(360px, calc(100vw - 24px)); height: min(520px, calc(100vh - 40px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}
.live-chat__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; background: var(--ink); color: var(--paper);
}
.live-chat__head strong { display: block; }
.live-chat__head span { font-size: .78rem; opacity: .8; }
.live-chat__close { background: none; border: 0; color: var(--paper); font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.live-chat__body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.live-chat__msg { max-width: 82%; padding: 8px 11px; border-radius: var(--radius-lg); line-height: 1.4; }
.live-chat__msg--me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 3px; }
.live-chat__msg--them { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 3px; }
.live-chat__msg--err { align-self: center; background: var(--danger-bg); color: var(--danger-fg); font-size: .82rem; }
.live-chat__quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 0; }
.live-chat__quick[hidden] { display: none; }
.live-chat__quick button {
  font: inherit; font-size: .82rem; padding: 5px 10px; border-radius: var(--radius-sm); cursor: pointer;
  background: transparent; border: 1px solid var(--border-strong); color: var(--text-secondary);
}
.live-chat__quick button:hover { border-color: var(--ink); color: var(--ink); }
.live-chat__composer { padding: 10px 12px 12px; border-top: 1px solid var(--border); display: grid; gap: 8px; }
.live-chat__ident { display: grid; gap: 6px; }
.live-chat__ident[hidden] { display: none; }
.live-chat__row { display: flex; gap: 8px; align-items: flex-end; }
.live-chat__row textarea {
  flex: 1; resize: none; font: inherit; padding: 9px 11px; border-radius: var(--radius-md);
  border: 1px solid var(--border); background: var(--surface); color: inherit; max-height: 110px;
}
.live-chat__row .btn { flex: none; }
@media (max-width: 480px) {
  .live-chat { right: 12px; bottom: 12px; }
  .live-chat__fab { padding: 12px; }
  .live-chat__fab span { display: none; }
}

/* Bangla stands upright: see base.css. */
html[lang="bn"] .hero__title, html[lang="bn"] .live h2, html[lang="bn"] .plan h3, html[lang="bn"] .versus__intro h3 { font-style: normal; letter-spacing: 0; line-height: 1.15; }
.scan-item__stock, .js-count { font-variant-numeric: tabular-nums; }

@media (min-width: 1081px) and (max-height: 840px) { .till__log, .till__legend { display: none; } }
@media (min-width: 1081px) and (max-height: 700px) { .hero__lead { display: none; } }
/* ---- the buying steps under the plans ---- */
.buying { margin-top: var(--sp-7); padding: var(--sp-6); background: var(--paper); border-radius: var(--radius-xl); }
.buying h3 { font-size: 1.4rem; font-weight: 700; font-style: italic; letter-spacing: -0.02em; color: var(--ink); }
.buying ol { list-style: none; counter-reset: b; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5); margin: var(--sp-4) 0 var(--sp-5); padding: 0; }
.buying li { counter-increment: b; display: grid; gap: 2px; padding-top: var(--sp-3); border-top: 2px solid var(--ink); }
.buying li::before { content: counter(b); font-weight: 800; font-style: italic; font-size: 1.4rem; color: var(--terracotta); }
.buying b { font-weight: 650; color: var(--ink); }
.buying span { font-size: 0.93rem; line-height: 1.4; color: var(--gray-600); }
@media (max-width: 860px) { .buying ol { grid-template-columns: 1fr 1fr; } }
/* ---- reminder bar ---- */
.buy-bar { position: fixed; z-index: 40; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: var(--sp-3); padding: 8px 8px 8px 16px; background: var(--ink); color: var(--paper); border-radius: var(--radius-lg); box-shadow: 0 16px 30px -14px rgba(34, 31, 28, 0.7); font-size: 0.95rem; white-space: nowrap; }
.buy-bar[hidden] { display: none; }
.buy-bar b { font-weight: 700; }
.buy-bar__x { color: #C9BFB1; font-size: 1.2rem; padding: 0 6px; line-height: 1; }
/* ---- how it works: the story card ---- */
@keyframes story-fill { from { width: 0; } to { width: 100%; } }
.story { position: absolute; z-index: 5; left: clamp(24px, 3.2vw, 56px); bottom: 24px; width: min(400px, calc(100% - 32px)); padding: var(--sp-4) var(--sp-5) var(--sp-4); background: var(--gray-0); color: var(--ink); border-radius: var(--radius-xl); box-shadow: 0 26px 50px -22px rgba(34, 31, 28, 0.65); }
.story.is-end { left: 50%; bottom: 50%; transform: translate(-50%, 50%); width: min(460px, calc(100% - 32px)); text-align: left; }
.story__bar { display: flex; gap: 3px; margin-bottom: var(--sp-3); }
.story__bar i { flex: 1; height: 3px; background: var(--gray-200); border-radius: 2px; overflow: hidden; }
.story__bar b { display: block; height: 100%; width: 0; background: var(--terracotta); }
.story__num { font-size: 0.82rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.story__title { margin-top: 2px; font-size: 1.5rem; font-weight: 700; font-style: italic; letter-spacing: -0.02em; line-height: 1.12; color: var(--ink); }
.story__text { margin-top: var(--sp-2); min-height: 3em; line-height: 1.45; color: var(--gray-700); }
.story__actions { display: flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-3); }
.story__skip { margin-right: auto; color: var(--text-muted); font-size: 0.93rem; text-decoration: underline; text-underline-offset: 3px; }
.story__choices { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--sp-2); margin-top: var(--sp-3); }
.story__foot { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); margin-top: var(--sp-3); }
.story__foot .story__skip { margin: 0 0 0 auto; }
.story__install { color: var(--brand-700); font-size: 0.93rem; font-weight: 500; text-align: left; }
.hero:has(.is-guide) .hero__copy, .hero:has(.show-till) .hero__copy { opacity: 0; visibility: hidden; }
.hero:has(.is-guide)::after { opacity: 0; }
.is-guide .scene-nav, .show-till .scene-nav { display: none; }
.is-guide .till { display: none; }
.show-till .story { left: calc(clamp(24px, 3.2vw, 56px) + 310px); }
html[lang="bn"] .story__title, html[lang="bn"] .buying h3 { font-style: normal; letter-spacing: 0; }
@media (max-width: 1080px) {
  /* on a phone the card goes under the shop, so it never covers the picture */
  .hero__scene { scroll-margin-top: 62px; }
  .story { left: 8px; right: 8px; bottom: auto; top: calc(100% + 8px); width: auto; }
  .story.is-end { left: 8px; right: 8px; bottom: auto; top: calc(100% + 8px); transform: none; width: auto; }
  .story__choices { grid-template-columns: 1fr 1fr; }
  .story__choices .js-plans { grid-column: 1 / -1; }
  .story__title { font-size: 1.2rem; }
  .story__text { font-size: 0.92rem; min-height: 0; }
  .show-till .story { left: 8px; top: 8px; }
}
@media (prefers-reduced-motion: reduce) { .story__bar b { animation: none !important; } }
.scene-nav__tour { background: var(--gray-0) !important; border: 1px solid var(--border-strong) !important; }
@media (max-width: 620px) { .tour__card { bottom: 12px; } .buy-bar { bottom: 12px; font-size: 0.86rem; } }

/* the shop controls sit beside the chart on wide screens, never on top of it */
@media (min-width: 1081px) {
  .scene-nav { left: calc(clamp(24px, 3.2vw, 56px) + 306px); right: 104px; transform: none; width: auto; max-width: none; justify-content: flex-start; }
  .is-cashier .scene-nav { left: 50%; right: auto; transform: translateX(-50%); width: max-content; }
}

/* a compact chart box: the shop is the picture, this is the caption */
.till__title { font-size: 0.74rem; }
.till__stats { gap: var(--sp-2); margin-top: 2px; }
.till__stats dt { font-size: 0.68rem; }
.till__stats dd { font-size: 0.9rem; }
.till__legend { font-size: 0.66rem; }
.till__next { font-size: 0.66rem; }
.till__log { min-height: 0; margin-top: 4px; padding-top: 4px; font-size: 0.72rem; }
.till__line:nth-child(n+3) { display: none; }
@media (max-width: 1080px) { .till__chart { height: 84px; } }

/* the headline keeps to its own column: four short lines on any width */
@media (min-width: 1081px) {
  .hero__lead { font-size: clamp(0.95rem, 1.1vw, 1.08rem); }
}

@media (min-width: 1081px) and (max-width: 1360px) {
  .scene-nav { gap: 4px; }
  .scene-nav button { padding: 0 7px; font-size: 0.8rem; }
  .scene-nav__zoom button { width: 28px; padding: 0; }
}
.buying li .pay-logos { margin-top: 6px; gap: 4px; }

/* ---- checkout: 1 Your details -> 2 Payment -> 3 Done (openCheckout in app-live.js) ----
   The dialog is the counter: paper underneath, and the order printed on a till
   slip beside the form. One moving thing: the terracotta scanner beam under the
   steps grows as the buyer moves on. */
.modal--co { --modal-w: 960px; background: var(--paper); }
.modal--co .modal__header { border-bottom: 0; padding-bottom: 0; }
.modal--co .modal__header h2 { font-size: 1.5rem; font-weight: 700; font-style: italic; letter-spacing: -0.02em; color: var(--ink); }
.modal--co .modal__body { padding-top: var(--sp-3); }

.co-steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); margin: 0 0 var(--sp-5); padding: 0 0 var(--sp-3); list-style: none; }
.co-steps__i { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; font-size: 0.95rem; font-weight: 500; color: var(--text-muted); }
.co-steps__n { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 1.5px solid var(--gray-300); border-radius: 50%; font-size: 0.85rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-muted); background: var(--gray-0); }
.co-steps__t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-steps__i.is-now { color: var(--ink); font-weight: 650; }
.co-steps__i.is-now .co-steps__n { border-color: var(--terracotta); background: var(--terracotta); color: #fff; }
.co-steps__i.is-done { color: var(--ink); }
.co-steps__i.is-done .co-steps__n { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.co-steps__beam { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gray-200); border-radius: 2px; overflow: hidden; }
.co-steps__beam i { display: block; height: 100%; width: 33.34%; background: var(--terracotta); border-radius: 2px; transition: width 420ms var(--ease-out, ease-out); }
.co[data-step="1"] .co-steps__beam i { width: 66.67%; }
.co[data-step="2"] .co-steps__beam i { width: 100%; }

.co__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: 'main slip' 'actions slip'; grid-template-rows: auto 1fr; column-gap: clamp(20px, 3vw, 36px); align-items: start; }
.co__main { grid-area: main; min-width: 0; }
.co-slip { grid-area: slip; position: sticky; top: 0; }
.co__actions { grid-area: actions; min-width: 0; }
.co__actions:empty { display: none; }
.co__actions .btn { margin-top: var(--sp-4); }

.co__title { font-size: 1.3rem; font-weight: 700; font-style: italic; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); }
.co__title:focus { outline: none; }
.co__title:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; border-radius: 2px; }
.co__lead { margin-top: var(--sp-2); max-width: 56ch; line-height: 1.5; color: var(--gray-700); }
.co__saved { margin-top: var(--sp-3); padding-left: var(--sp-3); border-left: 3px solid var(--terracotta); font-size: 0.92rem; line-height: 1.45; color: var(--gray-700); }
.co__fine { margin-top: var(--sp-3); font-size: 0.92rem; color: var(--text-muted); text-align: center; }
.co__fine a, .co__link { color: var(--brand-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.co__link { font: inherit; font-weight: 600; }
.co__err { margin-top: var(--sp-2); font-size: 0.92rem; color: var(--danger-fg); }
.co__err:empty { display: none; }

.co-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); margin-top: var(--sp-5); }
.co-field--wide { grid-column: 1 / -1; }
.co-form__plan { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); align-items: start; margin: var(--sp-4) 0; padding: var(--sp-4) 0; border-block: 1px dashed var(--gray-300); }
.co-form__plan .js-co-branches[hidden] { display: none; }
.co .input, .co .select { min-height: 44px; font-size: 1rem; background-color: var(--gray-0); }
.co .field-hint[data-tone="good"] { color: var(--success-fg); font-weight: 500; }
.co .field-error:not([hidden]) { font-size: 0.85rem; }
.co .stepper { align-self: flex-start; }
.co .stepper input { width: 4ch; }

.co-exists { margin-top: var(--sp-4); padding: var(--sp-4); background: var(--gray-0); border: 1px solid var(--terracotta); border-radius: var(--radius-lg); display: grid; gap: var(--sp-3); }
.co-exists[hidden] { display: none; }
.co-exists p { line-height: 1.45; color: var(--gray-700); }
.co-exists b { color: var(--ink); }

/* the till slip: the order as it will be billed */
.co-slip { padding: var(--sp-5) var(--sp-5) calc(var(--sp-5) + 10px); background: #FFFDF9; color: var(--ink); box-shadow: 0 1px 0 rgba(34, 31, 28, 0.06), 0 14px 26px -20px rgba(34, 31, 28, 0.55);
  /* a torn bottom edge */
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 8px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 8px repeat-x; }
.co-slip__head { padding-bottom: var(--sp-3); border-bottom: 2px solid var(--ink); font-size: 1.05rem; font-weight: 700; font-style: italic; letter-spacing: -0.01em; }
.co-slip__rows { margin: 0; }
.co-slip__rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-3); padding: 9px 0; border-bottom: 1px dashed var(--gray-300); font-size: 0.93rem; }
.co-slip__rows dt { color: var(--gray-600); }
.co-slip__rows dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.co-slip__was { margin-right: 4px; font-weight: 400; color: var(--gray-500); text-decoration-thickness: 1.5px; }
.co-slip__rows .co-slip__note { display: block; padding-top: 0; }
.co-slip__rows .co-slip__note dd { margin: 0; text-align: left; font-size: .8rem; color: var(--gray-500); }
.co-slip__coupon dd { color: var(--brand-700); letter-spacing: 0.02em; }
.co-slip__total { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-3); margin-top: var(--sp-4); font-weight: 600; }
.co-slip__total span { font-size: 0.95rem; }
.co-slip__total b { font-size: 1.75rem; font-weight: 750; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.co-slip__total[data-state="sent"] span { color: var(--warning-fg); }
.co-slip__total[data-state="paid"] span, .co-slip__total[data-state="paid"] b { color: var(--success-fg); }

/* step 2: the shared payment sheet, sitting on the paper */
.co-pay { margin-top: var(--sp-4); }
.co-pay .payment-method, .co-pay .payment-bill, .co-pay .payment-number { background: var(--gray-0); }
.co-pay .payment-form .btn--primary { min-height: 50px; font-size: 1.05rem; }

/* step 3 */
.co-done { display: grid; gap: var(--sp-2); }
.co-done__mark { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: var(--sp-2); border-radius: 50%; background: var(--ink); color: var(--paper); }
.co-done__facts { margin: var(--sp-4) 0 0; border-top: 2px solid var(--ink); }
.co-done__facts > div { display: flex; justify-content: space-between; gap: var(--sp-4); padding: 9px 0; border-bottom: 1px dashed var(--gray-300); font-size: 0.95rem; }
.co-done__facts dt { color: var(--gray-600); }
.co-done__facts dd { margin: 0; min-width: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.co-done__actions { display: grid; gap: var(--sp-2); margin-top: var(--sp-5); }

html[lang="bn"] .modal--co .modal__header h2, html[lang="bn"] .co__title, html[lang="bn"] .co-slip__head { font-style: normal; letter-spacing: 0; }

/* phones: the checkout takes the whole screen; the slip comes after the form, right above Continue */
@media (max-width: 760px) {
  .overlay:has(.modal--co) { padding: 0; }
  .modal--co { max-width: none; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; }
  .modal--co .modal__header { padding: var(--sp-4) var(--sp-4) 0; }
  .modal--co .modal__body { padding: var(--sp-3) var(--sp-4) var(--sp-6); }
  .co__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'main' 'slip' 'actions'; grid-template-rows: auto; }
  .co-slip { position: static; margin-top: var(--sp-5); padding: var(--sp-4) var(--sp-4) calc(var(--sp-4) + 10px); }
  .co-steps { gap: 4px; margin-bottom: var(--sp-4); }
  .co-steps__i { flex-direction: column; align-items: flex-start; gap: 4px; font-size: 0.82rem; }
  .co-form__grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); margin-top: var(--sp-4); }
  .co-form__plan { gap: var(--sp-3); }
  .co .select { font-size: 0.9rem; padding-left: var(--sp-3); }
}
@media (prefers-reduced-motion: reduce) {
  .co-steps__beam i { transition: none; }
}
.co-done__actions.is-paid .js-co-account { order: -1; }

/* ---- before the script runs: the plain page crawlers read (index.html) ---- */
.seo-static { max-width: 860px; margin: 0 auto; padding: 32px max(16px, env(safe-area-inset-right, 0px)) 48px max(16px, env(safe-area-inset-left, 0px)); text-align: left; line-height: 1.6; color: var(--ink); }
.seo-static header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 32px; }
.seo-static nav, .seo-static footer { display: flex; flex-wrap: wrap; gap: 16px; }
.seo-static section { margin-bottom: 28px; }
.seo-static h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; font-style: italic; line-height: 1.05; }
.seo-static h2 { font-size: 1.4rem; margin: 0 0 8px; }
.seo-static h3 { font-size: 1.05rem; margin: 16px 0 6px; }
.seo-static summary { font-weight: 600; cursor: pointer; padding: 6px 0; }

/* ---- Apps: last in the menu; on a phone, where the menu hides, a small link of its own ---- */
.live-nav__apps { display: none; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-size: 0.9rem; font-weight: 500; color: var(--ink); }
.live-nav__apps:hover { background: rgba(34, 31, 28, 0.06); }
@media (max-width: 1080px) { .live-nav__apps { display: inline-flex; } }
@media (max-width: 420px) { .live-nav__apps span { display: none; } }

.plan__each { display: block; margin-bottom: 2px; color: var(--gray-700, inherit); }
.plan__each s { color: var(--gray-500); margin-right: 2px; }
