/* Site additions on top of nnovate.css (the design system stylesheet, kept unedited so it can be
   re-synced from Claude Design). */

@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

body { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Content still waiting on real facts: hidden on the live site, outlined on ?preview so the gaps
   are easy to find. Nothing bracketed or invented reaches visitors. */
html:not(.nn-preview) [data-pending] { display: none !important; }
.nn-preview [data-pending] { outline: 2px dashed #ea580c; outline-offset: 4px; }

/* Products stack full width, one per row. Until OrVysio's screenshot arrives its card is copy only. */
.nn-factory-grid { grid-template-columns: minmax(0, 1fr); }
html:not(.nn-preview) .nn-product:has(.nn-frame[data-pending]) { grid-template-columns: minmax(0, 1fr); }
.nn-product-copy { max-width: 640px; }
.nn-shot { display: block; width: 100%; height: auto; border-radius: 4px; }

/* ClientLogo (design system component): every client mark in the same white tile, scaled to fit;
   the tile stays white in dark mode so no logo is recoloured. */
.nn-client-logo { width: 168px; height: 64px; box-sizing: border-box; padding: 8px 14px; background: #ffffff;
  border: 1px solid #e2e8f0; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.nn-client-logo img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }

.nn-orvysio-logo { display: block; height: 35px; width: auto; }

/* Analytics consent banner, shown only when Clarity is configured and the visitor has not chosen. */
.nn-consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 560px; margin-left: auto;
  display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; padding: 16px 20px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--radius-md); }
.nn-consent p { margin: 0; flex: 1 1 260px; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.nn-consent-actions { display: flex; gap: 8px; }
.nn-legal-link { margin-left: 16px; color: inherit; text-decoration: underline; }
.nn-legal-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.nn-cookie-link { margin-left: 16px; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.nn-cookie-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Long-form pages such as the privacy notice: one readable column. */
.nn-legal { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.nn-legal h2 { margin: 24px 0 0; }
.nn-legal p, .nn-legal li { margin: 0; color: var(--text); }
.nn-legal .nn-lead { color: var(--text-2); }
.nn-legal code { font-family: var(--font-mono); font-size: 12px; }
.nn-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); }
.nn-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.nn-table th, .nn-table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.nn-table th { font-weight: 600; background: var(--surface-2); color: var(--text); }
.nn-table tr:last-child td { border-bottom: 0; }

.nn-form-status { font-size: 14px; color: var(--text-2); }
.nn-form-status[data-state="ok"] { color: var(--status); }

/* Badges never wrap by design; on the narrowest phones let one wrap rather than widen the page. */
.nn-badge { max-width: 100%; }
.nn-badge-row .nn-badge { white-space: normal; }

/* Automation visual (Services band): four systems shown first with manual hand-offs between them,
   then joined through an automated workflow. Loops every 12s; holds on "connected" under reduced motion. */
.nn-flow { display: flex; flex-direction: column; gap: 12px; }
.nn-flow-svg { display: block; width: 100%; height: auto; }
.nn-flow-node { fill: var(--surface-2); stroke: var(--border-strong); stroke-width: 1; }
.nn-flow-node-text { font-family: var(--font-sans); font-size: 13px; font-weight: 500; fill: var(--text); }
.nn-flow-gap { fill: none; stroke: var(--border-strong); stroke-width: 1.5; stroke-dasharray: 4 5; }
.nn-flow-chip { fill: var(--surface); stroke: var(--accent); stroke-width: 1; }
.nn-flow-chip-text { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; fill: var(--accent-text); }
.nn-flow-link { fill: none; stroke: var(--primary); stroke-width: 2; }
.nn-flow-hub { fill: var(--primary); }
.nn-flow-hub-text { font-family: var(--font-sans); font-size: 12px; font-weight: 600; fill: var(--on-primary); }
.nn-flow-dot { fill: var(--accent); }
.nn-flow-ok { fill: var(--status); }
.nn-flow-caption { display: grid; font-size: 14px; color: var(--text-2); }
.nn-flow-caption > span { grid-area: 1 / 1; }
.nn-flow-caption b { color: var(--text); font-weight: 600; }
.nn-flow-before, .nn-flow-cap-before { animation: nn-flow-a 12s ease-in-out infinite; }
.nn-flow-after, .nn-flow-cap-after { animation: nn-flow-b 12s ease-in-out infinite; }
@keyframes nn-flow-a { 0%, 38% { opacity: 1; } 48%, 90% { opacity: 0; } 100% { opacity: 1; } }
@keyframes nn-flow-b { 0%, 38% { opacity: 0; } 48%, 90% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .nn-flow-before, .nn-flow-cap-before { display: none; }
  .nn-flow-after, .nn-flow-cap-after { animation: none; opacity: 1; }
}

/* "Ask your own data" illustration: a question, an answer from the client's data, and where it comes from. */
.nn-chat { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 20px; }
.nn-chat-q { align-self: flex-end; max-width: 85%; padding: 12px 16px; border-radius: var(--radius-md); background: var(--tint); color: var(--text); font-size: 15px; line-height: 1.5; }
.nn-chat-a { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--radius-md); background: var(--surface-2); border: 1px solid var(--border); font-size: 15px; line-height: 1.55; color: var(--text); }
.nn-chat-a p { margin: 0; }
.nn-chat-a b { font-weight: 600; color: var(--primary); }
.nn-chat-up { color: var(--status); font-weight: 500; }
.nn-chat-bars { display: flex; align-items: flex-end; gap: 10px; height: 72px; padding-top: 4px; }
.nn-chat-bars span { position: relative; flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: var(--tint-2); }
.nn-chat-bars span.is-peak { background: var(--accent); }
.nn-chat-bars i { position: absolute; left: 0; right: 0; bottom: -18px; text-align: center; font-style: normal; font-family: var(--font-mono); font-size: 11px; color: var(--text-2-strong); }
.nn-chat-source { margin-top: 18px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--text-2-strong); }
.nn-chat-flow { padding-top: 2px; }
/* The answer arrives a moment after the question when the section scrolls into view. */
.nn[data-motion="on"] #ai-data .nn-chat-a { opacity: 0; transform: translateY(8px); transition: opacity 500ms ease 700ms, transform 500ms ease 700ms; }
.nn[data-motion="on"] #ai-data .nn-reveal.is-in .nn-chat-a { opacity: 1; transform: none; }

/* Team: every photo gets the same circle crop and the brand headshot ring (navy, short orange arc at
   lower left), so different photos read as one set. */
.nn-team { margin-top: 96px; }
.nn-person { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.nn-person-photo { width: 148px; height: 148px; padding: 5px; margin-bottom: 14px; border-radius: 50%;
  background: conic-gradient(from 200deg, var(--accent) 0deg 46deg, var(--primary) 46deg 360deg); }
.nn-person-photo img, .nn-person-photo .nn-placeholder { width: 100%; height: 100%; border-radius: 50%; border: 4px solid var(--bg); box-sizing: border-box; object-fit: cover; object-position: 50% 30%; display: block; }
.nn-person-photo .nn-placeholder { padding: 8px; font-size: 10px; }
.nn-person-before { color: var(--text-2); font-style: italic; }
@container nn (max-width: 760px) { .nn-team { margin-top: 64px; } }
