/* BooksQuill marketing site — mobile-first, bilingual, no trackers. */

@font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Sans Arabic"; src: url("assets/fonts/noto-sans-arabic-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Sans Arabic"; src: url("assets/fonts/noto-sans-arabic-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Sans Arabic"; src: url("assets/fonts/noto-sans-arabic-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Naskh Arabic"; src: url("assets/fonts/noto-naskh-arabic-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Naskh Arabic"; src: url("assets/fonts/noto-naskh-arabic-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --teal: #0E7C66;
  --teal-dark: #0A5C4C;
  --teal-soft: #E6F4F0;
  --ink: #1C2A28;
  --muted: #5B6B67;
  --line: #D7E0DD;
  --bg: #F3F6F5;
  --card: #FFFFFF;
  --warn: #B54708;
  --shadow: 0 18px 40px -24px rgba(10, 92, 76, 0.45);
  --radius: 16px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-ur: "Noto Naskh Arabic", "Noto Sans Arabic", "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Nirmala UI", "Segoe UI", sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
html[lang="ur"] body { font-family: var(--font-ur); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); }
button, input { font: inherit; }

.skip {
  position: absolute;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.skip:focus {
  width: auto; height: auto; margin: 0; clip: auto;
  inset-inline-start: 12px; top: 12px;
  background: #fff; padding: 8px 12px; z-index: 80;
}

.wrap { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(243, 246, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 12px;
  min-height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; letter-spacing: -0.03em; }
.brand img { width: 32px; height: 32px; }
.nav-links { display: none; gap: 16px; margin-inline-start: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.92rem; }
.nav-links a:hover { color: var(--teal-dark); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.lang-toggle {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; padding: 3px; gap: 2px;
}
.lang-toggle button {
  border: 0; background: transparent; padding: 6px 10px; border-radius: 999px;
  cursor: pointer; color: var(--muted); font-weight: 600; font-size: 0.85rem;
}
.lang-toggle button[aria-pressed="true"] { background: var(--teal); color: #fff; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 11px 18px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; line-height: 1.2;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-secondary { background: #fff; color: var(--teal-dark); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--teal); }
.btn-lg { padding: 14px 22px; }
.header-cta { display: none; }
.menu-toggle {
  display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 16px; height: 2px; background: var(--ink); position: relative; content: "";
}
.menu-toggle span::before { position: absolute; top: -5px; }
.menu-toggle span::after { position: absolute; top: 5px; }

@media (min-width: 860px) {
  .nav-links { display: flex; }
  .header-actions { margin-inline-start: 0; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
  .header-inner { gap: 24px; }
}

.mobile-nav {
  display: none; flex-direction: column; gap: 10px;
  padding: 8px 16px 16px; border-top: 1px solid var(--line);
}
body.nav-open .mobile-nav { display: flex; }
.mobile-nav a { text-decoration: none; color: var(--ink); font-weight: 600; padding: 8px 0; }

/* Hero */
.hero { padding: 36px 0 20px; }
.hero-grid { display: grid; gap: 28px; }
.eyebrow {
  display: inline-block; background: var(--teal-soft); color: var(--teal-dark);
  font-weight: 600; font-size: 0.8rem; letter-spacing: 0.02em;
  padding: 5px 10px; border-radius: 999px; margin-bottom: 12px;
}
.hero h1 {
  font-size: clamp(1.7rem, 5vw, 2.7rem);
  line-height: 1.2; letter-spacing: -0.035em; margin: 0 0 14px;
}
.hero .lede { font-size: 1.05rem; color: var(--muted); margin: 0 0 22px; max-width: 38em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.hero-note, .req { color: var(--muted); font-size: 0.9rem; margin: 8px 0 0; }
.req { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.req strong { color: var(--ink); }
.shot-frame {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.shot-frame figcaption { font-size: 0.82rem; color: var(--muted); padding: 8px 12px 12px; }
.shot-frame button, .shot-btn, .gallery button {
  border: 0; background: transparent; padding: 0; cursor: zoom-in; width: 100%;
}
.shot-frame img, .gallery img, .demo-stage img { width: 100%; }
.phone-frame {
  max-width: 280px; margin-inline: auto;
  border: 8px solid var(--ink); border-radius: 28px; overflow: hidden; background: #fff;
}

@media (min-width: 900px) {
  .hero { padding: 56px 0 28px; }
  .hero-grid { grid-template-columns: 1fr 1.05fr; align-items: center; }
}

/* Sections */
section { padding: 48px 0; }
.section-head { margin-bottom: 24px; max-width: 40em; }
.section-head h2 { font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -0.03em; margin: 0 0 8px; }
.section-head p { margin: 0; color: var(--muted); }

.features { display: grid; gap: 14px; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .features { grid-template-columns: 1fr 1fr 1fr; } }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px;
}
.feature h3 { margin: 0 0 6px; font-size: 1.02rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.feat-icon {
  width: 36px; height: 36px; border-radius: 10px; background: var(--teal-soft);
  color: var(--teal-dark); display: grid; place-items: center; font-weight: 700;
  margin-bottom: 10px; font-size: 0.85rem;
}

/* Gallery */
.gallery { display: grid; gap: 14px; }
@media (min-width: 720px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .wide { grid-column: 1 / -1; }
}
.gallery figure {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery figcaption { padding: 10px 12px 12px; font-size: 0.88rem; color: var(--muted); }
.gallery figcaption strong { color: var(--ink); display: block; margin-bottom: 2px; }

/* Demo walkthrough */
.demo-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.demo-tabs button {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 8px 14px; cursor: pointer; font-weight: 600; color: var(--muted);
}
.demo-tabs button[aria-selected="true"] { background: var(--teal); color: #fff; border-color: var(--teal); }
.demo-stage {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.demo-copy { padding: 14px 16px 16px; }
.demo-copy h3 { margin: 0 0 6px; }
.demo-copy p { margin: 0; color: var(--muted); }
.demo-panel { display: none; }
.demo-panel.active { display: block; }

/* Compare */
.compare { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; }
th, td { text-align: start; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--teal-soft); color: var(--teal-dark); font-size: 0.92rem; }
td:not(:first-child), th:not(:first-child) { text-align: center; }
.yes { color: var(--teal-dark); font-weight: 700; }
.no { color: var(--muted); }

/* FAQ */
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 16px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 8px 0 0; color: var(--muted); }

/* Download band */
.download-band {
  background: var(--ink); color: #fff; border-radius: 20px; padding: 28px 24px;
}
.download-band h2 { margin: 0 0 8px; }
.download-band p, .download-band li { color: #d5e4e0; }
.download-band .btn-primary { background: #16a085; }
.download-band a.btn-secondary { background: transparent; color: #fff; border-color: #3a5550; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 0.92rem; }
.footer-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h3 { margin: 0 0 8px; color: var(--ink); font-size: 0.95rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 6px; }
.site-footer a { text-decoration: none; }
.fineprint { margin-top: 22px; font-size: 0.8rem; }

/* Lightbox */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(12, 24, 22, 0.86);
  display: grid; place-items: center; padding: 16px;
}
.lightbox-inner { max-width: min(1200px, 100%); max-height: 100%; }
.lightbox-inner img { max-height: 82vh; width: auto; max-width: 100%; margin: 0 auto; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: 12px; inset-inline-end: 12px;
  width: 40px; height: 40px; border: 0; border-radius: 999px;
  background: #fff; cursor: pointer; font-size: 1.3rem;
}
.lightbox p { color: #e8eeec; text-align: center; margin: 10px 0 0; }

/* RTL tweaks */
html[dir="rtl"] body { font-family: var(--font-ur); line-height: 1.8; }
html[dir="rtl"] .hero h1, html[dir="rtl"] .section-head h2 { letter-spacing: 0; line-height: 1.45; }
html[dir="rtl"] .nav-links { margin-inline-start: auto; margin-inline-end: 0; }

.is-hidden { display: none !important; }

/* ---- v1.2 live demo CTA on the marketing page ---- */
.live-cta-band {
  margin-top: 22px;
  background: var(--teal-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  justify-content: space-between;
}
.live-cta-band h3 { margin: 0 0 4px; font-size: 1.05rem; }
.live-cta-band p { margin: 0; color: var(--muted); max-width: 42em; font-size: 0.95rem; }
.nav-links a[href="demo.html"],
.mobile-nav a[href="demo.html"] { color: var(--teal-dark); }

/* ---- Interactive sample preview (demo.html) ---- */
.demo-page .live-banner {
  background: #0A5C4C;
  color: #f3fbf8;
  padding: 12px 0;
}
.live-banner-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
}
.live-banner-inner p { margin: 0; font-size: 0.92rem; line-height: 1.5; }
.live-pill {
  display: inline-block;
  background: #16a085;
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.live-shell { padding: 28px 0 12px; }
.live-app {
  display: grid;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.live-side {
  background: #f7fbfa;
  border-bottom: 1px solid var(--line);
  padding: 16px;
}
.live-company {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}
.live-company strong { display: block; font-size: 0.95rem; }
.live-company span { display: block; color: var(--muted); font-size: 0.8rem; }
.live-tabs { display: flex; flex-direction: column; gap: 6px; }
.live-tabs button {
  text-align: start;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}
.live-tabs button[aria-selected="true"] {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.live-side-note { margin: 12px 0 0; color: var(--muted); font-size: 0.82rem; }
.live-main { padding: 8px 16px 20px; min-width: 0; }
.live-panel { display: none; }
.live-panel.active { display: block; }
.live-panel-head h1 {
  margin: 8px 0 6px;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  letter-spacing: -0.03em;
}
.live-panel-head p { margin: 0 0 18px; color: var(--muted); max-width: 46em; }

@media (min-width: 900px) {
  .live-app { grid-template-columns: 230px 1fr; }
  .live-side { border-bottom: 0; border-inline-end: 1px solid var(--line); }
  .live-main { padding: 12px 22px 24px; }
}

.inv-grid { display: grid; gap: 20px; }
@media (min-width: 1080px) {
  .inv-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
.inv-meta {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}
@media (min-width: 640px) {
  .inv-meta { grid-template-columns: 1.4fr 1fr 1fr; }
}
.inv-form label { display: flex; flex-direction: column; gap: 4px; font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.inv-form input[type="text"],
.inv-form input[type="number"],
.inv-form input[type="date"] {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.inv-form input:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.weight-bar {
  background: var(--teal-soft);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
}
.switch-label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; color: var(--ink); }
.switch-label input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui {
  width: 40px; height: 22px; border-radius: 999px;
  background: #c5d4d0; position: relative; flex-shrink: 0;
}
.switch-ui::after {
  content: ""; position: absolute; top: 3px; inset-inline-start: 3px;
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  transition: inset-inline-start 0.15s ease;
}
.switch-label input:checked + .switch-ui { background: var(--teal); }
.switch-label input:checked + .switch-ui::after { inset-inline-start: 21px; }
.switch-label input:focus-visible + .switch-ui { outline: 2px solid var(--teal-dark); outline-offset: 2px; }
.hint { margin: 8px 0 0; font-size: 0.82rem; color: var(--muted); font-weight: 400; }
.line-head, .inv-line {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 72px 88px 70px 90px 32px;
  gap: 6px;
  align-items: center;
}
.line-head {
  font-size: 0.72rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.03em;
  margin-bottom: 6px;
}
.inv-line { margin-bottom: 6px; }
.line-amt, .line-amt-h { text-align: end; font-weight: 600; font-size: 0.9rem; }
.line-remove {
  width: 32px; height: 32px; border: 1px solid var(--line);
  background: #fff; border-radius: 8px; cursor: pointer; color: var(--muted);
}
.line-remove:hover { border-color: #b54708; color: #b54708; }
.unit-size-row { margin: 8px 0 12px; }
.unit-size-row label { flex-direction: row; align-items: center; gap: 8px; flex-wrap: wrap; }
.unit-size-row input { width: 88px; }
.btn-sm { padding: 8px 14px; font-size: 0.9rem; }
.inv-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }

.invoice-sheet {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 16px 14px;
  overflow: hidden;
}
.sheet-watermark {
  position: absolute; inset: 30% 0 auto;
  text-align: center; font-size: 4rem; font-weight: 800;
  color: rgba(14, 124, 102, 0.08); letter-spacing: 0.12em;
  pointer-events: none; transform: rotate(-14deg);
}
.sheet-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sheet-brand { display: flex; gap: 10px; align-items: flex-start; }
.sheet-brand p, .sheet-meta p { margin: 0; font-size: 0.8rem; color: var(--muted); }
.sheet-meta h2 { margin: 0 0 4px; font-size: 1.05rem; }
.sheet-bill { margin: 0 0 10px; }
.sheet-table { width: 100%; font-size: 0.88rem; }
.sheet-table th { background: var(--teal-soft); font-size: 0.75rem; }
.sheet-table td:nth-child(n+2), .sheet-table th:nth-child(n+2) { text-align: end; }
.sheet-totals { margin-top: 10px; margin-inline-start: auto; width: min(260px, 100%); }
.sheet-totals div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 0.92rem; }
.sheet-totals .grand { border-top: 2px solid var(--ink); font-size: 1.02rem; margin-top: 4px; padding-top: 8px; }
.sheet-foot { margin: 14px 0 0; font-size: 0.75rem; color: var(--muted); }
.wa-box {
  margin-top: 14px;
  background: #f7fbfa;
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 12px;
}
.wa-box h3 { margin: 0 0 8px; font-size: 0.92rem; }
.wa-box pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.88rem;
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  border: 1px solid var(--line);
}

.kpi-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 18px;
}
@media (min-width: 800px) {
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
}
.kpi-card {
  background: var(--teal-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}
.kpi-card p { margin: 0 0 4px; font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.kpi-card strong { font-size: 1.2rem; letter-spacing: -0.03em; }
.aging-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}
.aging-head h2 { margin: 0 0 4px; font-size: 1.05rem; }
.aging-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.aging-filters button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted);
}
.aging-filters button.is-on,
.aging-filters button[aria-pressed="true"] {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; font-size: 0.92rem; }
.data-table td:nth-child(2), .data-table th:nth-child(2),
.data-table td:nth-child(3), .data-table th:nth-child(3) { text-align: end; }

.acct-progress {
  background: var(--teal-soft);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.acct-progress-label { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; margin-bottom: 8px; }
.progress-bar { height: 8px; background: #d5e8e3; border-radius: 999px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--teal); transition: width 0.2s ease; }
.acct-grid { display: grid; gap: 14px; }
@media (min-width: 800px) {
  .acct-grid { grid-template-columns: 260px 1fr; align-items: start; }
}
.client-list { display: flex; flex-direction: column; gap: 6px; }
.client-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  width: 100%; text-align: start;
  border: 1px solid var(--line); background: #fff; border-radius: 12px;
  padding: 10px 12px; cursor: pointer;
}
.client-btn span { color: var(--muted); font-size: 0.8rem; }
.client-btn.is-on, .client-btn[aria-pressed="true"] {
  border-color: var(--teal);
  background: var(--teal-soft);
}
.checklist-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}
.checklist-card h2 { margin: 0 0 4px; font-size: 1.1rem; }
.checklist { list-style: none; margin: 12px 0 0; padding: 0; }
.checklist li { border-top: 1px solid var(--line); }
.checklist label {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0; cursor: pointer; font-weight: 600;
}
.checklist input { width: 18px; height: 18px; accent-color: var(--teal); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@media (max-width: 639px) {
  .line-head { display: none; }
  .inv-line {
    grid-template-columns: 1fr 1fr 32px;
    grid-template-areas:
      "item item rm"
      "qty rate tax"
      "amt amt amt";
    background: #f7fbfa;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 8px;
  }
  .inv-line [data-f="item"] { grid-area: item; }
  .inv-line [data-f="qty"], .inv-line [data-f="weight"] { grid-area: qty; }
  .inv-line [data-f="rate"] { grid-area: rate; }
  .inv-line [data-f="tax"] { grid-area: tax; }
  .inv-line .line-amt { grid-area: amt; text-align: start; padding: 4px 2px 0; }
  .inv-line .line-remove { grid-area: rm; justify-self: end; }
}

@media print {
  .site-header, .live-banner, .live-side, .inv-form, .inv-toolbar, .wa-box,
  .site-footer, .skip, .live-panel-head { display: none !important; }
  body { background: #fff; }
  .live-shell, .wrap, .live-app, .live-main, .inv-grid, .inv-preview-col, .live-panel.active {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
  }
  .invoice-sheet { border: 0; padding: 0; }
  .sheet-watermark { color: rgba(14, 124, 102, 0.12); }
}

html[dir="rtl"] .sheet-table td:nth-child(n+2),
html[dir="rtl"] .sheet-table th:nth-child(n+2),
html[dir="rtl"] .line-amt, html[dir="rtl"] .line-amt-h { text-align: start; }
html[dir="rtl"] .live-tabs button, html[dir="rtl"] .client-btn { text-align: start; }
html[dir="rtl"] .live-panel-head h1 { letter-spacing: 0; line-height: 1.45; }

@media (min-width: 860px) and (max-width: 1100px) {
  .nav-links { gap: 10px; }
  .nav-links a { font-size: 0.85rem; }
}

/* v1.3 pricing + policy pages */
.cur-toggle { display: inline-flex; gap: 6px; align-items: center; margin-top: 10px; font-size: .92rem; color: var(--muted); }
.cur-toggle button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 12px; cursor: pointer; font: inherit; }
.cur-toggle button[aria-pressed="true"] { background: var(--teal); color: #fff; border-color: var(--teal); }
.pricing-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.price-card.is-featured { border-color: var(--teal); box-shadow: 0 8px 24px rgba(14,124,102,.12); }
.price-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.price-card .price { font-size: 1.6rem; font-weight: 700; margin: 4px 0 0; color: var(--ink); }
.price-card .per { margin: 0 0 10px; color: var(--muted); font-size: .9rem; }
.price-card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .93rem; }
.policy { max-width: 760px; margin: 32px auto 56px; line-height: 1.65; }
.policy h1 { font-size: 1.9rem; margin-bottom: 4px; }
.policy h2 { font-size: 1.15rem; margin-top: 28px; }
.policy .tag { display: inline-block; background: #fff4e5; color: #8a4b00; border-radius: 6px; padding: 4px 10px; font-size: .88rem; }
.policy .ph { background: #fff8c5; padding: 0 4px; border-radius: 4px; }
.policy .ru { background: #f4f8f7; border-left: 4px solid var(--teal); padding: 12px 16px; border-radius: 8px; }

/* How to pay */
.pay-box {
  margin-top: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
}
.pay-box h3 { margin: 0 0 10px; font-size: 1.2rem; color: var(--ink); }
.pay-box h4 { margin: 16px 0 6px; font-size: 1rem; color: var(--teal-dark); }
.pay-box p, .pay-box li { margin: 0 0 8px; color: var(--muted); }
.pay-details { display: grid; gap: 8px 24px; margin: 10px 0 14px; }
@media (min-width: 560px) { .pay-details { grid-template-columns: 1fr 1fr; } }
.pay-details div { background: var(--teal-soft); border-radius: 10px; padding: 10px 14px; }
.pay-details dt { font-size: .8rem; color: var(--muted); margin: 0 0 2px; }
.pay-details dd { margin: 0; font-size: 1.05rem; color: var(--ink); }
.pay-steps { margin: 0 0 8px; padding-inline-start: 20px; }
.download-band .pay-box {
  background: #16332e;
  border-color: #2a4d46;
  margin-top: 22px;
}
.download-band .pay-box h3 { color: #fff; }
.download-band .pay-box h4 { color: #7dcdc0; }
.download-band .pay-box p, .download-band .pay-box li { color: #d5e4e0; }
.download-band .pay-details div { background: #0f2420; }
.download-band .pay-details dt { color: #9bb8b2; }
.download-band .pay-details dd { color: #fff; }
.download-band .pay-box a { color: #9ee3d6; }
