/* =====================================================================
   evidigital.com — Apple-minimal, monochrome
   Shared across /en/, /ro/, /ru/

   Built to mirror the EVI DIGITAL® SAV/Banner brochure PDFs exactly:
   – Same ink palette (#1D1D1F / #6E6E73 / #86868B / #A6A6AC)
   – Hero is DARK like the PDF cover, content sections are LIGHT
   – Same EVI vector + DIGITAL outlined-glyph lockup
   – Same distributor record (GB → RO → MD → GE)
   – Same "Designed in GB · Made in Taiwan · Since 1996" credit line
   ===================================================================== */

:root {
  /* Surface */
  --bg:        #FFFFFF;
  --bg-soft:   #F5F5F7;
  --bg-tint:   #FAFAFA;
  --bg-dark:   #1D1D1F;

  /* Ink */
  --ink:       #1D1D1F;
  --ink-soft:  #424246;
  --ink-mute:  #6E6E73;
  --ink-faint: #86868B;
  --ink-dim:   #A6A6AC;

  /* Lines */
  --line:      #D2D2D7;
  --line-soft: #E5E5E7;
  --line-dark: #3A3A3C;

  /* Tier accent — used ONLY for EVI MONO/POLY/PRO names, nowhere else */
  --tier-mono: #0099D4;   /* PANTONE Process Cyan — only on tier name */
  --tier-poly: #1D1D1F;   /* ink black */
  --tier-pro:  #EB6F05;   /* PANTONE Orange 021 C — only on tier name */

  /* Typography */
  --sans:  "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Display",
           system-ui, "Segoe UI", Roboto, sans-serif;
  --serif: "Newsreader", "New York", Georgia, serif;

  /* Layout */
  --gutter: clamp(20px, 4vw, 56px);
  --maxw:   1200px;

  /* Radii */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;

  /* Section rhythm — one source of truth */
  --sec-py:  clamp(96px, 11vw, 160px);
  --sec-gap: clamp(48px, 6vw, 88px);

  --ease: cubic-bezier(.22, .7, .2, 1);
}

* , *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img     { display: block; max-width: 100%; height: auto; }
picture { display: block; max-width: 100%; }
picture img { width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { list-style: none; padding: 0; margin: 0; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
::selection { background: var(--ink); color: var(--bg); }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* =====================================================================
   Brand lockup — single composite SVG, two CSS classes inside
   ===================================================================== */
.logo {
  display: inline-block;          /* NEVER inline-flex baseline (Safari bug) */
  line-height: 0;                 /* removes baseline gap */
  color: var(--ink);
}
.logo img, .logo svg {
  display: block;
  width: 160px;                   /* topbar size */
  height: auto;
}

/* Dark variant — used inside .hero, .dist-section, .footer */

/* =====================================================================
   Topbar — sticky frosted, mirrors evibond.com
   ===================================================================== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.nav { display: flex; gap: clamp(20px, 2.4vw, 38px); }
.nav a {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 400;
  transition: color 0.25s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 14px; }

.lang {
  display: flex;
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 3px;
  border: 1px solid var(--line-soft);
}
.lang a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--ink-mute);
  transition: all 0.25s var(--ease);
}
.lang a.active { background: var(--ink); color: var(--bg); }

@media (max-width: 880px) { .nav { display: none; } }

/* =====================================================================
   HERO — DARK, mirrors SAV PDF cover (P1)
   Big centred lockup, italic tagline below, four meta tags at bottom
   ===================================================================== */
.hero {
  background: var(--bg-dark);
  color: var(--bg);
  padding: clamp(90px, 12vw, 160px) 0 clamp(72px, 10vw, 140px);
  text-align: center;
  overflow: hidden;
}
.hero-lockup {
  display: inline-block;
  line-height: 0;
  margin-bottom: clamp(28px, 4vw, 44px);
  max-width: 100%;
}
.hero-lockup svg,
.hero-lockup img {
  display: block;
  width: clamp(280px, 56vw, 720px);
  height: auto;
}

.hero-tag {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.8vw, 38px);
  letter-spacing: -0.01em;
  color: var(--ink-dim);
  margin: 0 0 clamp(36px, 5vw, 56px);
  line-height: 1.2;
}

/* Footer meta strip inside the hero — like PDF cover bottom strip */
.hero-meta {
  margin-top: clamp(40px, 6vw, 72px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px clamp(20px, 3.6vw, 48px);
  font-size: 12.5px;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
  max-width: 720px;
  margin-inline: auto;
}
.hero-meta span { white-space: nowrap; }
.hero-meta span + span::before {
  content: '·';
  margin-right: clamp(20px, 3.6vw, 48px);
  opacity: 0.5;
}
/* Mobile — 2×2 grid, no dot separators */
@media (max-width: 640px) {
  .hero-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 24px;
    font-size: 12px;
    max-width: 340px;
    text-align: center;
  }
  .hero-meta span + span::before { display: none; }
}

/* =====================================================================
   Section heads — PDF-style large heading + italic subhead
   ===================================================================== */
.section {
  padding-block: var(--sec-py);
  background: var(--bg);
}
.section--soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.section--dark {
  background: var(--bg-dark);
  color: var(--bg);
}

.kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  margin-bottom: 22px;
}
.section--dark .kicker { color: var(--ink-dim); }

.section-head { margin-bottom: var(--sec-gap); max-width: 880px; }
.section-head.centered { text-align: center; margin-inline: auto; }

.section-head h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  color: var(--ink);
}
.section--dark .section-head h2 { color: var(--bg); }
.section-head h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-faint);
  letter-spacing: -0.01em;
}
.section--dark .section-head h2 em { color: var(--ink-dim); }

.section-head .lede {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  max-width: 60ch;
}
.section--dark .section-head .lede { color: var(--ink-dim); }
.section-head.centered .lede { margin-inline: auto; }

/* =====================================================================
   Products — 5 category cards in 2-column grid
   Mirrors SAV brochure P2 "Three coordinated tiers" composition
   ===================================================================== */
.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.product {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: clamp(32px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.product:hover {
  border-color: var(--line);
  transform: translateY(-2px);
}
.product--wide { grid-column: span 2; }

.product-num {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  margin-bottom: 6px;
}
.product-cat {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 18px;
}
.product h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--ink);
}
.product h3 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-faint);
}
.product p {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 24px;
  max-width: 44ch;
}
.product .tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 24px;
}
.product .tags span {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  padding: 5px 11px;
  background: var(--bg-soft);
  border-radius: 999px;
  border: 1px solid var(--line-soft);
}
.product-media {
  margin-top: auto;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-tint);
  border: 1px solid var(--line-soft);
}
.product-media picture,
.product-media img { width: 100%; height: auto; display: block; }

@media (max-width: 720px) {
  .products { grid-template-columns: 1fr; }
  .product--wide { grid-column: span 1; }
}

/* Tier colours — only inside .tier-mono/.tier-poly/.tier-pro spans */
.tier-mono { color: var(--tier-mono); font-weight: 600; }
.tier-poly { color: var(--tier-poly); font-weight: 600; }
.tier-pro  { color: var(--tier-pro);  font-weight: 600; }

/* =====================================================================
   PDF download link — text + underline + 14×14 icon
   ===================================================================== */
.pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: opacity 0.25s var(--ease);
  align-self: flex-start;
}
.pdf-link:hover { opacity: 0.65; }
.pdf-link svg {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  min-width: 14px;
  max-width: 14px;
}
.pdf-link--muted {
  color: var(--ink-mute);
  border-bottom-style: dashed;
  border-bottom-color: var(--ink-faint);
  opacity: 0.85;
}

/* =====================================================================
   Technologies — 10 chips in auto-fit grid (mirrors SAV PDF P7)
   ===================================================================== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(24px, 3vw, 40px) clamp(28px, 4vw, 56px);
}
.tech-item .tag {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  display: block;
  margin-bottom: 6px;
}
.tech-item h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--ink);
}
.tech-item p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  max-width: 32ch;
}

/* =====================================================================
   Specifications table — semantic HTML5 table with display:grid layout
   Mirrors SAV PDF P6 — tier rows × compatibility columns
   ===================================================================== */
.spec-table {
  border-top: 1px solid var(--line);
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.spec-table caption {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.spec-table tr {
  display: grid;
  grid-template-columns: 1.4fr repeat(5, 1fr);
  gap: 16px;
  padding: 22px 6px;
  border-bottom: 1px solid var(--line-soft);
  align-items: center;
  font-size: 15.5px;
}
.spec-table thead tr {
  border-bottom: 1px solid var(--line);
  padding-block: 18px;
}
.spec-table thead th {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.spec-table tbody th {
  color: var(--ink);
  font-weight: 500;
}
.spec-table tbody td {
  color: var(--ink-soft);
  font-weight: 400;
}
.spec-yes { color: var(--ink); font-weight: 500; }
.spec-no  { color: var(--ink-faint); }

@media (max-width: 760px) {
  .spec-table tr {
    grid-template-columns: 1fr 1fr 1fr;
    padding: 18px 4px;
    gap: 10px 16px;
    font-size: 14px;
  }
  .spec-table thead { display: none; }
  .spec-table tbody th {
    grid-column: 1 / -1;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 2px;
  }
  .spec-table tbody td::before {
    content: attr(data-label);
    display: block;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-bottom: 4px;
  }
}

/* =====================================================================
   Coverage map — dark band, light raster
   Same raster as PDF P1
   ===================================================================== */
.coverage {
  background: var(--bg-dark);
  color: var(--bg);
  padding-block: var(--sec-py);
  overflow: hidden;
}
.coverage .section-head h2 { color: var(--bg); }
.coverage .section-head h2 em { color: var(--ink-dim); }
.coverage .section-head .lede { color: var(--ink-dim); }

.map-frame {
  margin-top: clamp(40px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 3vw, 32px);
}
.map-frame img { width: 100%; max-width: 1100px; height: auto; }

.map-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(20px, 3vw, 40px);
  font-size: 13px;
  color: var(--ink-dim);
}
.map-legend > div { display: flex; align-items: center; gap: 8px; }
.map-legend .sw {
  width: 14px; height: 14px;
  border-radius: 3px;
  border: 1px solid var(--line-dark);
}
.map-legend .sw--direct   { background: var(--bg); }
.map-legend .sw--regional { background: #5E5E62; }
.map-legend .sw--notyet   { background: var(--bg-dark); }

/* =====================================================================
   Distributors — 4 light cards on soft grey, matches PDF P9 layout
   No gradient — all four cards same colour, just like the brochure
   ===================================================================== */
.dist-grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
  grid-template-columns: repeat(4, 1fr);
}
.dist-card {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.dist-card:hover {
  border-color: var(--line);
  transform: translateY(-2px);
}
.dist-card.featured {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
  color: var(--bg);
}
.dist-card.featured .dist-code,
.dist-card.featured .dist-role,
.dist-card.featured .dist-addr,
.dist-card.featured .dist-web { color: var(--ink-dim); }
.dist-card.featured h3,
.dist-card.featured .dist-phone { color: var(--bg); }

.dist-code {
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.dist-role {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 18px;
  line-height: 1.4;
}
.dist-card h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--ink);
}
.dist-addr {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 auto;
}
.dist-phone {
  margin-top: 20px;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
}
.dist-web {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-mute);
  margin-top: 4px;
  border-bottom: 1px solid transparent;
  align-self: flex-start;
  transition: border-color 0.2s var(--ease);
}
.dist-web:hover { border-bottom-color: currentColor; }

@media (max-width: 980px) { .dist-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .dist-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   FAQ — clean expanders, AI-friendly
   ===================================================================== */
.faq-list {
  border-top: 1px solid var(--line);
  max-width: 1080px;
}
.faq-list details {
  border-bottom: 1px solid var(--line-soft);
  padding: 24px 0;
  transition: padding 0.3s var(--ease);
}
.faq-list details[open] { padding: 28px 0; }
.faq-list summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: clamp(17px, 1.3vw, 20px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.4;
  align-items: flex-start;
  transition: color 0.25s var(--ease);
}
.faq-list summary:hover { color: #000; }
.faq-list summary::after {
  content: "";
  flex: none;
  width: 22px; height: 22px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D1D1F' stroke-width='1.6' stroke-linecap='round'><path d='M5 12h14M12 5v14'/></svg>");
  background-position: center; background-repeat: no-repeat;
  margin-top: 4px;
  transition: transform 0.3s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .answer {
  margin-top: 18px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 70ch;
}
.faq-list .answer p { margin: 0 0 10px; }
.faq-list .answer p:last-child { margin-bottom: 0; }

/* =====================================================================
   Contact — dark band, like PDF back cover
   ===================================================================== */
.contact {
  background: var(--bg-dark);
  color: var(--bg);
  padding-block: var(--sec-py);
  text-align: center;
}
.contact h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 16px;
  color: var(--bg);
}
.contact h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-dim);
}
.contact .lede {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--ink-dim);
  max-width: 58ch;
  margin: 0 auto 36px;
  line-height: 1.55;
}
.contact-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(20px, 4vw, 56px);
  font-size: 16px;
}
.contact-row a {
  color: var(--bg);
  border-bottom: 1px solid var(--ink-dim);
  padding-bottom: 2px;
  transition: opacity 0.25s var(--ease);
}
.contact-row a:hover { opacity: 0.65; }

/* =====================================================================
   Footer — dark, four-column nav
   ===================================================================== */
.footer {
  background: var(--bg-dark);
  color: var(--ink-dim);
  padding: clamp(64px, 7vw, 90px) 0 28px;
  border-top: 1px solid var(--line-dark);
  font-size: 13px;
}
.footer-grid {
  display: grid;
  gap: clamp(40px, 5vw, 64px);
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  margin-bottom: clamp(48px, 6vw, 72px);
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-mark {
  display: inline-block;
  line-height: 0;
  margin-bottom: 16px;
}
.footer-mark svg, .footer-mark img { width: 180px; height: auto; display: block; }

.footer-blurb {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 36ch;
  margin: 0;
}
.footer h5 {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bg);
  font-weight: 500;
  margin: 0 0 16px;
}
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a {
  font-size: 13.5px;
  color: var(--ink-dim);
  transition: color 0.25s var(--ease);
}
.footer-nav a:hover { color: var(--bg); }

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--ink-mute);
}
.footer-credits {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0;
}
.footer-credits span + span::before {
  content: '·';
  margin: 0 10px;
  opacity: 0.5;
}
@media (max-width: 640px) {
  .footer-credits {
    flex-direction: column;
    gap: 4px;
  }
  .footer-credits span + span::before { display: none; }
}
