/* Bhuh.ai Labs — investor brief. One-page flyer over the vendored design tokens (no token values defined here).
   Two layouts, chosen by investors.js and set on <html data-layout>: desktop (A4 sheet) and mobile (phone column). */

* { box-sizing: border-box; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
body { margin: 0; background: var(--lotus); color: var(--ink-soft); font-family: var(--f-body); }
a { color: inherit; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.lbl { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); margin: 0; }

/* Screen chrome: back link and download menu. Hidden when printing. */
.chrome { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; padding: 0 24px; background: var(--lotus); border-bottom: 1px solid var(--border-mid); }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--neel-deep); }
.back:hover { text-decoration: underline; }
.dl { position: relative; }
.dl summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 0 16px; background: var(--neel-deep); color: var(--lotus); border-radius: 8px; user-select: none; }
.dl summary:hover { background: var(--neel); }
.dl summary::-webkit-details-marker { display: none; }
.dl summary .ic { width: 18px; height: 18px; }
.dl summary i { font-style: normal; font-size: 11px; }
.dl summary:focus-visible, .dl .menu a:focus-visible, .back:focus-visible, .cta .link:focus-visible { outline: 3px solid var(--neel); outline-offset: 3px; }
.dl .menu { position: absolute; right: 0; top: calc(100% + 8px); width: 300px; background: var(--lotus); border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden; box-shadow: 0 12px 24px rgba(16, 40, 65, .12); }
.dl .menu a { display: block; padding: 12px 14px; text-decoration: none; border-bottom: 1px solid var(--border-mid); }
.dl .menu a:last-child { border-bottom: 0; }
.dl .menu a:hover { background: var(--deep); }
.dl .menu b { display: block; font-family: var(--f-disp); font-size: 16px; font-weight: 600; color: var(--neel-deep); }
.dl .menu span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--ink-mute); }
.dl .menu em { font-style: normal; font-family: var(--f-mono); font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--neel); background: var(--accent-tint); border: 1px solid var(--accent-line); padding: 2px 6px; margin-left: 8px; vertical-align: 2px; }

main { display: flex; justify-content: center; padding: 32px 16px 64px; background: var(--deep); }

/* The sheet. Desktop layout is one A4 page (794 × 1123 px at 96 dpi). */
.sheet { width: 794px; min-height: 1123px; display: flex; flex-direction: column; gap: 9px; padding: 22px 34px 24px; background: var(--lotus); border: 1px solid var(--border-strong); box-shadow: 0 18px 40px rgba(16, 40, 65, .1); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--f-disp); font-weight: 600; font-size: 24px; color: var(--neel-deep); }
.brand img { width: 36px; height: 36px; display: block; }
.brand small { font: 400 14px var(--f-body); color: var(--ink-mute); margin-left: 2px; }

.hero h1 { font-family: var(--f-disp); font-weight: 500; font-size: 34px; line-height: 1.08; letter-spacing: -.03em; color: var(--neel-deep); margin: 0 0 6px; }
.hero h1 em { font-family: var(--f-edit); font-weight: 400; color: var(--neel); }
.hero p { margin: 0; max-width: 660px; font-size: 13.5px; line-height: 1.5; }

.block { padding: 0; border: 0; background: none; }
.block h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px; padding-top: 7px; border-top: 1px solid var(--neel-deep); font-family: var(--f-disp); font-weight: 600; font-size: 17px; letter-spacing: -.01em; line-height: 1.2; color: var(--neel-deep); }
.block h2 i { font-style: normal; font-family: var(--f-mono); font-weight: 500; font-size: 11px; letter-spacing: .1em; color: var(--accent-deep); }
.small { margin: 7px 0 0; font-size: 12px; line-height: 1.45; color: var(--ink-mute); }

.tiles { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden; background: #fff; }
.tiles li { display: grid; grid-template-columns: 36px 1fr; column-gap: 10px; align-content: start; padding: 10px 13px 12px; border-right: 1px solid var(--border-mid); }
.tiles li:last-child { border-right: 0; }
.tiles .mark { grid-row: 1 / span 2; width: 36px; height: 36px; color: var(--neel); }
.tiles li > span { grid-column: 1 / -1; }
.tiles b { font-family: var(--f-disp); font-size: 18px; font-weight: 600; line-height: 1.2; color: var(--neel-deep); }
.tiles em { font-style: normal; font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); }
.tiles span { margin-top: 6px; font-size: 12px; line-height: 1.4; }

.pair { display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; }
.status-list { margin: 0; padding: 0; list-style: none; }
.status-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px solid var(--border-mid); }
.status-list b { font-family: var(--f-disp); font-size: 14.5px; font-weight: 600; line-height: 1.25; color: var(--neel-deep); }
.chip { display: inline-block; align-self: flex-start; font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border: 1px solid currentColor; border-radius: 4px; white-space: nowrap; background: #fff; }
.status-list .chip { align-self: center; }
.chip.web { color: var(--paddy); }
.chip.beta { color: var(--accent-deep); }
.chip.dev { color: var(--neel); }
.chip.soon { color: var(--rani); }
.chip.plan { color: var(--terra); }

/* Diagram: four steps with a return arrow. */
.loop { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; position: relative; }
.loop li { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid var(--neel-deep); border-radius: 8px; background: #fff; }
.loop li::after { position: absolute; font-size: 16px; line-height: 1; color: var(--accent-deep); }
.loop li:nth-child(1)::after { content: "→"; right: -19px; top: 50%; transform: translateY(-52%); }
.loop li:nth-child(2)::after { content: "↓"; left: 50%; bottom: -17px; transform: translateX(-50%); }
.loop li:nth-child(3)::after { content: "←"; left: -19px; top: 50%; transform: translateY(-52%); }
.loop li:nth-child(4)::after { content: "↑"; left: 50%; top: -17px; transform: translateX(-50%); }
.loop li:nth-child(4) { grid-column: 1; grid-row: 2; }
.loop li:nth-child(3) { grid-column: 2; grid-row: 2; }
.loop i { flex: none; font-style: normal; font-family: var(--f-mono); font-size: 11px; color: var(--lotus); background: var(--neel-deep); width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; }
.loop li:nth-child(4) i { background: var(--accent-deep); }
.loop b { font-family: var(--f-disp); font-size: 13.5px; font-weight: 600; line-height: 1.2; color: var(--neel-deep); }
.again { display: flex; align-items: center; gap: 6px; margin: 9px 0 0; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-deep); }
.again .ic { width: 15px; height: 15px; transform: rotate(-90deg); }

.next { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.next > li { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 2px; }
.next > li > b { font-family: var(--f-disp); font-size: 15px; font-weight: 600; line-height: 1.2; color: var(--neel-deep); }
.next > li > span:not(.chip) { font-size: 12px; line-height: 1.4; }

.chips { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 5px; }
.chips li { font-family: var(--f-mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; padding: 3px 7px; border: 1px solid var(--border-strong); border-radius: 4px; background: #fff; color: var(--ink-soft); }

.papers { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.papers li { padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: 8px; background: #fff; font-family: var(--f-disp); font-size: 14px; font-weight: 600; line-height: 1.25; color: var(--neel-deep); }

.cta { margin-top: auto; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 20px; padding: 12px 18px; background: var(--neel-deep); color: var(--lotus); border-radius: 8px; }
.cta .lbl { color: var(--ink-faint); }
.cta .big { margin: 2px 0 0; max-width: 580px; font-family: var(--f-disp); font-size: 18px; font-weight: 500; letter-spacing: -.01em; line-height: 1.22; }
.cta .link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border: 1px solid var(--lotus); border-radius: 8px; color: var(--lotus); text-decoration: none; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.cta .link:hover { background: var(--lotus); color: var(--neel-deep); }
.cta .link .ic { width: 18px; height: 18px; }
.cta .co { grid-column: 1 / -1; margin: 4px 0 0; padding-top: 8px; border-top: 1px solid rgba(250, 247, 242, .22); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; color: var(--ink-faint); }

/* Mobile layout: one phone-width column. */
html[data-layout="mobile"] .chrome { padding: 0 16px; }
html[data-layout="mobile"] .dl .menu { width: min(300px, calc(100vw - 32px)); }
html[data-layout="mobile"] main { padding: 0; background: none; display: block; }
html[data-layout="mobile"] .sheet { width: 100%; max-width: 480px; min-height: 0; margin: 0 auto; gap: 20px; padding: 20px 18px 24px; border: 0; box-shadow: none; }
html[data-layout="mobile"] .hero h1 { font-size: 32px; }
html[data-layout="mobile"] .hero p { font-size: 15px; }
html[data-layout="mobile"] .small, html[data-layout="mobile"] .tiles span, html[data-layout="mobile"] .next > li > span:not(.chip) { font-size: 14px; }
html[data-layout="mobile"] .tiles { grid-template-columns: 1fr; }
html[data-layout="mobile"] .tiles li { grid-template-columns: 40px 1fr; column-gap: 12px; row-gap: 2px; padding: 12px; border-right: 0; border-bottom: 1px solid var(--border-mid); }
html[data-layout="mobile"] .tiles li:last-child { border-bottom: 0; }
html[data-layout="mobile"] .tiles .mark { grid-row: 1 / span 3; width: 40px; height: 40px; margin: 2px 0 0; }
html[data-layout="mobile"] .tiles li > b, html[data-layout="mobile"] .tiles li > em, html[data-layout="mobile"] .tiles li > span { grid-column: 2; margin-top: 0; }
html[data-layout="mobile"] .pair { grid-template-columns: 1fr; gap: 20px; }
html[data-layout="mobile"] .status-list b { font-size: 15px; }
html[data-layout="mobile"] .loop { grid-template-columns: 1fr; gap: 22px; }
html[data-layout="mobile"] .loop li:nth-child(n) { grid-column: 1; grid-row: auto; }
html[data-layout="mobile"] .loop li:nth-child(4) { order: 4; }
html[data-layout="mobile"] .loop li:nth-child(3) { order: 3; }
html[data-layout="mobile"] .loop li:nth-child(n)::after { content: "↓"; left: 50%; right: auto; top: auto; bottom: -20px; transform: translateX(-50%); }
html[data-layout="mobile"] .loop li:nth-child(4)::after { content: none; }
html[data-layout="mobile"] .next { grid-template-columns: 1fr; gap: 16px; }
html[data-layout="mobile"] .papers { grid-template-columns: 1fr; gap: 8px; }
html[data-layout="mobile"] .cta { grid-template-columns: 1fr; padding: 16px; }
html[data-layout="mobile"] .cta .link { justify-content: space-between; }

/* Print and PDF. investors.js sets html.print-mode and the @page size when the PDF builder asks for it. */
@media print {
  .chrome { display: none; }
  body, main { background: #fff; }
  main { padding: 0; display: block; }
  .sheet { box-shadow: none; }
}
html.print-mode .chrome { display: none; }
html.print-mode body, html.print-mode main { background: var(--lotus); }
html.print-mode main { display: block; padding: 0; }
html.print-mode .sheet { margin: 0; border: 0; box-shadow: none; overflow: hidden; }
html.print-mode[data-layout="desktop"] .sheet { width: 794px; height: 1123px; min-height: 0; justify-content: space-between; }
html.print-mode[data-layout="desktop"] .cta { margin-top: 0; }
html.print-mode[data-layout="mobile"] .sheet { width: 390px; max-width: none; }
