/* ============================================================
   Xoogler Demo Day Founder Dossier — A4 lookbook theme
   Brand: Google 4-color palette, dot grids, code brackets,
          quarter-circle accents.
   ============================================================ */

body.lookbook {
  --xg-blue:   #4285F4;
  --xg-green:  #3AA853;
  --xg-red:    #EA4335;
  --xg-yellow: #FBBC05;
  --xg-dark:   #5F6368;
  --xg-light:  #F1F3F4;
  --xg-text:   #202124;
  --xg-muted:  #5F6368;
  --xg-border: #E8EAED;
  --xg-bg:     #DADCE0;
  --xg-paper:  #FFFFFF;
  --xg-blue-ink:  #1A73E8;

  background: var(--xg-bg);
  color: var(--xg-text);
  font: 13px/1.55 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 0;
}
body.lookbook a { color: var(--xg-blue-ink); }

/* === Toolbar (hidden in print) === */
.lb-toolbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--xg-border);
}
.lb-toolbar-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 12px 20px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px; flex-wrap: wrap;
}
.lb-tool-brand { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: var(--xg-text); }
.lb-tool-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.lb-btn {
  display: inline-flex; align-items: center;
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--xg-border); background: #fff;
  color: var(--xg-text); font: inherit; font-size: 13px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.lb-btn:hover { border-color: var(--xg-blue); color: var(--xg-blue-ink); }
.lb-btn.primary { background: var(--xg-blue); color: #fff; border-color: var(--xg-blue); font-weight: 600; }
.lb-btn.primary:hover { background: var(--xg-blue-ink); color: #fff; }
.lb-state { padding: 80px 20px; text-align: center; color: var(--xg-muted); }
.lb-err { color: var(--xg-red); }

/* === Book (stack of A4 pages) === */
.lb-book {
  display: flex; flex-direction: column; align-items: center;
  padding: 28px 20px 80px; gap: 24px;
}

.lb-paper {
  width: 210mm; height: 297mm;
  background: var(--xg-paper);
  box-shadow: 0 6px 32px rgba(0,0,0,0.14), 0 2px 4px rgba(0,0,0,0.06);
  box-sizing: border-box;
  padding: 14mm 14mm 10mm;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  page-break-after: always;
}

/* === The Xoogler X logo === */
.xg-logo {
  display: inline-flex; align-items: center;
  position: relative;
}
.xg-logo-mark {
  position: relative;
  display: inline-block;
  width: 28px; height: 28px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
}
.xg-logo-mark::before, .xg-logo-mark::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 140%; height: 32%;
  transform-origin: center;
  background:
    linear-gradient(90deg,
      var(--xg-red) 0% 25%,
      var(--xg-blue) 25% 50%,
      var(--xg-green) 50% 75%,
      var(--xg-yellow) 75% 100%);
}
.xg-logo-mark::before { transform: translate(-50%, -50%) rotate(45deg); }
.xg-logo-mark::after  { transform: translate(-50%, -50%) rotate(-45deg); }
.xg-logo-mark .xg-center {
  position: absolute; top: 50%; left: 50%;
  width: 12px; height: 12px;
  background: #fff; border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.xg-logo-word {
  margin-left: 8px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--xg-text);
}

/* Bigger variant for cover */
.xg-logo-mark.big { width: 56px; height: 56px; }
.xg-logo-mark.big .xg-center { width: 24px; height: 24px; }
.xg-logo-mark.big + .xg-logo-word { font-size: 28px; margin-left: 14px; }

/* === Code bracket motif === */
.xg-bracket {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: "Consolas", "Menlo", monospace; font-weight: 800;
  font-size: 22px;
}
.xg-bracket-b { color: var(--xg-blue); }
.xg-bracket-g { color: var(--xg-green); }
.xg-bracket .dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin: 0 1px; }

/* === Quarter-circle decorative shapes === */
.xg-quarter {
  position: absolute;
  border-radius: 0;
  z-index: 0;
}
.xg-q-tr { /* top-right */
  top: 0; right: 0;
  width: 70mm; height: 70mm;
  background: var(--xg-blue);
  border-radius: 0 0 0 70mm;
}
.xg-q-br { /* bottom-right */
  bottom: 0; right: 0;
  width: 50mm; height: 50mm;
  background: var(--xg-red);
  border-radius: 50mm 0 0 0;
}
.xg-q-bl { /* bottom-left */
  bottom: 0; left: 0;
  width: 40mm; height: 40mm;
  background: var(--xg-yellow);
  border-radius: 0 40mm 0 0;
}
.xg-q-tl { /* top-left */
  top: 0; left: 0;
  width: 36mm; height: 36mm;
  background: var(--xg-green);
  border-radius: 0 0 36mm 0;
}

/* Dot grid pattern */
.xg-dots {
  position: absolute;
  width: 30mm; height: 30mm;
  background-image: radial-gradient(var(--xg-blue) 1.4px, transparent 1.6px);
  background-size: 5mm 5mm;
  opacity: 0.85;
  z-index: 0;
}

/* === COVER PAGE === */
.lb-cover {
  width: 100%; height: 100%;
  position: relative;
  display: flex; flex-direction: column;
  background: #fff;
}
.lb-cover-grid { position: absolute; top: 22mm; left: 95mm; width: 35mm; height: 28mm; background-image: radial-gradient(var(--xg-blue) 1.6px, transparent 1.8px); background-size: 6mm 6mm; opacity: 0.9; }
.lb-cover-q1 { position: absolute; top: 0; right: 0; width: 70mm; height: 70mm; background: var(--xg-blue); border-radius: 0 0 0 70mm; }
.lb-cover-q2 { position: absolute; bottom: 28mm; right: 0; width: 32mm; height: 64mm; background: var(--xg-red); border-radius: 32mm 0 0 32mm; transform: translateX(8mm); }
.lb-cover-q3 { position: absolute; bottom: 50mm; right: 35mm; width: 36mm; height: 36mm; background: var(--xg-yellow); border-radius: 50%; opacity: 0.92; }
.lb-cover-q4 { position: absolute; bottom: 110mm; right: 16mm; width: 18mm; height: 18mm; background: var(--xg-green); border-radius: 0 18mm 0 0; }
.lb-cover-q5 { position: absolute; top: 0; left: -18mm; width: 60mm; height: 60mm; background: var(--xg-yellow); border-radius: 50%; opacity: 0.18; }
.lb-cover-q6 { position: absolute; bottom: 0; left: 0; width: 50mm; height: 30mm; background: var(--xg-green); border-radius: 0 50mm 0 0; }

.lb-cover-content {
  position: relative; z-index: 5;
  padding: 22mm 22mm 0;
  flex: 1;
  display: flex; flex-direction: column;
}
.lb-cover-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18mm; }
.lb-cover-bracket { font-size: 36px; }
.lb-cover-title {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 110px;
  line-height: 0.95;
  margin: 0;
  letter-spacing: -0.04em;
}
.lb-cover-title .demo { color: var(--xg-blue); display: block; }
.lb-cover-title .day  { color: var(--xg-green); display: block; }

.lb-cover-chips { margin-top: 14mm; display: flex; flex-direction: column; gap: 6mm; }
.xg-chip {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 600; color: var(--xg-text);
}
.xg-chip-ico {
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.xg-chip-ico.blue { background: var(--xg-blue); }
.xg-chip-ico.red  { background: var(--xg-red); }

.lb-cover-tagline {
  margin-top: 16mm;
  font-size: 14px;
  color: var(--xg-text);
  line-height: 1.6;
}
.lb-cover-tagline .accent { color: var(--xg-blue-ink); display: block; font-weight: 600; }

.lb-cover-dossier {
  margin-top: auto;
  margin-bottom: 14mm;
  display: flex; justify-content: space-between; align-items: flex-end;
}
.lb-cover-dossier-text {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--xg-muted);
  font-weight: 600;
}
.lb-cover-dossier-text strong { display: block; color: var(--xg-text); font-size: 24px; letter-spacing: -0.02em; margin-top: 4mm; }
.lb-cover-stats { display: flex; gap: 24mm; }
.lb-cover-stat { text-align: right; }
.lb-cover-stat strong { display: block; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; color: var(--xg-text); }
.lb-cover-stat span { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--xg-muted); font-weight: 600; }

/* === PAGE HEADER (sector pages) === */
.lb-page-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 6mm;
  border-bottom: 1px solid var(--xg-border);
  margin-bottom: 6mm;
  position: relative;
  z-index: 5;
}
.lb-head-left { display: flex; align-items: center; gap: 10px; }
.lb-sect-label { display: flex; align-items: center; gap: 6px; font-size: 18px; font-weight: 800; color: var(--xg-text); letter-spacing: -0.01em; }
.lb-sect-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.lb-sect-dot.blue { background: var(--xg-blue); }
.lb-sect-dot.green { background: var(--xg-green); }
.lb-sect-dot.red { background: var(--xg-red); }
.lb-sect-dot.yellow { background: var(--xg-yellow); }
.lb-sect-dot.dark { background: var(--xg-dark); }
.lb-head-right {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; color: var(--xg-muted); font-weight: 500;
}

/* Decorative top-right quarter accent on inner pages */
.lb-page-accent {
  position: absolute;
  top: 0; right: 0;
  width: 26mm; height: 26mm;
  background: var(--xg-blue);
  border-radius: 0 0 0 26mm;
  opacity: 0.18;
  z-index: 1;
}
.lb-page-accent.blue { background: var(--xg-blue); }
.lb-page-accent.green { background: var(--xg-green); }
.lb-page-accent.red { background: var(--xg-red); }
.lb-page-accent.yellow { background: var(--xg-yellow); }

/* === PAGE BODY === */
.lb-page-body { flex: 1; display: flex; flex-direction: column; gap: 5mm; overflow: hidden; position: relative; z-index: 5; }
.lb-toc-body { gap: 0; }

/* === PAGE FOOTER === */
.lb-page-foot {
  margin-top: 4mm; padding-top: 4mm;
  border-top: 1px solid var(--xg-border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10px; color: var(--xg-muted);
  position: relative; z-index: 5;
}
.foot-brand { display: flex; align-items: center; gap: 6px; }
.foot-brand .xg-logo-mark { width: 16px; height: 16px; }
.foot-brand .xg-logo-mark .xg-center { width: 7px; height: 7px; }
.foot-page {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  background: var(--xg-blue);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 11px;
}
.foot-page.blue { background: var(--xg-blue); }
.foot-page.green { background: var(--xg-green); }
.foot-page.red { background: var(--xg-red); }
.foot-page.yellow { background: var(--xg-yellow); }

/* === TABLE OF CONTENTS === */
.toc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10mm; }
.toc-col h3 {
  font-size: 14px; font-weight: 800; margin: 0 0 3mm; padding-bottom: 2mm;
  color: var(--xg-text); letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 6px;
  border-bottom: 2px solid var(--xg-border);
}
.toc-col ul { list-style: none; padding: 0; margin: 0; }
.toc-col li { font-size: 11px; padding: 1.2mm 0; color: var(--xg-text); border-bottom: 1px dotted var(--xg-border); }

/* === STARTUP CARD === */
.lb-card {
  background: var(--xg-paper);
  border: 1px solid var(--xg-border);
  border-radius: 5mm;
  padding: 5mm 6mm;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.lb-card.accent-blue   { border-left: 4px solid var(--xg-blue); }
.lb-card.accent-green  { border-left: 4px solid var(--xg-green); }
.lb-card.accent-red    { border-left: 4px solid var(--xg-red); }
.lb-card.accent-yellow { border-left: 4px solid var(--xg-yellow); }
.lb-card.accent-dark   { border-left: 4px solid var(--xg-dark); }

.lb-ribbon {
  position: absolute; top: 0; right: 6mm;
  background: var(--xg-yellow); color: var(--xg-text);
  font-size: 9px; font-weight: 700;
  padding: 3px 10px;
  border-radius: 0 0 4px 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lb-card-body { display: grid; grid-template-columns: 1.8fr 1fr; gap: 5mm; align-items: start; }
.lb-card-text { min-width: 0; }
.lb-company {
  margin: 0 0 2mm;
  font-size: 17px; font-weight: 800;
  color: var(--xg-text);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.lb-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600;
  color: var(--xg-blue-ink);
  text-decoration: none;
  margin-bottom: 2mm;
}
.lb-link:hover { text-decoration: underline; }
.lb-link-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px;
  background: var(--xg-blue);
  border-radius: 50%;
  color: #fff;
  font-size: 9px;
}
.lb-pitch { margin: 2mm 0 0; color: var(--xg-text); font-size: 12px; line-height: 1.5; }

.lb-logo {
  background: #fff;
  border: 1px solid var(--xg-border);
  border-radius: 4mm;
  height: 30mm;
  display: flex; align-items: center; justify-content: center;
  padding: 3mm;
}
.lb-logo-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-logo-img.initials {
  width: 20mm; height: 20mm;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 22px; color: #fff;
  border-radius: 4mm; letter-spacing: -0.02em;
}

/* === Founders strip === */
.lb-founders {
  display: flex; flex-wrap: wrap; gap: 4mm;
  justify-content: center;
  margin-top: 4mm; padding-top: 3mm;
  border-top: 1px dashed var(--xg-border);
}
.lb-founder {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; min-width: 22mm; max-width: 30mm;
}
.lb-avatar-wrap { position: relative; }
.lb-avatar {
  width: 18mm; height: 18mm;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--xg-light);
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.lb-avatar.initials {
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 16px;
}
.lb-li {
  position: absolute; bottom: -2mm; left: 50%;
  transform: translateX(-50%);
  background: #0a66c2; color: #fff;
  width: 5mm; height: 5mm; border-radius: 1mm;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 8px;
  text-decoration: none; font-style: italic;
  border: 1px solid #fff;
}
.lb-fname { font-size: 11px; font-weight: 700; color: var(--xg-text); margin-top: 3mm; line-height: 1.2; }
.lb-frole { font-size: 9px; color: var(--xg-blue-ink); margin-top: 1px; line-height: 1.2; font-weight: 600; }
.lb-tenure { font-size: 8px; color: var(--xg-muted); margin-top: 1px; }

/* === Initials gradient backgrounds (4-color rotation) === */
body.lookbook .initials-1 { background: var(--xg-blue); }
body.lookbook .initials-2 { background: var(--xg-green); }
body.lookbook .initials-3 { background: var(--xg-red); }
body.lookbook .initials-4 { background: var(--xg-yellow); color: var(--xg-text) !important; }
body.lookbook .initials-5 { background: var(--xg-dark); }
body.lookbook .initials-6 { background: var(--xg-blue-ink); }

/* === BACK COVER === */
.lb-back {
  position: relative; width: 100%; height: 100%;
  display: flex; flex-direction: column; background: #fff;
}
.lb-back-q { position: absolute; }
.lb-back-q1 { top: 0; left: 0; width: 50mm; height: 50mm; background: var(--xg-red); border-radius: 0 0 50mm 0; }
.lb-back-q2 { top: 0; right: 0; width: 36mm; height: 36mm; background: var(--xg-yellow); border-radius: 0 0 0 36mm; }
.lb-back-q3 { bottom: 0; left: 30mm; width: 30mm; height: 30mm; background: var(--xg-green); border-radius: 50%; opacity: 0.85; }
.lb-back-q4 { bottom: 0; right: 0; width: 60mm; height: 40mm; background: var(--xg-blue); border-radius: 60mm 0 0 0; }

.lb-back-inner {
  position: relative; z-index: 5;
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 40mm 24mm;
}
.lb-back h2 { font-size: 40px; font-weight: 800; color: var(--xg-text); margin: 6mm 0 6mm; letter-spacing: -0.02em; }
.lb-back h2 .accent { color: var(--xg-blue); }
.lb-back p { font-size: 16px; color: var(--xg-text); margin: 0 0 8mm; }
.lb-back-stats { font-size: 12px; color: var(--xg-muted); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }

/* === Mobile scale === */
@media (max-width: 820px) {
  .lb-book { padding: 16px 0 60px; gap: 12px; }
  .lb-paper {
    --scale: calc((100vw - 16px) / 794);
    transform: scale(var(--scale));
    transform-origin: top center;
    margin: 0 auto calc(-297mm * (1 - var(--scale)));
  }
}

/* === Print === */
@media print {
  body.lookbook { background: #fff; }
  .lb-toolbar, .lb-state { display: none !important; }
  .lb-book { padding: 0; gap: 0; }
  .lb-paper {
    box-shadow: none; margin: 0;
    page-break-after: always;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .lb-paper:last-child { page-break-after: auto; }
  @page { size: A4; margin: 0; }
}
