/* ═══════════════════════════════════════════════════════════
   E-GRANTHA LEAFLET — STYLES
   Design: Parchment & Ink base + Scanfo Orange accent
   Fonts: Cormorant Garamond (serif display) + DM Sans (body)
   Palette:
     --ink:        #1A1410  (near-black, warm)
     --ink-mid:    #3D3028
     --ink-light:  #6B5B4E
     --parchment:  #F7F2E8  (warm off-white)
     --parchment-2:#EDE6D6
     --orange:     #E5732B  (Scanfo / saffron accent)
     --orange-lt:  #F5A06A
     --orange-bg:  #FDF0E6
     --indigo:     #1F2A5C  (deep indigo secondary)
     --indigo-lt:  #3D4F8A
     --indigo-bg:  #EEF0F8
═══════════════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:         #1A1410;
  --ink-mid:     #3D3028;
  --ink-light:   #6B5B4E;
  --ink-faint:   #A89880;
  --parchment:   #F7F2E8;
  --parchment-2: #EDE6D6;
  --parchment-3: #E2D9C8;
  --orange:      #E5732B;
  --orange-lt:   #F5A06A;
  --orange-bg:   #FDF0E6;
  --orange-glow: rgba(229,115,43,0.18);
  --indigo:      #1F2A5C;
  --indigo-lt:   #3D4F8A;
  --indigo-bg:   #EEF0F8;
  --white:       #FFFFFF;

  /* Panel dimensions — A4 tri-fold: 297mm wide × 210mm tall, each panel ~99mm */
  --panel-w:     99mm;
  --panel-h:     210mm;
  --sheet-w:     297mm;
  --sheet-h:     210mm;
  --bleed:       3mm;
  --safe:        7mm;
  --panel-pad:   8mm;
}

html { font-size: 10pt; }

body {
  font-family: 'DM Sans', sans-serif;
  background: #D0C8BC;
  color: var(--ink);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* ── Print Controls ───────────────────────────────────── */
.print-controls {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--indigo);
  color: #fff;
  padding: 10px 20px;
}
.print-controls__inner {
  max-width: 340mm;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.print-controls__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.03em;
  opacity: 0.9;
}
.print-controls__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  display: inline-block;
}
.btn-print {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 7px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.2s;
}
.btn-print:hover { background: #c95e1a; }

.sheet-label {
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a6e62;
  padding: 18px 0 6px;
}

/* ── Sheet Layout ─────────────────────────────────────── */
.sheet {
  width: var(--sheet-w);
  height: var(--sheet-h);
  margin: 0 auto 12mm;
  display: flex;
  flex-direction: row;
  background: var(--parchment);
  box-shadow: 0 4px 32px rgba(0,0,0,0.22);
  position: relative;
  overflow: hidden;
}

/* Subtle paper texture overlay */
.sheet::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Fold lines */
.sheet::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: calc(var(--panel-w));
  width: 0;
  border-left: 0.3pt dashed rgba(100,80,60,0.2);
  pointer-events: none;
  z-index: 10;
  box-shadow: calc(var(--panel-w)) 0 0 0 rgba(100,80,60,0.2);
}

/* ── Panel Base ───────────────────────────────────────── */
.panel {
  width: var(--panel-w);
  height: var(--panel-h);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.panel__inner {
  position: relative;
  z-index: 1;
  padding: var(--panel-pad);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 4mm;
}

/* ── Accent Rule ──────────────────────────────────────── */
.accent-rule {
  width: 28px;
  height: 2.5px;
  background: var(--orange);
  border-radius: 2px;
  flex-shrink: 0;
}
.accent-rule--indigo { background: var(--indigo); }
.accent-rule--centre { background: var(--orange); }
.accent-rule--right  { background: var(--orange); }

/* ── Typography ───────────────────────────────────────── */
.panel-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22pt;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.panel-heading--light { color: var(--parchment); }
.panel-heading--centre {
  font-size: 20pt;
  color: var(--ink);
}

.panel-subhead {
  font-size: 8pt;
  line-height: 1.55;
  color: rgba(247,242,232,0.82);
  font-weight: 300;
}

.panel-body {
  font-size: 7.5pt;
  line-height: 1.6;
  color: var(--ink-mid);
  font-weight: 300;
}

/* ═══════════════════════════════════════════════════════
   FRONT COVER PANEL
═══════════════════════════════════════════════════════ */
.panel--front-cover {
  background: var(--indigo);
  position: relative;
}

/* Geometric background decoration */
.panel--front-cover::before {
  content: '';
  position: absolute;
  top: -30mm;
  right: -20mm;
  width: 80mm;
  height: 80mm;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229,115,43,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.panel--front-cover::after {
  content: '';
  position: absolute;
  bottom: 20mm;
  left: -15mm;
  width: 60mm;
  height: 60mm;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229,115,43,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.panel__inner--cover {
  padding: 6mm 7mm;
  gap: 0;
  justify-content: space-between;
}

/* Cover top bar */
.cover-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 4mm;
  border-bottom: 0.5pt solid rgba(255,255,255,0.12);
}

.scanfo-logo-lockup--cover {
  display: flex;
  align-items: center;
  gap: 5px;
}
.scanfo-icon--cover svg {
  width: 18px;
  height: 22px;
}
.scanfo-name--cover {
  font-family: 'DM Sans', sans-serif;
  font-size: 7pt;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.9);
}
/* Cover topbar inline logo */
.cover-scanfo-logo {
  display: flex;
  align-items: center;
  gap: 5px;
}
.cover-scanfo-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 7pt;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(247,242,232,0.85);
  text-transform: uppercase;
}

/* Cover hero */
.cover-hero {
  padding: 5mm 0 3mm;
}
.cover-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 6.5pt;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-lt);
  margin-bottom: 2mm;
}
.cover-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 38pt;
  font-weight: 700;
  line-height: 0.95;
  color: var(--parchment);
  letter-spacing: -0.02em;
  margin-bottom: 1.5mm;
}
.cover-title__e    { color: var(--orange); }
.cover-title__dash { color: var(--orange-lt); font-weight: 400; }
.cover-title__grantha { color: var(--parchment); }

.cover-edition {
  font-family: 'DM Sans', sans-serif;
  font-size: 6.5pt;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247,242,232,0.45);
  margin-bottom: 3mm;
}
.cover-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 9pt;
  font-style: italic;
  line-height: 1.5;
  color: rgba(247,242,232,0.75);
  border-left: 2px solid var(--orange);
  padding-left: 3mm;
  max-width: 80mm;
}

/* Cover UI mockup */
.cover-ui-mockup {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2mm 0;
}

.mockup-frame {
  width: 100%;
  background: rgba(247,242,232,0.06);
  border: 0.5pt solid rgba(247,242,232,0.15);
  border-radius: 4px;
  overflow: hidden;
  backdrop-filter: blur(4px);
}
.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.5mm 3mm;
  background: rgba(247,242,232,0.08);
  border-bottom: 0.5pt solid rgba(247,242,232,0.1);
}
.mockup-header__left {
  display: flex;
  align-items: center;
  gap: 4px;
}
.mockup-logo-dot {
  color: var(--orange);
  font-size: 7pt;
}
.mockup-app-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 8pt;
  font-weight: 600;
  color: var(--parchment);
}
.mockup-app-sub {
  font-size: 5.5pt;
  color: rgba(247,242,232,0.4);
  font-style: italic;
}
.mockup-model {
  font-size: 5.5pt;
  color: rgba(247,242,232,0.35);
}

.mockup-body {
  display: flex;
  height: 28mm;
}
.mockup-chat {
  flex: 1;
  padding: 2.5mm 3mm;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 0.5pt solid rgba(247,242,232,0.08);
}
.mockup-answer {
  font-size: 6.5pt;
  color: rgba(247,242,232,0.8);
  line-height: 1.5;
}
.mockup-answer strong { color: var(--orange-lt); }
.mockup-cite-row {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 2mm;
}
.mockup-cite-label {
  font-size: 5pt;
  color: rgba(247,242,232,0.35);
  letter-spacing: 0.05em;
}
.mockup-page {
  font-size: 5.5pt;
  padding: 0.5mm 2mm;
  border-radius: 2px;
  background: rgba(247,242,232,0.08);
  color: rgba(247,242,232,0.5);
  border: 0.5pt solid rgba(247,242,232,0.12);
}
.mockup-page--active {
  background: rgba(229,115,43,0.25);
  color: var(--orange-lt);
  border-color: rgba(229,115,43,0.4);
}
.mockup-input-row {
  display: flex;
  align-items: center;
  gap: 3mm;
  padding-top: 2mm;
  border-top: 0.5pt solid rgba(247,242,232,0.08);
}
.mockup-input-placeholder {
  flex: 1;
  font-size: 5.5pt;
  color: rgba(247,242,232,0.25);
  font-style: italic;
}
.mockup-send {
  font-size: 5.5pt;
  background: var(--orange);
  color: #fff;
  padding: 1mm 2.5mm;
  border-radius: 2px;
  font-weight: 500;
}

.mockup-viewer {
  width: 28mm;
  padding: 2.5mm;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mockup-viewer__page {
  width: 100%;
  background: rgba(247,242,232,0.05);
  border: 0.5pt solid rgba(247,242,232,0.1);
  border-radius: 2px;
  padding: 2mm;
  position: relative;
}
.mockup-viewer__page--highlighted {
  border-color: rgba(229,115,43,0.35);
  box-shadow: 0 0 6px rgba(229,115,43,0.2);
}
.mockup-page-num {
  font-size: 4.5pt;
  color: rgba(247,242,232,0.3);
  margin-bottom: 1.5mm;
  letter-spacing: 0.05em;
}
.mockup-page-lines { display: flex; flex-direction: column; gap: 1.5mm; }
.mockup-line {
  height: 1.5px;
  border-radius: 1px;
  background: rgba(247,242,232,0.12);
}
.mockup-line--full  { width: 100%; }
.mockup-line--half  { width: 55%; }
.mockup-line--highlight {
  background: rgba(229,115,43,0.35);
  height: auto;
  padding: 1mm 1.5mm;
  border-radius: 2px;
  border: 0.5pt solid rgba(229,115,43,0.5);
}
.mockup-highlight-glow {
  font-size: 4.5pt;
  color: var(--orange-lt);
  font-weight: 500;
  white-space: nowrap;
}
.mockup-glow-ring {
  position: absolute;
  inset: -2px;
  border-radius: 3px;
  border: 1px solid rgba(229,115,43,0.25);
  pointer-events: none;
  animation: pulse-ring 2.5s ease-in-out infinite;
}
@keyframes pulse-ring {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

/* Cover footer */
.cover-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 3mm;
  border-top: 0.5pt solid rgba(255,255,255,0.1);
}
.cover-footer__left {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.cover-footer__label {
  font-size: 5.5pt;
  color: rgba(247,242,232,0.4);
  letter-spacing: 0.05em;
}
.cover-footer__brandverse {
  font-family: 'Cormorant Garamond', serif;
  font-size: 9pt;
  font-weight: 600;
  color: var(--orange-lt);
  letter-spacing: 0.02em;
}
/* Inline SVG #BrandVerse logo on cover */
.cover-bv-logo {
  width: 34mm;
  height: auto;
  display: block;
  margin-top: 1mm;
}
.cover-nothing-leaves {
  font-family: 'Cormorant Garamond', serif;
  font-size: 7pt;
  font-style: italic;
  color: rgba(247,242,232,0.5);
  text-align: right;
  max-width: 30mm;
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════
   BACK-LEFT PANEL — Built for Indian Documents
═══════════════════════════════════════════════════════ */
.panel--back-left {
  background: var(--parchment);
  border-right: 0.5pt solid var(--parchment-3);
}

/* Language grid */
.lang-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2mm;
  margin: 1mm 0;
}
.lang-chip {
  display: flex;
  align-items: center;
  gap: 2.5mm;
  padding: 2mm 3mm;
  border-radius: 3px;
  border: 0.5pt solid var(--parchment-3);
}
.lang-chip--primary {
  background: var(--orange-bg);
  border-color: rgba(229,115,43,0.2);
}
.lang-chip--secondary {
  background: var(--indigo-bg);
  border-color: rgba(31,42,92,0.15);
  grid-column: 1 / -1;
}
.lang-script {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14pt;
  font-weight: 600;
  color: var(--orange);
  line-height: 1;
  min-width: 12px;
  text-align: center;
}
.lang-chip--secondary .lang-script {
  color: var(--indigo);
  font-size: 11pt;
}
.lang-name {
  font-size: 6.5pt;
  font-weight: 500;
  color: var(--ink-mid);
  letter-spacing: 0.02em;
}

/* Sub-doc section */
.subdoc-section { margin: 1mm 0; }
.subdoc-heading {
  font-size: 5.5pt;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 2mm;
  font-weight: 500;
}
.subdoc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5mm;
}
.subdoc-tag {
  font-size: 5.5pt;
  padding: 1mm 2.5mm;
  border-radius: 2px;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.subdoc-tag--invoice  { background: #FFF3E0; color: #E65100; border: 0.5pt solid #FFCC80; }
.subdoc-tag--debit    { background: #FBE9E7; color: #BF360C; border: 0.5pt solid #FFAB91; }
.subdoc-tag--letter   { background: var(--indigo-bg); color: var(--indigo); border: 0.5pt solid rgba(31,42,92,0.2); }
.subdoc-tag--order    { background: #E8F5E9; color: #1B5E20; border: 0.5pt solid #A5D6A7; }
.subdoc-tag--govt     { background: #EDE7F6; color: #4527A0; border: 0.5pt solid #CE93D8; }
.subdoc-tag--chapter  { background: #E3F2FD; color: #0D47A1; border: 0.5pt solid #90CAF9; }
.subdoc-tag--unknown  { background: var(--parchment-2); color: var(--ink-light); border: 0.5pt solid var(--parchment-3); }

/* UI Snippet */
.ui-snippet {
  border: 0.5pt solid var(--parchment-3);
  border-radius: 4px;
  overflow: hidden;
  background: var(--white);
  flex-shrink: 0;
}
.ui-snippet__bar {
  display: flex;
  align-items: center;
  gap: 2.5mm;
  padding: 2mm 3mm;
  background: var(--parchment-2);
  border-bottom: 0.5pt solid var(--parchment-3);
}
.ui-snippet__dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  display: inline-block;
}
.ui-snippet__dot--r { background: #FF5F57; }
.ui-snippet__dot--y { background: #FEBC2E; }
.ui-snippet__dot--g { background: #28C840; }
.ui-snippet__title {
  font-size: 5.5pt;
  color: var(--ink-light);
  margin-left: 1mm;
  font-weight: 500;
}
.ui-snippet__body { padding: 2.5mm 3mm; display: flex; flex-direction: column; gap: 2mm; }
.ui-snippet__query, .ui-snippet__answer {
  display: flex;
  flex-direction: column;
  gap: 0.5mm;
}
.ui-snippet__q-label, .ui-snippet__a-label {
  font-size: 5pt;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.ui-snippet__q-label { color: var(--ink-faint); }
.ui-snippet__a-label { color: var(--orange); }
.ui-snippet__q-text {
  font-size: 6.5pt;
  color: var(--ink-mid);
  font-style: italic;
}
.ui-snippet__a-text {
  font-size: 6.5pt;
  color: var(--ink);
  line-height: 1.5;
}
.ui-snippet__cite {
  display: inline-block;
  background: rgba(229,115,43,0.12);
  color: var(--orange);
  font-size: 5.5pt;
  padding: 0.5mm 1.5mm;
  border-radius: 2px;
  font-weight: 500;
  margin-left: 1mm;
}
.ui-snippet__pages {
  display: flex;
  align-items: center;
  gap: 2mm;
  padding-top: 1.5mm;
  border-top: 0.5pt solid var(--parchment-2);
}
.ui-snippet__page-label {
  font-size: 5pt;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
}
.ui-snippet__page-chip {
  font-size: 5.5pt;
  padding: 0.5mm 2mm;
  border-radius: 2px;
  background: var(--parchment-2);
  color: var(--ink-light);
  border: 0.5pt solid var(--parchment-3);
}
.ui-snippet__page-chip--active {
  background: rgba(229,115,43,0.15);
  color: var(--orange);
  border-color: rgba(229,115,43,0.35);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════
   BACK-RIGHT PANEL — Talk to Us
═══════════════════════════════════════════════════════ */
.panel--back-right {
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.panel--back-right::before {
  content: '';
  position: absolute;
  top: -20mm;
  right: -20mm;
  width: 70mm;
  height: 70mm;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229,115,43,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.back-right__top { display: flex; flex-direction: column; gap: 2mm; }

/* Contact block */
.contact-block {
  display: flex;
  flex-direction: column;
  gap: 3mm;
  padding: 3mm 0;
  border-top: 0.5pt solid rgba(247,242,232,0.1);
  border-bottom: 0.5pt solid rgba(247,242,232,0.1);
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 3mm;
}
.contact-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 0.5mm;
  color: var(--orange);
}
.contact-icon svg { width: 100%; height: 100%; }
.contact-text {
  display: flex;
  flex-direction: column;
  gap: 0.5mm;
}
.contact-label {
  font-size: 5pt;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247,242,232,0.35);
  font-weight: 500;
}
.contact-value {
  font-size: 8pt;
  font-weight: 500;
  color: var(--parchment);
  letter-spacing: 0.01em;
}
.contact-url {
  font-size: 6pt;
  color: var(--orange-lt);
  letter-spacing: 0.02em;
}

/* QR block */
.qr-block {
  display: flex;
  align-items: center;
  gap: 4mm;
  padding: 3mm 0;
}
.qr-wrap {
  width: 22mm;
  height: 22mm;
  background: var(--parchment);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2mm;
  flex-shrink: 0;
}
.qr-wrap canvas,
.qr-wrap img {
  width: 100% !important;
  height: 100% !important;
}
#qrcode { display: flex; align-items: center; justify-content: center; }
.qr-caption {
  display: flex;
  flex-direction: column;
  gap: 1mm;
}
.qr-caption__main {
  font-size: 7pt;
  font-weight: 500;
  color: var(--parchment);
  line-height: 1.3;
}
.qr-caption__sub {
  font-size: 5.5pt;
  color: var(--orange-lt);
  letter-spacing: 0.03em;
}

/* Benefit strip (replaces quickstart) */
.back-benefit-strip {
  display: flex;
  flex-direction: column;
  gap: 2mm;
  padding: 3mm 0;
  border-top: 0.5pt solid rgba(247,242,232,0.1);
  border-bottom: 0.5pt solid rgba(247,242,232,0.1);
}
.back-benefit-item {
  display: flex;
  align-items: center;
  gap: 2.5mm;
  font-size: 6.5pt;
  color: rgba(247,242,232,0.75);
  font-weight: 400;
}
.back-benefit-item svg {
  flex-shrink: 0;
  color: var(--orange);
}

/* Back-right footer */
.back-right__footer {
  margin-top: auto;
  padding-top: 3mm;
  border-top: 0.5pt solid rgba(247,242,232,0.1);
}
.footer-logos {
  display: flex;
  align-items: center;
  gap: 3mm;
}
.footer-logo-scanfo {
  flex: 1;
}
.scanfo-full-logo {
  width: 100%;
  max-width: 52mm;
  height: auto;
  display: block;
}
.footer-divider {
  width: 0.5pt;
  height: 10mm;
  background: rgba(247,242,232,0.15);
  flex-shrink: 0;
}
.footer-logo-bv {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5mm;
}
.footer-bv-label {
  font-size: 5pt;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247,242,232,0.35);
}
.brandverse-logo-svg {
  width: 28mm;
  height: auto;
  display: block;
}

/* ═══════════════════════════════════════════════════════
   INSIDE-LEFT PANEL — The Problem
═══════════════════════════════════════════════════════ */
.panel--inside-left {
  background: var(--parchment);
  border-right: 0.5pt solid var(--parchment-3);
}

.problem-block {
  display: flex;
  flex-direction: column;
  gap: 3mm;
}
.problem-item {
  display: flex;
  align-items: flex-start;
  gap: 3mm;
  padding: 2.5mm;
  background: var(--white);
  border: 0.5pt solid var(--parchment-3);
  border-radius: 3px;
  border-left: 2px solid var(--parchment-3);
}
.problem-item:first-child { border-left-color: var(--orange); }
.problem-item:nth-child(2) { border-left-color: var(--indigo); }
.problem-item:nth-child(3) { border-left-color: #BF360C; }
.problem-item:nth-child(4) { border-left-color: var(--ink-faint); }

.problem-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 0.5mm;
  color: var(--ink-light);
}
.problem-icon svg { width: 100%; height: 100%; }
.problem-text {
  font-size: 6.5pt;
  line-height: 1.55;
  color: var(--ink-mid);
}
.problem-text strong {
  color: var(--ink);
  font-weight: 600;
  display: block;
  margin-bottom: 0.5mm;
}

.problem-callout {
  margin-top: auto;
  padding: 3mm;
  background: var(--orange-bg);
  border: 0.5pt solid rgba(229,115,43,0.2);
  border-left: 2.5px solid var(--orange);
  border-radius: 0 3px 3px 0;
}
.problem-callout p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 8.5pt;
  font-style: italic;
  color: var(--ink-mid);
  line-height: 1.5;
  margin-bottom: 1.5mm;
}
.problem-callout__attr {
  font-size: 5.5pt;
  color: var(--ink-faint);
  letter-spacing: 0.03em;
}

/* ═══════════════════════════════════════════════════════
   INSIDE-CENTRE PANEL — How It Works
═══════════════════════════════════════════════════════ */
.panel--inside-centre {
  background: var(--parchment-2);
  border-right: 0.5pt solid var(--parchment-3);
  position: relative;
}
.panel--inside-centre::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  opacity: 0.4;
}

.panel__inner--centre {
  gap: 3mm;
}

.centre-header { display: flex; flex-direction: column; gap: 1.5mm; }
.centre-subhead {
  font-size: 6.5pt;
  line-height: 1.55;
  color: var(--ink-light);
  font-weight: 300;
}

/* Steps strip */
.steps-strip {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 2.5mm;
  position: relative;
  padding-bottom: 2.5mm;
}
.step:last-child { padding-bottom: 0; }

.step__number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16pt;
  font-weight: 700;
  color: rgba(229,115,43,0.2);
  line-height: 1;
  min-width: 8mm;
  flex-shrink: 0;
  margin-top: -1mm;
}

.step__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 0.5mm;
  color: var(--orange);
}
.step__icon svg { width: 100%; height: 100%; }

.step__content { flex: 1; }
.step__title {
  font-size: 7.5pt;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1mm;
  letter-spacing: 0.01em;
}
.step__desc {
  font-size: 6pt;
  line-height: 1.55;
  color: var(--ink-light);
  font-weight: 300;
}

.step__progress {
  display: flex;
  align-items: center;
  gap: 2mm;
  margin-top: 1.5mm;
}
.step__progress-bar {
  flex: 1;
  height: 2px;
  background: var(--parchment-3);
  border-radius: 1px;
  overflow: hidden;
}
.step__progress-fill {
  width: 65%;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--orange-lt));
  border-radius: 1px;
}
.step__progress-label {
  font-size: 5pt;
  color: var(--orange);
  white-space: nowrap;
  font-style: italic;
}

.step__connector {
  position: absolute;
  left: 8mm;
  bottom: 0;
  width: 20px;
  color: rgba(229,115,43,0.25);
  transform: rotate(90deg);
  transform-origin: left center;
}
.step:last-child .step__connector { display: none; }

/* Centre UI demo */
.centre-ui-demo { flex-shrink: 0; }
.demo-frame {
  border: 0.5pt solid var(--parchment-3);
  border-radius: 4px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.demo-frame__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2mm 3mm;
  background: var(--parchment);
  border-bottom: 0.5pt solid var(--parchment-3);
}
.demo-frame__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 7.5pt;
  font-weight: 600;
  color: var(--ink);
}
.demo-frame__scope {
  font-size: 5pt;
  background: rgba(229,115,43,0.12);
  color: var(--orange);
  padding: 0.5mm 2mm;
  border-radius: 10px;
  font-weight: 500;
}
.demo-frame__split {
  display: flex;
  height: 22mm;
}
.demo-frame__chat {
  flex: 1;
  padding: 2mm 2.5mm;
  display: flex;
  flex-direction: column;
  gap: 1.5mm;
  border-right: 0.5pt solid var(--parchment-2);
}
.demo-msg {
  font-size: 6pt;
  line-height: 1.5;
  padding: 1.5mm 2mm;
  border-radius: 2px;
}
.demo-msg--user {
  background: var(--parchment-2);
  color: var(--ink-mid);
  align-self: flex-end;
  max-width: 90%;
  font-style: italic;
}
.demo-msg--agent {
  background: var(--orange-bg);
  color: var(--ink);
  border-left: 1.5px solid var(--orange);
}
.demo-msg--agent strong { color: var(--orange); }
.demo-pages {
  display: flex;
  gap: 1.5mm;
  margin-top: 1mm;
}
.demo-page {
  font-size: 5pt;
  padding: 0.5mm 1.5mm;
  border-radius: 2px;
  background: var(--parchment-2);
  color: var(--ink-faint);
  border: 0.5pt solid var(--parchment-3);
}
.demo-page--lit {
  background: rgba(229,115,43,0.15);
  color: var(--orange);
  border-color: rgba(229,115,43,0.3);
  font-weight: 600;
}
.demo-frame__viewer {
  width: 26mm;
  padding: 2mm;
  display: flex;
  align-items: center;
  justify-content: center;
}
.demo-viewer-page {
  width: 100%;
  background: var(--parchment);
  border: 0.5pt solid rgba(229,115,43,0.3);
  border-radius: 2px;
  padding: 1.5mm;
  box-shadow: 0 0 5px rgba(229,115,43,0.15);
  display: flex;
  flex-direction: column;
  gap: 1.5mm;
}
.demo-viewer-line {
  height: 1.5px;
  background: var(--parchment-3);
  border-radius: 1px;
}
.demo-viewer-line--sm  { width: 50%; }
.demo-viewer-line--md  { width: 75%; }
.demo-viewer-line--lg  { width: 100%; }
.demo-viewer-highlight {
  background: rgba(229,115,43,0.2);
  border: 0.5pt solid rgba(229,115,43,0.4);
  border-radius: 2px;
  padding: 1mm 1.5mm;
  font-size: 4.5pt;
  color: var(--orange);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════
   INSIDE-RIGHT PANEL — Why E-Grantha
═══════════════════════════════════════════════════════ */
.panel--inside-right {
  background: var(--parchment);
}

.vp-list {
  display: flex;
  flex-direction: column;
  gap: 2.5mm;
  flex: 1;
}
.vp-item {
  display: flex;
  align-items: flex-start;
  gap: 2.5mm;
  padding: 2.5mm;
  border-radius: 3px;
  border: 0.5pt solid var(--parchment-3);
  background: var(--white);
}
.vp-item--accent {
  background: var(--orange-bg);
  border-color: rgba(229,115,43,0.25);
  border-left: 2px solid var(--orange);
}
.vp-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  margin-top: 0.5mm;
  color: var(--ink-faint);
}
.vp-icon--accent { color: var(--orange); }
.vp-icon svg { width: 100%; height: 100%; }
.vp-content { display: flex; flex-direction: column; gap: 0.5mm; }
.vp-title {
  font-size: 7pt;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.vp-title--accent { color: var(--orange); }
.vp-desc {
  font-size: 5.5pt;
  line-height: 1.55;
  color: var(--ink-light);
  font-weight: 300;
}

.vp-footer-quote {
  margin-top: auto;
  padding: 2.5mm 3mm;
  background: var(--indigo-bg);
  border-left: 2px solid var(--indigo);
  border-radius: 0 3px 3px 0;
}
.vp-footer-quote p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 9pt;
  font-style: italic;
  color: var(--indigo);
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════
   PRINT STYLES
═══════════════════════════════════════════════════════ */
@media print {
  @page {
    size: 297mm 210mm;
    margin: 0;
  }

  body {
    background: none;
    margin: 0;
    padding: 0;
  }

  .no-print { display: none !important; }
  .sheet-label { display: none !important; }

  .sheet {
    width: 297mm;
    height: 210mm;
    margin: 0;
    box-shadow: none;
    page-break-after: always;
  }

  .sheet--inside {
    page-break-after: auto;
  }

  /* Ensure backgrounds print */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

/* ═══════════════════════════════════════════════════════
   SCREEN RESPONSIVE WRAPPER
═══════════════════════════════════════════════════════ */
@media screen and (max-width: 320mm) {
  body { overflow-x: auto; }
  .sheet { transform-origin: top left; }
}