/* ECalor — 2026 redesign. Identity from the Seed Pitch Deck: near-black, amber, heavy grotesque. */

:root {
  --bg: #0a0a0b;
  --panel: #121215;
  --panel-2: #17171b;
  --line: #26262c;
  --ink: #ffffff;
  --muted: #a2a2ab;
  --amber: #ffa321;
  --amber-hi: #ffb84d;
  --amber-dim: #7a4d0a;
  --wrap: 1160px;
  --r: 14px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--amber); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; margin: 0 0 .5em; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.9rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.9rem); line-height: 1.06; }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.35rem); letter-spacing: -0.02em; line-height: 1.25; }
p { margin: 0 0 1.1em; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--muted); line-height: 1.55; max-width: 62ch; }
.amber { color: var(--amber); }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.tiny { font-size: .78rem; line-height: 1.5; }

.eyebrow {
  display: inline-flex; align-items: flex-start; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--amber); margin: 0 0 22px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--amber); display: block; flex: 0 0 auto; margin-top: 5px; }
.eyebrow--muted { color: var(--muted); }
.eyebrow--muted::before { background: var(--muted); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,11,.82);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 86px; }
.brand img { height: 62px; width: auto; }
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav .btn, .nav .btn:hover { color: #0a0a0b; }
.nav a { font-size: .92rem; font-weight: 500; color: var(--muted); transition: color .2s var(--ease); }
.nav a.is-active, .nav a:hover { color: var(--ink); }
.nav .lang { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; border-left: 1px solid var(--line); padding-left: 22px; }

/* ---------- client entry point ---------- */
/* Discreet by design: not part of the marketing nav, no amber fill, no CTA weight. */
.login { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.login a {
  font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.login__client { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; }
.login__client:hover, .login__client:focus-visible { color: var(--ink); border-color: #3a3a42; }

/* Keyboard focus is always visible, including on the login links. */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--amber); color: #0a0a0b;
  font-weight: 700; font-size: .94rem; letter-spacing: -.01em;
  padding: 13px 22px; border-radius: 999px; border: 1px solid var(--amber);
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--amber-hi); border-color: var(--amber-hi); color: #0a0a0b; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--panel-2); color: var(--ink); border-color: #3a3a42; }
.btn--sm { padding: 9px 16px; font-size: .85rem; }

.menu { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 9vw, 118px) 0 clamp(40px, 5vw, 64px); }
.hero--tight { padding-bottom: clamp(18px, 2.4vw, 30px); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(circle at 50% 50%, rgba(255,163,33,.16), rgba(255,163,33,0) 62%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero h1 { max-width: 21ch; }
.hero .lead { margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.rule { height: 1px; background: var(--amber); opacity: .55; border: 0; margin: 0; }
.rule--dim { background: var(--line); opacity: 1; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats > .stat { padding: 30px 28px; border-right: 1px solid var(--line); }
.stats > .stat:first-child { padding-left: 0; }
.stats > .stat:last-child { border-right: 0; padding-right: 0; }
.stats .n { display: block; font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.04em; color: var(--amber); line-height: 1; }
.stats .l { display: block; margin-top: 10px; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- sections ---------- */
section { padding: clamp(52px, 6.4vw, 86px) 0; }
.section-head { max-width: 62ch; margin-bottom: clamp(28px, 3.4vw, 44px); }
.section-head p { margin-bottom: 0; }

/* ---------- cards / steps ---------- */
.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 24px; border-left: 2px solid var(--amber);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.card:hover { background: var(--panel-2); transform: translateY(-2px); }
.card .num { display: block; font-size: .74rem; letter-spacing: .18em; color: var(--amber); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(26px, 3.4vw, 44px); }
.panel--glow { background:
  radial-gradient(120% 140% at 100% 0%, rgba(255,163,33,.13), rgba(255,163,33,0) 55%), var(--panel); }

/* ---------- table ---------- */
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.table td:first-child { color: var(--ink); }
.table tbody tr:hover { background: var(--panel); }

/* ---------- list ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist--2 { grid-template-columns: 1fr 1fr; gap: 14px 40px; }
.checklist li { position: relative; padding-left: 30px; color: var(--muted); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 2px; background: var(--amber);
}

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-weight: 600; font-size: 1.02rem; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  color: var(--amber); font-size: 1.35rem; font-weight: 400; line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--muted); margin: 0 0 22px; max-width: 74ch; }

/* ---------- cta ---------- */
.cta { padding: clamp(56px, 7vw, 96px) 0; }
.cta .panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta h2 { margin: 0; max-width: 22ch; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--muted); font-size: .9rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer img { height: 54px; margin-bottom: 16px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--amber); }
.site-footer h4 { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #d8d8dd; margin-bottom: 14px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; font-size: .78rem; color: #6f6f78; }

/* ---------- prose (legal / about body) ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.4em; font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: #c9c9d1; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: .5em; }

/* ---------- form ---------- */
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px;
  font: inherit; font-size: .95rem; -webkit-appearance: none;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: var(--amber-dim); }
.field textarea { min-height: 130px; resize: vertical; }
.formnote { font-size: .78rem; color: #6f6f78; margin-top: 6px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
/* Header only: below 940px the marketing nav + CTA no longer fits on one line,
   so the nav collapses into "Menu" sooner and the client login stays visible
   outside it. */
@media (max-width: 940px) {
  .nav { display: none; }
  .site-header .wrap { gap: 14px; }
  .login { gap: 9px; margin-left: auto; }
  .login a { font-size: .68rem; letter-spacing: .06em; }
  .login__client { padding: 6px 11px; }
  .menu { display: block; margin-left: 0; position: relative; }
  .menu > summary {
    list-style: none; cursor: pointer; border: 1px solid var(--line); border-radius: 999px;
    padding: 8px 16px; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  }
  .menu > summary::-webkit-details-marker { display: none; }
  .menu[open] > summary { color: var(--ink); border-color: #3a3a42; }
  .menu-panel {
    position: absolute; right: 0; top: calc(100% + 12px); min-width: 220px;
    background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px;
    display: grid; gap: 4px; box-shadow: 0 24px 48px rgba(0,0,0,.6);
  }
  .menu-panel a { padding: 10px 12px; border-radius: 8px; color: var(--muted); font-size: .95rem; }
  .menu-panel a:hover { background: var(--panel-2); color: var(--ink); }
  .menu-panel .btn { margin-top: 4px; color: #0a0a0b; font-size: .88rem; }
  .menu-panel .btn:hover { background: var(--amber-hi); color: #0a0a0b; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .checklist--2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stats > .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 0; }
  .stats > .stat:first-child, .stats > .stat:last-child { padding-left: 0; padding-right: 0; }
  .stats > .stat:last-child { border-bottom: 0; }
  .cta .panel { flex-direction: column; align-items: flex-start; }
}

/* ---------- stats sub-label ---------- */
.stats .s { display: block; margin-top: 6px; font-size: .76rem; color: #6f6f78; letter-spacing: 0; text-transform: none; }

/* ---------- video ---------- */
.video {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  width: 100%; aspect-ratio: 16 / 9;
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  background: #000; padding: 0; cursor: pointer; margin: 0 0 clamp(40px, 6vw, 72px);
}
.video {
  background:
    radial-gradient(120% 120% at 50% 45%, rgba(255,163,33,.15), rgba(255,163,33,0) 62%),
    #0f0f11;
}
.video .video-mark {
  position: static; width: clamp(140px, 16vw, 195px); height: auto;
  opacity: .95; transition: opacity .3s var(--ease), transform .5s var(--ease);
}
.video:hover .video-mark { transform: scale(1.02); opacity: 1; }
.video .play {
  position: static; width: 70px; height: 70px; border-radius: 999px;
  background: var(--amber); display: grid; place-items: center;
  box-shadow: 0 18px 44px rgba(0,0,0,.55); transition: transform .25s var(--ease);
}
.video:hover .play { transform: scale(1.06); }
.video .play svg { width: 30px; height: 30px; fill: #0a0a0b; margin-left: 3px; }
.video-cta { font-size: .86rem; letter-spacing: .04em; color: var(--muted); }
.video:hover .video-cta { color: var(--amber); }
.video.is-playing { aspect-ratio: 16 / 9; }
.video.is-playing iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- feature cards ---------- */
.card--plain { border-left: 1px solid var(--line); }
.card--plain h3 { font-size: 1rem; }
.card--plain p { font-size: .92rem; }

/* ---------- roi ---------- */
.roi { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.roi h2 { margin-bottom: 14px; }
.roi-figures { display: grid; gap: 0; }
.roi-row { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.roi-row:last-child { border-bottom: 0; }
.roi-k { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.roi-v { font-size: clamp(1.25rem, 2.4vw, 1.8rem); font-weight: 800; letter-spacing: -.03em; color: var(--amber); white-space: nowrap; }

@media (max-width: 760px) {
  .roi { grid-template-columns: 1fr; }
  .video .play { width: 60px; height: 60px; }
}

/* Phones: the header wraps to a second row so the client login stays reachable
   and tappable without shrinking the label to nothing. */
@media (max-width: 430px) {
  .site-header .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 8px; row-gap: 4px; }
  .brand img { height: 46px; }
  .brand { order: 1; }
  .menu { order: 2; margin-left: auto; }
  .login {
    order: 3; flex-basis: 100%; margin-left: 0; justify-content: flex-end;
    padding-top: 8px; border-top: 1px solid var(--line);
  }
  .login__client { padding: 5px 10px; }
}
