/* Binyuga PMS — Brochure stylesheet (8 pages, A4 portrait, print-to-PDF ready) */

@page {
  size: A4 portrait;
  margin: 0;
}

:root {
  --bg: #FFFFFF;
  --surface: #F7F8FA;
  --surface-2: #EFF1F5;
  --ink: #0E1320;
  --ink-2: #2A3142;
  --ink-3: #5A6478;
  --ink-4: #8C95A8;
  --line: #E5E8EE;
  --accent: #19A974;
  --accent-deep: #0F8A5C;
  --accent-soft: #E6F6EE;
  --warn: #F5A524;
  --flag: #E5484D;
  --f-sans: 'Inter', system-ui, sans-serif;
  --f-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --f-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-sans);
  background: #E5E8EE;
  color: var(--ink);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.toolbar {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 32px;
}
.toolbar .brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 700; font-size: 16px;
}
.toolbar .brand span { color: var(--accent); }
.toolbar .actions { display: flex; gap: 10px; }
.toolbar .btn {
  padding: 9px 16px; border-radius: 8px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  cursor: pointer; font-family: inherit;
}
.toolbar .btn:hover { border-color: var(--ink-3); }
.toolbar .btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.toolbar .btn.primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

.pages {
  max-width: 210mm;
  margin: 32px auto;
  display: flex; flex-direction: column; gap: 16px;
}

.page {
  width: 210mm;
  height: 297mm;
  background: #fff;
  box-shadow: 0 10px 30px rgba(14,19,32,.10);
  position: relative;
  overflow: hidden;
  page-break-after: always;
}
.page:last-child { page-break-after: auto; }

@media print {
  body { background: #fff; }
  .toolbar { display: none; }
  .pages { margin: 0; gap: 0; }
  .page { box-shadow: none; margin: 0; }
}

/* Page padding helper */
.p-pad {
  padding: 18mm 16mm;
  height: 100%;
  display: flex; flex-direction: column;
}

/* Page footer (shown on all interior pages) */
.p-foot {
  position: absolute; bottom: 8mm; left: 16mm; right: 16mm;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 9pt; color: var(--ink-4); letter-spacing: .04em;
  border-top: 1px solid var(--line); padding-top: 4mm;
}
.p-foot .num { font-family: var(--f-mono); font-weight: 600; }

/* Eyebrow */
.eyb {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-deep);
  font-size: 8.5pt; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase;
}
.eyb-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; letter-spacing: -.015em; }
p { margin: 0; line-height: 1.55; }

/* ─── Page 1: Cover ────────────────────────────────── */
.cover {
  background: var(--ink);
  color: #fff;
  position: relative;
}
.cover::before {
  content: ''; position: absolute; right: -120px; top: -120px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(25,169,116,.45), transparent 70%);
}
.cover::after {
  content: ''; position: absolute; left: -80px; bottom: -80px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(25,169,116,.18), transparent 70%);
}
.cover .p-pad { position: relative; z-index: 1; padding: 28mm 20mm; }
.cover .brand-row { display: flex; align-items: center; gap: 14px; }
.cover .mark {
  width: 52px; height: 52px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
}
.cover .brand-name { font-family: var(--f-display); font-weight: 800; font-size: 22pt; letter-spacing: -.01em; }
.cover .brand-name span { color: var(--accent); }
.cover .spacer { flex: 1; }
.cover .eyb-dark {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(25,169,116,.18); color: #4FD1A0;
  font-size: 9.5pt; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.cover h1 {
  font-size: 56pt; line-height: 1; font-weight: 800;
  margin: 24px 0 0;
  text-wrap: balance;
}
.cover h1 em { color: var(--accent); font-style: normal; }
.cover .sub {
  font-size: 14pt; color: rgba(255,255,255,.7);
  margin-top: 18px; max-width: 480px; line-height: 1.4;
  text-wrap: pretty;
}
.cover .meta-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-top: 36px;
}
.cover .meta-tile {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; padding: 14px;
}
.cover .meta-tile b { font-family: var(--f-mono); font-size: 22pt; font-weight: 700; color: #fff; display: block; }
.cover .meta-tile span { font-size: 9pt; color: rgba(255,255,255,.6); letter-spacing: .04em; }
.cover .foot-row {
  position: absolute; bottom: 18mm; left: 20mm; right: 20mm;
  display: flex; justify-content: space-between; align-items: end;
  color: rgba(255,255,255,.55); font-size: 9.5pt;
}
.cover .foot-row b { color: #fff; display: block; font-weight: 600; font-size: 11pt; }

/* ─── Generic interior page header ─────────────────── */
.p-hdr {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14mm;
}
.p-hdr .mini-brand { font-family: var(--f-display); font-weight: 700; font-size: 11pt; }
.p-hdr .mini-brand span { color: var(--accent); }
.p-hdr .pg-tag { font-family: var(--f-mono); font-size: 9pt; color: var(--ink-4); letter-spacing: .08em; }

.p-title h2 {
  font-size: 28pt; line-height: 1.05; font-weight: 700;
  margin: 8px 0 6px;
  text-wrap: balance;
}
.p-title .lede {
  font-size: 12pt; color: var(--ink-3); max-width: 150mm;
  line-height: 1.5; text-wrap: pretty;
}

/* ─── Page 2: Problem ──────────────────────────────── */
.pr-grid {
  margin-top: 14mm;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8mm;
}
.pr-card {
  background: var(--surface); border-radius: 10px;
  padding: 10mm; border: 1px solid var(--line);
}
.pr-card .pr-num {
  font-family: var(--f-mono); font-size: 24pt; font-weight: 700;
  color: var(--flag); line-height: 1; margin-bottom: 8px;
}
.pr-card h4 { font-size: 13pt; margin: 0 0 4px; font-weight: 700; }
.pr-card p { font-size: 10.5pt; color: var(--ink-3); }
.pr-quote {
  margin-top: 8mm;
  background: var(--ink); color: #fff;
  border-radius: 12px; padding: 9mm 10mm;
  position: relative;
}
.pr-quote::before {
  content: '"'; font-family: Georgia, serif; font-size: 96pt; color: var(--accent);
  position: absolute; top: -10mm; left: 6mm; line-height: 1;
}
.pr-quote p { font-size: 13pt; line-height: 1.45; font-style: italic; padding-left: 14mm; }
.pr-quote cite { display: block; padding-left: 14mm; margin-top: 8px; font-size: 9.5pt; color: rgba(255,255,255,.6); font-style: normal; }

/* ─── Page 3: Solution overview ────────────────────── */
.sol-grid {
  margin-top: 12mm;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 6mm;
}
.sol-card {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 8mm;
  display: flex; flex-direction: column; gap: 6px;
}
.sol-card .sc-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent-deep);
  display: grid; place-items: center; margin-bottom: 4px;
}
.sol-card h4 { font-size: 12pt; font-weight: 700; }
.sol-card p { font-size: 9.5pt; color: var(--ink-3); line-height: 1.45; }
.sol-card .meta { font-family: var(--f-mono); font-size: 8.5pt; color: var(--ink-4); margin-top: 4px; letter-spacing: .04em; }

/* ─── Page 4: Outcomes ─────────────────────────────── */
.out-hero {
  margin-top: 12mm;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 6mm;
}
.out-card {
  border-radius: 12px; padding: 9mm;
  border: 1px solid var(--line);
  background: var(--surface);
}
.out-card.lg {
  background: var(--ink); color: #fff;
  grid-column: span 2;
  display: grid; grid-template-columns: 2fr 3fr; gap: 8mm; align-items: center;
}
.out-card.lg .num {
  font-family: var(--f-mono); font-size: 56pt; font-weight: 700;
  color: var(--accent); line-height: 1;
}
.out-card.lg h3 { font-size: 18pt; margin-bottom: 6px; }
.out-card.lg p { font-size: 10.5pt; color: rgba(255,255,255,.7); line-height: 1.5; }
.out-card .num {
  font-family: var(--f-mono); font-size: 38pt; font-weight: 700;
  color: var(--accent); line-height: 1; margin-bottom: 6px;
}
.out-card h4 { font-size: 13pt; margin-bottom: 4px; }
.out-card p { font-size: 10pt; color: var(--ink-3); line-height: 1.5; }

/* ─── Page 5: Tech stack ───────────────────────────── */
.tech-row {
  margin-top: 10mm;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6mm;
}
.tech-block {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 7mm;
}
.tech-block h4 { font-size: 11pt; margin-bottom: 8px; font-weight: 700; }
.tech-block ul { padding: 0; margin: 0; list-style: none; display: grid; gap: 6px; }
.tech-block li {
  display: flex; align-items: start; gap: 8px;
  font-size: 9.5pt; color: var(--ink-2); line-height: 1.4;
}
.tech-block li::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); margin-top: 7px; flex-shrink: 0;
}
.tech-block li b { color: var(--ink); font-weight: 600; }

.integ-list {
  margin-top: 8mm;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4mm;
}
.integ-tile {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; padding: 6mm 4mm; text-align: center;
}
.integ-tile b { font-size: 10pt; display: block; }
.integ-tile span { font-size: 8.5pt; color: var(--ink-4); display: block; margin-top: 2px; }

/* ─── Page 6: Implementation timeline ─────────────── */
.timeline {
  margin-top: 12mm;
  position: relative;
}
.timeline::before {
  content: ''; position: absolute; left: 24mm; top: 4mm; bottom: 4mm;
  width: 2px; background: var(--line);
}
.tl-row {
  display: grid; grid-template-columns: 22mm 1fr; gap: 6mm;
  margin-bottom: 8mm; position: relative;
}
.tl-row .tl-week {
  font-family: var(--f-mono); font-size: 10pt; font-weight: 700;
  color: var(--accent); padding-top: 2mm; text-align: right;
}
.tl-row::before {
  content: ''; position: absolute; left: 23mm; top: 3mm;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 3px solid var(--accent);
  z-index: 1;
}
.tl-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 8px; padding: 5mm 6mm; margin-left: 4mm;
}
.tl-card h4 { font-size: 11.5pt; margin-bottom: 3px; }
.tl-card p { font-size: 9.5pt; color: var(--ink-3); line-height: 1.4; }

/* ─── Page 7: Pricing ──────────────────────────────── */
.price-grid {
  margin-top: 12mm;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 5mm;
}
.price-card {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 8mm 7mm;
  display: flex; flex-direction: column;
  position: relative;
}
.price-card.featured {
  background: var(--ink); color: #fff; border-color: var(--ink);
  transform: scale(1.02);
}
.price-card.featured .badge {
  position: absolute; top: -10px; right: 12px;
  background: var(--accent); color: #fff;
  font-size: 8pt; font-weight: 700; letter-spacing: .08em;
  padding: 4px 10px; border-radius: 999px; text-transform: uppercase;
}
.price-card .ti { font-size: 11pt; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.price-card.featured .ti { color: rgba(255,255,255,.6); }
.price-card .price {
  font-family: var(--f-mono); font-size: 26pt; font-weight: 700;
  margin: 8px 0 4px; line-height: 1;
}
.price-card .price small { font-size: 10pt; color: var(--ink-3); font-weight: 500; }
.price-card.featured .price small { color: rgba(255,255,255,.6); }
.price-card .desc { font-size: 9.5pt; color: var(--ink-3); margin-bottom: 8px; }
.price-card.featured .desc { color: rgba(255,255,255,.6); }
.price-card ul { padding: 0; margin: 6px 0 0; list-style: none; display: grid; gap: 5px; }
.price-card li {
  display: flex; align-items: start; gap: 6px;
  font-size: 9pt; line-height: 1.4;
}
.price-card li svg { flex-shrink: 0; margin-top: 2px; color: var(--accent); }
.price-note {
  margin-top: 8mm; font-size: 9pt; color: var(--ink-4); text-align: center;
  font-style: italic;
}

/* ─── Page 8: Contact ──────────────────────────────── */
.contact-page {
  background: linear-gradient(180deg, #fff 0%, var(--surface) 100%);
}
.ct-hero {
  text-align: center; padding-top: 12mm;
}
.ct-hero h2 { font-size: 30pt; margin-bottom: 8mm; }
.ct-hero p { font-size: 13pt; color: var(--ink-3); max-width: 140mm; margin: 0 auto; line-height: 1.5; }

.ct-grid {
  margin-top: 14mm;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6mm;
}
.ct-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 9mm;
}
.ct-card .ic {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--accent-soft); color: var(--accent-deep);
  display: grid; place-items: center;
  margin-bottom: 8px;
}
.ct-card h4 { font-size: 11pt; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-bottom: 6px; }
.ct-card p { font-size: 13pt; color: var(--ink); font-weight: 600; }
.ct-card .alt { font-size: 11pt; color: var(--ink-3); font-weight: 500; margin-top: 2px; }
.ct-card.full { grid-column: span 2; }

.ct-cta {
  margin-top: 10mm; background: var(--ink); color: #fff;
  border-radius: 12px; padding: 9mm;
  display: grid; grid-template-columns: 2fr 1fr; gap: 6mm; align-items: center;
}
.ct-cta h3 { font-size: 18pt; margin-bottom: 4px; }
.ct-cta p { font-size: 11pt; color: rgba(255,255,255,.7); }
.ct-cta .btn-row { display: flex; flex-direction: column; gap: 8px; }
.ct-cta .btn {
  padding: 10px 16px; border-radius: 8px; font-size: 11pt; font-weight: 600;
  text-align: center; text-decoration: none;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.ct-cta .btn.primary { background: var(--accent); color: #fff; }
.ct-cta .btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.2); }
