/* eCold — public compliance site. Glacier light theme, built on tokens.css. */

/* ── Reset / base ───────────────────────────────────────── */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ec-ink);
  background: var(--ec-bg);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'cv11';
  letter-spacing: -0.006em;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ec-brand); outline-offset: 3px; border-radius: 4px; }

/* ── Bilingual visibility ───────────────────────────────── */
/* Each translatable node carries lang="en" / lang="fr"; we hide the inactive one. */
html[data-lang="en"] [lang="fr"],
html[data-lang="fr"] [lang="en"] { display: none !important; }

/* ── Layout primitives ──────────────────────────────────── */
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 760px; }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ec-ink-3);
}
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.accent-rule {
  width: 40px; height: 3px; border-radius: 2px;
  background: var(--ec-brand); margin: 0 0 22px;
}

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--ec-bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--ec-line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 20px;
  height: 66px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ec-brand); }
.brand .mark { width: 26px; height: 26px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand .word { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: var(--ec-ink); }
.brand .tag {
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ec-ink-3); margin-top: 1px;
}

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  font-size: 14.5px; font-weight: 550; color: var(--ec-ink-2);
  padding: 8px 12px; border-radius: var(--r-sm);
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--ec-ink); background: var(--ec-sunken); }
.nav a[aria-current="page"] { color: var(--ec-brand-ink); background: var(--ec-brand-tint); }

/* Language toggle */
.lang {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border-radius: var(--r-pill);
  border: 1px solid var(--ec-line); background: var(--ec-surface);
}
.lang button {
  font: inherit; font-size: 12px; font-weight: 650; letter-spacing: 0.02em;
  border: none; background: none; cursor: pointer;
  color: var(--ec-ink-3); padding: 4px 9px; border-radius: var(--r-pill);
  transition: color .15s, background .15s;
}
.lang button[aria-pressed="true"] { color: var(--ec-brand-ink); background: var(--ec-brand-tint); }
.lang button:hover:not([aria-pressed="true"]) { color: var(--ec-ink); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  padding: 12px 18px; border-radius: var(--r-md);
  border: 1px solid var(--ec-line); background: var(--ec-surface); color: var(--ec-ink);
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { background: var(--ec-sunken); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ec-ink); color: var(--ec-bg); border-color: var(--ec-ink); }
.btn-primary:hover { background: var(--ec-brand); border-color: var(--ec-brand); }

/* Store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 11px 18px 11px 15px; border-radius: var(--r-md);
  background: var(--ec-ink); color: var(--ec-bg);
  border: 1px solid var(--ec-ink);
  transition: transform .05s, opacity .15s, background .15s;
}
.store-btn:hover { background: oklch(0.26 0.03 245); }
.store-btn:active { transform: translateY(1px); }
.store-btn svg { width: 22px; height: 22px; flex-shrink: 0; opacity: 0.95; }
.store-btn .l1 { font-size: 10px; font-weight: 550; letter-spacing: 0.04em; opacity: 0.78; line-height: 1.25; }
.store-btn .l2 { font-size: 15.5px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.1; }

/* ── Hero ────────────────────────────────────────────────── */
.hero { padding: 92px 0 76px; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center;
}
.display {
  font-size: clamp(42px, 6vw, 70px); font-weight: 700;
  letter-spacing: -0.038em; line-height: 1.02; margin: 16px 0 0;
  text-wrap: balance;
}
.display .accent { color: var(--ec-brand); }
.lead {
  font-size: clamp(17px, 1.6vw, 20px); color: var(--ec-ink-2);
  line-height: 1.55; margin: 22px 0 0; max-width: 33ch; text-wrap: pretty;
}
.hero .stores { margin-top: 34px; }
.hero-note { margin-top: 14px; font-size: 12.5px; color: var(--ec-ink-3); }

/* Product glance card */
.glance {
  background: var(--ec-surface); border: 1px solid var(--ec-line);
  border-radius: var(--r-xl); padding: 18px;
  box-shadow: var(--shadow-2);
}
.glance-head { display: flex; align-items: center; gap: 10px; padding: 4px 4px 14px; }
.glance-head .mark { width: 22px; height: 22px; color: var(--ec-brand); }
.glance-head .t { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
.glance-head .id { font-size: 11px; color: var(--ec-ink-3); }
.pill {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  background: var(--ec-ok-tint); color: var(--ec-ok-ink);
  padding: 4px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 650;
}
.pill .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--ec-ok);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--ec-ok) 22%, transparent); }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.metric {
  position: relative; overflow: hidden;
  background: var(--ec-surface); border: 1px solid var(--ec-line);
  border-radius: var(--r-md); padding: 12px 14px;
}
.metric .bar { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }
.metric .ml { font-size: 10.5px; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ec-ink-3); }
.metric .mv { font-family: var(--font-mono); font-size: 25px; font-weight: 600; line-height: 1.1; margin-top: 6px; }
.metric .mu { font-size: 12px; color: var(--ec-ink-3); font-weight: 500; }
.glance-spark { margin-top: 8px; background: var(--ec-sunken); border-radius: var(--r-md); padding: 12px 14px; }
.glance-spark .sl { font-size: 10.5px; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ec-ink-3); margin-bottom: 8px; display: flex; justify-content: space-between; }

/* ── Sections ────────────────────────────────────────────── */
section { padding: 0; }
.band { border-top: 1px solid var(--ec-line); padding: 74px 0; }
.band.sunken { background: var(--ec-sunken); }
.section-head { max-width: 640px; }
.h2 { font-size: clamp(27px, 3.4vw, 37px); font-weight: 700; letter-spacing: -0.026em; line-height: 1.1; text-wrap: balance; }
.section-head .lead { margin-top: 14px; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.feature {
  background: var(--ec-surface); border: 1px solid var(--ec-line);
  border-radius: var(--r-lg); padding: 24px;
}
.feature .ic {
  width: 42px; height: 42px; border-radius: var(--r-md);
  background: var(--ec-brand-tint); color: var(--ec-brand-ink);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { font-size: 18px; font-weight: 650; letter-spacing: -0.014em; }
.feature p { font-size: 15px; color: var(--ec-ink-2); line-height: 1.55; margin-top: 7px; text-wrap: pretty; }

/* About */
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
.about p { font-size: 16.5px; color: var(--ec-ink-2); line-height: 1.62; margin-top: 16px; max-width: 56ch; text-wrap: pretty; }
.about p:first-child { margin-top: 0; }
.about strong { color: var(--ec-ink); font-weight: 650; }
.facts { display: grid; gap: 1px; background: var(--ec-line); border: 1px solid var(--ec-line); border-radius: var(--r-lg); overflow: hidden; }
.fact { background: var(--ec-surface); padding: 16px 18px; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.fact .k { font-size: 13px; color: var(--ec-ink-3); font-weight: 550; }
.fact .v { font-size: 14px; font-weight: 600; text-align: right; }
.fact .v.mono { font-family: var(--font-mono); }

/* ── Legal / doc pages ───────────────────────────────────── */
.doc-hero { padding: 64px 0 8px; }
.doc-hero .h1 { font-size: clamp(34px, 4.6vw, 52px); font-weight: 700; letter-spacing: -0.032em; line-height: 1.04; margin-top: 14px; }
.doc-meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--ec-ink-3); }
.doc-meta .mono { color: var(--ec-ink-2); }

.summary-box {
  margin: 30px 0 8px; padding: 20px 22px;
  background: var(--ec-brand-tint); border: 1px solid color-mix(in oklch, var(--ec-brand) 18%, var(--ec-line));
  border-radius: var(--r-lg);
}
.summary-box .lbl { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ec-brand-ink); }
.summary-box p { margin-top: 8px; font-size: 16px; color: var(--ec-brand-ink); line-height: 1.55; font-weight: 500; }

.doc { padding: 36px 0 40px; }
.doc h2 {
  font-size: 21px; font-weight: 650; letter-spacing: -0.016em;
  margin: 40px 0 0; padding-top: 28px; border-top: 1px solid var(--ec-line);
  scroll-margin-top: 86px;
}
.doc h2:first-of-type { border-top: none; padding-top: 0; margin-top: 8px; }
.doc h2 .num { font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--ec-brand); margin-right: 12px; }
.doc h3 { font-size: 16px; font-weight: 650; margin: 22px 0 0; }
.doc p { font-size: 16px; color: var(--ec-ink-2); line-height: 1.62; margin-top: 12px; max-width: 70ch; text-wrap: pretty; }
.doc p strong, .doc li strong { color: var(--ec-ink); font-weight: 600; }
.doc a.inline { color: var(--ec-brand-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: color-mix(in oklch, var(--ec-brand) 40%, transparent); }
.doc ul.bullets { margin: 12px 0 0; max-width: 70ch; }
.doc ul.bullets li { position: relative; padding-left: 22px; margin-top: 9px; font-size: 16px; color: var(--ec-ink-2); line-height: 1.55; }
.doc ul.bullets li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 6px; height: 6px; border-radius: 999px; background: var(--ec-brand); opacity: 0.7; }

/* Contact card */
.contact-card {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px;
  background: var(--ec-surface); border: 1px solid var(--ec-line);
  border-radius: var(--r-xl); padding: 26px 28px; margin-top: 28px;
}
.contact-card .ic {
  width: 52px; height: 52px; border-radius: var(--r-md);
  background: var(--ec-brand-tint); color: var(--ec-brand-ink);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-card .ic svg { width: 26px; height: 26px; }
.contact-card .ct { flex: 1; min-width: 200px; }
.contact-card .ct .k { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ec-ink-3); }
.contact-card .ct .v { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; margin-top: 4px; }
.contact-card .ct .v a { color: var(--ec-brand-ink); }
.contact-card .ct .sub { font-size: 14px; color: var(--ec-ink-3); margin-top: 4px; }

/* FAQ */
.faq { margin-top: 16px; border-top: 1px solid var(--ec-line); }
.faq details { border-bottom: 1px solid var(--ec-line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 2px;
  display: flex; align-items: center; gap: 16px;
  font-size: 17px; font-weight: 600; letter-spacing: -0.012em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { margin-left: auto; color: var(--ec-ink-3); transition: transform .2s; flex-shrink: 0; }
.faq details[open] summary .chev { transform: rotate(90deg); }
.faq .a { padding: 0 2px 22px; }
.faq .a p { font-size: 15.5px; color: var(--ec-ink-2); line-height: 1.6; max-width: 68ch; text-wrap: pretty; }
.faq .a p + p { margin-top: 10px; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--ec-line); background: var(--ec-surface); margin-top: 0; }
.site-footer .wrap { padding-top: 48px; padding-bottom: 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.footer-brand { max-width: 300px; }
.footer-brand .mark { width: 24px; height: 24px; color: var(--ec-brand); }
.footer-brand p { font-size: 13.5px; color: var(--ec-ink-3); line-height: 1.55; margin-top: 12px; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col .h { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ec-ink-3); margin-bottom: 12px; }
.footer-col a { display: block; font-size: 14.5px; color: var(--ec-ink-2); padding: 5px 0; transition: color .15s; }
.footer-col a:hover { color: var(--ec-brand-ink); }
.footer-bottom {
  margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--ec-line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 13px; color: var(--ec-ink-3);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 60px 0 56px; }
  .glance { order: -1; }
  .features { grid-template-columns: 1fr; gap: 14px; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .band { padding: 56px 0; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .site-header .wrap { gap: 10px; height: 60px; }
  .brand .tag { display: none; }
  .nav { gap: 0; }
  .nav a { padding: 8px 9px; font-size: 13.5px; }
  .stores { gap: 10px; }
  .store-btn { flex: 1; min-width: 0; justify-content: center; }
  .footer-top { flex-direction: column; gap: 30px; }
}
@media (max-width: 420px) {
  .nav a { padding: 7px 7px; font-size: 13px; }
  .lang button { padding: 4px 7px; }
}

/* Print — clean legal docs */
@media print {
  .site-header, .site-footer .footer-top, .stores, .lang { display: none; }
  body { font-size: 12pt; }
  .doc h2 { break-after: avoid; }
}
