/* ==========================================================================
   Jogan — জোগান · storefront styles (no build step)

   Layout concept: "the site supervisor's clipboard".
   Cool cement-grey page, Rebar-navy ink, Hi-vis yellow reserved for the two things
   that matter on a site: action (buttons) and time (the 60 ring, ETAs).
   Left-aligned editorial grid, never everything centred. The hero is an
   asymmetric navy band (copy left, stopwatch right). The shop is a spec-sheet
   grid with hairline rules instead of floating cards. Brick red appears only on
   Schedule / heavy-goods tags and one faint running-bond brick texture (bulk
   quote section). Hazard stripes are thin dividers, used twice.
   ========================================================================== */

/* ---------- Tokens: light (default) ---------- */
:root {
  color-scheme: light;
  --bg: #F3F4F2;          /* cement page — not cream */
  --surface: #FBFBF8;
  --surface-2: #E9EBE7;   /* recessed tiles, icon wells */
  --ink: #13233A;         /* Rebar navy */
  --muted: #5B6573;
  --line: #E4E6E3;
  --line-strong: #C9CEC8;
  --accent: #FFC20E;      /* Hi-vis yellow: navy text on it, never yellow text on light */
  --on-accent: #13233A;
  --accent-soft: #FFF1C2;
  --brick: #B8502E;       /* Schedule / heavy goods */
  --on-brick: #FFFFFF;
  --brick-ink: #9C4122;
  --brick-soft: #F5E4DC;
  --ok: #16A34A;
  --ok-ink: #12773A;
  --ok-soft: #DCF1E3;
  --danger: #B42318;
  --danger-soft: #FCE9E7;
  --navy: #13233A;
  --hero-bg: #13233A;
  --hero-ink: #FFFFFF;
  --hero-muted: #C3CAD3;
  --hero-line: #2A3D59;
  --hero-field: #1C3050;
  --ring-track: #2A3D59;
  --overlay: rgb(12 22 36 / 0.55);
  --shadow: 0 1px 2px rgb(19 35 58 / 0.06), 0 10px 28px rgb(19 35 58 / 0.10);
  --shadow-up: 0 -6px 20px rgb(19 35 58 / 0.12);
  --pattern-opacity: 0.06;
  --show-light: inline-block;
  --show-dark: none;

  /* Type */
  --font-latin: "Archivo", "Hind Siliguri", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-bn-display: "Anek Bangla", "Hind Siliguri", "Noto Sans Bengali", system-ui, sans-serif;
  --font-bn-body: "Hind Siliguri", "Noto Sans Bengali", "Anek Bangla", system-ui, sans-serif;
  --font-body: var(--font-bn-body);
  --font-display: var(--font-bn-display);
  --display-stretch: 112.5%;

  /* Fixed type scale (rem) */
  --fs-xs: 0.8125rem;   /* 13 */
  --fs-sm: 0.9375rem;   /* 15 */
  --fs-md: 1rem;        /* 16 */
  --fs-lg: 1.125rem;    /* 18 */
  --fs-xl: 1.375rem;    /* 22 */
  --fs-2xl: 1.75rem;    /* 28 */
  --fs-3xl: 2.25rem;    /* 36 */
  --fs-4xl: 3rem;       /* 48 */

  --gutter: 16px;
  --maxw: 1200px;
  --radius: 10px;
  --radius-sm: 6px;
  --header-h: 60px;
}

/* ---------- Tokens: dark (only tokens change) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0C1624;
    --surface: #15233A;
    --surface-2: #1C2D48;
    --ink: #EEF0EC;
    --muted: #9AA3AF;
    --line: #24344D;
    --line-strong: #34486A;
    --accent-soft: #3A3217;
    --brick-ink: #E68D66;
    --brick-soft: #3A2419;
    --ok-ink: #4ADE80;
    --ok-soft: #12351F;
    --danger: #F97066;
    --danger-soft: #3B1C1C;
    --hero-bg: #111E33;
    --hero-line: #24344D;
    --hero-field: #1A2A44;
    --ring-track: #24344D;
    --overlay: rgb(0 0 0 / 0.6);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 10px 28px rgb(0 0 0 / 0.35);
    --shadow-up: 0 -6px 20px rgb(0 0 0 / 0.4);
    --pattern-opacity: 0.05;
    --show-light: none;
    --show-dark: inline-block;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0C1624;
  --surface: #15233A;
  --surface-2: #1C2D48;
  --ink: #EEF0EC;
  --muted: #9AA3AF;
  --line: #24344D;
  --line-strong: #34486A;
  --accent-soft: #3A3217;
  --brick-ink: #E68D66;
  --brick-soft: #3A2419;
  --ok-ink: #4ADE80;
  --ok-soft: #12351F;
  --danger: #F97066;
  --danger-soft: #3B1C1C;
  --hero-bg: #111E33;
  --hero-line: #24344D;
  --hero-field: #1A2A44;
  --ring-track: #24344D;
  --overlay: rgb(0 0 0 / 0.6);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 10px 28px rgb(0 0 0 / 0.35);
  --shadow-up: 0 -6px 20px rgb(0 0 0 / 0.4);
  --pattern-opacity: 0.05;
  --show-light: none;
  --show-dark: inline-block;
}

html[lang="en"] {
  --font-body: var(--font-latin);
  --font-display: var(--font-latin);
  --display-stretch: 118%;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.has-cartbar { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  line-height: 1.2;
  margin: 0 0 0.5em;
  text-wrap: balance;
  letter-spacing: -0.005em;
}
html[lang="en"] h1, html[lang="en"] h2 { letter-spacing: -0.02em; }
h2 { font-size: var(--fs-2xl); font-weight: 800; }
h3 { font-size: var(--fs-lg); font-weight: 700; }
p { margin: 0 0 1em; max-width: 65ch; }
.num, .price { font-variant-numeric: tabular-nums; }
.latin { font-family: var(--font-latin); }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--navy);
  border-radius: 4px;
}

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 10px 14px; border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 8px); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.section { padding: 56px 0; }
.section-head { margin-bottom: 28px; max-width: 720px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
html[lang="bn"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: var(--fs-sm); }
.eyebrow::before { content: ""; width: 18px; height: 3px; background: var(--accent); border-radius: 2px; }
.lede { color: var(--muted); font-size: var(--fs-lg); }

.hazard {
  height: 6px; border: 0; margin: 0;
  background: repeating-linear-gradient(45deg, var(--navy) 0 10px, var(--accent) 10px 20px);
}

/* ---------- Icons ---------- */
.ic { display: inline-flex; width: 24px; height: 24px; flex: none; }
.ic svg { width: 100%; height: 100%; }
.ic-sm { width: 18px; height: 18px; }
.ic-lg { width: 32px; height: 32px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--ink); --btn-bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 20px;
  background: var(--btn-bg); color: var(--btn-fg); border: 2px solid var(--btn-bd);
  border-radius: var(--radius); font-weight: 700; font-size: var(--fs-md); line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: transform .12s ease, background-color .12s ease, border-color .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-primary { --btn-bg: var(--accent); --btn-fg: var(--on-accent); --btn-bd: var(--accent); }
.btn-primary:hover { border-color: var(--on-accent); }
.btn-ink { --btn-bg: var(--ink); --btn-fg: var(--bg); --btn-bd: var(--ink); }
.btn-ghost-hero { --btn-bg: transparent; --btn-fg: var(--hero-ink); --btn-bd: var(--hero-muted); }
.btn-ghost-hero:hover { border-color: var(--accent); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 6px 14px; font-size: var(--fs-sm); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; min-height: 44px; padding: 0 10px;
  background: transparent; border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  color: var(--ink); cursor: pointer; font-weight: 600; font-size: var(--fs-sm);
}
.icon-btn:hover { border-color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header::before { /* fills the notch area above the sticky header */
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: env(safe-area-inset-top, 0px); background: var(--bg);
}
.header-row { display: flex; align-items: center; gap: 10px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; margin-right: auto; padding: 4px 0; }
.brand img { height: 30px; width: auto; }
.brand .logo-l { display: var(--show-light); }
.brand .logo-d { display: var(--show-dark); }
.main-nav { display: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a {
  display: block; padding: 8px 12px; border-radius: var(--radius-sm); text-decoration: none;
  font-weight: 600; font-size: var(--fs-sm); color: var(--ink);
}
.main-nav a:hover { background: var(--surface-2); }
.header-tools { display: flex; align-items: center; gap: 6px; }
.lang-toggle { display: inline-flex; border: 1.5px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.lang-toggle button {
  min-height: 40px; min-width: 44px; padding: 0 8px; border: 0; background: transparent; cursor: pointer;
  font-weight: 700; font-size: var(--fs-sm); color: var(--muted);
}
.lang-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.lang-toggle .sep { width: 1px; background: var(--line-strong); }
.theme-btn .theme-label { display: none; }
.cart-btn { position: relative; }
.cart-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: var(--accent); color: var(--on-accent); font-size: var(--fs-xs); font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums;
}
.menu-btn { display: inline-flex; }
.mobile-nav { border-top: 1px solid var(--line); padding: 8px 0 14px; }
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mobile-nav a { display: block; padding: 12px 4px; text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }

@media (max-width: 440px) {
  .brand img { height: 26px; }
  .header-row { gap: 6px; }
  .header-tools { gap: 4px; }
  .icon-btn { min-width: 40px; padding: 0 6px; gap: 4px; }
  .lang-toggle button { min-width: 36px; padding: 0 6px; }
}
@media (max-width: 374px) {
  .brand img { height: 22px; }
  .icon-btn { min-width: 38px; padding: 0 5px; }
  .lang-toggle button { min-width: 34px; padding: 0 4px; }
  .cart-count { min-width: 20px; padding: 0 4px; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--hero-bg); color: var(--hero-ink);
  padding: 36px 0 40px; position: relative;
}
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero h1 {
  font-size: var(--fs-3xl); font-weight: 800; margin-bottom: 14px; color: var(--hero-ink);
}
.hero h1 .hl { color: var(--accent); }
.hero-sub { color: var(--hero-muted); font-size: var(--fs-lg); max-width: 36ch; margin-bottom: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.hero-cta .btn { flex: 1 1 200px; }

.ring-block { display: flex; align-items: center; gap: 18px; }
.ring { width: 132px; height: 132px; flex: none; }
.ring svg { width: 100%; height: 100%; overflow: visible; }
.ring .track { stroke: var(--ring-track); }
.ring .arc { stroke: var(--accent); stroke-dasharray: 100 100; stroke-dashoffset: 0; }
.ring .wedge { fill: var(--ring-track); opacity: .7; }
.ring .crown { fill: var(--accent); }
.ring .num-60 { fill: var(--hero-ink); font-family: var(--font-latin); font-weight: 800; font-stretch: 125%; font-size: 30px; }
.ring .num-lbl { fill: var(--hero-muted); font-family: var(--font-body); font-size: 11px; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .ring.animate .arc { animation: ring-draw 1.6s cubic-bezier(.3,.7,.2,1) .25s both; }
  .ring.animate .hand { animation: ring-hand 1.6s cubic-bezier(.3,.7,.2,1) .25s both; transform-origin: 60px 64px; }
}
@keyframes ring-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes ring-hand { from { transform: rotate(-300deg); } to { transform: rotate(0deg); } }
.ring .hand { stroke: var(--hero-ink); }
.eta { min-width: 0; }
.eta-label { font-size: var(--fs-xs); font-weight: 700; color: var(--hero-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
html[lang="bn"] .eta-label { text-transform: none; letter-spacing: 0; font-size: var(--fs-sm); }
.eta-line { font-size: var(--fs-lg); font-weight: 600; line-height: 1.45; margin: 0; }
.eta-line strong { color: var(--accent); font-variant-numeric: tabular-nums; }
.eta-hours { font-size: var(--fs-sm); color: var(--hero-muted); margin: 6px 0 0; }

.area-check {
  margin-top: 26px; padding: 16px; border: 1px solid var(--hero-line); border-radius: var(--radius);
  background: var(--hero-field);
}
.area-check label { display: block; font-weight: 700; margin-bottom: 8px; }
.area-check select {
  width: 100%; min-height: 48px; padding: 8px 12px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--hero-line); background: var(--hero-bg); color: var(--hero-ink);
}
.area-result { margin-top: 12px; min-height: 1.6em; font-weight: 600; display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.area-result:empty { display: none; }
.area-result .pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: var(--fs-sm); font-weight: 700; }
.pill-ok { background: var(--ok); color: var(--hero-ink); }
.pill-sched { background: var(--brick); color: var(--on-brick); }
.pill-soon { background: var(--hero-line); color: var(--hero-ink); }
.area-result .note { flex: 1 1 220px; color: var(--hero-muted); font-weight: 500; font-size: var(--fs-sm); }
.area-result a { color: var(--accent); font-weight: 700; }

/* ---------- Lanes ---------- */
.lanes { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.lane { padding: 24px 20px; position: relative; }
.lane + .lane { border-top: 1px solid var(--line); }
.lane-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.lane-icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.lane-express .lane-icon { background: var(--accent); color: var(--on-accent); }
.lane-schedule .lane-icon { background: var(--brick); color: var(--on-brick); }
.lane h3 { margin: 0; font-size: var(--fs-xl); }
.lane-time { font-family: var(--font-latin); font-stretch: 125%; font-weight: 800; font-size: var(--fs-sm); color: var(--muted); font-variant-numeric: tabular-nums; }
html[lang="bn"] .lane-time { font-family: var(--font-bn-display); font-stretch: 100%; }
.lane p { color: var(--muted); }
.lane-cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.lane-cats li { font-size: var(--fs-sm); padding: 3px 10px; border-radius: 999px; background: var(--surface-2); }
.fee-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.fee-table caption { text-align: left; font-weight: 700; padding-bottom: 6px; font-size: var(--fs-sm); }
.fee-table th, .fee-table td { text-align: left; padding: 7px 0; border-top: 1px dashed var(--line-strong); }
.fee-table td { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.fee-table th { font-weight: 500; color: var(--muted); }
.fee-table .free { color: var(--ok-ink); }
.lane-foot { margin-top: 12px; font-size: var(--fs-sm); color: var(--muted); }

/* ---------- Shop ---------- */
.shop-tools { display: grid; gap: 12px; margin-bottom: 14px; }
.search { position: relative; }
.search input {
  width: 100%; min-height: 50px; padding: 10px 14px 10px 44px; border-radius: var(--radius);
  border: 1.5px solid var(--line-strong); background: var(--surface); font-size: var(--fs-md);
}
.search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 20px; height: 20px; }
.chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 calc(-1 * var(--gutter));
  padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: thin; scroll-snap-type: x proximity;
}
.chip {
  display: inline-flex; align-items: center; gap: 8px; flex: none; scroll-snap-align: start;
  min-height: 44px; padding: 6px 14px 6px 10px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font-weight: 600; font-size: var(--fs-sm); cursor: pointer; white-space: nowrap;
}
.chip .ic { width: 20px; height: 20px; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip.chip-heavy[aria-pressed="true"] { background: var(--brick); border-color: var(--brick); color: var(--on-brick); }
.price-note {
  display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); color: var(--muted);
  padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 4px 0 18px; max-width: none;
}
.result-count { font-size: var(--fs-sm); color: var(--muted); margin: 0 0 10px; }

.grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.card { background: var(--surface); box-shadow: 0 0 0 1px var(--line); padding: 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; position: relative; }
.card-media {
  aspect-ratio: 3 / 2; border-radius: var(--radius-sm); background: var(--surface-2);
  display: grid; place-items: center; overflow: hidden; color: var(--ink); position: relative;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .ic { width: 40px; height: 40px; opacity: .85; }
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 4px;
  font-size: var(--fs-xs); font-weight: 700; line-height: 1.5; white-space: nowrap;
}
.badge-express { background: var(--accent); color: var(--on-accent); }
.badge-schedule { background: var(--brick); color: var(--on-brick); }
.badge-pl { background: var(--ink); color: var(--bg); }
.card-badges { position: absolute; left: 6px; top: 6px; right: 6px; display: flex; flex-wrap: wrap; gap: 4px; }
.card-brand { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.card-name { font-size: var(--fs-sm); font-weight: 600; line-height: 1.4; margin: 0; overflow-wrap: anywhere; }
.card-price { margin-top: auto; display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.card-price .price { font-size: var(--fs-lg); font-weight: 800; font-family: var(--font-latin); font-stretch: 112%; }
html[lang="bn"] .card-price .price { font-family: var(--font-bn-display); font-stretch: 100%; }
.card-price .unit { font-size: var(--fs-xs); color: var(--muted); }
.card-price .est { font-size: var(--fs-xs); color: var(--muted); }
.card-actions { display: flex; gap: 6px; align-items: stretch; flex-wrap: wrap; }
.stepper { display: inline-flex; align-items: stretch; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; flex: 1 1 100px; min-width: 0; }
.stepper button { width: 36px; min-height: 40px; border: 0; background: var(--surface-2); cursor: pointer; font-size: 1.1rem; font-weight: 700; color: var(--ink); flex: none; }
.stepper button:hover { background: var(--line-strong); }
.stepper input { width: 100%; min-width: 0; border: 0; text-align: center; background: transparent; font-weight: 700; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.add-btn { flex: 1 1 100%; min-height: 40px; padding: 6px 10px; font-size: var(--fs-sm); }
.in-cart { font-size: var(--fs-xs); font-weight: 700; color: var(--ok-ink); display: flex; align-items: center; gap: 6px; }
.in-cart::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.card-photo-cta { background: var(--accent-soft); grid-column: span 2; display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 8px 14px; }
.card-photo-cta .card-media { background: var(--accent); color: var(--on-accent); aspect-ratio: 1; grid-row: span 2; }
.card-photo-cta .card-media .ic { width: 30px; height: 30px; }
.card-photo-cta .add-btn { grid-column: 1 / -1; flex: none; justify-self: start; }
.card-photo-cta p { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.more-row { display: flex; justify-content: flex-start; margin-top: 16px; }
.more-row[hidden] { display: none; }
.empty-state { padding: 28px 16px; text-align: left; color: var(--muted); grid-column: 1 / -1; background: var(--surface); }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 16px 0; position: relative; }
.steps li + li { border-top: 1px solid var(--line); }
.step-no {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--ink); font-family: var(--font-latin); font-stretch: 125%; font-weight: 800; font-size: var(--fs-lg); font-variant-numeric: tabular-nums;
}
html[lang="bn"] .step-no { font-family: var(--font-bn-display); font-stretch: 100%; }
.steps li:last-child .step-no { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.steps h3 { margin: 2px 0 4px; }
.steps p { color: var(--muted); margin: 0; font-size: var(--fs-sm); }
.step-time { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Why ---------- */
.why { display: grid; gap: 0; }
.why-item { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.why-item:last-child { border-bottom: 1px solid var(--line); }
.why-item .ic-wrap { width: 44px; height: 44px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; }
.why-item h3 { margin: 0 0 4px; }
.why-item p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.why-figure { font-family: var(--font-latin); font-weight: 800; font-stretch: 125%; font-variant-numeric: tabular-nums; }
html[lang="bn"] .why-figure { font-family: var(--font-bn-display); font-stretch: 100%; }

/* ---------- Pro teaser ---------- */
.pro-band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pro-grid { display: grid; gap: 24px; align-items: center; }
.pro-big {
  font-family: var(--font-latin); font-stretch: 125%; font-weight: 900; font-size: 4.5rem; line-height: 1;
  font-variant-numeric: tabular-nums; margin: 0;
}
html[lang="bn"] .pro-big { font-family: var(--font-bn-display); font-stretch: 100%; }
.pro-big small { font-size: var(--fs-lg); font-weight: 700; color: var(--muted); display: block; margin-top: 8px; font-family: var(--font-body); font-stretch: 100%; }
.perk-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.perk-list li { display: flex; gap: 10px; align-items: flex-start; }
.perk-list li::before { content: ""; width: 10px; height: 10px; margin-top: .55em; flex: none; background: var(--accent); border: 2px solid var(--ink); border-radius: 2px; }

/* ---------- Bulk quote (the one brick-pattern section) ---------- */
.bulk { position: relative; overflow: hidden; background: var(--bg); }
.bulk .brick-pattern { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--ink); opacity: var(--pattern-opacity); pointer-events: none; }
.bulk .wrap { position: relative; }
.bulk-card { border: 2px solid var(--ink); border-radius: var(--radius); background: var(--surface); padding: 24px 20px; display: grid; gap: 16px; max-width: 860px; }
.bulk-card h2 { margin: 0; }
.bulk-card p { margin: 0; color: var(--muted); }
.bulk-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: var(--fs-sm); color: var(--muted); padding: 0; margin: 0; list-style: none; }
.bulk-meta li { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Areas ---------- */
.areas-grid { display: grid; gap: 28px; }
.radius-diagram { position: relative; width: min(100%, 240px); aspect-ratio: 1; margin: 0; }
.radius-diagram svg { width: 100%; height: 100%; }
.radius-diagram .r-ring { fill: none; stroke: var(--line-strong); stroke-dasharray: 4 6; }
.radius-diagram .r-ring-outer { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 2; }
.radius-diagram .r-point { fill: var(--ink); }
.radius-diagram .r-dot { fill: var(--ink); opacity: .55; }
.radius-diagram .r-text { fill: var(--ink); font-family: var(--font-body); font-size: 12px; font-weight: 700; }
.radius-diagram .r-small { fill: var(--muted); font-family: var(--font-body); font-size: 11px; font-weight: 600; }
.area-chips { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.area-chips li { padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: var(--fs-sm); }
.status-live { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ok-ink); font-size: var(--fs-sm); }
.status-live::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line-strong); }
.timeline li { position: relative; padding: 0 0 16px 18px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .5em; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--muted); }
.timeline .when { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); display: block; font-variant-numeric: tabular-nums; }
.timeline .where { font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 40px 16px 0; font-weight: 700; position: relative; font-size: var(--fs-md);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); transition: transform .15s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .answer { padding: 0 0 18px; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--hero-bg); color: var(--hero-ink); padding: 40px 0 28px; }
.site-footer a { color: var(--hero-ink); }
.foot-grid { display: grid; gap: 28px; }
.site-footer img { height: 32px; width: auto; }
.foot-tag { color: var(--hero-muted); margin-top: 10px; }
.site-footer h2 { font-size: var(--fs-sm); font-weight: 700; color: var(--hero-muted); margin-bottom: 8px; font-stretch: 100%; }
html[lang="en"] .site-footer h2 { text-transform: uppercase; letter-spacing: .08em; font-size: var(--fs-xs); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer .muted { color: var(--hero-muted); font-size: var(--fs-sm); }
.foot-phone { font-family: var(--font-latin); font-weight: 800; font-stretch: 112%; font-size: var(--fs-xl); user-select: all; font-variant-numeric: tabular-nums; }
.foot-bottom { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--hero-line); display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; font-size: var(--fs-sm); color: var(--hero-muted); }
.foot-bottom a { color: var(--hero-muted); }

/* ---------- Mobile cart bar ---------- */
.cartbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
  background: var(--ink); color: var(--bg); box-shadow: var(--shadow-up);
  padding: 10px max(var(--gutter), env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
  display: flex; align-items: center; gap: 12px;
}
.cartbar[hidden] { display: none; }
.cartbar .cb-info { flex: 1; min-width: 0; line-height: 1.3; }
.cartbar .cb-count { font-size: var(--fs-xs); opacity: .8; }
.cartbar .cb-total { font-weight: 800; font-size: var(--fs-lg); font-variant-numeric: tabular-nums; }
.cartbar .btn { min-height: 46px; }

/* ---------- Cart drawer (native dialog) ---------- */
dialog.drawer {
  padding: 0; border: 0; margin: 0; margin-left: auto;
  width: 100%; max-width: 480px; height: 100%; max-height: 100%;
  background: var(--bg); color: var(--ink);
  box-shadow: var(--shadow);
}
dialog.drawer::backdrop { background: var(--overlay); }
.drawer-inner { display: flex; flex-direction: column; height: 100%; }
.drawer-head {
  display: flex; align-items: center; gap: 10px; padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px;
  border-bottom: 1px solid var(--line); background: var(--surface);
}
.drawer-head h2 { margin: 0; font-size: var(--fs-xl); flex: 1; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px; overscroll-behavior: contain; }
.drawer-foot { border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--surface); }
.cart-group { margin-bottom: 18px; }
.cart-group-head { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 6px; font-size: var(--fs-sm); }
.cart-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; padding: 12px; }
.cart-item + .cart-item { border-top: 1px solid var(--line); }
.ci-name { font-weight: 600; font-size: var(--fs-sm); line-height: 1.4; }
.ci-meta { font-size: var(--fs-xs); color: var(--muted); }
.ci-line { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.ci-controls { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; }
.ci-controls .stepper { flex: 0 1 150px; }
.link-btn { background: none; border: 0; padding: 8px 4px; cursor: pointer; color: var(--danger); font-weight: 600; font-size: var(--fs-sm); text-decoration: underline; text-underline-offset: 3px; }
.summary { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.summary th { text-align: left; font-weight: 500; color: var(--muted); padding: 5px 0; }
.summary td { text-align: right; font-weight: 700; padding: 5px 0; font-variant-numeric: tabular-nums; }
.summary tr.total th, .summary tr.total td { border-top: 2px solid var(--ink); padding-top: 10px; font-size: var(--fs-lg); color: var(--ink); font-weight: 800; }
.summary .sub-note td, .summary .sub-note th { font-size: var(--fs-xs); color: var(--muted); font-weight: 500; padding-top: 0; }
.notice { font-size: var(--fs-sm); padding: 10px 12px; border-radius: var(--radius-sm); margin: 10px 0; max-width: none; }
.notice-warn { background: var(--accent-soft); color: var(--ink); border-left: 3px solid var(--accent); }
.notice-info { background: var(--surface-2); color: var(--ink); }
.notice-err { background: var(--danger-soft); color: var(--ink); border-left: 3px solid var(--danger); }
.points-preview { display: flex; gap: 8px; align-items: center; font-size: var(--fs-sm); padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); margin: 12px 0; }
.points-preview strong { font-variant-numeric: tabular-nums; }
.cart-empty { text-align: left; padding: 24px 4px; color: var(--muted); }
.cart-empty .ic { width: 44px; height: 44px; color: var(--ink); margin-bottom: 10px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .field > .label, fieldset legend { font-weight: 700; font-size: var(--fs-sm); }
.field .hint { font-size: var(--fs-xs); color: var(--muted); }
.req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: var(--fs-md);
}
.field textarea { min-height: 84px; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--danger); background: var(--danger-soft); }
.err { color: var(--danger); font-size: var(--fs-sm); font-weight: 600; min-height: 0; }
.err:empty { display: none; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset legend { padding: 0; margin-bottom: 8px; }
.choice-list { display: grid; gap: 8px; }
.choice {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm); background: var(--surface); cursor: pointer;
}
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice input { margin: 3px 0 0; width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.choice .c-title { font-weight: 700; font-size: var(--fs-sm); display: block; }
.choice .c-sub { font-size: var(--fs-xs); color: var(--muted); display: block; }
.choice-inline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.two-col { display: grid; gap: 16px; }
.form-actions { display: grid; gap: 10px; }

/* ---------- Confirmation ---------- */
.confirm h3 { font-size: var(--fs-xl); }
.confirm .ref { font-family: var(--font-latin); font-weight: 800; font-stretch: 112%; font-size: var(--fs-xl); letter-spacing: .02em; user-select: all; }
.confirm textarea {
  width: 100%; min-height: 220px; font-family: var(--font-body); font-size: var(--fs-sm);
  padding: 10px; border-radius: var(--radius-sm); border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); line-height: 1.5;
}
.confirm .phone-sel { font-family: var(--font-latin); font-weight: 800; user-select: all; font-variant-numeric: tabular-nums; }
.copy-status { font-size: var(--fs-sm); color: var(--ok-ink); font-weight: 700; min-height: 1.4em; }
.wa-steps { padding-left: 1.2em; margin: 0 0 14px; font-size: var(--fs-sm); color: var(--muted); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(92px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--radius); font-weight: 600; font-size: var(--fs-sm);
  box-shadow: var(--shadow); max-width: calc(100% - 32px); pointer-events: none;
}
.toast[hidden] { display: none; }

/* ---------- Pro page ---------- */
.pro-hero { background: var(--hero-bg); color: var(--hero-ink); padding: 40px 0 44px; }
.pro-hero h1 { font-size: var(--fs-3xl); font-weight: 800; color: var(--hero-ink); }
.pro-hero h1 .hl { color: var(--accent); }
.pro-hero p { color: var(--hero-muted); font-size: var(--fs-lg); }
.who { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.who li { padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--ink); font-weight: 600; font-size: var(--fs-sm); background: var(--surface); }
.benefits { display: grid; gap: 0; border-top: 1px solid var(--line); }
.benefit { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.benefit .b-no { font-family: var(--font-latin); font-stretch: 125%; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
html[lang="bn"] .benefit .b-no { font-family: var(--font-bn-display); font-stretch: 100%; }
.benefit h3 { margin: 0 0 2px; }
.benefit p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.soon-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 4px; background: var(--surface-2); color: var(--muted); font-size: var(--fs-xs); font-weight: 700; vertical-align: middle; }
.example { border: 2px solid var(--ink); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.example-head { padding: 14px 16px; background: var(--accent); color: var(--on-accent); font-weight: 700; }
.example table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.example th, .example td { padding: 10px 16px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.example td.n { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.example tfoot th, .example tfoot td { border-top: 2px solid var(--ink); font-weight: 800; font-size: var(--fs-md); }
.example .ex-note { padding: 12px 16px; font-size: var(--fs-xs); color: var(--muted); border-top: 1px solid var(--line); margin: 0; max-width: none; }
.signup { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 16px; }

/* ---------- Breakpoints ---------- */
@media (min-width: 560px) {
  .card-media { aspect-ratio: 4 / 3; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .two-col { grid-template-columns: 1fr 1fr; }
  .add-btn { flex: 1 1 auto; }
}
@media (min-width: 720px) {
  :root { --gutter: 24px; }
  .section { padding: 72px 0; }
  h2 { font-size: var(--fs-3xl); }
  .hero { padding: 56px 0 60px; }
  .hero h1, .pro-hero h1 { font-size: var(--fs-4xl); }
  .lanes { grid-template-columns: 1fr 1fr; }
  .lane { padding: 28px; }
  .lane + .lane { border-top: 0; border-left: 1px solid var(--line); }
  .shop-tools { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .steps li { grid-template-columns: 1fr; padding: 0; border-top: 0 !important; }
  .steps li::after { content: ""; position: absolute; top: 24px; left: 60px; right: -12px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px); }
  .steps li:last-child::after { display: none; }
  .why { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .why-item:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .pro-grid { grid-template-columns: 1fr 1.4fr; gap: 48px; }
  .radius-diagram { width: min(100%, 320px); }
  .areas-grid { grid-template-columns: 320px 1fr 1fr; gap: 40px; align-items: start; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .bulk-card { grid-template-columns: 1fr auto; align-items: center; padding: 32px; }
  .bulk-card .bulk-text { display: grid; gap: 12px; }
  .ring { width: 168px; height: 168px; }
}
@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
  .hero-side { padding-left: 32px; border-left: 1px solid var(--hero-line); }
  .main-nav { display: block; }
  .menu-btn { display: none; }
  .mobile-nav { display: none !important; }
  .theme-btn .theme-label { display: inline; }
  .cartbar { display: none !important; }
  body.has-cartbar { padding-bottom: 0; }
  .toast { bottom: 24px; }
  .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 2px 0 8px; }
}
@media (min-width: 1200px) {
  .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

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

@media print {
  .site-header, .cartbar, .hero-cta, .area-check, .shop-tools, .card-actions, .toast { display: none !important; }
  body { background: var(--surface); }
}
