/* The brief: NorthRAG in two pages for finance and legal, drawn more than written. On a
   wide screen and in print each sheet is an A4 page in its own small sizes; on a phone it
   reflows into one column at the site's sizes. A wide screen shows the page larger (zoom),
   so its lettering reads like the site's. */

.brief-page { background: var(--frost); }
.brief-page main { padding: calc(var(--nav-h) + clamp(28px, 5vw, 56px)) 0 clamp(48px, 7vw, 96px); }

.brief-head { display: grid; justify-items: center; gap: 14px; margin-bottom: clamp(28px, 4vw, 44px); text-align: center; }
.brief-head .crumb { color: var(--ink-2); }
.brief-intro { max-width: 34em; font-size: clamp(18px, 0.3vw + 15px, 20px); line-height: 1.45; color: var(--ink-2); text-wrap: balance; }
.print-btn {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin-top: 4px; padding: 0 18px;
  border: 1px solid color-mix(in srgb, var(--cta) 55%, transparent); border-radius: var(--r-ctl); background: var(--snow);
  color: var(--link); font: 600 16px/1 var(--sans); letter-spacing: 0.004em; cursor: pointer;
  transition: border-color 160ms ease, transform 160ms var(--ease-out); -webkit-tap-highlight-color: transparent;
}
.print-btn:hover { border-color: var(--cta); }
.print-btn:active { transform: scale(0.97); }
.print-btn svg { width: 18px; height: 18px; }

/* ---- The sheets --------------------------------------------------------------------- */

.brief { display: grid; gap: clamp(20px, 3vw, 36px); }

.sheet {
  --s-body: 16px; --s-small: 14px; --s-fine: 12.5px; --s-h1: 30px; --s-h2: 19px; --s-big: 34px;
  --s-gap: 30px; --s-pad: 22px; --s-ico: 30px;
  display: flex; flex-direction: column; gap: var(--s-gap);
  width: min(100% - 2 * var(--gutter), 720px); margin-inline: auto; padding: var(--s-pad);
  border-radius: var(--r-card); background: #fff; color: var(--ink);
  box-shadow: 0 1px 2px rgba(19, 34, 46, 0.06), 0 18px 48px -20px rgba(19, 34, 46, 0.28);
  font-size: var(--s-body); line-height: 1.42; letter-spacing: 0.004em;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.sheet h2 { margin-bottom: 10px; font-size: var(--s-h2); line-height: 1.15; letter-spacing: -0.014em; }
.who { display: block; margin-bottom: 2px; font-size: var(--s-small); font-weight: 600; letter-spacing: 0.01em; color: var(--ink-2); }
.sheet h3 { font-size: var(--s-body); line-height: 1.25; letter-spacing: -0.006em; }
.sheet figure { margin: 0; }
.sheet sup { font-size: 0.68em; line-height: 0; letter-spacing: 0; }
.sheet a { color: var(--link); }

.sheet-mast { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.sheet-brand { display: flex; align-items: center; gap: 8px; font-size: calc(var(--s-body) * 1.12); font-weight: 600; letter-spacing: -0.01em; }
.sheet-brand .mark { width: 1.45em; height: 1.45em; }
.sheet-for { font-size: var(--s-small); color: var(--ink-2); }

/* The opening: the claim, and a week that shows it. */
.sheet-hero { display: grid; gap: 20px; align-items: center; }
.sheet-title { display: grid; gap: 10px; }
.sheet-title h1 { font-size: var(--s-h1); line-height: 1.06; letter-spacing: -0.026em; text-wrap: balance; }
.sheet-sub { font-size: calc(var(--s-body) * 1.12); line-height: 1.38; color: var(--ink-2); text-wrap: pretty; }
.b-week { display: grid; gap: 8px; justify-items: start; }
.b-days { display: flex; gap: 6px; }
.b-day { display: flex; flex-direction: column-reverse; gap: 2px; width: 34px; }
.b-day i, .b-key { display: block; height: 9px; border-radius: 2px; background: var(--frost); box-shadow: inset 0 0 0 1px var(--rule); }
.b-day i.on, .b-key { background: var(--night); box-shadow: none; }
.b-day span { order: -1; margin-top: 3px; font-size: var(--s-fine); text-align: center; color: var(--ink-2); }
.b-week figcaption { display: flex; align-items: center; gap: 6px; font-size: var(--s-small); color: var(--ink-2); }
.b-key { flex: none; width: 14px; }

/* How it works: three steps inside the line of your own servers. */
.b-flow { display: grid; gap: 10px; padding: 16px; border: 1.5px dashed var(--line); border-radius: 14px; }
.b-steps { display: grid; gap: 22px; counter-reset: step; }
.b-steps li { position: relative; display: grid; align-content: start; gap: 4px; }
.b-steps p { font-size: var(--s-small); line-height: 1.38; color: var(--ink-2); }
.sheet .n {
  display: inline-grid; place-items: center; width: 1.45em; height: 1.45em; margin-right: 6px; border-radius: 50%;
  background: var(--night); color: var(--night-ink); font-size: 0.82em; vertical-align: 0.08em;
}
.b-art { display: grid; place-items: center; height: 92px; margin-bottom: 8px; border-radius: 10px; background: var(--frost); }
.b-docs { display: flex; justify-content: center; align-items: center; }
.b-docs span {
  position: relative; display: grid; align-content: end; justify-items: center; width: 52px; height: 64px; margin-inline: 3px; padding: 0 0 7px;
  border-radius: 3px; background: #fff; box-shadow: 0 0 0 1px var(--rule), 0 4px 10px -4px rgba(19, 34, 46, 0.25);
  font-size: calc(var(--s-fine) * 0.92); font-weight: 600; color: var(--ink-2);
  background-image: repeating-linear-gradient(to bottom, transparent 0 7px, var(--rule) 7px 8px);
  background-size: 34px 32px; background-position: center 12px; background-repeat: no-repeat;
}
.b-docs span:nth-child(1) { transform: rotate(-5deg) translateY(2px); }
.b-docs span:nth-child(2) { z-index: 1; }
.b-docs span:nth-child(3) { transform: rotate(5deg) translateY(2px); }
.b-core { background: var(--frost); }
.b-core .mark { width: 62px; height: 62px; padding: 12px; border-radius: 14px; background: var(--night); color: var(--night-ink); }
.b-chat { display: grid; align-content: center; justify-items: start; gap: 5px; padding: 8px 12px; place-items: center stretch; }
.b-chat p { width: fit-content; max-width: 100%; padding: 4px 8px; border-radius: 8px; font-size: var(--s-fine); line-height: 1.3; }
.b-chat .bq { justify-self: end; background: #fff; box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink); }
.b-chat .ba { display: grid; gap: 4px; background: var(--night); color: var(--night-ink); font-weight: 600; }
.b-chat .b-cite { width: fit-content; padding: 1px 6px; border: 1px solid var(--accent-dim); border-radius: 5px; color: var(--accent-hi); font-weight: 400; font-size: 0.9em; }

.b-need { display: inline-flex; align-items: center; gap: 4px; width: fit-content; margin-top: 4px; padding: 2px 8px 2px 5px; border-radius: 999px; background: var(--frost); font-size: var(--s-fine); font-weight: 600; color: var(--ink); }
.b-need .b-i { width: 1.25em; height: 1.25em; stroke-width: 2.2; }
.b-steps p.b-need { color: var(--ink); font-size: var(--s-fine); }
/* Step 3: the assistant as the console shows it, a few fields and a button. */
.b-make { display: grid; align-content: center; gap: 3px; padding: 6px 10px; place-items: center stretch; }
.b-make p { margin: 0; }
.b-make-h { font-size: var(--s-fine); font-weight: 600; color: var(--ink); }
.b-field { display: flex; justify-content: space-between; gap: 6px; padding: 1px 6px; border-radius: 4px; background: #fff; box-shadow: inset 0 0 0 1px var(--rule); font-size: calc(var(--s-fine) * 0.92); line-height: 1.35; color: var(--ink); white-space: nowrap; overflow: hidden; }
.b-field span { color: var(--ink-2); }
.b-publish { justify-self: end; margin-top: 2px; padding: 2px 8px; border-radius: 4px; background: var(--cta); color: var(--cta-ink); font-size: calc(var(--s-fine) * 0.92); font-weight: 600; }
.b-under { display: grid; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
.b-under li { display: flex; align-items: center; gap: 7px; font-size: var(--s-small); line-height: 1.3; font-weight: 600; }
.b-under .b-i { flex: none; width: 1.35em; height: 1.35em; stroke-width: 1.7; }

/* What it solves: today, then with NorthRAG, a line each. */
.solves-head { display: none; }
.solves { display: grid; }
.solves li { display: grid; grid-template-columns: var(--s-ico) minmax(0, 1fr); column-gap: 12px; row-gap: 2px; padding: 10px 0; border-top: 1px solid var(--rule); }
.solves li:last-child { border-bottom: 1px solid var(--rule); }
.solves .ico { grid-row: span 2; width: var(--s-ico); height: var(--s-ico); padding: 5px; border-radius: 8px; background: var(--frost); fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.solves .was { font-size: var(--s-small); line-height: 1.35; color: var(--ink-2); }
.solves .now { font-weight: 600; line-height: 1.3; }

/* What it's worth: time back, and what per-person AI costs. */
.worth { display: grid; gap: 14px; }
.worth-card { display: grid; align-content: start; gap: 6px; padding: 14px 16px; border-radius: 10px; background: var(--frost); }
.b-big { font-size: var(--s-big); line-height: 1; font-weight: 600; letter-spacing: -0.03em; }
.worth-line { font-weight: 600; line-height: 1.3; }
.worth-h { font-weight: 600; }
.fte { display: flex; gap: 4px; margin: 4px 0 2px; color: var(--night); }
.fte svg { width: 22px; height: 26px; }
.fte .half { clip-path: inset(0 50% 0 0); }
.worth-card figcaption, .worth-us { font-size: var(--s-small); line-height: 1.38; color: var(--ink-2); }
.worth-us b { color: var(--ink); }
.b-bars { width: 100%; height: auto; overflow: visible; }
.b-bars .b-base { stroke: var(--rule); stroke-width: 1; }
.b-bars .b-bar path { fill: var(--detail); }
.b-bars text { font: 600 12px var(--sans); fill: var(--ink); text-anchor: middle; }
.b-bars text.x { font-weight: 400; fill: var(--ink-2); }

.sheet-foot { display: grid; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--rule); }
.sheet-start { display: grid; gap: 4px; }
.sheet-cta { font-weight: 600; }
.sheet-sources { display: grid; gap: 2px; padding-left: 1.3em; font-size: var(--s-fine); line-height: 1.35; color: var(--ink-2); }
.sheet-sources a { color: inherit; }

/* ---- Page two ----------------------------------------------------------------------- */

.sheet-foot .b-over { font-size: var(--s-small); font-weight: 600; color: var(--ink); }
.b-i { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Where your data goes: the line of your servers, and what crosses it. */
.b-paths { display: grid; gap: 12px; }
.b-stop { display: inline-flex; align-items: center; gap: 5px; margin-left: 12px; font-size: var(--s-small); font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.b-stop .b-i { width: 1.4em; height: 1.4em; }
.b-path { display: grid; align-content: start; gap: 8px; }
.b-path figcaption { font-size: var(--s-small); line-height: 1.38; color: var(--ink-2); }
.b-path figcaption b { color: var(--ink); }
.b-route { display: flex; flex-wrap: wrap; align-items: center; row-gap: 8px; min-height: 78px; padding: 12px; border-radius: 10px; background: var(--frost); }
.b-zone { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 16px 10px 10px; border: 1.5px dashed var(--line); border-radius: 10px; background: #fff; }
.b-tag { position: absolute; top: -0.75em; left: 8px; padding: 0 5px; background: #fff; font-size: var(--s-fine); font-weight: 600; color: var(--ink-2); }
.b-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 6px; background: var(--frost); font-size: var(--s-small); font-weight: 600; white-space: nowrap; }
.b-chip .b-i, .b-chip .mark { width: 1.25em; height: 1.25em; margin: 0; }
.b-dark { background: var(--night); color: var(--night-ink); }
.b-cloud { background: #fff; box-shadow: inset 0 0 0 1px var(--rule); }
/* The one way out: the question and its passages, through the line to the cloud. */
.b-out { flex: 1 1 24px; min-width: 24px; height: 12px; margin-inline: 4px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 12' preserveAspectRatio='none'%3E%3Cpath d='M0 6h22' stroke='%232a5fb5' stroke-width='1.6' stroke-dasharray='3 2.5'/%3E%3C/svg%3E") left center / calc(100% - 6px) 12px no-repeat,
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 12'%3E%3Cpath d='M1.5 1.5L6.5 6l-5 4.5' fill='none' stroke='%232a5fb5' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right center / 8px 12px no-repeat; }
.b-facts { display: grid; gap: 8px; margin-top: 12px; }
.b-facts li { display: flex; align-items: center; gap: 8px; font-size: var(--s-small); line-height: 1.32; font-weight: 600; }
.b-facts .b-i { flex: none; width: var(--s-ico); height: var(--s-ico); padding: 5px; border-radius: 8px; background: var(--frost); }

/* Who sees what: one box a team, and a file kept to admins. */
.b-teams { display: grid; gap: 8px; }
.b-team { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 10px; border: 1.5px solid var(--rule); border-radius: 10px; }
.b-team-name { flex-basis: 100%; margin-bottom: 2px; font-size: var(--s-small); font-weight: 600; }
.b-team span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 5px; background: var(--frost); font-size: var(--s-fine); color: var(--ink-2); }
.b-team .b-kept { background: var(--night); color: var(--night-ink); }
.b-kept .b-i { width: 1.2em; height: 1.2em; }
.b-note { margin-top: 8px; font-size: var(--s-small); line-height: 1.38; color: var(--ink-2); }

/* What you pay for, and what you never do. */
.b-pay { display: grid; gap: 12px; }
.b-pays { display: grid; gap: 8px; }
.b-pays li { display: flex; align-items: center; gap: 9px; font-size: var(--s-small); line-height: 1.32; color: var(--ink-2); }
.b-pays b { color: var(--ink); }
.b-pays .b-i { flex: none; width: var(--s-ico); height: var(--s-ico); padding: 5px; border-radius: 8px; background: var(--frost); color: var(--ink); }
.b-nevers { display: grid; align-content: center; gap: 8px; padding: 12px 14px; border-radius: 10px; background: var(--night); color: var(--night-ink); }
.b-never-h { font-weight: 600; }
.b-nevers ul { display: flex; flex-wrap: wrap; gap: 6px; }
.b-nevers li { padding: 3px 9px; border: 1px solid var(--rule-night); border-radius: 999px; font-size: var(--s-small); color: var(--night-ink-2); text-decoration: line-through; text-decoration-color: var(--night-ink-3); }

/* How you start: four steps on one line. */
.b-start { display: grid; gap: 10px; counter-reset: none; }
.b-start li { position: relative; display: block; font-size: var(--s-small); line-height: 1.36; color: var(--ink-2); }
.b-start b { display: block; margin: 6px 0 2px; color: var(--ink); }
.b-start .n { margin: 0; }

/* Before you sign. */
.b-qs { display: grid; gap: 10px; margin: 0; }
.b-qs > div { padding: 10px 12px; border-radius: 10px; background: var(--frost); }
.b-qs dt { font-weight: 600; }
.b-qs dd { margin: 2px 0 0; font-size: var(--s-small); line-height: 1.38; color: var(--ink-2); }

.b-close { gap: 4px; }
.sheet-legal { font-size: var(--s-fine); color: var(--ink-2); }

/* ---- A4: a wide screen, and print -------------------------------------------------- */

@media screen and (min-width: 860px) {
  .sheet { width: 210mm; min-height: 297mm; border-radius: 4px; }
}
@media screen and (min-width: 860px), print {
  .sheet {
    --s-body: 11.4px; --s-small: 10.2px; --s-fine: 8.6px; --s-h1: 28px; --s-h2: 15.5px; --s-big: 27px;
    --s-gap: 20px; --s-pad: 11mm 13mm 9mm; --s-ico: 26px;
  }
  .sheet h2 { margin-bottom: 8px; }
  .sheet-hero { grid-template-columns: minmax(0, 1fr) auto; gap: 28px; }
  .b-day { width: 26px; }
  .b-day i, .b-key { height: 7px; }
  .b-flow { padding: 12px 14px; }
  .b-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
  .b-under { grid-template-columns: 0.8fr 1fr 1.25fr; gap: 16px; }
  /* An arrow from each step to the next. */
  .b-steps li:not(:last-child)::after {
    content: ""; position: absolute; top: 37px; right: -23px; width: 20px; height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237f9aad' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M14 7l5 5-5 5'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .b-art { height: 80px; }
  .b-steps li { display: flex; flex-direction: column; gap: 4px; }
  .b-steps .b-need { margin-top: auto; }
  .b-steps .b-art { margin-bottom: 6px; }
  .b-bars { max-height: 104px; }
  .b-docs span { width: 40px; height: 52px; margin-inline: 1px; font-size: calc(var(--s-fine) * 0.82); }
  .b-core .mark { width: 54px; height: 54px; padding: 11px; }
  .solves-head { display: grid; grid-template-columns: var(--s-ico) minmax(0, 0.9fr) minmax(0, 1.1fr); column-gap: 14px; margin-bottom: 4px; font-size: var(--s-fine); font-weight: 600; color: var(--ink-2); }
  .solves-head span:first-child { grid-column: 2; }
  .solves li { grid-template-columns: var(--s-ico) minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; column-gap: 14px; padding: 5px 0; }
  .solves .ico { grid-row: auto; }
  .solves .now { position: relative; }
  .solves .now::before {
    content: ""; position: absolute; left: -13px; top: 50%; width: 10px; height: 10px; transform: translateY(-50%);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237f9aad' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M14 7l5 5-5 5'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .worth { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .fte svg { width: 19px; height: 23px; }
  .b-bars text { font-size: 11px; }
  .sheet-foot:not(.b-close) { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 24px; }
  .b-paths { gap: 10px; }
  .b-path { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: center; gap: 18px; }
  .b-path figcaption { font-size: var(--s-body); }
  .b-route { flex-wrap: nowrap; }
  .b-route .b-zone { flex-wrap: nowrap; }
  .b-stop { margin-left: auto; padding-left: 10px; }
  .b-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .b-teams { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .b-pay { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; }
  .b-start { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  /* A line from each step to the next. */
  .b-start li:not(:last-child)::after { content: ""; position: absolute; top: 0.72em; left: 2.2em; right: -8px; height: 1px; background: var(--line); }
  .b-qs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen and (min-width: 1100px) { .sheet { zoom: 1.22; } }
@media screen and (min-width: 1500px) { .sheet { zoom: 1.4; } }

@page { size: A4; margin: 0; }
@media print {
  .brief-page { background: #fff; }
  .brief-page .nav, .brief-page .footer, .brief-head, .skip { display: none !important; }
  .brief-page main { padding: 0; }
  .brief { display: block; }
  .sheet { width: 210mm; height: 297mm; margin: 0; border-radius: 0; box-shadow: none; overflow: hidden; break-inside: avoid; break-after: page; }
  .sheet:last-child { break-after: auto; }
  .sheet a { text-decoration: none; }
}
