/* ==========================================================================
   Creavision Technology - site stylesheet

   Hand-written replacement for the ~715 KB of builder-generated CSS.

   No @import and no inline styles anywhere: the Content-Security-Policy in
   .htaccess is `style-src 'self'` with no 'unsafe-inline' escape hatch.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts - self-hosted Montserrat (SIL OFL 1.1, see THIRD-PARTY.md)
   One variable file per subset covers weights 300-600.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/montserrat-latin-ext.woff2?v=54d9a78b7f') 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;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/montserrat-latin.woff2?v=06b16db7a9') 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;
}

/* --------------------------------------------------------------------------
   2. Design tokens

   The palette is built around the logo: a deep green mark with light green
   nodes. Everything neutral carries a slight green cast so greys sit with the
   brand colour instead of fighting it.
   -------------------------------------------------------------------------- */
:root {
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, 'Helvetica Neue', Arial, sans-serif;

  --c-ink: #14201b;
  --c-ink-soft: #47574f;
  --c-ink-muted: #616e68;

  --c-accent: #1a322a;
  --c-accent-600: #244a3c;
  --c-accent-700: #0f2019;
  --c-mint: #9ed5ab;
  --c-mint-soft: #e4f1e8;

  --c-surface: #ffffff;
  --c-surface-alt: #f4f7f4;
  --c-border: #e1e7e2;
  --c-border-soft: #eef2ef;

  --c-focus: #1a322a;
  --c-error: #b3261e;
  --c-error-bg: #fdecea;

  /* Type scale */
  --fs-h1: clamp(2.25rem, 1.35rem + 2.6vw, 3.5rem);
  --fs-h2: clamp(1.75rem, 1.15rem + 1.9vw, 2.5rem);
  --fs-h3: clamp(1.5rem, 1.1rem + 1.2vw, 2rem);
  --fs-h4: clamp(1.25rem, 1.05rem + 0.7vw, 1.625rem);
  --fs-h5: 1.375rem;
  --fs-h6: 1.125rem;
  --fs-body-lg: 1.125rem;
  --fs-body: 1rem;
  --fs-body-sm: 0.875rem;
  --fs-eyebrow: 0.75rem;

  --lh-heading: 1.14;
  --lh-body: 1.65;

  /* Spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;

  --container: 1180px;
  --measure: 62ch;

  --radius: 6px;
  --radius-lg: 14px;
  --radius-xl: 22px;

  --shadow-sm: 0 1px 2px rgba(20, 32, 27, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(20, 32, 27, 0.22);
  --shadow-lg: 0 30px 60px -22px rgba(20, 32, 27, 0.32);

  --header-h: 76px;
  --transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   3. Reset / base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--sp-4));
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--c-ink-soft);
  background: var(--c-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--sp-4);
  line-height: var(--lh-heading);
  color: var(--c-ink);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); font-weight: 500; letter-spacing: -0.025em; }
h2 { font-size: var(--fs-h2); font-weight: 500; letter-spacing: -0.02em; }
h3 { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -0.015em; }
h4 { font-size: var(--fs-h4); font-weight: 500; letter-spacing: -0.01em; }
h5 { font-size: var(--fs-h5); font-weight: 500; }
h6 { font-size: var(--fs-h6); font-weight: 500; }

p {
  margin: 0 0 var(--sp-4);
  max-width: var(--measure);
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--c-accent); }

ul, ol {
  margin: 0 0 var(--sp-4);
  padding-left: 1.15em;
  max-width: var(--measure);
}

li { margin-bottom: var(--sp-3); }

li::marker { color: var(--c-accent); }

hr {
  border: 0;
  border-top: 1px solid var(--c-border);
  margin: var(--sp-7) 0;
}

:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 3px;
  border-radius: 3px;
}

.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;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--sp-4);
  z-index: 200;
  padding: var(--sp-3) var(--sp-5);
  background: var(--c-accent);
  color: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top var(--transition);
}

.skip-link:focus { top: 0; color: #fff; }

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

.section { padding-block: var(--sp-9); }
.section--tight { padding-block: var(--sp-8); }
.section--alt { background: var(--c-surface-alt); }

.section--dark {
  position: relative;
  background: linear-gradient(135deg, var(--c-accent-700) 0%, var(--c-accent) 55%, var(--c-accent-600) 100%);
  color: rgba(255, 255, 255, 0.88);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: #fff; }

/*
 * The heading gets the full width so it can stay on one line where it fits;
 * only the supporting paragraph is held to a comfortable reading measure.
 * Constraining both was forcing headings to wrap with the page half empty.
 */
.section__head {
  max-width: 68rem;
  margin-bottom: var(--sp-7);
}

.section__head .lead,
.section__head p { max-width: 46rem; }

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__head--center p { margin-inline: auto; }

.section__head > :last-child { margin-bottom: 0; }

/* Inside a two-column split the text column is roughly half the page, so the
   full-size h2 would wrap three or four times. Step it down a level. */
.split h2,
.hero__copy h2 { font-size: var(--fs-h3); }

/*
 * Prose sections (running text and bullet lists) are one column. Narrow the
 * container to a comfortable reading measure and let it centre itself, so the
 * leftover space sits evenly either side instead of all on the right.
 */
.section--prose > .container { max-width: 48rem; }

.section--prose p,
.section--prose ul,
.section--prose ol,
.section--prose .section__head,
.section--prose .section__head .lead { max-width: none; }

/* Eyebrow: small caps label with a short rule, used to title sections. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.section--dark .eyebrow,
.hero--feature .eyebrow { color: var(--c-mint); }

.lead {
  font-size: var(--fs-body-lg);
  line-height: 1.6;
  color: var(--c-ink-soft);
}

.section--dark .lead,
.hero--feature .lead { color: rgba(255, 255, 255, 0.82); }

.grid { display: grid; gap: var(--sp-6); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(var(--sp-7), 5vw, var(--sp-10));
  align-items: center;
}

.split > div > :last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-6);
  min-height: 52px;
  font-family: inherit;
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition),
    border-color var(--transition), transform var(--transition),
    box-shadow var(--transition);
}

.btn--primary {
  background: var(--c-accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--c-accent-600);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-border);
}

.btn--secondary:hover {
  background: var(--c-ink);
  color: #fff;
  border-color: var(--c-ink);
  transform: translateY(-2px);
}

/* On dark grounds the roles invert: solid button becomes light. */
.section--dark .btn--primary,
.hero--feature .btn--primary {
  background: #fff;
  color: var(--c-accent);
}

.section--dark .btn--primary:hover,
.hero--feature .btn--primary:hover {
  background: var(--c-mint);
  color: var(--c-accent-700);
}

.section--dark .btn--secondary,
.hero--feature .btn--secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.section--dark .btn--secondary:hover,
.hero--feature .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-top: var(--sp-7);
}

.btn-row--center { justify-content: center; }

/* --------------------------------------------------------------------------
   6. Header / navigation
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-border-soft);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: var(--header-h);
}

.header__brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--c-ink);
  flex-shrink: 0;
}

.header__logo { width: 38px; height: 38px; }

.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  margin: 0;
  padding: 0;
  max-width: none;
  list-style: none;
}

.nav__list > li { margin: 0; position: relative; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-body-sm);
  font-weight: 500;
  color: var(--c-ink);
  border-radius: var(--radius);
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background-color var(--transition), color var(--transition);
}

.nav__link:hover,
.nav__link[aria-expanded='true'] {
  background: var(--c-mint-soft);
  color: var(--c-accent);
}

.nav__link[aria-current='page'] {
  color: var(--c-accent);
  background: var(--c-mint-soft);
}

.nav__caret {
  width: 10px;
  height: 10px;
  opacity: 0.6;
  transition: transform var(--transition);
}

.nav__link[aria-expanded='true'] .nav__caret { transform: rotate(180deg); }

/*
 * Submenus. The parent is a link to the section index, so opening is purely
 * presentational: :hover for pointers, :focus-within for keyboards. No JS,
 * and the menu still works if scripting fails.
 */
.nav__panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 290px;
  margin: 0;
  padding: var(--sp-2);
  max-width: none;
  list-style: none;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* The language panel opens on hover or by its button (.is-open, set by
   site.js), not on focus: focus stayed on the button after a click or Escape,
   so the panel could not be closed and aria-expanded said "false" while it
   showed (SITE-9). */
.nav__item--menu:hover > .nav__panel,
.nav__item--menu:focus-within > .nav__panel,
.langswitch:hover > .nav__panel,
.langswitch.is-open > .nav__panel {
  display: block;
}

/* Invisible bridge across the 8px gap, so the menu does not close while the
   pointer travels from the parent link down to the panel. */
.nav__panel::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.nav__panel > li { margin: 0; }

/* Keep the parent looking active while its submenu is open. */
.nav__item--menu:hover > .nav__link,
.nav__item--menu:focus-within > .nav__link {
  background: var(--c-mint-soft);
  color: var(--c-accent);
}

.nav__item--menu:hover > .nav__link .nav__caret,
.nav__item--menu:focus-within > .nav__link .nav__caret {
  transform: rotate(180deg);
}

.nav__panel a {
  display: block;
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-body-sm);
  font-weight: 400;
  border-radius: var(--radius);
  color: var(--c-ink-soft);
  white-space: nowrap;
}

.nav__panel a:hover,
.nav__panel a[aria-current='page'] {
  background: var(--c-mint-soft);
  color: var(--c-accent);
}

.langswitch { position: relative; }

.langswitch__flag {
  width: 20px;
  height: 15px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(20, 32, 27, 0.12);
}

.langswitch__panel {
  right: 0;
  left: auto;
  min-width: 200px;
}

.langswitch__panel a {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.header__burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  background: none;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  cursor: pointer;
}

.header__burger span {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-ink);
}

.header__burger span::before,
.header__burger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-ink);
}

.header__burger span::before { top: -6px; }
.header__burger span::after { top: 6px; }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: var(--sp-10);
  background: var(--c-surface-alt);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  gap: clamp(var(--sp-7), 5vw, var(--sp-9));
  align-items: center;
}

.hero__copy > :last-child { margin-bottom: 0; }
.hero__title { margin-bottom: var(--sp-5); }

.hero__media img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

/*
 * Simple hero: no image, so centre the copy. Left-aligning a short block on a
 * wide page leaves the whole right-hand side conspicuously empty.
 */
.hero--simple {
  padding-block: var(--sp-9);
  text-align: center;
}

.hero--simple .hero__inner {
  grid-template-columns: minmax(0, 1fr);
  max-width: 52rem;
  margin-inline: auto;
}

.hero--simple p { margin-inline: auto; }
.hero--simple .eyebrow { justify-content: center; }
.hero--simple .btn-row { justify-content: center; }

/*
 * Stacked hero: the headline and intro sit above the photograph and run the
 * full width of the page, rather than being squeezed into a column beside it.
 * The image then goes full-bleed underneath, outside the container.
 */
.hero--stacked {
  padding-block: var(--sp-9) 0;
  background: var(--c-surface-alt);
  text-align: center;
}

.hero--stacked .hero__inner {
  display: block;
}

.hero--stacked .hero__copy {
  max-width: 68rem;
  margin-inline: auto;
}

.hero--stacked .hero__title {
  margin-bottom: var(--sp-5);
}

.hero--stacked p {
  max-width: 46rem;
  margin-inline: auto;
}

.hero--stacked .eyebrow { justify-content: center; }
.hero--stacked .btn-row { justify-content: center; margin-bottom: var(--sp-8); }

.hero__wide img {
  width: 100%;
  height: clamp(240px, 34vw, 480px);
  object-fit: cover;
}

/*
 * Feature hero: full-bleed photograph with the copy laid over it. The image
 * is a real <img> in .hero__bg rather than a CSS background, because the
 * source comes from the content JSON and the CSP forbids inline styles.
 */
.hero--feature {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(76vh, 680px);
  padding-block: var(--sp-10);
  background: var(--c-accent-700);
  color: rgba(255, 255, 255, 0.88);
  overflow: hidden;
}

/*
 * Stacking order matters here. A negative z-index would put the image behind
 * the section's own background colour, which is opaque - so the photo would
 * never be visible. Everything stays positive and layers upward:
 *   section background (fallback colour) -> photo -> gradient -> copy.
 */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Two stacked gradients: one across for text contrast, one up from the
   bottom so the section reads as grounded rather than floating. */
.hero--feature::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  /*
   * Weighted heavily over the left half, where the copy sits. Some hero
   * photographs are very light (the concept sketch on the services page is
   * near-white), and white text over those fails contrast unless the scrim
   * carries it on its own. Tuned so the copy stays legible whatever the
   * image behind it.
   */
  background:
    linear-gradient(100deg,
      rgba(15, 32, 25, 0.96) 0%,
      rgba(15, 32, 25, 0.92) 40%,
      rgba(15, 32, 25, 0.68) 68%,
      rgba(15, 32, 25, 0.46) 100%),
    linear-gradient(to top, rgba(15, 32, 25, 0.6), transparent 62%);
}

.hero--feature .hero__inner {
  position: relative;
  z-index: 2;
  grid-template-columns: minmax(0, 1fr);
}

.hero--feature .hero__copy { max-width: 44rem; }
.hero--feature .hero__title { color: #fff; }

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--transition), transform var(--transition),
    border-color var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--c-accent);
  transform: translateY(-4px);
}

.card__media {
  overflow: hidden;
  background: var(--c-surface-alt);
}

.card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 450ms cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card__media img { transform: scale(1.04); }

.card__title {
  margin: var(--sp-6) var(--sp-6) var(--sp-3);
  font-size: var(--fs-h6);
  font-weight: 600;
}

.card__text {
  margin: 0 var(--sp-6) var(--sp-5);
  max-width: none;
  font-size: var(--fs-body-sm);
  line-height: 1.65;
  color: var(--c-ink-soft);
}

.card__link {
  margin: auto var(--sp-6) var(--sp-6);
  font-size: var(--fs-body-sm);
  font-weight: 600;
  color: var(--c-accent);
}

.card__link::after {
  content: '\2192';
  display: inline-block;
  margin-left: 0.45em;
  transition: transform var(--transition);
}

.card:hover .card__link::after { transform: translateX(4px); }

/* Complete solutions (Products page): one wide card per system, on a mint
   band, so the drawn illustrations read apart from the hardware photos. */
.section--solutions { background: var(--c-mint-soft); }

.section--solutions .card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto auto auto 1fr;
  column-gap: var(--sp-4);
  border-color: var(--c-mint);
}

.section--solutions .card__media {
  grid-row: 1 / -1;
  background: #fbf8f1;
  border-right: 1px solid var(--c-mint);
}

.section--solutions .card__media img {
  height: 100%;
  aspect-ratio: 3 / 2;
}

.section--solutions .card__title,
.section--solutions .card__text,
.section--solutions .card__link { grid-column: 2; }

.section--solutions .card__title { grid-row: 2; margin-top: 0; font-size: var(--fs-h5); }
.section--solutions .card__text { grid-row: 3; font-size: var(--fs-body); }
.section--solutions .card__link { grid-row: 4; margin-top: 0; }

@media (max-width: 860px) {
  .section--solutions .card { display: flex; }
  .section--solutions .card__media { border-right: 0; border-bottom: 1px solid var(--c-mint); }
  .section--solutions .card__title { margin-top: var(--sp-6); }
}

/* Feature block: same grid, no chrome. */
.feature {
  padding-top: var(--sp-5);
  border-top: 2px solid var(--c-accent);
}

.feature__title {
  font-size: var(--fs-h6);
  font-weight: 600;
  margin-bottom: var(--sp-3);
}

.feature__text {
  max-width: none;
  color: var(--c-ink-soft);
  margin-bottom: 0;
}

.section--dark .feature { border-top-color: var(--c-mint); }
.section--dark .feature__text { color: rgba(255, 255, 255, 0.8); }

/* Tag pills, used for application lists. */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin: 0;
  padding: 0;
  max-width: none;
  list-style: none;
}

.tags > li {
  margin: 0;
  padding: var(--sp-3) var(--sp-5);
  font-size: var(--fs-body-sm);
  font-weight: 500;
  color: var(--c-accent);
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 100px;
  transition: border-color var(--transition), transform var(--transition);
}

.tags > li:hover {
  border-color: var(--c-accent);
  transform: translateY(-2px);
}

.section--dark .tags > li {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* Image beside text in a .split section. */
.split__media img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

/*
 * Line-art illustrations sit on a white ground with no real edges. Given the
 * photo treatment they read as a stray white box, so drop the frame entirely.
 */
.media--plain img {
  border-radius: 0;
  box-shadow: none;
  mix-blend-mode: multiply;
}

/* --------------------------------------------------------------------------
   9. Forms
   -------------------------------------------------------------------------- */
.form {
  display: grid;
  gap: var(--sp-5);
  max-width: 40rem;
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-5);
}

.field { display: grid; gap: var(--sp-2); }

.field__label {
  font-size: var(--fs-body-sm);
  font-weight: 600;
  color: var(--c-ink);
}

.field__req { color: var(--c-error); }

.field__input,
.field__textarea {
  width: 100%;
  padding: var(--sp-4);
  min-height: 52px;
  font-family: inherit;
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--c-ink);
  background: #fff;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field__textarea { min-height: 160px; resize: vertical; }

.field__input:hover,
.field__textarea:hover { border-color: var(--c-ink-muted); }

.field__input:focus,
.field__textarea:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 4px var(--c-mint-soft);
  outline: none;
}

.field__input[aria-invalid='true'],
.field__textarea[aria-invalid='true'] { border-color: var(--c-error); }

.field__error {
  display: block;
  font-size: var(--fs-body-sm);
  color: var(--c-error);
}

.field__error:empty { display: none; }

.checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-3);
  align-items: start;
  font-size: var(--fs-body-sm);
  line-height: 1.55;
}

.checkbox input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--c-accent);
}

.checkbox a { text-decoration: underline; }

/*
 * Honeypot. Must stay in the DOM (bots read the DOM, not pixels) while being
 * invisible and unreachable for humans and screen readers.
 */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form__status {
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius);
  font-size: var(--fs-body-sm);
  border: 1px solid transparent;
  max-width: none;
}

.form__status:empty { display: none; }

.form__status--ok {
  background: var(--c-mint-soft);
  border-color: var(--c-accent);
  color: var(--c-accent);
}

.form__status--error {
  background: var(--c-error-bg);
  border-color: var(--c-error);
  color: var(--c-error);
}

/* --------------------------------------------------------------------------
   10. Contact details
   -------------------------------------------------------------------------- */
/*
 * Contact page: the form comes first at a comfortable width, with the company
 * details as a quiet strip underneath rather than a tall column beside it.
 */
.contact {
  display: grid;
  gap: var(--sp-8);
  justify-items: center;
}

.contact__form,
.contact__details {
  width: 100%;
  max-width: 42rem;
}

.contact__form .form { max-width: none; }

/* Centred so it lines up with the hero above. Without this the heading starts
   at the form's left edge while the hero centres on the page, and the whole
   section reads as misaligned. */
.contact__head {
  margin-bottom: var(--sp-7);
  text-align: center;
}

.contact__head h2 { margin-bottom: var(--sp-3); }
.contact__head p { margin-inline: auto; margin-bottom: 0; }

.contact__details {
  padding-top: var(--sp-6);
  border-top: 1px solid var(--c-border);
  text-align: center;
}

/* Deliberately a label, not a heading-sized title - this is supporting
   information, not a second section competing with the form. */
.contact__details-title {
  margin-bottom: var(--sp-5);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-ink-muted);
}

.contactlist {
  margin: 0;
  padding: 0;
  max-width: none;
  list-style: none;
}

.contactlist > li {
  margin: 0;
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--c-border-soft);
}

/* Two by two instead of stacked, so the block stays short and the four
   details (company, location, phone, email) never leave one on its own row. */
.contactlist--inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-5);
}

@media (max-width: 480px) {
  .contactlist--inline { grid-template-columns: minmax(0, 1fr); }
}

.contactlist--inline > li {
  padding: 0;
  border-bottom: 0;
  font-size: var(--fs-body-sm);
}

.contactlist__key {
  display: block;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ink-muted);
  margin-bottom: var(--sp-1);
}

.contactlist a {
  /* Tall enough to tap on a phone when two numbers sit one above the other. */
  display: inline-block;
  padding-block: var(--sp-1);
  color: var(--c-accent);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.footer {
  padding-block: var(--sp-9) var(--sp-6);
  background: var(--c-accent-700);
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--fs-body-sm);
}

.footer a { color: rgba(255, 255, 255, 0.72); }
.footer a:hover { color: var(--c-mint); }
.footer p { max-width: none; }
/* Phone and email: one line each, kept together like a single block. */
.footer__contact { margin-bottom: var(--sp-1); }

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: var(--sp-8) var(--sp-7);
  margin-bottom: var(--sp-8);
}

.footer__title {
  margin-bottom: var(--sp-5);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}

.footer__list {
  margin: 0;
  padding: 0;
  max-width: none;
  list-style: none;
}

.footer__list > li { margin-bottom: var(--sp-3); }

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
}

/* The mark is dark green, so on the dark footer it needs a light chip behind
   it or it disappears into the background. */
.footer__logo {
  width: 38px;
  height: 38px;
  padding: 3px;
  background: #fff;
  border-radius: 9px;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.55);
}

.footer__bottom p { margin: 0; }

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  margin: 0;
  padding: 0;
  max-width: none;
  list-style: none;
}

.footer__legal > li { margin: 0; }

/* --------------------------------------------------------------------------
   12. Prose (legal pages)
   -------------------------------------------------------------------------- */
.prose { max-width: var(--measure); }

.prose h2 {
  font-size: var(--fs-h4);
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-border);
}

.prose > h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }

.prose h3 {
  font-size: var(--fs-h6);
  margin-top: var(--sp-6);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--sp-5);
  font-size: var(--fs-body-sm);
}

.prose th,
.prose td {
  padding: var(--sp-3);
  border: 1px solid var(--c-border);
  text-align: left;
  vertical-align: top;
}

.prose th { background: var(--c-surface-alt); font-weight: 600; }

.table-wrap { overflow-x: auto; }

/* --------------------------------------------------------------------------
   13. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .section { padding-block: var(--sp-8); }
  .hero { padding-block: var(--sp-8); }
  /* Both call-to-action buttons should land above the fold on a phone, and
     the headline wraps to five or six lines at this width. */
  .hero--feature { min-height: 0; padding-block: var(--sp-7); }

  .hero__inner,
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-7);
  }

  /* Image above the copy on narrow screens, whatever the desktop order. */
  .hero__media,
  .split__media { order: -1; }

  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: minmax(0, 1fr); }

  .form__row { grid-template-columns: minmax(0, 1fr); }

  .header__burger { display: inline-flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    padding: var(--sp-4) var(--sp-6) var(--sp-7);
    background: #fff;
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .nav[hidden] { display: none; }
  .nav__list { display: block; }

  .nav__link {
    width: 100%;
    justify-content: space-between;
    padding: var(--sp-4) var(--sp-2);
    font-size: var(--fs-body);
    border-bottom: 1px solid var(--c-border-soft);
    border-radius: 0;
  }

  .nav__link:hover,
  .nav__link[aria-expanded='true'],
  .nav__link[aria-current='page'] { background: none; }

  /*
   * There is no hover on a phone, so the submenus are simply always expanded
   * inside the drawer - which also saves a tap. The drawer has the room.
   */
  .nav__panel,
  .nav__item--menu > .nav__panel,
  .langswitch > .nav__panel {
    display: block;
    position: static;
    min-width: 0;
    margin: 0 0 var(--sp-2);
    padding: var(--sp-2) 0 var(--sp-2) var(--sp-4);
    border: 0;
    border-left: 2px solid var(--c-mint);
    border-radius: 0;
    box-shadow: none;
  }

  .nav__panel::before { content: none; }

  /* The submenu is already open here, so a "click to expand" chevron would
     only mislead. */
  .nav__caret { display: none; }

  .langswitch { margin-top: var(--sp-4); }
  .langswitch__panel { position: static; }

  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .container { padding-inline: var(--sp-5); }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
}

/* --------------------------------------------------------------------------
   14. Motion & print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .card:hover,
  .btn:hover,
  .tags > li:hover { transform: none; }

  .card:hover .card__media img { transform: none; }
}

@media print {
  .header,
  .footer,
  .skip-link,
  .btn-row { display: none; }

  body { color: #000; background: #fff; }
  .hero--feature { background: none; color: #000; min-height: 0; }
  .hero__bg { display: none; }

  a[href^='http']::after {
    content: ' (' attr(href) ')';
    font-size: 11px;
  }
}

/* Full-width figure beneath a section's text. Used where the artwork is too
   detailed to read at half-column width - the CreaNod dashboard screenshot,
   for instance, which is 3232px wide at source. */
.wide-media {
  margin-top: var(--sp-7);
}

.wide-media img {
  width: 100%;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* --------------------------------------------------------------------------
   Video presentation and questions (product landing pages)
   -------------------------------------------------------------------------- */
.video {
  margin: 0;
  max-width: 64rem;
}

.video__player {
  display: block;
  width: 100%;
  height: auto;
  background: var(--c-accent-700);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.transcript {
  max-width: var(--measure);
  margin-top: var(--sp-5);
  color: var(--c-ink-soft);
}

.transcript__toggle,
.faq__q {
  cursor: pointer;
  font-weight: 600;
  color: var(--c-ink);
}

.transcript[open] .transcript__toggle { margin-bottom: var(--sp-4); }

.faq {
  max-width: var(--measure);
  border-top: 1px solid var(--c-border);
}

.faq__item { border-bottom: 1px solid var(--c-border); }

.faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  padding-block: var(--sp-5);
  font-size: var(--fs-body-lg);
  list-style: none;
}

.faq__q::-webkit-details-marker { display: none; }

.faq__q::after {
  content: '+';
  flex: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--c-accent-600);
}

.faq__item[open] .faq__q::after { content: '\2212'; }

.faq__a { padding-bottom: var(--sp-5); color: var(--c-ink-soft); }
.faq__a p:last-child { margin-bottom: 0; }

.faq__q:focus-visible,
.transcript__toggle:focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: 4px;
  border-radius: 4px;
}


/* Hero with the presentation video: the video gets the wider column, so it is
   the first thing a visitor sees and plays. */
@media (min-width: 861px) {
  .hero__inner:has(.hero__media--video) {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

.hero__media--video .video { max-width: none; }
.hero__media--video .video__player { box-shadow: var(--shadow-lg); border-radius: var(--radius-xl); }
.hero__media--video .transcript { margin-top: var(--sp-4); }

/* Several short videos side by side (platform page): a title and one line
   over each player, its transcript under it. */
.videos { align-items: start; gap: var(--sp-7) var(--sp-6); }
.videos__title { font-size: var(--fs-h6); font-weight: 600; margin: 0 0 var(--sp-2); }
.videos__text { max-width: none; margin: 0 0 var(--sp-4); color: var(--c-ink-soft); }
.videos__item .video { max-width: none; }
.videos__item .transcript { margin-top: var(--sp-4); }

/* Keep the players of one row level when a title or its line wraps. */
@supports (grid-template-rows: subgrid) {
  .videos__item {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 4;
    row-gap: 0;
  }
}

/* Where the money is, under a feature (Agro Station savings). */
.feature__money {
  max-width: none;
  margin: var(--sp-4) 0 0;
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-mint-soft);
  border-radius: var(--radius-lg);
  color: var(--c-accent-600);
  font-size: 0.95em;
}
.feature__money strong { font-weight: 700; }
