/* ============================================================
   AIGONIX site chrome (29.09.2026): header, mobile menu, product
   sub-row, footer, legal links, consent banner. Loaded LAST on all
   13 pages. Tokens are scoped to the chrome elements, NOT :root,
   so Dawn's --font-body (Outfit) never leaks into /styles.css pages
   (which use --font-body: Inter). No colour outside Dawn Signal.
   ============================================================ */

/* Self-hosted fonts, copied verbatim from dawn-signal.css (SIL OFL 1.1,
   licences in assets/fonts/). Same URLs, so Dawn pages download nothing extra. */
/* latin-ext */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


.skip-link,.site-header,.page-subnav,.site-footer,.consent{
  --paper:#fffaf3; --ink:#191a21; --dim:#6b6558; --line:#ece2d2;
  --sky-indigo:#1c1f4d; --sky-cobalt:#28418f; --sky-coral:#ff7a52;
  --sky-amber:#ffb15e; --glow:#fff3d6; --on-dark-dim:#d9cdb6;
  --font-head:"JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-body:"Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw:1280px;
  --gutter-x:clamp(1.25rem,4vw,2.75rem);
  font-family:var(--font-body);font-size:1.0625rem;line-height:1.6;font-weight:400;
  -webkit-font-smoothing:antialiased;
}

/* ---------- Jump-link offset (one mechanism, all pages) ----------
   --chrome-h = header + sub-row height, set by site-chrome.js.
   Fallbacks = measured heights (header ~76px, + sub-row ~121px). */
html{scroll-padding-top:var(--chrome-h,76px)}
html:has(.page-subnav){scroll-padding-top:var(--chrome-h,121px)}

/* ---------- Focus (chrome only; bodies keep their own) ---------- */
.skip-link:focus-visible,
.site-header :focus-visible,
.page-subnav :focus-visible,
.site-footer :focus-visible{
  outline:3px solid var(--paper);outline-offset:2px;
  box-shadow:0 0 0 5px var(--ink);border-radius:4px;
}

/* ---------- Skip link ---------- */
.skip-link{
  position:absolute;left:-9999px;top:1rem;z-index:100;
  background:var(--ink);color:var(--paper);padding:.75rem 1.25rem;border-radius:6px;
  font-weight:500;font-size:.9375rem;text-decoration:none;
}
.skip-link:focus{left:1rem}

/* ---------- Header ---------- */
.site-header{
  position:sticky;top:0;z-index:40;color:var(--ink);
  background:rgba(255,250,243,.86);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.site-header .row{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  padding:1rem var(--gutter-x);
}
.site-header .logo{
  font-family:var(--font-head);font-weight:700;font-size:1.05rem;letter-spacing:-.01em;
  color:inherit;text-decoration:none;display:inline-block;
}
.site-nav{display:flex;align-items:center;gap:2rem}
.site-header .nav-links{display:flex;gap:1.75rem;font-size:.9375rem;color:var(--dim)}
.site-header .nav-links a{text-decoration:none}
.site-header .nav-links a:hover{color:var(--ink)}
.site-header .nav-link--product{color:var(--sky-cobalt);font-weight:600}
.site-header .cta{
  font-family:var(--font-body);font-weight:600;font-size:.92rem;line-height:1.6;
  background:linear-gradient(135deg,var(--sky-coral),var(--sky-amber));
  color:#241300;padding:.6rem 1.15rem;border-radius:999px;border:none;
  cursor:pointer;text-decoration:none;display:inline-block;white-space:nowrap;
  box-shadow:0 6px 18px -6px rgba(255,122,82,.55);
  transition:filter .2s,transform .1s;
}
.site-header .cta:hover{filter:brightness(1.05)}
.site-header .cta:active{transform:translateY(1px)}

/* ---------- Mobile menu (<=768px) ----------
   Disclosure pattern, not a modal: a dropdown panel under the header
   with the same three links. CTA stays in the bar. */
.menu-toggle{
  display:none;align-items:center;justify-content:center;flex-direction:column;gap:6px;
  width:44px;height:44px;margin-right:-10px;padding:0;
  background:none;border:0;border-radius:999px;color:var(--ink);cursor:pointer;
}
.menu-toggle:hover{background:var(--line)}
.menu-toggle__bar{
  display:block;width:22px;height:2px;border-radius:2px;background:currentColor;
  transition:transform .2s ease;
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:first-child{transform:translateY(4px) rotate(45deg)}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:last-child{transform:translateY(-4px) rotate(-45deg)}
.site-menu{
  position:absolute;left:0;right:0;top:100%;
  background:var(--paper);border-top:1px solid var(--line);border-bottom:1px solid var(--line);
  box-shadow:0 18px 30px -18px rgba(25,26,33,.25);
  max-height:calc(100dvh - var(--header-h,76px));overflow-y:auto;
}
.site-menu[hidden]{display:none}
.site-menu a{
  display:flex;align-items:center;min-height:48px;
  padding:.75rem var(--gutter-x);border-top:1px solid var(--line);
  font-size:1.0625rem;font-weight:500;color:var(--ink);text-decoration:none;
}
.site-menu a:first-child{border-top:0}
.site-menu a:hover{color:var(--sky-cobalt)}
.site-menu a.nav-link--product{color:var(--sky-cobalt);font-weight:600}
.site-menu a.nav-link--product:hover{color:var(--ink)}

/* ---------- Product sub-row (II and C2C pages) ---------- */
.page-subnav{
  display:block;position:sticky;top:var(--header-h,76px);z-index:30;
  background:var(--paper);border-bottom:1px solid var(--line);
}
.page-subnav .row{
  display:flex;align-items:center;gap:1.5rem;overflow-x:auto;scrollbar-width:none;
  padding:.6rem var(--gutter-x);
}
.page-subnav .row::-webkit-scrollbar{display:none}
.page-subnav a{
  font-family:var(--font-head);font-size:.78rem;line-height:1.6;letter-spacing:.05em;text-transform:uppercase;
  color:var(--dim);text-decoration:none;white-space:nowrap;
  padding-bottom:.15rem;border-bottom:2px solid transparent;transition:color .15s,border-color .15s;
}
.page-subnav a:hover{color:var(--ink)}
.page-subnav a.is-active,
.page-subnav a[aria-current="page"]:not(.page-subnav__label){color:var(--sky-cobalt);border-bottom-color:var(--sky-cobalt)}
.page-subnav a.page-subnav__label{
  color:var(--ink);font-weight:700;padding-right:1.5rem;border-right:1px solid var(--line);
}

/* ---------- Footer ---------- */
.site-footer{background:var(--sky-indigo);position:relative;margin:0;padding:0;color:var(--on-dark-dim)}
.site-footer::before{
  content:"";display:block;height:3px;width:100%;
  background:linear-gradient(90deg,var(--sky-indigo),var(--sky-cobalt),var(--sky-coral),var(--sky-amber));
}
.site-footer .wrap{max-width:var(--maxw);margin:0 auto;padding:0 var(--gutter-x)}
.site-footer p{margin:0;line-height:inherit}
.footer-inner{padding:clamp(3rem,7vw,5rem) 0 2rem}
.footer-top{display:flex;justify-content:space-between;gap:2.5rem;flex-wrap:wrap;padding-bottom:2.5rem;border-bottom:1px solid rgba(255,250,243,.18)}
.footer-brand{max-width:32ch;position:relative}
.footer-brand::before{
  content:"";position:absolute;left:-40px;top:-20px;width:220px;height:220px;
  background:radial-gradient(circle, var(--glow) 0%, transparent 70%);
  opacity:.35;pointer-events:none;z-index:0;
}
.site-footer .footer-logo{font-family:var(--font-head);font-weight:700;font-size:1.05rem;letter-spacing:-.01em;color:var(--paper);text-decoration:none;display:inline-block}
.footer-tagline{color:var(--on-dark-dim);font-size:.9375rem;margin-top:.85rem;line-height:1.6}
.footer-nav{display:flex;gap:clamp(2rem,5vw,4rem);flex-wrap:wrap}
.footer-col h4{
  font-family:var(--font-head);font-size:.72rem;line-height:1.6;letter-spacing:.08em;text-transform:uppercase;
  color:var(--on-dark-dim);margin:0 0 .9rem;font-weight:600;
}
.footer-col a,.footer-col p{display:block;color:var(--paper);text-decoration:none;font-size:.9375rem;margin-bottom:.6rem}
.footer-col a:hover{color:var(--sky-amber);text-decoration:underline}
.footer-col p{color:var(--on-dark-dim);margin-bottom:.25rem}
/* C2C nested under Invoice Intelligence (Platform v3: agent inside II) */
.footer-col a.footer-sublink{
  margin-top:-.2rem;padding-left:.85rem;border-left:1px solid rgba(255,250,243,.28);
  font-size:.875rem;color:var(--on-dark-dim);
}
.footer-col a.footer-sublink:hover{color:var(--sky-amber)}
.footer-legal{margin-top:2.5rem;color:var(--on-dark-dim);font-size:.8125rem;line-height:1.7}
.footer-legal strong{color:var(--paper);font-weight:600}
.footer-bottom{
  display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem;
  margin-top:2rem;padding-top:1.5rem;font-size:.8125rem;color:var(--on-dark-dim);
}
/* Legal row: on-dark-dim on indigo = 9.88:1 (AA needs 4.5:1) */
.footer-links{display:flex;align-items:center;flex-wrap:wrap;gap:.35rem 1.25rem}
.footer-links a,.footer-links button{
  color:var(--on-dark-dim);font:inherit;font-size:.8125rem;line-height:1.6;
  text-decoration:none;background:none;border:none;padding:0;cursor:pointer;
}
.footer-links a:hover,.footer-links button:hover{color:var(--sky-amber);text-decoration:underline}

/* ---------- Cookie consent banner ----------
   Moved verbatim from dawn-signal.css (29.09.2026); the /styles.css copy
   is deleted, so the banner looks the same on all 13 pages. Markup is
   injected by assets/consent.js, which pads <body> by the banner height.
   z-index 90 sits above the header (40), the sub-row (30) and the open
   mobile menu (inside the header). */
.consent{
  position:fixed;left:0;right:0;bottom:0;z-index:90;
  background:var(--paper);color:var(--ink);
  border-top:1px solid var(--line);
  box-shadow:0 -10px 30px -12px rgba(25,26,33,.22);
  font-family:var(--font-body);
}
.consent[hidden]{display:none}
.consent__inner{
  position:relative;max-width:var(--maxw);margin:0 auto;
  display:flex;align-items:center;gap:1rem 2rem;flex-wrap:wrap;
  padding:1rem 3.25rem 1rem clamp(1.25rem,4vw,2.75rem);
}
.consent__text{flex:1 1 30rem;min-width:0}
.consent__title{
  font-family:var(--font-head);font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;
  font-weight:600;color:var(--dim);margin:0 0 .25rem;
}
.consent__title:focus{outline:none}
.consent__title:focus-visible{outline:3px solid var(--ink);outline-offset:2px;box-shadow:none}
.consent__body,.consent__current{font-size:.9375rem;line-height:1.5;margin:0}
.consent__body a{color:var(--sky-cobalt);text-decoration:underline;text-underline-offset:3px;font-weight:500}
.consent__body a:hover{color:var(--ink)}
.consent__current{margin-top:.25rem;color:var(--dim)}
.consent__actions{display:flex;gap:.75rem;flex:0 0 auto}
.consent__btn{
  font-family:var(--font-body);font-weight:600;font-size:.92rem;
  min-width:7rem;min-height:44px;padding:.6rem 1.15rem;border-radius:999px;
  background:var(--ink);color:var(--paper);border:1px solid var(--ink);cursor:pointer;
  transition:background-color .15s,color .15s;
}
.consent__btn:hover{background:var(--sky-indigo)}
.consent__btn:focus-visible{outline:3px solid var(--sky-cobalt);outline-offset:2px;box-shadow:none}
.consent__close{
  position:absolute;top:.5rem;right:.5rem;
  width:44px;height:44px;display:grid;place-items:center;
  background:none;border:none;border-radius:999px;color:var(--dim);cursor:pointer;
}
.consent__close:hover{color:var(--ink);background:var(--line)}
.consent__close:focus-visible{outline:3px solid var(--sky-cobalt);outline-offset:0;box-shadow:none}
@media (prefers-reduced-motion:no-preference){
  .consent:not([hidden]){animation:consent-in .25s ease-out}
  @keyframes consent-in{from{transform:translateY(100%)}to{transform:none}}
}
@media (max-width:640px){
  .consent__inner{padding:.85rem 3rem .9rem 1.25rem;gap:.75rem}
  .consent__body,.consent__current{font-size:.875rem}
  .consent__actions{flex:1 1 100%}
  .consent__btn{flex:1 1 0;min-width:0}
}

/* ---------- Breakpoints ---------- */
@media (min-width:769px){.site-menu{display:none}}
@media (max-width:768px){
  .site-header .nav-links{display:none}
  .site-nav{gap:.75rem}
  .menu-toggle{display:inline-flex}
  .footer-top{flex-direction:column}
  .footer-nav{gap:2.5rem}
}
@media (max-width:376px){
  .footer-nav{flex-direction:column;gap:1.75rem}
  .footer-bottom{flex-direction:column;align-items:flex-start}
}
@media (prefers-reduced-motion:reduce){
  .menu-toggle__bar,.page-subnav a{transition:none}
}
