/* ============================================================
   4Mining Product Brochures — brochure.css
   A4 print stylesheet. :root tokens inherited 1:1 from web/styles.css
   Font embedded locally (offline-safe).
   ============================================================ */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 300 700;          /* variable axis */
  font-display: swap;
  src: url('fonts/oswald-variable.woff2') format('woff2');
}

:root {
  /* Brand */
  --color-brand:        #2F6FE8;
  --color-brand-light:  #5B9CF6;
  --color-brand-dark:   #1A4CB5;

  /* Apple-inspired accents */
  --apple-blue:   #0071E3;
  --apple-purple: #BF5AF2;
  --apple-green:  #34C759;
  --apple-amber:  #FF9F0A;

  /* Gradients */
  --gradient:      linear-gradient(135deg, #0071E3 0%, #5E5CE6 50%, #BF5AF2 100%);
  --gradient-hero-bg: radial-gradient(ellipse 80% 60% at 18% 30%, rgba(0,113,227,0.30) 0%, transparent 60%),
                      radial-gradient(ellipse 60% 80% at 88% 12%, rgba(94,92,230,0.24) 0%, transparent 55%),
                      radial-gradient(ellipse 55% 60% at 70% 92%, rgba(191,90,242,0.16) 0%, transparent 55%),
                      #050608;

  /* Backgrounds */
  --color-bg-base:      #0a0a0a;
  --color-bg-surface:   #111111;
  --color-bg-card:      #1c1c1e;
  --color-bg-dark:      #000000;

  /* Glassmorphism */
  --glass-bg:        rgba(255, 255, 255, 0.06);
  --glass-bg-hover:  rgba(255, 255, 255, 0.10);
  --glass-border:    rgba(255, 255, 255, 0.12);

  /* Text — lightened for print legibility */
  --color-text-primary: #f5f5f7;
  --color-text-body:    #d4d4d8;   /* readable body */
  --color-text-muted:   #b4b4ba;
  --color-text-dim:     #8a8a90;
  --color-text-white:   #ffffff;

  /* Borders */
  --color-border:       rgba(255, 255, 255, 0.10);
  --color-border-light: rgba(255, 255, 255, 0.16);

  /* Typography */
  --font-heading: 'Oswald', sans-serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

  /* Radii */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-pill: 9999px;

  /* Glow */
  --glow-blue:  0 0 40px rgba(0, 113, 227, 0.4);
}

/* ============================================================
   PRINT / PAGE SETUP
   ============================================================ */
@page { size: A4; margin: 0; }

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: #000;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-body);
  font-size: 11pt;
  line-height: 1.6;
}

img { display: block; max-width: 100%; }

.page {
  position: relative;
  width: 210mm;
  height: 297mm;
  overflow: hidden;
  background: var(--gradient-hero-bg);
  page-break-after: always;
  break-after: page;
}
.page:last-child { page-break-after: auto; break-after: auto; }

/* faint grid texture overlay (echo of website IoT visuals) */
.page::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 14mm 14mm;
  pointer-events: none;
}

.page-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 15mm 15mm 13mm;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   MASTHEAD — big 4Mining logo as heading
   ============================================================ */
.masthead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 6mm;
  border-bottom: 1px solid var(--color-border);
}
.masthead__logo { height: 20mm; width: auto; }
.masthead__series {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 10pt;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-brand-light);
  padding-bottom: 1.5mm;
  text-align: right;
}
.masthead__series small {
  display: block;
  color: var(--color-text-dim);
  font-size: 8pt;
  letter-spacing: 0.16em;
  margin-top: 1mm;
}

/* smaller brandbar for inner pages */
.brandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 5mm;
  border-bottom: 1px solid var(--color-border);
}
.brandbar__logo { height: 11mm; width: auto; }
.brandbar__tag {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 9pt;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ============================================================
   HERO (front)
   ============================================================ */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.32rem 0.95rem;
  background: rgba(0, 113, 227, 0.16);
  border: 1px solid rgba(0, 113, 227, 0.38);
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 8.5pt;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5fb0ff;
}
.hero-eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--apple-green);
}

/* Brand mark — hidden in dark theme (black logo invisible on dark bg) */
.brand-mark { display: none; }

/* Product name — SOLID colors (no background-clip:text → no print artifacts) */
.product-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 30pt;
  line-height: 1.04;
  letter-spacing: 0.005em;
  margin: 5mm 0 4mm;
  color: var(--color-text-white);
}
.product-name .model {
  display: block;
  font-size: 58pt;
  font-weight: 700;
  line-height: 0.95;
  color: var(--color-brand-light);
}

.hero-subline {
  font-size: 11.5pt;
  color: var(--color-text-body);
  max-width: 108mm;
  line-height: 1.62;
}

/* front layout: copy left, product right */
.front-main {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 8mm;
  align-items: center;
  margin-top: 8mm;
}
.front-copy { display: flex; flex-direction: column; }

.product-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 95mm;
}
.product-stage::before {
  content: '';
  position: absolute;
  width: 74mm; height: 74mm;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,113,227,0.34) 0%, transparent 65%);
  filter: blur(4px);
}
.product-stage img {
  position: relative;
  z-index: 2;
  max-height: 95mm;
  width: auto;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.7));
}
.product-stage svg { position: relative; z-index: 2; }

/* ============================================================
   BG BAND — 4M_bg.png feature image
   ============================================================ */
.bgband {
  margin-top: auto;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.bgband img { width: 100%; height: 64mm; object-fit: cover; display: block; }
.bgband__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5,6,8,0.82) 0%, rgba(5,6,8,0.30) 45%, rgba(5,6,8,0) 70%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 9mm;
}
.bgband__kicker {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 8.5pt;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--apple-green);
  margin-bottom: 2mm;
}
.bgband__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 17pt;
  color: #fff;
  line-height: 1.12;
  max-width: 95mm;
}
.bgband__sub {
  font-size: 9.5pt;
  color: var(--color-text-muted);
  margin-top: 2mm;
  max-width: 92mm;
}

/* ============================================================
   TECH BADGES
   ============================================================ */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5mm;
  margin-top: 6mm;
}
.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.36rem 0.95rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-pill);
  color: var(--color-text-muted);
  font-family: var(--font-heading);
  font-size: 8.4pt;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tech-badge svg { width: 13px; height: 13px; fill: none; stroke: var(--apple-blue); stroke-width: 1.7; }
.tech-badge strong { color: var(--color-text-white); font-weight: 600; }

/* ============================================================
   FOOTER STRIP
   ============================================================ */
.foot {
  margin-top: 7mm;
  padding-top: 5mm;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8.6pt;
  color: var(--color-text-dim);
}
.foot a { color: var(--color-brand-light); text-decoration: none; }
.foot .foot__brand { font-family: var(--font-heading); letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-muted); }

/* ============================================================
   SECTIONS / SPECS (inner pages)
   ============================================================ */
.section-head { margin: 4mm 0 4mm; }
.section-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 24pt;
  color: var(--color-text-white);
  line-height: 1.1;
}
.section-title::after {
  content: '';
  display: block;
  height: 3px; width: 48px;
  background: var(--gradient);
  margin-top: 3mm;
  border-radius: var(--radius-pill);
}
.section-subtitle {
  color: var(--color-text-muted);
  font-size: 10.5pt;
  margin-top: 3mm;
}

/* Figure (exploded-view / battery image + caption) */
.figure {
  margin-top: 5mm;
  text-align: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 4mm 4mm 3mm;
}
.figure img { max-height: 30mm; width: auto; margin: 0 auto 2.5mm; }
.figure figcaption {
  font-size: 8.6pt;
  color: var(--color-text-muted);
  line-height: 1.45;
}
.figure figcaption strong { color: var(--color-text-primary); font-weight: 600; }

.eyebrow-mini {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 9pt;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-brand-light);
  margin: 7mm 0 3.5mm;
}

/* Spec table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9.4pt;
  line-height: 1.3;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.spec-table thead th {
  background: var(--gradient);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: left;
  padding: 2.8mm 3.2mm;
  font-size: 9.6pt;
}
.spec-table tbody td, .spec-table tbody th {
  padding: 1.6mm 3.0mm;
  border-top: 1px solid var(--color-border);
  vertical-align: top;
  text-align: left;
}
.spec-table tbody tr:nth-child(odd) td,
.spec-table tbody tr:nth-child(odd) th { background: rgba(255,255,255,0.03); }
.spec-table tbody th {
  color: var(--color-text-muted);
  font-weight: 600;
  width: 34%;
}
.spec-table td { color: var(--color-text-primary); }
.spec-table .grp td {
  background: rgba(0,113,227,0.16) !important;
  color: #7fc0ff;
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 8.6pt;
}
.spec-table .yes { color: var(--apple-green); font-weight: 700; }
.spec-table .no  { color: var(--color-text-dim); }

/* Feature / application cards */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5mm;
  margin-top: 4mm;
}
.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 4mm 4.5mm;
}
.card h5 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 11pt;
  color: var(--color-text-white);
  margin-bottom: 1.5mm;
  display: flex; align-items: center; gap: 2mm;
  letter-spacing: 0.01em;
}
.card h5 .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-brand-light); display: inline-block; flex: none; }
.card p { font-size: 9.3pt; color: var(--color-text-muted); line-height: 1.5; }

/* feature list (bulleted, glass) */
.feat-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3mm;
  margin-top: 4mm;
  list-style: none;
}
.feat-list li {
  position: relative;
  padding: 3mm 3.5mm 3mm 6.5mm;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-size: 9.3pt;
  color: var(--color-text-muted);
  line-height: 1.5;
}
.feat-list li::before {
  content: '';
  position: absolute; left: 2.6mm; top: 3.2mm; bottom: 3.2mm;
  width: 3px; border-radius: 2px;
  background: var(--gradient);
}
.feat-list li strong { color: var(--color-text-primary); font-weight: 600; }

/* contact block */
.contact {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6mm;
  padding-top: 6mm;
  border-top: 1px solid var(--color-border);
}
.contact__brand img { height: 11mm; margin-bottom: 3mm; }
.contact__lines { font-size: 9.3pt; color: var(--color-text-muted); line-height: 1.65; }
.contact__lines a { color: var(--color-brand-light); text-decoration: none; }
.contact__cta {
  text-align: right;
  font-family: var(--font-heading);
  font-size: 9pt;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  max-width: 70mm;
}
.certs { display: flex; gap: 2mm; flex-wrap: wrap; margin-top: 3mm; justify-content: flex-end; }
.cert-chip {
  font-family: var(--font-heading);
  font-size: 7.6pt; font-weight: 500; letter-spacing: 0.06em;
  padding: 1mm 2.6mm;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-pill);
  color: var(--color-text-muted);
}

.lead {
  font-size: 10.5pt;
  color: var(--color-text-body);
  line-height: 1.62;
  margin-bottom: 4mm;
  max-width: 170mm;
}

.split { display: grid; grid-template-columns: 1.12fr 1fr; gap: 7mm; align-items: start; }
.mt-auto { margin-top: auto; }
