/* ==========================================================================
   Optymus Industry — main.css
   Clean white & minimal. Optymus blue is an accent only.
   1 Tokens · 2 Fonts · 3 Base · 4 Layout · 5 Components · 6 Header
   7 Hero · 8 Sections · 9 Footer · 10 Motion
   ========================================================================== */

/* 1 · Design tokens ------------------------------------------------------- */
:root {
  /* Brand — taken from the official logo */
  --blue: #126bb5;          /* accent: primary button, links, small marks, focus */
  --blue-dark: #0d5797;     /* hover, blue text */
  --blue-tint: #e8f1fa;     /* very pale tint (selection) */
  --steel: #a9abae;         /* hairlines / secondary marks only — never text */
  --graphite: #4b4b4d;

  /* Text (all AA on white and on --bg-soft) */
  --ink: #16191d;           /* headings */
  --text: #3a4047;          /* body */
  --muted: #5b626a;         /* secondary text */

  /* Surfaces and lines */
  --bg: #ffffff;
  --bg-soft: #f4f6f8;       /* the one light-grey band */
  --placeholder: #eef1f4;   /* empty photo slot on white */
  --placeholder-soft: #e7ebef; /* empty photo slot on --bg-soft */
  --line: #e1e5e9;
  --line-soft-bg: #d8dde2;  /* hairline on --bg-soft */
  --line-strong: #c4c9cf;

  /* Type */
  --font: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --fs-body: 1.0625rem;                                   /* 17px */
  --fs-small: 0.9375rem;                                  /* 15px */
  --fs-label: 0.8125rem;                                  /* 13px */
  --fs-lead: clamp(1.125rem, 1rem + 0.35vw, 1.3125rem);   /* 18 → 21px */
  --fs-h1: clamp(2.5rem, 12vw, 3.5rem);
  --fs-h2: clamp(2rem, 1.3rem + 2vw, 3.25rem);            /* 32 → 52px */
  --fs-h3: 1.25rem;

  /* Layout */
  --container: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
  --gap: clamp(16px, 2vw, 32px);
  --section-y: clamp(56px, 4.2vw, 76px);
  --radius: 6px;
  --header-h: 64px;
  --header-h-compact: 64px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 560px) {
  :root { --fs-h1: clamp(3rem, 7.6vw, 5.25rem); }      /* one continuous size, up to 84px */
}

@media (min-width: 1001px) {
  :root {
    --header-h: 84px;
    --header-h-compact: 68px;
  }
}

/* 2 · Fonts (self-hosted, IBM Plex Sans variable 100–700, SIL OFL) ---------- */
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-latin-ext.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-latin.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
  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;
}

/* 3 · Base ------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h-compact) + 1px);
  scrollbar-gutter: stable;
}

html.menu-open { overflow: hidden; }

body {
  margin: 0;
  padding-top: var(--header-h);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover { color: var(--blue-dark); }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

main:focus { outline: none; }

::selection { background: var(--blue-tint); color: var(--ink); }

.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: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; color: #fff; }

.icon { flex: none; }

.nw { white-space: nowrap; }

/* 4 · Layout ---------------------------------------------------------------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section { padding-block: var(--section-y); }

.section--ruled { padding-top: 0; scroll-margin-top: 24px; }

.section--ruled > .container {
  padding-top: var(--section-y);
  border-top: 1px solid var(--line);
}

.section--soft { background: var(--bg-soft); }

/* 12-column grid used by the larger layouts */
@media (min-width: 1001px) {
  .grid-12 {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
  }
}

/* 5 · Components ------------------------------------------------------------ */

/* Small uppercase label with the one brand detail: a 45° rounded bar */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--graphite);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.09em;
  line-height: 1.3;
  text-transform: uppercase;
}

/* The official Optymus mark before each section label */
.eyebrow::before {
  content: "";
  flex: none;
  width: 24px;
  height: 24px;
  margin-block: -4px;
  background: url("../img/logo/official/mark.svg") center / contain no-repeat;
}

.section-title {
  max-width: 18em;
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

/* Buttons */
.btn {
  --btn-h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-h);
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: 600 1rem/1.2 var(--font);
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); color: #fff; }

.btn--outline { border-color: var(--line-strong); background: transparent; color: var(--ink); }
.btn--outline:hover { border-color: var(--blue); color: var(--blue-dark); }
.btn--outline .icon { color: var(--blue); }

.btn--sm { --btn-h: 44px; padding: 0 18px; font-size: 0.9375rem; }
.btn--lg { --btn-h: 54px; padding: 0 28px; font-size: 1.0625rem; }
.btn--block { display: flex; width: 100%; }

/* Quiet text link with an arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.link-arrow span {
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.32em;
  transition: text-decoration-color 0.18s var(--ease);
}

.link-arrow .icon { color: var(--blue); transition: transform 0.2s var(--ease); }
.link-arrow:hover { color: var(--blue-dark); }
.link-arrow:hover span { text-decoration-color: currentColor; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* Photo slots — a real photo, or a calm neutral placeholder */
.media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--placeholder);
  aspect-ratio: 4 / 3;
}

.media > img:not(.media__mark) {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--hero { aspect-ratio: 3 / 2; }

@media (min-width: 600px) { .media--hero { aspect-ratio: 16 / 9; } }
@media (min-width: 1001px) { .media--hero { aspect-ratio: 21 / 9; } }

.media--empty {
  display: grid;
  place-items: end start;
}

/* the official mark, small and faint in the lower-left corner — no text */
.media__mark {
  width: clamp(28px, 5%, 48px);
  height: auto;
  margin: 0 0 clamp(16px, 2.2%, 28px) clamp(16px, 2.2%, 28px);
  opacity: 0.42;
  user-select: none;
}

.section--soft .media--empty { background: var(--placeholder-soft); }

/* 6 · Header ---------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
  transition: height 0.25s var(--ease);
}

.site-header.is-compact .site-header__inner { height: var(--header-h-compact); }

.site-header__logo {
  display: block;
  flex: none;
  margin-right: auto;
  padding: 4px 0;
}

.site-header__logo img {
  width: auto;
  height: 40px;
  transition: height 0.25s var(--ease);
}

.site-nav { display: none; }

.site-nav__list {
  display: flex;
  gap: clamp(20px, 2.1vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  position: relative;
  display: block;
  padding: 10px 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  border-radius: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s var(--ease);
}

.site-nav__link:hover { color: var(--blue-dark); }
.site-nav__link:hover::after,
.site-nav__link[aria-current]::after { transform: scaleX(1); }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-header__phone {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.site-header__phone .icon { color: var(--blue); }
.site-header__phone:hover { color: var(--blue-dark); }

.site-header__cta { display: none; }

/* Menu button (phones and tablets) */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0 0 10px;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--ink);
  font: 600 0.9375rem/1 var(--font);
  cursor: pointer;
}

.menu-toggle:hover { color: var(--blue-dark); }

.menu-toggle__icon {
  position: relative;
  width: 22px;
  height: 14px;
}

.menu-toggle__icon span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.22s var(--ease), top 0.22s var(--ease);
}

.menu-toggle__icon span:first-child { top: 2px; }
.menu-toggle__icon span:last-child { top: 10px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:first-child { top: 6px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:last-child { top: 6px; transform: rotate(-45deg); }

.no-js .menu-toggle { display: none; }

@media (max-width: 1000px) {
  .no-js body { padding-top: 0; }
  .no-js .site-header { position: static; }
  .no-js .mobile-menu[hidden] { display: block; position: static; animation: none; }
  .no-js .mobile-menu__inner { min-height: 0; padding-block: 0 8px; }
  .no-js .mobile-menu__link { min-height: 48px; font-size: 1.125rem; }
  .no-js .mobile-menu__foot { display: none; }
}

.mobile-menu {
  position: fixed;
  inset: calc(var(--header-h) + 1px) 0 0 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
}

.mobile-menu[hidden] { display: none; }

.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding-block: 8px 32px;
}

.mobile-menu__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-menu__link {
  display: flex;
  align-items: center;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.mobile-menu__link:hover { color: var(--blue-dark); }

.mobile-menu__foot {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding-top: 40px;
}

.mobile-menu__foot .btn { margin-bottom: 12px; }

@media (min-width: 600px) {
  .mobile-menu__foot { justify-items: start; }
  .mobile-menu__foot .btn { width: auto; min-width: 240px; }
}

.mobile-menu__contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.mobile-menu__contact .icon { color: var(--blue); }

@media (min-width: 600px) {
  .site-header__cta { display: inline-flex; }
}

@media (min-width: 1001px) {
  .site-header__logo { margin-right: 0; }
  .site-header__logo img { height: 44px; }
  .site-header.is-compact .site-header__logo img { height: 38px; }
  .site-nav { display: block; margin-left: auto; }
  .site-header__actions { gap: 28px; }
  .menu-toggle,
  .mobile-menu { display: none; }
}

@media (min-width: 1280px) {
  .site-header__inner { gap: 40px; }
  .site-header__actions {
    padding-left: 40px;
    border-left: 1px solid var(--line);
  }
  .site-header__phone { display: inline-flex; }
}

/* 7 · Hero ------------------------------------------------------------------ */
.hero { padding-block: clamp(40px, 4vw, 72px) clamp(48px, 4.2vw, 76px); }

.hero__grid {
  display: grid;
  gap: 28px;
  margin-bottom: clamp(32px, 3.4vw, 56px);
}

.hero__head .eyebrow { margin-bottom: clamp(20px, 2vw, 28px); }

.hero__title {
  font-size: var(--fs-h1);
  line-height: 1.02;
  letter-spacing: -0.032em;
}

.hero__line { display: block; }

@media (min-width: 560px) {
  .hero__line { white-space: nowrap; }
}

.hero__lead {
  max-width: 34em;
  color: var(--text);
  font-size: var(--fs-lead);
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 32px;
}

/* Below 1600 the text sits under the headline; from 1600 it moves beside it, sharing its bottom edge */
@media (min-width: 1600px) {
  .hero__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: end;
  }
  .hero__actions { margin-top: 28px; }
  .hero__head { grid-column: 1 / span 8; }
  .hero__aside { grid-column: 9 / span 4; padding-bottom: 4px; }
}

/* 8 · Sections -------------------------------------------------------------- */

/* Section head: title left, short text right */
.section-head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(36px, 3.2vw, 52px);
}

.section-head__text { max-width: 36em; color: var(--muted); }

@media (min-width: 1001px) {
  .section-head {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: end;
  }
  .section-head__main { grid-column: 1 / span 7; }
  .section-head__text { grid-column: 8 / span 5; padding-bottom: 6px; }
}

@media (min-width: 1280px) {
  .section-head__text { grid-column: 9 / span 4; }
}

/* Solutions: six cards — 3 columns on computers, 2 on tablets, compact rows on phones */
.solutions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.solution__media { margin-bottom: 20px; }

/* Phones: compact rows — 4:3 thumbnail beside the name and line */
@media (max-width: 599px) {
  .solutions { row-gap: 24px; }
  .solution {
    display: grid;
    grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
    column-gap: 16px;
    align-items: start;
  }
  .solution__media { grid-row: 1 / span 2; margin: 0; }
  .solution__media .media__mark { width: 22px; margin: 0 0 10px 10px; }
  .solution__title { margin: 2px 0 4px; font-size: 1.0625rem; line-height: 1.25; }
  .solution__text { font-size: 0.9375rem; line-height: 1.5; }
}

.solution__title {
  margin-bottom: 8px;
  font-size: var(--fs-h3);
  letter-spacing: -0.01em;
}

.solution__text {
  max-width: 28em;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

@media (min-width: 600px) and (max-width: 1000px) {
  .solutions { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .solution__media { aspect-ratio: 3 / 2; }
}

@media (min-width: 1001px) {
  .solutions { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 56px; }
}

/* One quiet line listing smaller deliveries */
.also {
  max-width: 68em;
  margin-top: clamp(40px, 3.4vw, 56px);
  color: var(--muted);
  font-size: var(--fs-small);
}

.also__label { color: var(--graphite); font-weight: 600; }

/* End-to-end services */
.services {
  display: grid;
  gap: 20px;
  margin-top: clamp(48px, 3.8vw, 64px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.services__title {
  color: var(--ink);
  font-size: 1.0625rem;
  letter-spacing: 0;
}

.services__list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.services__list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.35;
}

.services__num {
  flex: none;
  min-width: 1.6em;
  color: var(--blue-dark);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.services__note { color: var(--muted); font-size: var(--fs-small); }

@media (min-width: 1100px) {
  .services__list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: var(--gap);
  }
  .services__list li {
    flex-direction: column;
    gap: 6px;
    padding: 0;
    border: 0;
  }
}

@media (min-width: 1600px) {
  .services {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    row-gap: 24px;
  }
  .services__title { grid-column: 1 / span 3; }
  .services__list,
  .services__note { grid-column: 4 / -1; }
}

/* Projects: key facts, then one row per country */
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--gap);
  margin: 0 0 clamp(40px, 3.4vw, 56px);
}

.facts > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 4px;
  padding: 20px 0 22px;
  border-top: 1px solid var(--line);
}

.facts dd {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.25rem, 1.6rem + 1.8vw, 3.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.facts dt { color: var(--muted); font-size: var(--fs-small); }

@media (min-width: 1001px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.refs {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.ref {
  display: grid;
  gap: 4px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.ref__country {
  font-size: var(--fs-h3);
  letter-spacing: -0.01em;
}

.ref__client { color: var(--muted); font-size: var(--fs-small); }

.ref__systems {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.ref__systems li {
  padding: 4px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
}

@media (min-width: 1001px) {
  .ref {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: center;
    padding: 18px 0;
  }
  .ref__country { grid-column: 1 / span 3; }
  .ref__client { grid-column: 4 / span 3; }
  .ref__systems { grid-column: 7 / -1; margin: 0; }
}

@media (min-width: 1280px) {
  .ref__client { grid-column: 4 / span 4; }
  .ref__systems { grid-column: 8 / -1; }
}

/* Sewing line: one block per system (ODS, Thread Detection) */
.solution__more { margin-top: 6px; font-size: 0.9375rem; }

.product {
  display: grid;
  gap: 36px var(--gap);
  scroll-margin-top: 24px;
}

.product + .product {
  margin-top: clamp(64px, 6vw, 104px);
  padding-top: clamp(48px, 4.4vw, 80px);
  border-top: 1px solid var(--line);
}

.product__figure { margin: 0; }

.product__media { aspect-ratio: 4 / 3; }

.product__figure figcaption {
  max-width: 44em;
  margin-top: 12px;
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.5;
}

.product__kicker {
  margin-bottom: 12px;
  color: var(--blue-dark);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product__title {
  max-width: 16em;
  font-size: clamp(1.625rem, 1.2rem + 1.1vw, 2.25rem);   /* 26 → 36px */
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.product__lead {
  max-width: 36em;
  margin-top: 16px;
  color: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
}

.product__subtitle {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
}

.product__body .product__subtitle { margin-top: 28px; }

/* What a system checks: short lines with a blue check mark */
.checks {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.checks li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.checks .icon { margin-top: 2px; color: var(--blue); }
.checks strong { color: var(--ink); font-weight: 600; }

/* Step-by-step strip */
.flow {
  display: grid;
  gap: 0 var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow li {
  display: grid;
  grid-template-columns: 2.4em minmax(0, 1fr);
  align-content: start;
  column-gap: 8px;
  padding: 14px 0 16px;
  border-top: 1px solid var(--line);
}

.flow__num {
  grid-row: 1 / span 2;
  color: var(--blue-dark);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.9;
}

.flow__title { color: var(--ink); font-weight: 600; line-height: 1.4; }
.flow__text { color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }

@media (min-width: 600px) {
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .flow--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .flow--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .flow li {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    row-gap: 4px;
    padding-top: 16px;
  }
  .flow__num { grid-row: auto; line-height: 1.3; margin-bottom: 4px; }
}

/* Extra features */
.more-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.more-list li {
  position: relative;
  padding: 11px 0 11px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
}

.more-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: calc(11px + 0.75em - 1px);
  width: 8px;
  height: 2px;
  border-radius: 1px;
  background: var(--blue);
}

@media (min-width: 1001px) {
  .more-list--2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--gap);
  }
}

.sewing-note {
  max-width: 62em;
  margin-top: clamp(48px, 4vw, 72px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-small);
}

@media (min-width: 1001px) {
  .product { grid-template-columns: repeat(12, minmax(0, 1fr)); row-gap: clamp(40px, 3.6vw, 64px); }
  .product__figure--main { grid-column: 1 / span 7; grid-row: 1; }
  .product__body { grid-column: 8 / span 5; grid-row: 1; align-self: center; }
  .product__flow { grid-column: 1 / -1; }
  .product__figure--side { grid-column: 1 / span 5; }
  .product__more { grid-column: 7 / -1; align-self: start; }
  .product__more--wide { grid-column: 1 / -1; }

  .product--flip .product__figure--main { grid-column: 6 / span 7; }
  .product--flip .product__body { grid-column: 1 / span 5; }
}

@media (min-width: 1280px) {
  .product__body { grid-column: 9 / span 4; }
  .product--flip .product__body { grid-column: 1 / span 4; }
}

/* Software band */
.software {
  display: grid;
  gap: 40px;
}

.software__media { order: 2; }
.software__media .media { aspect-ratio: 3 / 2; }

@media (min-width: 600px) and (max-width: 1000px) {
  .software__media .media { aspect-ratio: 16 / 9; }
}

@media (min-width: 1001px) {
  .software__media .media { aspect-ratio: 4 / 3; }
}

.software__intro {
  max-width: 36em;
  margin-top: 20px;
  font-size: 1.125rem;
  line-height: 1.6;
}

.feature-list {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-soft-bg);
}

.feature-list li {
  padding: 16px 0 18px;
  border-bottom: 1px solid var(--line-soft-bg);
}

.feature-list__title {
  margin-bottom: 4px;
  font-size: 1.125rem;
  letter-spacing: -0.005em;
}

.feature-list p { color: var(--muted); font-size: 1rem; line-height: 1.55; }

@media (min-width: 1001px) {
  .software {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: center;
  }
  .software__media { order: 0; grid-column: 1 / span 5; }
  .software__body { grid-column: 7 / span 6; }
}

@media (min-width: 1280px) {
  .software__media { grid-column: 1 / span 6; }
  .software__body { grid-column: 8 / span 5; }
}

/* Support (existing clients) */
.support {
  display: grid;
  gap: 8px 64px;
}

.support__text {
  max-width: 34em;
  margin-top: 16px;
  color: var(--muted);
}

.steps {
  margin: 28px 0 32px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 15px 0 15px 46px;
  border-top: 1px solid var(--line);
  counter-increment: step;
}

.steps li:last-child { border-bottom: 1px solid var(--line); }

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 13px;
  left: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--blue-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
}

.steps a { display: inline-block; margin-block: -9px; padding-block: 9px; font-weight: 600; white-space: nowrap; }

.support__body .steps { margin-top: 20px; }

@media (min-width: 1001px) {
  .support {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: start;
  }
  .support__head { grid-column: 1 / span 6; }
  .support__body { grid-column: 8 / span 5; }
  .support__body .steps { margin-top: 6px; }
}

@media (min-width: 1280px) {
  .support__body { grid-column: 9 / span 4; }
}

/* About */
.about {
  display: grid;
  gap: 32px;
}

.about__lead {
  color: var(--ink);
  font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.625rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.about__body { max-width: 44em; }
.about__body > p + p { margin-top: 20px; }

.about__body > .about__sectors {
  margin-top: 24px;
  color: var(--muted);
  font-size: var(--fs-small);
}

.about__sectors span {
  color: var(--graphite);
  font-weight: 600;
}

@media (min-width: 1200px) {
  .about {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
  }
  .about__head { grid-column: 1 / span 6; }
  .about__head .section-title { max-width: 11em; }
  .about__body { grid-column: 7 / span 6; padding-top: 37px; }
}

/* Contact */
.contact {
  display: grid;
  gap: 48px;
}

.contact__title {
  max-width: 13em;
  font-size: clamp(2.125rem, 1.1rem + 2.8vw, 3.625rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.contact__lead {
  max-width: 32em;
  margin-top: 20px;
  font-size: var(--fs-lead);
  line-height: 1.5;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: 36px;
}

.contact__details { max-width: 560px; margin: 0; }

.contact__details > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.contact__details > div:last-child { border-bottom: 1px solid var(--line); }

.contact__details dt {
  padding-top: 4px;
  color: var(--muted);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.contact__details dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }

@media (max-width: 479px) {
  .contact__details > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

.contact__details dd > a:not(.contact__map) {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.contact__details dd > a:not(.contact__map):hover { color: var(--blue-dark); text-decoration: underline; }

@media (max-width: 599px) {
  .contact__details dd > a:not(.contact__map) { min-height: 44px; margin-block: -6px; }
}

.contact__map {
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  min-height: 44px;
  margin-top: 4px;
  font-weight: 600;
  text-decoration: none;
}

.contact__map span:first-child { text-decoration: underline; text-decoration-color: rgba(18, 107, 181, 0.35); text-underline-offset: 0.3em; }
.contact__map:hover span:first-child { text-decoration-color: currentColor; }

@media (min-width: 1001px) {
  .contact {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: end;
  }
  .contact__main { grid-column: 1 / span 6; }
  .contact__details { grid-column: 8 / span 5; max-width: none; }
}

@media (min-width: 1280px) {
  .contact__main { grid-column: 1 / span 7; }
  .contact__details { grid-column: 9 / span 4; }
}

/* 9 · Footer ---------------------------------------------------------------- */
.site-footer {
  padding-top: clamp(44px, 3.4vw, 56px);
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
  font-size: var(--fs-small);
}

.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--blue-dark); text-decoration: underline; }

.site-footer__grid {
  display: grid;
  gap: 36px var(--gap);
  padding-bottom: clamp(36px, 3vw, 44px);
}

.site-footer__brand img { width: auto; height: 36px; }
.site-footer__brand p { max-width: 24em; margin-top: 18px; color: var(--muted); }

.site-footer__title {
  margin-bottom: 12px;
  color: var(--graphite);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.site-footer__links {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__links a,
.site-footer__address a,
.site-footer__support a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
}

.site-footer__address { font-style: normal; line-height: 1.6; }
.site-footer__address p + p { margin-top: 2px; }
.site-footer__support { margin-top: 18px; }
.site-footer__support span { display: block; color: var(--muted); }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 16px 24px;
  border-top: 1px solid var(--line-soft-bg);
  color: var(--muted);
}

.site-footer__top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 500;
}

.site-footer__top .icon { color: var(--blue); }

@media (max-width: 599px) {
  .site-footer__links a,
  .site-footer__address a,
  .site-footer__support a { min-height: 44px; }
}

@media (min-width: 600px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (min-width: 1001px) {
  .site-footer__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / span 5; }
  .site-footer__nav { grid-column: 7 / span 2; }
  .site-footer__contact { grid-column: 9 / span 4; }
}

/* 10 · Motion --------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .mobile-menu:not([hidden]) { animation: menu-in 0.22s var(--ease); }

  @keyframes menu-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
