/* ============================================================
   AIGONIX BASE DESIGN SYSTEM — styles.css
   Shared tokens, resets, and utility classes.
   Product-specific accent colours go in each product's own styles.css.
   ============================================================ */

/* Self-hosted fonts (29.09.2026). Inter, JetBrains Mono, DM Serif Display, SIL Open Font License 1.1;
   licence files in assets/fonts/. Files from the Google Fonts css2 API,
   latin and latin-ext subsets; variable fonts carry the full weight range
   in one file. No request to Google Fonts servers. */
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/inter-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: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/inter-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('assets/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('assets/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;
}
/* latin-ext */
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/dm-serif-display-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: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/dm-serif-display-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: 'DM Serif Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/dm-serif-display-italic-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: 'DM Serif Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/dm-serif-display-italic-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;
}

/* ============================================================
   CSS CUSTOM PROPERTIES — AIGONIX BASE
   ============================================================ */

:root {

  /* -----------------------------------------------------------
     AIGONIX BASE COLOURS
     ----------------------------------------------------------- */
  --color-aigonix-black:   #191a21;
  --color-aigonix-white:   #fafafa;

  /* Neutral surface tones */
  --color-clay-grey:       #8C8880;
  --color-clay-light:      #ECEAE5;

  /* Text */
  --color-text-primary:    #191a21;
  --color-text-secondary:  #5A5850;
  --color-text-muted:      #8C8880;
  --color-text-on-dark:    #fafafa;
  --color-text-on-dark-muted: #A8A49E;

  /* Base surfaces */
  --color-base-dark:       var(--color-aigonix-black);
  --color-base-light:      var(--color-aigonix-white);

  /* Border / divider */
  --color-border:          #D8D4CE;
  --color-border-dark:     #2E2E2A;

  /* -----------------------------------------------------------
     NOTE: Product accent colours (Sage / Cobalt) are NOT defined
     here. They live in each product's own styles.css.
     ----------------------------------------------------------- */

  /* -----------------------------------------------------------
     TYPOGRAPHY
     ----------------------------------------------------------- */
  --font-heading: 'JetBrains Mono', monospace;
  --font-body:    'Inter', 'system-ui', '-apple-system', sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  /* Type scale — desktop */
  --text-h1:     4.5rem;
  --text-h2:     3rem;
  --text-h3:     2rem;
  --text-h4:     1.375rem;
  --text-body:   1.0625rem;
  --text-small:  0.875rem;
  --text-label:  0.75rem;

  /* Line heights */
  --leading-tight:   1.1;
  --leading-snug:    1.25;
  --leading-normal:  1.5;
  --leading-relaxed: 1.65;

  /* Letter spacing */
  --tracking-tight:  -0.02em;
  --tracking-normal:  0em;
  --tracking-wide:    0.06em;
  --tracking-wider:   0.12em;

  /* Font weights */
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  /* -----------------------------------------------------------
     SPACING SCALE (8px base unit)
     ----------------------------------------------------------- */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;
  --space-32:  8rem;
  --space-40:  10rem;

  /* Section vertical padding */
  --section-padding-y:    var(--space-32);
  --section-padding-y-sm: var(--space-20);

  /* -----------------------------------------------------------
     LAYOUT
     ----------------------------------------------------------- */
  --max-width:       1280px;
  --max-width-text:  720px;
  --gutter:          var(--space-8);
  --gutter-tablet:   var(--space-6);
  --gutter-mobile:   var(--space-4);

  --grid-cols: 12;
  --grid-gap:  var(--space-6);

  /* -----------------------------------------------------------
     COMPONENT TOKENS
     ----------------------------------------------------------- */

  /* Cards */
  --card-radius:   20px;
  --card-padding:  var(--space-8);
  --card-border:   1px solid var(--color-border);
  --card-shadow:   0 1px 4px rgba(0, 0, 0, 0.06);
  --card-bg:       #FFFFFF;

  /* Buttons — base (colours overridden per product) */
  --btn-radius:    100px;
  --btn-padding:   0.75rem 1.75rem;
  --btn-font-size: 0.8125rem;
  --btn-tracking:  0.04em;
  --btn-weight:    var(--weight-semibold);

  /* Navigation */
  --nav-height:    72px;
  --nav-font-size: var(--text-label);
  --nav-tracking:  var(--tracking-wide);
  --nav-weight:    var(--weight-medium);

  /* Transitions */
  --transition-base:   200ms ease;
  --transition-slow:   600ms ease;
  --transition-reveal: 800ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Border radius scale */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   20px;
  --radius-pill: 100px;
}

/* ============================================================
   RESPONSIVE TYPE SCALE
   ============================================================ */

@media (max-width: 1024px) {
  :root {
    --text-h1: 3.25rem;
    --text-h2: 2.25rem;
    --text-h3: 1.625rem;
  }
}

@media (max-width: 640px) {
  :root {
    --text-h1: 2.5rem;
    --text-h2: 1.875rem;
    --text-h3: 1.375rem;
    --text-h4: 1.125rem;
    --section-padding-y: var(--space-16);
  }
}

/* ============================================================
   RESET & BASE
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: var(--leading-relaxed);
  color: var(--color-text-primary);
  background-color: var(--color-base-light);
  min-width: 360px;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1 {
  font-family: var(--font-heading);
  font-size: var(--text-h1);
  font-weight: var(--weight-regular);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
}

h2 {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: var(--weight-regular);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
}

h3 {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: var(--weight-regular);
  line-height: var(--leading-snug);
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
}

h4 {
  font-family: var(--font-body);
  font-size: var(--text-h4);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-normal);
}

p {
  line-height: var(--leading-relaxed);
}

/* Label / overline */
.label {
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Mono — for data values and numbers */
.mono {
  font-family: var(--font-mono);
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ============================================================
   LAYOUT — CONTAINER
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (max-width: 1024px) {
  .container {
    padding-inline: var(--gutter-tablet);
  }
}

@media (max-width: 640px) {
  .container {
    padding-inline: var(--gutter-mobile);
  }
}

/* ============================================================
   LAYOUT — 12-COLUMN GRID
   ============================================================ */

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--grid-gap);
}

.col-12 { grid-column: span 12; }
.col-8  { grid-column: span 8; }
.col-7  { grid-column: span 7; }
.col-6  { grid-column: span 6; }
.col-5  { grid-column: span 5; }
.col-4  { grid-column: span 4; }
.col-3  { grid-column: span 3; }
.col-2  { grid-column: span 2; }

/* Mobile safety net: collapse the 12-col grid to a single column so wide
   content (charts, mono values, fixed-size cards) can never force horizontal
   scroll. min-width:0 lets grid children shrink below their content size. */
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .grid > [class*="col-"] { grid-column: 1 / -1; min-width: 0; }
}

/* ============================================================
   SECTION WRAPPERS
   ============================================================ */

.section {
  padding-block: var(--section-padding-y);
  background-color: var(--color-base-light);
}

.section--clay {
  background-color: var(--color-clay-light);
}

.section--dark {
  background-color: var(--color-base-dark);
  color: var(--color-text-on-dark);
}

.section--sm {
  padding-block: var(--section-padding-y-sm);
}

/* Section header */
.section__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-12);
}

.section__header--center {
  align-items: center;
  text-align: center;
  max-width: 800px;
  margin-inline: auto;
  margin-bottom: var(--space-12);
}

.section__header--left {
  /* max-width removed — child elements (intro paragraphs) carry their own width caps */
}

/* ============================================================
   BUTTONS — BASE (product stylesheets override --btn-accent-* vars)
   ============================================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--btn-padding);
  background-color: var(--btn-accent-bg, var(--color-aigonix-black));
  color: var(--btn-accent-text, var(--color-aigonix-white));
  font-family: var(--font-body);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-weight);
  letter-spacing: var(--btn-tracking);
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--btn-radius);
  border: none;
  cursor: pointer;
  min-height: 44px;
  transition: background-color var(--transition-base),
              color var(--transition-base),
              box-shadow var(--transition-base);
  white-space: nowrap;
}

.btn-primary:hover {
  background-color: var(--btn-accent-hover, #000000);
  color: var(--btn-accent-text, var(--color-aigonix-white));
}

.btn-primary:focus-visible {
  outline: 2px solid var(--btn-accent-bg, var(--color-aigonix-black));
  outline-offset: 3px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--btn-padding);
  background-color: transparent;
  color: var(--btn-accent-hover, var(--color-aigonix-black));
  font-family: var(--font-body);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-weight);
  letter-spacing: var(--btn-tracking);
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--btn-radius);
  border: 1px solid var(--btn-accent-hover, var(--color-aigonix-black));
  cursor: pointer;
  min-height: 44px;
  transition: background-color var(--transition-base),
              color var(--transition-base),
              border-color var(--transition-base);
  white-space: nowrap;
}

.btn-secondary:hover {
  background-color: var(--btn-accent-hover, var(--color-aigonix-black));
  color: var(--color-aigonix-white);
}

.btn-secondary:focus-visible {
  outline: 2px solid var(--btn-accent-bg, var(--color-aigonix-black));
  outline-offset: 3px;
}

/* Secondary on dark backgrounds */
.section--dark .btn-secondary {
  color: var(--color-base-light);
  border-color: var(--color-base-light);
}

.section--dark .btn-secondary:hover {
  background-color: var(--color-base-light);
  color: var(--color-base-dark);
}

/* ============================================================
   CARDS
   ============================================================ */

.card {
  background-color: var(--card-bg);
  border: var(--card-border);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.section--clay .card {
  background-color: var(--color-base-light);
}

.card__icon {
  width: 32px;
  height: 32px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.card__title {
  font-family: var(--font-body);
  font-size: var(--text-h4);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
}

.card__body {
  font-size: var(--text-small);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  flex-grow: 1;
}

/* ============================================================
   ANIMATION SYSTEM
   ============================================================ */

.animate-fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-reveal),
              transform var(--transition-reveal);
}

.animate-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-fade-in {
  opacity: 0;
  transition: opacity 800ms ease;
}

.animate-fade-in.is-visible {
  opacity: 1;
}

.animate-scale-in {
  opacity: 0;
  transform: scale(0.95) translateY(12px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-scale-in.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Reduced motion override — mandatory */
@media (prefers-reduced-motion: reduce) {
  .animate-fade-up,
  .animate-fade-in,
  .animate-scale-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Navigation and footer moved to /assets/site-chrome.css (29.09.2026). */

/* ============================================================
   CROSS-SELL STRIP
   ============================================================ */

.cross-sell {
  padding-block: var(--space-12);
  border-top: 1px solid var(--color-border);
}

.cross-sell--ii {
  background: var(--color-cobalt-mist, #E8EEF8);
  border-top: none;
}

.cross-sell--c2c {
  background: var(--color-sage-mist, #EEF2EE);
  border-top: none;
}

.cross-sell__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.cross-sell__text {
  max-width: 600px;
}

.cross-sell__wordmark {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-3);
}

.cross-sell__wordmark--c2c {
  color: #5C7A64;
}

.cross-sell__wordmark--ii {
  color: #2A5BBF;
}

.cross-sell__heading {
  font-family: var(--font-heading);
  font-size: var(--text-h4);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-3);
}

.cross-sell__body {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin: 0;
}

.cross-sell__cta {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full, 9999px);
  border: 1.5px solid currentColor;
  transition: background var(--transition-base), color var(--transition-base), opacity var(--transition-base);
}

/* Product accent colours for CTA button */
.cross-sell--c2c .cross-sell__cta {
  color: #5C7A64;
}

.cross-sell--c2c .cross-sell__cta:hover {
  background: #5C7A64;
  color: #fff;
}

.cross-sell--ii .cross-sell__cta {
  color: #2A5BBF;
}

.cross-sell--ii .cross-sell__cta:hover {
  background: #2A5BBF;
  color: #fff;
}

@media (max-width: 768px) {
  .cross-sell__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-5);
  }
}

/* Cookie consent banner and footer legal links moved to
   /assets/site-chrome.css (29.09.2026). */
