/* ==========================================================================
   OBASAY — design system and site styles
   Mobile-first. No build step: this file is served as-is.
   Theme: light by default; dark when <html data-theme="dark"> (set by theme-init.js).
   ========================================================================== */

/* ---------- Fonts (self-hosted, OFL — see assets/fonts/OFL-*.txt) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-ext-wght-normal.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;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.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;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("../fonts/barlow-latin-ext-700-normal.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;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("../fonts/barlow-latin-700-normal.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;
}

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette (fixed) */
  --c-navy: #17263C;
  --c-navy-2: #22385A;
  --c-steel: #2F5D8C;
  --c-gray: #5F6B7A;
  --c-light: #F2F4F7;
  --c-border: #D8DDE3;
  --c-white: #FFFFFF;
  --c-action: #C2410C;
  --c-action-hover: #9A3412;
  --c-accent: #E8590C;           /* decorative only — not for body text on white */

  /* WhatsApp buttons: WhatsApp's dark green (#008069), not the logo green #25D366,
     which gives only 1.98:1 with white text. White text: 4.89:1, hover 6.47:1.
     Same in both themes (3.1:1 against the dark-theme surface). */
  --c-whatsapp: #008069;
  --c-whatsapp-hover: #006B58;

  /* Text on always-dark surfaces (R&D section, footer) */
  --c-on-dark: #FFFFFF;
  --c-on-dark-muted: #B9C4D3;
  --c-dark-line: rgba(255, 255, 255, 0.14);

  /* Semantic theme tokens — light theme */
  --bg: var(--c-white);
  --bg-alt: var(--c-light);
  --surface: var(--c-white);
  --border: var(--c-border);
  --text: var(--c-navy);
  --text-muted: var(--c-gray);
  --link: var(--c-steel);
  --link-hover: var(--c-navy);
  --focus-color: var(--c-steel);
  --dark-section-bg: var(--c-navy);
  --footer-bg: var(--c-navy);
  --notice-bg: #FFF7ED;
  --notice-accent: var(--c-action);
  --eyebrow: var(--c-action);    /* #C2410C: 5.2:1 on white, OK for small text */

  /* Technical drawing (hero illustration) */
  --td-bg: var(--c-white);
  --td-grid: #EDF0F4;
  --td-frame: var(--c-border);
  --td-line: var(--c-navy);
  --td-muted: var(--c-gray);
  --td-dim: var(--c-steel);
  --td-callout: var(--c-action);

  /* Typography */
  --f-heading: "Barlow", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --f-body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  /* 8px spacing scale */
  --s-1: 0.5rem;   /*  8px */
  --s-2: 1rem;     /* 16px */
  --s-3: 1.5rem;   /* 24px */
  --s-4: 2rem;     /* 32px */
  --s-5: 2.5rem;   /* 40px */
  --s-6: 3rem;     /* 48px */
  --s-8: 4rem;     /* 64px */
  --s-10: 5rem;    /* 80px */
  --s-12: 6rem;    /* 96px */

  --container: 70rem;            /* 1120px */
  --gutter: var(--s-2);
  --radius-btn: 6px;
  --radius-card: 10px;
  --header-h: 4rem;
  --focus: 0 0 0 3px var(--bg), 0 0 0 5px var(--focus-color);

  color-scheme: light;
}

/* Dark theme — derived from the brand navy; contrast checked against WCAG 2.2 AA. */
:root[data-theme="dark"] {
  --bg: #0F1928;
  --bg-alt: #132133;
  --surface: #172739;
  --border: #2A3C55;
  --text: #E6ECF3;
  --text-muted: #A3B1C2;
  --link: #8FB6E0;
  --link-hover: #FFFFFF;
  --focus-color: #8FB6E0;
  --dark-section-bg: var(--c-navy);
  --footer-bg: #0A121E;
  --notice-bg: #2A1C13;
  --notice-accent: #F08A4B;
  --eyebrow: #F08A4B;

  --td-bg: #132133;
  --td-grid: #1B2B41;
  --td-frame: #2A3C55;
  --td-line: #E6ECF3;
  --td-muted: #A3B1C2;
  --td-dim: #8FB6E0;
  --td-callout: #F08A4B;

  color-scheme: dark;
}

@media (min-width: 48em) {
  :root { --gutter: var(--s-3); --header-h: 4.5rem; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
picture { display: contents; } /* <picture> wrappers lay out like the <img> inside */
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--f-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--link); text-underline-offset: 0.2em; }
a:hover { color: var(--link-hover); }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 2px; }
main:focus { outline: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: var(--s-1);
  left: var(--s-1);
  z-index: 100;
  padding: var(--s-1) var(--s-2);
  background: var(--c-navy);
  color: var(--c-white);
  border-radius: var(--radius-btn);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; color: var(--c-white); }

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

.icon { width: 1.5rem; height: 1.5rem; max-width: none; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius-btn);
  font-family: var(--f-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn .icon { width: 1.25rem; height: 1.25rem; }
.btn--sm { min-height: 2.75rem; padding: 0.5rem 1rem; font-size: 0.9375rem; }

.btn--primary { background: var(--c-action); color: var(--c-white); }
.btn--primary:hover { background: var(--c-action-hover); color: var(--c-white); }

.btn--secondary { border-color: var(--text); color: var(--text); background: transparent; }
.btn--secondary:hover { background: var(--text); color: var(--bg); }

.btn--whatsapp,
.section--dark .btn--whatsapp { background: var(--c-whatsapp); border-color: var(--c-whatsapp); color: var(--c-white); }
.btn--whatsapp:hover,
.section--dark .btn--whatsapp:hover { background: var(--c-whatsapp-hover); border-color: var(--c-whatsapp-hover); color: var(--c-white); }

.section--dark .btn--secondary { border-color: var(--c-white); color: var(--c-white); }
.section--dark .btn--secondary:hover { background: var(--c-white); color: var(--c-navy); }
.section--dark :focus-visible { box-shadow: 0 0 0 3px var(--dark-section-bg), 0 0 0 5px var(--c-white); }

.btn-group { display: flex; flex-wrap: wrap; gap: var(--s-2); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.75rem;
  color: var(--link);
  font-weight: 600;
  text-decoration: none;
}
.text-link .icon { width: 1.125rem; height: 1.125rem; transition: transform 0.15s ease; }
.text-link:hover { color: var(--link-hover); text-decoration: underline; }
.text-link:hover .icon { transform: translateX(3px); }

.cta-note { align-self: center; color: var(--text-muted); font-size: 0.875rem; }

/* ---------- Eyebrow & section headers ---------- */
.eyebrow {
  margin-bottom: var(--s-2);
  color: var(--eyebrow);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-header { max-width: 42rem; margin-bottom: var(--s-5); }
.section-header--center { margin-inline: auto; text-align: center; }
.section-header__title { font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem); }
.section-header__text { margin-top: var(--s-2); color: var(--text-muted); font-size: 1.0625rem; }

.section-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0 var(--s-4);
  margin-bottom: var(--s-5);
}
.section-header-row .section-header { margin-bottom: 0; }
.section-header-row__link { margin-top: var(--s-2); }

/* ---------- Sections ---------- */
.section { padding-block: var(--s-8); }
.section--tight { padding-block: var(--s-6); }
.section--light { background: var(--bg-alt); }
/* Always-dark sections re-map the theme tokens locally, so components inside adapt. */
.section--dark {
  --text: var(--c-on-dark);
  --text-muted: var(--c-on-dark-muted);
  --link: #8FB6E0;
  --link-hover: var(--c-white);
  --eyebrow: #F08A4B;
  background-color: var(--dark-section-bg);
  color: var(--c-on-dark);
}
.section--grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}
:root[data-theme="dark"] .section--dark { border-block: 1px solid var(--border); }

@media (min-width: 64em) {
  .section { padding-block: var(--s-12); }
  .section--tight { padding-block: var(--s-8); }
}

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: var(--s-3); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40em) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 48em) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 64em) {
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--s-4) var(--s-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.card__icon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: var(--s-3);
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  position: relative;
}
.card__icon::after {
  /* small accent tick, echoing the Ø slash */
  content: "";
  position: absolute;
  right: -1px;
  top: -1px;
  width: 0.625rem;
  height: 2px;
  background: var(--c-accent);
}
.card__title { font-size: 1.25rem; margin-bottom: var(--s-1); }
.card__text { color: var(--text-muted); }
.card .text-link { margin-top: auto; padding-top: var(--s-2); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  min-height: var(--header-h);
}
.site-header__brand { display: inline-flex; flex: none; margin-right: auto; }
.logo { max-width: none; }
.site-header__logo { width: auto; height: 2rem; }
.site-header__actions { display: flex; flex: none; align-items: center; gap: var(--s-1); }
.site-header__actions--end { margin-left: auto; }
.site-header__cta { white-space: nowrap; }

/* Theme-dependent logo: both variants are in the markup, CSS shows one. */
.logo--theme-dark { display: none; }
:root[data-theme="dark"] .logo--theme-light { display: none; }
:root[data-theme="dark"] .logo--theme-dark { display: block; }

.site-nav__list { display: flex; flex-direction: column; }
.site-nav__link {
  display: flex;
  align-items: center;
  min-height: 3rem;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.site-nav__link:hover { color: var(--link); }
.site-nav__link[aria-current="page"] { color: var(--link); }
.site-nav__tools { display: flex; align-items: center; gap: var(--s-1); }

.lang-switch { display: flex; align-items: center; }
.lang-switch__link {
  display: inline-grid;
  place-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04em;
}
.lang-switch li + li { border-left: 1px solid var(--border); }
.lang-switch__link:hover { color: var(--text); }
.lang-switch__link[aria-current="true"] { color: var(--text); text-decoration: underline; text-decoration-color: var(--c-accent); text-decoration-thickness: 2px; text-underline-offset: 0.35em; }

/* Theme toggle — hidden until JS is available (theme-init.js adds .js to <html>). */
.theme-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.625rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  color: var(--text);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}
.js .theme-toggle { display: inline-flex; }
.theme-toggle:hover { border-color: var(--link); color: var(--link); }
.theme-toggle[aria-pressed="true"] { background: var(--bg-alt); border-color: var(--link); }
.theme-toggle .icon { width: 1.25rem; height: 1.25rem; }
.theme-toggle__icon--sun { display: none; }
:root[data-theme="dark"] .theme-toggle__icon--sun { display: block; }
:root[data-theme="dark"] .theme-toggle__icon--moon { display: none; }
.site-header__actions .theme-toggle { padding: 0; }
.site-header__actions .theme-toggle__text {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle__bar { position: relative; }
.nav-toggle__bar::before,
.nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bar::before { top: -6px; }
.nav-toggle__bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); background: var(--text); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); background: var(--text); }

/* Mobile navigation panel */
@media (max-width: 63.99em) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: var(--s-1) var(--gutter) var(--s-3);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .site-nav.is-open { display: block; }
  .site-nav__list li { border-bottom: 1px solid var(--border); }
  .site-nav__tools { justify-content: space-between; margin-top: var(--s-2); }
  .site-nav__tools .lang-switch { margin-left: calc(-1 * 0.75rem); }
  .site-header__inner { position: relative; }
}

@media (min-width: 25em) {
  .site-header__logo { height: 2.25rem; }
}

@media (max-width: 22.49em) {
  .site-header__cta { display: none; }
}

@media (min-width: 64em) {
  .site-header__logo { height: 2.5rem; }
  .site-nav { display: flex; align-items: center; gap: var(--s-3); margin-inline: auto var(--s-1); }
  .site-nav__list { flex-direction: row; gap: var(--s-3); }
  .site-nav__link { position: relative; min-height: var(--header-h); }
  .site-nav__link[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 2px;
    background: var(--c-accent);
  }
  .site-nav .theme-toggle { padding: 0; }
  .site-nav .theme-toggle__text {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .site-header__brand { margin-right: 0; }
  .site-header__actions { gap: var(--s-2); }
  .nav-toggle { display: none; }
}

@media (min-width: 80em) {
  .site-nav, .site-nav__list { gap: var(--s-4); }
}

/* ---------- Hero ---------- */
.hero { padding-block: var(--s-6) var(--s-8); }
.hero__grid { display: grid; gap: var(--s-5); align-items: center; }
.hero__title {
  font-size: clamp(2.125rem, 1.45rem + 3vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.hero__text {
  max-width: 34rem;
  margin-top: var(--s-3);
  color: var(--text-muted);
  font-size: 1.125rem;
}
.hero .btn-group { margin-top: var(--s-4); }
/* Light "drawing sheet" card on the dark hero */
.hero__visual {
  margin: 0;
  padding: var(--s-2) var(--s-2) 0;
  overflow: hidden;
  background: var(--td-bg);
  border: 1px solid var(--td-frame);
  border-radius: var(--radius-card);
}
.hero__visual img,
.hero__visual svg { width: 100%; height: auto; aspect-ratio: 560 / 440; border-radius: 4px; }
.hero__visual figcaption {
  padding-block: 0.75rem;
  color: var(--td-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

@media (min-width: 64em) {
  .hero { padding-block: var(--s-8) var(--s-10); }
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--s-8); }
}

/* Technical drawing illustration (inline SVG, follows the theme) */
.td-bg { fill: var(--td-bg); }
.td-grid { fill: none; stroke: var(--td-grid); }
.td-frame { stroke: var(--td-frame); } /* fill="url(#td-grid)" is set on the element */
.td-line { fill: none; stroke: var(--td-line); }
.td-hidden { fill: none; stroke: var(--td-muted); }
.td-center { fill: none; stroke: var(--c-accent); }
.td-dim { fill: none; stroke: var(--td-dim); }
.td-arrow { fill: var(--td-dim); }
.td-label { fill: var(--td-dim); font-family: var(--f-body); font-size: 15px; font-weight: 700; }
.td-callout { fill: var(--td-callout); font-family: var(--f-body); font-size: 16px; font-weight: 700; }
.td-title-box { fill: var(--td-bg); stroke: var(--td-line); }
.td-title { fill: var(--td-line); font-family: var(--f-body); font-size: 12px; font-weight: 700; letter-spacing: 2px; }
.td-subtitle { fill: var(--td-muted); font-family: var(--f-body); font-size: 9px; letter-spacing: 1px; }

/* ---------- Trust indicators ---------- */
.trust { background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.trust__list { display: grid; grid-template-columns: minmax(0, 1fr); }
.trust__item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding-block: var(--s-3);
}
.trust__item + .trust__item { border-top: 1px solid var(--border); }
.trust__icon {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.trust__icon .icon { width: 1.25rem; height: 1.25rem; }
.trust__title { font-size: 0.9375rem; font-weight: 700; line-height: 1.35; }
.trust__text { margin-top: 0.125rem; color: var(--text-muted); font-size: 0.875rem; line-height: 1.45; }

@media (min-width: 40em) {
  .trust__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-4); }
  .trust__item + .trust__item { border-top: 0; }
  .trust__item:nth-child(n + 3) { border-top: 1px solid var(--border); }
}
@media (min-width: 64em) {
  .trust__list { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 0; }
  .trust__item { padding: var(--s-4) var(--s-3); }
  .trust__item:first-child { padding-left: 0; }
  .trust__item:nth-child(n + 3) { border-top: 0; }
  .trust__item + .trust__item { border-left: 1px solid var(--border); }
}

/* ---------- Product cards ---------- */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  transition: border-color 0.15s ease;
}
.product-card:hover { border-color: var(--link); }
.product-card:focus-within { box-shadow: var(--focus); }
.product-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.product-card__body { display: flex; flex: 1; flex-direction: column; padding: var(--s-3); }
.product-card__category {
  color: var(--link);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.product-card__title { margin-top: 0.375rem; font-size: 1.1875rem; }
.product-card__title a { color: var(--text); text-decoration: none; }
.product-card__title a:focus-visible { box-shadow: none; }
.product-card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card is clickable */
.product-card__text { margin-top: var(--s-1); color: var(--text-muted); font-size: 0.9375rem; line-height: 1.55; }
.product-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-1);
  margin-top: auto;
  padding-top: var(--s-3);
}
.product-card__price { font-weight: 700; }
.product-card__price span { display: block; color: var(--text-muted); font-size: 0.75rem; font-weight: 500; }
.product-card__price--muted { color: var(--text-muted); font-size: 0.875rem; font-weight: 500; }
.product-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--link);
  font-size: 0.9375rem;
  font-weight: 600;
}
.product-card__link .icon { width: 1rem; height: 1rem; transition: transform 0.15s ease; }
.product-card:hover .product-card__link .icon { transform: translateX(3px); }

.badge {
  position: absolute;
  top: var(--s-1);
  left: var(--s-1);
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
}
.badge--demo { background: var(--surface); color: var(--text); border: 1px dashed var(--text-muted); }

/* ---------- R&D steps ---------- */
.rnd__intro .section-header { max-width: 46rem; }
.steps {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: var(--s-5);
}
.steps__item {
  padding: var(--s-3);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--c-dark-line);
  border-radius: var(--radius-card);
}
.steps__number {
  display: block;
  margin-bottom: var(--s-2);
  color: var(--c-accent);
  font-family: var(--f-heading);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}
.steps__title { font-size: 1.1875rem; color: var(--c-on-dark); }
.steps__text { margin-top: var(--s-1); color: var(--c-on-dark-muted); font-size: 0.9375rem; }

@media (min-width: 40em) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- CTA band ---------- */
.cta-band__panel {
  display: grid;
  gap: var(--s-4);
  padding: var(--s-5) var(--s-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--c-accent);
  border-radius: var(--radius-card);
}
.cta-band__title { font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem); }
.cta-band__text { margin-top: var(--s-2); max-width: 38rem; color: var(--text-muted); font-size: 1.0625rem; }
@media (min-width: 64em) {
  .cta-band__panel { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: var(--s-6); }
  .cta-band__actions { justify-content: flex-end; }
}

/* ---------- Inner pages ---------- */
.page-hero {
  padding-block: var(--s-4) var(--s-6);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.page-hero__title { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); }
.page-hero__text { max-width: 42rem; margin-top: var(--s-2); color: var(--text-muted); font-size: 1.125rem; }

.breadcrumb { margin-bottom: var(--s-4); font-size: 0.875rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0; }
.breadcrumb li { display: inline-flex; align-items: center; color: var(--text-muted); }
.breadcrumb li + li::before { content: "/"; margin-inline: 0.5rem; color: var(--border); }
.breadcrumb a { color: var(--link); }

.prose { max-width: 46rem; }
.prose p + p { margin-top: var(--s-2); }
.prose p { font-size: 1.0625rem; }
.prose .btn-group { margin-top: var(--s-4); }

.service-list { display: grid; gap: var(--s-3); }
.service-row {
  display: grid;
  gap: var(--s-2);
  padding: var(--s-4) var(--s-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.service-row .card__icon { margin-bottom: 0; }
.service-row__title { font-size: 1.5rem; }
.service-row__text { margin-top: var(--s-1); max-width: 44rem; color: var(--text-muted); font-size: 1.0625rem; }
@media (min-width: 48em) {
  .service-row { grid-template-columns: auto minmax(0, 1fr); gap: var(--s-3); }
}

.product-detail { display: grid; gap: var(--s-5); align-items: start; }
.product-detail__media {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.product-detail__media img { width: 100%; }
.product-detail__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-1); margin-top: var(--s-1); }
.product-detail__thumbs a { display: block; overflow: hidden; border: 1px solid var(--border); border-radius: 6px; }
.product-detail__thumbs a:hover { border-color: var(--link); }
.product-detail__thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.product-detail__lead { font-size: 1.125rem; }
.product-detail__heading { font-size: 1.125rem; }
.product-detail__price-value { font-size: 1.5rem; font-weight: 700; }
.product-detail__price-value span { margin-left: 0.5rem; color: var(--text-muted); font-size: 0.875rem; font-weight: 500; }
.product-detail__price-muted { color: var(--text-muted); font-weight: 600; }
.product-detail__text { max-width: 48rem; }
.product-detail__text > h2:first-child { margin-top: 0; }
.color-list { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); }
.color-list li { display: inline-flex; align-items: center; gap: 0.5rem; }
.color-list__swatch { width: 1.25rem; height: 1.25rem; border: 1px solid var(--border); border-radius: 4px; background: var(--bg-alt); }
.product-detail__body > * + * { margin-top: var(--s-3); }
@media (min-width: 64em) {
  .product-detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); }
}

.spec-list { margin: 0; border-top: 1px solid var(--border); }
.spec-list div {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: var(--s-2);
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.spec-list dt { color: var(--text-muted); font-size: 0.9375rem; }
.spec-list dd { margin: 0; font-weight: 600; }

.contact-card__value { font-weight: 600; word-break: break-word; }
.notice-page { min-height: 50vh; display: flex; align-items: center; }
.notice-page__inner { max-width: 44rem; }
.notice-page .btn-group { margin-top: var(--s-4); }

/* ---------- Blog ---------- */
.chip-nav { margin-bottom: var(--s-4); }
.chip-nav ul { display: flex; flex-wrap: wrap; gap: var(--s-1); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.375rem 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}
.chip:hover { color: var(--link); border-color: var(--link); }
.chip[aria-current="page"] { color: var(--bg); background: var(--text); border-color: var(--text); }
.chip__count { color: inherit; opacity: 0.7; font-size: 0.8125rem; font-weight: 500; }

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  transition: border-color 0.15s ease;
}
.post-card:hover { border-color: var(--link); }
.post-card:focus-within { box-shadow: var(--focus); }
.post-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { display: flex; flex: 1; flex-direction: column; padding: var(--s-3); }
.post-card__category {
  color: var(--eyebrow);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.post-card__title { margin-top: 0.375rem; font-size: 1.25rem; line-height: 1.25; }
.post-card__title a { color: var(--text); text-decoration: none; }
.post-card__title a:focus-visible { box-shadow: none; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card is clickable */
.post-card:hover .post-card__title a { color: var(--link); }
.post-card__excerpt { margin-top: var(--s-1); color: var(--text-muted); font-size: 0.9375rem; line-height: 1.55; }
.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: auto;
  padding-top: var(--s-2);
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.empty-state { padding: var(--s-6) 0; color: var(--text-muted); text-align: center; }

.pagination { margin-top: var(--s-5); }
.pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-1); }
.pagination__link {
  display: inline-grid;
  place-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.875rem;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  font-weight: 600;
  text-decoration: none;
}
a.pagination__link:hover { color: var(--link); border-color: var(--link); }
.pagination__link.is-current { color: var(--bg); background: var(--text); border-color: var(--text); }
.pagination__link.is-disabled { color: var(--text-muted); opacity: 0.6; }

.badge--inline { position: static; display: inline-block; }

/* Article */
.article__title { max-width: 48rem; }
.article__header .page-hero__text { max-width: 46rem; }
.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.5rem;
  margin-top: var(--s-3);
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.article__content { max-width: 48rem; padding-block: var(--s-5) var(--s-8); }
.article__cover { margin: 0 0 var(--s-5); overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-card); }
.article__cover img { width: 100%; }
.article__tags { margin-top: var(--s-5); padding-top: var(--s-3); border-top: 1px solid var(--border); }
.article__tags ul { display: flex; flex-wrap: wrap; gap: var(--s-1); }
.tag {
  padding: 0.25rem 0.75rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.875rem;
}
.article__back { margin-top: var(--s-3); }
.icon--flip { transform: scaleX(-1); }
.text-link:hover .icon--flip { transform: scaleX(-1) translateX(3px); }

/* Long-form text (article bodies) */
.article__body { font-size: 1.0625rem; line-height: 1.75; }
.article__body > * + * { margin-top: var(--s-2); }
.article__body h2 { margin-top: var(--s-6); font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem); }
.article__body h3 { margin-top: var(--s-4); font-size: 1.25rem; }
.article__body h2 + *, .article__body h3 + * { margin-top: var(--s-2); }
.article__body ul, .article__body ol { padding-left: 1.5rem; }
.article__body ul { list-style: disc; }
.article__body ol { list-style: decimal; }
.article__body li + li { margin-top: 0.375rem; }
.article__body li::marker { color: var(--c-accent); }
.article__body a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; }
.article__body a:hover { color: var(--link-hover); }
.article__body strong { font-weight: 700; }
.article__body img {
  width: 100%;
  margin-block: var(--s-2);
  background: var(--c-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.article__body blockquote {
  margin-inline: 0;
  padding: var(--s-2) var(--s-3);
  background: var(--bg-alt);
  border-left: 4px solid var(--c-accent);
  border-radius: 0 8px 8px 0;
  font-weight: 600;
}
.article__body blockquote p { margin: 0; }
.article__body code { padding: 0.1em 0.35em; background: var(--bg-alt); border-radius: 4px; font-size: 0.9em; }
.article__body table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.article__body th, .article__body td { padding: 0.625rem 0.75rem; text-align: left; vertical-align: top; border: 1px solid var(--border); }
.article__body th { background: var(--bg-alt); font-weight: 700; }
.article__body hr { margin-block: var(--s-5); border: 0; border-top: 1px solid var(--border); }

/* ---------- Contact page & forms ---------- */
.contact-layout { display: grid; gap: var(--s-6); align-items: start; }
.contact-layout__title { font-size: 1.5rem; }
.contact-layout__text { margin-top: var(--s-1); color: var(--text-muted); }
.contact-layout__channels { display: grid; gap: var(--s-2); }
.contact-layout__channels .card { padding: var(--s-3); }
@media (min-width: 64em) {
  .contact-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--s-8); }
}

.form { display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.form__note { color: var(--text-muted); font-size: 0.875rem; }
.form__row { display: grid; gap: var(--s-3); }
@media (min-width: 40em) { .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form__field { display: grid; gap: 0.375rem; align-content: start; }
.form__field label { font-weight: 600; font-size: 0.9375rem; }
.form__optional { margin-left: 0.25rem; color: var(--text-muted); font-weight: 400; font-size: 0.8125rem; }
.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.625rem 0.75rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--text-muted);
  border-radius: var(--radius-btn);
  font: inherit;
  font-size: 1rem;
}
.form__field textarea { min-height: 9rem; resize: vertical; }
.form__field input:focus-visible,
.form__field select:focus-visible,
.form__field textarea:focus-visible { border-color: var(--focus-color); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--notice-accent); border-width: 2px; }
.form__error { color: var(--notice-accent); font-size: 0.875rem; font-weight: 600; }
.form__check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.25rem 0.75rem; align-items: start; }
.form__check input { width: 1.375rem; height: 1.375rem; margin: 0.125rem 0 0; accent-color: var(--c-action); }
.form__check label { font-size: 0.9375rem; }
.form__check .form__error { grid-column: 2; }
.form .btn { justify-self: start; }
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.alert { margin-top: var(--s-3); padding: var(--s-2) var(--s-3); border-radius: 8px; border: 1px solid; }
.alert ul { margin-top: 0.375rem; padding-left: 1.25rem; list-style: disc; }
.alert--success { color: var(--text); background: var(--bg-alt); border-color: #15803D; border-left-width: 4px; }
.alert--error { color: var(--text); background: var(--notice-bg); border-color: var(--notice-accent); border-left-width: 4px; }
.alert:focus { outline: none; box-shadow: var(--focus); }

.legal-text { max-width: 48rem; }

.preview-banner {
  padding: 0.5rem var(--gutter);
  background: var(--c-action);
  color: var(--c-white);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
}

/* ---------- Development notice ---------- */
.dev-notice {
  display: flex;
  gap: 0.75rem;
  margin-bottom: var(--s-4);
  padding: var(--s-2);
  background: var(--notice-bg);
  border: 1px dashed var(--notice-accent);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.dev-notice__icon { width: 1.25rem; height: 1.25rem; color: var(--notice-accent); margin-top: 1px; }
.section--light .dev-notice { background: var(--surface); }
:root[data-theme="dark"] .section--light .dev-notice { background: var(--notice-bg); }

/* ---------- Footer (always dark) ---------- */
.site-footer {
  padding-top: var(--s-8);
  background: var(--footer-bg);
  color: var(--c-on-dark-muted);
  font-size: 0.9375rem;
}
:root[data-theme="dark"] .site-footer { border-top: 1px solid var(--border); }
.site-footer a { color: var(--c-on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--c-on-dark); text-decoration: underline; }
.site-footer :focus-visible { box-shadow: 0 0 0 3px var(--footer-bg), 0 0 0 5px var(--c-white); }
.site-footer__grid {
  display: grid;
  gap: var(--s-5) var(--s-4);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-bottom: var(--s-6);
}
.site-footer__brand { grid-column: 1 / -1; }
.site-footer__logo { width: auto; height: 2.5rem; }
.site-footer__descriptor {
  margin-top: var(--s-2);
  color: var(--c-on-dark);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-footer__summary { margin-top: var(--s-1); max-width: 22rem; }
.site-footer__heading {
  margin-bottom: var(--s-2);
  color: var(--c-on-dark);
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.site-footer__heading--spaced { margin-top: var(--s-4); }
.site-footer__col li + li { margin-top: 0.25rem; }
.site-footer__col a { display: inline-flex; align-items: center; min-height: 2rem; }
.site-footer__contact li { display: flex; align-items: center; gap: var(--s-1); }
.site-footer__contact .icon { width: 1.125rem; height: 1.125rem; color: var(--c-on-dark-muted); }
.site-footer__muted { color: var(--c-on-dark-muted); }
.site-footer__bottom {
  padding-block: var(--s-3);
  border-top: 1px solid var(--c-dark-line);
  font-size: 0.875rem;
}
.site-footer__social { display: flex; flex-wrap: wrap; gap: 0 var(--s-2); margin-top: var(--s-2); }
.site-footer__address { margin-top: var(--s-2); }
.site-footer__legal-info { display: flex; flex-wrap: wrap; gap: 0.25rem var(--s-3); margin-top: var(--s-1); font-size: 0.8125rem; }
.site-footer--minimal { padding-top: 0; }
.site-footer--minimal .site-footer__bottom { border-top: 0; }

@media (min-width: 64em) {
  .site-footer__grid { grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr 1.2fr; }
  .site-footer__brand { grid-column: auto; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
