@font-face {
  font-family: PrimeIcons;
  src: url('./media/primeicons.woff2') format('woff2');
  font-display: block;
}

:root {
  font-family:
    Manrope,
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #17241e;
  background: #fff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --text: #17241e;
  --muted: #53625a;
  --border: #e1e8e3;
  --green: #08774b;
  --wash: #f1f7f3;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
figure,
h1,
h2,
h3,
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-inline-size: 100%;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}
.wrap {
  width: min(calc(100% - 80px), 1120px);
  margin-inline: auto;
}

.site-header {
  border-block-end: 1px solid var(--border);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: clamp(12px, 1.8vw, 25px);
  align-items: center;
  min-block-size: 66px;
}
.wordmark {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.wordmark img {
  object-fit: contain;
}
.site-nav,
.language-switch,
.header-actions {
  display: flex;
  align-items: center;
}
.site-nav {
  justify-content: center;
  gap: clamp(15px, 2.2vw, 27px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 550;
  white-space: nowrap;
}
.site-nav a:hover {
  color: var(--green);
}
.language-switch {
  gap: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
}
.language-switch a {
  display: grid;
  min-inline-size: 32px;
  min-block-size: 34px;
  place-items: center;
}
.language-switch a:hover,
.language-switch a[aria-current='page'] {
  color: var(--green);
}
.language-switch a[aria-current='page'] {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.header-actions {
  justify-content: flex-end;
  gap: 8px;
}

.hero {
  padding-block-start: clamp(66px, 7.4vw, 106px);
  text-align: center;
}
h1,
h2 {
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.056em;
}
h1 {
  font-size: clamp(40px, 6.05vw, 80px);
  line-height: 1.02;
  text-wrap: balance;
}
.hero-description {
  max-inline-size: 37ch;
  margin: 18px auto 26px;
  color: var(--muted);
  font-size: clamp(17px, 1.65vw, 21px);
  line-height: 1.54;
  text-wrap: balance;
}
.hero-product {
  margin-block-start: clamp(36px, 4.15vw, 60px);
}
.product-frame {
  padding: clamp(12px, 2.8vw, 38px);
  border: 1px solid #dbe9df;
  border-radius: 19px;
  background: #eaf4ed;
}
.product-frame img {
  width: 100%;
  height: auto;
  border: 1px solid #d7e0d9;
  border-radius: 9px;
  box-shadow: 0 12px 28px #173e2820;
}
figcaption {
  margin-block-start: 11px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.modules {
  padding-block: clamp(64px, 7.9vw, 112px);
}
h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.04;
  text-wrap: balance;
}
.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-block-start: 32px;
  border-block: 1px solid var(--border);
}
.module {
  min-width: 0;
  padding: 27px 23px 29px;
}
.module:first-child {
  padding-inline-start: 0;
}
.module + .module {
  border-inline-start: 1px solid var(--border);
}
.module-icon,
.button-arrow {
  display: inline-block;
  font-family: PrimeIcons;
  font-weight: normal;
  line-height: 1;
}
.module-icon {
  color: var(--green);
  font-size: 20px;
}
.module-icon[data-icon='inventory']::before {
  content: '\e9d9';
}
.module-icon[data-icon='manufacturing']::before {
  content: '\e94a';
}
.module-icon[data-icon='catalog']::before {
  content: '\e95d';
}
.module-icon[data-icon='reports']::before {
  content: '\e958';
}
.button-arrow::before {
  content: '\e91b';
}
.module h3 {
  margin: 16px 0 8px;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
.module p,
.feature-intro > p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.module-feature {
  padding-block-end: clamp(64px, 7.9vw, 112px);
}
.feature-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.feature-gallery .feature-product {
  display: flex;
  flex-direction: column;
}
.feature-gallery .product-frame {
  display: grid;
  flex: 1;
  align-items: center;
  padding: clamp(10px, 1.35vw, 18px);
}
.feature-product figcaption {
  text-align: center;
}

.feature-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: end;
  gap: clamp(18px, 5vw, 100px);
  margin-block-end: 30px;
}
.feature-intro h2 {
  max-inline-size: 15ch;
}
.section-label {
  margin-block-end: 12px;
  color: var(--green);
  font-size: 14px;
  font-weight: 650;
}
.feature-intro > p {
  max-inline-size: 39ch;
  font-size: 17px;
}
.feature-link {
  display: block;
  width: fit-content;
  margin-block-start: 6px;
  color: var(--green);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.module h3 a,
.feature-product figcaption a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.closing {
  padding-block: clamp(56px, 7.5vw, 104px);
  text-align: center;
}
.closing h2 {
  margin-block-end: 23px;
}
.site-footer {
  border-block-start: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-block-size: 72px;
}
.footer-inner .wordmark {
  font-size: 17px;
}
.footer-inner:has(.footer-reports) {
  flex-wrap: wrap;
  padding-block: 16px;
}
.footer-reports {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.footer-inner p {
  color: var(--muted);
  font-size: 13px;
  text-align: end;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 20px;
  cursor: pointer;
}
.button-small {
  padding: 4px 10px;
  font-size: 14px;
}
.button-primary {
  background: #020617;
  color: white;
}
.button-primary:hover {
  background: #1e293b;
}
.button-quiet:hover,
.button-outline:hover {
  background: var(--wash);
}
.button-outline {
  border-color: #dbe3eb;
  color: #475569;
}
.analytics-consent {
  position: fixed;
  z-index: 5;
  inset-inline: 12px;
  inset-block-end: max(12px, env(safe-area-inset-bottom));
  max-inline-size: 760px;
  margin-inline: auto;
  padding: 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 28px #0f221c20;
}
.analytics-consent[hidden] {
  display: none;
}
.analytics-consent > div:first-child {
  flex: 1 1 290px;
}
.analytics-consent h2 {
  font-size: 16px;
}
.analytics-consent p {
  margin-block-start: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.analytics-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.analytics-settings {
  padding: 8px 12px 16px;
  text-align: center;
}
.form-dialog {
  width: min(calc(100% - 28px), 440px);
  max-height: calc(100% - 28px);
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: #334155;
  box-shadow: 0 16px 36px #0f221c2e;
}
.form-dialog::backdrop {
  background: #0006;
}
html:has(.form-dialog[open]) {
  overflow: hidden;
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-block-end: 18px;
}
.dialog-header h2 {
  color: inherit;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: initial;
}
.dialog-close {
  width: 32px;
  height: 32px;
  padding: 0;
  flex-shrink: 0;
  color: #64748b;
  font-size: 22px;
}
.dialog-content:not([hidden]) {
  display: grid;
  gap: 16px;
}
.dialog-content p {
  color: var(--muted);
  line-height: 1.5;
}
.dialog-content .dialog-error {
  color: #a12626;
}
.dialog-content .button {
  justify-self: start;
}
.dialog-field {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 550;
}
.dialog-field input {
  width: 100%;
  min-width: 0;
  padding: 6px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  line-height: 20px;
}
@media (pointer: coarse) {
  .feature-link {
    display: flex;
    min-block-size: 44px;
    align-items: center;
  }
  .button,
  .language-switch a,
  .dialog-field input {
    min-height: 44px;
  }
  .button,
  .language-switch a {
    min-width: 44px;
  }
}

@media (max-width: 860px) {
  .wrap {
    width: calc(100% - 52px);
  }
  .module {
    padding-inline: 16px;
  }
  .header-inner {
    grid-template-columns: 1fr auto auto;
  }
  .site-nav {
    display: none;
  }
}
@media (max-width: 730px) {
  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .module:nth-child(3) {
    padding-inline-start: 0;
    border-inline-start: 0;
  }
  .module:nth-child(n + 3) {
    border-block-start: 1px solid var(--border);
  }
  .feature-intro {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .header-inner {
    gap: 12px;
    min-block-size: 62px;
  }
  .wordmark {
    font-size: 19px;
  }
  .hero {
    padding-block-start: 58px;
  }
  .hero-product,
  .feature-product {
    max-inline-size: 430px;
    margin-inline: auto;
  }
  .product-frame {
    border-radius: 13px;
  }
  .product-frame img {
    border-radius: 7px;
  }
  .module-grid {
    margin-block-start: 23px;
  }
  .module {
    padding-block: 19px 21px;
  }
  .module h3 {
    margin-block-start: 11px;
  }
  .module p {
    font-size: 14px;
  }
  .feature-gallery {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
@media (max-width: 440px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    row-gap: 4px;
    padding-block: 8px;
  }
  .header-actions {
    grid-column: 1 / -1;
  }
}

.reports-header {
  display: grid;
  min-block-size: 4.125rem;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: clamp(0.65rem, 3vw, 2rem);
}
.reports-navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem clamp(0.8rem, 2.4vw, 1.65rem);
  font-size: 0.9375rem;
  font-weight: 600;
}
.reports-navigation a {
  padding-block: 0.25rem;
  text-decoration: none;
}
.reports-navigation a:hover,
.reports-navigation a[aria-current='page'] {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
@media (max-width: 48rem) {
  .reports-header {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 0.3rem;
    padding-block: 0.65rem;
  }
  .reports-navigation {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: start;
    column-gap: 0.6rem;
    font-size: 0.875rem;
  }
}
@media (max-width: 22rem) {
  .reports-navigation {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    column-gap: 1.2rem;
  }
}
