/* Writ uses the accepted portfolio composition's reader and world values.
   Source: braininavatgroup/portfolio app/globals.css and docs/design-tokens.md. */
@font-face {
  font-display: swap;
  font-family: "NHG portfolio";
  font-style: normal;
  font-weight: 400;
  src: url("https://braininavat.systems/assets/brand-review/fonts/NeueHaasDisplayRoman.ttf") format("truetype");
}
@font-face {
  font-display: swap;
  font-family: "NHG portfolio";
  font-style: normal;
  font-weight: 500 700;
  src: url("https://braininavat.systems/assets/brand-review/fonts/NeueHaasDisplayMediu.ttf") format("truetype");
}
:root {
  color-scheme: light;
  --ink: #201711;
  --paper: #c5cbd0;
  --paper-near: #d2d7db;
  --reader-paper: #eff1f1;
  --body: #514a45;
  --muted: #6b6d6d;
  --line: rgb(32 23 17 / 18%);
  --line-strong: rgb(32 23 17 / 38%);
  --register: #006e91;
  --focus: #b6df5b;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-8: 64px;
  --sans: "NHG portfolio", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.site-header, .legal-header { border-bottom: 1px solid var(--line); }
.nav, .legal-nav { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.wordmark { font-size: 15px; line-height: 20px; font-weight: 500; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: var(--space-4); font-size: 13px; line-height: 18px; }
.nav-links a, .back-link { min-height: 40px; display: inline-flex; align-items: center; }
.nav-links a:hover, .back-link:hover, .legal-main a:hover, .legal-links a:hover { text-decoration-color: var(--register); }
.status-pill { font-weight: 500; color: var(--register); }
main { overflow: hidden; }
.eyebrow, .number, .legal-kicker { color: var(--muted); font-size: 11px; line-height: 16px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.eyebrow { margin: 0 0 var(--space-1); }
h1 { max-width: 17ch; margin: 0; font-size: 36px; line-height: 40px; font-weight: 500; letter-spacing: -.055em; text-wrap: balance; }
h2 { margin: 0; font-size: 24px; line-height: 32px; font-weight: 500; letter-spacing: -.035em; text-wrap: balance; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: min(1160px, calc(100% - 48px)); margin: var(--space-4) auto var(--space-8); min-height: 540px; }
.hero-copy { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-8); padding: var(--space-8) var(--space-4); background: var(--reader-paper); }
.hero .eyebrow { color: var(--register); }
.lede { max-width: 42ch; margin: var(--space-2) 0 0; font-size: 18px; line-height: 24px; letter-spacing: -.01em; }
.hero-note { max-width: 42ch; margin: 0; color: var(--muted); font-size: 12px; line-height: 16px; }
.hero-product { position: relative; display: grid; place-items: center; padding: var(--space-8) var(--space-4); background: var(--paper-near); border-left: 1px solid var(--line); }
.hero-product::before { position: absolute; top: var(--space-3); right: var(--space-3); color: var(--muted); content: "INPUT / OUTPUT"; font: 500 11px/16px var(--sans); letter-spacing: .06em; }
.product-panel { width: min(100%, 430px); padding: var(--space-3); border: 1px solid var(--line-strong); background: var(--reader-paper); box-shadow: 0 16px 40px rgb(32 23 17 / 10%); }
.panel-head, .device-row, .meter-caption { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.panel-head { padding-bottom: var(--space-2); border-bottom: 1px solid var(--line); }
.panel-title { font-size: 15px; line-height: 20px; font-weight: 500; }
.panel-title small { color: var(--muted); font-weight: 400; }
.toggle { position: relative; width: 34px; height: 20px; border-radius: 99px; background: var(--register); }
.toggle::after { position: absolute; top: 3px; right: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--reader-paper); content: ""; }
.device-row { min-height: 64px; border-bottom: 1px solid var(--line); }
.device { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.glyph { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border: 1px solid var(--line-strong); color: var(--muted); font-size: 10px; line-height: 12px; }
.device strong { display: block; font-size: 15px; line-height: 20px; font-weight: 500; }
.device small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 16px; }
.active-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--register); flex: 0 0 auto; }
.meter { padding-top: var(--space-2); }
.meter-caption { color: var(--muted); font-size: 11px; line-height: 16px; text-transform: uppercase; letter-spacing: .06em; }
.meter-bar { display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px; margin-top: var(--space-1); }
.meter-bar i { height: 24px; background: var(--paper-near); }
.meter-bar i:nth-child(-n+11) { background: var(--register); }
.meter-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-1); margin-top: var(--space-2); }
.meter-stats span { color: var(--muted); font-size: 11px; line-height: 16px; }
.meter-stats b { display: block; color: var(--ink); font-size: 13px; font-weight: 500; }
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); padding-block: var(--space-8); }
.proof article { padding-right: var(--space-4); }
.proof article + article { border-left: 1px solid var(--line); padding-left: var(--space-4); }
.number { display: block; margin-bottom: var(--space-4); color: var(--register); }
.proof p { max-width: 40ch; margin: var(--space-2) 0 0; color: var(--body); font-size: 15px; line-height: 24px; text-wrap: pretty; }
.privacy-section { display: grid; grid-template-columns: 1fr 1fr; width: min(1160px, calc(100% - 48px)); margin: var(--space-8) auto; background: var(--reader-paper); }
.privacy-copy, .privacy-facts { padding: var(--space-8) var(--space-4); }
.privacy-copy p:last-child { max-width: 50ch; margin: var(--space-2) 0 0; color: var(--body); font-size: 15px; line-height: 24px; text-wrap: pretty; }
.privacy-facts { display: grid; align-content: center; border-left: 1px solid var(--line); }
.privacy-facts div { display: flex; justify-content: space-between; gap: var(--space-2); padding: var(--space-2) 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 24px; }
.privacy-facts b { color: var(--muted); font-size: 11px; line-height: 16px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; text-align: right; }
.availability { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); padding-bottom: var(--space-8); }
.availability p:not(.eyebrow) { max-width: 48ch; margin: 0; color: var(--body); font-size: 15px; line-height: 24px; }
.legal-links { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin-top: var(--space-3); }
.legal-links a { display: inline-flex; align-items: center; min-height: 40px; font-size: 15px; line-height: 24px; }
.download-button { padding: var(--space-1) var(--space-2); background: var(--ink); color: var(--reader-paper); text-decoration: none; font-weight: 500; }
.download-button:hover { background: var(--register); }
.availability p.install-command { margin-top: var(--space-3); }
.install-command code { display: block; margin-top: var(--space-1); font: 13px/18px var(--mono); overflow-wrap: anywhere; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 96px; }
.footer-inner strong { font-size: 15px; font-weight: 500; }
.footer-inner small { color: var(--muted); font-size: 12px; line-height: 16px; }
.back-link { font-size: 13px; line-height: 18px; }
.legal-main { width: min(680px, calc(100% - 48px)); margin: var(--space-4) auto var(--space-8); padding: var(--space-8) var(--space-3); background: var(--reader-paper); }
.legal-main h1 { max-width: none; }
.legal-kicker { margin: var(--space-2) 0 var(--space-4); }
.legal-main h2 { margin: var(--space-8) 0 var(--space-1); font-size: 15px; line-height: 20px; letter-spacing: 0; }
.legal-main p, .legal-main li { color: var(--body); font-size: 15px; line-height: 24px; text-wrap: pretty; }
.legal-main p { margin: 0 0 var(--space-2); }
.legal-main li + li { margin-top: var(--space-1); }
.legal-main ul { padding-left: var(--space-3); }
.legal-main code { font: 13px/18px var(--mono); overflow-wrap: anywhere; }
.legal-main a { color: var(--register); }
.legal-rule { margin: var(--space-4) 0; border: 0; border-top: 1px solid var(--line); }
@media (max-width: 800px) {
  .hero, .privacy-section, .availability { grid-template-columns: 1fr; }
  .hero-product, .privacy-facts { border-left: 0; border-top: 1px solid var(--line); }
  .hero-copy { min-height: 380px; }
  .proof-grid { grid-template-columns: 1fr; gap: 0; }
  .proof article, .proof article + article { border-left: 0; padding: var(--space-3) 0; }
  .proof article + article { border-top: 1px solid var(--line); }
  .number { margin-bottom: var(--space-1); }
}
@media (max-width: 600px) {
  .wrap, .hero, .privacy-section, .legal-main { width: calc(100% - 48px); }
  .nav-links { gap: var(--space-2); }
  .nav-links a:not(.status-pill) { display: none; }
  .hero { margin-top: var(--space-3); margin-bottom: var(--space-8); }
  .hero-copy, .hero-product, .privacy-copy, .privacy-facts { padding: var(--space-3); }
  .hero-copy { min-height: 360px; }
  .hero-product { min-height: 390px; padding-top: var(--space-8); }
  .product-panel { padding: var(--space-2); }
  .privacy-facts div { flex-wrap: wrap; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: var(--space-3); }
  .legal-main { margin-top: var(--space-3); padding: var(--space-4) var(--space-3) var(--space-8); }
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #f0e6dc;
    --paper: #19140f;
    --paper-near: #211c18;
    --reader-paper: #292625;
    --body: #c1b7ae;
    --muted: #aaa098;
    --line: rgb(240 230 220 / 17%);
    --line-strong: rgb(240 230 220 / 34%);
    --register: #62c6df;
  }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
